Files
odo/pkg/apiserver-impl/ui/main.1046d99cec4375b1.js
Philippe Martin edf0bf38d4 [ui] Create/Delete volumes (#7029)
* [api/devstate] Add volumes to Devfile content

* Add Volume related endpoints to API

* Create/Delete volumes from the Volumes Tab

* Update UI static files

* API Devstate returns VolumeMounts

* Display volume mounts in containers

* [api] Add VolumeMounts to containers

* [ui] Define container's volume mounts

* [ui] e2e  tests

* Update UI static files

* [ui] create volumes from container / exec command creation

* Update UI static files

* Update container display

* Update UI static files

* Regenerate UI static files
2023-08-21 13:32:55 -02:30

1 line
1.1 MiB
Generated

(self.webpackChunkdevfile_builder=self.webpackChunkdevfile_builder||[]).push([[179],{6780:(Jt,Ae)=>{"use strict";Ae.N=void 0;var q=/^([^\w]*)(javascript|data|vbscript)/im,de=/&#(\w+)(^\w|;)?/g,re=/&(newline|tab);/gi,J=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,ne=/^.+(:|&colon;)/gim,je=[".","/"];Ae.N=function le(K){var ce=function V(K){return K.replace(de,function(ce,kt){return String.fromCharCode(kt)})}(K||"").replace(re,"").replace(J,"").trim();if(!ce)return"about:blank";if(function Ye(K){return je.indexOf(K[0])>-1}(ce))return ce;var kt=ce.match(ne);return kt&&q.test(kt[0])?"about:blank":ce}},7414:(Jt,Ae,O)=>{"use strict";function q(n){return"function"==typeof n}function de(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 re=de(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 J(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class ne{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(q(i))try{i()}catch(o){t=o instanceof re?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{V(o)}catch(a){t=t??[],a instanceof re?t=[...t,...a.errors]:t.push(a)}}if(t)throw new re(t)}}add(t){var e;if(t&&t!==this)if(this.closed)V(t);else{if(t instanceof ne){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)&&J(e,t)}remove(t){const{_finalizers:e}=this;e&&J(e,t),t instanceof ne&&t._removeParent(this)}}ne.EMPTY=(()=>{const n=new ne;return n.closed=!0,n})();const je=ne.EMPTY;function Ye(n){return n instanceof ne||n&&"closed"in n&&q(n.remove)&&q(n.add)&&q(n.unsubscribe)}function V(n){q(n)?n():n.unsubscribe()}const le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},K={setTimeout(n,t,...e){const{delegate:i}=K;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=K;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function ce(n){K.setTimeout(()=>{const{onUnhandledError:t}=le;if(!t)throw n;t(n)})}function kt(){}const Xt=Te("C",void 0,void 0);function Te(n,t,e){return{kind:n,value:t,error:e}}let be=null;function yt(n){if(le.useDeprecatedSynchronousErrorHandling){const t=!be;if(t&&(be={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=be;if(be=null,e)throw i}}else n()}class pt extends ne{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ye(t)&&t.add(this)):this.destination=we}static create(t,e,i){return new nn(t,e,i)}next(t){this.isStopped?Ue(function X(n){return Te("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ue(function Se(n){return Te("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ue(Xt,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 zt=Function.prototype.bind;function $t(n,t){return zt.call(n,t)}class at{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){Qn(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){Qn(i)}else Qn(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Qn(e)}}}class nn extends pt{constructor(t,e,i){let r;if(super(),q(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&le.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&$t(t.next,o),error:t.error&&$t(t.error,o),complete:t.complete&&$t(t.complete,o)}):r=t}this.destination=new at(r)}}function Qn(n){le.useDeprecatedSynchronousErrorHandling?function Et(n){le.useDeprecatedSynchronousErrorHandling&&be&&(be.errorThrown=!0,be.error=n)}(n):ce(n)}function Ue(n,t){const{onStoppedNotification:e}=le;e&&K.setTimeout(()=>e(n,t))}const we={closed:!0,next:kt,error:function wt(n){throw n},complete:kt},Ze="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ve(n){return n}let ye=(()=>{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 ln(n){return n&&n instanceof pt||function vn(n){return n&&q(n.next)&&q(n.error)&&q(n.complete)}(n)&&Ye(n)}(e)?e:new nn(e,i,r);return yt(()=>{const{operator:a,source:c}=this;o.add(a?a.call(o,c):c?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=Mn(i))((r,o)=>{const a=new nn({next:c=>{try{e(c)}catch(d){o(d),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Ze](){return this}pipe(...e){return function ut(n){return 0===n.length?Ve:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=Mn(e))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return n.create=t=>new n(t),n})();function Mn(n){var t;return null!==(t=n??le.Promise)&&void 0!==t?t:Promise}const di=de(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ee=(()=>{class n extends ye{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Gi(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new di}next(e){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){yt(()=>{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(){yt(()=>{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?je:(this.currentObservers=null,o.push(e),new ne(()=>{this.currentObservers=null,J(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new ye;return e.source=this,e}}return n.create=(t,e)=>new Gi(t,e),n})();class Gi 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:je}}function qe(n){return t=>{if(function _t(n){return q(n?.lift)}(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 It(n,t,e,i,r){return new Jn(n,t,e,i,r)}class Jn extends pt{constructor(t,e,i,r,o,a){super(t),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(c){try{e(c)}catch(d){t.error(d)}}:super._next,this._error=r?function(c){try{r(c)}catch(d){t.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(c){t.error(c)}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 Ln(n,t){return qe((e,i)=>{let r=0;e.subscribe(It(i,o=>{i.next(n.call(t,o,r++))}))})}function bi(n){return this instanceof bi?(this.v=n,this):new bi(n)}function pi(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 Ke(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(a){return new Promise(function(c,d){!function r(o,a,c,d){Promise.resolve(d).then(function(h){o({value:h,done:c})},a)}(c,d,(a=n[o](a)).done,a.value)})}}}const L=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Ie(n){return q(n?.then)}function ht(n){return q(n[Ze])}function gi(n){return Symbol.asyncIterator&&q(n?.[Symbol.asyncIterator])}function xn(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 ro=function as(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function oo(n){return q(n?.[ro])}function ka(n){return function Yi(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(M){i[M]&&(r[M]=function(S){return new Promise(function(P,$){o.push([M,S,P,$])>1||c(M,S)})})}function c(M,S){try{!function d(M){M.value instanceof bi?Promise.resolve(M.value.v).then(h,p):_(o[0][2],M)}(i[M](S))}catch(P){_(o[0][3],P)}}function h(M){c("next",M)}function p(M){c("throw",M)}function _(M,S){M(S),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield bi(e.read());if(r)return yield bi(void 0);yield yield bi(i)}}finally{e.releaseLock()}})}function Gs(n){return q(n?.getReader)}function yi(n){if(n instanceof ye)return n;if(null!=n){if(ht(n))return function cs(n){return new ye(t=>{const e=n[Ze]();if(q(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(L(n))return function ko(n){return new ye(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(Ie(n))return function Hr(n){return new ye(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,ce)})}(n);if(gi(n))return Io(n);if(oo(n))return function So(n){return new ye(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(Gs(n))return function xs(n){return Io(ka(n))}(n)}throw xn(n)}function Io(n){return new ye(t=>{(function wr(n,t){var e,i,r,o;return function rs(n,t,e,i){return new(e||(e=Promise))(function(o,a){function c(p){try{h(i.next(p))}catch(_){a(_)}}function d(p){try{h(i.throw(p))}catch(_){a(_)}}function h(p){p.done?o(p.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(p.value).then(c,d)}h((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=pi(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(a){r={error:a}}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 Zi(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 Ao(n,t,e=1/0){return q(t)?Ao((i,r)=>Ln((o,a)=>t(i,o,r,a))(yi(n(i,r))),e):("number"==typeof t&&(e=t),qe((i,r)=>function Sa(n,t,e,i,r,o,a,c){const d=[];let h=0,p=0,_=!1;const M=()=>{_&&!d.length&&!h&&t.complete()},S=$=>h<i?P($):d.push($),P=$=>{o&&t.next($),h++;let Q=!1;yi(e($,p++)).subscribe(It(t,ae=>{r?.(ae),o?S(ae):t.next(ae)},()=>{Q=!0},void 0,()=>{if(Q)try{for(h--;d.length&&h<i;){const ae=d.shift();a?Zi(t,a,()=>P(ae)):P(ae)}M()}catch(ae){t.error(ae)}}))};return n.subscribe(It(t,S,()=>{_=!0,M()})),()=>{c?.()}}(i,r,n,e)))}function Fo(n=1/0){return Ao(Ve,n)}const Yn=new ye(n=>n.complete());function nc(n){return n&&q(n.schedule)}function oi(n){return n[n.length-1]}function Oo(n){return q(oi(n))?n.pop():void 0}function Ro(n){return nc(oi(n))?n.pop():void 0}function Ys(n,t=0){return qe((e,i)=>{e.subscribe(It(i,r=>Zi(i,n,()=>i.next(r),t),()=>Zi(i,n,()=>i.complete(),t),r=>Zi(i,n,()=>i.error(r),t)))})}function rr(n,t=0){return qe((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function Lo(n,t){if(!n)throw new Error("Iterable cannot be null");return new ye(e=>{Zi(e,t,()=>{const i=n[Symbol.asyncIterator]();Zi(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function ls(n,t){return t?function Zs(n,t){if(null!=n){if(ht(n))return function qi(n,t){return yi(n).pipe(rr(t),Ys(t))}(n,t);if(L(n))return function Po(n,t){return new ye(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(Ie(n))return function vi(n,t){return yi(n).pipe(rr(t),Ys(t))}(n,t);if(gi(n))return Lo(n,t);if(oo(n))return function rc(n,t){return new ye(e=>{let i;return Zi(e,t,()=>{i=n[ro](),Zi(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>q(i?.return)&&i.return()})}(n,t);if(Gs(n))return function ws(n,t){return Lo(ka(n),t)}(n,t)}throw xn(n)}(n,t):yi(n)}function si(...n){const t=Ro(n),e=function ic(n,t){return"number"==typeof oi(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?yi(i[0]):Fo(e)(ls(i,t)):Yn}function qs(n={}){const{connector:t=(()=>new Ee),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let a,c,d,h=0,p=!1,_=!1;const M=()=>{c?.unsubscribe(),c=void 0},S=()=>{M(),a=d=void 0,p=_=!1},P=()=>{const $=a;S(),$?.unsubscribe()};return qe(($,Q)=>{h++,!_&&!p&&M();const ae=d=d??t();Q.add(()=>{h--,0===h&&!_&&!p&&(c=Dr(P,r))}),ae.subscribe(Q),!a&&h>0&&(a=new nn({next:Be=>ae.next(Be),error:Be=>{_=!0,M(),c=Dr(S,e,Be),ae.error(Be)},complete:()=>{p=!0,M(),c=Dr(S,i),ae.complete()}}),yi($).subscribe(a))})(o)}}function Dr(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new nn({next:()=>{i.unsubscribe(),n()}});return yi(t(...e)).subscribe(i)}function On(n){for(let t in n)if(n[t]===On)return t;throw Error("Could not find renamed property on target object.")}function so(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function He(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(He).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 Kr(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const wi=On({__forward_ref__:On});function dn(n){return n.__forward_ref__=dn,n.toString=function(){return He(this())},n}function Bt(n){return or(n)?n():n}function or(n){return"function"==typeof n&&n.hasOwnProperty(wi)&&n.__forward_ref__===dn}function ao(n){return n&&!!n.\u0275providers}const ki="https://g.co/ng/security#xss";class ve extends Error{constructor(t,e){super(Ds(t,e)),this.code=t}}function Ds(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}function Zt(n){return"string"==typeof n?n:null==n?"":String(n)}function ui(n,t){throw new ve(-201,!1)}function Ki(n,t){null==n&&function Rn(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function it(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function qt(n){return{providers:n.providers||[],imports:n.imports||[]}}function Ts(n){return W(n,Di)||W(n,Fn)}function W(n,t){return n.hasOwnProperty(t)?n[t]:null}function Tn(n){return n&&(n.hasOwnProperty(zn)||n.hasOwnProperty(ds))?n[zn]:null}const Di=On({\u0275prov:On}),zn=On({\u0275inj:On}),Fn=On({ngInjectableDef:On}),ds=On({ngInjectorDef:On});var bt=(()=>((bt=bt||{})[bt.Default=0]="Default",bt[bt.Host=1]="Host",bt[bt.Self=2]="Self",bt[bt.SkipSelf=4]="SkipSelf",bt[bt.Optional=8]="Optional",bt))();let Bo;function $i(n){const t=Bo;return Bo=n,t}function Vo(n,t,e){const i=Ts(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&bt.Optional?null:void 0!==t?t:void ui(He(n))}const $n=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Fa={},Oa="__NG_DI_FLAG__",sc="ngTempTokenPath",sd="ngTokenPath",_l=/\n/gm,Oc="\u0275",Es="__source";let us;function jr(n){const t=us;return us=n,t}function hs(n,t=bt.Default){if(void 0===us)throw new ve(-203,!1);return null===us?Vo(n,void 0,t):us.get(n,t&bt.Optional?null:void 0,t)}function te(n,t=bt.Default){return(function Xi(){return Bo}()||hs)(Bt(n),t)}function _i(n,t=bt.Default){return te(n,Tr(t))}function Tr(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function ac(n){const t=[];for(let e=0;e<n.length;e++){const i=Bt(n[e]);if(Array.isArray(i)){if(0===i.length)throw new ve(900,!1);let r,o=bt.Default;for(let a=0;a<i.length;a++){const c=i[a],d=cc(c);"number"==typeof d?-1===d?r=c.token:o|=d:r=c}t.push(te(r,o))}else t.push(te(i))}return t}function Js(n,t){return n[Oa]=t,n.prototype[Oa]=t,n}function cc(n){return n[Oa]}function Ho(n){return{toString:n}.toString()}var uo=(()=>((uo=uo||{})[uo.OnPush=0]="OnPush",uo[uo.Default=1]="Default",uo))(),Er=(()=>{return(n=Er||(Er={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Er;var n})();const ho={},Pn=[],zo=On({\u0275cmp:On}),Ss=On({\u0275dir:On}),$o=On({\u0275pipe:On}),ea=On({\u0275mod:On}),Ur=On({\u0275fac:On}),Xr=On({__NG_ELEMENT_ID__:On});let Is=0;function k(n){return Ho(()=>{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===uo.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Pn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Er.Emulated,id:"c"+Is++,styles:n.styles||Pn,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=n.dependencies,a=n.features;return r.inputs=g(n.inputs,i),r.outputs=g(n.outputs),a&&a.forEach(c=>c(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Me).filter(tt):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(H).filter(tt):null,r})}function Me(n){return I(n)||z(n)}function tt(n){return null!==n}function Re(n){return Ho(()=>({type:n.type,bootstrap:n.bootstrap||Pn,declarations:n.declarations||Pn,imports:n.imports||Pn,exports:n.exports||Pn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function g(n,t){if(null==n)return ho;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 y=k;function A(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 I(n){return n[zo]||null}function z(n){return n[Ss]||null}function H(n){return n[$o]||null}const Pe=0,ie=1,me=2,ot=3,ze=4,Pt=5,rn=6,En=7,jt=8,Dt=9,Pc=10,kn=11,Zd=12,ta=13,bl=14,lc=15,cr=16,fo=17,Ra=18,mo=19,Qr=20,jm=21,Ci=22,Fh=1,Um=2,qd=7,Kd=8,yl=9,Jr=10;function jo(n){return Array.isArray(n)&&"object"==typeof n[Fh]}function As(n){return Array.isArray(n)&&!0===n[Fh]}function Oh(n){return 0!=(4&n.flags)}function cd(n){return n.componentOffset>-1}function Xd(n){return 1==(1&n.flags)}function Fs(n){return null!==n.template}function Cb(n){return 0!=(256&n[me])}function Lc(n,t){return n.hasOwnProperty(Ur)?n[Ur]:null}class Db{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function kr(){return Gm}function Gm(n){return n.type.prototype.ngOnChanges&&(n.setInput=Tb),Mb}function Mb(){const n=Zm(this),t=n?.current;if(t){const e=n.previous;if(e===ho)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Tb(n,t,e,i){const r=this.declaredInputs[e],o=Zm(n)||function Eb(n,t){return n[Ym]=t}(n,{previous:ho,current:null}),a=o.current||(o.current={}),c=o.previous,d=c[r];a[r]=new Db(d&&d.currentValue,t,c===ho),n[i]=t}kr.ngInherit=!0;const Ym="__ngSimpleChanges__";function Zm(n){return n[Ym]||null}const fs=function(n,t,e){},na="svg";function lr(n){for(;Array.isArray(n);)n=n[Pe];return n}function Lh(n,t){return lr(t[n])}function ms(n,t){return lr(t[n.index])}function Km(n,t){return n.data[t]}function vl(n,t){return n[t]}function Uo(n,t){const e=t[n];return jo(e)?e:e[Pe]}function Cl(n){return 64==(64&n[me])}function Wo(n,t){return null==t?null:n[t]}function Nh(n){n[Ra]=0}function dr(n,t){n[Pt]+=t;let e=n,i=n[ot];for(;null!==i&&(1===t&&1===e[Pt]||-1===t&&0===e[Pt]);)i[Pt]+=t,e=i,i=i[ot]}const Nt={lFrame:Ob(null),bindingsEnabled:!0};function ia(){return Nt.bindingsEnabled}function ke(){return Nt.lFrame.lView}function Bn(){return Nt.lFrame.tView}function Ot(n){return Nt.lFrame.contextLView=n,n[jt]}function Ht(n){return Nt.lFrame.contextLView=null,n}function Sr(){let n=tp();for(;null!==n&&64===n.type;)n=n.parent;return n}function tp(){return Nt.lFrame.currentTNode}function ra(n,t){const e=Nt.lFrame;e.currentTNode=n,e.isParent=t}function np(){return Nt.lFrame.isParent}function ip(){Nt.lFrame.isParent=!1}function eo(){const n=Nt.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function ld(){return Nt.lFrame.bindingIndex++}function dc(n){const t=Nt.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function Fb(n,t){const e=Nt.lFrame;e.bindingIndex=e.bindingRootIndex=n,iu(t)}function iu(n){Nt.lFrame.currentDirectiveIndex=n}function ru(n){const t=Nt.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function Vh(){return Nt.lFrame.currentQueryIndex}function ou(n){Nt.lFrame.currentQueryIndex=n}function wl(n){const t=n[ie];return 2===t.type?t.declTNode:1===t.type?n[rn]:null}function Hh(n,t,e){if(e&bt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&bt.Host||(r=wl(o),null===r||(o=o[lc],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Nt.lFrame=$h();return i.currentTNode=t,i.lView=n,!0}function zh(n){const t=$h(),e=n[ie];Nt.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function $h(){const n=Nt.lFrame,t=null===n?null:n.child;return null===t?Ob(n):t}function Ob(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 op(){const n=Nt.lFrame;return Nt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const ps=op;function dd(){const n=op();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 Ir(){return Nt.lFrame.selectedIndex}function uc(n){Nt.lFrame.selectedIndex=n}function Ri(){const n=Nt.lFrame;return Km(n.tView,n.selectedIndex)}function hc(){Nt.lFrame.currentNamespace=na}function su(){!function sp(){Nt.lFrame.currentNamespace=null}()}function au(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const o=n.data[e].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:c,ngAfterViewInit:d,ngAfterViewChecked:h,ngOnDestroy:p}=o;a&&(n.contentHooks||(n.contentHooks=[])).push(-e,a),c&&((n.contentHooks||(n.contentHooks=[])).push(e,c),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,c)),d&&(n.viewHooks||(n.viewHooks=[])).push(-e,d),h&&((n.viewHooks||(n.viewHooks=[])).push(e,h),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,h)),null!=p&&(n.destroyHooks||(n.destroyHooks=[])).push(e,p)}}function cu(n,t,e){ap(n,t,3,e)}function lu(n,t,e,i){(3&n[me])===e&&ap(n,t,e,i)}function Dl(n,t){let e=n[me];(3&e)===t&&(e&=2047,e+=1,n[me]=e)}function ap(n,t,e,i){const o=i??-1,a=t.length-1;let c=0;for(let d=void 0!==i?65535&n[Ra]:0;d<a;d++)if("number"==typeof t[d+1]){if(c=t[d],null!=i&&c>=i)break}else t[d]<0&&(n[Ra]+=65536),(c<o||-1==o)&&(Wh(n,e,t,d),n[Ra]=(4294901760&n[Ra])+d+2),d++}function Wh(n,t,e,i){const r=e[i]<0,o=e[i+1],c=n[r?-e[i]:e[i]];if(r){if(n[me]>>11<n[Ra]>>16&&(3&n[me])===t){n[me]+=2048,fs(4,c,o);try{o.call(c)}finally{fs(5,c,o)}}}else{fs(4,c,o);try{o.call(c)}finally{fs(5,c,o)}}}const fc=-1;class mc{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function dp(n,t,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const o=e[i++],a=e[i++],c=e[i++];n.setAttribute(t,a,c,o)}else{const o=r,a=e[++i];Lb(o)?n.setProperty(t,o,a):n.setAttribute(t,o,a),i++}}return i}function up(n){return 3===n||4===n||6===n}function Lb(n){return 64===n.charCodeAt(0)}function Ml(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||hp(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function hp(n,t,e,i,r){let o=0,a=n.length;if(-1===t)a=-1;else for(;o<n.length;){const c=n[o++];if("number"==typeof c){if(c===t){a=-1;break}if(c>t){a=o-1;break}}}for(;o<n.length;){const c=n[o];if("number"==typeof c)break;if(c===e){if(null===i)return void(null!==r&&(n[o+1]=r));if(i===n[o+1])return void(n[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(n.splice(a,0,t),o=a+1),n.splice(o++,0,e),null!==i&&n.splice(o++,0,i),null!==r&&n.splice(o++,0,r)}function fp(n){return n!==fc}function du(n){return 32767&n}function Tl(n,t){let e=function Nb(n){return n>>16}(n),i=t;for(;e>0;)i=i[lc],e--;return i}let Yh=!0;function uu(n){const t=Yh;return Yh=n,t}const Zh=255,Bc=5;let qh=0;const sa={};function hu(n,t){const e=mp(n,t);if(-1!==e)return e;const i=t[ie];i.firstCreatePass&&(n.injectorIndex=t.length,fu(i.data,n),fu(t,null),fu(i.blueprint,null));const r=mu(n,t),o=n.injectorIndex;if(fp(r)){const a=du(r),c=Tl(r,t),d=c[ie].data;for(let h=0;h<8;h++)t[o+h]=c[a+h]|d[a+h]}return t[o+8]=r,o}function fu(n,t){n.push(0,0,0,0,0,0,0,0,t)}function mp(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function mu(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=Kh(r),null===i)return fc;if(e++,r=r[lc],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return fc}function ud(n,t,e){!function Bb(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Xr)&&(i=e[Xr]),null==i&&(i=e[Xr]=qh++);const r=i&Zh;t.data[n+(r>>Bc)]|=1<<r}(n,t,e)}function pp(n,t,e){if(e&bt.Optional||void 0!==n)return n;ui()}function hd(n,t,e,i){if(e&bt.Optional&&void 0===i&&(i=null),!(e&(bt.Self|bt.Host))){const r=n[Dt],o=$i(void 0);try{return r?r.get(t,i,e&bt.Optional):Vo(t,i,e&bt.Optional)}finally{$i(o)}}return pp(i,0,e)}function pu(n,t,e,i=bt.Default,r){if(null!==n){if(1024&t[me]){const a=function yp(n,t,e,i,r){let o=n,a=t;for(;null!==o&&null!==a&&1024&a[me]&&!(256&a[me]);){const c=gp(o,a,e,i|bt.Self,sa);if(c!==sa)return c;let d=o.parent;if(!d){const h=a[jm];if(h){const p=h.get(e,sa,i);if(p!==sa)return p}d=Kh(a),a=a[lc]}o=d}return r}(n,t,e,i,sa);if(a!==sa)return a}const o=gp(n,t,e,i,sa);if(o!==sa)return o}return hd(t,e,i,r)}function gp(n,t,e,i,r){const o=function Vb(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Xr)?n[Xr]:void 0;return"number"==typeof t?t>=0?t&Zh:Hb:t}(e);if("function"==typeof o){if(!Hh(t,n,i))return i&bt.Host?pp(r,0,i):hd(t,e,i,r);try{const a=o(i);if(null!=a||i&bt.Optional)return a;ui()}finally{ps()}}else if("number"==typeof o){let a=null,c=mp(n,t),d=fc,h=i&bt.Host?t[cr][rn]:null;for((-1===c||i&bt.SkipSelf)&&(d=-1===c?mu(n,t):t[c+8],d!==fc&&bp(i,!1)?(a=t[ie],c=du(d),t=Tl(d,t)):c=-1);-1!==c;){const p=t[ie];if(_p(o,c,p.data)){const _=gu(c,t,e,a,i,h);if(_!==sa)return _}d=t[c+8],d!==fc&&bp(i,t[ie].data[c+8]===h)&&_p(o,c,t)?(a=p,c=du(d),t=Tl(d,t)):c=-1}}return r}function gu(n,t,e,i,r,o){const a=t[ie],c=a.data[n+8],p=Na(c,a,e,null==i?cd(c)&&Yh:i!=a&&0!=(3&c.type),r&bt.Host&&o===c);return null!==p?Vc(t,a,p,c):sa}function Na(n,t,e,i,r){const o=n.providerIndexes,a=t.data,c=1048575&o,d=n.directiveStart,p=o>>20,M=r?c+p:n.directiveEnd;for(let S=i?c:c+p;S<M;S++){const P=a[S];if(S<d&&e===P||S>=d&&P.type===e)return S}if(r){const S=a[d];if(S&&Fs(S)&&S.type===e)return d}return null}function Vc(n,t,e,i){let r=n[e];const o=t.data;if(function Pb(n){return n instanceof mc}(r)){const a=r;a.resolving&&function Mr(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new ve(-200,`Circular dependency in DI detected for ${n}${e}`)}(function An(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Zt(n)}(o[e]));const c=uu(a.canSeeViewProviders);a.resolving=!0;const d=a.injectImpl?$i(a.injectImpl):null;Hh(n,i,bt.Default);try{r=n[e]=a.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function qx(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const a=Gm(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,a)}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!==d&&$i(d),uu(c),a.resolving=!1,ps()}}return r}function _p(n,t,e){return!!(e[t+(n>>Bc)]&1<<n)}function bp(n,t){return!(n&bt.Self||n&bt.Host&&t)}class Hc{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return pu(this._tNode,this._lView,t,Tr(i),e)}}function Hb(){return new Hc(Sr(),ke())}function ai(n){return Ho(()=>{const t=n.prototype.constructor,e=t[Ur]||_u(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[Ur]||_u(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function _u(n){return or(n)?()=>{const t=_u(Bt(n));return t&&t()}:Lc(n)}function Kh(n){const t=n[ie],e=t.type;return 2===e?t.declTNode:1===e?n[rn]:null}function Os(n){return function ew(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<i;){const o=e[r];if(up(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(o===t)return e[r+1];r+=2}}}return null}(Sr(),n)}const Ba="__parameters__";function kl(n,t,e){return Ho(()=>{const i=function Qh(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 a=new r(...o);return c.annotation=a,c;function c(d,h,p){const _=d.hasOwnProperty(Ba)?d[Ba]:Object.defineProperty(d,Ba,{value:[]})[Ba];for(;_.length<=p;)_.push(null);return(_[p]=_[p]||[]).push(a),d}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class De{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=it({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Va(n,t){n.forEach(e=>Array.isArray(e)?Va(e,t):t(e))}function bu(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Il(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Si(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function Wr(n,t,e){let i=$c(n,t);return i>=0?n[1|i]=e:(i=~i,function Al(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 Cp(n,t){const e=$c(n,t);if(e>=0)return n[1|e]}function $c(n,t){return function fd(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),a=n[o<<e];if(t===a)return o<<e;a>t?r=o:i=o+1}return~(r<<e)}(n,t,1)}const tf=Js(kl("Inject",n=>({token:n})),-1),po=Js(kl("Optional"),8),gc=Js(kl("SkipSelf"),4);var Gr=(()=>((Gr=Gr||{})[Gr.Important=1]="Important",Gr[Gr.DashCase=2]="DashCase",Gr))();const rf=new Map;let iy=0;const af="__ngContext__";function Ar(n,t){jo(t)?(n[af]=t[Qr],function ry(n){rf.set(n[Qr],n)}(t)):n[af]=t}let df;function uf(n,t){return df(n,t)}function Ll(n){const t=n[ot];return As(t)?t[ot]:t}function hf(n){return Bp(n[ta])}function Mu(n){return Bp(n[ze])}function Bp(n){for(;null!==n&&!As(n);)n=n[ze];return n}function Nl(n,t,e,i,r){if(null!=i){let o,a=!1;As(i)?o=i:jo(i)&&(a=!0,i=i[Pe]);const c=lr(i);0===n&&null!==e?null==r?Up(t,e,c):Wc(t,e,c,r||null,!0):1===n&&null!==e?Wc(t,e,c,r||null,!0):2===n?function Au(n,t,e){const i=Eu(n,t);i&&function xy(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,c,a):3===n&&t.destroyNode(c),null!=o&&function wy(n,t,e,i,r){const o=e[qd];o!==lr(e)&&Nl(t,n,i,o,r);for(let c=Jr;c<e.length;c++){const d=e[c];ca(d[ie],d,n,t,i,o)}}(t,n,o,e,r)}}function mf(n,t,e){return n.createElement(t,e)}function zp(n,t){const e=n[yl],i=e.indexOf(t),r=t[ot];512&t[me]&&(t[me]&=-513,dr(r,-1)),e.splice(i,1)}function pf(n,t){if(n.length<=Jr)return;const e=Jr+t,i=n[e];if(i){const r=i[fo];null!==r&&r!==n&&zp(r,i),t>0&&(n[e-1][ze]=i[ze]);const o=Il(n,Jr+t);!function Hp(n,t){ca(n,t,t[kn],2,null,null),t[Pe]=null,t[rn]=null}(i[ie],i);const a=o[mo];null!==a&&a.detachView(o[ie]),i[ot]=null,i[ze]=null,i[me]&=-65}return i}function $p(n,t){if(!(128&t[me])){const e=t[kn];e.destroyNode&&ca(n,t,e,3,null,null),function _y(n){let t=n[ta];if(!t)return Tu(n[ie],n);for(;t;){let e=null;if(jo(t))e=t[ta];else{const i=t[Jr];i&&(e=i)}if(!e){for(;t&&!t[ze]&&t!==n;)jo(t)&&Tu(t[ie],t),t=t[ot];null===t&&(t=n),jo(t)&&Tu(t[ie],t),e=t&&t[ze]}t=e}}(t)}}function Tu(n,t){if(!(128&t[me])){t[me]&=-65,t[me]|=128,function Cy(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof mc)){const o=e[i+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){const c=r[o[a]],d=o[a+1];fs(4,c,d);try{d.call(c)}finally{fs(5,c,d)}}else{fs(4,r,o);try{o.call(r)}finally{fs(5,r,o)}}}}}(n,t),function vy(n,t){const e=n.cleanup,i=t[En];let r=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const a=e[o+3];a>=0?i[r=a]():i[r=-a].unsubscribe(),o+=2}else{const a=i[r=e[o+1]];e[o].call(a)}if(null!==i){for(let o=r+1;o<i.length;o++)(0,i[o])();t[En]=null}}(n,t),1===t[ie].type&&t[kn].destroy();const e=t[fo];if(null!==e&&As(t[ot])){e!==t[ot]&&zp(e,t);const i=t[mo];null!==i&&i.detachView(n)}!function _d(n){rf.delete(n[Qr])}(t)}}function jp(n,t,e){return function gf(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[Pe];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:o}=n.data[i.directiveStart+r];if(o===Er.None||o===Er.Emulated)return null}return ms(i,e)}}(n,t.parent,e)}function Wc(n,t,e,i,r){n.insertBefore(t,e,i,r)}function Up(n,t,e){n.appendChild(t,e)}function Wp(n,t,e,i,r){null!==i?Wc(n,t,e,i,r):Up(n,t,e)}function Eu(n,t){return n.parentNode(t)}function Yp(n,t,e){return qp(n,t,e)}let _f,Ou,ur,Vl,qp=function Zp(n,t,e){return 40&n.type?ms(n,e):null};function ku(n,t,e,i){const r=jp(n,i,t),o=t[kn],c=Yp(i.parent||t[rn],i,t);if(null!=r)if(Array.isArray(e))for(let d=0;d<e.length;d++)Wp(o,r,e[d],c,!1);else Wp(o,r,e,c,!1);void 0!==_f&&_f(o,i,t,e,r)}function Su(n,t){if(null!==t){const e=t.type;if(3&e)return ms(t,n);if(4&e)return Iu(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Su(n,i);{const r=n[t.index];return As(r)?Iu(-1,r):lr(r)}}if(32&e)return uf(t,n)()||lr(n[t.index]);{const i=Xp(n,t);return null!==i?Array.isArray(i)?i[0]:Su(Ll(n[cr]),i):Su(n,t.next)}}return null}function Xp(n,t){return null!==t?n[cr][rn].projection[t.projection]:null}function Iu(n,t){const e=Jr+n+1;if(e<t.length){const i=t[e],r=i[ie].firstChild;if(null!==r)return Su(i,r)}return t[qd]}function Fu(n,t,e,i,r,o,a){for(;null!=e;){const c=i[e.index],d=e.type;if(a&&0===t&&(c&&Ar(lr(c),i),e.flags|=2),32!=(32&e.flags))if(8&d)Fu(n,t,e.child,i,r,o,!1),Nl(t,n,r,c,o);else if(32&d){const h=uf(e,i);let p;for(;p=h();)Nl(t,n,r,p,o);Nl(t,n,r,c,o)}else 16&d?Qp(n,t,i,e,r,o):Nl(t,n,r,c,o);e=a?e.projectionNext:e.next}}function ca(n,t,e,i,r,o){Fu(e,i,n.firstChild,t,r,o,!1)}function Qp(n,t,e,i,r,o){const a=e[cr],d=a[rn].projection[i.projection];if(Array.isArray(d))for(let h=0;h<d.length;h++)Nl(t,n,r,d[h],o);else Fu(n,t,d,a[ot],r,o,!0)}function Jp(n,t,e){""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e)}function eg(n,t,e){const{mergedAttrs:i,classes:r,styles:o}=e;null!==i&&dp(n,t,i),null!==r&&Jp(n,t,r),null!==o&&function My(n,t,e){n.setAttribute(t,"style",e)}(n,t,o)}function Bl(n){return function Ru(){if(void 0===Ou&&(Ou=null,$n.trustedTypes))try{Ou=$n.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Ou}()?.createHTML(n)||n}function Yc(n){return function gs(){if(void 0===Vl&&(Vl=null,$n.trustedTypes))try{Vl=$n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Vl}()?.createHTML(n)||n}class la{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ki})`}}class Pu extends la{getTypeName(){return"HTML"}}class ky extends la{getTypeName(){return"Style"}}class ig extends la{getTypeName(){return"Script"}}class yf extends la{getTypeName(){return"URL"}}class vf extends la{getTypeName(){return"ResourceURL"}}function Ji(n){return n instanceof la?n.changingThisBreaksApplicationSecurity:n}function da(n,t){const e=function rg(n){return n instanceof la&&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 ${ki})`)}return e===t}class Ay{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Bl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class Fy{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const e=this.inertDocument.createElement("template");return e.innerHTML=Bl(t),e}}const Ry=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Nu(n){return(n=String(n)).match(Ry)?n:"unsafe:"+n}function _s(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function bd(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const Py=_s("area,br,col,hr,img,wbr"),Cf=_s("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xf=_s("rp,rt"),wf=bd(Py,bd(Cf,_s("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),bd(xf,_s("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),bd(xf,Cf)),Df=_s("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),za=bd(Df,_s("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),_s("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Bu=_s("script,style,template");class Vu{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!wf.hasOwnProperty(e))return this.sanitizedSomething=!0,!Bu.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),a=o.name,c=a.toLowerCase();if(!za.hasOwnProperty(c)){this.sanitizedSomething=!0;continue}let d=o.value;Df[c]&&(d=Nu(d)),this.buf.push(" ",a,'="',cg(d),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();wf.hasOwnProperty(e)&&!Py.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(cg(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 Ny=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ag=/([^\#-~ |!])/g;function cg(n){return n.replace(/&/g,"&amp;").replace(Ny,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ag,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let yd;function lg(n,t){let e=null;try{yd=yd||function sg(n){const t=new Fy(n);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Bl(""),"text/html")}catch{return!1}}()?new Ay(t):t}(n);let i=t?String(t):"";e=yd.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=yd.getInertBodyElement(i)}while(i!==o);return Bl((new Vu).sanitizeChildren(Hu(e)||e))}finally{if(e){const i=Hu(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Hu(n){return"content"in n&&function By(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Zn=(()=>((Zn=Zn||{})[Zn.NONE=0]="NONE",Zn[Zn.HTML=1]="HTML",Zn[Zn.STYLE=2]="STYLE",Zn[Zn.SCRIPT=3]="SCRIPT",Zn[Zn.URL=4]="URL",Zn[Zn.RESOURCE_URL=5]="RESOURCE_URL",Zn))();function dg(n){const t=function Zc(){const n=ke();return n&&n[Zd]}();return t?Yc(t.sanitize(Zn.HTML,n)||""):da(n,"HTML")?Yc(Ji(n)):lg(function ng(){return void 0!==ur?ur:typeof document<"u"?document:void 0}(),Zt(n))}const kf=new De("ENVIRONMENT_INITIALIZER"),fg=new De("INJECTOR",-1),Sf=new De("INJECTOR_DEF_TYPES");class mg{get(t,e=Fa){if(e===Fa){const i=new Error(`NullInjectorError: No provider for ${He(t)}!`);throw i.name="NullInjectorError",i}return e}}function zy(...n){return{\u0275providers:If(0,n),\u0275fromNgModule:!0}}function If(n,...t){const e=[],i=new Set;let r;return Va(t,o=>{const a=o;$u(a,e,[],i)&&(r||(r=[]),r.push(a))}),void 0!==r&&gg(r,e),e}function gg(n,t){for(let e=0;e<n.length;e++){const{providers:r}=n[e];ju(r,o=>{t.push(o)})}}function $u(n,t,e,i){if(!(n=Bt(n)))return!1;let r=null,o=Tn(n);const a=!o&&I(n);if(o||a){if(a&&!a.standalone)return!1;r=n}else{const d=n.ngModule;if(o=Tn(d),!o)return!1;r=d}const c=i.has(r);if(a){if(c)return!1;if(i.add(r),a.dependencies){const d="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const h of d)$u(h,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!c){let h;i.add(r);try{Va(o.imports,p=>{$u(p,t,e,i)&&(h||(h=[]),h.push(p))})}finally{}void 0!==h&&gg(h,t)}if(!c){const h=Lc(r)||(()=>new r);t.push({provide:r,useFactory:h,deps:Pn},{provide:Sf,useValue:r,multi:!0},{provide:kf,useValue:()=>te(r),multi:!0})}const d=o.providers;null==d||c||ju(d,p=>{t.push(p)})}}return r!==n&&void 0!==n.providers}function ju(n,t){for(let e of n)ao(e)&&(e=e.\u0275providers),Array.isArray(e)?ju(e,t):t(e)}const Af=On({provide:String,useValue:On});function zl(n){return null!==n&&"object"==typeof n&&Af in n}function qc(n){return"function"==typeof n}const Uu=new De("Set Injector scope."),vd={},Uy={};let $l;function Wu(){return void 0===$l&&($l=new mg),$l}class Kc{}class _g extends Kc{get destroyed(){return this._destroyed}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,Rf(t,a=>this.processProvider(a)),this.records.set(fg,jl(void 0,this)),r.has("environment")&&this.records.set(Kc,jl(void 0,this));const o=this.records.get(Uu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Sf.multi,Pn,bt.Self))}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=jr(this),i=$i(void 0);try{return t()}finally{jr(e),$i(i)}}get(t,e=Fa,i=bt.Default){this.assertNotDestroyed(),i=Tr(i);const r=jr(this),o=$i(void 0);try{if(!(i&bt.SkipSelf)){let c=this.records.get(t);if(void 0===c){const d=function Zy(n){return"function"==typeof n||"object"==typeof n&&n instanceof De}(t)&&Ts(t);c=d&&this.injectableDefInScope(d)?jl(bc(t),vd):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(i&bt.Self?Wu():this.parent).get(t,e=i&bt.Optional&&e===Fa?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[sc]=a[sc]||[]).unshift(He(t)),r)throw a;return function ad(n,t,e,i){const r=n[sc];throw t[Es]&&r.unshift(t[Es]),n.message=function Rc(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&n.charAt(1)==Oc?n.slice(2):n;let r=He(t);if(Array.isArray(t))r=t.map(He).join(" -> ");else if("object"==typeof t){let o=[];for(let a in t)if(t.hasOwnProperty(a)){let c=t[a];o.push(a+":"+("string"==typeof c?JSON.stringify(c):He(c)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(_l,"\n ")}`}("\n"+n.message,r,e,i),n[sd]=r,n[sc]=null,n}(a,t,"R3InjectorError",this.source)}throw a}finally{$i(o),jr(r)}}resolveInjectorInitializers(){const t=jr(this),e=$i(void 0);try{const i=this.get(kf.multi,Pn,bt.Self);for(const r of i)r()}finally{jr(t),$i(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(He(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ve(205,!1)}processProvider(t){let e=qc(t=Bt(t))?t:Bt(t&&t.provide);const i=function Gy(n){return zl(n)?jl(void 0,n.useValue):jl(bg(n),vd)}(t);if(qc(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=jl(void 0,vd,!0),r.factory=()=>ac(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===vd&&(e.value=Uy,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Yy(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=Bt(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function bc(n){const t=Ts(n),e=null!==t?t.factory:Lc(n);if(null!==e)return e;if(n instanceof De)throw new ve(204,!1);if(n instanceof Function)return function Wy(n){const t=n.length;if(t>0)throw Si(t,"?"),new ve(204,!1);const e=function Oe(n){const t=n&&(n[Di]||n[Fn]);return t?(function nt(n){if(n.hasOwnProperty("name"))return n.name;(""+n).match(/^function\s*([^\s(]+)/)}(n),t):null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new ve(204,!1)}function bg(n,t,e){let i;if(qc(n)){const r=Bt(n);return Lc(r)||bc(r)}if(zl(n))i=()=>Bt(n.useValue);else if(function Of(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...ac(n.deps||[]));else if(function Ff(n){return!(!n||!n.useExisting)}(n))i=()=>te(Bt(n.useExisting));else{const r=Bt(n&&(n.useClass||n.provide));if(!function yg(n){return!!n.deps}(n))return Lc(r)||bc(r);i=()=>new r(...ac(n.deps))}return i}function jl(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Rf(n,t){for(const e of n)Array.isArray(e)?Rf(e,t):e&&ao(e)?Rf(e.\u0275providers,t):t(e)}class bw{}class s{}class b{resolveComponentFactory(t){throw function l(n){const t=Error(`No component factory found for ${He(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let v=(()=>{class n{}return n.NULL=new b,n})();function C(){return T(Sr(),ke())}function T(n,t){return new E(ms(n,t))}let E=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=C,n})();function F(n){return n instanceof E?n.nativeElement:n}class B{}let ee=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function Y(){const n=ke(),e=Uo(Sr().index,n);return(jo(e)?e:n)[kn]}(),n})(),se=(()=>{class n{}return n.\u0275prov=it({token:n,providedIn:"root",factory:()=>null}),n})();class ct{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Vt=new ct("15.2.2"),xe={},ue="ngOriginalError";function Fe(n){return n[ue]}class Xe{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&&Fe(t);for(;e&&Fe(e);)e=Fe(e);return e||null}}function Rt(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 Yt="ng-template";function on(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Rt(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Vi(n){return 4===n.type&&n.value!==Yt}function fi(n,t,e){return t===(4!==n.type||e?n.value:Yt)}function mi(n,t,e){let i=4;const r=n.attrs||[],o=function _n(n){for(let t=0;t<n.length;t++)if(up(n[t]))return t;return n.length}(r);let a=!1;for(let c=0;c<t.length;c++){const d=t[c];if("number"!=typeof d){if(!a)if(4&i){if(i=2|1&i,""!==d&&!fi(n,d,e)||""===d&&1===t.length){if(ii(i))return!1;a=!0}}else{const h=8&i?d:t[++c];if(8&i&&null!==n.attrs){if(!on(n.attrs,h,e)){if(ii(i))return!1;a=!0}continue}const _=Un(8&i?"class":d,r,Vi(n),e);if(-1===_){if(ii(i))return!1;a=!0;continue}if(""!==h){let M;M=_>o?"":r[_+1].toLowerCase();const S=8&i?M:null;if(S&&-1!==Rt(S,h,0)||2&i&&h!==M){if(ii(i))return!1;a=!0}}}}else{if(!a&&!ii(i)&&!ii(d))return!1;if(a&&ii(d))continue;a=!1,i=d|1&i}}return ii(i)||a}function ii(n){return 0==(1&n)}function Un(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r<t.length;){const a=t[r];if(a===n)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){let c=t[++r];for(;"string"==typeof c;)c=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function In(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function Pi(n,t,e=!1){for(let i=0;i<t.length;i++)if(mi(n,t[i],e))return!0;return!1}function Le(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Ii(n,t){return n?":not("+t.trim()+")":t}function ci(n){let t=n[0],e=1,i=2,r="",o=!1;for(;e<n.length;){let a=n[e];if("string"==typeof a)if(2&i){const c=n[++e];r+="["+a+(c.length>0?'="'+c+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!ii(a)&&(t+=Ii(o,r),r=""),i=a,o=o||!ii(i);e++}return""!==r&&(t+=Ii(o,r)),t}const Ne={};function R(n){Ul(Bn(),ke(),Ir()+n,!1)}function Ul(n,t,e,i){if(!i)if(3==(3&t[me])){const o=n.preOrderCheckHooks;null!==o&&cu(t,o,e)}else{const o=n.preOrderHooks;null!==o&&lu(t,o,0,e)}uc(e)}function Cw(n,t=null,e=null,i){const r=xw(n,t,e,i);return r.resolveInjectorInitializers(),r}function xw(n,t=null,e=null,i,r=new Set){const o=[e||Pn,zy(n)];return i=i||("object"==typeof n?void 0:He(n)),new _g(o,t||Wu(),i||null,r)}let Zo=(()=>{class n{static create(e,i){if(Array.isArray(e))return Cw({name:""},i,e,"");{const r=e.name??"";return Cw({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Fa,n.NULL=new mg,n.\u0275prov=it({token:n,providedIn:"any",factory:()=>te(fg)}),n.__NG_ELEMENT_ID__=-1,n})();function x(n,t=bt.Default){const e=ke();return null===e?te(n,t):pu(Sr(),e,Bt(n),t)}function Pf(){throw new Error("invalid")}function Sw(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const o=e[i+1];if(-1!==o){const a=n.data[o];ou(e[i]),a.contentQueries(2,t[o],o)}}}function Cg(n,t,e,i,r,o,a,c,d,h,p){const _=t.blueprint.slice();return _[Pe]=r,_[me]=76|i,(null!==p||n&&1024&n[me])&&(_[me]|=1024),Nh(_),_[ot]=_[lc]=n,_[jt]=e,_[Pc]=a||n&&n[Pc],_[kn]=c||n&&n[kn],_[Zd]=d||n&&n[Zd]||null,_[Dt]=h||n&&n[Dt]||null,_[rn]=o,_[Qr]=function jn(){return iy++}(),_[jm]=p,_[cr]=2==t.type?n[cr]:_,_}function Yu(n,t,e,i,r){let o=n.data[t];if(null===o)o=function Jy(n,t,e,i,r){const o=tp(),a=np(),d=n.data[t]=function hF(n,t,e,i,r,o){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=d),null!==o&&(a?null==o.child&&null!==d.parent&&(o.child=d):null===o.next&&(o.next=d,d.prev=o)),d}(n,t,e,i,r),function Ab(){return Nt.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const a=function Nc(){const n=Nt.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();o.injectorIndex=null===a?-1:a.injectorIndex}return ra(o,!0),o}function Lf(n,t,e,i){if(0===e)return-1;const r=t.length;for(let o=0;o<e;o++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function ev(n,t,e){zh(t);try{const i=n.viewQuery;null!==i&&dv(1,i,e);const r=n.template;null!==r&&Iw(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Sw(n,t),n.staticViewQueries&&dv(2,n.viewQuery,e);const o=n.components;null!==o&&function lF(n,t){for(let e=0;e<t.length;e++)AF(n,t[e])}(t,o)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[me]&=-5,dd()}}function xg(n,t,e,i){const r=t[me];if(128!=(128&r)){zh(t);try{Nh(t),function tu(n){return Nt.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&Iw(n,t,e,2,i);const a=3==(3&r);if(a){const h=n.preOrderCheckHooks;null!==h&&cu(t,h,null)}else{const h=n.preOrderHooks;null!==h&&lu(t,h,0,null),Dl(t,0)}if(function SF(n){for(let t=hf(n);null!==t;t=Mu(t)){if(!t[Um])continue;const e=t[yl];for(let i=0;i<e.length;i++){const r=e[i];512&r[me]||dr(r[ot],1),r[me]|=512}}}(t),function kF(n){for(let t=hf(n);null!==t;t=Mu(t))for(let e=Jr;e<t.length;e++){const i=t[e],r=i[ie];Cl(i)&&xg(r,i,r.template,i[jt])}}(t),null!==n.contentQueries&&Sw(n,t),a){const h=n.contentCheckHooks;null!==h&&cu(t,h)}else{const h=n.contentHooks;null!==h&&lu(t,h,1),Dl(t,1)}!function aF(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)uc(~r);else{const o=r,a=e[++i],c=e[++i];Fb(a,o),c(2,t[o])}}}finally{uc(-1)}}(n,t);const c=n.components;null!==c&&function cF(n,t){for(let e=0;e<t.length;e++)IF(n,t[e])}(t,c);const d=n.viewQuery;if(null!==d&&dv(2,d,i),a){const h=n.viewCheckHooks;null!==h&&cu(t,h)}else{const h=n.viewHooks;null!==h&&lu(t,h,2),Dl(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[me]&=-41,512&t[me]&&(t[me]&=-513,dr(t[ot],-1))}finally{dd()}}}function Iw(n,t,e,i,r){const o=Ir(),a=2&i;try{uc(-1),a&&t.length>Ci&&Ul(n,t,Ci,!1),fs(a?2:0,r),e(i,r)}finally{uc(o),fs(a?3:1,r)}}function tv(n,t,e){if(Oh(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o<r;o++){const a=n.data[o];a.contentQueries&&a.contentQueries(1,e[o],o)}}}function nv(n,t,e){ia()&&(function bF(n,t,e,i){const r=e.directiveStart,o=e.directiveEnd;cd(e)&&function MF(n,t,e){const i=ms(t,n),r=Aw(e),o=n[Pc],a=wg(n,Cg(n,r,null,e.onPush?32:16,i,t,o,o.createRenderer(i,e),null,null,null));n[t.index]=a}(t,e,n.data[r+e.componentOffset]),n.firstCreatePass||hu(e,t),Ar(i,t);const a=e.initialInputs;for(let c=r;c<o;c++){const d=n.data[c],h=Vc(t,n,c,e);Ar(h,t),null!==a&&TF(0,c-r,h,d,0,a),Fs(d)&&(Uo(e.index,t)[jt]=Vc(t,n,c,e))}}(n,t,e,ms(e,t)),64==(64&e.flags)&&Nw(n,t,e))}function iv(n,t,e=ms){const i=t.localNames;if(null!==i){let r=t.index+1;for(let o=0;o<i.length;o+=2){const a=i[o+1],c=-1===a?e(t,n):n[a];n[r++]=c}}}function Aw(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=rv(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function rv(n,t,e,i,r,o,a,c,d,h){const p=Ci+i,_=p+r,M=function dF(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:Ne);return e}(p,_),S="function"==typeof h?h():h;return M[ie]={type:n,blueprint:M,template:e,queries:null,viewQuery:c,declTNode:t,data:M.slice().fill(null,p),bindingStartIndex:p,expandoStartIndex:_,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:d,consts:S,incompleteFirstPass:!1}}function Fw(n,t,e,i){const r=Vw(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&Hw(n).push(i,r.length-1))}function Ow(n,t,e,i){for(let r in n)if(n.hasOwnProperty(r)){e=null===e?{}:e;const o=n[r];null===i?Rw(e,t,r,o):i.hasOwnProperty(r)&&Rw(e,t,i[r],o)}return e}function Rw(n,t,e,i){n.hasOwnProperty(e)?n[e].push(t,i):n[e]=[t,i]}function Ps(n,t,e,i,r,o,a,c){const d=ms(t,e);let p,h=t.inputs;!c&&null!=h&&(p=h[i])?(uv(n,e,p,i,r),cd(t)&&Pw(e,t.index)):3&t.type&&(i=function mF(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=a?a(r,t.value||"",i):r,o.setProperty(d,i,r))}function Pw(n,t){const e=Uo(t,n);16&e[me]||(e[me]|=32)}function ov(n,t,e,i){if(ia()){const r=null===i?null:{"":-1},o=function vF(n,t){const e=n.directiveRegistry;let i=null,r=null;if(e)for(let o=0;o<e.length;o++){const a=e[o];if(Pi(t,a.selectors,!1))if(i||(i=[]),Fs(a))if(null!==a.findHostDirectiveDefs){const c=[];r=r||new Map,a.findHostDirectiveDefs(a,c,r),i.unshift(...c,a),sv(n,t,c.length)}else i.unshift(a),sv(n,t,0);else r=r||new Map,a.findHostDirectiveDefs?.(a,i,r),i.push(a)}return null===i?null:[i,r]}(n,e);let a,c;null===o?a=c=null:[a,c]=o,null!==a&&Lw(n,t,e,a,r,c),r&&function CF(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const o=e[t[r+1]];if(null==o)throw new ve(-301,!1);i.push(t[r],o)}}}(e,i,r)}e.mergedAttrs=Ml(e.mergedAttrs,e.attrs)}function Lw(n,t,e,i,r,o){for(let h=0;h<i.length;h++)ud(hu(e,t),n,i[h].type);!function wF(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}(e,n.data.length,i.length);for(let h=0;h<i.length;h++){const p=i[h];p.providersResolver&&p.providersResolver(p)}let a=!1,c=!1,d=Lf(n,t,i.length,null);for(let h=0;h<i.length;h++){const p=i[h];e.mergedAttrs=Ml(e.mergedAttrs,p.hostAttrs),DF(n,e,t,d,p),xF(d,p,r),null!==p.contentQueries&&(e.flags|=4),(null!==p.hostBindings||null!==p.hostAttrs||0!==p.hostVars)&&(e.flags|=64);const _=p.type.prototype;!a&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!c&&(_.ngOnChanges||_.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),c=!0),d++}!function fF(n,t,e){const r=t.directiveEnd,o=n.data,a=t.attrs,c=[];let d=null,h=null;for(let p=t.directiveStart;p<r;p++){const _=o[p],M=e?e.get(_):null,P=M?M.outputs:null;d=Ow(_.inputs,p,d,M?M.inputs:null),h=Ow(_.outputs,p,h,P);const $=null===d||null===a||Vi(t)?null:EF(d,p,a);c.push($)}null!==d&&(d.hasOwnProperty("class")&&(t.flags|=8),d.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=c,t.inputs=d,t.outputs=h}(n,e,o)}function Nw(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function nu(){return Nt.lFrame.currentDirectiveIndex}();try{uc(o);for(let c=i;c<r;c++){const d=n.data[c],h=t[c];iu(c),(null!==d.hostBindings||0!==d.hostVars||null!==d.hostAttrs)&&yF(d,h)}}finally{uc(-1),iu(a)}}function yF(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function sv(n,t,e){t.componentOffset=e,(n.components||(n.components=[])).push(t.index)}function xF(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;Fs(t)&&(e[""]=n)}}function DF(n,t,e,i,r){n.data[i]=r;const o=r.factory||(r.factory=Lc(r.type)),a=new mc(o,Fs(r),x);n.blueprint[i]=a,e[i]=a,function gF(n,t,e,i,r){const o=r.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const c=~t.index;(function _F(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=c&&a.push(c),a.push(e,i,o)}}(n,t,i,Lf(n,e,r.hostVars,Ne),r)}function yc(n,t,e,i,r,o){const a=ms(n,t);!function av(n,t,e,i,r,o,a){if(null==o)n.removeAttribute(t,r,e);else{const c=null==a?Zt(o):a(o,i||"",r);n.setAttribute(t,r,c,e)}}(t[kn],a,o,n.value,e,i,r)}function TF(n,t,e,i,r,o){const a=o[t];if(null!==a){const c=i.setInput;for(let d=0;d<a.length;){const h=a[d++],p=a[d++],_=a[d++];null!==c?i.setInput(e,_,h,p):e[p]=_}}}function EF(n,t,e){let i=null,r=0;for(;r<e.length;){const o=e[r];if(0!==o)if(5!==o){if("number"==typeof o)break;if(n.hasOwnProperty(o)){null===i&&(i=[]);const a=n[o];for(let c=0;c<a.length;c+=2)if(a[c]===t){i.push(o,a[c+1],e[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function Bw(n,t,e,i){return[n,!0,!1,t,null,0,i,e,null,null]}function IF(n,t){const e=Uo(t,n);if(Cl(e)){const i=e[ie];48&e[me]?xg(i,e,i.template,e[jt]):e[Pt]>0&&cv(e)}}function cv(n){for(let i=hf(n);null!==i;i=Mu(i))for(let r=Jr;r<i.length;r++){const o=i[r];if(Cl(o))if(512&o[me]){const a=o[ie];xg(a,o,a.template,o[jt])}else o[Pt]>0&&cv(o)}const e=n[ie].components;if(null!==e)for(let i=0;i<e.length;i++){const r=Uo(e[i],n);Cl(r)&&r[Pt]>0&&cv(r)}}function AF(n,t){const e=Uo(t,n),i=e[ie];(function FF(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),ev(i,e,e[jt])}function wg(n,t){return n[ta]?n[bl][ze]=t:n[ta]=t,n[bl]=t,t}function lv(n){for(;n;){n[me]|=32;const t=Ll(n);if(Cb(n)&&!t)return n;n=t}return null}function Dg(n,t,e,i=!0){const r=t[Pc];r.begin&&r.begin();try{xg(n,t,n.template,e)}catch(a){throw i&&$w(t,a),a}finally{r.end&&r.end()}}function dv(n,t,e){ou(0),t(n,e)}function Vw(n){return n[En]||(n[En]=[])}function Hw(n){return n.cleanup||(n.cleanup=[])}function zw(n,t,e){return(null===n||Fs(n))&&(e=function Pa(n){for(;Array.isArray(n);){if("object"==typeof n[Fh])return n;n=n[Pe]}return null}(e[t.index])),e[kn]}function $w(n,t){const e=n[Dt],i=e?e.get(Xe,null):null;i&&i.handleError(t)}function uv(n,t,e,i,r){for(let o=0;o<e.length;){const a=e[o++],c=e[o++],d=t[a],h=n.data[a];null!==h.setInput?h.setInput(d,r,i,c):d[c]=r}}function Mg(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,o=0;if(null!==t)for(let a=0;a<t.length;a++){const c=t[a];"number"==typeof c?o=c:1==o?r=Kr(r,c):2==o&&(i=Kr(i,c+": "+t[++a]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}function Tg(n,t,e,i,r=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&i.push(lr(o)),As(o))for(let c=Jr;c<o.length;c++){const d=o[c],h=d[ie].firstChild;null!==h&&Tg(d[ie],d,h,i)}const a=e.type;if(8&a)Tg(n,t,e.child,i);else if(32&a){const c=uf(e,t);let d;for(;d=c();)i.push(d)}else if(16&a){const c=Xp(t,e);if(Array.isArray(c))i.push(...c);else{const d=Ll(t[cr]);Tg(d[ie],d,c,i,!0)}}e=r?e.projectionNext:e.next}return i}class Nf{get rootNodes(){const t=this._lView,e=t[ie];return Tg(e,t,e.firstChild,[])}constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[jt]}set context(t){this._lView[jt]=t}get destroyed(){return 128==(128&this._lView[me])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ot];if(As(t)){const e=t[Kd],i=e?e.indexOf(this):-1;i>-1&&(pf(t,i),Il(e,i))}this._attachedToViewContainer=!1}$p(this._lView[ie],this._lView)}onDestroy(t){Fw(this._lView[ie],this._lView,null,t)}markForCheck(){lv(this._cdRefInjectingView||this._lView)}detach(){this._lView[me]&=-65}reattach(){this._lView[me]|=64}detectChanges(){Dg(this._lView[ie],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ve(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function gy(n,t){ca(n,t,t[kn],2,null,null)}(this._lView[ie],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ve(902,!1);this._appRef=t}}class OF extends Nf{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Dg(t[ie],t,t[jt],!1)}checkNoChanges(){}get context(){return null}}class jw extends v{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=I(t);return new Bf(e,this.ngModule)}}function Uw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class PF{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=Tr(i);const r=this.injector.get(t,xe,i);return r!==xe||e===xe?r:this.parentInjector.get(t,e,i)}}class Bf extends s{get inputs(){return Uw(this.componentDef.inputs)}get outputs(){return Uw(this.componentDef.outputs)}constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function to(n){return n.map(ci).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof Kc?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new PF(t,o):t,c=a.get(B,null);if(null===c)throw new ve(407,!1);const d=a.get(se,null),h=c.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",_=i?function uF(n,t,e){return n.selectRootElement(t,e===Er.ShadowDom)}(h,i,this.componentDef.encapsulation):mf(h,p,function RF(n){const t=n.toLowerCase();return"svg"===t?na:"math"===t?"math":null}(p)),M=this.componentDef.onPush?288:272,S=rv(0,null,null,1,0,null,null,null,null,null),P=Cg(null,S,null,M,null,null,c,h,d,a,null);let $,Q;zh(P);try{const ae=this.componentDef;let Be,fe=null;ae.findHostDirectiveDefs?(Be=[],fe=new Map,ae.findHostDirectiveDefs(ae,Be,fe),Be.push(ae)):Be=[ae];const xt=function NF(n,t){const e=n[ie],i=Ci;return n[i]=t,Yu(e,i,2,"#host",null)}(P,_),Gn=function BF(n,t,e,i,r,o,a,c){const d=r[ie];!function VF(n,t,e,i){for(const r of n)t.mergedAttrs=Ml(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(Mg(t,t.mergedAttrs,!0),null!==e&&eg(i,e,t))}(i,n,t,a);const h=o.createRenderer(t,e),p=Cg(r,Aw(e),null,e.onPush?32:16,r[n.index],n,o,h,c||null,null,null);return d.firstCreatePass&&sv(d,n,i.length-1),wg(r,p),r[n.index]=p}(xt,_,ae,Be,P,c,h);Q=Km(S,Ci),_&&function zF(n,t,e,i){if(i)dp(n,e,["ng-version",Vt.full]);else{const{attrs:r,classes:o}=function no(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let o=n[i];if("string"==typeof o)2===r?""!==o&&t.push(o,n[++i]):8===r&&e.push(o);else{if(!ii(r))break;r=o}i++}return{attrs:t,classes:e}}(t.selectors[0]);r&&dp(n,e,r),o&&o.length>0&&Jp(n,e,o.join(" "))}}(h,ae,_,i),void 0!==e&&function $F(n,t,e){const i=n.projection=[];for(let r=0;r<t.length;r++){const o=e[r];i.push(null!=o?Array.from(o):null)}}(Q,this.ngContentSelectors,e),$=function HF(n,t,e,i,r,o){const a=Sr(),c=r[ie],d=ms(a,r);Lw(c,r,a,e,null,i);for(let p=0;p<e.length;p++)Ar(Vc(r,c,a.directiveStart+p,a),r);Nw(c,r,a),d&&Ar(d,r);const h=Vc(r,c,a.directiveStart+a.componentOffset,a);if(n[jt]=r[jt]=h,null!==o)for(const p of o)p(h,t);return tv(c,a,n),h}(Gn,ae,Be,fe,P,[jF]),ev(S,P,null)}finally{dd()}return new LF(this.componentType,$,T(Q,P),P,Q)}}class LF extends bw{constructor(t,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new OF(r),this.componentType=t}setInput(t,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[t])){const o=this._rootLView;uv(o[ie],o,r,t,e),Pw(o,this._tNode.index)}}get injector(){return new Hc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function jF(){const n=Sr();au(ke()[ie],n)}function dt(n){let t=function Ww(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Fs(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ve(903,!1);r=t.\u0275dir}if(r){if(e){i.push(r);const a=n;a.inputs=hv(n.inputs),a.declaredInputs=hv(n.declaredInputs),a.outputs=hv(n.outputs);const c=r.hostBindings;c&&YF(n,c);const d=r.viewQuery,h=r.contentQueries;if(d&&WF(n,d),h&&GF(n,h),so(n.inputs,r.inputs),so(n.declaredInputs,r.declaredInputs),so(n.outputs,r.outputs),Fs(r)&&r.data.animation){const p=n.data;p.animation=(p.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let a=0;a<o.length;a++){const c=o[a];c&&c.ngInherit&&c(n),c===dt&&(e=!1)}}t=Object.getPrototypeOf(t)}!function UF(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ml(r.hostAttrs,e=Ml(e,r.hostAttrs))}}(i)}function hv(n){return n===ho?{}:n===Pn?[]:n}function WF(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function GF(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function YF(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}function Eg(n){return!!fv(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function fv(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function vc(n,t,e){return n[t]=e}function _o(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function sn(n,t,e,i){const r=ke();return _o(r,ld(),t)&&(Bn(),yc(Ri(),r,n,t,e,i)),sn}function qu(n,t,e,i){return _o(n,ld(),e)?t+Zt(e)+i:Ne}function pe(n,t,e,i,r,o,a,c){const d=ke(),h=Bn(),p=n+Ci,_=h.firstCreatePass?function iO(n,t,e,i,r,o,a,c,d){const h=t.consts,p=Yu(t,n,4,a||null,Wo(h,c));ov(t,e,p,Wo(h,d)),au(t,p);const _=p.tView=rv(2,p,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,h);return null!==t.queries&&(t.queries.template(t,p),_.queries=t.queries.embeddedTView(p)),p}(p,h,d,t,e,i,r,o,a):h.data[p];ra(_,!1);const M=d[kn].createComment("");ku(h,d,M,_),Ar(M,d),wg(d,d[p]=Bw(M,d,M,_)),Xd(_)&&nv(h,d,_),null!=a&&iv(d,_,c)}function qo(n){return vl(function Zx(){return Nt.lFrame.contextLView}(),Ci+n)}function U(n,t,e){const i=ke();return _o(i,ld(),t)&&Ps(Bn(),Ri(),i,n,t,i[kn],e,!1),U}function mv(n,t,e,i,r){const a=r?"class":"style";uv(n,e,t.inputs[a],a,i)}function D(n,t,e,i){const r=ke(),o=Bn(),a=Ci+n,c=r[kn],d=o.firstCreatePass?function oO(n,t,e,i,r,o){const a=t.consts,d=Yu(t,n,2,i,Wo(a,r));return ov(t,e,d,Wo(a,o)),null!==d.attrs&&Mg(d,d.attrs,!1),null!==d.mergedAttrs&&Mg(d,d.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,d),d}(a,o,r,t,e,i):o.data[a],h=r[a]=mf(c,t,function Rb(){return Nt.lFrame.currentNamespace}()),p=Xd(d);return ra(d,!0),eg(c,h,d),32!=(32&d.flags)&&ku(o,r,h,d),0===function Qd(){return Nt.lFrame.elementDepthCount}()&&Ar(h,r),function Jd(){Nt.lFrame.elementDepthCount++}(),p&&(nv(o,r,d),tv(o,d,r)),null!==i&&iv(r,d),D}function w(){let n=Sr();np()?ip():(n=n.parent,ra(n,!1));const t=n;!function Ib(){Nt.lFrame.elementDepthCount--}();const e=Bn();return e.firstCreatePass&&(au(e,n),Oh(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function Xx(n){return 0!=(8&n.flags)}(t)&&mv(e,t,ke(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function lp(n){return 0!=(16&n.flags)}(t)&&mv(e,t,ke(),t.stylesWithoutHost,!1),w}function Ge(n,t,e,i){return D(n,t,e,i),w(),Ge}function bo(n,t,e){const i=ke(),r=Bn(),o=n+Ci,a=r.firstCreatePass?function sO(n,t,e,i,r){const o=t.consts,a=Wo(o,i),c=Yu(t,n,8,"ng-container",a);return null!==a&&Mg(c,a,!0),ov(t,e,c,Wo(o,r)),null!==t.queries&&t.queries.elementStart(t,c),c}(o,r,i,t,e):r.data[o];ra(a,!0);const c=i[o]=i[kn].createComment("");return ku(r,i,c,a),Ar(c,i),Xd(a)&&(nv(r,i,a),tv(r,a,i)),null!=e&&iv(i,a),bo}function yo(){let n=Sr();const t=Bn();return np()?ip():(n=n.parent,ra(n,!1)),t.firstCreatePass&&(au(t,n),Oh(n)&&t.queries.elementEnd(n)),yo}function Dn(){return ke()}function Sg(n){return!!n&&"function"==typeof n.then}function s1(n){return!!n&&"function"==typeof n.subscribe}const a1=s1;function ge(n,t,e,i){const r=ke(),o=Bn(),a=Sr();return c1(o,r,r[kn],a,n,t,i),ge}function pv(n,t){const e=Sr(),i=ke(),r=Bn();return c1(r,i,zw(ru(r.data),e,i),e,n,t),pv}function c1(n,t,e,i,r,o,a){const c=Xd(i),h=n.firstCreatePass&&Hw(n),p=t[jt],_=Vw(t);let M=!0;if(3&i.type||a){const $=ms(i,t),Q=a?a($):$,ae=_.length,Be=a?xt=>a(lr(xt[i.index])):i.index;let fe=null;if(!a&&c&&(fe=function aO(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const a=r[o];if(a===e&&r[o+1]===i){const c=t[En],d=r[o+2];return c.length>d?c[d]:null}"string"==typeof a&&(o+=2)}return null}(n,t,r,i.index)),null!==fe)(fe.__ngLastListenerFn__||fe).__ngNextListenerFn__=o,fe.__ngLastListenerFn__=o,M=!1;else{o=d1(i,t,p,o,!1);const xt=e.listen(Q,r,o);_.push(o,xt),h&&h.push(r,Be,ae,ae+1)}}else o=d1(i,t,p,o,!1);const S=i.outputs;let P;if(M&&null!==S&&(P=S[r])){const $=P.length;if($)for(let Q=0;Q<$;Q+=2){const Gn=t[P[Q]][P[Q+1]].subscribe(o),ri=_.length;_.push(o,Gn),h&&h.push(r,i.index,ri,-(ri+1))}}}function l1(n,t,e,i){try{return fs(6,t,e),!1!==e(i)}catch(r){return $w(n,r),!1}finally{fs(7,t,e)}}function d1(n,t,e,i,r){return function o(a){if(a===Function)return i;lv(n.componentOffset>-1?Uo(n.index,t):t);let d=l1(t,e,i,a),h=o.__ngNextListenerFn__;for(;h;)d=l1(t,e,h,a)&&d,h=h.__ngNextListenerFn__;return r&&!1===d&&(a.preventDefault(),a.returnValue=!1),d}}function _e(n=1){return function jh(n){return(Nt.lFrame.contextLView=function Uh(n,t){for(;n>0;)t=t[lc],n--;return t}(n,Nt.lFrame.contextLView))[jt]}(n)}function cO(n,t){let e=null;const i=function mt(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const o=t[r];if("*"!==o){if(null===i?Pi(n,o,!0):Le(i,o))return r}else e=r}return e}function xi(n){const t=ke()[cr][rn];if(!t.projection){const i=t.projection=Si(n?n.length:1,null),r=i.slice();let o=t.child;for(;null!==o;){const a=n?cO(o,n):0;null!==a&&(r[a]?r[a].projectionNext=o:i[a]=o,r[a]=o),o=o.next}}}function Kt(n,t=0,e){const i=ke(),r=Bn(),o=Yu(r,Ci+n,16,null,e||null);null===o.projection&&(o.projection=t),ip(),32!=(32&o.flags)&&function bf(n,t,e){Qp(t[kn],0,t,e,jp(n,e,t),Yp(e.parent||t[rn],e,t))}(r,i,o)}function Hf(n,t,e){return gv(n,"",t,"",e),Hf}function gv(n,t,e,i,r){const o=ke(),a=qu(o,t,e,i);return a!==Ne&&Ps(Bn(),Ri(),o,n,a,o[kn],r,!1),gv}function Ig(n,t){return n<<17|t<<2}function Wl(n){return n>>17&32767}function _v(n){return 2|n}function xd(n){return(131068&n)>>2}function bv(n,t){return-131069&n|t<<2}function yv(n){return 1|n}function y1(n,t,e,i,r){const o=n[e+1],a=null===t;let c=i?Wl(o):xd(o),d=!1;for(;0!==c&&(!1===d||a);){const p=n[c+1];mO(n[c],t)&&(d=!0,n[c+1]=i?yv(p):_v(p)),c=i?Wl(p):xd(p)}d&&(n[e+1]=i?_v(o):yv(o))}function mO(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&$c(n,t)>=0}const Or={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function v1(n){return n.substring(Or.key,Or.keyEnd)}function C1(n,t){const e=Or.textEnd;return e===t?-1:(t=Or.keyEnd=function bO(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,Or.key=t,e),ih(n,t,e))}function ih(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function zf(n,t,e){return ja(n,t,e,!1),zf}function an(n,t){return ja(n,t,null,!0),an}function xc(n,t){for(let e=function gO(n){return function w1(n){Or.key=0,Or.keyEnd=0,Or.value=0,Or.valueEnd=0,Or.textEnd=n.length}(n),C1(n,ih(n,0,Or.textEnd))}(t);e>=0;e=C1(t,e))Wr(n,v1(t),!0)}function ja(n,t,e,i){const r=ke(),o=Bn(),a=dc(2);o.firstUpdatePass&&E1(o,n,a,i),t!==Ne&&_o(r,a,t)&&S1(o,o.data[Ir()],r,r[kn],n,r[a+1]=function SO(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=He(Ji(n)))),n}(t,e),i,a)}function T1(n,t){return t>=n.expandoStartIndex}function E1(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[Ir()],a=T1(n,e);A1(o,i)&&null===t&&!a&&(t=!1),t=function wO(n,t,e,i){const r=ru(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=$f(e=vv(null,n,t,e,i),t.attrs,i),o=null);else{const a=t.directiveStylingLast;if(-1===a||n[a]!==r)if(e=vv(r,n,t,e,i),null===o){let d=function DO(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==xd(i))return n[Wl(i)]}(n,t,i);void 0!==d&&Array.isArray(d)&&(d=vv(null,n,t,d[1],i),d=$f(d,t.attrs,i),function MO(n,t,e,i){n[Wl(e?t.classBindings:t.styleBindings)]=i}(n,t,i,d))}else o=function TO(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<r;o++)i=$f(i,n[o].hostAttrs,e);return $f(i,t.attrs,e)}(n,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),e}(r,o,t,i),function hO(n,t,e,i,r,o){let a=o?t.classBindings:t.styleBindings,c=Wl(a),d=xd(a);n[i]=e;let p,h=!1;if(Array.isArray(e)?(p=e[1],(null===p||$c(e,p)>0)&&(h=!0)):p=e,r)if(0!==d){const M=Wl(n[c+1]);n[i+1]=Ig(M,c),0!==M&&(n[M+1]=bv(n[M+1],i)),n[c+1]=function dO(n,t){return 131071&n|t<<17}(n[c+1],i)}else n[i+1]=Ig(c,0),0!==c&&(n[c+1]=bv(n[c+1],i)),c=i;else n[i+1]=Ig(d,0),0===c?c=i:n[d+1]=bv(n[d+1],i),d=i;h&&(n[i+1]=_v(n[i+1])),y1(n,p,i,!0),y1(n,p,i,!1),function fO(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&$c(o,t)>=0&&(e[i+1]=yv(e[i+1]))}(t,p,n,i,o),a=Ig(c,d),o?t.classBindings=a:t.styleBindings=a}(r,o,t,e,a,i)}}function vv(n,t,e,i,r){let o=null;const a=e.directiveEnd;let c=e.directiveStylingLast;for(-1===c?c=e.directiveStart:c++;c<a&&(o=t[c],i=$f(i,o.hostAttrs,r),o!==n);)c++;return null!==n&&(e.directiveStylingLast=c),i}function $f(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Wr(n,a,!!e||t[++o]))}return void 0===n?null:n}function S1(n,t,e,i,r,o,a,c){if(!(3&t.type))return;const d=n.data,h=d[c+1],p=function uO(n){return 1==(1&n)}(h)?I1(d,t,e,r,xd(h),a):void 0;Ag(p)||(Ag(o)||function lO(n){return 2==(2&n)}(h)&&(o=I1(d,null,e,r,c,a)),function Dy(n,t,e,i,r){if(t)r?n.addClass(e,i):n.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:Gr.DashCase;null==r?n.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Gr.Important),n.setStyle(e,i,r,o))}}(i,a,Lh(Ir(),e),r,o))}function I1(n,t,e,i,r,o){const a=null===t;let c;for(;r>0;){const d=n[r],h=Array.isArray(d),p=h?d[1]:d,_=null===p;let M=e[r+1];M===Ne&&(M=_?Pn:void 0);let S=_?Cp(M,i):p===i?M:void 0;if(h&&!Ag(S)&&(S=Cp(d,i)),Ag(S)&&(c=S,a))return c;const P=n[r+1];r=a?Wl(P):xd(P)}if(null!==t){let d=o?t.residualClasses:t.residualStyles;null!=d&&(c=Cp(d,i))}return c}function Ag(n){return void 0!==n}function A1(n,t){return 0!=(n.flags&(t?8:16))}function N(n,t=""){const e=ke(),i=Bn(),r=n+Ci,o=i.firstCreatePass?Yu(i,r,1,t,null):i.data[r],a=e[r]=function ff(n,t){return n.createText(t)}(e[kn],t);ku(i,e,a,o),ra(o,!1)}function bn(n){return Ai("",n,""),bn}function Ai(n,t,e){const i=ke(),r=qu(i,n,t,e);return r!==Ne&&function Xc(n,t,e){const i=Lh(t,n);!function Vp(n,t,e){n.setValue(t,e)}(n[kn],i,e)}(i,Ir(),r),Ai}function H1(n,t,e){!function Ua(n,t,e,i){const r=Bn(),o=dc(2);r.firstUpdatePass&&E1(r,null,o,i);const a=ke();if(e!==Ne&&_o(a,o,e)){const c=r.data[Ir()];if(A1(c,i)&&!T1(r,o)){let d=i?c.classesWithoutHost:c.stylesWithoutHost;null!==d&&(e=Kr(d,e||"")),mv(r,c,a,e,i)}else!function kO(n,t,e,i,r,o,a,c){r===Ne&&(r=Pn);let d=0,h=0,p=0<r.length?r[0]:null,_=0<o.length?o[0]:null;for(;null!==p||null!==_;){const M=d<r.length?r[d+1]:void 0,S=h<o.length?o[h+1]:void 0;let $,P=null;p===_?(d+=2,h+=2,M!==S&&(P=_,$=S)):null===_||null!==p&&p<_?(d+=2,P=p):(h+=2,P=_,$=S),null!==P&&S1(n,t,e,i,P,$,a,c),p=d<r.length?r[d]:null,_=h<o.length?o[h]:null}}(r,c,a,a[kn],a[o+1],a[o+1]=function EO(n,t,e){if(null==e||""===e)return Pn;const i=[],r=Ji(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)n(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&n(i,o,r[o]);else"string"==typeof r&&t(i,r);return i}(n,t,e),i,o)}}(Wr,xc,qu(ke(),n,t,e),!0)}function Ls(n,t,e){const i=ke();return _o(i,ld(),t)&&Ps(Bn(),Ri(),i,n,t,i[kn],e,!0),Ls}function Cv(n,t,e){const i=ke();if(_o(i,ld(),t)){const o=Bn(),a=Ri();Ps(o,a,i,n,t,zw(ru(o.data),a,i),e,!0)}return Cv}const oh="en-US";let Q1=oh;function Dv(n,t,e,i,r){if(n=Bt(n),Array.isArray(n))for(let o=0;o<n.length;o++)Dv(n[o],t,e,i,r);else{const o=Bn(),a=ke();let c=qc(n)?n:Bt(n.provide),d=bg(n);const h=Sr(),p=1048575&h.providerIndexes,_=h.directiveStart,M=h.providerIndexes>>20;if(qc(n)||!n.multi){const S=new mc(d,r,x),P=Tv(c,t,r?p:p+M,_);-1===P?(ud(hu(h,a),o,c),Mv(o,n,t.length),t.push(c),h.directiveStart++,h.directiveEnd++,r&&(h.providerIndexes+=1048576),e.push(S),a.push(S)):(e[P]=S,a[P]=S)}else{const S=Tv(c,t,p+M,_),P=Tv(c,t,p,p+M),Q=P>=0&&e[P];if(r&&!Q||!r&&!(S>=0&&e[S])){ud(hu(h,a),o,c);const ae=function GR(n,t,e,i,r){const o=new mc(n,e,x);return o.multi=[],o.index=t,o.componentProviders=0,wD(o,r,i&&!e),o}(r?WR:UR,e.length,r,i,d);!r&&Q&&(e[P].providerFactory=ae),Mv(o,n,t.length,0),t.push(c),h.directiveStart++,h.directiveEnd++,r&&(h.providerIndexes+=1048576),e.push(ae),a.push(ae)}else Mv(o,n,S>-1?S:P,wD(e[r?P:S],d,!r&&i));!r&&i&&Q&&e[P].componentProviders++}}}function Mv(n,t,e,i){const r=qc(t),o=function jy(n){return!!n.useClass}(t);if(r||o){const d=(o?Bt(t.useClass):t).prototype.ngOnDestroy;if(d){const h=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const p=h.indexOf(e);-1===p?h.push(e,[i,d]):h[p+1].push(i,d)}else h.push(e,d)}}}function wD(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Tv(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function UR(n,t,e,i){return Ev(this.multi,[])}function WR(n,t,e,i){const r=this.multi;let o;if(this.providerFactory){const a=this.providerFactory.componentProviders,c=Vc(e,e[ie],this.providerFactory.index,i);o=c.slice(0,a),Ev(r,o);for(let d=a;d<c.length;d++)o.push(c[d])}else o=[],Ev(r,o);return o}function Ev(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function Wt(n,t=[]){return e=>{e.providersResolver=(i,r)=>function jR(n,t,e){const i=Bn();if(i.firstCreatePass){const r=Fs(n);Dv(e,i.data,i.blueprint,r,!0),Dv(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class sh{}class YR{}class DD extends sh{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jw(this);const i=function he(n,t){const e=n[ea]||null;if(!e&&!0===t)throw new Error(`Type ${He(n)} does not have '\u0275mod' property.`);return e}(t);this._bootstrapComponents=function We(n){return n instanceof Function?n():n}(i.bootstrap),this._r3Injector=xw(t,e,[{provide:sh,useValue:this},{provide:v,useValue:this.componentFactoryResolver}],He(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 kv extends YR{constructor(t){super(),this.moduleType=t}create(t){return new DD(this.moduleType,t)}}class qR extends sh{constructor(t,e,i){super(),this.componentFactoryResolver=new jw(this),this.instance=null;const r=new _g([...t,{provide:sh,useValue:this},{provide:v,useValue:this.componentFactoryResolver}],e||Wu(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let KR=(()=>{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=If(0,e.type),r=i.length>0?function MD(n,t,e=null){return new qR(n,t,e).injector}([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=it({token:n,providedIn:"environment",factory:()=>new n(te(Kc))}),n})();function TD(n){n.getStandaloneInjector=t=>t.get(KR).getOrCreateStandaloneInjector(n)}function Wa(n,t,e){const i=eo()+n,r=ke();return r[i]===Ne?vc(r,i,e?t.call(e):t()):function Vf(n,t){return n[t]}(r,i)}function RD(n,t,e,i,r){return function LD(n,t,e,i,r,o,a){const c=t+e;return function Cd(n,t,e,i){const r=_o(n,t,e);return _o(n,t+1,i)||r}(n,c,r,o)?vc(n,c+2,a?i.call(a,r,o):i(r,o)):Zf(n,c+2)}(ke(),eo(),n,t,e,i,r)}function Zf(n,t){const e=n[t];return e===Ne?void 0:e}function PD(n,t,e,i,r,o){const a=t+e;return _o(n,a,r)?vc(n,a+1,o?i.call(o,r):i(r)):Zf(n,a+1)}function Iv(n,t){const e=Bn();let i;const r=n+Ci;e.firstCreatePass?(i=function hP(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=Lc(i.type)),a=$i(x);try{const c=uu(!1),d=o();return uu(c),function rO(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,ke(),r,d),d}finally{$i(a)}}function Av(n,t,e){const i=n+Ci,r=ke(),o=vl(r,i);return function qf(n,t){return n[ie].data[t].pure}(r,i)?PD(r,eo(),t,o.transform,e,o):o.transform(e)}function Fv(n){return t=>{setTimeout(n,void 0,t)}}const Je=class _P extends Ee{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),a=i;if(t&&"object"==typeof t){const d=t;r=d.next?.bind(d),o=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(o=Fv(o),r&&(r=Fv(r)),a&&(a=Fv(a)));const c=super.subscribe({next:r,error:o,complete:a});return t instanceof ne&&t.add(c),c}};function bP(){return this._results[Symbol.iterator]()}class Gl{get changes(){return this._changes||(this._changes=new Je)}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=Gl.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=bP)}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=function Yo(n){return n.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Jh(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],o=t[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let hr=(()=>{class n{}return n.__NG_ELEMENT_ID__=CP,n})();const yP=hr,vP=class extends yP{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tView,r=Cg(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[fo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[mo];return null!==a&&(r[mo]=a.createEmbeddedView(i)),ev(i,r,t),new Nf(r)}};function CP(){return Lg(Sr(),ke())}function Lg(n,t){return 4&n.type?new vP(t,n,T(n,t)):null}let fr=(()=>{class n{}return n.__NG_ELEMENT_ID__=xP,n})();function xP(){return $D(Sr(),ke())}const wP=fr,HD=class extends wP{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return T(this._hostTNode,this._hostLView)}get injector(){return new Hc(this._hostTNode,this._hostLView)}get parentInjector(){const t=mu(this._hostTNode,this._hostLView);if(fp(t)){const e=Tl(t,this._hostLView),i=du(t);return new Hc(e[ie].data[i+8],e)}return new Hc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=zD(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Jr}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=t.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(t,e,i,r,o){const a=t&&!function Go(n){return"function"==typeof n}(t);let c;if(a)c=e;else{const _=e||{};c=_.index,i=_.injector,r=_.projectableNodes,o=_.environmentInjector||_.ngModuleRef}const d=a?t:new Bf(I(t)),h=i||this.parentInjector;if(!o&&null==d.ngModule){const M=(a?h:this.parentInjector).get(Kc,null);M&&(o=M)}const p=d.create(h,r,void 0,o);return this.insert(p.hostView,c),p}insert(t,e){const i=t._lView,r=i[ie];if(function xl(n){return As(n[ot])}(i)){const p=this.indexOf(t);if(-1!==p)this.detach(p);else{const _=i[ot],M=new HD(_,_[rn],_[ot]);M.detach(M.indexOf(t))}}const o=this._adjustIndex(e),a=this._lContainer;!function by(n,t,e,i){const r=Jr+i,o=e.length;i>0&&(e[r-1][ze]=t),i<o-Jr?(t[ze]=e[r],bu(e,Jr+i,t)):(e.push(t),t[ze]=null),t[ot]=e;const a=t[fo];null!==a&&e!==a&&function yy(n,t){const e=n[yl];t[cr]!==t[ot][ot][cr]&&(n[Um]=!0),null===e?n[yl]=[t]:e.push(t)}(a,t);const c=t[mo];null!==c&&c.insertView(n),t[me]|=64}(r,i,a,o);const c=Iu(o,a),d=i[kn],h=Eu(d,a[qd]);return null!==h&&function py(n,t,e,i,r,o){i[Pe]=r,i[rn]=t,ca(n,i,e,1,r,o)}(r,a[rn],d,i,h,c),t.attachToViewContainerRef(),bu(Ov(a),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=zD(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=pf(this._lContainer,e);i&&(Il(Ov(this._lContainer),e),$p(i[ie],i))}detach(t){const e=this._adjustIndex(t,-1),i=pf(this._lContainer,e);return i&&null!=Il(Ov(this._lContainer),e)?new Nf(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function zD(n){return n[Kd]}function Ov(n){return n[Kd]||(n[Kd]=[])}function $D(n,t){let e;const i=t[n.index];if(As(i))e=i;else{let r;if(8&n.type)r=lr(i);else{const o=t[kn];r=o.createComment("");const a=ms(n,t);Wc(o,Eu(o,a),r,function Gp(n,t){return n.nextSibling(t)}(o,a),!1)}t[n.index]=e=Bw(i,t,r,n),wg(t,e)}return new HD(e,n,t)}class Rv{constructor(t){this.queryList=t,this.matches=null}clone(){return new Rv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Pv{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){const a=e.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new Pv(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==YD(t,e).matches&&this.queries[e].setDirty()}}class jD{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class Lv{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==e?e.push(o):e=[o])}return null!==e?new Lv(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Nv{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Nv(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(t,e,DP(e,o)),this.matchTNodeWithReadOption(t,e,Na(e,t,o,!1,!1))}else i===hr?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Na(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===E||r===fr||r===hr&&4&e.type)this.addMatch(e.index,-2);else{const o=Na(e,t,r,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function DP(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function TP(n,t,e,i){return-1===e?function MP(n,t){return 11&n.type?T(n,t):4&n.type?Lg(n,t):null}(t,n):-2===e?function EP(n,t,e){return e===E?T(t,n):e===hr?Lg(t,n):e===fr?$D(t,n):void 0}(n,t,i):Vc(n,n[ie],e,t)}function UD(n,t,e,i){const r=t[mo].queries[i];if(null===r.matches){const o=n.data,a=e.matches,c=[];for(let d=0;d<a.length;d+=2){const h=a[d];c.push(h<0?null:TP(t,o[h],a[d+1],e.metadata.read))}r.matches=c}return r.matches}function Bv(n,t,e,i){const r=n.queries.getByIndex(e),o=r.matches;if(null!==o){const a=UD(n,t,r,e);for(let c=0;c<o.length;c+=2){const d=o[c];if(d>0)i.push(a[c/2]);else{const h=o[c+1],p=t[-d];for(let _=Jr;_<p.length;_++){const M=p[_];M[fo]===M[ot]&&Bv(M[ie],M,h,i)}if(null!==p[yl]){const _=p[yl];for(let M=0;M<_.length;M++){const S=_[M];Bv(S[ie],S,h,i)}}}}}return i}function Mt(n){const t=ke(),e=Bn(),i=Vh();ou(i+1);const r=YD(e,i);if(n.dirty&&function Xm(n){return 4==(4&n[me])}(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const o=r.crossesNgTemplate?Bv(e,t,i,[]):UD(e,t,r,i);n.reset(o,F),n.notifyOnChanges()}return!0}return!1}function Vn(n,t,e){const i=Bn();i.firstCreatePass&&(GD(i,new jD(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),WD(i,ke(),t)}function Hn(n,t,e,i){const r=Bn();if(r.firstCreatePass){const o=Sr();GD(r,new jD(t,e,i),o.index),function SP(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}WD(r,ke(),e)}function Tt(){return function kP(n,t){return n[mo].queries[t].queryList}(ke(),Vh())}function WD(n,t,e){const i=new Gl(4==(4&e));Fw(n,t,i,i.destroy),null===t[mo]&&(t[mo]=new Pv),t[mo].queries.push(new Rv(i))}function GD(n,t,e){null===n.queries&&(n.queries=new Lv),n.queries.track(new Nv(t,e))}function YD(n,t){return n.queries.getByIndex(t)}function Ng(n,t){return Lg(n,t)}function Vg(...n){}const hM=new De("Application Initializer");let Hg=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Vg,this.reject=Vg,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<this.appInits.length;r++){const o=this.appInits[r]();if(Sg(o))e.push(o);else if(a1(o)){const a=new Promise((c,d)=>{o.subscribe({complete:c,error:d})});e.push(a)}}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)(te(hM,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lh=new De("AppId",{providedIn:"root",factory:function fM(){return`${jv()}${jv()}${jv()}`}});function jv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const mM=new De("Platform Initializer"),Xf=new De("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rr=new De("AnimationModuleType"),wc=new De("LocaleId",{providedIn:"root",factory:()=>_i(wc,bt.Optional|bt.SkipSelf)||function qP(){return typeof $localize<"u"&&$localize.locale||oh}()}),e2=(()=>Promise.resolve(0))();function Uv(n){typeof Zone>"u"?e2.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Gt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Je(!1),this.onMicrotaskEmpty=new Je(!1),this.onStable=new Je(!1),this.onError=new Je(!1),typeof Zone>"u")throw new ve(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,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 t2(){let n=$n.requestAnimationFrame,t=$n.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 o2(n){const t=()=>{!function r2(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call($n,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Gv(n),n.isCheckStableRunning=!0,Wv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Gv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,a,c)=>{try{return _M(n),e.invokeTask(r,o,a,c)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),bM(n)}},onInvoke:(e,i,r,o,a,c,d)=>{try{return _M(n),e.invoke(r,o,a,c,d)}finally{n.shouldCoalesceRunChangeDetection&&t(),bM(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Gv(n),Wv(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(!Gt.isInAngularZone())throw new ve(909,!1)}static assertNotInAngularZone(){if(Gt.isInAngularZone())throw new ve(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,t,n2,Vg,Vg);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const n2={};function Wv(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 Gv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function _M(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function bM(n){n._nesting--,Wv(n)}class s2{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Je,this.onMicrotaskEmpty=new Je,this.onStable=new Je,this.onError=new Je}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 yM=new De(""),zg=new De("");let qv,Yv=(()=>{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,qv||(function a2(n){qv=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:()=>{Gt.assertNotInAngularZone(),Uv(()=>{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())Uv(()=>{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(a=>a.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(Gt),te(Zv),te(zg))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})(),Zv=(()=>{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 qv?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Qc=!1;let Yl=null;const vM=new De("AllowMultipleToken"),Kv=new De("PlatformDestroyListeners"),c2=new De("appBootstrapListener");function xM(n,t,e=[]){const i=`Platform: ${t}`,r=new De(i);return(o=[])=>{let a=Xv();if(!a||a.injector.get(vM,!1)){const c=[...e,...o,{provide:r,useValue:!0}];n?n(c):function u2(n){if(Yl&&!Yl.get(vM,!1))throw new ve(400,!1);Yl=n;const t=n.get(DM);(function CM(n){const t=n.get(mM,null);t&&t.forEach(e=>e())})(n)}(function wM(n=[],t){return Zo.create({name:t,providers:[{provide:Uu,useValue:"platform"},{provide:Kv,useValue:new Set([()=>Yl=null])},...n]})}(c,i))}return function f2(n){const t=Xv();if(!t)throw new ve(401,!1);return t}()}}function Xv(){return Yl?.get(DM)??null}let DM=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function TM(n,t){let e;return e="noop"===n?new s2:("zone.js"===n?void 0:n)||new Gt(t),e}(i?.ngZone,function MM(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Gt,useValue:r}];return r.run(()=>{const a=Zo.create({providers:o,parent:this.injector,name:e.moduleType.name}),c=e.create(a),d=c.injector.get(Xe,null);if(!d)throw new ve(402,!1);return r.runOutsideAngular(()=>{const h=r.onError.subscribe({next:p=>{d.handleError(p)}});c.onDestroy(()=>{$g(this._modules,c),h.unsubscribe()})}),function EM(n,t,e){try{const i=e();return Sg(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,r,()=>{const h=c.injector.get(Hg);return h.runInitializers(),h.donePromise.then(()=>(function J1(n){Ki(n,"Expected localeId to be defined"),"string"==typeof n&&(Q1=n.toLowerCase().replace(/_/g,"-"))}(c.injector.get(wc,oh)||oh),this._moduleDoBootstrap(c),c))})})}bootstrapModule(e,i=[]){const r=kM({},i);return function l2(n,t,e){const i=new kv(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Qf);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new ve(-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 ve(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Kv,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)(te(Zo))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function kM(n,t){return Array.isArray(t)?t.reduce(kM,n):{...n,...t}}let Qf=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}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 ye(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),a=new ye(c=>{let d;this._zone.runOutsideAngular(()=>{d=this._zone.onStable.subscribe(()=>{Gt.assertNotInAngularZone(),Uv(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const h=this._zone.onUnstable.subscribe(()=>{Gt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{d.unsubscribe(),h.unsubscribe()}});this.isStable=si(o,a.pipe(qs()))}bootstrap(e,i){const r=e instanceof s;if(!this._injector.get(Hg).done){!r&&function oe(n){const t=I(n)||z(n)||H(n);return null!==t&&t.standalone}(e);throw new ve(405,Qc)}let a;a=r?e:this._injector.get(v).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const c=function d2(n){return n.isBoundToModule}(a)?void 0:this._injector.get(sh),h=a.create(Zo.NULL,[],i||a.selector,c),p=h.location.nativeElement,_=h.injector.get(yM,null);return _?.registerApplication(p),h.onDestroy(()=>{this.detachView(h.hostView),$g(this.components,h),_?.unregisterApplication(p)}),this._loadComponent(h),h}tick(){if(this._runningTick)throw new ve(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;$g(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(c2,[]);i.push(...this._bootstrapListeners),i.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),()=>$g(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ve(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(Gt),te(Kc),te(Xe))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $g(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let li=(()=>{class n{}return n.__NG_ELEMENT_ID__=p2,n})();function p2(n){return function g2(n,t,e){if(cd(n)&&!e){const i=Uo(n.index,t);return new Nf(i,i)}return 47&n.type?new Nf(t[cr],t):null}(Sr(),ke(),16==(16&n))}class OM{constructor(){}supports(t){return Eg(t)}create(t){return new x2(t)}}const C2=(n,t)=>t;class x2{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||C2}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 a=!i||e&&e.currentIndex<PM(i,r,o)?e:i,c=PM(a,r,o),d=a.currentIndex;if(a===i)r--,i=i._nextRemoved;else if(e=e._next,null==a.previousIndex)r++;else{o||(o=[]);const h=c-r,p=d-r;if(h!=p){for(let M=0;M<h;M++){const S=M<o.length?o[M]:o[M]=0,P=S+M;p<=P&&P<h&&(o[M]=S+1)}o[a.previousIndex]=p-h}}c!==d&&t(a,c,d)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Eg(t))throw new ve(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,o,a,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let c=0;c<this.length;c++)o=t[c],a=this._trackByFn(c,o),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,o,a,c)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,a,c),i=!0),e=e._next}else r=0,function eO(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Symbol.iterator]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,c=>{a=this._trackByFn(r,c),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,c,a,r)),Object.is(e.item,c)||this._addIdentityChange(e,c)):(e=this._mismatch(e,c,a,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 w2(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 RM),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 RM),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 w2{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 D2{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 RM{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new D2,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 PM(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class LM{constructor(){}supports(t){return t instanceof Map||fv(t)}create(){return new M2}}class M2{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||fv(t)))throw new ve(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const i=new T2(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class T2{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function NM(){return new Wg([new OM])}let Wg=(()=>{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||NM()),deps:[[n,new gc,new po]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new ve(901,!1)}}return n.\u0275prov=it({token:n,providedIn:"root",factory:NM}),n})();function BM(){return new Jf([new LM])}let Jf=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(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||BM()),deps:[[n,new gc,new po]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new ve(901,!1)}}return n.\u0275prov=it({token:n,providedIn:"root",factory:BM}),n})();const S2=xM(null,"core",[]);let I2=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(te(Qf))},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({}),n})();let r0=null;function Jc(){return r0}class O2{}const cn=new De("DocumentToken");let VM=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:function(){return function R2(){return te(HM)}()},providedIn:"platform"}),n})(),HM=(()=>{class n extends VM{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jc().getBaseHref(this._doc)}onPopState(e){const i=Jc().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Jc().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){zM()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){zM()?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)(te(cn))},n.\u0275prov=it({token:n,factory:function(){return function P2(){return new HM(te(cn))}()},providedIn:"platform"}),n})();function zM(){return!!window.history.pushState}function $M(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 jM(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 Md(n){return n&&"?"!==n[0]?"?"+n:n}let o0=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:function(){return _i(N2)},providedIn:"root"}),n})();const L2=new De("appBaseHref");let N2=(()=>{class n extends o0{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??_i(cn).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 $M(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Md(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const a=this.prepareExternalUrl(r+Md(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){const a=this.prepareExternalUrl(r+Md(o));this._platformLocation.replaceState(e,i,a)}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)(te(VM),te(L2,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UM=(()=>{class n{constructor(e){this._subject=new Je,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function H2(n){if(new RegExp("^(https?:)?//").test(n)){const[,e]=n.split(/\/\/[^\/]+/);return e}return n}(jM(WM(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+Md(i))}normalize(e){return n.stripTrailingSlash(function V2(n,t){if(!n||!t.startsWith(n))return t;const e=t.substring(n.length);return""===e||["/",";","?","#"].includes(e[0])?e:t}(this._basePath,WM(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+Md(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Md(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=Md,n.joinWithSlash=$M,n.stripTrailingSlash=jM,n.\u0275fac=function(e){return new(e||n)(te(o0))},n.\u0275prov=it({token:n,factory:function(){return function B2(){return new UM(te(o0))}()},providedIn:"root"}),n})();function WM(n){return n.replace(/\/index.html$/,"")}function eT(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}const p0=/\s+/,tT=[];let dh=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=tT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(p0):tT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(p0):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(p0).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(x(Wg),x(Jf),x(E),x(ee))},n.\u0275dir=y({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class DL{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 ma=(()=>{class n{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new DL(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const c=i.get(o);i.move(c,a),rT(c,r)}});for(let r=0,o=i.length;r<o;r++){const c=i.get(r).context;c.index=r,c.count=o,c.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{rT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(x(fr),x(hr),x(Wg))},n.\u0275dir=y({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function rT(n,t){n.context.$implicit=t.item}let Fi=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new TL,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){oT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){oT("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)(x(fr),x(hr))},n.\u0275dir=y({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class TL{constructor(){this.$implicit=null,this.ngIf=null}}function oT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${He(t)}'.`)}class g0{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 uh=(()=>{class n{constructor(){this._defaultViews=[],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.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.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),t_=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new g0(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(x(fr),x(hr),x(uh,9))},n.\u0275dir=y({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),sT=(()=>{class n{constructor(e,i,r){r._addDefault(new g0(e,i))}}return n.\u0275fac=function(e){return new(e||n)(x(fr),x(hr),x(uh,9))},n.\u0275dir=y({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),cT=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(x(fr))},n.\u0275dir=y({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[kr]}),n})();class SL{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class IL{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const AL=new IL,FL=new SL;let _0=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Sg(e))return AL;if(s1(e))return FL;throw function Za(n,t){return new ve(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(x(li,16))},n.\u0275pipe=A({name:"async",type:n,pure:!1,standalone:!0}),n})(),pa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({}),n})();const dT="browser";function uT(n){return n===dT}class fT{}class TN extends O2{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x0 extends TN{static makeCurrent(){!function F2(n){r0||(r0=n)}(new x0)}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 EN(){return im=im||document.querySelector("base"),im?im.getAttribute("href"):null}();return null==e?null:function kN(n){r_=r_||document.createElement("a"),r_.setAttribute("href",n);const t=r_.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){im=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return eT(document.cookie,t)}}let r_,im=null;const bT=new De("TRANSITION_ID"),IN=[{provide:hM,useFactory:function SN(n,t,e){return()=>{e.get(Hg).donePromise.then(()=>{const i=Jc(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<r.length;o++)i.remove(r[o])})}},deps:[bT,cn,Zo],multi:!0}];let FN=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();const o_=new De("EventManagerPlugins");let s_=(()=>{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<r.length;o++){const a=r[o];if(a.supports(e))return this._eventNameToPlugin.set(e,a),a}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(te(o_),te(Gt))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();class yT{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Jc().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let vT=(()=>{class n{constructor(){this.usageCount=new Map}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)0===this.changeUsageCount(i,-1)&&this.onStyleRemoved(i)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,i){const r=this.usageCount;let o=r.get(e)??0;return o+=i,o>0?r.set(e,o):r.delete(e),o}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})(),rm=(()=>{class n extends vT{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.forEach(o=>o.remove()),i.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,i){const r=this.doc.createElement("style");r.textContent=i,e.appendChild(r);const o=this.styleRef.get(i);o?o.push(r):this.styleRef.set(i,[r])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return n.\u0275fac=function(e){return new(e||n)(te(cn))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();const w0={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/"},D0=/%COMP%/g,wT=new De("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function DT(n,t){return t.flat(100).map(e=>e.replace(D0,n))}function MT(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let a_=(()=>{class n{constructor(e,i,r,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new M0(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;const r=this.getOrCreateRenderer(e,i);return r instanceof kT?r.applyToHost(e):r instanceof T0&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const a=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestory;switch(i.encapsulation){case Er.Emulated:o=new kT(a,c,i,this.appId,d);break;case Er.ShadowDom:return new VN(a,c,e,i);default:o=new T0(a,c,i,d)}o.onDestroy=()=>r.delete(i.id),r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(te(s_),te(rm),te(lh),te(wT))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();class M0{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(w0[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(ET(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(ET(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=w0[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=w0[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&(Gr.DashCase|Gr.Important)?t.style.setProperty(e,i,r&Gr.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Gr.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,MT(i)):this.eventManager.addEventListener(t,e,MT(i))}}function ET(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class VN extends M0{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=DT(r.id,r.styles);for(const a of o){const c=document.createElement("style");c.textContent=a,this.shadowRoot.appendChild(c)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class T0 extends M0{constructor(t,e,i,r,o=i.id){super(t),this.sharedStylesHost=e,this.removeStylesOnCompDestory=r,this.rendererUsageCount=0,this.styles=DT(o,i.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class kT extends T0{constructor(t,e,i,r,o){const a=r+"-"+i.id;super(t,e,i,o,a),this.contentAttr=function LN(n){return"_ngcontent-%COMP%".replace(D0,n)}(a),this.hostAttr=function NN(n){return"_nghost-%COMP%".replace(D0,n)}(a)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}let HN=(()=>{class n extends yT{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)(te(cn))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();const ST=["alt","control","meta","shift"],zN={"\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"},$N={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let jN=(()=>{class n extends yT{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),a=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jc().onAndCancel(e,o.domEventName,a))}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 a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),ST.forEach(h=>{const p=i.indexOf(h);p>-1&&(i.splice(p,1),a+=h+".")}),a+=o,0!=i.length||0===o.length)return null;const d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(e,i){let r=zN[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"),ST.forEach(a=>{a!==r&&(0,$N[a])(e)&&(o+=a+".")}),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)(te(cn))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();const YN=xM(S2,"browser",[{provide:Xf,useValue:dT},{provide:mM,useValue:function UN(){x0.makeCurrent()},multi:!0},{provide:cn,useFactory:function GN(){return function Gc(n){ur=n}(document),document},deps:[]}]),FT=new De(""),OT=[{provide:zg,useClass:class AN{addToWindow(t){$n.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},$n.getAllAngularTestabilities=()=>t.getAllTestabilities(),$n.getAllAngularRootElements=()=>t.getAllRootElements(),$n.frameworkStabilizers||($n.frameworkStabilizers=[]),$n.frameworkStabilizers.push(i=>{const r=$n.getAllAngularTestabilities();let o=r.length,a=!1;const c=function(d){a=a||d,o--,0==o&&i(a)};r.forEach(function(d){d.whenStable(c)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Jc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:yM,useClass:Yv,deps:[Gt,Zv,zg]},{provide:Yv,useClass:Yv,deps:[Gt,Zv,zg]}],RT=[{provide:Uu,useValue:"root"},{provide:Xe,useFactory:function WN(){return new Xe},deps:[]},{provide:o_,useClass:HN,multi:!0,deps:[cn,Gt,Xf]},{provide:o_,useClass:jN,multi:!0,deps:[cn]},{provide:a_,useClass:a_,deps:[s_,rm,lh,wT]},{provide:B,useExisting:a_},{provide:vT,useExisting:rm},{provide:rm,useClass:rm,deps:[cn]},{provide:s_,useClass:s_,deps:[o_,Gt]},{provide:fT,useClass:FN,deps:[]},[]];let PT=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:lh,useValue:e.appId},{provide:bT,useExisting:lh},IN]}}}return n.\u0275fac=function(e){return new(e||n)(te(FT,12))},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[...RT,...OT],imports:[pa,I2]}),n})();typeof window<"u"&&window;let c_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:function(e){let i=null;return i=e?new(e||n):te(BT),i},providedIn:"root"}),n})(),BT=(()=>{class n extends c_{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Zn.NONE:return i;case Zn.HTML:return da(i,"HTML")?Ji(i):lg(this._doc,String(i)).toString();case Zn.STYLE:return da(i,"Style")?Ji(i):i;case Zn.SCRIPT:if(da(i,"Script"))return Ji(i);throw new Error("unsafe value used in a script context");case Zn.URL:return da(i,"URL")?Ji(i):Nu(String(i));case Zn.RESOURCE_URL:if(da(i,"ResourceURL"))return Ji(i);throw new Error(`unsafe value used in a resource URL context (see ${ki})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${ki})`)}}bypassSecurityTrustHtml(e){return function Sy(n){return new Pu(n)}(e)}bypassSecurityTrustStyle(e){return function Lu(n){return new ky(n)}(e)}bypassSecurityTrustScript(e){return function Iy(n){return new ig(n)}(e)}bypassSecurityTrustUrl(e){return function uw(n){return new yf(n)}(e)}bypassSecurityTrustResourceUrl(e){return function og(n){return new vf(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(te(cn))},n.\u0275prov=it({token:n,factory:function(e){let i=null;return i=e?new e:function eB(n){return new BT(n.get(cn))}(te(Zo)),i},providedIn:"root"}),n})();class VT{}class tB{}const tl="*";function nl(n,t){return{type:7,name:n,definitions:t,options:{}}}function vo(n,t=null){return{type:4,styles:t,timings:n}}function nB(n,t=null){return{type:3,steps:n,options:t}}function HT(n,t=null){return{type:2,steps:n,options:t}}function Ti(n){return{type:6,styles:n,offset:null}}function ga(n,t,e){return{type:0,name:n,styles:t,options:e}}function Co(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function iB(n=null){return{type:9,options:n}}function rB(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function zT(n){Promise.resolve().then(n)}class om{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(){zT(()=>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 $T{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?zT(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,c)=>Math.max(a,c.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}}const S0="!";function jT(n){return new ve(3e3,!1)}function VB(){return typeof window<"u"&&typeof window.document<"u"}function I0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ql(n){switch(n.length){case 0:return new om;case 1:return n[0];default:return new $T(n)}}function UT(n,t,e,i,r=new Map,o=new Map){const a=[],c=[];let d=-1,h=null;if(i.forEach(p=>{const _=p.get("offset"),M=_==d,S=M&&h||new Map;p.forEach((P,$)=>{let Q=$,ae=P;if("offset"!==$)switch(Q=t.normalizePropertyName(Q,a),ae){case S0:ae=r.get($);break;case tl:ae=o.get($);break;default:ae=t.normalizeStyleValue($,Q,ae,a)}S.set(Q,ae)}),M||c.push(S),h=S,d=_}),a.length)throw function EB(n){return new ve(3502,!1)}();return c}function A0(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&F0(e,"start",n)));break;case"done":n.onDone(()=>i(e&&F0(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&F0(e,"destroy",n)))}}function F0(n,t,e){const o=O0(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),a=n._data;return null!=a&&(o._data=a),o}function O0(n,t,e,i,r="",o=0,a){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Ns(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function WT(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let R0=(n,t)=>!1,GT=(n,t,e)=>[],YT=null;function P0(n){const t=n.parentNode||n.host;return t===YT?null:t}(I0()||typeof Element<"u")&&(VB()?(YT=(()=>document.documentElement)(),R0=(n,t)=>{for(;t;){if(t===n)return!0;t=P0(t)}return!1}):R0=(n,t)=>n.contains(t),GT=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Td=null,ZT=!1;const qT=R0,KT=GT;let XT=(()=>{class n{validateStyleProperty(e){return function zB(n){Td||(Td=function $B(){return typeof document<"u"?document.body:null}()||{},ZT=!!Td.style&&"WebkitAppearance"in Td.style);let t=!0;return Td.style&&!function HB(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Td.style,!t&&ZT&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Td.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return qT(e,i)}getParentElement(e){return P0(e)}query(e,i,r){return KT(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,c=[],d){return new om(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})(),L0=(()=>{class n{}return n.NOOP=new XT,n})();const jB=1e3,N0="ng-enter",l_="ng-leave",d_="ng-trigger",u_=".ng-trigger",JT="ng-animating",B0=".ng-animating";function il(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:V0(parseFloat(t[1]),t[2])}function V0(n,t){return"s"===t?n*jB:n}function h_(n,t,e){return n.hasOwnProperty("duration")?n:function WB(n,t,e){let r,o=0,a="";if("string"==typeof n){const c=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return t.push(jT()),{duration:0,delay:0,easing:""};r=V0(parseFloat(c[1]),c[2]);const d=c[3];null!=d&&(o=V0(parseFloat(d),c[4]));const h=c[5];h&&(a=h)}else r=n;if(!e){let c=!1,d=t.length;r<0&&(t.push(function oB(){return new ve(3100,!1)}()),c=!0),o<0&&(t.push(function sB(){return new ve(3101,!1)}()),c=!0),c&&t.splice(d,0,jT())}return{duration:r,delay:o,easing:a}}(n,t,e)}function sm(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function eE(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Kl(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 nE(n,t,e){return e?t+":"+e+";":""}function iE(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=nE(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=nE(0,qB(e),n.style[e]));n.setAttribute("style",t)}function Dc(n,t,e){n.style&&(t.forEach((i,r)=>{const o=z0(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),I0()&&iE(n))}function Ed(n,t){n.style&&(t.forEach((e,i)=>{const r=z0(i);n.style[r]=""}),I0()&&iE(n))}function am(n){return Array.isArray(n)?1==n.length?n[0]:HT(n):n}const H0=new RegExp("{{\\s*(.+?)\\s*}}","g");function rE(n){let t=[];if("string"==typeof n){let e;for(;e=H0.exec(n);)t.push(e[1]);H0.lastIndex=0}return t}function cm(n,t,e){const i=n.toString(),r=i.replace(H0,(o,a)=>{let c=t[a];return null==c&&(e.push(function cB(n){return new ve(3003,!1)}()),c=""),c.toString()});return r==i?n:r}function f_(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const ZB=/-+([a-z0-9])/g;function z0(n){return n.replace(ZB,(...t)=>t[1].toUpperCase())}function qB(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Bs(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 lB(n){return new ve(3004,!1)}()}}function oE(n,t){return window.getComputedStyle(n)[t]}const g_="*";function t3(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function n3(n,t,e){if(":"==n[0]){const d=function r3(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)<parseFloat(e);default:return t.push(function wB(n){return new ve(3016,!1)}()),"* => *"}}(n,e);if("function"==typeof d)return void t.push(d);n=d}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function xB(n){return new ve(3015,!1)}()),t;const r=i[1],o=i[2],a=i[3];t.push(sE(r,a));"<"==o[0]&&!(r==g_&&a==g_)&&t.push(sE(a,r))}(i,e,t)):e.push(n),e}const __=new Set(["true","1"]),b_=new Set(["false","0"]);function sE(n,t){const e=__.has(n)||b_.has(n),i=__.has(t)||b_.has(t);return(r,o)=>{let a=n==g_||n==r,c=t==g_||t==o;return!a&&e&&"boolean"==typeof r&&(a=r?__.has(n):b_.has(n)),!c&&i&&"boolean"==typeof o&&(c=o?__.has(t):b_.has(t)),a&&c}}const o3=new RegExp("s*:selfs*,?","g");function $0(n,t,e,i){return new s3(n).build(t,e,i)}class s3{constructor(t){this._driver=t}build(t,e,i){const r=new l3(e);return this._resetContextStyleTimingState(r),Bs(this,am(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=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push(function uB(){return new ve(3006,!1)}()),t.definitions.forEach(c=>{if(this._resetContextStyleTimingState(e),0==c.type){const d=c,h=d.name;h.toString().split(/\s*,\s*/).forEach(p=>{d.name=p,o.push(this.visitState(d,e))}),d.name=h}else if(1==c.type){const d=this.visitTransition(c,e);i+=d.queryCount,r+=d.depCount,a.push(d)}else e.errors.push(function hB(){return new ve(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:a,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,a=r||{};i.styles.forEach(c=>{c instanceof Map&&c.forEach(d=>{rE(d).forEach(h=>{a.hasOwnProperty(h)||o.add(h)})})}),o.size&&(f_(o.values()),e.errors.push(function fB(n,t){return new ve(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=Bs(this,am(t.animation),e);return{type:1,matchers:t3(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:kd(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Bs(this,i,e)),options:kd(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(a=>{e.currentTime=i;const c=Bs(this,a,e);return r=Math.max(r,e.currentTime),c});return e.currentTime=r,{type:3,steps:o,options:kd(t.options)}}visitAnimate(t,e){const i=function u3(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return j0(h_(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=j0(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=h_(e,t);return j0(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Ti({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=t.styles,c=!1;if(!a){c=!0;const h={};i.easing&&(h.easing=i.easing),a=Ti(h)}e.currentTime+=i.duration+i.delay;const d=this.visitStyle(a,e);d.isEmptyStep=c,r=d}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 c of r)"string"==typeof c?c===tl?i.push(c):e.errors.push(new ve(3002,!1)):i.push(eE(c));let o=!1,a=null;return i.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(a=c.get("easing"),c.delete("easing")),!o))for(let d of c.values())if(d.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:a,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(a=>{"string"!=typeof a&&a.forEach((c,d)=>{const h=e.collectedStyles.get(e.currentQuerySelector),p=h.get(d);let _=!0;p&&(o!=r&&o>=p.startTime&&r<=p.endTime&&(e.errors.push(function pB(n,t,e,i,r){return new ve(3010,!1)}()),_=!1),o=p.startTime),_&&h.set(d,{startTime:o,endTime:r}),e.options&&function YB(n,t,e){const i=t.params||{},r=rE(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function aB(n){return new ve(3001,!1)}())})}(c,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function gB(){return new ve(3011,!1)}()),i;let o=0;const a=[];let c=!1,d=!1,h=0;const p=t.steps.map(ae=>{const Be=this._makeStyleAst(ae,e);let fe=null!=Be.offset?Be.offset:function d3(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}(Be.styles),xt=0;return null!=fe&&(o++,xt=Be.offset=fe),d=d||xt<0||xt>1,c=c||xt<h,h=xt,a.push(xt),Be});d&&e.errors.push(function _B(){return new ve(3012,!1)}()),c&&e.errors.push(function bB(){return new ve(3200,!1)}());const _=t.steps.length;let M=0;o>0&&o<_?e.errors.push(function yB(){return new ve(3202,!1)}()):0==o&&(M=1/(_-1));const S=_-1,P=e.currentTime,$=e.currentAnimateTimings,Q=$.duration;return p.forEach((ae,Be)=>{const fe=M>0?Be==S?1:M*Be:a[Be],xt=fe*Q;e.currentTime=P+$.delay+xt,$.duration=xt,this._validateStyleAst(ae,e),ae.offset=fe,i.styles.push(ae)}),i}visitReference(t,e){return{type:8,animation:Bs(this,am(t.animation),e),options:kd(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:kd(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:kd(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,a]=function a3(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(o3,"")),n=n.replace(/@\*/g,u_).replace(/@\w+/g,e=>u_+"-"+e.slice(1)).replace(/:animating/g,B0),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Ns(e.collectedStyles,e.currentQuerySelector,new Map);const c=Bs(this,am(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:c,originalSelector:t.selector,options:kd(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function vB(){return new ve(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:h_(t.timings,e.errors,!0);return{type:12,animation:Bs(this,am(t.animation),e),timings:i,options:null}}}class l3{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 kd(n){return n?(n=sm(n)).params&&(n.params=function c3(n){return n?sm(n):null}(n.params)):n={},n}function j0(n,t,e){return{duration:n,delay:t,easing:e}}function U0(n,t,e,i,r,o,a=null,c=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:c}}class y_{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 m3=new RegExp(":enter","g"),g3=new RegExp(":leave","g");function W0(n,t,e,i,r,o=new Map,a=new Map,c,d,h=[]){return(new _3).buildKeyframes(n,t,e,i,r,o,a,c,d,h)}class _3{buildKeyframes(t,e,i,r,o,a,c,d,h,p=[]){h=h||new y_;const _=new G0(t,e,h,r,o,p,[]);_.options=d;const M=d.delay?il(d.delay):0;_.currentTimeline.delayNextStep(M),_.currentTimeline.setStyles([a],null,_.errors,d),Bs(this,i,_);const S=_.timelines.filter(P=>P.containsAnimation());if(S.length&&c.size){let P;for(let $=S.length-1;$>=0;$--){const Q=S[$];if(Q.element===e){P=Q;break}}P&&!P.allowOnlyTimelineStyles()&&P.setStyles([c],null,_.errors,d)}return S.length?S.map(P=>P.buildKeyframes()):[U0(e,[],[],[],0,M,"",!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,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}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 a="number"==typeof o?o:il(cm(o,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const a=null!=i.duration?il(i.duration):null,c=null!=i.delay?il(i.delay):null;return 0!==a&&t.forEach(d=>{const h=e.appendInstructionToTimeline(d,a,c);o=Math.max(o,h.duration+h.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Bs(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=v_);const a=il(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(a=>Bs(this,a,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?il(t.options.delay):0;t.steps.forEach(a=>{const c=e.createSubContext(t.options);o&&c.delayNextStep(o),Bs(this,a,c),r=Math.max(r,c.currentTimeline.currentTime),i.push(c.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return h_(e.params?cm(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,c=e.createSubContext().currentTimeline;c.easing=i.easing,t.styles.forEach(d=>{c.forwardTime((d.offset||0)*o),c.setStyles(d.styles,d.easing,e.errors,e.options),c.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(c),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?il(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=v_);let a=i;const c=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=c.length;let d=null;c.forEach((h,p)=>{e.currentQueryIndex=p;const _=e.createSubContext(t.options,h);o&&_.delayNextStep(o),h===e.element&&(d=_.currentTimeline),Bs(this,t.animation,_),_.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,_.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,a=Math.abs(o.duration),c=a*(e.currentQueryTotal-1);let d=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":d=c-d;break;case"full":d=i.currentStaggerTime}const p=e.currentTimeline;d&&p.delayNextStep(d);const _=p.currentTime;Bs(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-_+(r.startTime-i.currentTimeline.startTime)}}const v_={};class G0{constructor(t,e,i,r,o,a,c,d){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=v_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new C_(this._driver,e,0),c.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=il(i.duration)),null!=i.delay&&(r.delay=il(i.delay));const o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(c=>{(!e||!a.hasOwnProperty(c))&&(a[c]=cm(o[c],a,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 G0(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=v_,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 b3(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,a){let c=[];if(r&&c.push(this.element),t.length>0){t=(t=t.replace(m3,"."+this._enterClassName)).replace(g3,"."+this._leaveClassName);let h=this._driver.query(this.element,t,1!=i);0!==i&&(h=i<0?h.slice(h.length+i,h.length):h.slice(0,i)),c.push(...h)}return!o&&0==c.length&&a.push(function CB(n){return new ve(3014,!1)}()),c}}class C_{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,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 C_(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||tl),this._currentKeyframe.set(e,tl);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function y3(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,tl)}else Kl(r,e)}),e}(t,this._globalTimelineStyles);for(let[c,d]of a){const h=cm(d,o,i);this._pendingStyles.set(c,h),this._localTimelineStyles.has(c)||this._backFill.set(c,this._globalTimelineStyles.get(c)??tl),this._updateStyle(c,h)}}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((c,d)=>{const h=Kl(c,new Map,this._backFill);h.forEach((p,_)=>{p===S0?t.add(_):p===tl&&e.add(_)}),i||h.set("offset",d/this.duration),r.push(h)});const o=t.size?f_(t.values()):[],a=e.size?f_(e.values()):[];if(i){const c=r[0],d=new Map(c);c.set("offset",0),d.set("offset",1),r=[c,d]}return U0(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class b3 extends C_{constructor(t,e,i,r,o,a,c=!1){super(t,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=c,this.timings={duration:a.duration,delay:a.delay,easing:a.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=[],a=i+e,c=e/a,d=Kl(t[0]);d.set("offset",0),o.push(d);const h=Kl(t[0]);h.set("offset",lE(c)),o.push(h);const p=t.length-1;for(let _=1;_<=p;_++){let M=Kl(t[_]);const S=M.get("offset");M.set("offset",lE((e+S*i)/a)),o.push(M)}i=a,e=0,r="",t=o}return U0(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function lE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Y0{}const v3=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 C3 extends Y0{normalizePropertyName(t,e){return z0(t)}normalizeStyleValue(t,e,i,r){let o="";const a=i.toString().trim();if(v3.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const c=i.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function dB(n,t){return new ve(3005,!1)}())}return a+o}}function dE(n,t,e,i,r,o,a,c,d,h,p,_,M){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:c,queriedElements:d,preStyleProps:h,postStyleProps:p,totalTime:_,errors:M}}const Z0={};class uE{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function x3(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,a,c,d,h,p){const _=[],M=this.ast.options&&this.ast.options.params||Z0,P=this.buildStyles(i,c&&c.params||Z0,_),$=d&&d.params||Z0,Q=this.buildStyles(r,$,_),ae=new Set,Be=new Map,fe=new Map,xt="void"===r,Gn={params:w3($,M),delay:this.ast.options?.delay},ri=p?[]:W0(t,e,this.ast.animation,o,a,P,Q,Gn,h,_);let wo=0;if(ri.forEach(dl=>{wo=Math.max(dl.duration+dl.delay,wo)}),_.length)return dE(e,this._triggerName,i,r,xt,P,Q,[],[],Be,fe,wo,_);ri.forEach(dl=>{const ul=dl.element,TA=Ns(Be,ul,new Set);dl.preStyleProps.forEach(Wd=>TA.add(Wd));const $m=Ns(fe,ul,new Set);dl.postStyleProps.forEach(Wd=>$m.add(Wd)),ul!==e&&ae.add(ul)});const ll=f_(ae.values());return dE(e,this._triggerName,i,r,xt,P,Q,ri,ll,Be,fe,wo)}}function w3(n,t){const e=sm(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class D3{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=sm(this.defaultParams);return Object.keys(t).forEach(o=>{const a=t[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{a&&(a=cm(a,r,e));const d=this.normalizer.normalizePropertyName(c,e);a=this.normalizer.normalizeStyleValue(c,d,a,e),i.set(c,a)})}),i}}class T3{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 D3(r.style,r.options&&r.options.params||{},i))}),hE(this.states,"true","1"),hE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new uE(t,r,this.states))}),this.fallbackTransition=function E3(n,t,e){return new uE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,c)=>!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(a=>a.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function hE(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 k3=new y_;class S3{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=[],r=[],o=$0(this._driver,e,i,r);if(i.length)throw function kB(n){return new ve(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=UT(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 a;const c=new Map;if(o?(a=W0(this._driver,e,o,N0,l_,new Map,new Map,i,k3,r),a.forEach(p=>{const _=Ns(c,p.element,new Map);p.postStyleProps.forEach(M=>_.set(M,null))})):(r.push(function SB(){return new ve(3300,!1)}()),a=[]),r.length)throw function IB(n){return new ve(3504,!1)}();c.forEach((p,_)=>{p.forEach((M,S)=>{p.set(S,this._driver.computeStyle(_,S,tl))})});const h=ql(a.map(p=>{const _=c.get(p.element);return this._buildPlayer(p,new Map,_)}));return this._playersById.set(t,h),h.onDestroy(()=>this.destroy(t)),this.players.push(h),h}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 AB(n){return new ve(3301,!1)}();return e}listen(t,e,i,r){const o=O0(e,"","","");return A0(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 fE="ng-animate-queued",q0="ng-animate-disabled",R3=[],mE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},P3={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_a="__ng_removed";class K0{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function V3(n){return n??null}(i?t.value:t),i){const o=sm(t);delete o.value,this.options=o}else this.options={};this.options.params||(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 lm="void",X0=new K0(lm);class L3{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,ba(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function FB(n,t){return new ve(3302,!1)}();if(null==i||0==i.length)throw function OB(n){return new ve(3303,!1)}();if(!function H3(n){return"start"==n||"done"==n}(i))throw function RB(n,t){return new ve(3400,!1)}();const o=Ns(this._elementListeners,t,[]),a={name:e,phase:i,callback:r};o.push(a);const c=Ns(this._engine.statesByElement,t,new Map);return c.has(e)||(ba(t,d_),ba(t,d_+"-"+e),c.set(e,X0)),()=>{this._engine.afterFlush(()=>{const d=o.indexOf(a);d>=0&&o.splice(d,1),this._triggers.has(e)||c.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 PB(n){return new ve(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),a=new Q0(this.id,e,t);let c=this._engine.statesByElement.get(t);c||(ba(t,d_),ba(t,d_+"-"+e),this._engine.statesByElement.set(t,c=new Map));let d=c.get(e);const h=new K0(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&d&&h.absorbOptions(d.options),c.set(e,h),d||(d=X0),h.value!==lm&&d.value===h.value){if(!function j3(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const o=e[r];if(!t.hasOwnProperty(o)||n[o]!==t[o])return!1}return!0}(d.params,h.params)){const $=[],Q=o.matchStyles(d.value,d.params,$),ae=o.matchStyles(h.value,h.params,$);$.length?this._engine.reportError($):this._engine.afterFlush(()=>{Ed(t,Q),Dc(t,ae)})}return}const M=Ns(this._engine.playersByElement,t,[]);M.forEach($=>{$.namespaceId==this.id&&$.triggerName==e&&$.queued&&$.destroy()});let S=o.matchTransition(d.value,h.value,t,h.params),P=!1;if(!S){if(!r)return;S=o.fallbackTransition,P=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:S,fromState:d,toState:h,player:a,isFallbackTransition:P}),P||(ba(t,fE),a.onStart(()=>{hh(t,fE)})),a.onDone(()=>{let $=this.players.indexOf(a);$>=0&&this.players.splice($,1);const Q=this._engine.playersByElement.get(t);if(Q){let ae=Q.indexOf(a);ae>=0&&Q.splice(ae,1)}}),this.players.push(a),M.push(a),a}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,u_,!0);i.forEach(r=>{if(r[_a])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.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),a=new Map;if(o){const c=[];if(o.forEach((d,h)=>{if(a.set(h,d.value),this._triggers.has(h)){const p=this.trigger(t,h,lm,r);p&&c.push(p)}}),c.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,a),i&&ql(c).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 a=o.name;if(r.has(a))return;r.add(a);const d=this._triggers.get(a).fallbackTransition,h=i.get(a)||X0,p=new K0(lm),_=new Q0(this.id,a,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:a,transition:d,fromState:h,toState:p,player:_,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 a=t;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[_a];(!o||o===mE)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){ba(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,a=this._elementListeners.get(o);a&&a.forEach(c=>{if(c.name==i.triggerName){const d=O0(o,i.triggerName,i.fromState.value,i.toState.value);d._data=t,A0(i.player,c.phase,d,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a: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 N3{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}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)=>{}}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 L3(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 a=!1,c=this.driver.getParentElement(e);for(;c;){const d=r.get(c);if(d){const h=i.indexOf(d);i.splice(h+1,0,t),a=!0;break}c=this.driver.getParentElement(c)}a||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(x_(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!x_(e))return;const o=e[_a];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){const a=this._fetchNamespace(t);a&&a.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),ba(t,q0)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),hh(t,q0))}removeNode(t,e,i,r){if(x_(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[_a]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return x_(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,u_,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,B0,!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 ql(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[_a];if(e&&e.setForRemoval){if(t[_a]=mE,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(q0)&&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;i<this.collectedEnterElements.length;i++)ba(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?ql(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function LB(n){return new ve(3402,!1)}()}_flushAnimations(t,e){const i=new y_,r=[],o=new Map,a=[],c=new Map,d=new Map,h=new Map,p=new Set;this.disabledNodes.forEach(Lt=>{p.add(Lt);const Qt=this.driver.query(Lt,".ng-animate-queued",!0);for(let mn=0;mn<Qt.length;mn++)p.add(Qt[mn])});const _=this.bodyNode,M=Array.from(this.statesByElement.keys()),S=_E(M,this.collectedEnterElements),P=new Map;let $=0;S.forEach((Lt,Qt)=>{const mn=N0+$++;P.set(Qt,mn),Lt.forEach(Xn=>ba(Xn,mn))});const Q=[],ae=new Set,Be=new Set;for(let Lt=0;Lt<this.collectedLeaveElements.length;Lt++){const Qt=this.collectedLeaveElements[Lt],mn=Qt[_a];mn&&mn.setForRemoval&&(Q.push(Qt),ae.add(Qt),mn.hasAnimation?this.driver.query(Qt,".ng-star-inserted",!0).forEach(Xn=>ae.add(Xn)):Be.add(Qt))}const fe=new Map,xt=_E(M,Array.from(ae));xt.forEach((Lt,Qt)=>{const mn=l_+$++;fe.set(Qt,mn),Lt.forEach(Xn=>ba(Xn,mn))}),t.push(()=>{S.forEach((Lt,Qt)=>{const mn=P.get(Qt);Lt.forEach(Xn=>hh(Xn,mn))}),xt.forEach((Lt,Qt)=>{const mn=fe.get(Qt);Lt.forEach(Xn=>hh(Xn,mn))}),Q.forEach(Lt=>{this.processLeaveNode(Lt)})});const Gn=[],ri=[];for(let Lt=this._namespaceList.length-1;Lt>=0;Lt--)this._namespaceList[Lt].drainQueuedTransitions(e).forEach(mn=>{const Xn=mn.player,qr=mn.element;if(Gn.push(Xn),this.collectedEnterElements.length){const Do=qr[_a];if(Do&&Do.setForMove){if(Do.previousTriggersValues&&Do.previousTriggersValues.has(mn.triggerName)){const Gd=Do.previousTriggersValues.get(mn.triggerName),Da=this.statesByElement.get(mn.element);if(Da&&Da.has(mn.triggerName)){const vb=Da.get(mn.triggerName);vb.value=Gd,Da.set(mn.triggerName,vb)}}return void Xn.destroy()}}const Ic=!_||!this.driver.containsElement(_,qr),Us=fe.get(qr),rd=P.get(qr),zi=this._buildInstruction(mn,i,rd,Us,Ic);if(zi.errors&&zi.errors.length)return void ri.push(zi);if(Ic)return Xn.onStart(()=>Ed(qr,zi.fromStyles)),Xn.onDestroy(()=>Dc(qr,zi.toStyles)),void r.push(Xn);if(mn.isFallbackTransition)return Xn.onStart(()=>Ed(qr,zi.fromStyles)),Xn.onDestroy(()=>Dc(qr,zi.toStyles)),void r.push(Xn);const SA=[];zi.timelines.forEach(Do=>{Do.stretchStartingKeyframe=!0,this.disabledNodes.has(Do.element)||SA.push(Do)}),zi.timelines=SA,i.append(qr,zi.timelines),a.push({instruction:zi,player:Xn,element:qr}),zi.queriedElements.forEach(Do=>Ns(c,Do,[]).push(Xn)),zi.preStyleProps.forEach((Do,Gd)=>{if(Do.size){let Da=d.get(Gd);Da||d.set(Gd,Da=new Set),Do.forEach((vb,Sx)=>Da.add(Sx))}}),zi.postStyleProps.forEach((Do,Gd)=>{let Da=h.get(Gd);Da||h.set(Gd,Da=new Set),Do.forEach((vb,Sx)=>Da.add(Sx))})});if(ri.length){const Lt=[];ri.forEach(Qt=>{Lt.push(function NB(n,t){return new ve(3505,!1)}())}),Gn.forEach(Qt=>Qt.destroy()),this.reportError(Lt)}const wo=new Map,ll=new Map;a.forEach(Lt=>{const Qt=Lt.element;i.has(Qt)&&(ll.set(Qt,Qt),this._beforeAnimationBuild(Lt.player.namespaceId,Lt.instruction,wo))}),r.forEach(Lt=>{const Qt=Lt.element;this._getPreviousPlayers(Qt,!1,Lt.namespaceId,Lt.triggerName,null).forEach(Xn=>{Ns(wo,Qt,[]).push(Xn),Xn.destroy()})});const dl=Q.filter(Lt=>yE(Lt,d,h)),ul=new Map;gE(ul,this.driver,Be,h,tl).forEach(Lt=>{yE(Lt,d,h)&&dl.push(Lt)});const $m=new Map;S.forEach((Lt,Qt)=>{gE($m,this.driver,new Set(Lt),d,S0)}),dl.forEach(Lt=>{const Qt=ul.get(Lt),mn=$m.get(Lt);ul.set(Lt,new Map([...Array.from(Qt?.entries()??[]),...Array.from(mn?.entries()??[])]))});const Wd=[],EA=[],kA={};a.forEach(Lt=>{const{element:Qt,player:mn,instruction:Xn}=Lt;if(i.has(Qt)){if(p.has(Qt))return mn.onDestroy(()=>Dc(Qt,Xn.toStyles)),mn.disabled=!0,mn.overrideTotalTime(Xn.totalTime),void r.push(mn);let qr=kA;if(ll.size>1){let Us=Qt;const rd=[];for(;Us=Us.parentNode;){const zi=ll.get(Us);if(zi){qr=zi;break}rd.push(Us)}rd.forEach(zi=>ll.set(zi,qr))}const Ic=this._buildAnimation(mn.namespaceId,Xn,wo,o,$m,ul);if(mn.setRealPlayer(Ic),qr===kA)Wd.push(mn);else{const Us=this.playersByElement.get(qr);Us&&Us.length&&(mn.parentPlayer=ql(Us)),r.push(mn)}}else Ed(Qt,Xn.fromStyles),mn.onDestroy(()=>Dc(Qt,Xn.toStyles)),EA.push(mn),p.has(Qt)&&r.push(mn)}),EA.forEach(Lt=>{const Qt=o.get(Lt.element);if(Qt&&Qt.length){const mn=ql(Qt);Lt.setRealPlayer(mn)}}),r.forEach(Lt=>{Lt.parentPlayer?Lt.syncPlayerEvents(Lt.parentPlayer):Lt.destroy()});for(let Lt=0;Lt<Q.length;Lt++){const Qt=Q[Lt],mn=Qt[_a];if(hh(Qt,l_),mn&&mn.hasAnimation)continue;let Xn=[];if(c.size){let Ic=c.get(Qt);Ic&&Ic.length&&Xn.push(...Ic);let Us=this.driver.query(Qt,B0,!0);for(let rd=0;rd<Us.length;rd++){let zi=c.get(Us[rd]);zi&&zi.length&&Xn.push(...zi)}}const qr=Xn.filter(Ic=>!Ic.destroyed);qr.length?z3(this,Qt,qr):this.processLeaveNode(Qt)}return Q.length=0,Wd.forEach(Lt=>{this.players.push(Lt),Lt.onDone(()=>{Lt.destroy();const Qt=this.players.indexOf(Lt);this.players.splice(Qt,1)}),Lt.play()}),Wd}elementContainsData(t,e){let i=!1;const r=e[_a];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 a=[];if(e){const c=this.playersByQueriedElement.get(t);c&&(a=c)}else{const c=this.playersByElement.get(t);if(c){const d=!o||o==lm;c.forEach(h=>{h.queued||!d&&h.triggerName!=r||a.push(h)})}}return(i||r)&&(a=a.filter(c=>!(i&&i!=c.namespaceId||r&&r!=c.triggerName))),a}_beforeAnimationBuild(t,e,i){const o=e.element,a=e.isRemovalTransition?void 0:t,c=e.isRemovalTransition?void 0:e.triggerName;for(const d of e.timelines){const h=d.element,p=h!==o,_=Ns(i,h,[]);this._getPreviousPlayers(h,p,a,c,e.toState).forEach(S=>{const P=S.getRealPlayer();P.beforeDestroy&&P.beforeDestroy(),S.destroy(),_.push(S)})}Ed(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,a){const c=e.triggerName,d=e.element,h=[],p=new Set,_=new Set,M=e.timelines.map(P=>{const $=P.element;p.add($);const Q=$[_a];if(Q&&Q.removedBeforeQueried)return new om(P.duration,P.delay);const ae=$!==d,Be=function $3(n){const t=[];return bE(n,t),t}((i.get($)||R3).map(wo=>wo.getRealPlayer())).filter(wo=>!!wo.element&&wo.element===$),fe=o.get($),xt=a.get($),Gn=UT(0,this._normalizer,0,P.keyframes,fe,xt),ri=this._buildPlayer(P,Gn,Be);if(P.subTimeline&&r&&_.add($),ae){const wo=new Q0(t,c,$);wo.setRealPlayer(ri),h.push(wo)}return ri});h.forEach(P=>{Ns(this.playersByQueriedElement,P.element,[]).push(P),P.onDone(()=>function B3(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))}),p.forEach(P=>ba(P,JT));const S=ql(M);return S.onDestroy(()=>{p.forEach(P=>hh(P,JT)),Dc(d,e.toStyles)}),_.forEach(P=>{Ns(r,P,[]).push(S)}),S}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new om(t.duration,t.delay)}}class Q0{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new om,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,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=>A0(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){Ns(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 x_(n){return n&&1===n.nodeType}function pE(n,t){const e=n.style.display;return n.style.display=t??"none",e}function gE(n,t,e,i,r){const o=[];e.forEach(d=>o.push(pE(d)));const a=[];i.forEach((d,h)=>{const p=new Map;d.forEach(_=>{const M=t.computeStyle(h,_,r);p.set(_,M),(!M||0==M.length)&&(h[_a]=P3,a.push(h))}),n.set(h,p)});let c=0;return e.forEach(d=>pE(d,o[c++])),a}function _E(n,t){const e=new Map;if(n.forEach(c=>e.set(c,[])),0==t.length)return e;const i=1,r=new Set(t),o=new Map;function a(c){if(!c)return i;let d=o.get(c);if(d)return d;const h=c.parentNode;return d=e.has(h)?h:r.has(h)?i:a(h),o.set(c,d),d}return t.forEach(c=>{const d=a(c);d!==i&&e.get(d).push(c)}),e}function ba(n,t){n.classList?.add(t)}function hh(n,t){n.classList?.remove(t)}function z3(n,t,e){ql(e).onDone(()=>n.processLeaveNode(t))}function bE(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof $T?bE(i.players,t):t.push(i)}}function yE(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(o=>r.add(o)):t.set(n,i),e.delete(n),!0}class w_{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new N3(t,e,i),this._timelineEngine=new S3(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const a=t+"-"+r;let c=this._triggerCache[a];if(!c){const d=[],h=[],p=$0(this._driver,o,d,h);if(d.length)throw function TB(n,t){return new ve(3404,!1)}();c=function M3(n,t,e){return new T3(n,t,e)}(r,p,this._normalizer),this._triggerCache[a]=c}this._transitionEngine.registerTrigger(e,r,c)}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,a]=WT(i);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[a,c]=WT(i);return this._timelineEngine.listen(a,e,c,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 W3=(()=>{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&&Dc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Dc(this._element,this._initialStyles),this._endStyles&&(Dc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ed(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ed(this._element,this._endStyles),this._endStyles=null),Dc(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function J0(n){let t=null;return n.forEach((e,i)=>{(function G3(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class vE{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:oE(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Y3{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return qT(t,e)}getParentElement(t){return P0(t)}query(t,e,i){return KT(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,a=[]){const d={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(d.easing=o);const h=new Map,p=a.filter(S=>S instanceof vE);(function KB(n,t){return 0===n||0===t})(i,r)&&p.forEach(S=>{S.currentSnapshot.forEach((P,$)=>h.set($,P))});let _=function GB(n){return n.length?n[0]instanceof Map?n:n.map(t=>eE(t)):[]}(e).map(S=>Kl(S));_=function XB(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;o<t.length;o++){let a=t[o];r.forEach(c=>a.set(c,oE(n,c)))}}return t}(t,_,h);const M=function U3(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=J0(t[0]),t.length>1&&(i=J0(t[t.length-1]))):t instanceof Map&&(e=J0(t)),e||i?new W3(n,e,i):null}(t,_);return new vE(t,_,d,M)}}let Z3=(()=>{class n extends VT{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Er.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?HT(e):e;return CE(this._renderer,null,i,"register",[r]),new q3(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(te(B),te(cn))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();class q3 extends tB{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new K3(this._id,t,e||{},this._renderer)}}class K3{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 CE(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 CE(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const xE="@.disabled";let X3=(()=>{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,a)=>{const c=a?.parentNode(o);c&&a.removeChild(c,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let p=this._rendererCache.get(o);return p||(p=new wE("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,p)),p}const a=i.id,c=i.id+"-"+this._currentId;this._currentId++,this.engine.register(c,e);const d=p=>{Array.isArray(p)?p.forEach(d):this.engine.registerTrigger(a,c,e,p.name,p)};return i.data.animation.forEach(d),new Q3(this,c,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,c]=o;a(c)}),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)(te(B),te(w_),te(Gt))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();class wE{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==xE?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 Q3 extends wE{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==xE?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 J3(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),a="";return"@"!=o.charAt(0)&&([o,a]=function e5(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,c=>{this.factory.scheduleListenerCallback(c._data||-1,i,c)})}return this.delegate.listen(t,e,i)}}const DE=[{provide:VT,useClass:Z3},{provide:Y0,useFactory:function n5(){return new C3}},{provide:w_,useClass:(()=>{class n extends w_{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(te(cn),te(L0),te(Y0),te(Qf))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})()},{provide:B,useFactory:function r5(n,t,e){return new X3(n,t,e)},deps:[a_,w_,Gt]}],eC=[{provide:L0,useFactory:()=>new Y3},{provide:Rr,useValue:"BrowserAnimations"},...DE],ME=[{provide:L0,useClass:XT},{provide:Rr,useValue:"NoopAnimations"},...DE];let o5=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?ME:eC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:eC,imports:[PT]}),n})();const{isArray:s5}=Array,{getPrototypeOf:a5,prototype:c5,keys:l5}=Object;function TE(n){if(1===n.length){const t=n[0];if(s5(t))return{args:t,keys:null};if(function d5(n){return n&&"object"==typeof n&&a5(n)===c5}(t)){const e=l5(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:u5}=Array;function tC(n){return Ln(t=>function h5(n,t){return u5(t)?n(...t):n(t)}(n,t))}function EE(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function kE(...n){const t=Oo(n),{args:e,keys:i}=TE(n),r=new ye(o=>{const{length:a}=e;if(!a)return void o.complete();const c=new Array(a);let d=a,h=a;for(let p=0;p<a;p++){let _=!1;yi(e[p]).subscribe(It(o,M=>{_||(_=!0,h--),c[p]=M},()=>d--,void 0,()=>{(!d||!_)&&(h||o.next(i?EE(i,c):c),o.complete())}))}});return t?r.pipe(tC(t)):r}let SE=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(x(ee),x(E))},n.\u0275dir=y({type:n}),n})(),Sd=(()=>{class n extends SE{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=y({type:n,features:[dt]}),n})();const Yr=new De("NgValueAccessor"),m5={provide:Yr,useExisting:dn(()=>Vs),multi:!0},g5=new De("CompositionEventMode");let Vs=(()=>{class n extends SE{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function p5(){const n=Jc()?Jc().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(x(ee),x(E),x(g5,8))},n.\u0275dir=y({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&ge("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Wt([m5]),dt]}),n})();const _5=!1;function Xl(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function AE(n){return null!=n&&"number"==typeof n.length}const Zr=new De("NgValidators"),Ql=new De("NgAsyncValidators"),b5=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Kn{static min(t){return function FE(n){return t=>{if(Xl(t.value)||Xl(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function OE(n){return t=>{if(Xl(t.value)||Xl(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function RE(n){return Xl(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function PE(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function LE(n){return Xl(n.value)||b5.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function NE(n){return t=>Xl(t.value)||!AE(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function BE(n){return t=>AE(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function VE(n){if(!n)return M_;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Xl(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return WE(t)}static composeAsync(t){return GE(t)}}function M_(n){return null}function HE(n){return null!=n}function zE(n){const t=Sg(n)?ls(n):n;if(_5&&!a1(t)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof n&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new ve(-1101,e)}return t}function $E(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function jE(n,t){return t.map(e=>e(n))}function UE(n){return n.map(t=>function y5(n){return!n.validate}(t)?t:e=>t.validate(e))}function WE(n){if(!n)return null;const t=n.filter(HE);return 0==t.length?null:function(e){return $E(jE(e,t))}}function nC(n){return null!=n?WE(UE(n)):null}function GE(n){if(!n)return null;const t=n.filter(HE);return 0==t.length?null:function(e){return kE(jE(e,t).map(zE)).pipe(Ln($E))}}function iC(n){return null!=n?GE(UE(n)):null}function YE(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function ZE(n){return n._rawValidators}function qE(n){return n._rawAsyncValidators}function rC(n){return n?Array.isArray(n)?n:[n]:[]}function T_(n,t){return Array.isArray(n)?n.includes(t):n===t}function KE(n,t){const e=rC(t);return rC(n).forEach(r=>{T_(e,r)||e.push(r)}),e}function XE(n,t){return rC(t).filter(e=>!T_(n,e))}class QE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=nC(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=iC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Qo extends QE{get formDirective(){return null}get path(){return null}}class qa extends QE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class JE{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ya=(()=>{class n extends JE{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(x(qa,2))},n.\u0275dir=y({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&an("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[dt]}),n})(),Mc=(()=>{class n extends JE{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(x(Qo,10))},n.\u0275dir=y({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&an("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[dt]}),n})();function ek(n,t){return n?`with name: '${t}'`:`at index: ${t}`}const aC=!1,dm="VALID",k_="INVALID",fh="PENDING",um="DISABLED";function cC(n){return(S_(n)?n.validators:n)||null}function lC(n,t){return(S_(t)?t.asyncValidators:n)||null}function S_(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class ik{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===dm}get invalid(){return this.status===k_}get pending(){return this.status==fh}get disabled(){return this.status===um}get enabled(){return this.status!==um}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(KE(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(KE(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(XE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(XE(t,this._rawAsyncValidators))}hasValidator(t){return T_(this._rawValidators,t)}hasAsyncValidator(t){return T_(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=fh,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=um,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=dm,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===dm||this.status===fh)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?um:dm}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=fh,this._hasOwnPendingAsyncValidator=!0;const e=zE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Je,this.statusChanges=new Je}_calculateStatus(){return this._allControlsDisabled()?um:this.errors?k_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fh)?fh:this._anyControlsHaveStatus(k_)?k_:dm}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){S_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function T5(n){return Array.isArray(n)?nC(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function E5(n){return Array.isArray(n)?iC(n):n||null}(this._rawAsyncValidators)}}class va extends ik{constructor(t,e,i){super(cC(e),lC(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function nk(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new ve(1002,aC?function M5(n,t){return`Must supply a value for form control ${ek(n,t)}`}(t,r):"")})})(this,!0,t),Object.keys(t).forEach(i=>{(function tk(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new ve(1e3,aC?function w5(n){return`\n There are no form controls registered with this ${n?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(t):"");if(!i[e])throw new ve(1001,aC?function D5(n,t){return`Cannot find form control ${ek(n,t)}`}(t,e):"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Id=new De("CallSetDisabledState",{providedIn:"root",factory:()=>hm}),hm="always";function I_(n,t){return[...t.path,n]}function fm(n,t,e=hm){dC(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function I5(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&rk(n,t)})}(n,t),function F5(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function A5(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&rk(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function S5(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function A_(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),O_(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function F_(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function dC(n,t){const e=ZE(n);null!==t.validator?n.setValidators(YE(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=qE(n);null!==t.asyncValidator?n.setAsyncValidators(YE(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();F_(t._rawValidators,r),F_(t._rawAsyncValidators,r)}function O_(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=ZE(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=qE(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return F_(t._rawValidators,i),F_(t._rawAsyncValidators,i),e}function rk(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function ok(n,t){dC(n,t)}function hC(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function sk(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function fC(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===Vs?e=o:function P5(n){return Object.getPrototypeOf(n.constructor)===Sd}(o)?i=o:r=o}),r||i||e||null}const N5={provide:Qo,useExisting:dn(()=>mh)},mm=(()=>Promise.resolve())();let mh=(()=>{class n extends Qo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Je,this.form=new va({},nC(e),iC(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){mm.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),fm(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){mm.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){mm.then(()=>{const i=this._findContainer(e.path),r=new va({});ok(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){mm.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){mm.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,sk(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(x(Zr,10),x(Ql,10),x(Id,8))},n.\u0275dir=y({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&ge("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wt([N5]),dt]}),n})();function ak(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function ck(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const fn=class extends ik{constructor(t=null,e,i){super(cC(e),lC(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),S_(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=ck(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ak(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ak(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){ck(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},H5={provide:qa,useExisting:dn(()=>mC)},uk=(()=>Promise.resolve())();let mC=(()=>{class n extends qa{constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new fn,this._registered=!1,this.update=new Je,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=fC(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),hC(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){fm(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){uk.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function n0(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);uk.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?I_(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(x(Qo,9),x(Zr,10),x(Ql,10),x(Yr,10),x(li,8),x(Id,8))},n.\u0275dir=y({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Wt([H5]),dt,kr]}),n})(),Tc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),fk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({}),n})();const pC=new De("NgModelWithFormControlWarning"),W5={provide:qa,useExisting:dn(()=>gC)};let gC=(()=>{class n extends qa{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new Je,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=fC(0,r)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&A_(i,this,!1),fm(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}hC(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&A_(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(x(Zr,10),x(Ql,10),x(Yr,10),x(pC,8),x(Id,8))},n.\u0275dir=y({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Wt([W5]),dt,kr]}),n})();const G5={provide:Qo,useExisting:dn(()=>Jo)};let Jo=(()=>{class n extends Qo{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Je,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(O_(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return fm(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){A_(e.control||null,e,!1),function L5(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,sk(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(A_(i||null,e),(n=>n instanceof fn)(r)&&(fm(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);ok(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function O5(n,t){return O_(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dC(this.form,this),this._oldForm&&O_(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(x(Zr,10),x(Ql,10),x(Id,8))},n.\u0275dir=y({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&ge("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wt([G5]),dt,kr]}),n})();const q5={provide:qa,useExisting:dn(()=>Ka)};let Ka=(()=>{class n extends qa{set isDisabled(e){}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new Je,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=fC(0,o)}ngOnChanges(e){this._added||this._setUpControl(),hC(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return I_(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(x(Qo,13),x(Zr,10),x(Ql,10),x(Yr,10),x(pC,8))},n.\u0275dir=y({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Wt([q5]),dt,kr]}),n})(),Ek=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[fk]}),n})(),uV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Id,useValue:e.callSetDisabledState??hm}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Ek]}),n})(),hV=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:pC,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Id,useValue:e.callSetDisabledState??hm}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Ek]}),n})();function ys(...n){return ls(n,Ro(n))}function vs(n,t){return qe((e,i)=>{let r=0;e.subscribe(It(i,o=>n.call(t,o,r++)&&i.next(o)))})}class R_{}class wC{}class rl{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(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{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 rl?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 rl;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof rl?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 a=this.headers.get(e);if(!a)return;a=a.filter(c=>-1===o.indexOf(c)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}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 mV{encodeKey(t){return kk(t)}encodeValue(t){return kk(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const gV=/%(\d[a-f0-9])/gi,_V={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function kk(n){return encodeURIComponent(n).replace(gV,(t,e)=>_V[e]??t)}function P_(n){return`${n}`}class Jl{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new mV,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pV(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,c]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],d=e.get(a)||[];d.push(c),e.set(a,d)}),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(P_):[P_(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 Jl({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(P_(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(P_(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 bV{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 Sk(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Ik(n){return typeof Blob<"u"&&n instanceof Blob}function Ak(n){return typeof FormData<"u"&&n instanceof FormData}class pm{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 yV(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 rl),this.context||(this.context=new bV),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const c=e.indexOf("?");this.urlWithParams=e+(-1===c?"?":c<e.length-1?"&":"")+a}}else this.params=new Jl,this.urlWithParams=e}serializeBody(){return null===this.body?null:Sk(this.body)||Ik(this.body)||Ak(this.body)||function vV(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Jl?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ak(this.body)?null:Ik(this.body)?this.body.type||null:Sk(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Jl?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const e=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,c=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let d=t.headers||this.headers,h=t.params||this.params;const p=t.context??this.context;return void 0!==t.setHeaders&&(d=Object.keys(t.setHeaders).reduce((_,M)=>_.set(M,t.setHeaders[M]),d)),t.setParams&&(h=Object.keys(t.setParams).reduce((_,M)=>_.set(M,t.setParams[M]),h)),new pm(e,i,o,{params:h,headers:d,context:p,reportProgress:c,responseType:r,withCredentials:a})}}var gr=(()=>((gr=gr||{})[gr.Sent=0]="Sent",gr[gr.UploadProgress=1]="UploadProgress",gr[gr.ResponseHeader=2]="ResponseHeader",gr[gr.DownloadProgress=3]="DownloadProgress",gr[gr.Response=4]="Response",gr[gr.User=5]="User",gr))();class DC{constructor(t,e=200,i="OK"){this.headers=t.headers||new rl,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 MC extends DC{constructor(t={}){super(t),this.type=gr.ResponseHeader}clone(t={}){return new MC({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 L_ extends DC{constructor(t={}){super(t),this.type=gr.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new L_({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 Fk extends DC{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 TC(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 gm=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof pm)o=e;else{let d,h;d=r.headers instanceof rl?r.headers:new rl(r.headers),r.params&&(h=r.params instanceof Jl?r.params:new Jl({fromObject:r.params})),o=new pm(e,i,void 0!==r.body?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=ys(o).pipe(function fV(n,t){return q(t)?Ao(n,t,1):Ao(n,1)}(d=>this.handler.handle(d)));if(e instanceof pm||"events"===r.observe)return a;const c=a.pipe(vs(d=>d instanceof L_));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(Ln(d=>{if(null!==d.body&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return c.pipe(Ln(d=>{if(null!==d.body&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return c.pipe(Ln(d=>{if(null!==d.body&&"string"!=typeof d.body)throw new Error("Response is not a string.");return d.body}));default:return c.pipe(Ln(d=>d.body))}case"response":return c;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 Jl).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,TC(r,i))}post(e,i,r={}){return this.request("POST",e,TC(r,i))}put(e,i,r={}){return this.request("PUT",e,TC(r,i))}}return n.\u0275fac=function(e){return new(e||n)(te(R_))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();function Ok(n,t){return t(n)}function CV(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}const wV=new De("HTTP_INTERCEPTORS"),_m=new De("HTTP_INTERCEPTOR_FNS");function DV(){let n=null;return(t,e)=>(null===n&&(n=(_i(wV,{optional:!0})??[]).reduceRight(CV,Ok)),n(t,e))}let Rk=(()=>{class n extends R_{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(_m)));this.chain=i.reduceRight((r,o)=>function xV(n,t,e){return(i,r)=>e.runInContext(()=>t(i,o=>n(o,r)))}(r,o,this.injector),Ok)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(te(wC),te(Kc))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();const kV=/^\)\]\}',?\n/;let Lk=(()=>{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 ye(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((S,P)=>r.setRequestHeader(S,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const S=e.detectContentTypeHeader();null!==S&&r.setRequestHeader("Content-Type",S)}if(e.responseType){const S=e.responseType.toLowerCase();r.responseType="json"!==S?S:"text"}const o=e.serializeBody();let a=null;const c=()=>{if(null!==a)return a;const S=r.statusText||"OK",P=new rl(r.getAllResponseHeaders()),$=function SV(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 a=new MC({headers:P,status:r.status,statusText:S,url:$}),a},d=()=>{let{headers:S,status:P,statusText:$,url:Q}=c(),ae=null;204!==P&&(ae=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=ae?200:0);let Be=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof ae){const fe=ae;ae=ae.replace(kV,"");try{ae=""!==ae?JSON.parse(ae):null}catch(xt){ae=fe,Be&&(Be=!1,ae={error:xt,text:ae})}}Be?(i.next(new L_({body:ae,headers:S,status:P,statusText:$,url:Q||void 0})),i.complete()):i.error(new Fk({error:ae,headers:S,status:P,statusText:$,url:Q||void 0}))},h=S=>{const{url:P}=c(),$=new Fk({error:S,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});i.error($)};let p=!1;const _=S=>{p||(i.next(c()),p=!0);let P={type:gr.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(P.total=S.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),i.next(P)},M=S=>{let P={type:gr.UploadProgress,loaded:S.loaded};S.lengthComputable&&(P.total=S.total),i.next(P)};return r.addEventListener("load",d),r.addEventListener("error",h),r.addEventListener("timeout",h),r.addEventListener("abort",h),e.reportProgress&&(r.addEventListener("progress",_),null!==o&&r.upload&&r.upload.addEventListener("progress",M)),r.send(o),i.next({type:gr.Sent}),()=>{r.removeEventListener("error",h),r.removeEventListener("abort",h),r.removeEventListener("load",d),r.removeEventListener("timeout",h),e.reportProgress&&(r.removeEventListener("progress",_),null!==o&&r.upload&&r.upload.removeEventListener("progress",M)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(te(fT))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();const EC=new De("XSRF_ENABLED"),Nk=new De("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Bk=new De("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Vk{}let FV=(()=>{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=eT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(te(cn),te(Xf),te(Nk))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})();function OV(n,t){const e=n.url.toLowerCase();if(!_i(EC)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=_i(Vk).getToken(),r=_i(Bk);return null!=i&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),t(n)}var nr=(()=>((nr=nr||{})[nr.Interceptors=0]="Interceptors",nr[nr.LegacyInterceptors=1]="LegacyInterceptors",nr[nr.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",nr[nr.NoXsrfProtection=3]="NoXsrfProtection",nr[nr.JsonpSupport=4]="JsonpSupport",nr[nr.RequestsMadeViaParent=5]="RequestsMadeViaParent",nr))();function ph(n,t){return{\u0275kind:n,\u0275providers:t}}function RV(...n){const t=[gm,Lk,Rk,{provide:R_,useExisting:Rk},{provide:wC,useExisting:Lk},{provide:_m,useValue:OV,multi:!0},{provide:EC,useValue:!0},{provide:Vk,useClass:FV}];for(const e of n)t.push(...e.\u0275providers);return function pg(n){return{\u0275providers:n}}(t)}const Hk=new De("LEGACY_INTERCEPTOR_FN");let LV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[RV(ph(nr.LegacyInterceptors,[{provide:Hk,useFactory:DV},{provide:_m,useExisting:Hk,multi:!0}]))]}),n})();function St(n){return null!=n&&"false"!=`${n}`}function Ec(n,t=0){return function NV(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function bm(n){return Array.isArray(n)?n:[n]}function _r(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Wi(n){return n instanceof E?n.nativeElement:n}const VV=["addListener","removeListener"],HV=["addEventListener","removeEventListener"],zV=["on","off"];function kc(n,t,e,i){if(q(e)&&(i=e,e=void 0),i)return kc(n,t,e).pipe(tC(i));const[r,o]=function UV(n){return q(n.addEventListener)&&q(n.removeEventListener)}(n)?HV.map(a=>c=>n[a](t,c,e)):function $V(n){return q(n.addListener)&&q(n.removeListener)}(n)?VV.map(zk(n,t)):function jV(n){return q(n.on)&&q(n.off)}(n)?zV.map(zk(n,t)):[];if(!r&&L(n))return Ao(a=>kc(a,t,e))(yi(n));if(!r)throw new TypeError("Invalid event target");return new ye(a=>{const c=(...d)=>a.next(1<d.length?d:d[0]);return r(c),()=>o(c)})}function zk(n,t){return e=>i=>n[e](t,i)}class WV extends ne{constructor(t,e){super()}schedule(t,e=0){return this}}const N_={setInterval(n,t,...e){const{delegate:i}=N_;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=N_;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class kC extends WV{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 N_.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&&N_.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,J(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const ym={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=ym;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new ne(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=ym;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=ym;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0},$k={now:()=>($k.delegate||Date).now(),delegate:void 0};class vm{constructor(t,e=vm.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}vm.now=$k.now;class SC extends vm{constructor(t,e=vm.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 jk=new class YV extends SC{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 GV extends kC{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=ym.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&&(ym.cancelAnimationFrame(e),t._scheduled=void 0)}});let IC,ZV=1;const B_={};function Uk(n){return n in B_&&(delete B_[n],!0)}const qV={setImmediate(n){const t=ZV++;return B_[t]=!0,IC||(IC=Promise.resolve()),IC.then(()=>Uk(t)&&n()),t},clearImmediate(n){Uk(n)}},{setImmediate:KV,clearImmediate:XV}=qV,V_={setImmediate(...n){const{delegate:t}=V_;return(t?.setImmediate||KV)(...n)},clearImmediate(n){const{delegate:t}=V_;return(t?.clearImmediate||XV)(n)},delegate:void 0},AC=new class JV extends SC{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 QV extends kC{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=V_.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&&(V_.clearImmediate(e),t._scheduled=void 0)}}),Cm=new SC(kC),e4=Cm;function H_(n=0,t,e=e4){let i=-1;return null!=t&&(nc(t)?e=t:i=t),new ye(r=>{let o=function n4(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function FC(n,t=Cm){return function t4(n){return qe((t,e)=>{let i=!1,r=null,o=null,a=!1;const c=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const h=r;r=null,e.next(h)}a&&e.complete()},d=()=>{o=null,a&&e.complete()};t.subscribe(It(e,h=>{i=!0,r=h,o||yi(n(h)).subscribe(o=It(e,c,d))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>H_(n,t))}function Cn(n){return qe((t,e)=>{yi(n).subscribe(It(e,()=>e.complete(),kt)),!e.closed&&t.subscribe(e)})}function z_(...n){return function r4(){return Fo(1)}()(ls(n,Ro(n)))}function Lr(...n){const t=Ro(n);return qe((e,i)=>{(t?z_(n,e,t):z_(n,e)).subscribe(i)})}let OC;try{OC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{OC=!1}let gh,Oi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?uT(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&&!OC)&&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)(te(Xf))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wk=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Gk(){if(gh)return gh;if("object"!=typeof document||!document)return gh=new Set(Wk),gh;let n=document.createElement("input");return gh=new Set(Wk.filter(t=>(n.setAttribute("type",t),n.type===t))),gh}let xm,$_,Fd,RC;function Xa(n){return function o4(){if(null==xm&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xm=!0}))}finally{xm=xm||!1}return xm}()?n:!!n.capture}function Yk(){if(null==Fd){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Fd=!1,Fd;if("scrollBehavior"in document.documentElement.style)Fd=!0;else{const n=Element.prototype.scrollTo;Fd=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Fd}function wm(){if("object"!=typeof document||!document)return 0;if(null==$_){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),$_=0,0===n.scrollLeft&&(n.scrollLeft=1,$_=0===n.scrollLeft?1:2),n.remove()}return $_}function PC(n){if(function s4(){if(null==RC){const n=typeof document<"u"?document.head:null;RC=!(!n||!n.createShadowRoot&&!n.attachShadow)}return RC}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Hs(n){return n.composedPath?n.composedPath()[0]:n.target}function LC(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const a4=new De("cdk-dir-doc",{providedIn:"root",factory:function c4(){return _i(cn)}}),l4=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Nr=(()=>{class n{constructor(e){this.value="ltr",this.change=new Je,e&&(this.value=function d4(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?l4.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(te(a4,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({}),n})();const u4=["contentWrapper"],h4=["*"],f4=new De("VIRTUAL_SCROLL_STRATEGY");let _h=(()=>{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 ye(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(FC(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ys()}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(vs(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=Wi(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>kc(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),te(Oi),te(cn,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zk=(()=>{class n{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new Ee,this._elementScrolled=new ye(a=>this.ngZone.runOutsideAngular(()=>kc(this.elementRef.nativeElement,"scroll").pipe(Cn(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=wm()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==wm()?e.left=e.right:1==wm()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;Yk()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?r:i:"end"==e&&(e=a?i:r),a&&2==wm()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&1==wm()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(_h),x(Gt),x(Nr,8))},n.\u0275dir=y({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0}),n})(),ol=(()=>{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(FC(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)(te(Oi),te(Gt),te(cn,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qk=new De("VIRTUAL_SCROLLABLE");let g4=(()=>{class n extends Zk{constructor(e,i,r,o){super(e,i,r,o)}measureViewportSize(e){const i=this.elementRef.nativeElement;return"horizontal"===e?i.clientWidth:i.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(_h),x(Gt),x(Nr,8))},n.\u0275dir=y({type:n,features:[dt]}),n})();const b4=typeof requestAnimationFrame<"u"?jk:AC;let y4=(()=>{class n extends g4{get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=St(e)}constructor(e,i,r,o,a,c,d,h){super(e,c,r,a),this.elementRef=e,this._changeDetectorRef=i,this._scrollStrategy=o,this.scrollable=h,this._platform=_i(Oi),this._detachedSubject=new Ee,this._renderedRangeSubject=new Ee,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new ye(p=>this._scrollStrategy.scrolledIndexChange.subscribe(_=>Promise.resolve().then(()=>this.ngZone.run(()=>p.next(_))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=ne.EMPTY,this._viewportChanges=d.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Lr(null),FC(0,b4)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Cn(this._detachedSubject)).subscribe(i=>{const r=i.length;r!==this._dataLength&&(this._dataLength=r,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(e){return this.getElementRef().nativeElement.getBoundingClientRect()[e]}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){(function _4(n,t){return n.start==t.start&&n.end==t.end})(this._renderedRange,e)||(this.appendOnly&&(e={start:0,end:Math.max(this._renderedRange.end,e.end)}),this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,i="to-start"){e=this.appendOnly&&"to-start"===i?0:e;const o="horizontal"==this.orientation,a=o?"X":"Y";let d=`translate${a}(${Number((o&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===i&&(d+=` translate${a}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=d&&(this._renderedContentTransform=d,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,i="auto"){const r={behavior:i};"horizontal"===this.orientation?r.start=e:r.top=e,this.scrollable.scrollTo(r)}scrollToIndex(e,i="auto"){this._scrollStrategy.scrollToIndex(e,i)}measureScrollOffset(e){let i;return i=this.scrollable==this?r=>super.measureScrollOffset(r):r=>this.scrollable.measureScrollOffset(r),Math.max(0,i(e??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(e){let i;const r="left",o="right",a="rtl"==this.dir?.value;i="start"==e?a?o:r:"end"==e?a?r:o:e||("horizontal"===this.orientation?"left":"top");const c=this.scrollable.measureBoundingClientRectWithScrollOffset(i);return this.elementRef.nativeElement.getBoundingClientRect()[i]-c}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const i of e)i()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(Gt),x(f4,8),x(Nr,8),x(_h),x(ol),x(qk,8))},n.\u0275cmp=k({type:n,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,i){if(1&e&&Vn(u4,7),2&e){let r;Mt(r=Tt())&&(i._contentWrapper=r.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,i){2&e&&an("cdk-virtual-scroll-orientation-horizontal","horizontal"===i.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==i.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[Wt([{provide:Zk,useFactory:(t,e)=>t||e,deps:[[new po,new tf(qk)],n]}]),dt,TD],ngContentSelectors:h4,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,i){1&e&&(xi(),D(0,"div",0,1),Kt(2),w(),Ge(3,"div",2)),2&e&&(R(3),zf("width",i._totalContentWidth)("height",i._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),n})(),Od=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({}),n})(),Kk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Dm,Od,y4,Dm,Od]}),n})();class NC 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)}}function zs(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function yh(n,t,e){const i=q(n)||t||e?{next:n,error:t,complete:e}:n;return i?qe((r,o)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let c=!0;r.subscribe(It(o,d=>{var h;null===(h=i.next)||void 0===h||h.call(i,d),o.next(d)},()=>{var d;c=!1,null===(d=i.complete)||void 0===d||d.call(i),o.complete()},d=>{var h;c=!1,null===(h=i.error)||void 0===h||h.call(i,d),o.error(d)},()=>{var d,h;c&&(null===(d=i.unsubscribe)||void 0===d||d.call(i)),null===(h=i.finalize)||void 0===h||h.call(i)}))}):Ve}function VC(n,t=Cm){return qe((e,i)=>{let r=null,o=null,a=null;const c=()=>{if(r){r.unsubscribe(),r=null;const h=o;o=null,i.next(h)}};function d(){const h=a+n,p=t.now();if(p<h)return r=this.schedule(void 0,h-p),void i.add(r);c()}e.subscribe(It(i,h=>{o=h,a=t.now(),r||(r=t.schedule(d,n),i.add(r))},()=>{c(),i.complete()},void 0,()=>{o=r=null}))})}function HC(n){return vs((t,e)=>n<=e)}function zC(n,t=Ve){return n=n??R4,qe((e,i)=>{let r,o=!0;e.subscribe(It(i,a=>{const c=t(a);(o||!n(r,c))&&(o=!1,r=c,i.next(a))}))})}function R4(n,t){return n===t}let Qk=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),P4=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Wi(e);return new ye(r=>{const a=this._observeElement(i).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new Ee,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(te(Qk))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jk=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=St(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Ec(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Je,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(VC(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(x(P4),x(E),x(Gt))},n.\u0275dir=y({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),$C=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[Qk]}),n})();function eS(n,t,e){n?Zi(e,n,t):t()}function Br(n){return n<=0?()=>Yn:qe((t,e)=>{let i=0;t.subscribe(It(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}const tS=new Set;let vh,B4=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):H4}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function V4(n){if(!tS.has(n))try{vh||(vh=document.createElement("style"),vh.setAttribute("type","text/css"),document.head.appendChild(vh)),vh.sheet&&(vh.sheet.insertRule(`@media ${n} {body{ }}`,0),tS.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(te(Oi))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function H4(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let jC=(()=>{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 nS(bm(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=function L4(...n){const t=Ro(n),e=Oo(n),{args:i,keys:r}=TE(n);if(0===i.length)return ls([],t);const o=new ye(function N4(n,t,e=Ve){return i=>{eS(t,()=>{const{length:r}=n,o=new Array(r);let a=r,c=r;for(let d=0;d<r;d++)eS(t,()=>{const h=ls(n[d],t);let p=!1;h.subscribe(It(i,_=>{o[d]=_,p||(p=!0,c--),c||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,t,r?a=>EE(r,a):Ve));return e?o.pipe(tC(e)):o}(nS(bm(e)).map(a=>this._registerQuery(a).observable));return o=z_(o.pipe(Br(1)),o.pipe(HC(1),VC(0))),o.pipe(Ln(a=>{const c={matches:!1,breakpoints:{}};return a.forEach(({matches:d,query:h})=>{c.matches=c.matches||d,c.breakpoints[h]=d}),c}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new ye(a=>{const c=d=>this._zone.run(()=>a.next(d));return i.addListener(c),()=>{i.removeListener(c)}}).pipe(Lr(i),Ln(({matches:a})=>({query:e,matches:a})),Cn(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(te(B4),te(Gt))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function nS(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function G_(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const rS="cdk-describedby-message",Y_="cdk-describedby-host";let UC=0,U4=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+UC++,this._document=e,this._id=_i(lh)+"-"+UC++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=WC(i,r);"string"!=typeof i?(oS(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=WC(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const a=this._messageRegistry.get(o);a&&0===a.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Y_}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Y_);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");oS(r,this._id),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(WC(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<i.length;o++)i[o].remove();const r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(e){const i=G_(e,"aria-describedby").filter(r=>0!=r.indexOf(rS));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function $4(n,t,e){const i=G_(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Y_,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function j4(n,t,e){const r=G_(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Y_)}_isElementDescribedByMessage(e,i){const r=G_(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&-1!=r.indexOf(a)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(te(cn),te(Oi))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function WC(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function oS(n,t){n.id||(n.id=`${rS}-${t}-${UC++}`)}class sS{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee,this._typeaheadSubscription=ne.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ee,this.change=new Ee,t instanceof Gl&&(this._itemChangesSubscription=t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(yh(e=>this._pressedLetters.push(e)),VC(t),vs(()=>this._pressedLetters.length>0),Ln(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const o=(this._activeItemIndex+r)%i.length,a=i[o];if(!this._skipPredicateFn(a)&&0===a.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(o);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}withPageUpDown(t=!0,e=10){return this._pageUpAndDown={enabled:t,delta:e},this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o<a?o:a-1,-1);break}return;default:return void((r||zs(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Gl?this._items.toArray():this._items}}class aS extends sS{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class GC extends sS{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function Z_(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function q_(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 K4=new De("cdk-input-modality-detector-options"),X4={ignoreKeys:[18,17,224,91,16]},Ch=Xa({passive:!0,capture:!0});let Q4=(()=>{class n{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new NC(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(c=>c===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Hs(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Z_(a)?"keyboard":"mouse"),this._mostRecentTarget=Hs(a))},this._onTouchstart=a=>{q_(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Hs(a))},this._options={...X4,...o},this.modalityDetected=this._modality.pipe(HC(1)),this.modalityChanged=this.modalityDetected.pipe(zC()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Ch),r.addEventListener("mousedown",this._onMousedown,Ch),r.addEventListener("touchstart",this._onTouchstart,Ch)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ch),document.removeEventListener("mousedown",this._onMousedown,Ch),document.removeEventListener("touchstart",this._onTouchstart,Ch))}}return n.\u0275fac=function(e){return new(e||n)(te(Oi),te(Gt),te(cn),te(K4,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const J4=new De("liveAnnouncerElement",{providedIn:"root",factory:function e8(){return null}}),t8=new De("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let n8=0,YC=(()=>{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,a;return 1===i.length&&"number"==typeof i[0]?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==a&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(c=>this._currentResolve=c)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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<i.length;o++)i[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id="cdk-live-announcer-"+n8++,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(e){const i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){const o=i[r],a=o.getAttribute("aria-owns");a?-1===a.indexOf(e)&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e)}}}return n.\u0275fac=function(e){return new(e||n)(te(J4,8),te(Gt),te(cn),te(t8,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const i8=new De("cdk-focus-monitor-default-options"),K_=Xa({passive:!0,capture:!0});let ed=(()=>{class n{constructor(e,i,r,o,a){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=c=>{for(let h=Hs(c);h;h=h.parentElement)"focus"===c.type?this._onFocus(c,h):this._onBlur(c,h)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,i=!1){const r=Wi(e);if(!this._platform.isBrowser||1!==r.nodeType)return ys(null);const o=PC(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;const c={checkChildren:i,subject:new Ee,rootNode:o};return this._elementInfo.set(r,c),this._registerGlobalListeners(c),c.subject}stopMonitoring(e){const i=Wi(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=Wi(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([c,d])=>this._originChanged(c,i,d)):(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=Hs(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,K_),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,K_)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Cn(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,K_),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,K_),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 a=0;a<o.length;a++)if(o[a].contains(i))return!0;return!1}}return n.\u0275fac=function(e){return new(e||n)(te(Gt),te(Oi),te(Q4),te(cn,8),te(i8,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),r8=(()=>{class n{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Je}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(ed))},n.\u0275dir=y({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),n})();const dS="cdk-high-contrast-black-on-white",uS="cdk-high-contrast-white-on-black",ZC="cdk-high-contrast-active";let hS=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=_i(jC).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(ZC,dS,uS),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(ZC,dS):2===i&&e.add(ZC,uS)}}}return n.\u0275fac=function(e){return new(e||n)(te(Oi),te(cn))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fS=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(te(hS))},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[$C]}),n})();function Sc(n,t){return qe((e,i)=>{let r=null,o=0,a=!1;const c=()=>a&&!r&&i.complete();e.subscribe(It(i,d=>{r?.unsubscribe();let h=0;const p=o++;yi(n(d,p)).subscribe(r=It(i,_=>i.next(t?t(d,_,p,h++):_),()=>{r=null,c()}))},()=>{a=!0,c()}))})}function qC(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function xh(n,t){const e=t?"":"none";qC(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function mS(n,t,e){qC(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function X_(n,t){return t&&"none"!=t?n+" "+t:n}function pS(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function KC(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function XC(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function QC(n,t,e){const{top:i,bottom:r,left:o,right:a}=n;return e>=i&&e<=r&&t>=o&&t<=a}function Em(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function gS(n,t,e,i){const{top:r,right:o,bottom:a,left:c,width:d,height:h}=n,p=d*t,_=h*t;return i>r-_&&i<a+_&&e>c-p&&e<o+p}class _S{constructor(t){this._document=t,this.positions=new Map}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),t.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:XC(e)})})}handleScroll(t){const e=Hs(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,a;if(e===this._document){const h=this.getViewportScrollPosition();o=h.top,a=h.left}else o=e.scrollTop,a=e.scrollLeft;const c=r.top-o,d=r.left-a;return this.positions.forEach((h,p)=>{h.clientRect&&e!==p&&e.contains(p)&&Em(h.clientRect,c,d)}),r.top=o,r.left=a,{top:c,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function bS(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r<e.length;r++)e[r].removeAttribute("id");return"canvas"===i?CS(n,t):("input"===i||"select"===i||"textarea"===i)&&vS(n,t),yS("canvas",n,t,CS),yS("input, textarea, select",n,t,vS),t}function yS(n,t,e,i){const r=t.querySelectorAll(n);if(r.length){const o=e.querySelectorAll(n);for(let a=0;a<r.length;a++)i(r[a],o[a])}}let a8=0;function vS(n,t){"file"!==t.type&&(t.value=n.value),"radio"===t.type&&t.name&&(t.name=`mat-clone-${t.name}-${a8++}`)}function CS(n,t){const e=t.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch{}}const xS=Xa({passive:!0}),Q_=Xa({passive:!1}),JC=new Set(["position"]);class l8{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=St(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>xh(i,e)))}constructor(t,e,i,r,o,a){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new Ee,this._pointerMoveSubscription=ne.EMPTY,this._pointerUpSubscription=ne.EMPTY,this._scrollSubscription=ne.EMPTY,this._resizeSubscription=ne.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Ee,this.started=new Ee,this.released=new Ee,this.ended=new Ee,this.entered=new Ee,this.exited=new Ee,this.dropped=new Ee,this.moved=this._moveEvents,this._pointerDown=c=>{if(this.beforeStarted.next(),this._handles.length){const d=this._getTargetHandle(c);d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const d=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(d.x-this._pickupPositionOnPage.x)+Math.abs(d.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const S=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),P=this._dropContainer;if(!S)return void this._endDragSequence(c);(!P||!P.isDragging()&&!P.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}c.preventDefault();const h=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,d);else{const p=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,_=this._activeTransform;_.x=h.x-p.x+this._passiveTransform.x,_.y=h.y-p.y+this._passiveTransform.y,this._applyRootElementTransform(_.x,_.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:h,event:c,distance:this._getDragDistance(h),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this._nativeDragStart=c=>{if(this._handles.length){const d=this._getTargetHandle(c);d&&!this._disabledHandles.has(d)&&!this.disabled&&c.preventDefault()}else this.disabled||c.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new _S(i),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>Wi(i)),this._handles.forEach(i=>xh(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Wi(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Q_),e.addEventListener("touchstart",this._pointerDown,xS),e.addEventListener("dragstart",this._nativeDragStart,Q_)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Wi(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),xh(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),xh(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){km(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();r.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),mS(i,!1,JC),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,c).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=km(e),o=!r&&0!==e.button,a=this._rootElement,c=Hs(e),d=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=r?q_(e):Z_(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||d||h)return;if(this._handles.length){const M=a.style;this._rootElementTapHighlight=M.webkitTapHighlightColor||"",M.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(M=>this._updateOnScroll(M)),this._boundaryElement&&(this._boundaryRect=XC(this._boundaryElement));const p=this._previewTemplate;this._pickupPositionInElement=p&&p.template&&!p.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const _=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:_.x,y:_.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){mS(this._rootElement,!0,JC),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),a=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,a,o,r,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),r=DS(a,this._document),this._previewRef=a,t.matchSize?MS(r,o):r.style.transform=J_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=bS(this._rootElement),MS(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return qC(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},JC),xh(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function s8(n){const t=getComputedStyle(n),e=KC(t,"transition-property"),i=e.find(c=>"transform"===c||"all"===c);if(!i)return 0;const r=e.indexOf(i),o=KC(t,"transition-duration"),a=KC(t,"transition-delay");return pS(o[r])+pS(a[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=a=>{(!a||Hs(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=DS(this._placeholderRef,this._document)):i=bS(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,a=km(i)?i.targetTouches[0]:i,c=this._getViewportScrollPosition();return{x:o.left-t.left+(a.pageX-o.left-c.left),y:o.top-t.top+(a.pageY-o.top-c.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=km(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=r,c.y=o,c.matrixTransform(a.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:a}=this._pickupPositionInElement,c=this._boundaryRect,{width:d,height:h}=this._getPreviewRect(),p=c.top+a,_=c.bottom-(h-a);i=wS(i,c.left+o,c.right-(d-o)),r=wS(r,p,_)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),c=Math.abs(i-o.y);return a>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),c>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,xh(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Q_),t.removeEventListener("touchstart",this._pointerDown,xS),t.removeEventListener("dragstart",this._nativeDragStart,Q_)}_applyRootElementTransform(t,e){const i=J_(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=X_(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=J_(t,e);this._preview.style.transform=X_(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,a=i.right-r.right,c=r.top-i.top,d=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,r.height>i.height?(c>0&&(e+=c),d>0&&(e-=d)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:km(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=Hs(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Em(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=PC(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Wi(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function J_(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function wS(n,t,e){return Math.max(t,Math.min(e,n))}function km(n){return"t"===n.type[0]}function DS(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function MS(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=J_(t.left,t.top)}function Sm(n,t){return Math.max(0,Math.min(t,n))}class u8{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===a&&o.length>0)return null;const c="horizontal"===this.orientation,d=o.findIndex(Q=>Q.drag===t),h=o[a],_=h.clientRect,M=d>a?1:-1,S=this._getItemOffsetPx(o[d].clientRect,_,M),P=this._getSiblingOffsetPx(d,o,M),$=o.slice();return function d8(n,t,e){const i=Sm(t,n.length-1),r=Sm(e,n.length-1);if(i===r)return;const o=n[i],a=r<i?-1:1;for(let c=i;c!==r;c+=a)n[c]=n[c+a];n[r]=o}(o,d,a),o.forEach((Q,ae)=>{if($[ae]===Q)return;const Be=Q.drag===t,fe=Be?S:P,xt=Be?t.getPlaceholderElement():Q.drag.getRootElement();Q.offset+=fe,c?(xt.style.transform=X_(`translate3d(${Math.round(Q.offset)}px, 0, 0)`,Q.initialTransform),Em(Q.clientRect,0,fe)):(xt.style.transform=X_(`translate3d(0, ${Math.round(Q.offset)}px, 0)`,Q.initialTransform),Em(Q.clientRect,fe,0))}),this._previousSwap.overlaps=QC(_,e,i),this._previousSwap.drag=h.drag,this._previousSwap.delta=c?r.x:r.y,{previousIndex:d,currentIndex:a}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,a=this._activeDraggables,c=a.indexOf(t),d=t.getPlaceholderElement();let h=a[o];if(h===t&&(h=a[o+1]),!h&&(null==o||-1===o||o<a.length-1)&&this._shouldEnterAsFirstChild(e,i)&&(h=a[0]),c>-1&&a.splice(c,1),h&&!this._dragDropRegistry.isDragging(h)){const p=h.getRootElement();p.parentElement.insertBefore(d,p),a.splice(o,0,t)}else Wi(this._element).appendChild(d),a.push(t);d.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{Em(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:XC(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,a=e[t+-1*i];let c=o[r?"width":"height"]*i;if(a){const d=r?"left":"top",h=r?"right":"bottom";-1===i?c-=a.clientRect[d]-o[h]:c+=o[d]-a.clientRect[h]}return c}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return r?t>=a.right:e>=a.bottom}{const a=i[0].clientRect;return r?t<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:d})=>c!==t&&((!r||c!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(d.left)&&e<Math.floor(d.right):i>=Math.floor(d.top)&&i<Math.floor(d.bottom))));return-1!==a&&this._sortPredicate(a,t)?a:-1}}const ES=.05;class h8{constructor(t,e,i,r,o){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee,this.entered=new Ee,this.exited=new Ee,this.dropped=new Ee,this.sorted=new Ee,this.receivingStarted=new Ee,this.receivingStopped=new Ee,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=ne.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function o8(n=0,t=Cm){return n<0&&(n=0),H_(n,n,t)}(0,jk).pipe(Cn(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=Wi(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new _S(i),this._sortStrategy=new u8(this.element,e),this._sortStrategy.withSortPredicate((a,c)=>this.sortPredicate(a,c,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,a,c,d={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:a,dropPoint:c,event:d})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=Wi(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!gS(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||i||gS(a.clientRect,.05,t,e)&&([r,o]=function f8(n,t,e,i){const r=kS(t,i),o=SS(t,e);let a=0,c=0;if(r){const d=n.scrollTop;1===r?d>0&&(a=1):n.scrollHeight-d>n.clientHeight&&(a=2)}if(o){const d=n.scrollLeft;1===o?d>0&&(c=1):n.scrollWidth-d>n.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,t,e),(r||o)&&(i=c))}),!r&&!o){const{width:a,height:c}=this._viewportRuler.getViewportSize(),d={width:a,height:c,top:0,right:a,bottom:c,left:0};r=kS(d,e),o=SS(d,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Wi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Wi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=Wi(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&QC(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!QC(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=Wi(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=PC(Wi(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function kS(n,t){const{top:e,bottom:i,height:r}=n,o=r*ES;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function SS(n,t){const{left:e,right:i,width:r}=n,o=r*ES;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const eb=Xa({passive:!1,capture:!0});let m8=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Ee,this.pointerUp=new Ee,this.scroll=new Ee,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,eb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,eb)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:eb}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:eb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new ye(r=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&r.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),si(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(te(Gt),te(cn))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const p8={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ex=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=p8){return new l8(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new h8(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(te(cn),te(Gt),te(ol),te(m8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const tx=new De("CDK_DRAG_PARENT"),nx=new De("CdkDropListGroup");let IS=(()=>{class n{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=St(e)}ngOnDestroy(){this._items.clear()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],standalone:!0,features:[Wt([{provide:nx,useExisting:n}])]}),n})();const AS=new De("CDK_DRAG_CONFIG");let g8=0;const FS=new De("CdkDropList");let OS=(()=>{class n{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=St(e)}constructor(e,i,r,o,a,c,d){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=o,this._dir=a,this._group=c,this._destroyed=new Ee,this.connectedTo=[],this.id="cdk-drop-list-"+g8++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new Je,this.entered=new Je,this.exited=new Je,this.sorted=new Je,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,d&&this._assignDefaults(d),this._dropListRef.enterPredicate=(h,p)=>this.enterPredicate(h.data,p.data),this._dropListRef.sortPredicate=(h,p,_)=>this.sortPredicate(h,p.data,_.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),c&&c._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(Lr(this._dir.value),Cn(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{const i=bm(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(a=>a.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===i.indexOf(r)&&i.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=St(this.sortingDisabled),e.autoScrollDisabled=St(this.autoScrollDisabled),e.autoScrollStep=Ec(this.autoScrollStep,2),e.connectedTo(i.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),si(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:i,draggingDisabled:r,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:c}=e;this.disabled=r??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=c||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(x(E),x(ex),x(li),x(_h),x(Nr,8),x(nx,12),x(AS,8))},n.\u0275dir=y({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,i){2&e&&(sn("id",i.id),an("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[Wt([{provide:nx,useValue:void 0},{provide:FS,useExisting:n}])]}),n})();const ix=new De("CdkDragHandle"),RS=new De("CdkDragPlaceholder"),PS=new De("CdkDragPreview");let LS=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=St(e),this._dragRef.disabled=this._disabled}constructor(e,i,r,o,a,c,d,h,p,_,M){this.element=e,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=d,this._changeDetectorRef=p,this._selfHandle=_,this._parentDrag=M,this._destroyed=new Ee,this.started=new Je,this.released=new Je,this.ended=new Je,this.entered=new Je,this.exited=new Je,this.dropped=new Je,this.moved=new ye(S=>{const P=this._dragRef.moved.pipe(Ln($=>({source:this,pointerPosition:$.pointerPosition,event:$.event,delta:$.delta,distance:$.distance}))).subscribe(S);return()=>{P.unsubscribe()}}),this._dragRef=h.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:c?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),c&&this._assignDefaults(c),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Br(1),Cn(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const i=e.rootElementSelector,r=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let i=e;this.rootElementSelector&&(i=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Wi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const i=this._dir,r=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Ec(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(Br(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(r=>r.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){const{lockAxis:i,dragStartDelay:r,constrainPosition:o,previewClass:a,boundaryElement:c,draggingDisabled:d,rootElementSelector:h,previewContainer:p}=e;this.disabled=d??!1,this.dragStartDelay=r||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),a&&(this.previewClass=a),c&&(this.boundaryElement=c),h&&(this.rootElementSelector=h),p&&(this.previewContainer=p)}_setupHandlesListener(){this._handles.changes.pipe(Lr(this._handles),yh(e=>{const i=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Sc(e=>si(...e.map(i=>i._stateChanges.pipe(Lr(i))))),Cn(this._destroyed)).subscribe(e=>{const i=this._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(x(E),x(FS,12),x(cn),x(Gt),x(fr),x(AS,8),x(Nr,8),x(ex),x(li),x(ix,10),x(tx,12))},n.\u0275dir=y({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,i,r){if(1&e&&(Hn(r,PS,5),Hn(r,RS,5),Hn(r,ix,5)),2&e){let o;Mt(o=Tt())&&(i._previewTemplate=o.first),Mt(o=Tt())&&(i._placeholderTemplate=o.first),Mt(o=Tt())&&(i._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,i){2&e&&an("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[Wt([{provide:tx,useExisting:n}]),kr]}),n})(),C8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[ex],imports:[Od]}),n})();const x8=["text"];function w8(n,t){if(1&n&&Ge(0,"mat-pseudo-checkbox",6),2&n){const e=_e();U("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function D8(n,t){1&n&&Ge(0,"mat-pseudo-checkbox",7),2&n&&U("disabled",_e().disabled)}function M8(n,t){if(1&n&&(D(0,"span",8),N(1),w()),2&n){const e=_e();R(1),Ai("(",e.group.label,")")}}const T8=[[["mat-icon"]],"*"],E8=["mat-icon","*"],S8=new De("mat-sanity-checks",{providedIn:"root",factory:function k8(){return!0}});let Wn=(()=>{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!LC()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(te(hS),te(S8,8),te(cn))},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Dm,Dm]}),n})();function Pd(n){return class extends n{get disabled(){return this._disabled}set disabled(t){this._disabled=St(t)}constructor(...t){super(...t),this._disabled=!1}}}function wh(n,t){return class extends n{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)}constructor(...e){super(...e),this.defaultColor=t,this.color=t}}}function td(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=St(t)}constructor(...t){super(...t),this._disableRipple=!1}}}function Im(n,t=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Ec(e):this.defaultTabIndex}constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}}}function rx(n){return class extends n{updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}constructor(...t){super(...t),this.errorState=!1}}}let tb=(()=>{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=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class A8{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 VS=Xa({passive:!0,capture:!0});class F8{constructor(){this._events=new Map,this._delegateEventHandler=t=>{const e=Hs(t);e&&this._events.get(t.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(t))})}}addHandler(t,e,i,r){const o=this._events.get(e);if(o){const a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,VS)})}removeHandler(t,e,i){const r=this._events.get(t);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,VS)))}}const HS={enterDuration:225,exitDuration:150},zS=Xa({passive:!0,capture:!0}),$S=["mousedown","touchstart"],jS=["mouseup","mouseleave","touchend","touchcancel"];class Fm{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Wi(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...HS,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const a=i.radius||function R8(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),c=t-r.left,d=e-r.top,h=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=c-a+"px",p.style.top=d-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",null!=i.color&&(p.style.backgroundColor=i.color),p.style.transitionDuration=`${h}ms`,this._containerElement.appendChild(p);const _=window.getComputedStyle(p),S=_.transitionDuration,P="none"===_.transitionProperty||"0s"===S||"0s, 0s"===S||0===r.width&&0===r.height,$=new A8(this,p,i,P);p.style.transform="scale3d(1, 1, 1)",$.state=0,i.persistent||(this._mostRecentTransientRipple=$);let Q=null;return!P&&(h||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ae=()=>this._finishRippleTransition($),Be=()=>this._destroyRipple($);p.addEventListener("transitionend",ae),p.addEventListener("transitioncancel",Be),Q={onTransitionEnd:ae,onTransitionCancel:Be}}),this._activeRipples.set($,Q),(P||!h)&&this._finishRippleTransition($),$}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...HS,...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=Wi(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,$S.forEach(i=>{Fm._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{jS.forEach(e=>{this._triggerElement.addEventListener(e,this,zS)})}),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=Z_(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!q_(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const t=this._triggerElement;t&&($S.forEach(e=>Fm._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&jS.forEach(e=>t.removeEventListener(e,this,zS)))}}Fm._eventManager=new F8;const ox=new De("mat-ripple-global-options");let es=(()=>{class n{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()}constructor(e,i,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Fm(this,i,e,r)}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)(x(E),x(Gt),x(Oi),x(ox,8),x(Rr,8))},n.\u0275dir=y({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&an("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})(),Ld=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,Wn]}),n})(),P8=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return n.\u0275fac=function(e){return new(e||n)(x(Rr,8))},n.\u0275cmp=k({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&an("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("mat-pseudo-checkbox-minimal","minimal"===i.appearance)("mat-pseudo-checkbox-full","full"===i.appearance)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),n})(),L8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn]}),n})();const sx=new De("MAT_OPTION_PARENT_COMPONENT"),ax=new De("MatOptgroup");let N8=0;class US{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let B8=(()=>{class n{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=St(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+N8++,this.onSelectionChange=new Je,this._stateChanges=new Ee}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!zs(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new US(this,e))}}return n.\u0275fac=function(e){Pf()},n.\u0275dir=y({type:n,viewQuery:function(e,i){if(1&e&&Vn(x8,7),2&e){let r;Mt(r=Tt())&&(i._text=r.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Dh=(()=>{class n extends B8{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(sx,8),x(ax,8))},n.\u0275cmp=k({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mat-mdc-focus-indicator","mdc-list-item"],hostVars:12,hostBindings:function(e,i){1&e&&ge("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Ls("id",i.id),sn("tabindex",i._getTabIndex())("aria-selected",i.selected)("aria-disabled",i.disabled.toString()),an("mdc-list-item--selected",i.selected)("mat-mdc-option-multiple",i.multiple)("mat-mdc-option-active",i.active)("mdc-list-item--disabled",i.disabled))},exportAs:["matOption"],features:[dt],ngContentSelectors:E8,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-mdc-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-mdc-option-pseudo-checkbox",3,"state","disabled"],["state","checked","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(xi(T8),pe(0,w8,1,2,"mat-pseudo-checkbox",0),Kt(1),D(2,"span",1,2),Kt(4,1),w(),pe(5,D8,1,1,"mat-pseudo-checkbox",3),pe(6,M8,2,1,"span",4),Ge(7,"div",5)),2&e&&(U("ngIf",i.multiple),R(5),U("ngIf",!i.multiple&&i.selected&&!i.hideSingleSelectionIndicator),R(1),U("ngIf",i.group&&i.group._inert),R(1),U("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[es,Fi,P8],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{opacity:.38;cursor:default}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active::before{content:""}'],encapsulation:2,changeDetection:0}),n})();function WS(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let a=0;a<n+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}function GS(n,t,e,i){return n<e?n:n+t>e+i?Math.max(0,n-i+t):e}let nb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Ld,pa,Wn,L8]}),n})();class cx{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 ib extends cx{constructor(t,e,i,r,o){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class Nd extends cx{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 V8 extends cx{constructor(t){super(),this.element=t instanceof E?t.nativeElement:t}}class lx{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof ib?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Nd?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof V8?(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 H8 extends lx{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{const c=a.element,d=this._document.createComment("dom-portal");c.parentNode.insertBefore(d,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(c,d)})},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,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||Zo.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 z8=(()=>{class n extends Nd{constructor(e,i){super(e,i)}}return n.\u0275fac=function(e){return new(e||n)(x(hr),x(fr))},n.\u0275dir=y({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[dt]}),n})(),Om=(()=>{class n extends lx{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Je,this.attachDomPortal=o=>{const a=o.element,c=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(c,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},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._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}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)(x(v),x(fr),x(cn))},n.\u0275dir=y({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[dt]}),n})(),dx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({}),n})();const YS=Yk();class j8{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=_r(-this._previousScrollPosition.left),t.style.top=_r(-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||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),YS&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),YS&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_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 U8{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 ZS{enable(){}disable(){}attach(){}}function ux(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function qS(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class W8{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();ux(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 G8=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new ZS,this.close=a=>new U8(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new j8(this._viewportRuler,this._document),this.reposition=a=>new W8(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(te(_h),te(ol),te(Gt),te(cn))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Rm{constructor(t){if(this.scrollStrategy=new ZS,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 Y8{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let KS=(()=>{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)(te(cn))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Z8=(()=>{class n extends KS{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const c=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>c.next(r)):c.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)(te(cn),te(Gt,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),q8=(()=>{class n extends KS{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Hs(o)},this._clickListener=o=>{const a=Hs(o),c="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const d=this._attachedOverlays.slice();for(let h=d.length-1;h>-1;h--){const p=d[h];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(c))break;const _=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(o)):_.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)(te(cn),te(Oi),te(Gt,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XS=(()=>{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||LC()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}const i=this._document.createElement("div");i.classList.add(e),LC()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(te(cn),te(Oi))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class K8{constructor(t,e,i,r,o,a,c,d,h,p=!1){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=c,this._location=d,this._outsideClickDispatcher=h,this._animationsDisabled=p,this._backdropElement=null,this._backdropClick=new Ee,this._attachments=new Ee,this._detachments=new Ee,this._locationChanges=ne.EMPTY,this._backdropClickHandler=_=>this._backdropClick.next(_),this._backdropTransitionendHandler=_=>{this._disposeBackdrop(_.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(Br(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=_r(this._config.width),t.height=_r(this._config.height),t.minWidth=_r(this._config.minWidth),t.minHeight=_r(this._config.minHeight),t.maxWidth=_r(this._config.maxWidth),t.maxHeight=_r(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=bm(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(Cn(si(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 QS="cdk-overlay-connected-position-bounding-box",X8=/([A-Za-z%]+)$/;class Q8{get positions(){return this._preferredPositions}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=ne.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._validatePositions(),t.hostElement.classList.add(QS),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 a;for(let c of this._preferredPositions){let d=this._getOriginPoint(t,r,c),h=this._getOverlayPoint(d,e,c),p=this._getOverlayFit(h,e,i,c);if(p.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(c,d);this._canFitWithFlexibleDimensions(p,h,i)?o.push({position:c,origin:d,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(d,c)}):(!a||a.overlayFit.visibleArea<p.visibleArea)&&(a={overlayFit:p,overlayPoint:h,originPoint:d,position:c,overlayRect:e})}if(o.length){let c=null,d=-1;for(const h of o){const p=h.boundingBoxRect.width*h.boundingBoxRect.height*(h.position.weight||1);p>d&&(d=p,c=h)}return this._isPushed=!1,void this._applyPosition(c.position,c.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Bd(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(QS),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 a=this._isRtl()?t.right:t.left,c=this._isRtl()?t.left:t.right;r="start"==i.originX?a:c}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=eI(e);let{x:a,y:c}=t,d=this._getOffset(r,"x"),h=this._getOffset(r,"y");d&&(a+=d),h&&(c+=h);let M=0-c,S=c+o.height-i.height,P=this._subtractOverflows(o.width,0-a,a+o.width-i.width),$=this._subtractOverflows(o.height,M,S),Q=P*$;return{visibleArea:Q,isCompletelyWithinViewport:o.width*o.height===Q,fitsInViewportVertically:$===o.height,fitsInViewportHorizontally:P==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,a=JS(this._overlayRef.getConfig().minHeight),c=JS(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=a&&a<=r)&&(t.fitsInViewportHorizontally||null!=c&&c<=o)}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=eI(e),o=this._viewportRect,a=Math.max(t.x+r.width-o.width,0),c=Math.max(t.y+r.height-o.height,0),d=Math.max(o.top-i.top-t.y,0),h=Math.max(o.left-i.left-t.x,0);let p=0,_=0;return p=r.width<=o.width?h||-a:t.x<this._viewportMargin?o.left-i.left-t.x:0,_=r.height<=o.height?d||-c:t.y<this._viewportMargin?o.top-i.top-t.y:0,this._previousPushAmount={x:p,y:_},{x:t.x+p,y:t.y+_}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new Y8(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let o,a,c,p,_,M;if("top"===e.overlayY)a=t.y,o=i.height-a+this._viewportMargin;else if("bottom"===e.overlayY)c=i.height-t.y+2*this._viewportMargin,o=i.height-c+this._viewportMargin;else{const S=Math.min(i.bottom-t.y+i.top,t.y),P=this._lastBoundingBoxSize.height;o=2*S,a=t.y-S,o>P&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-P/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)M=i.width-t.x+this._viewportMargin,p=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)_=t.x,p=i.right-t.x;else{const S=Math.min(i.right-t.x+i.left,t.x),P=this._lastBoundingBoxSize.width;p=2*S,_=t.x-S,p>P&&!this._isInitialRender&&!this._growAfterOpen&&(_=t.x-P/2)}return{top:a,left:_,bottom:c,right:M,width:p,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,a=this._overlayRef.getConfig().maxWidth;r.height=_r(i.height),r.top=_r(i.top),r.bottom=_r(i.bottom),r.width=_r(i.width),r.left=_r(i.left),r.right=_r(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=_r(o)),a&&(r.maxWidth=_r(a))}this._lastBoundingBoxSize=i,Bd(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Bd(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Bd(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const p=this._viewportRuler.getViewportScrollPosition();Bd(i,this._getExactOverlayY(e,t,p)),Bd(i,this._getExactOverlayX(e,t,p))}else i.position="static";let c="",d=this._getOffset(e,"x"),h=this._getOffset(e,"y");d&&(c+=`translateX(${d}px) `),h&&(c+=`translateY(${h}px)`),i.transform=c.trim(),a.maxHeight&&(r?i.maxHeight=_r(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=_r(a.maxWidth):o&&(i.maxWidth="")),Bd(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=_r(o.y),r}_getExactOverlayX(t,e,i){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),a=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=_r(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:qS(t,i),isOriginOutsideView:ux(t,i),isOverlayClipped:qS(e,i),isOverlayOutsideView:ux(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?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&bm(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 E)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 Bd(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function JS(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(X8);return e&&"px"!==e?null:parseFloat(t)}return n||null}function eI(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 tI="cdk-global-overlay-wrapper";class J8{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(tI),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:a,maxHeight:c}=i,d=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),h=!("100%"!==o&&"100vh"!==o||c&&"100%"!==c&&"100vh"!==c),p=this._xPosition,_=this._xOffset,M="rtl"===this._overlayRef.getConfig().direction;let S="",P="",$="";d?$="flex-start":"center"===p?($="center",M?P=_:S=_):M?"left"===p||"end"===p?($="flex-end",S=_):("right"===p||"start"===p)&&($="flex-start",P=_):"left"===p||"start"===p?($="flex-start",S=_):("right"===p||"end"===p)&&($="flex-end",P=_),t.position=this._cssPosition,t.marginLeft=d?"0":S,t.marginTop=h?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=d?"0":P,e.justifyContent=$,e.alignItems=h?"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(tI),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let eH=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new J8}flexibleConnectedTo(e){return new Q8(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(te(ol),te(cn),te(Oi),te(XS))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tH=0,Ca=(()=>{class n{constructor(e,i,r,o,a,c,d,h,p,_,M,S){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=c,this._ngZone=d,this._document=h,this._directionality=p,this._location=_,this._outsideClickDispatcher=M,this._animationsModuleType=S}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new Rm(e);return a.direction=a.direction||this._directionality.value,new K8(o,i,r,a,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-"+tH++,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(Qf)),new H8(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(te(G8),te(XS),te(v),te(eH),te(Z8),te(Zo),te(Gt),te(cn),te(Nr),te(UM),te(q8),te(Rr,8))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nH=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],nI=new De("cdk-connected-overlay-scroll-strategy");let hx=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(x(E))},n.\u0275dir=y({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),n})(),iI=(()=>{class n{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=St(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=St(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=St(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=St(e)}get push(){return this._push}set push(e){this._push=St(e)}constructor(e,i,r,o,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ne.EMPTY,this._attachSubscription=ne.EMPTY,this._detachSubscription=ne.EMPTY,this._positionSubscription=ne.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Je,this.positionChange=new Je,this.attach=new Je,this.detach=new Je,this.overlayKeydown=new Je,this.overlayOutsideClick=new Je,this._templatePortal=new Nd(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=nH);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!zs(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Rm({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof hx?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function $8(n,t=!1){return qe((e,i)=>{let r=0;e.subscribe(It(i,o=>{const a=n(o,r++);(a||t)&&i.next(o),!a&&i.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(x(Ca),x(hr),x(fr),x(nI),x(Nr,8))},n.\u0275dir=y({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[kr]}),n})();const rH={provide:nI,deps:[Ca],useFactory:function iH(n){return()=>n.scrollStrategies.reposition()}};let Pm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[Ca,rH],imports:[Dm,dx,Kk,Kk]}),n})();function rI(n){return new ye(t=>{yi(n()).subscribe(t)})}const oH=["matFormFieldNotchedOutline",""],sH=["*"],aH=["textField"],cH=["iconPrefixContainer"],lH=["textPrefixContainer"];function dH(n,t){1&n&&Ge(0,"span",19)}function uH(n,t){if(1&n){const e=Dn();D(0,"label",17),ge("cdkObserveContent",function(){return Ot(e),Ht(_e(2)._refreshOutlineNotchWidth())}),Kt(1,1),pe(2,dH,1,0,"span",18),w()}if(2&n){const e=_e(2);U("floating",e._shouldLabelFloat())("cdkObserveContentDisabled",!e._hasOutline())("id",e._labelId),sn("for",e._control.id)("aria-owns",e._control.id),R(2),U("ngIf",!e.hideRequiredMarker&&e._control.required)}}function hH(n,t){1&n&&pe(0,uH,3,6,"label",16),2&n&&U("ngIf",_e()._hasFloatingLabel())}function fH(n,t){1&n&&Ge(0,"div",20)}function mH(n,t){}function pH(n,t){1&n&&pe(0,mH,0,0,"ng-template",22),2&n&&(_e(2),U("ngTemplateOutlet",qo(1)))}function gH(n,t){if(1&n&&(D(0,"div",21),pe(1,pH,1,1,"ng-template",9),w()),2&n){const e=_e();U("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat())("matFormFieldNotchedOutlineLabelWidth",e._labelWidth),R(1),U("ngIf",!e._forceDisplayInfixLabel())}}function _H(n,t){1&n&&(D(0,"div",23,24),Kt(2,2),w())}function bH(n,t){1&n&&(D(0,"div",25,26),Kt(2,3),w())}function yH(n,t){}function vH(n,t){1&n&&pe(0,yH,0,0,"ng-template",22),2&n&&(_e(),U("ngTemplateOutlet",qo(1)))}function CH(n,t){1&n&&(D(0,"div",27),Kt(1,4),w())}function xH(n,t){1&n&&(D(0,"div",28),Kt(1,5),w())}function wH(n,t){1&n&&Ge(0,"div",29)}function DH(n,t){1&n&&(D(0,"div",30),Kt(1,6),w()),2&n&&U("@transitionMessages",_e()._subscriptAnimationState)}function MH(n,t){if(1&n&&(D(0,"mat-hint",34),N(1),w()),2&n){const e=_e(2);U("id",e._hintLabelId),R(1),bn(e.hintLabel)}}function TH(n,t){if(1&n&&(D(0,"div",31),pe(1,MH,2,2,"mat-hint",32),Kt(2,7),Ge(3,"div",33),Kt(4,8),w()),2&n){const e=_e();U("@transitionMessages",e._subscriptAnimationState),R(1),U("ngIf",e.hintLabel)}}const EH=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],kH=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let xo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["mat-label"]]}),n})(),SH=0;const oI=new De("MatError");let sl=(()=>{class n{constructor(e,i){this.id="mat-mdc-error-"+SH++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(Os("aria-live"),x(E))},n.\u0275dir=y({type:n,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(e,i){2&e&&Ls("id",i.id)},inputs:{id:"id"},features:[Wt([{provide:oI,useExisting:n}])]}),n})(),IH=0,sI=(()=>{class n{constructor(){this.align="start",this.id="mat-mdc-hint-"+IH++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(e,i){2&e&&(Ls("id",i.id),sn("align",null),an("mat-mdc-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"}}),n})();const AH=new De("MatPrefix"),FH=new De("MatSuffix");let aI=(()=>{class n{constructor(e){this._elementRef=e,this.floating=!1}getWidth(){return function OH(n){if(null!==n.offsetParent)return n.scrollWidth;const e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);const i=e.scrollWidth;return e.remove(),i}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(x(E))},n.\u0275dir=y({type:n,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(e,i){2&e&&an("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating"}}),n})();const cI="mdc-line-ripple--active",rb="mdc-line-ripple--deactivating";let lI=(()=>{class n{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{const o=this._elementRef.nativeElement.classList,a=o.contains(rb);"opacity"===r.propertyName&&a&&o.remove(cI,rb)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const e=this._elementRef.nativeElement.classList;e.remove(rb),e.add(cI)}deactivate(){this._elementRef.nativeElement.classList.add(rb)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Gt))},n.\u0275dir=y({type:n,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]}),n})(),dI=(()=>{class n{constructor(e,i){this._elementRef=e,this._ngZone=i,this.labelWidth=0,this.open=!1}ngAfterViewInit(){const e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_getNotchWidth(){return this.open?this.labelWidth>0?`calc(${this.labelWidth}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:"0px":null}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Gt))},n.\u0275cmp=k({type:n,selectors:[["div","matFormFieldNotchedOutline",""]],hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(e,i){2&e&&an("mdc-notched-outline--notched",i.open)},inputs:{labelWidth:["matFormFieldNotchedOutlineLabelWidth","labelWidth"],open:["matFormFieldNotchedOutlineOpen","open"]},attrs:oH,ngContentSelectors:sH,decls:4,vars:2,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(e,i){1&e&&(xi(),Ge(0,"div",0),D(1,"div",1),Kt(2),w(),Ge(3,"div",2)),2&e&&(R(1),zf("width",i._getNotchWidth()))},encapsulation:2,changeDetection:0}),n})();const RH={transitionMessages:nl("transitionMessages",[ga("enter",Ti({opacity:1,transform:"translateY(0%)"})),Co("void => enter",[Ti({opacity:0,transform:"translateY(-5px)"}),vo("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ob=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n}),n})();const Lm=new De("MatFormField"),PH=new De("MAT_FORM_FIELD_DEFAULT_OPTIONS");let uI=0,ts=(()=>{class n{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=St(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==i&&(this._refreshOutlineNotchWidth(),this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,a,c,d,h){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=c,this._animationMode=d,this._document=h,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+uI++,this._hintLabelId="mat-mdc-hint-"+uI++,this._subscriptAnimationState="",this._labelWidth=0,this._destroyed=new Ee,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,c&&(c.appearance&&(this.appearance=c.appearance),this._hideRequiredMarker=Boolean(c?.hideRequiredMarker),c.color&&(this.color=c.color))}ngAfterViewInit(){this._updateFocusState(),this._refreshOutlineNotchWidth(),this._document?.fonts?.ready?this._document.fonts.ready.then(()=>{this._refreshOutlineNotchWidth(),this._changeDetectorRef.markForCheck()}):setTimeout(()=>this._refreshOutlineNotchWidth(),100),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Cn(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),si(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Cn(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Cn(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||(this._labelWidth=this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const e=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(e.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0;e.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${o+a}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(Gt),x(Nr),x(Oi),x(PH,8),x(Rr,8),x(cn))},n.\u0275cmp=k({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(Hn(r,xo,5),Hn(r,xo,7),Hn(r,ob,5),Hn(r,AH,5),Hn(r,FH,5),Hn(r,oI,5),Hn(r,sI,5)),2&e){let o;Mt(o=Tt())&&(i._labelChildNonStatic=o.first),Mt(o=Tt())&&(i._labelChildStatic=o.first),Mt(o=Tt())&&(i._formFieldControl=o.first),Mt(o=Tt())&&(i._prefixChildren=o),Mt(o=Tt())&&(i._suffixChildren=o),Mt(o=Tt())&&(i._errorChildren=o),Mt(o=Tt())&&(i._hintChildren=o)}},viewQuery:function(e,i){if(1&e&&(Vn(aH,5),Vn(cH,5),Vn(lH,5),Vn(aI,5),Vn(dI,5),Vn(lI,5)),2&e){let r;Mt(r=Tt())&&(i._textField=r.first),Mt(r=Tt())&&(i._iconPrefixContainer=r.first),Mt(r=Tt())&&(i._textPrefixContainer=r.first),Mt(r=Tt())&&(i._floatingLabel=r.first),Mt(r=Tt())&&(i._notchedOutline=r.first),Mt(r=Tt())&&(i._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(e,i){2&e&&an("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===i._animationMode)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-focused",i._control.focused)("mat-primary","accent"!==i.color&&"warn"!==i.color)("mat-accent","accent"===i.color)("mat-warn","warn"===i.color)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Wt([{provide:Lm,useExisting:n}])],ngContentSelectors:kH,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","cdkObserveContentDisabled","id","cdkObserveContent"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen","matFormFieldNotchedOutlineLabelWidth"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(e,i){1&e&&(xi(EH),pe(0,hH,1,1,"ng-template",null,0,Ng),D(2,"div",1,2),ge("click",function(o){return i._control.onContainerClick&&i._control.onContainerClick(o)}),pe(4,fH,1,0,"div",3),D(5,"div",4),pe(6,gH,2,3,"div",5),pe(7,_H,3,0,"div",6),pe(8,bH,3,0,"div",7),D(9,"div",8),pe(10,vH,1,1,"ng-template",9),Kt(11),w(),pe(12,CH,2,0,"div",10),pe(13,xH,2,0,"div",11),w(),pe(14,wH,1,0,"div",12),w(),D(15,"div",13),pe(16,DH,2,1,"div",14),pe(17,TH,5,2,"div",15),w()),2&e&&(R(2),an("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),R(2),U("ngIf",!i._hasOutline()&&!i._control.disabled),R(2),U("ngIf",i._hasOutline()),R(1),U("ngIf",i._hasIconPrefix),R(1),U("ngIf",i._hasTextPrefix),R(2),U("ngIf",!i._hasOutline()||i._forceDisplayInfixLabel()),R(2),U("ngIf",i._hasTextSuffix),R(1),U("ngIf",i._hasIconSuffix),R(1),U("ngIf",!i._hasOutline()),R(1),an("mat-mdc-form-field-subscript-dynamic-size","dynamic"===i.subscriptSizing),U("ngSwitch",i._getDisplayedMessages()),R(1),U("ngSwitchCase","error"),R(1),U("ngSwitchCase","hint"))},dependencies:[Fi,cT,uh,t_,Jk,sI,aI,dI,lI],styles:['.mdc-text-field{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{line-height:normal;pointer-events:all}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}'],encapsulation:2,data:{animation:[RH.transitionMessages]},changeDetection:0}),n})(),sb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,pa,$C,Wn]}),n})();function mI(n,t){return t?e=>z_(t.pipe(Br(1),function BH(){return qe((n,t)=>{n.subscribe(It(t,kt))})}()),e.pipe(mI(n))):Ao((e,i)=>yi(n(e,i)).pipe(Br(1),function VH(n){return Ln(()=>n)}(e)))}function fx(n,t=Cm){const e=H_(n,t);return mI(()=>e)}const HH=["panel"];function zH(n,t){if(1&n&&(D(0,"div",0,1),Kt(2),w()),2&n){const e=t.id,i=_e();U("id",i.id)("ngClass",i._classList)("@panelAnimation",i.isOpen?"visible":"hidden"),sn("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}const $H=["*"],jH=nl("panelAnimation",[ga("void, hidden",Ti({opacity:0,transform:"scaleY(0.8)"})),Co(":enter, hidden => visible",[nB([vo("0.03s linear",Ti({opacity:1})),vo("0.12s cubic-bezier(0, 0, 0.2, 1)",Ti({transform:"scaleY(1)"}))])]),Co(":leave, visible => hidden",[vo("0.075s linear",Ti({opacity:0}))])]);let UH=0;class WH{constructor(t,e){this.source=t,this.option=e}}const GH=td(class{}),pI=new De("mat-autocomplete-default-options",{providedIn:"root",factory:function YH(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1}}});let ZH=(()=>{class n extends GH{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=St(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=St(e)}set classList(e){this._classList=e&&e.length?function BV(n,t=/\s+/){const e=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(t);for(const r of i){const o=`${r}`.trim();o&&e.push(o)}}return e}(e).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(e,i,r,o){super(),this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=ne.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this._autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this._autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.optionSelected=new Je,this.opened=new Je,this.closed=new Je,this.optionActivated=new Je,this._classList={},this.id="mat-autocomplete-"+UH++,this.inertGroups=o?.SAFARI||!1}ngAfterContentInit(){this._keyManager=new aS(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const i=new WH(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}_setThemeClasses(e){e["mat-primary"]="primary"===this._color,e["mat-warn"]="warn"===this._color,e["mat-accent"]="accent"===this._color}}return n.\u0275fac=function(e){return new(e||n)(x(li),x(E),x(pI),x(Oi))},n.\u0275dir=y({type:n,viewQuery:function(e,i){if(1&e&&(Vn(hr,7),Vn(HH,5)),2&e){let r;Mt(r=Tt())&&(i.template=r.first),Mt(r=Tt())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[dt]}),n})(),qH=(()=>{class n extends ZH{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=St(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=k({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(Hn(r,ax,5),Hn(r,Dh,5)),2&e){let o;Mt(o=Tt())&&(i.optionGroups=o),Mt(o=Tt())&&(i.options=o)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[Wt([{provide:sx,useExisting:n}]),dt],ngContentSelectors:$H,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(e,i){1&e&&(xi(),pe(0,zH,3,5,"ng-template"))},dependencies:[dh],styles:[".mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mdc-menu-surface.mat-mdc-autocomplete-panel{width:100%;max-height:256px;position:static;visibility:hidden;transform-origin:center top;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-autocomplete-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) .mdc-menu-surface.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above .mdc-menu-surface.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}.mdc-menu-surface.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[jH]},changeDetection:0}),n})();const KH={provide:Yr,useExisting:dn(()=>_I),multi:!0},gI=new De("mat-autocomplete-scroll-strategy"),QH={provide:gI,deps:[Ca],useFactory:function XH(n){return()=>n.scrollStrategies.reposition()}};let JH=(()=>{class n{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=St(e)}constructor(e,i,r,o,a,c,d,h,p,_,M){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=d,this._formField=h,this._document=p,this._viewportRuler=_,this._defaults=M,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=ne.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ee,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=rI(()=>{const S=this.autocomplete?this.autocomplete.options:null;return S?S.changes.pipe(Lr(S),Sc(()=>si(...S.map(P=>P.onSelectionChange)))):this._zone.onStable.pipe(Br(1),Sc(()=>this.optionSelections))}),this._scrollStrategy=c}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return si(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(vs(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(vs(()=>this._overlayAttached)):ys()).pipe(Ln(e=>e instanceof US?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return si(kc(this._document,"click"),kc(this._document,"auxclick"),kc(this._document,"touchend")).pipe(vs(e=>{const i=Hs(e),r=this._formField?this._formField._elementRef.nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const i=e.keyCode,r=zs(e);if(27===i&&!r&&e.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const o=this.autocomplete._keyManager.activeItem,a=38===i||40===i;9===i||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return si(this._zone.onStable.pipe(Br(1)),this.autocomplete.options.changes.pipe(yh(()=>this._positionStrategy.reapplyLastPosition()),fx(0))).pipe(Sc(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),Br(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(i=>{i!==e&&i.selected&&i.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Nd(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Rm({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let a;a="above"===this.position?o:"below"===this.position?i:[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const i=this.autocomplete,r=WS(e,i.options,i.optionGroups);if(0===e&&1===r)i._setScrollTop(0);else if(i.panel){const o=i.options.toArray()[e];if(o){const a=o._getHostElement(),c=GS(a.offsetTop,a.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(c)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(i=>{(27===i.keyCode&&!zs(i)||38===i.keyCode&&zs(i,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),i.stopPropagation(),i.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Ca),x(fr),x(Gt),x(li),x(gI),x(Nr,8),x(Lm,9),x(cn,8),x(ol),x(pI,8))},n.\u0275dir=y({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[kr]}),n})(),_I=(()=>{class n extends JH{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=y({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(e,i){1&e&&ge("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(o){return i._handleInput(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(){return i._handleClick()}),2&e&&sn("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[Wt([KH]),dt]}),n})(),e6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[QH],imports:[Pm,nb,Wn,pa,Od,nb,Wn]}),n})();const t6=["mat-button",""],bI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],yI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],i6=["mat-fab",""],r6=["mat-icon-button",""],o6=["*"],s6=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],a6=wh(Pd(td(class{constructor(n){this._elementRef=n}})));let mx=(()=>{class n extends a6{constructor(e,i,r,o){super(e),this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=_i(ed),this._isFab=!1;const a=e.nativeElement.classList;for(const c of s6)this._hasHostAttributes(c.selector)&&c.mdcClasses.forEach(d=>{a.add(d)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_hasHostAttributes(...e){return e.some(i=>this._elementRef.nativeElement.hasAttribute(i))}_isRippleDisabled(){return this.disableRipple||this.disabled}}return n.\u0275fac=function(e){Pf()},n.\u0275dir=y({type:n,viewQuery:function(e,i){if(1&e&&Vn(es,5),2&e){let r;Mt(r=Tt())&&(i.ripple=r.first)}},features:[dt]}),n})(),br=(()=>{class n extends mx{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Oi),x(Gt),x(Rr,8))},n.\u0275cmp=k({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(sn("disabled",i.disabled||null),an("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[dt],attrs:t6,ngContentSelectors:yI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(xi(bI),Ge(0,"span",0),Kt(1),D(2,"span",1),Kt(3,1),w(),Kt(4,2),Ge(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(an("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),R(6),U("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[es],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})();const l6=new De("mat-mdc-fab-default-options",{providedIn:"root",factory:vI});function vI(){return{color:"accent"}}const CI=vI();let Nm=(()=>{class n extends mx{get extended(){return this._extended}set extended(e){this._extended=St(e)}constructor(e,i,r,o,a){super(e,i,r,o),this._options=a,this._isFab=!0,this._options=this._options||CI,this.color=this.defaultColor=this._options.color||CI.color}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Oi),x(Gt),x(Rr,8),x(l6,8))},n.\u0275cmp=k({type:n,selectors:[["button","mat-fab",""]],hostVars:11,hostBindings:function(e,i){2&e&&(sn("disabled",i.disabled||null),an("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0)("mdc-fab--extended",i.extended)("mat-mdc-extended-fab",i.extended))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",extended:"extended"},exportAs:["matButton"],features:[dt],attrs:i6,ngContentSelectors:yI,decls:8,vars:6,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(xi(bI),Ge(0,"span",0),Kt(1),D(2,"span",1),Kt(3,1),w(),Kt(4,2),Ge(5,"span",2)(6,"span",3)(7,"span",4)),2&e&&(an("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab),R(6),U("matRippleDisabled",i._isRippleDisabled())("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[es],styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n )}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab .mdc-fab__icon{width:24px;height:24px;font-size:24px}.mdc-fab:not(.mdc-fab--extended){border-radius:50%}.mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:50%}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--mdc-fab-container-color, transparent);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);color:var(--mat-mdc-fab-color, inherit);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(:disabled) .mdc-fab__icon,.mat-mdc-mini-fab:not(:disabled) .mdc-fab__icon{color:var(--mdc-fab-icon-color, inherit)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape, 50%)}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-extended-fab{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:24px}.mat-mdc-extended-fab .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon,.mat-mdc-extended-fab .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0}),n})(),px=(()=>{class n extends mx{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Oi),x(Gt),x(Rr,8))},n.\u0275cmp=k({type:n,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(e,i){2&e&&(sn("disabled",i.disabled||null),an("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-unthemed",!i.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[dt],attrs:r6,ngContentSelectors:o6,decls:5,vars:3,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],["matRipple","",1,"mat-mdc-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-button-touch-target"]],template:function(e,i){1&e&&(xi(),Ge(0,"span",0),Kt(1),Ge(2,"span",1)(3,"span",2)(4,"span",3)),2&e&&(R(3),U("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0)("matRippleTrigger",i._elementRef.nativeElement))},dependencies:[es],styles:['.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{max-height:48px;max-width:48px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size, 48px);width:var(--mdc-icon-button-state-layer-size, 48px);color:var(--mdc-icon-button-icon-color, inherit);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity, 0.38)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color, #000)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),xI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,Ld,Wn]}),n})();class wI{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ee,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(t){if(this.compareWith){for(let e of this._selection)if(this.compareWith(t,e))return e;return t}return t}}const d6=["button"],u6=["*"],DI=new De("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),MI=new De("MatButtonToggleGroup"),h6={provide:Yr,useExisting:dn(()=>kI),multi:!0};let TI=0;class EI{constructor(t,e){this.source=t,this.value=e}}let kI=(()=>{class n{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(e){this._vertical=St(e)}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=St(e),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=St(e),this._markButtonsForCheck()}constructor(e,i){this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+TI++,this.valueChange=new Je,this.change=new Je,this.appearance=i&&i.appearance?i.appearance:"standard"}ngOnInit(){this._selectionModel=new wI(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){const i=new EI(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(e,i,r=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,r)):this._updateModelValue(e,r)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>null!=e.value&&i===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(i=>this._selectValue(i))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const i=this._buttonToggles.find(r=>null!=r.value&&r.value===e);i&&(i.checked=!0,this._selectionModel.select(i))}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(x(li),x(DI,8))},n.\u0275dir=y({type:n,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,i,r){if(1&e&&Hn(r,SI,5),2&e){let o;Mt(o=Tt())&&(i._buttonToggles=o)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,i){2&e&&(sn("aria-disabled",i.disabled),an("mat-button-toggle-vertical",i.vertical)("mat-button-toggle-group-appearance-standard","standard"===i.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Wt([h6,{provide:MI,useExisting:n}])]}),n})();const f6=td(class{});let SI=(()=>{class n extends f6{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){const i=St(e);i!==this._checked&&(this._checked=i,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=St(e)}constructor(e,i,r,o,a,c){super(),this._changeDetectorRef=i,this._elementRef=r,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Je;const d=Number(a);this.tabIndex=d||0===d?d:null,this.buttonToggleGroup=e,this.appearance=c&&c.appearance?c.appearance:"standard"}ngOnInit(){const e=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+TI++,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector()||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new EI(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return n.\u0275fac=function(e){return new(e||n)(x(MI,8),x(li),x(E),x(ed),Os("tabindex"),x(DI,8))},n.\u0275cmp=k({type:n,selectors:[["mat-button-toggle"]],viewQuery:function(e,i){if(1&e&&Vn(d6,5),2&e){let r;Mt(r=Tt())&&(i._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,i){1&e&&ge("focus",function(){return i.focus()}),2&e&&(sn("aria-label",null)("aria-labelledby",null)("id",i.id)("name",null),an("mat-button-toggle-standalone",!i.buttonToggleGroup)("mat-button-toggle-checked",i.checked)("mat-button-toggle-disabled",i.disabled)("mat-button-toggle-appearance-standard","standard"===i.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[dt],ngContentSelectors:u6,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,i){if(1&e&&(xi(),D(0,"button",0,1),ge("click",function(){return i._onButtonClick()}),D(2,"span",2),Kt(3),w()(),Ge(4,"span",3)(5,"span",4)),2&e){const r=qo(1);U("id",i.buttonId)("disabled",i.disabled||null),sn("tabindex",i.disabled?-1:i.tabIndex)("aria-pressed",i.checked)("name",i._getButtonName())("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby),R(5),U("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)}},dependencies:[es],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),n})(),m6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,Ld,Wn]}),n})();const p6=["*"],b6=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],y6=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],v6=new De("MAT_CARD_CONFIG");let Mh=(()=>{class n{constructor(e){this.appearance=e?.appearance||"raised"}}return n.\u0275fac=function(e){return new(e||n)(x(v6,8))},n.\u0275cmp=k({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(e,i){2&e&&an("mat-mdc-card-outlined","outlined"===i.appearance)("mdc-card--outlined","outlined"===i.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:p6,decls:1,vars:0,template:function(e,i){1&e&&(xi(),Kt(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mat-mdc-card{position:relative;border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px));background-color:var(--mdc-elevated-card-container-color, transparent);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color, transparent)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape, var(--mdc-shape-medium, 4px))}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width, 1px);border-style:solid;border-color:var(--mdc-outlined-card-outline-color, transparent)}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0}),n})(),Th=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]}),n})(),Eh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]}),n})(),kh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]}),n})(),Sh=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(e,i){2&e&&an("mat-mdc-card-actions-align-end","end"===i.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),n})(),Ih=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=k({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:y6,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(e,i){1&e&&(xi(b6),Kt(0),D(1,"div",0),Kt(2,1),w(),Kt(3,2))},encapsulation:2,changeDetection:0}),n})(),S6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,pa,Wn]}),n})();const I6=["input"],A6=["label"],F6=["*"],O6=new De("mat-checkbox-default-options",{providedIn:"root",factory:II});function II(){return{color:"accent",clickAction:"check-indeterminate"}}const R6={provide:Yr,useExisting:dn(()=>Vd),multi:!0};class P6{}let L6=0;const AI=II(),N6=Im(wh(td(Pd(class{constructor(n){this._elementRef=n}}))));let B6=(()=>{class n extends N6{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=St(e)}constructor(e,i,r,o,a,c,d){super(i),this._changeDetectorRef=r,this._ngZone=o,this._animationMode=c,this._options=d,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Je,this.indeterminateChange=new Je,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||AI,this.color=this.defaultColor=this._options.color||AI.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++L6}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const i=St(e);i!=this.checked&&(this._checked=i,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const i=St(e);i!==this.disabled&&(this._disabled=i,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=St(e),i&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===i)return this._animationClasses.uncheckedToChecked;if(3==i)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===i?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===i?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===i?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){Pf()},n.\u0275dir=y({type:n,viewQuery:function(e,i){if(1&e&&(Vn(I6,5),Vn(A6,5),Vn(es,5)),2&e){let r;Mt(r=Tt())&&(i._inputElement=r.first),Mt(r=Tt())&&(i._labelElement=r.first),Mt(r=Tt())&&(i.ripple=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[dt]}),n})(),Vd=(()=>{class n extends B6{constructor(e,i,r,o,a,c){super("mat-mdc-checkbox-",e,i,r,o,a,c),this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"}}focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new P6;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_onInputClick(){super._handleInputClick()}_onTouchTargetClick(){super._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(Gt),Os("tabindex"),x(Rr,8),x(O6,8))},n.\u0275cmp=k({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-mdc-checkbox"],hostVars:12,hostBindings:function(e,i){2&e&&(Ls("id",i.id),sn("tabindex",null)("aria-label",null)("aria-labelledby",null),an("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mdc-checkbox--disabled",i.disabled)("mat-mdc-checkbox-disabled",i.disabled)("mat-mdc-checkbox-checked",i.checked))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[Wt([R6]),dt],ngContentSelectors:F6,decls:15,vars:19,consts:[[1,"mdc-form-field",3,"click"],[1,"mdc-checkbox"],["checkbox",""],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled","id","required","tabIndex","blur","click","change"],["input",""],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[3,"for"],["label",""]],template:function(e,i){if(1&e&&(xi(),D(0,"div",0),ge("click",function(o){return i._preventBubblingFromLabel(o)}),D(1,"div",1,2)(3,"div",3),ge("click",function(){return i._onTouchTargetClick()}),w(),D(4,"input",4,5),ge("blur",function(){return i._onBlur()})("click",function(){return i._onInputClick()})("change",function(o){return i._onInteractionEvent(o)}),w(),Ge(6,"div",6),D(7,"div",7),hc(),D(8,"svg",8),Ge(9,"path",9),w(),su(),Ge(10,"div",10),w(),Ge(11,"div",11),w(),D(12,"label",12,13),Kt(14),w()()),2&e){const r=qo(2);an("mdc-form-field--align-end","before"==i.labelPosition),R(4),an("mdc-checkbox--selected",i.checked),U("checked",i.checked)("disabled",i.disabled)("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex),sn("aria-checked",i._getAriaChecked())("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("name",i.name)("value",i.value),R(7),U("matRippleTrigger",r)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),R(1),U("for",i.inputId)}},dependencies:[es],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:var(--mdc-checkbox-state-layer-size, 48px);height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color, rgba(0, 0, 0, 0.38))}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, #fff)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mdc-theme-secondary, #018786));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(.mdc-ripple-upgraded):focus.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF018786FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786));background-color:var(--mdc-checkbox-selected-pressed-icon-color, var(--mdc-theme-secondary, #018786))}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mat-mdc-checkbox .mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px) / 2)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2);width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px)}.mat-mdc-checkbox .mdc-checkbox:hover .mdc-checkbox__native-control:not([disabled])~.mdc-checkbox__ripple{opacity:.04;transform:scale(1);transition:opacity 80ms 0 cubic-bezier(0, 0, 0.2, 1),transform 80ms 0 cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:not([disabled]):focus~.mdc-checkbox__ripple{opacity:.16}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__native-control:focus:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, black)}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),FI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({}),n})(),z6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,Ld,FI,Wn,FI]}),n})();function $6(n,t){1&n&&(D(0,"span",8),Kt(1,1),w())}function j6(n,t){1&n&&(D(0,"span",9),Kt(1,2),w())}const OI=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],RI=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function G6(n,t){if(1&n&&(bo(0),Ge(1,"span",9)(2,"span",10),yo()),2&n){const e=_e();R(1),U("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e._isRippleCentered)("matRippleTrigger",e._elementRef.nativeElement)}}function Y6(n,t){1&n&&(D(0,"span",11),Kt(1),w())}function Z6(n,t){1&n&&(bo(0),Kt(1,1),yo())}function q6(n,t){1&n&&Kt(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function K6(n,t){1&n&&Ge(0,"span",14)}function X6(n,t){if(1&n&&(bo(0),pe(1,q6,1,0,"ng-content",12),pe(2,K6,1,0,"ng-template",null,13,Ng),yo()),2&n){const e=qo(3),i=_e();R(1),U("ngIf",i.contentEditInput)("ngIfElse",e)}}function Q6(n,t){1&n&&(D(0,"span",15),Kt(1,3),w())}const J6=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ez=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],gx=["*"],ab=new De("mat-chips-default-options"),_x=new De("MatChipAvatar"),bx=new De("MatChipTrailingIcon"),yx=new De("MatChipRemove"),cb=new De("MatChip");class tz{}const nz=Im(tz,-1);let Ah=(()=>{class n extends nz{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=St(e)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){super(),this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(cb))},n.\u0275dir=y({type:n,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(e,i){1&e&&ge("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(sn("tabindex",i._getTabindex())("disabled",i._getDisabledAttribute())("aria-disabled",i.disabled),an("mdc-evolution-chip__action--primary",i._isPrimary)("mdc-evolution-chip__action--presentational",!i.isInteractive)("mdc-evolution-chip__action--trailing",!i._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[dt]}),n})(),vx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[Wt([{provide:_x,useExisting:n}])]}),n})(),NI=(()=>{class n extends Ah{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(e){this.disabled||(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!this.disabled&&(e.stopPropagation(),e.preventDefault(),this._parentChip.remove())}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=y({type:n,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(e,i){2&e&&sn("aria-hidden",null)},features:[Wt([{provide:yx,useExisting:n}]),dt]}),n})(),rz=0;const oz=Im(wh(td(Pd(class{constructor(n){this._elementRef=n}})),"primary"),-1);let nd=(()=>{class n extends oz{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get removable(){return this._removable}set removable(e){this._removable=St(e)}get highlighted(){return this._highlighted}set highlighted(e){this._highlighted=St(e)}constructor(e,i,r,o,a,c,d,h){super(i),this._changeDetectorRef=e,this._ngZone=r,this._focusMonitor=o,this._globalRippleOptions=d,this._isRippleCentered=!1,this._onFocus=new Ee,this._onBlur=new Ee,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+rz++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new Je,this.destroyed=new Je,this.basicChipAttrName="mat-basic-chip";const p=i.nativeElement;this._document=a,this._animationsDisabled="NoopAnimations"===c,this._isBasicChip=p.hasAttribute(this.basicChipAttrName)||p.tagName.toLowerCase()===this.basicChipAttrName,null!=h&&(this.tabIndex=parseInt(h)??this.defaultTabIndex),this._monitorFocus()}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=si(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(e){(8===e.keyCode||46===e.keyCode)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){const e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const i=null!==e;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(Br(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}}return n.\u0275fac=function(e){return new(e||n)(x(li),x(E),x(Gt),x(ed),x(cn),x(Rr,8),x(ox,8),Os("tabindex"))},n.\u0275cmp=k({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(Hn(r,_x,5),Hn(r,bx,5),Hn(r,yx,5),Hn(r,_x,5),Hn(r,bx,5),Hn(r,yx,5)),2&e){let o;Mt(o=Tt())&&(i.leadingIcon=o.first),Mt(o=Tt())&&(i.trailingIcon=o.first),Mt(o=Tt())&&(i.removeIcon=o.first),Mt(o=Tt())&&(i._allLeadingIcons=o),Mt(o=Tt())&&(i._allTrailingIcons=o),Mt(o=Tt())&&(i._allRemoveIcons=o)}},viewQuery:function(e,i){if(1&e&&(Vn(es,5),Vn(Ah,5)),2&e){let r;Mt(r=Tt())&&(i.ripple=r.first),Mt(r=Tt())&&(i.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(e,i){1&e&&ge("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Ls("id",i.id),sn("role",i.role)("tabindex",i.role?i.tabIndex:null)("aria-label",i.ariaLabel),an("mdc-evolution-chip",!i._isBasicChip)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-basic-chip",i._isBasicChip)("mat-mdc-standard-chip",!i._isBasicChip)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon())("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Wt([{provide:cb,useExisting:n}]),dt],ngContentSelectors:RI,decls:9,vars:6,consts:[["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(xi(OI),Ge(0,"span",0)(1,"span",1),D(2,"span",2)(3,"span",3),pe(4,$6,2,0,"span",4),D(5,"span",5),Kt(6),Ge(7,"span",6),w()()(),pe(8,j6,2,0,"span",7)),2&e&&(U("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i._isRippleCentered)("matRippleTrigger",i._elementRef.nativeElement),R(3),U("isInteractive",!1),R(1),U("ngIf",i.leadingIcon),R(4),U("ngIf",i._hasTrailingIcon()))},dependencies:[Fi,es,Ah],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),lb=(()=>{class n{constructor(e,i){this._elementRef=e,this._document=i}initialize(e){this.getNativeElement().focus(),this.setValue(e)}getNativeElement(){return this._elementRef.nativeElement}setValue(e){this.getNativeElement().textContent=e,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const e=this._document.createRange();e.selectNodeContents(this.getNativeElement()),e.collapse(!1);const i=window.getSelection();i.removeAllRanges(),i.addRange(e)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(cn))},n.\u0275dir=y({type:n,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]}),n})(),Cx=(()=>{class n extends nd{constructor(e,i,r,o,a,c,d,h){super(e,i,r,o,a,c,d,h),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new Je,this._isEditing=!1,this.role="row",this._onBlur.pipe(Cn(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_mousedown(e){this._isEditing||(this.disabled||this.focus(),e.preventDefault())}_handleKeydown(e){13!==e.keyCode||this.disabled?this._isEditing?e.stopPropagation():super._handleKeydown(e):this._isEditing?(e.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(e)}_doubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;const i=this.value;this._isEditing=!0,this._editStartPending=!0,setTimeout(()=>{this._getEditInput().initialize(i),this._editStartPending=!1})}_onEditFinish(){this._isEditing=!1,this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_getEditInput(){return this.contentEditInput||this.defaultEditInput}}return n.\u0275fac=function(e){return new(e||n)(x(li),x(E),x(Gt),x(ed),x(cn),x(Rr,8),x(ox,8),Os("tabindex"))},n.\u0275cmp=k({type:n,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(e,i,r){if(1&e&&Hn(r,lb,5),2&e){let o;Mt(o=Tt())&&(i.contentEditInput=o.first)}},viewQuery:function(e,i){if(1&e&&Vn(lb,5),2&e){let r;Mt(r=Tt())&&(i.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(e,i){1&e&&ge("mousedown",function(o){return i._mousedown(o)})("dblclick",function(o){return i._doubleclick(o)}),2&e&&(Ls("id",i.id),sn("tabindex",null)("aria-label",null)("aria-description",null)("role",i.role),an("mat-mdc-chip-with-avatar",i.leadingIcon)("mat-mdc-chip-disabled",i.disabled)("mat-mdc-chip-editing",i._isEditing)("mat-mdc-chip-editable",i.editable)("mdc-evolution-chip--disabled",i.disabled)("mdc-evolution-chip--with-trailing-action",i._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",i.leadingIcon)("mdc-evolution-chip--with-primary-icon",i.leadingIcon)("mdc-evolution-chip--with-avatar",i.leadingIcon)("mat-mdc-chip-highlighted",i.highlighted)("mat-mdc-chip-with-trailing-icon",i._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[Wt([{provide:nd,useExisting:n},{provide:cb,useExisting:n}]),dt],ngContentSelectors:ez,decls:11,vars:13,consts:[[4,"ngIf"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],["matRipple","",1,"mat-mdc-chip-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(e,i){1&e&&(xi(J6),pe(0,G6,3,3,"ng-container",0),D(1,"span",1)(2,"span",2),pe(3,Y6,2,0,"span",3),D(4,"span",4),pe(5,Z6,2,0,"ng-container",5),pe(6,X6,4,2,"ng-container",5),Ge(7,"span",6),w()()(),pe(8,Q6,2,0,"span",7),D(9,"span",8),N(10),w()),2&e&&(U("ngIf",!i._isEditing),R(2),U("tabIndex",i.tabIndex)("disabled",i.disabled),sn("role",i.editable?"button":null)("aria-label",i.ariaLabel)("aria-describedby",i._ariaDescriptionId),R(1),U("ngIf",i.leadingIcon),R(1),U("ngSwitch",i._isEditing),R(1),U("ngSwitchCase",!1),R(1),U("ngSwitchCase",!0),R(2),U("ngIf",i._hasTrailingIcon()),R(1),U("id",i._ariaDescriptionId),R(1),bn(i.ariaDescription))},dependencies:[Fi,uh,t_,es,Ah,lb],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic{height:24px;width:24px;font-size:24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius, 16px 16px 16px 16px)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 14px 14px 14px 14px)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size, 28px);width:var(--mdc-chip-with-avatar-avatar-size, 28px);font-size:var(--mdc-chip-with-avatar-avatar-size, 28px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width, 1px)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-outline-width, 1px)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--selected) .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-unselected-outline-width, 1px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color, transparent)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, currentColor)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size, 18px);width:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, currentColor)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, currentColor)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, currentColor)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{width:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();class sz{constructor(t){}}const az=Im(sz);let db=(()=>{class n extends az{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get disabled(){return this._disabled}set disabled(e){this._disabled=St(e),this._syncChipsState()}get empty(){return 0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,r){super(e),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Ee,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new Gl}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&e<this._chips.length}_allowFocusEscape(){if(-1!==this.tabIndex){const e=this.tabIndex;this.tabIndex=-1,setTimeout(()=>this.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(Lr(null),Sc(()=>si(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList&&i.classList.contains("mdc-evolution-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(Lr(this._chips)).subscribe(e=>{const i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new GC(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Cn(this._destroyed)).subscribe(({chip:e})=>{const i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Cn(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(Lr(null),Cn(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Cn(this._destroyed)).subscribe(e=>{const r=this._chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(Nr,8))},n.\u0275cmp=k({type:n,selectors:[["mat-chip-set"]],contentQueries:function(e,i,r){if(1&e&&Hn(r,nd,5),2&e){let o;Mt(o=Tt())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(e,i){1&e&&ge("keydown",function(o){return i._handleKeydown(o)}),2&e&&sn("role",i.role)},inputs:{disabled:"disabled",role:"role"},features:[dt],ngContentSelectors:gx,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(xi(),D(0,"div",0),Kt(1),w())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})();class dz{constructor(t,e){this.source=t,this.value=e}}class uz extends db{constructor(t,e,i,r,o,a,c){super(t,e,i),this._defaultErrorStateMatcher=r,this._parentForm=o,this._parentFormGroup=a,this.ngControl=c,this.stateChanges=new Ee}}const hz=rx(uz);let HI=(()=>{class n extends hz{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=St(e),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Kn.required)??!1}set required(e){this._required=St(e),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(e){this._value=e}get chipBlurChanges(){return this._getChipStream(e=>e._onBlur)}constructor(e,i,r,o,a,c,d){super(e,i,r,c,o,a,d),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new Je,this.valueChange=new Je,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe(Cn(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),si(this.chipFocusChanges,this._chips.changes).pipe(Cn(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}writeValue(e){this._value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(e){9===e.keyCode?this._chipInput.focused&&zs(e,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(e.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(e),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const e=this._chips.length?this._chips.toArray().map(i=>i.value):[];this._value=e,this.change.emit(new dz(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(Nr,8),x(mh,8),x(Jo,8),x(tb),x(qa,10))},n.\u0275cmp=k({type:n,selectors:[["mat-chip-grid"]],contentQueries:function(e,i,r){if(1&e&&Hn(r,Cx,5),2&e){let o;Mt(o=Tt())&&(i._chips=o)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(e,i){1&e&&ge("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Ls("tabIndex",i._chips&&0===i._chips.length?-1:i.tabIndex),sn("role",i.role)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState),an("mat-mdc-chip-list-disabled",i.disabled)("mat-mdc-chip-list-invalid",i.errorState)("mat-mdc-chip-list-required",i.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Wt([{provide:ob,useExisting:n}]),dt],ngContentSelectors:gx,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(e,i){1&e&&(xi(),D(0,"div",0),Kt(1),w())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),n})(),fz=0,zI=(()=>{class n{set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=St(e)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=St(e)}get empty(){return!this.inputElement.value}constructor(e,i,r){this._elementRef=e,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Je,this.placeholder="",this.id="mat-mdc-chip-list-input-"+fz++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,r&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(e){(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(e){const i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!zs(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(ab),x(Lm,8))},n.\u0275dir=y({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(e,i){1&e&&ge("keydown",function(o){return i._keydown(o)})("keyup",function(o){return i._keyup(o)})("blur",function(){return i._blur()})("focus",function(){return i._focus()})("input",function(){return i._onInput()}),2&e&&(Ls("id",i.id),sn("disabled",i.disabled||null)("placeholder",i.placeholder||null)("aria-invalid",i._chipGrid&&i._chipGrid.ngControl?i._chipGrid.ngControl.invalid:null)("aria-required",i._chipGrid&&i._chipGrid.required||null)("required",i._chipGrid&&i._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[kr]}),n})(),mz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[tb,{provide:ab,useValue:{separatorKeyCodes:[13]}}],imports:[Wn,pa,Ld,Wn]}),n})();function xx(n){return qe((t,e)=>{let o,i=null,r=!1;i=t.subscribe(It(e,void 0,void 0,a=>{o=yi(n(a,xx(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}const _z=["*"];let ub;function Bm(n){return function bz(){if(void 0===ub&&(ub=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(ub=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ub}()?.createHTML(n)||n}function $I(n){return Error(`Unable to find icon with the name "${n}"`)}function jI(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function UI(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Hd{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Vm=(()=>{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 Hd(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const a=this._sanitizer.sanitize(Zn.HTML,r);if(!a)throw UI(r);const c=Bm(a);return this._addSvgIconConfig(e,i,new Hd("",c,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 Hd(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(Zn.HTML,i);if(!o)throw UI(i);const a=Bm(o);return this._addSvgIconSetConfig(e,new Hd("",a,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(Zn.RESOURCE_URL,e);if(!i)throw jI(e);const r=this._cachedIconsByUrl.get(i);return r?ys(hb(r)):this._loadSvgIconFromConfig(new Hd(e,null)).pipe(yh(o=>this._cachedIconsByUrl.set(i,o)),Ln(o=>hb(o)))}getNamedSvgIcon(e,i=""){const r=WI(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 a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):function pz(n,t){const e=q(n)?n:()=>n,i=r=>r.error(e());return new ye(t?r=>t.schedule(i,0,r):i)}($I(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ys(hb(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ln(i=>hb(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?ys(r):kE(i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(xx(c=>{const h=`Loading icon set URL: ${this._sanitizer.sanitize(Zn.RESOURCE_URL,a.url)} failed: ${c.message}`;return this._errorHandler.handleError(new Error(h)),ys(null)})))).pipe(Ln(()=>{const a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw $I(e);return a}))}_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 a=this._svgElementFromConfig(o),c=this._extractSvgIconFromSet(a,e,o.options);if(c)return c}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(yh(i=>e.svgText=i),Ln(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ys(null):this._fetchIcon(e).pipe(yh(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const a=o.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,r);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),r);const c=this._svgElementFromString(Bm("<svg></svg>"));return c.appendChild(a),this._setSvgAttributes(c,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Bm("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){const{name:a,value:c}=r[o];"id"!==a&&i.setAttribute(a,c)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[o].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){const{url:i,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw function yz(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==i)throw Error(`Cannot fetch icon from URL "${i}".`);const a=this._sanitizer.sanitize(Zn.RESOURCE_URL,i);if(!a)throw jI(i);const c=this._inProgressUrlFetches.get(a);if(c)return c;const d=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(Ln(h=>Bm(h)),function gz(n){return qe((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}(()=>this._inProgressUrlFetches.delete(a)),qs());return this._inProgressUrlFetches.set(a,d),d}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(WI(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;r<this._resolvers.length;r++){const o=this._resolvers[r](i,e);if(o)return Cz(o)?new Hd(o.url,null,o.options):new Hd(o,null)}}}return n.\u0275fac=function(e){return new(e||n)(te(gm,8),te(c_),te(cn,8),te(Xe))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hb(n){return n.cloneNode(!0)}function WI(n,t){return n+":"+t}function Cz(n){return!(!n.url||!n.options)}const xz=wh(class{constructor(n){this._elementRef=n}}),wz=new De("MAT_ICON_DEFAULT_OPTIONS"),Dz=new De("mat-icon-location",{providedIn:"root",factory:function Mz(){const n=_i(cn),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),GI=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Tz=GI.map(n=>`[${n}]`).join(", "),Ez=/^url\(['"]?#(.*?)['"]?\)$/;let Ja=(()=>{class n extends xz{get inline(){return this._inline}set inline(e){this._inline=St(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())}constructor(e,i,r,o,a,c){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ne.EMPTY,c&&(c.color&&(this.color=this.defaultColor=c.color),c.fontSet&&(this.fontSet=c.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_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(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Tz),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<i.length;o++)GI.forEach(a=>{const c=i[o],d=c.getAttribute(a),h=d?d.match(Ez):null;if(h){let p=r.get(c);p||(p=[],r.set(c,p)),p.push({name:a,value:h[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(Br(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)(x(E),x(Vm),Os("aria-hidden"),x(Dz),x(Xe),x(wz,8))},n.\u0275cmp=k({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(sn("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),an("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:[dt],ngContentSelectors:_z,decls:1,vars:0,template:function(e,i){1&e&&(xi(),Kt(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})(),kz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,Wn]}),n})();const YI=Xa({passive:!0});let Sz=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Yn;const i=Wi(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new Ee,a="cdk-text-field-autofilled",c=d=>{"cdk-text-field-autofill-start"!==d.animationName||i.classList.contains(a)?"cdk-text-field-autofill-end"===d.animationName&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:d.target,isAutofilled:!1}))):(i.classList.add(a),this._ngZone.run(()=>o.next({target:d.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",c,YI),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",c,YI)}}),o}stopMonitoring(e){const i=Wi(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(te(Oi),te(Gt))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({}),n})();const Az=new De("MAT_INPUT_VALUE_ACCESSOR"),Fz=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Oz=0;const Rz=rx(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new Ee}});let xa=(()=>{class n extends Rz{get disabled(){return this._disabled}set disabled(e){this._disabled=St(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Kn.required)??!1}set required(e){this._required=St(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Gk().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=St(e)}constructor(e,i,r,o,a,c,d,h,p,_){super(c,o,a,r),this._elementRef=e,this._platform=i,this._autofillMonitor=h,this._formField=_,this._uid="mat-input-"+Oz++,this.focused=!1,this.stateChanges=new Ee,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(P=>Gk().has(P)),this._iOSKeyupListener=P=>{const $=P.target;!$.value&&0===$.selectionStart&&0===$.selectionEnd&&($.setSelectionRange(1,1),$.setSelectionRange(0,0))};const M=this._elementRef.nativeElement,S=M.nodeName.toLowerCase();this._inputValueAccessor=d||M,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===S,this._isTextarea="textarea"===S,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=M.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){const e=this._getPlaceholder();if(e!==this._previousPlaceholder){const i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Fz.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Oi),x(qa,10),x(mh,8),x(Jo,8),x(tb),x(Az,10),x(Sz),x(Gt),x(Lm,8))},n.\u0275dir=y({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(e,i){1&e&&ge("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ls("id",i.id)("disabled",i.disabled)("required",i.required),sn("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),an("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Wt([{provide:ob,useExisting:n}]),dt,kr]}),n})(),Pz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,sb,sb,Iz,Wn]}),n})();const Lz=["mat-menu-item",""];function Nz(n,t){1&n&&(hc(),D(0,"svg",3),Ge(1,"polygon",4),w())}const Bz=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Vz=["mat-icon, [matMenuItemIcon]","*"];function Hz(n,t){if(1&n){const e=Dn();D(0,"div",0),ge("keydown",function(r){return Ot(e),Ht(_e()._handleKeydown(r))})("click",function(){return Ot(e),Ht(_e().closed.emit("click"))})("@transformMenu.start",function(r){return Ot(e),Ht(_e()._onAnimationStart(r))})("@transformMenu.done",function(r){return Ot(e),Ht(_e()._onAnimationDone(r))}),D(1,"div",1),Kt(2),w()()}if(2&n){const e=_e();U("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),sn("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const zz=["*"],wx=new De("MAT_MENU_PANEL"),$z=td(Pd(class{}));let fb=(()=>{class n extends $z{constructor(e,i,r,o,a){super(),this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new Ee,this._focused=new Ee,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<i.length;r++)i[r].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(cn),x(ed),x(wx,8),x(li))},n.\u0275cmp=k({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator","mdc-list-item"],hostVars:8,hostBindings:function(e,i){1&e&&ge("click",function(o){return i._checkDisabled(o)})("mouseenter",function(){return i._handleMouseEnter()}),2&e&&(sn("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled)("disabled",i.disabled||null),an("mat-mdc-menu-item-highlighted",i._highlighted)("mat-mdc-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[dt],attrs:Lz,ngContentSelectors:Vz,decls:5,vars:3,consts:[[1,"mdc-list-item__primary-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(e,i){1&e&&(xi(Bz),Kt(0),D(1,"span",0),Kt(2,1),w(),Ge(3,"div",1),pe(4,Nz,2,0,"svg",2)),2&e&&(R(3),U("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),R(1),U("ngIf",i._triggersSubmenu))},dependencies:[Fi,es],encapsulation:2,changeDetection:0}),n})();const jz=new De("MatMenuContent"),mb={transformMenu:nl("transformMenu",[ga("void",Ti({opacity:0,transform:"scale(0.8)"})),Co("void => enter",vo("120ms cubic-bezier(0, 0, 0.2, 1)",Ti({opacity:1,transform:"scale(1)"}))),Co("* => void",vo("100ms 25ms linear",Ti({opacity:0})))]),fadeInItems:nl("fadeInItems",[ga("showing",Ti({opacity:1})),Co("void => *",[Ti({opacity:0}),vo("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Uz=0;const ZI=new De("mat-menu-default-options",{providedIn:"root",factory:function Wz(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Hm=(()=>{class n{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=St(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=St(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Gl,this._classList={},this._panelAnimationState="void",this._animationDone=new Ee,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Je,this.close=this.closed,this.panelId="mat-menu-panel-"+Uz++}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new GC(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Lr(this._directDescendantItems),Sc(e=>si(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const i=this._keyManager;if("enter"===this._panelAnimationState&&i.activeItem?._hasFocus()){const r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Lr(this._directDescendantItems),Sc(i=>si(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:zs(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(Br(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Lr(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Gt),x(ZI),x(li))},n.\u0275dir=y({type:n,contentQueries:function(e,i,r){if(1&e&&(Hn(r,jz,5),Hn(r,fb,5),Hn(r,fb,4)),2&e){let o;Mt(o=Tt())&&(i.lazyContent=o.first),Mt(o=Tt())&&(i._allItems=o),Mt(o=Tt())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Vn(hr,5),2&e){let r;Mt(r=Tt())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Gz=(()=>{class n extends Hm{constructor(e,i,r,o){super(e,i,r,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Gt),x(ZI),x(li))},n.\u0275cmp=k({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&sn("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Wt([{provide:wx,useExisting:n}]),dt],ngContentSelectors:zz,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mdc-menu-surface","mdc-menu-surface--open","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content","mdc-list"]],template:function(e,i){1&e&&(xi(),pe(0,Hz,3,6,"ng-template"))},dependencies:[dh],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item.mdc-list-item{align-items:center}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item .mdc-list-item__primary-text{white-space:normal}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[mb.transformMenu,mb.fadeInItems]},changeDetection:0}),n})();const qI=new De("mat-menu-scroll-strategy"),Zz={provide:qI,deps:[Ca],useFactory:function Yz(n){return()=>n.scrollStrategies.reposition()}},KI=Xa({passive:!0});let qz=(()=>{class n{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,a,c,d,h,p){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=c,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ne.EMPTY,this._hoverSubscription=ne.EMPTY,this._menuCloseSubscription=ne.EMPTY,this._changeDetectorRef=_i(li),this._handleTouchStart=_=>{q_(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Je,this.onMenuOpen=this.menuOpened,this.menuClosed=new Je,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Hm?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,KI)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,KI),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Hm&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Cn(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Hm?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(vs(r=>"void"===r.toState),Br(1),Cn(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Rm({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{const o="start"===r.connectionPair.overlayX?"after":"before",a="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,i){let[r,o]="before"===e.xPosition?["end","start"]:["start","end"],[a,c]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[d,h]=[a,c],[p,_]=[r,o],M=0;if(this.triggersSubmenu()){if(_=r="before"===e.xPosition?"start":"end",o=p="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const S=this._parentMaterialMenu.items.first;this._parentInnerPadding=S?S._getHostElement().offsetTop:0}M="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d="top"===a?"bottom":"top",h="top"===c?"bottom":"top");i.withPositions([{originX:r,originY:d,overlayX:p,overlayY:a,offsetY:M},{originX:o,originY:d,overlayX:_,overlayY:a,offsetY:M},{originX:r,originY:h,overlayX:p,overlayY:c,offsetY:-M},{originX:o,originY:h,overlayX:_,overlayY:c,offsetY:-M}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return si(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:ys(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(vs(a=>a!==this._menuItemInstance),vs(()=>this._menuOpen)):ys(),i)}_handleMousedown(e){Z_(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(vs(e=>e===this._menuItemInstance&&!e.disabled),fx(0,AC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Hm&&this.menu._isAnimating?this.menu._animationDone.pipe(Br(1),fx(0,AC),Cn(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Nd(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(x(Ca),x(E),x(fr),x(qI),x(wx,8),x(fb,10),x(Nr,8),x(ed),x(Gt))},n.\u0275dir=y({type:n,hostVars:3,hostBindings:function(e,i){1&e&&ge("click",function(o){return i._handleClick(o)})("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)}),2&e&&sn("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Kz=(()=>{class n extends qz{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=y({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[dt]}),n})(),Xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[Zz],imports:[pa,Ld,Wn,Pm,Od,Wn]}),n})();const Qz=["trigger"],Jz=["panel"];function e$(n,t){if(1&n&&(D(0,"span",10),N(1),w()),2&n){const e=_e();R(1),bn(e.placeholder)}}function t$(n,t){if(1&n&&(D(0,"span",14),N(1),w()),2&n){const e=_e(2);R(1),bn(e.triggerValue)}}function n$(n,t){1&n&&Kt(0,0,["*ngSwitchCase","true"])}function i$(n,t){1&n&&(D(0,"span",11),pe(1,t$,2,1,"span",12),pe(2,n$,1,0,"ng-content",13),w()),2&n&&(U("ngSwitch",!!_e().customTrigger),R(2),U("ngSwitchCase",!0))}function r$(n,t){if(1&n){const e=Dn();hc(),su(),D(0,"div",15,16),ge("@transformPanel.done",function(r){return Ot(e),Ht(_e()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Ot(e),Ht(_e()._handleKeydown(r))}),Kt(2,1),w()}if(2&n){const e=_e();H1("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),U("ngClass",e.panelClass)("@transformPanel","showing"),sn("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const o$=[[["mat-select-trigger"]],"*"],s$=["mat-select-trigger","*"],a$={transformPanelWrap:nl("transformPanelWrap",[Co("* => void",rB("@transformPanel",[iB()],{optional:!0}))]),transformPanel:nl("transformPanel",[ga("void",Ti({opacity:0,transform:"scale(1, 0.8)"})),Co("void => showing",vo("120ms cubic-bezier(0, 0, 0.2, 1)",Ti({opacity:1,transform:"scale(1, 1)"}))),Co("* => void",vo("100ms linear",Ti({opacity:0})))])};let XI=0;const QI=new De("mat-select-scroll-strategy"),l$=new De("MAT_SELECT_CONFIG"),d$={provide:QI,deps:[Ca],useFactory:function c$(n){return()=>n.scrollStrategies.reposition()}},u$=new De("MatSelectTrigger");class h${constructor(t,e){this.source=t,this.value=e}}const f$=td(Im(Pd(rx(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new Ee}}))));let m$=(()=>{class n extends f${get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Kn.required)??!1}set required(e){this._required=St(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=St(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=St(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Ec(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}constructor(e,i,r,o,a,c,d,h,p,_,M,S,P,$){super(a,o,d,h,_),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=c,this._parentFormField=p,this._liveAnnouncer=P,this._defaultOptions=$,this._panelOpen=!1,this._compareWith=(Q,ae)=>Q===ae,this._uid="mat-select-"+XI++,this._triggerAriaLabelledBy=null,this._destroy=new Ee,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+XI++,this._panelDoneAnimatingStream=new Ee,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=rI(()=>{const Q=this.options;return Q?Q.changes.pipe(Lr(Q),Sc(()=>si(...Q.map(ae=>ae.onSelectionChange)))):this._ngZone.onStable.pipe(Br(1),Sc(()=>this.optionSelectionChanges))}),this.openedChange=new Je,this._openedStream=this.openedChange.pipe(vs(Q=>Q),Ln(()=>{})),this._closedStream=this.openedChange.pipe(vs(Q=>!Q),Ln(()=>{})),this.selectionChange=new Je,this.valueChange=new Je,this.ngControl&&(this.ngControl.valueAccessor=this),null!=$?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=$.typeaheadDebounceInterval),this._scrollStrategyFactory=S,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(M)||0,this.id=this.id}ngOnInit(){this._selectionModel=new wI(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(zC(),Cn(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Cn(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Lr(null),Cn(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,a=this._keyManager;if(!a.isTyping()&&o&&!zs(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const c=this.selected;a.onKeydown(e);const d=this.selected;d&&c!==d&&this._liveAnnouncer.announce(d.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(a||13!==r&&32!==r||!i.activeItem||zs(e))if(!a&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const c=this.options.some(d=>!d.disabled&&!d.selected);this.options.forEach(d=>{d.disabled||(c?d.select():d.deselect())})}else{const c=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==c&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Br(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new aS(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=si(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Cn(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),si(...this.options.map(i=>i._stateChanges)).pipe(Cn(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(x(ol),x(li),x(Gt),x(tb),x(E),x(Nr,8),x(mh,8),x(Jo,8),x(Lm,8),x(qa,10),Os("tabindex"),x(QI),x(YC),x(l$,8))},n.\u0275dir=y({type:n,viewQuery:function(e,i){if(1&e&&(Vn(Qz,5),Vn(Jz,5),Vn(iI,5)),2&e){let r;Mt(r=Tt())&&(i.trigger=r.first),Mt(r=Tt())&&(i.panel=r.first),Mt(r=Tt())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[dt,kr]}),n})(),Dx=(()=>{class n extends m${constructor(){super(...arguments),this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Cn(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(),this._changeDetectorRef.detectChanges())})}ngAfterViewInit(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin())}open(){this._overlayWidth=this._getOverlayWidth(),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(e){const i=this.options.toArray()[e];if(i){const r=this.panel.nativeElement,o=WS(e,this.options,this.optionGroups),a=i._getHostElement();r.scrollTop=0===e&&1===o?0:GS(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new h$(this,e)}_getOverlayWidth(){return(this._preferredOverlayOrigin instanceof hx?this._preferredOverlayOrigin.elementRef:this._preferredOverlayOrigin||this._elementRef).nativeElement.getBoundingClientRect().width}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=St(e),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const e of this.options)e._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=k({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(Hn(r,u$,5),Hn(r,Dh,5),Hn(r,ax,5)),2&e){let o;Mt(o=Tt())&&(i.customTrigger=o.first),Mt(o=Tt())&&(i.options=o),Mt(o=Tt())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(e,i){1&e&&ge("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(sn("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),an("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[Wt([{provide:ob,useExisting:n},{provide:sx,useExisting:n}]),dt],ngContentSelectors:s$,decls:11,vars:11,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(xi(o$),D(0,"div",0,1),ge("click",function(){return i.toggle()}),D(3,"div",2),pe(4,e$,2,1,"span",3),pe(5,i$,3,2,"span",4),w(),D(6,"div",5)(7,"div",6),hc(),D(8,"svg",7),Ge(9,"path",8),w()()()(),pe(10,r$,3,9,"ng-template",9),ge("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=qo(1);sn("aria-owns",i.panelOpen?i.id+"-panel":null),R(3),U("ngSwitch",i.empty),sn("id",i._valueId),R(1),U("ngSwitchCase",!0),R(1),U("ngSwitchCase",!1),R(5),U("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[dh,uh,t_,sT,iI,hx],styles:['.mdc-menu-surface{display:none;position:absolute;box-sizing:border-box;max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width, calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height, calc(100vh - 32px));margin:0;padding:0;transform:scale(1);transform-origin:top left;opacity:0;overflow:auto;will-change:transform,opacity;z-index:8;border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);transform-origin-left:top left;transform-origin-right:top right}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;transform:scale(0.8);opacity:0}.mdc-menu-surface--open{display:inline-block;transform:scale(1);opacity:1}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0}[dir=rtl] .mdc-menu-surface,.mdc-menu-surface[dir=rtl]{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{position:relative;overflow:visible}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.mat-mdc-select{display:inline-block;width:100%;outline:none}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}.mdc-menu-surface.mat-mdc-select-panel{width:100%;max-height:275px;position:static;outline:0;margin:0;padding:8px 0;list-style-type:none}.mdc-menu-surface.mat-mdc-select-panel:focus{outline:none}.cdk-high-contrast-active .mdc-menu-surface.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) .mdc-menu-surface.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above .mdc-menu-surface.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[a$.transformPanel]},changeDetection:0}),n})(),p$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[d$],imports:[pa,Pm,nb,Wn,Od,sb,nb,Wn]}),n})();function g$(n,t){if(1&n){const e=Dn();D(0,"div",2)(1,"button",3),ge("click",function(){return Ot(e),Ht(_e().action())}),N(2),w()()}if(2&n){const e=_e();R(2),Ai(" ",e.data.action," ")}}const _$=["label"];function b$(n,t){}const y$=Math.pow(2,31)-1;class pb{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,y$))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Mx=new De("MatSnackBarData");class gb{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let v$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]}),n})(),C$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]}),n})(),x$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]}),n})(),w$=(()=>{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)(x(pb),x(Mx))},n.\u0275cmp=k({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(e,i){1&e&&(D(0,"div",0),N(1),w(),pe(2,g$,3,1,"div",1)),2&e&&(R(1),Ai(" ",i.data.message,"\n"),R(1),U("ngIf",i.hasAction))},dependencies:[Fi,br,v$,C$,x$],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0}),n})();const D$={snackBarState:nl("state",[ga("void, hidden",Ti({transform:"scale(0.8)",opacity:0})),ga("visible",Ti({transform:"scale(1)",opacity:1})),Co("* => visible",vo("150ms cubic-bezier(0, 0, 0.2, 1)")),Co("* => void, * => hidden",vo("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ti({opacity:0})))])};let M$=0,T$=(()=>{class n extends lx{constructor(e,i,r,o,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=_i(cn),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ee,this._onExit=new Ee,this._onEnter=new Ee,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+M$++,this.attachDomPortal=c=>{this._assertNotAttached();const d=this._portalOutlet.attachDomPortal(c);return this._afterPortalAttached(),d},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.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._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Br(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)),this._exposeToModals()}_exposeToModals(){const e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<i.length;r++){const o=i[r],a=o.getAttribute("aria-owns");this._trackedModals.add(o),a?-1===a.indexOf(e)&&o.setAttribute("aria-owns",a+" "+e):o.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{const i=e.getAttribute("aria-owns");if(i){const r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_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)(x(Gt),x(E),x(li),x(Oi),x(gb))},n.\u0275dir=y({type:n,viewQuery:function(e,i){if(1&e&&Vn(Om,7),2&e){let r;Mt(r=Tt())&&(i._portalOutlet=r.first)}},features:[dt]}),n})(),E$=(()=>{class n extends T${_afterPortalAttached(){super._afterPortalAttached();const e=this._label.nativeElement,i="mdc-snackbar__label";e.classList.toggle(i,!e.querySelector(`.${i}`))}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=k({type:n,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,i){if(1&e&&Vn(_$,7),2&e){let r;Mt(r=Tt())&&(i._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(e,i){1&e&&pv("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&Cv("@state",i._animationState)},features:[dt],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(D(0,"div",0)(1,"div",1,2)(3,"div",3),pe(4,b$,0,0,"ng-template",4),w(),Ge(5,"div"),w()()),2&e&&(R(5),sn("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[Om],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__dismiss svg,.mat-mdc-snack-bar-container .mdc-snackbar__dismiss img{width:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px));height:var(--mdc-icon-button-icon-size, var(--mdc-snackbar-icon-size, 24px))}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color, inherit)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size, inherit);font-family:var(--mdc-snackbar-supporting-text-font, inherit);font-weight:var(--mdc-snackbar-supporting-text-weight, inherit);line-height:var(--mdc-snackbar-supporting-text-line-height, inherit)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-mdc-snack-bar-button-color, transparent);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[D$.snackBarState]}}),n})(),JI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Pm,dx,pa,xI,Wn,Wn]}),n})();const eA=new De("mat-snack-bar-default-options",{providedIn:"root",factory:function k$(){return new gb}});let S$=(()=>{class n{get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,r,o,a,c){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=c,this._snackBarRefAtThisLevel=null}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=Zo.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:gb,useValue:i}]}),a=new ib(this.snackBarContainerComponent,i.viewContainerRef,o),c=e.attach(a);return c.instance.snackBarConfig=i,c.instance}_attach(e,i){const r={...new gb,...this._defaultConfig,...i},o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),c=new pb(a,o);if(e instanceof hr){const d=new Nd(e,null,{$implicit:r.data,snackBarRef:c});c.instance=a.attachTemplatePortal(d)}else{const d=this._createInjector(r,c),h=new ib(e,void 0,d),p=a.attachComponentPortal(h);c.instance=p.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Cn(o.detachments())).subscribe(d=>{o.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(c,r),this._openedSnackBarRef=c,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 Rm;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,c=!a&&"center"!==e.horizontalPosition;return a?r.left("0"):c?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 Zo.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:pb,useValue:i},{provide:Mx,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(te(Ca),te(YC),te(Zo),te(jC),te(n,12),te(eA))},n.\u0275prov=it({token:n,factory:n.\u0275fac}),n})(),I$=(()=>{class n extends S${constructor(e,i,r,o,a,c){super(e,i,r,o,a,c),this.simpleSnackBarComponent=w$,this.snackBarContainerComponent=E$,this.handsetCssClass="mat-mdc-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(te(Ca),te(YC),te(Zo),te(jC),te(n,12),te(eA))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:JI}),n})();function A$(n,t){}const F$=function(n){return{animationDuration:n}},O$=function(n,t){return{value:n,params:t}};function R$(n,t){1&n&&Kt(0)}const tA=["*"],P$=["tabListContainer"],L$=["tabList"],N$=["tabListInner"],B$=["nextPaginator"],V$=["previousPaginator"],H$=["tabBodyWrapper"],z$=["tabHeader"];function $$(n,t){}function j$(n,t){1&n&&pe(0,$$,0,0,"ng-template",14),2&n&&U("cdkPortalOutlet",_e().$implicit.templateLabel)}function U$(n,t){1&n&&N(0),2&n&&bn(_e().$implicit.textLabel)}function W$(n,t){if(1&n){const e=Dn();D(0,"div",6,7),ge("click",function(){const r=Ot(e),o=r.$implicit,a=r.index,c=_e(),d=qo(1);return Ht(c._handleClick(o,d,a))})("cdkFocusChange",function(r){const a=Ot(e).index;return Ht(_e()._tabFocusChanged(r,a))}),Ge(2,"span",8)(3,"div",9),D(4,"span",10)(5,"span",11),pe(6,j$,1,1,"ng-template",12),pe(7,U$,1,1,"ng-template",null,13,Ng),w()()()}if(2&n){const e=t.$implicit,i=t.index,r=qo(1),o=qo(8),a=_e();an("mdc-tab--active",a.selectedIndex===i),U("id",a._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),sn("tabIndex",a._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(i))("aria-selected",a.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),R(3),U("matRippleTrigger",r)("matRippleDisabled",e.disabled||a.disableRipple),R(3),U("ngIf",e.templateLabel)("ngIfElse",o)}}function G$(n,t){if(1&n){const e=Dn();D(0,"mat-tab-body",15),ge("_onCentered",function(){return Ot(e),Ht(_e()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return Ot(e),Ht(_e()._setTabBodyWrapperHeight(r))}),w()}if(2&n){const e=t.$implicit,i=t.index,r=_e();an("mat-mdc-tab-body-active",r.selectedIndex===i),U("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),sn("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))}}const Y$={translateTab:nl("translateTab",[ga("center, void, left-origin-center, right-origin-center",Ti({transform:"none"})),ga("left",Ti({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ga("right",Ti({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Co("* => left, * => right, left => center, right => center",vo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Co("void => left-origin-center",[Ti({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),vo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Co("void => right-origin-center",[Ti({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),vo("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Z$=(()=>{class n extends Om{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=ne.EMPTY,this._leavingSub=ne.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Lr(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(x(v),x(fr),x(dn(()=>nA)),x(cn))},n.\u0275dir=y({type:n,selectors:[["","matTabBodyHost",""]],features:[dt]}),n})(),q$=(()=>{class n{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=ne.EMPTY,this._translateTabComplete=new Ee,this._onCentering=new Je,this._beforeCentering=new Je,this._afterLeavingCenter=new Je,this._onCentered=new Je(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(zC((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Nr,8),x(li))},n.\u0275dir=y({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),nA=(()=>{class n extends q${constructor(e,i,r){super(e,i,r)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Nr,8),x(li))},n.\u0275cmp=k({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,i){if(1&e&&Vn(Om,5),2&e){let r;Mt(r=Tt())&&(i._portalHost=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[dt],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,i){1&e&&(D(0,"div",0,1),ge("@translateTab.start",function(o){return i._onTranslateTabStarted(o)})("@translateTab.done",function(o){return i._translateTabComplete.next(o)}),pe(2,A$,0,0,"ng-template",2),w()),2&e&&U("@translateTab",RD(3,O$,i._position,function OD(n,t,e,i){return PD(ke(),eo(),n,t,e,i)}(1,F$,i.animationDuration)))},dependencies:[Z$],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Y$.translateTab]}}),n})();const K$=new De("MatTabContent");let X$=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(x(hr))},n.\u0275dir=y({type:n,selectors:[["","matTabContent",""]],features:[Wt([{provide:K$,useExisting:n}])]}),n})();const Q$=new De("MatTabLabel"),iA=new De("MAT_TAB");let rA=(()=>{class n extends z8{constructor(e,i,r){super(e,i),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(x(hr),x(fr),x(iA,8))},n.\u0275dir=y({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Wt([{provide:Q$,useExisting:n}]),dt]}),n})();const Tx="mdc-tab-indicator--active",oA="mdc-tab-indicator--no-transition";class J${constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){const e=this._items.find(r=>r.elementRef.nativeElement===t),i=this._currentItem;if(i?.deactivateInkBar(),e){const r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}function ej(n){return class extends n{constructor(...t){super(...t),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){const e=St(t);this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){const e=this.elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement)return void e.classList.add(Tx);const i=e.getBoundingClientRect(),r=t.width/i.width,o=t.left-i.left;e.classList.add(oA),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${r})`),e.getBoundingClientRect(),e.classList.remove(oA),e.classList.add(Tx),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Tx)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const t=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=t.createElement("span"),this._inkBarContentElement=t.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const nj=Pd(class{}),ij=ej((()=>{class n extends nj{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(x(E))},n.\u0275dir=y({type:n,features:[dt]}),n})());let sA=(()=>{class n extends ij{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275dir=y({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,i){2&e&&(sn("aria-disabled",!!i.disabled),an("mat-mdc-tab-disabled",i.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[dt]}),n})();const rj=Pd(class{}),aA=new De("MAT_TAB_GROUP");let oj=(()=>{class n extends rj{get content(){return this._contentPortal}constructor(e,i){super(),this._viewContainerRef=e,this._closestTabGroup=i,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ee,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Nd(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(x(fr),x(aA,8))},n.\u0275dir=y({type:n,viewQuery:function(e,i){if(1&e&&Vn(hr,7),2&e){let r;Mt(r=Tt())&&(i._implicitContent=r.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[dt,kr]}),n})(),cA=(()=>{class n extends oj{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=ai(n)))(i||n)}}(),n.\u0275cmp=k({type:n,selectors:[["mat-tab"]],contentQueries:function(e,i,r){if(1&e&&(Hn(r,X$,7,hr),Hn(r,rA,5)),2&e){let o;Mt(o=Tt())&&(i._explicitContent=o.first),Mt(o=Tt())&&(i.templateLabel=o.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[Wt([{provide:iA,useExisting:n}]),dt],ngContentSelectors:tA,decls:1,vars:0,template:function(e,i){1&e&&(xi(),pe(0,R$,1,0,"ng-template"))},encapsulation:2}),n})();const lA=Xa({passive:!0});let cj=(()=>{class n{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=St(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Ec(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}constructor(e,i,r,o,a,c,d){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=c,this._animationMode=d,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ee,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ee,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Je,this.indexFocused=new Je,a.runOutsideAngular(()=>{kc(e.nativeElement,"mouseleave").pipe(Cn(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){kc(this._previousPaginator.nativeElement,"touchstart",lA).pipe(Cn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),kc(this._nextPaginator.nativeElement,"touchstart",lA).pipe(Cn(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:ys("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new GC(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Br(1)).subscribe(r),si(e,i,this._items.changes,this._itemsResized()).pipe(Cn(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?Yn:this._items.changes.pipe(Lr(this._items),Sc(e=>new ye(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),HC(1),vs(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!zs(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement;let c,d;"ltr"==this._getLayoutDirection()?(c=o,d=c+a):(d=this._tabListInner.nativeElement.offsetWidth-o,c=d-a);const h=this.scrollDistance,p=this.scrollDistance+r;c<h?this.scrollDistance-=h-c+60:d>p&&(this.scrollDistance+=d-p+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),H_(650,100).pipe(Cn(si(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(ol),x(Nr,8),x(Gt),x(Oi),x(Rr,8))},n.\u0275dir=y({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),lj=(()=>{class n extends cj{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=St(e)}constructor(e,i,r,o,a,c,d){super(e,i,r,o,a,c,d),this._disableRipple=!1}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(ol),x(Nr,8),x(Gt),x(Oi),x(Rr,8))},n.\u0275dir=y({type:n,inputs:{disableRipple:"disableRipple"},features:[dt]}),n})(),dj=(()=>{class n extends lj{constructor(e,i,r,o,a,c,d){super(e,i,r,o,a,c,d)}ngAfterContentInit(){this._inkBar=new J$(this._items),super.ngAfterContentInit()}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(ol),x(Nr,8),x(Gt),x(Oi),x(Rr,8))},n.\u0275cmp=k({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,i,r){if(1&e&&Hn(r,sA,4),2&e){let o;Mt(o=Tt())&&(i._items=o)}},viewQuery:function(e,i){if(1&e&&(Vn(P$,7),Vn(L$,7),Vn(N$,7),Vn(B$,5),Vn(V$,5)),2&e){let r;Mt(r=Tt())&&(i._tabListContainer=r.first),Mt(r=Tt())&&(i._tabList=r.first),Mt(r=Tt())&&(i._tabListInner=r.first),Mt(r=Tt())&&(i._nextPaginator=r.first),Mt(r=Tt())&&(i._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,i){2&e&&an("mat-mdc-tab-header-pagination-controls-enabled",i._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==i._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[dt],ngContentSelectors:tA,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,i){1&e&&(xi(),D(0,"button",0,1),ge("click",function(){return i._handlePaginatorClick("before")})("mousedown",function(o){return i._handlePaginatorPress("before",o)})("touchend",function(){return i._stopInterval()}),Ge(2,"div",2),w(),D(3,"div",3,4),ge("keydown",function(o){return i._handleKeydown(o)}),D(5,"div",5,6),ge("cdkObserveContent",function(){return i._onContentChanges()}),D(7,"div",7,8),Kt(9),w()()(),D(10,"button",9,10),ge("mousedown",function(o){return i._handlePaginatorPress("after",o)})("click",function(){return i._handlePaginatorClick("after")})("touchend",function(){return i._stopInterval()}),Ge(12,"div",2),w()),2&e&&(an("mat-mdc-tab-header-pagination-disabled",i._disableScrollBefore),U("matRippleDisabled",i._disableScrollBefore||i.disableRipple)("disabled",i._disableScrollBefore||null),R(3),an("_mat-animation-noopable","NoopAnimations"===i._animationMode),R(7),an("mat-mdc-tab-header-pagination-disabled",i._disableScrollAfter),U("matRippleDisabled",i._disableScrollAfter||i.disableRipple)("disabled",i._disableScrollAfter||null))},dependencies:[es,Jk],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2}),n})();const uA=new De("MAT_TABS_CONFIG");let uj=0;const hj=wh(td(class{constructor(n){this._elementRef=n}}),"primary");let fj=(()=>{class n extends hj{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=St(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Ec(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Ec(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=St(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=St(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){super(e),this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Gl,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ne.EMPTY,this._tabLabelSubscription=ne.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new Je,this.focusChange=new Je,this.animationDone=new Je,this.selectedTabChange=new Je(!0),this._groupId=uj++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o<i.length;o++)if(i[o].isActive){this._indexToSelect=this._selectedIndex=o,this._lastFocusedTabIndex=null,r=i[o];break}!r&&i[e]&&Promise.resolve().then(()=>{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Lr(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new pj;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=si(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(uA,8),x(Rr,8))},n.\u0275dir=y({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[dt]}),n})(),mj=(()=>{class n extends fj{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=St(e),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(e){this._stretchTabs=St(e)}constructor(e,i,r,o){super(e,i,r,o),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(li),x(uA,8),x(Rr,8))},n.\u0275cmp=k({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,i,r){if(1&e&&Hn(r,cA,5),2&e){let o;Mt(o=Tt())&&(i._allTabs=o)}},viewQuery:function(e,i){if(1&e&&(Vn(H$,5),Vn(z$,5)),2&e){let r;Mt(r=Tt())&&(i._tabBodyWrapper=r.first),Mt(r=Tt())&&(i._tabHeader=r.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:6,hostBindings:function(e,i){2&e&&an("mat-mdc-tab-group-dynamic-height",i.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===i.headerPosition)("mat-mdc-tab-group-stretch-tabs",i.stretchTabs)},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[Wt([{provide:aA,useExisting:n}]),dt],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,i){1&e&&(D(0,"mat-tab-header",0,1),ge("indexFocused",function(o){return i._focusChanged(o)})("selectFocusedIndex",function(o){return i.selectedIndex=o}),pe(2,W$,9,17,"div",2),w(),D(3,"div",3,4),pe(5,G$,1,11,"mat-tab-body",5),w()),2&e&&(U("selectedIndex",i.selectedIndex||0)("disableRipple",i.disableRipple)("disablePagination",i.disablePagination),R(2),U("ngForOf",i._tabs),R(1),an("_mat-animation-noopable","NoopAnimations"===i._animationMode),R(2),U("ngForOf",i._tabs))},dependencies:[dh,ma,Fi,Om,es,r8,nA,sA,dj],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-tab.mdc-tab{height:48px;flex-grow:0}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.mat-mdc-tab .mdc-tab__text-label{display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-disabled{opacity:.4}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-mdc-tab-header-with-background-background-color, transparent)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{border-color:var(--mat-mdc-tab-header-with-background-foreground-color, inherit)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2}),n})();class pj{}let gj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[pa,Wn,dx,Ld,$C,fS,Wn]}),n})();const _j=["*",[["mat-toolbar-row"]]],bj=["*","mat-toolbar-row"],yj=wh(class{constructor(n){this._elementRef=n}});let vj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=y({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Cj=(()=>{class n extends yj{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(x(E),x(Oi),x(cn))},n.\u0275cmp=k({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&Hn(r,vj,5),2&e){let o;Mt(o=Tt())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&an("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[dt],ngContentSelectors:bj,decls:2,vars:0,template:function(e,i){1&e&&(xi(_j),Kt(0),Kt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color: inherit;--mdc-outlined-button-label-text-color: inherit}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),xj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({imports:[Wn,Wn]}),n})();const wj=["tooltip"],hA=new De("mat-tooltip-scroll-strategy"),Tj={provide:hA,deps:[Ca],useFactory:function Mj(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},kj=new De("mat-tooltip-default-options",{providedIn:"root",factory:function Ej(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),fA="tooltip-panel",mA=Xa({passive:!0});let Rj=(()=>{class n{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=St(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=St(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ec(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ec(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,a,c,d,h,p,_,M,S){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=c,this._ariaDescriber=d,this._focusMonitor=h,this._dir=_,this._defaultOptions=M,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ee,this._scrollStrategy=p,this._document=S,M&&(M.position&&(this.position=M.position),M.positionAtOrigin&&(this.positionAtOrigin=M.positionAtOrigin),M.touchGestures&&(this.touchGestures=M.touchGestures)),_.change.pipe(Cn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Cn(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,mA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new ib(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Cn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof E)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&e||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(Cn(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${fA}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Cn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Cn(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Cn(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!zs(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Br(1),Cn(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let a;if(a="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",a!==this._currentPosition){const c=this._overlayRef;if(c){const d=`${this._cssClassPrefix}-${fA}-`;c.removePanelClass(d+this._currentPosition),c.addPanelClass(d+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==e.x&&void 0!==e.y&&(i=e),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{const i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,mA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Pf()},n.\u0275dir=y({type:n,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),al=(()=>{class n extends Rj{constructor(e,i,r,o,a,c,d,h,p,_,M,S){super(e,i,r,o,a,c,d,h,p,_,M,S),this._tooltipComponent=Lj,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(e){const r=!this._dir||"ltr"==this._dir.value;return"top"===e.originY?e.offsetY=-8:"bottom"===e.originY?e.offsetY=8:"start"===e.originX?e.offsetX=r?-8:8:"end"===e.originX&&(e.offsetX=r?8:-8),e}}return n.\u0275fac=function(e){return new(e||n)(x(Ca),x(E),x(_h),x(fr),x(Gt),x(Oi),x(U4),x(ed),x(hA),x(Nr,8),x(kj,8),x(cn))},n.\u0275dir=y({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],exportAs:["matTooltip"],features:[dt]}),n})(),Pj=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Ee,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(i);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(x(li),x(Rr,8))},n.\u0275dir=y({type:n}),n})(),Lj=(()=>{class n extends Pj{constructor(e,i,r){super(e,r),this._elementRef=i,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>24&&e.width>=200}}return n.\u0275fac=function(e){return new(e||n)(x(li),x(E),x(Rr,8))},n.\u0275cmp=k({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Vn(wj,7),2&e){let r;Mt(r=Tt())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&ge("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&zf("zoom",i.isVisible()?1:null)},features:[dt],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(e,i){1&e&&(D(0,"div",0,1),ge("animationend",function(o){return i._handleAnimationEnd(o)}),D(2,"div",2),N(3),w()()),2&e&&(an("mdc-tooltip--multiline",i._isMultiline),U("ngClass",i.tooltipClass),R(3),bn(i.message))},dependencies:[dh],styles:['.mdc-tooltip__surface{word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color, #fff)}.mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape, var(--mdc-shape-small, 4px))}.mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color, #000)}.mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font, inherit);font-size:var(--mdc-plain-tooltip-supporting-text-size, inherit);font-weight:var(--mdc-plain-tooltip-supporting-text-weight, inherit);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, inherit)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:-8px;right:-8px;bottom:-8px;left:-8px;z-index:-1;position:absolute}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0}),n})(),Nj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n}),n.\u0275inj=qt({providers:[Tj],imports:[fS,pa,Pm,Wn,Wn,Od]}),n})();function zm(n){return(zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function ec(n,t,e){return(t=function Vj(n){var t=function Bj(n,t){if("object"!==zm(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var i=e.call(n,t||"default");if("object"!==zm(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"===zm(t)?t:String(t)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}const pA=new De("ngx-segment-analytics.config"),Hj={debug:!1,loadOnInitialization:!0,segmentHost:"cdn.segment.com",segmentUri:"/analytics.js/v1/$API_KEY$/analytics.min.js",plugins:[]};class zd{constructor(){ec(this,"analytics",void 0)}}ec(zd,"\u0275fac",function(t){return new(t||zd)}),ec(zd,"\u0275prov",it({token:zd,factory:zd.\u0275fac}));class $d{constructor(t,e,i){if(ec(this,"_w",void 0),ec(this,"_doc",void 0),ec(this,"_config",void 0),this._w=t,this._doc=e,this._config={...Hj,...i},this._config.loadOnInitialization&&(typeof this._config.apiKey>"u"||""===this._config.apiKey))console.error("The API Key cannot be an empty string if Segment must be loaded on initialization.");else if(typeof this._w.analytics>"u"||typeof this._w.analytics.initialize>"u"||!1===this._w.analytics.initialize){if(typeof this._w.analytics<"u"&&!0===this._w.analytics.invoked)return void console.error("Segment snippet included twice.");!0===this._config.debug&&console.log("Segment initialization..."),this._w.analytics=[],this._w.analytics.invoked=!0,this._w.analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"],this._w.analytics.factory=r=>(...o)=>(o.unshift(r),this._w.analytics.push(o),this._w.analytics),this._w.analytics.methods.forEach(r=>{this._w.analytics[r]=this._w.analytics.factory(r)}),this._w.analytics.load=(r,o)=>{const a=this._doc.createElement("script");a.type="text/javascript",a.async=!0,a.src="https://"+this._config.segmentHost+this._config.segmentUri.replace("$API_KEY$",r);const c=this._doc.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c),this._w.analytics._loadOptions=o},this._w.analytics._writeKey=this._config.apiKey,this._w.analytics.SNIPPET_VERSION="4.15.3",this._config.loadOnInitialization&&this.load(this._config.apiKey)}}load(t,e){this._w.analytics.load(t,e),!0===this._config.debug&&console.log("Segment initialized"),this.debug(this._config.debug)}identify(t,e,i){return new Promise(r=>{this._w.analytics.identify(t,e,i,o=>r(this))})}track(t,e,i){return new Promise(r=>{this._w.analytics.track(t,e,i,o=>r(this))})}page(t,e,i,r){return new Promise(o=>{this._w.analytics.page(t,e,i,r,a=>o(this))})}group(t,e){return new Promise(i=>{this._w.analytics.group(t,e,r=>i(this))})}alias(t,e,i){return new Promise(r=>{this._w.analytics.alias(t,e,i,o=>r(this))})}ready(){return new Promise(t=>{this._w.analytics.ready(e=>t(this))})}user(){return this._w.analytics.user()}id(){return this._w.analytics.id()}setAnonymousId(t){this._w.analytics.setAnonymousId(t)}traits(){return this._w.analytics.user().traits()}reset(){this._w.analytics.reset()}debug(t){this._w.analytics.debug(t)}on(t,e){this._w.analytics.on(t,e)}trackLink(t,e,i){this._w.analytics.trackLink(t,e,i)}trackForm(t,e,i){this._w.analytics.trackForm(t,e,i)}timeout(t){this._w.analytics.timeout(t)}addSourceMiddleware(t){this._w.analytics.addSourceMiddleware(t)}addDestinationMiddleware(t,e){this._w.analytics.addDestinationMiddleware(t,e)}register(...t){return this._w.analytics.register(...t)}get plugins(){return this._w.analytics.plugins}}ec($d,"\u0275fac",function(t){return new(t||$d)(te(zd),te(cn),te(pA))}),ec($d,"\u0275prov",it({token:$d,factory:$d.\u0275fac,providedIn:"root"}));class cl{static forRoot(t){return{ngModule:cl,providers:[{provide:pA,useValue:t},$d]}}constructor(t){if(t)throw new Error("SegmentModule is already loaded. Import it in the AppModule only")}}ec(cl,"\u0275fac",function(t){return new(t||cl)(te(cl,12))}),ec(cl,"\u0275mod",Re({type:cl})),ec(cl,"\u0275inj",qt({providers:[{provide:zd,useFactory:function zj(n){return uT(n)?window:{}},deps:[Xf]}],imports:[pa]}));var yr=O(5861);let $j=(()=>{class n{constructor(e,i){this.snackbarRef=e,this.message=i.message,this.noLabel=i.noLabel,this.yesLabel=i.yesLabel}doNo(){this.snackbarRef.dismiss()}doYes(){this.snackbarRef.dismissWithAction()}}return n.\u0275fac=function(e){return new(e||n)(x(pb),x(Mx))},n.\u0275cmp=k({type:n,selectors:[["app-confirm"]],decls:6,vars:3,consts:[["data-cy","confirm-no","mat-raised-button","",3,"click"],["data-cy","confirm-yes","mat-raised-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"p"),N(1),w(),D(2,"button",0),ge("click",function(){return i.doNo()}),N(3),w(),D(4,"button",1),ge("click",function(){return i.doYes()}),N(5),w()),2&e&&(R(1),bn(i.message),R(2),Ai("",i.noLabel," "),R(2),bn(i.yesLabel))},dependencies:[br]}),n})(),ns=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1/devstate"}addContainer(e){return this.http.post(this.base+"/container",{name:e.name,image:e.image,command:e.command,args:e.args,memReq:e.memoryRequest,memLimit:e.memoryLimit,cpuReq:e.cpuRequest,cpuLimit:e.cpuLimit,volumeMounts:e.volumeMounts})}addImage(e){return this.http.post(this.base+"/image",{name:e.name,imageName:e.imageName,args:e.args,buildContext:e.buildContext,rootRequired:e.rootRequired,uri:e.uri})}addResource(e){return this.http.post(this.base+"/resource",{name:e.name,inlined:e.inlined,uri:e.uri})}addVolume(e){return this.http.post(this.base+"/volume",{name:e.name,ephemeral:e.ephemeral,size:e.size})}addExecCommand(e,i){return this.http.post(this.base+"/execCommand",{name:e,component:i.component,commandLine:i.commandLine,workingDir:i.workingDir,hotReloadCapable:i.hotReloadCapable})}addApplyCommand(e,i){return this.http.post(this.base+"/applyCommand",{name:e,component:i.component})}addCompositeCommand(e,i){return this.http.post(this.base+"/compositeCommand",{name:e,parallel:i.parallel,commands:i.commands})}getFlowChart(){return this.http.get(this.base+"/chart")}setDevfileContent(e){return this.http.put(this.base+"/devfile",{content:e})}getDevfileContent(){return this.http.get(this.base+"/devfile")}clearDevfileContent(){return this.http.delete(this.base+"/devfile")}setMetadata(e){return this.http.put(this.base+"/metadata",{name:e.name,version:e.version,displayName:e.displayName,description:e.description,tags:e.tags,architectures:e.architectures,icon:e.icon,globalMemoryLimit:e.globalMemoryLimit,projectType:e.projectType,language:e.language,website:e.website,provider:e.provider,supportUrl:e.supportUrl})}moveCommand(e,i,r,o){return this.http.post(this.base+"/command/0/move",{fromGroup:e,fromIndex:r,toGroup:i,toIndex:o})}setDefaultCommand(e,i){return this.http.post(this.base+"/command/"+e+"/setDefault",{group:i})}unsetDefaultCommand(e){return this.http.post(this.base+"/command/"+e+"/unsetDefault",{})}deleteCommand(e){return this.http.delete(this.base+"/command/"+e)}deleteContainer(e){return this.http.delete(this.base+"/container/"+e)}deleteImage(e){return this.http.delete(this.base+"/image/"+e)}deleteResource(e){return this.http.delete(this.base+"/resource/"+e)}deleteVolume(e){return this.http.delete(this.base+"/volume/"+e)}updateEvents(e,i){return this.http.put(this.base+"/events",{eventName:e,commands:i})}isQuantityValid(e){return this.http.post(this.base+"/quantityValid",{quantity:e})}isQuantity(){return e=>{const i=e.value;return""==i?ys(null):this.isQuantityValid(i).pipe(Ln(()=>null),xx(()=>ys({isQuantity:!1})))}}}return n.\u0275fac=function(e){return new(e||n)(te(gm))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jj=(()=>{class n{constructor(e){this.http=e,this.base="/api/v1"}getDevfile(){return this.http.get(this.base+"/devfile")}saveDevfile(e){return this.http.put(this.base+"/devfile",{content:e})}telemetry(){return this.http.get(this.base+"/telemetry")}}return n.\u0275fac=function(e){return new(e||n)(te(gm))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wj=function Uj(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];var i=Array.from("string"==typeof n?[n]:n);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var r=i.reduce(function(c,d){var h=d.match(/\n([\t ]+|(?!\s).)/g);return h?c.concat(h.map(function(p){var _,M;return null!==(M=null===(_=p.match(/[\t ]/g))||void 0===_?void 0:_.length)&&void 0!==M?M:0})):c},[]);if(r.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,r)+"}","g");i=i.map(function(c){return c.replace(o,"\n")})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return t.forEach(function(c,d){var h=a.match(/(?:^|\n)( *)$/),p=h?h[1]:"",_=c;"string"==typeof c&&c.includes("\n")&&(_=String(c).split("\n").map(function(M,S){return 0===S?M:""+p+M}).join("\n")),a+=_+i[d+1]}),a};var $s=O(855),jd=O(9111),Ud=O(4169);O(2735),O(1764),O(6780),O(5703);const Gj=(n,t,e)=>{$s.l.warn(n),(0,jd.i)(n)?(e&&e(n.str,n.hash),t.push({...n,message:n.str,error:n})):(e&&e(n),n instanceof Error&&t.push({str:n.message,message:n.message,hash:n.name,error:n}))},gA=function(){var n=(0,yr.Z)(function*(t={querySelector:".mermaid"}){try{yield Yj(t)}catch(e){if((0,jd.i)(e)&&$s.l.error(e.str),tc.parseError&&tc.parseError(e),!t.suppressErrors)throw $s.l.error("Use the suppressErrors option to suppress these errors"),e}});return function(){return n.apply(this,arguments)}}(),Yj=function(){var n=(0,yr.Z)(function*({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Ud.m.getConfig();let o;if($s.l.debug((t?"":"No ")+"Callback function found"),i)o=i;else{if(!e)throw new Error("Nodes and querySelector are both undefined");o=document.querySelectorAll(e)}$s.l.debug(`Found ${o.length} diagrams`),void 0!==r?.startOnLoad&&($s.l.debug("Start On Load: "+r?.startOnLoad),Ud.m.updateSiteConfig({startOnLoad:r?.startOnLoad}));const a=new jd.u.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let c;const d=[];for(const h of Array.from(o)){if($s.l.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");const p=`mermaid-${a.next()}`;c=h.innerHTML,c=Wj(jd.u.entityDecode(c)).trim().replace(/<br\s*\/?>/gi,"<br/>");const _=jd.u.detectInit(c);_&&$s.l.debug("Detected early reinit: ",_);try{const{svg:M,bindFunctions:S}=yield vA(p,c,h);h.innerHTML=M,t&&(yield t(p)),S&&S(h)}catch(M){Gj(M,d,tc.parseError)}}if(d.length>0)throw d[0]});return function(){return n.apply(this,arguments)}}(),_A=function(n){Ud.m.initialize(n)},Zj=function(){var n=(0,yr.Z)(function*(t,e,i){$s.l.warn("mermaid.init is deprecated. Please use run instead."),t&&_A(t);const r={postRenderCallback:i,querySelector:".mermaid"};"string"==typeof e?r.querySelector=e:e&&(r.nodes=e instanceof HTMLElement?[e]:e),yield gA(r)});return function(e,i,r){return n.apply(this,arguments)}}(),qj=function(){var n=(0,yr.Z)(function*(t,{lazyLoad:e=!0}={}){(0,jd.r)(...t),!1===e&&(yield(0,jd.l)())});return function(e){return n.apply(this,arguments)}}(),bA=function(){if(tc.startOnLoad){const{startOnLoad:n}=Ud.m.getConfig();n&&tc.run().catch(t=>$s.l.error("Mermaid failed to initialize",t))}};typeof document<"u"&&window.addEventListener("load",bA,!1);const _b=[];let Ex=!1;const yA=function(){var n=(0,yr.Z)(function*(){if(!Ex){for(Ex=!0;_b.length>0;){const t=_b.shift();if(t)try{yield t()}catch(e){$s.l.error("Error executing queue",e)}}Ex=!1}});return function(){return n.apply(this,arguments)}}(),Xj=function(){var n=(0,yr.Z)(function*(t,e){return new Promise((i,r)=>{_b.push(()=>new Promise((a,c)=>{Ud.m.parse(t,e).then(d=>{a(d),i(d)},d=>{var h;$s.l.error("Error parsing",d),null==(h=tc.parseError)||h.call(tc,d),c(d),r(d)})})),yA().catch(r)})});return function(e,i){return n.apply(this,arguments)}}(),vA=(n,t,e)=>new Promise((i,r)=>{_b.push(()=>new Promise((a,c)=>{Ud.m.render(n,t,e).then(d=>{a(d),i(d)},d=>{var h;$s.l.error("Error parsing",d),null==(h=tc.parseError)||h.call(tc,d),c(d),r(d)})})),yA().catch(r)}),tc={startOnLoad:!0,mermaidAPI:Ud.m,parse:Xj,render:vA,init:Zj,run:gA,registerExternalDiagrams:qj,initialize:_A,parseError:void 0,contentLoaded:bA,setParseErrorHandler:function(n){tc.parseError=n}};let Qj=(()=>{class n{constructor(){}getMermaidAsSVG(e){return(0,yr.Z)(function*(){const{svg:i}=yield tc.render("rendered",e);return i})()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),js=(()=>{class n{constructor(){this.savedDevfile="",this._state=new NC(null),this.state=this._state.asObservable(),this._modified=new NC(null),this.modified=this._modified.asObservable()}changeDevfileYaml(e,i=!1){this._state.next(e),i&&(this.savedDevfile=e.content),""==this.savedDevfile&&(this.savedDevfile=e.content),this._modified.next(this.savedDevfile!=e.content)}isUpdated(e){return e!=this.savedDevfile}getDragAndDropEnabled(){return"true"==localStorage.getItem("dragAndDropEnabled")}saveDragAndDropEnabled(e){return localStorage.setItem("dragAndDropEnabled",e?"true":"false")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jj=(()=>{class n{constructor(){this.base="/api/v1",this.evtSource=new EventSource(this.base+"/notifications")}subscribeTo(e){return new ye(i=>{e.forEach(r=>{this.evtSource.addEventListener(r,o=>{i.next(o)})}),this.evtSource.onerror=r=>{i.error(r)}})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wa=(()=>{class n{constructor(e){this.segment=e,this.options={context:{ip:"0.0.0.0"}}}init(e,i){this.segment.identify(i,{},this.options),this.segment.load(e),this.segment.setAnonymousId(i)}track(e){this.segment.track(e,{},this.options)}}return n.\u0275fac=function(e){return new(e||n)(te($d))},n.\u0275prov=it({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tU=(()=>{class n{constructor(e,i,r){this.devstate=e,this.state=i,this.telemetry=r,this.form=new va({name:new fn(""),version:new fn("",Kn.pattern("^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$")),displayName:new fn(""),description:new fn(""),tags:new fn(""),architectures:new fn(""),icon:new fn(""),globalMemoryLimit:new fn(""),projectType:new fn(""),language:new fn(""),website:new fn(""),provider:new fn(""),supportUrl:new fn("")})}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,yr.Z)(function*(r){const o=r?.metadata;null!=o&&e.form.patchValue(o)});return function(r){return i.apply(this,arguments)}}())}onSave(){this.telemetry.track("[ui] apply metadata"),this.devstate.setMetadata(this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(x(ns),x(js),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-metadata"]],decls:58,vars:2,consts:[[1,"main"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["data-cy","metadata-name","placeholder","Unique name to identify the devfile","matInput","","formControlName","name"],["placeholder","Version of the devfile, semver-compatible","matInput","","formControlName","version"],["appearance","outline",1,"full-width"],["placeholder","Name to display instead of the unique name","matInput","","formControlName","displayName"],["matInput","","formControlName","description","rows","4"],["placeholder","Tags to help find the devfile in a registry","matInput","","formControlName","tags"],["placeholder","Ex: amd64,arm64,ppc64le,s390x","matInput","","formControlName","architectures"],["placeholder","Can be a URI or a relative path in the project","matInput","","formControlName","icon"],["placeholder","Informative limit of memory used by the devfile. Ex: 1Gi","matInput","","formControlName","globalMemoryLimit"],["placeholder","Ex: Framework of the project","matInput","","formControlName","projectType"],["placeholder","Language of the project","matInput","","formControlName","language"],["placeholder","Official website of the devfile","matInput","","formControlName","website"],["placeholder","Information about the provider of the devfile","matInput","","formControlName","provider"],["placeholder","Link to a page providing support information","matInput","","formControlName","supportUrl"],["mat-flat-button","","color","primary",3,"disabled","click"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),N(4,"Name"),w(),Ge(5,"input",3),w(),D(6,"mat-form-field",2)(7,"mat-label"),N(8,"Version"),w(),D(9,"mat-error"),N(10,"Examples: 1.0.4, 1.4.7-alpha1"),w(),Ge(11,"input",4),w(),D(12,"mat-form-field",5)(13,"mat-label"),N(14,"Display Name"),w(),Ge(15,"input",6),w(),D(16,"mat-form-field",5)(17,"mat-label"),N(18,"Description"),w(),Ge(19,"textarea",7),w(),D(20,"mat-form-field",2)(21,"mat-label"),N(22,"Tags (comma-speparated)"),w(),Ge(23,"input",8),w(),D(24,"mat-form-field",2)(25,"mat-label"),N(26,"Architectures (comma-separated)"),w(),Ge(27,"input",9),w(),D(28,"mat-form-field",2)(29,"mat-label"),N(30,"Icon"),w(),Ge(31,"input",10),w(),D(32,"mat-form-field",2)(33,"mat-label"),N(34,"Global Memory Limit"),w(),Ge(35,"input",11),w(),D(36,"mat-form-field",2)(37,"mat-label"),N(38,"Project Type"),w(),Ge(39,"input",12),w(),D(40,"mat-form-field",2)(41,"mat-label"),N(42,"Language"),w(),Ge(43,"input",13),w(),D(44,"mat-form-field",2)(45,"mat-label"),N(46,"Website"),w(),Ge(47,"input",14),w(),D(48,"mat-form-field",2)(49,"mat-label"),N(50,"Provider"),w(),Ge(51,"input",15),w(),D(52,"mat-form-field",5)(53,"mat-label"),N(54,"Support URL"),w(),Ge(55,"input",16),w()(),D(56,"button",17),ge("click",function(){return i.onSave()}),N(57,"Apply"),w()()),2&e&&(R(1),U("formGroup",i.form),R(55),U("disabled",i.form.invalid))},dependencies:[Tc,Vs,ya,Mc,Jo,Ka,br,ts,xo,sl,xa],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();const bb="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",yb="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";function nU(n,t){if(1&n&&(D(0,"h3"),N(1),w()),2&n){const e=_e();R(1),bn(e.title)}}function iU(n,t){if(1&n){const e=Dn();D(0,"span")(1,"mat-form-field",5)(2,"mat-label")(3,"span"),N(4),w()(),D(5,"input",6),ge("change",function(r){const a=Ot(e).index;return Ht(_e().onTextChange(a,r))}),w()()()}if(2&n){const e=t.$implicit,i=_e();R(4),bn(i.label),R(1),U("value",e)}}function rU(n,t){if(1&n){const e=Dn();D(0,"button",7),ge("click",function(){return Ot(e),Ht(_e().addText())}),D(1,"mat-icon",8),N(2,"add"),w()()}}function oU(n,t){if(1&n){const e=Dn();D(0,"button",9),ge("click",function(){return Ot(e),Ht(_e().addText())}),N(1),w()}if(2&n){const e=_e();R(1),bn(e.addLabel)}}let CA=(()=>{class n{constructor(){this.label="",this.addLabel="",this.title="",this.onChange=e=>{},this.texts=[]}writeValue(e){this.texts=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}addText(){this.texts.push(""),this.onChange(this.texts)}onTextChange(e,i){this.texts[e]=i.target.value,this.onChange(this.texts)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=k({type:n,selectors:[["app-multi-text"]],inputs:{label:"label",addLabel:"addLabel",title:"title"},features:[Wt([{provide:Yr,multi:!0,useExisting:n}])],decls:5,vars:4,consts:[[4,"ngIf"],[1,"group"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"inline"],["matInput","",3,"value","change"],["mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(pe(0,nU,2,1,"h3",0),D(1,"div",1),pe(2,iU,6,2,"span",2),pe(3,rU,3,0,"button",3),pe(4,oU,2,1,"button",4),w()),2&e&&(U("ngIf",i.title),R(2),U("ngForOf",i.texts),R(1),U("ngIf",i.texts.length>0),R(1),U("ngIf",0==i.texts.length))},dependencies:[ma,Fi,br,px,ts,xo,Ja,xa],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})();function sU(n,t){if(1&n){const e=Dn();D(0,"button",9),ge("click",function(){return Ot(e),Ht(_e().cancel())}),N(1,"Cancel"),w()}}let xA=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.cancelable=!1,this.canceled=new Je,this.created=new Je,this.form=new va({name:new fn("",[Kn.required,Kn.pattern(yb)]),size:new fn("",null,[this.devstate.isQuantity()]),ephemeral:new fn(!1)})}create(){this.telemetry.track("[ui] create volume"),this.created.emit(this.form.value)}cancel(){this.canceled.emit()}}return n.\u0275fac=function(e){return new(e||n)(x(ns),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-volume"]],inputs:{cancelable:"cancelable"},outputs:{canceled:"canceled",created:"created"},decls:23,vars:3,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the volume","data-cy","volume-name","matInput","","formControlName","name"],["placeholder","Minimal size of the volume","data-cy","volume-size","matInput","","formControlName","size"],["data-cy","volume-ephemeral","formControlName","ephemeral"],["data-cy","volume-create","mat-flat-button","","color","primary","matTooltip","create new volume",3,"disabled","click"],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"h2"),N(2,"Add a new volume"),w(),D(3,"div",1),N(4,"A volume can be mounted and shared by several containers."),w(),D(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),N(9,"Name"),w()(),D(10,"mat-error"),N(11,"Lowercase words separated by dashes. Ex: my-volume"),w(),Ge(12,"input",4),w(),D(13,"mat-form-field",3)(14,"mat-label")(15,"span"),N(16,"Size"),w()(),Ge(17,"input",5),w(),D(18,"mat-checkbox",6),N(19,"Volume is Ephemeral"),w()(),D(20,"button",7),ge("click",function(){return i.create()}),N(21,"Create"),w(),pe(22,sU,2,0,"button",8),w()),2&e&&(R(5),U("formGroup",i.form),R(15),U("disabled",i.form.invalid),R(2),U("ngIf",i.cancelable))},dependencies:[Fi,Tc,Vs,ya,Mc,Jo,Ka,br,Vd,ts,xo,sl,xa,al],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function aU(n,t){if(1&n&&(D(0,"mat-option",10),N(1),w()),2&n){const e=t.$implicit;U("value",e),R(1),bn(e)}}function cU(n,t){if(1&n){const e=Dn();D(0,"app-volume",11),ge("created",function(r){Ot(e);const o=_e().index;return Ht(_e().onNewVolumeCreated(o,r))}),w()}}function lU(n,t){if(1&n){const e=Dn();D(0,"div")(1,"mat-form-field",4)(2,"mat-label")(3,"span"),N(4,"Volume"),w()(),D(5,"mat-select",5),ge("selectionChange",function(r){const a=Ot(e).index;return Ht(_e().onNameChange(a,r.value))}),pe(6,aU,2,2,"mat-option",6),D(7,"mat-option",7),N(8,"(New Volume)"),w()()(),D(9,"mat-form-field",4)(10,"mat-label")(11,"span"),N(12,"Mount Path"),w()(),D(13,"input",8),ge("input",function(r){const a=Ot(e).index;return Ht(_e().onPathChange(a,r))})("change",function(r){const a=Ot(e).index;return Ht(_e().onPathChange(a,r))}),w()(),pe(14,cU,1,0,"app-volume",9),w()}if(2&n){const e=t.$implicit,i=t.index,r=_e();R(5),U("value",e.name),sn("data-cy","volume-mount-name-"+i),R(1),U("ngForOf",r.volumes),R(7),U("value",e.path),sn("data-cy","volume-mount-path-"+i),R(1),U("ngIf",r.showNewVolume[i])}}function dU(n,t){if(1&n){const e=Dn();D(0,"button",12),ge("click",function(){return Ot(e),Ht(_e().add())}),D(1,"mat-icon",13),N(2,"add"),w()()}}function uU(n,t){if(1&n){const e=Dn();D(0,"button",14),ge("click",function(){return Ot(e),Ht(_e().add())}),N(1,"Add Volume Mount"),w()}}let hU=(()=>{class n{constructor(){this.volumes=[],this.createNewVolume=new Je,this.volumeMounts=[],this.showNewVolume=[],this.onChange=e=>{},this.onValidatorChange=()=>{}}writeValue(e){this.volumeMounts=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}add(){this.volumeMounts.push({name:"",path:""}),this.onChange(this.volumeMounts)}onPathChange(e,i){this.volumeMounts[e].path=i.target.value,this.onChange(this.volumeMounts)}onNameChange(e,i){"!"!=i&&(this.volumeMounts[e].name=i,this.onChange(this.volumeMounts)),this.showNewVolume[e]="!"==i}onNewVolumeCreated(e,i){this.volumes.push(i.name),this.volumeMounts[e].name=i.name,this.createNewVolume.next(i),this.showNewVolume[e]=!1,this.onValidatorChange()}validate(e){for(let i=0;i<this.volumeMounts.length;i++){const r=this.volumeMounts[i];if(""==r.name||""==r.path)return{internal:!0}}return null}registerOnValidatorChange(e){this.onValidatorChange=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=k({type:n,selectors:[["app-volume-mounts"]],inputs:{volumes:"volumes"},outputs:{createNewVolume:"createNewVolume"},features:[Wt([{provide:Yr,multi:!0,useExisting:n},{provide:Zr,useExisting:dn(()=>n),multi:!0}])],decls:6,vars:3,consts:[[1,"group"],[4,"ngFor","ngForOf"],["data-cy","volume-mount-add","mat-icon-button","",3,"click",4,"ngIf"],["data-cy","volume-mount-add","mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"inline"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],["matInput","",3,"value","input","change"],[3,"created",4,"ngIf"],[3,"value"],[3,"created"],["data-cy","volume-mount-add","mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","volume-mount-add","mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"h3"),N(1,"Volume Mounts"),w(),D(2,"div",0),pe(3,lU,15,6,"div",1),pe(4,dU,3,0,"button",2),pe(5,uU,2,0,"button",3),w()),2&e&&(R(3),U("ngForOf",i.volumeMounts),R(1),U("ngIf",i.volumeMounts.length>0),R(1),U("ngIf",0==i.volumeMounts.length))},dependencies:[ma,Fi,Dh,br,px,ts,xo,Ja,xa,Dx,xA],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})();function fU(n,t){if(1&n){const e=Dn();D(0,"button",15),ge("click",function(){return Ot(e),Ht(_e().cancel())}),N(1,"Cancel"),w()}}let wA=(()=>{class n{constructor(e,i){this.devstate=e,this.telemetry=i,this.volumeNames=[],this.cancelable=!1,this.canceled=new Je,this.created=new Je,this.quantityErrMsgMemory="Numeric value, with optional unit Ki, Mi, Gi, Ti, Pi, Ei",this.quantityErrMsgCPU="Numeric value, with optional unit m, k, M, G, T, P, E",this.volumesToCreate=[],this.form=new va({name:new fn("",[Kn.required,Kn.pattern(yb)]),image:new fn("",[Kn.required]),command:new fn([]),args:new fn([]),memoryRequest:new fn("",null,[this.devstate.isQuantity()]),memoryLimit:new fn("",null,[this.devstate.isQuantity()]),cpuRequest:new fn("",null,[this.devstate.isQuantity()]),cpuLimit:new fn("",null,[this.devstate.isQuantity()]),volumeMounts:new fn([])})}create(){this.telemetry.track("[ui] create container"),this.created.emit({container:this.form.value,volumes:this.volumesToCreate})}cancel(){this.canceled.emit()}onCreateNewVolume(e){this.volumesToCreate.push(e)}}return n.\u0275fac=function(e){return new(e||n)(x(ns),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-container"]],inputs:{volumeNames:"volumeNames",cancelable:"cancelable"},outputs:{canceled:"canceled",created:"created"},decls:56,vars:8,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the container","data-cy","container-name","matInput","","formControlName","name"],["placeholder","Image to start the container","data-cy","container-image","matInput","","formControlName","image"],["formControlName","command","label","Command","addLabel","Add command"],["formControlName","args","label","Arg","addLabel","Add arg"],["formControlName","volumeMounts",3,"volumes","createNewVolume"],["placeholder","memory requested for the container. Ex: 1Gi","data-cy","container-memory-request","matInput","","formControlName","memoryRequest"],["placeholder","memory limit for the container. Ex: 1Gi","data-cy","container-memory-limit","matInput","","formControlName","memoryLimit"],["placeholder","CPU requested for the container. Ex: 500m","data-cy","container-cpu-request","matInput","","formControlName","cpuRequest"],["placeholder","CPU limit for the container. Ex: 1","data-cy","container-cpu-limit","matInput","","formControlName","cpuLimit"],["data-cy","container-create","mat-flat-button","","color","primary","matTooltip","create new container",3,"disabled","click"],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"h2"),N(2,"Add a new container"),w(),D(3,"div",1),N(4,"A Container is used to execute shell commands into a specific environment. The entrypoint of the container must be a non-terminating command. You can use an image pulled from a registry or an image built by an Image command."),w(),D(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),N(9,"Name"),w()(),D(10,"mat-error"),N(11,"Lowercase words separated by dashes. Ex: my-container"),w(),Ge(12,"input",4),w(),D(13,"mat-form-field",3)(14,"mat-label")(15,"span"),N(16,"Image"),w()(),Ge(17,"input",5),w(),D(18,"h3"),N(19,"Command and Arguments"),w(),Ge(20,"app-multi-text",6)(21,"app-multi-text",7),D(22,"app-volume-mounts",8),ge("createNewVolume",function(o){return i.onCreateNewVolume(o)}),w(),D(23,"h3"),N(24,"Resource Usage"),w(),D(25,"mat-form-field",3)(26,"mat-label")(27,"span"),N(28,"Memory Request"),w()(),D(29,"mat-error"),N(30),w(),Ge(31,"input",9),w(),D(32,"mat-form-field",3)(33,"mat-label")(34,"span"),N(35,"Memory Limit"),w()(),D(36,"mat-error"),N(37),w(),Ge(38,"input",10),w(),D(39,"mat-form-field",3)(40,"mat-label")(41,"span"),N(42,"CPU Request"),w()(),D(43,"mat-error"),N(44),w(),Ge(45,"input",11),w(),D(46,"mat-form-field",3)(47,"mat-label")(48,"span"),N(49,"CPU Limit"),w()(),D(50,"mat-error"),N(51),w(),Ge(52,"input",12),w()(),D(53,"button",13),ge("click",function(){return i.create()}),N(54,"Create"),w(),pe(55,fU,2,0,"button",14),w()),2&e&&(R(5),U("formGroup",i.form),R(17),U("volumes",i.volumeNames),R(8),bn(i.quantityErrMsgMemory),R(7),bn(i.quantityErrMsgMemory),R(7),bn(i.quantityErrMsgCPU),R(7),bn(i.quantityErrMsgCPU),R(2),U("disabled",i.form.invalid),R(2),U("ngIf",i.cancelable))},dependencies:[Fi,Tc,Vs,ya,Mc,Jo,Ka,br,ts,xo,sl,xa,al,CA,hU],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function mU(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"Command:"),w(),D(3,"td")(4,"code"),N(5),w()()()),2&n){const e=_e().$implicit;R(5),bn(e.command.join(" "))}}function pU(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"Args:"),w(),D(3,"td")(4,"code"),N(5),w()()()),2&n){const e=_e().$implicit;R(5),bn(e.args.join(" "))}}function gU(n,t){if(1&n&&(D(0,"div",9)(1,"mat-chip",10)(2,"mat-icon",11),N(3,"storage"),w(),N(4),w(),D(5,"span",12),N(6," in "),D(7,"code"),N(8),w()()()),2&n){const e=t.$implicit;R(4),Ai(" ",e.name," "),R(4),bn(e.path)}}function _U(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"Volume Mounts:"),w(),D(3,"td"),pe(4,gU,9,2,"div",8),w()()),2&n){const e=_e().$implicit;R(4),U("ngForOf",e.volumeMounts)}}function bU(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"Memory Request:"),w(),D(3,"td")(4,"code"),N(5),w()()()),2&n){const e=_e().$implicit;R(5),bn(e.memoryRequest)}}function yU(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"Memory Limit:"),w(),D(3,"td")(4,"code"),N(5),w()()()),2&n){const e=_e().$implicit;R(5),bn(e.memoryLimit)}}function vU(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"CPU Request:"),w(),D(3,"td")(4,"code"),N(5),w()()()),2&n){const e=_e().$implicit;R(5),bn(e.cpuRequest)}}function CU(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"CPU Limit:"),w(),D(3,"td")(4,"code"),N(5),w()()()),2&n){const e=_e().$implicit;R(5),bn(e.cpuLimit)}}function xU(n,t){if(1&n){const e=Dn();D(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),N(3),w(),D(4,"mat-card-subtitle"),N(5,"Container"),w()(),D(6,"mat-card-content")(7,"table",6)(8,"tr")(9,"td"),N(10,"Image:"),w(),D(11,"td")(12,"code"),N(13),w()()(),pe(14,mU,6,1,"tr",3),pe(15,pU,6,1,"tr",3),pe(16,_U,5,1,"tr",3),pe(17,bU,6,1,"tr",3),pe(18,yU,6,1,"tr",3),pe(19,vU,6,1,"tr",3),pe(20,CU,6,1,"tr",3),w()(),D(21,"mat-card-actions")(22,"button",7),ge("click",function(){const o=Ot(e).$implicit;return Ht(_e().delete(o.name))}),N(23,"Delete"),w()()()}if(2&n){const e=t.$implicit;R(3),bn(e.name),R(10),bn(e.image),R(1),U("ngIf",null!=e.command&&e.command.length>0),R(1),U("ngIf",null!=e.args&&e.args.length>0),R(1),U("ngIf",e.volumeMounts.length>0),R(1),U("ngIf",null!=e.memoryRequest&&e.memoryRequest.length>0),R(1),U("ngIf",null!=e.memoryLimit&&e.memoryLimit.length>0),R(1),U("ngIf",null!=e.cpuRequest&&e.cpuRequest.length>0),R(1),U("ngIf",null!=e.cpuLimit&&e.cpuLimit.length>0)}}const wU=function(){return[]};function DU(n,t){if(1&n){const e=Dn();D(0,"app-container",13),ge("canceled",function(){return Ot(e),Ht(_e().undisplayAddForm())})("created",function(r){return Ot(e),Ht(_e().onCreated(r))}),w()}if(2&n){const e=_e();let i;U("volumeNames",null!==(i=e.volumeNames)&&void 0!==i?i:Wa(2,wU))("cancelable",e.forceDisplayAdd)}}function MU(n,t){if(1&n){const e=Dn();bo(0),D(1,"button",14),ge("click",function(){return Ot(e),Ht(_e().displayAddForm())}),D(2,"mat-icon",15),N(3,"add"),w()(),yo()}}let TU=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayAdd=!1,this.containers=[],this.volumeNames=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,yr.Z)(function*(o){e.volumeNames=o?.volumes.map(a=>a.name),i.containers=o?.containers,null!=e.containers&&(i.forceDisplayAdd=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.forceDisplayAdd=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayAdd=!1}delete(e){confirm('You will delete the container "'+e+'". Continue?')&&this.devstate.deleteContainer(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}onCreated(e){const i=e.container;this.createVolumes(e.volumes,0,()=>{this.devstate.addContainer(i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(x(js),x(ns))},n.\u0275cmp=k({type:n,selectors:[["app-containers"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","container-info",4,"ngFor","ngForOf"],[3,"volumeNames","cancelable","canceled","created",4,"ngIf"],[4,"ngIf"],["data-cy","container-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],["class","volume-mount",4,"ngFor","ngForOf"],[1,"volume-mount"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],[1,"path"],[3,"volumeNames","cancelable","canceled","created"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(D(0,"div",0),pe(1,xU,24,9,"mat-card",1),pe(2,DU,1,3,"app-container",2),w(),pe(3,MU,4,0,"ng-container",3)),2&e&&(R(1),U("ngForOf",i.containers),R(1),U("ngIf",i.forceDisplayAdd||null==i.containers||0==i.containers.length),R(1),U("ngIf",!i.forceDisplayAdd&&null!=i.containers&&i.containers.length>0))},dependencies:[ma,Fi,br,Nm,Mh,Sh,Eh,Ih,kh,Th,nd,vx,Ja,wA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.volume-mount[_ngcontent-%COMP%]{margin-top:4px}.volume-mount[_ngcontent-%COMP%] > mat-chip[_ngcontent-%COMP%]{top:-11px}.volume-mount[_ngcontent-%COMP%] > span.path[_ngcontent-%COMP%]{position:relative;top:-14px}table.aligned[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{vertical-align:top}"]}),n})();function EU(n,t){if(1&n&&(D(0,"mat-option",4),N(1),w()),2&n){const e=t.$implicit;U("value",e),R(1),bn(e)}}let kx=(()=>{class n{constructor(){this.containers=[],this.label="",this.createNew=new Je,this.container="",this.onChange=e=>{}}writeValue(e){this.container=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}onSelectChange(e){"!"!=e&&this.onChange(e),this.createNew.emit("!"==e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=k({type:n,selectors:[["app-select-container"]],inputs:{containers:"containers",label:"label"},outputs:{createNew:"createNew"},features:[Wt([{provide:Yr,multi:!0,useExisting:n}])],decls:7,vars:4,consts:[["appearance","fill"],["data-cy","select-container",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["value","!"],[3,"value"]],template:function(e,i){1&e&&(D(0,"mat-form-field",0)(1,"mat-label"),N(2),w(),D(3,"mat-select",1),ge("selectionChange",function(o){return i.onSelectChange(o.value)}),pe(4,EU,2,2,"mat-option",2),D(5,"mat-option",3),N(6),w()()()),2&e&&(R(2),bn(i.label),R(1),U("value",i.container),R(1),U("ngForOf",i.containers),R(2),Ai("(New ",i.label,")"))},dependencies:[ma,Dh,ts,xo,Dx]}),n})();const kU=function(){return[]};function SU(n,t){if(1&n){const e=Dn();D(0,"app-container",13),ge("created",function(r){return Ot(e),Ht(_e().onNewContainerCreated(r))}),w()}if(2&n){let i;U("volumeNames",null!==(i=_e().volumeNames)&&void 0!==i?i:Wa(1,kU))}}let IU=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Je,this.containerList=[],this.showNewContainer=!1,this.containerToCreate=null,this.volumesToCreate=[],this.volumeNames=[],this.form=new va({name:new fn("",[Kn.required,Kn.pattern(bb)]),component:new fn("",[Kn.required]),commandLine:new fn("",[Kn.required]),workingDir:new fn("",[Kn.required]),hotReloadCapable:new fn(!1)}),this.state.state.subscribe(function(){var a=(0,yr.Z)(function*(c){o.volumeNames=c?.volumes.map(h=>h.name);const d=c?.containers;null!=d&&(o.containerList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}createVolumes(e,i,r){e.length!=i?this.devstate.addVolume(e[i]).subscribe({next:a=>{this.createVolumes(e,i+1,r)},error:a=>{alert(a.error.message)}}):r()}create(){this.telemetry.track("[ui] create exec command");const e=()=>{this.devstate.addExecCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};this.createVolumes(this.volumesToCreate,0,()=>{null!=this.containerToCreate&&this.containerToCreate?.name==this.form.controls.component.value?this.devstate.addContainer(this.containerToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()})}cancel(){this.canceled.emit()}onProjectsRoot(){this.form.controls.workingDir.setValue("${PROJECTS_ROOT}")}onCreateNewContainer(e){this.showNewContainer=e}onNewContainerCreated(e){const i=e.container;this.containerList.push(i.name),this.form.controls.component.setValue(i.name),this.showNewContainer=!1,this.containerToCreate=i,this.volumesToCreate.push(...e.volumes)}}return n.\u0275fac=function(e){return new(e||n)(x(ns),x(js),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-command-exec"]],outputs:{canceled:"canceled"},decls:35,vars:4,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["formControlName","hotReloadCapable"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-exec-name","matInput","","formControlName","name"],["placeholder","command line passed to the shell","data-cy","command-exec-command-line","matInput","","formControlName","commandLine"],["placeholder","Working directory of the command","data-cy","command-exec-working-dir","matInput","","formControlName","workingDir"],["data-cy","command-exec-projects-root","mat-button","",3,"click"],["formControlName","component","label","Container",3,"containers","createNew"],[3,"volumeNames","created",4,"ngIf"],["data-cy","command-exec-create","mat-flat-button","","color","primary","matTooltip","create new Exec Command",3,"disabled","click"],["mat-flat-button","",3,"click"],[3,"volumeNames","created"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"h2"),N(2,"Add an Exec Command"),w(),D(3,"div",1),N(4,"An Exec command is a shell command executed into a container."),w(),D(5,"form",2)(6,"div")(7,"mat-checkbox",3),N(8,"Hot Reload Capable"),w()(),D(9,"mat-form-field",4)(10,"mat-label")(11,"span"),N(12,"Name"),w()(),D(13,"mat-error"),N(14,"Lowercase words separated by dashes. Ex: my-command"),w(),Ge(15,"input",5),w(),D(16,"mat-form-field",4)(17,"mat-label")(18,"span"),N(19,"Command Line"),w()(),Ge(20,"input",6),w(),D(21,"mat-form-field",4)(22,"mat-label")(23,"span"),N(24,"Working Dir"),w()(),Ge(25,"input",7),w(),D(26,"button",8),ge("click",function(){return i.onProjectsRoot()}),N(27,"Work on Project's Root Directory"),w(),D(28,"div")(29,"app-select-container",9),ge("createNew",function(o){return i.onCreateNewContainer(o)}),w()()(),pe(30,SU,1,2,"app-container",10),D(31,"button",11),ge("click",function(){return i.create()}),N(32,"Create"),w(),D(33,"button",12),ge("click",function(){return i.cancel()}),N(34,"Cancel"),w()()),2&e&&(R(5),U("formGroup",i.form),R(24),U("containers",i.containerList),R(1),U("ngIf",i.showNewContainer),R(1),U("disabled",i.form.invalid))},dependencies:[Fi,Tc,Vs,ya,Mc,Jo,Ka,br,Vd,ts,xo,sl,xa,al,wA,kx],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function AU(n,t){1&n&&(D(0,"mat-form-field",12)(1,"mat-label")(2,"span"),N(3,"URI"),w()(),Ge(4,"input",13),w())}function FU(n,t){1&n&&(D(0,"mat-form-field",12)(1,"mat-label"),N(2,"YAML Manifest"),w(),Ge(3,"textarea",14),w())}function OU(n,t){if(1&n){const e=Dn();D(0,"button",15),ge("click",function(){return Ot(e),Ht(_e().cancel())}),N(1,"Cancel"),w()}}let DA=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Je,this.created=new Je,this.uriOrInlined="uri",this.form=new va({name:new fn("",[Kn.required,Kn.pattern(yb)]),uri:new fn("",[Kn.required]),inlined:new fn("",[])})}changeUriOrInlined(e){this.uriOrInlined=e,"uri"==this.uriOrInlined?(this.form.controls.inlined.removeValidators(Kn.required),this.form.controls.inlined.setValue(""),this.form.controls.uri?.addValidators(Kn.required)):"inlined"==this.uriOrInlined&&(this.form.controls.uri?.removeValidators(Kn.required),this.form.controls.uri.setValue(""),this.form.controls.inlined?.setValidators(Kn.required)),this.form.controls.uri.updateValueAndValidity(),this.form.controls.inlined.updateValueAndValidity()}create(){this.telemetry.track("[ui] create resource"),this.created.emit(this.form.value)}cancel(){this.canceled.emit()}}return n.\u0275fac=function(e){return new(e||n)(x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-resource"]],inputs:{cancelable:"cancelable"},outputs:{canceled:"canceled",created:"created"},decls:24,vars:5,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the resource","data-cy","resource-name","matInput","","formControlName","name"],[1,"toggleUriInlined"],[3,"change"],["data-cy","resource-toogle-uri","value","uri","checked",""],["data-cy","resource-toggle-inlined","value","inlined"],["appearance","outline","class","full-width",4,"ngIf"],["data-cy","resource-create","mat-flat-button","","color","primary","matTooltip","create new resource",3,"disabled","click"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","outline",1,"full-width"],["placeholder","Reference to a YAML manifest","data-cy","resource-uri","matInput","","formControlName","uri"],["data-cy","resource-manifest","matInput","","formControlName","inlined","rows","8"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"h2"),N(2,"Add a new resource"),w(),D(3,"div",1),N(4,"A Resource defines a Kubernetes resource. Its definition can be given either by a URI pointing to a manifest file or by an inlined YAML manifest."),w(),D(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),N(9,"Name"),w()(),D(10,"mat-error"),N(11,"Lowercase words separated by dashes. Ex: my-resource"),w(),Ge(12,"input",4),w(),D(13,"span",5)(14,"mat-button-toggle-group",6),ge("change",function(o){return i.changeUriOrInlined(o.value)}),D(15,"mat-button-toggle",7),N(16,"Specify URI"),w(),D(17,"mat-button-toggle",8),N(18,"Inlined content"),w()()(),pe(19,AU,5,0,"mat-form-field",9),pe(20,FU,4,0,"mat-form-field",9),w(),D(21,"button",10),ge("click",function(){return i.create()}),N(22,"Create"),w(),pe(23,OU,2,0,"button",11),w()),2&e&&(R(5),U("formGroup",i.form),R(14),U("ngIf","uri"==i.uriOrInlined),R(1),U("ngIf","inlined"==i.uriOrInlined),R(1),U("disabled",i.form.invalid),R(2),U("ngIf",i.cancelable))},dependencies:[Fi,Tc,Vs,ya,Mc,Jo,Ka,br,kI,SI,ts,xo,sl,xa,al],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}span.toggleUriInlined[_ngcontent-%COMP%]{margin-left:16px}"]}),n})();function RU(n,t){if(1&n){const e=Dn();D(0,"app-resource",9),ge("created",function(r){return Ot(e),Ht(_e().onNewResourceCreated(r))}),w()}}let PU=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Je,this.resourceList=[],this.showNewResource=!1,this.resourceToCreate=null,this.form=new va({name:new fn("",[Kn.required,Kn.pattern(bb)]),component:new fn("",[Kn.required])}),this.state.state.subscribe(function(){var a=(0,yr.Z)(function*(c){const d=c?.resources;null!=d&&(o.resourceList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create apply command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.resourceToCreate&&this.resourceToCreate?.name==this.form.controls.component.value?this.devstate.addResource(this.resourceToCreate).subscribe({next:r=>{this.state.changeDevfileYaml(r),e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewContainer(e){this.showNewResource=e}onNewResourceCreated(e){this.resourceList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewResource=!1,this.resourceToCreate=e}}return n.\u0275fac=function(e){return new(e||n)(x(ns),x(js),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-command-apply"]],outputs:{canceled:"canceled"},decls:22,vars:4,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-apply-name","matInput","","formControlName","name"],["formControlName","component","label","Resource",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-apply-create","mat-flat-button","","color","primary","matTooltip","create new Apply Command",3,"disabled","click"],["mat-flat-button","",3,"click"],[3,"created"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"h2"),N(2,"Add an Apply Command"),w(),D(3,"div",1),N(4,'An Apply command "applies" a resource to the cluster. Equivalent to '),D(5,"code"),N(6,"kubectl apply -f ..."),w()(),D(7,"form",2)(8,"mat-form-field",3)(9,"mat-label")(10,"span"),N(11,"Name"),w()(),D(12,"mat-error"),N(13,"Lowercase words separated by dashes. Ex: my-command"),w(),Ge(14,"input",4),w(),D(15,"div")(16,"app-select-container",5),ge("createNew",function(o){return i.onCreateNewContainer(o)}),w()()(),pe(17,RU,1,0,"app-resource",6),D(18,"button",7),ge("click",function(){return i.create()}),N(19,"Create"),w(),D(20,"button",8),ge("click",function(){return i.cancel()}),N(21,"Cancel"),w()()),2&e&&(R(7),U("formGroup",i.form),R(9),U("containers",i.resourceList),R(1),U("ngIf",i.showNewResource),R(1),U("disabled",i.form.invalid))},dependencies:[Fi,Tc,Vs,ya,Mc,Jo,Ka,br,ts,xo,sl,xa,al,kx,DA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function LU(n,t){if(1&n&&(D(0,"mat-option",7),N(1),w()),2&n){const e=t.$implicit;U("value",e),R(1),bn(e)}}function NU(n,t){if(1&n){const e=Dn();D(0,"span")(1,"mat-form-field",4)(2,"mat-select",5),ge("selectionChange",function(r){const a=Ot(e).index;return Ht(_e().onCommandChange(a,r.value))}),pe(3,LU,2,2,"mat-option",6),w()()()}if(2&n){const e=t.$implicit,i=_e();R(2),U("value",e),R(1),U("ngForOf",i.commandList)}}function BU(n,t){if(1&n){const e=Dn();D(0,"button",8),ge("click",function(){return Ot(e),Ht(_e().addCommand())}),D(1,"mat-icon",9),N(2,"add"),w()()}}function VU(n,t){if(1&n){const e=Dn();D(0,"button",10),ge("click",function(){return Ot(e),Ht(_e().addCommand())}),N(1),w()}if(2&n){const e=_e();R(1),bn(e.addLabel)}}let HU=(()=>{class n{constructor(){this.addLabel="",this.commandList=[],this.title="",this.onChange=e=>{},this.commands=[]}writeValue(e){this.commands=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}addCommand(){this.commands.push(""),this.onChange(this.commands)}onCommandChange(e,i){this.commands[e]=i,this.onChange(this.commands)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=k({type:n,selectors:[["app-multi-command"]],inputs:{addLabel:"addLabel",commandList:"commandList",title:"title"},features:[Wt([{provide:Yr,multi:!0,useExisting:n}])],decls:6,vars:4,consts:[[1,"group"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click",4,"ngIf"],["appearance","fill"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","",3,"click"],[1,"tab-icon","material-icons-outlined"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"h3"),N(1),w(),D(2,"div",0),pe(3,NU,4,2,"span",1),pe(4,BU,3,0,"button",2),pe(5,VU,2,1,"button",3),w()),2&e&&(R(1),bn(i.title),R(2),U("ngForOf",i.commands),R(1),U("ngIf",i.commands.length>0),R(1),U("ngIf",0==i.commands.length))},dependencies:[ma,Fi,Dh,br,px,ts,Ja,Dx],styles:["h3[_ngcontent-%COMP%]{margin-bottom:0}div.group[_ngcontent-%COMP%]{margin-bottom:16px}"]}),n})(),zU=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Je,this.commandList=[],this.form=new va({name:new fn("",[Kn.required,Kn.pattern(bb)]),parallel:new fn(!1),commands:new fn([])}),this.state.state.subscribe(function(){var a=(0,yr.Z)(function*(c){const d=c?.commands;null!=d&&(o.commandList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create composite command"),this.devstate.addCompositeCommand(this.form.value.name,this.form.value).subscribe({next:i=>{this.state.changeDevfileYaml(i)},error:i=>{alert(i.error.message)}})}cancel(){this.canceled.emit()}}return n.\u0275fac=function(e){return new(e||n)(x(ns),x(js),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-command-composite"]],outputs:{canceled:"canceled"},decls:21,vars:3,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-composite-name","matInput","","formControlName","name"],["formControlName","parallel"],["formControlName","commands","title","Commands","addLabel","Add a command",3,"commandList"],["data-cy","command-composite-create","mat-flat-button","","color","primary","matTooltip","create new Composite Command",3,"disabled","click"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"h2"),N(2,"Add a Composite Command"),w(),D(3,"div",1),N(4,"A Composite command executes several commands, either serially or in parallel."),w(),D(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),N(9,"Name"),w()(),D(10,"mat-error"),N(11,"Lowercase words separated by dashes. Ex: my-command"),w(),Ge(12,"input",4),w(),D(13,"div")(14,"mat-checkbox",5),N(15,"Run commands in parallel"),w()(),Ge(16,"app-multi-command",6),w(),D(17,"button",7),ge("click",function(){return i.create()}),N(18,"Create"),w(),D(19,"button",8),ge("click",function(){return i.cancel()}),N(20,"Cancel"),w()()),2&e&&(R(5),U("formGroup",i.form),R(11),U("commandList",i.commandList),R(1),U("disabled",i.form.invalid))},dependencies:[Tc,Vs,ya,Mc,Jo,Ka,br,Vd,ts,xo,sl,xa,al,HU],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function $U(n,t){if(1&n){const e=Dn();D(0,"button",12),ge("click",function(){return Ot(e),Ht(_e().cancel())}),N(1,"Cancel"),w()}}let MA=(()=>{class n{constructor(e){this.telemetry=e,this.cancelable=!1,this.canceled=new Je,this.created=new Je,this.form=new va({name:new fn("",[Kn.required,Kn.pattern(yb)]),imageName:new fn("",[Kn.required]),args:new fn([]),buildContext:new fn(""),rootRequired:new fn(!1),uri:new fn("",[Kn.required])})}create(){this.telemetry.track("[ui] create image"),this.created.emit(this.form.value)}cancel(){this.canceled.emit()}}return n.\u0275fac=function(e){return new(e||n)(x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-image"]],inputs:{cancelable:"cancelable"},outputs:{canceled:"canceled",created:"created"},decls:34,vars:3,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the image","data-cy","image-name","matInput","","formControlName","name"],["placeholder","Reference to a container image","data-cy","image-image-name","matInput","","formControlName","imageName"],["formControlName","args","title","Build Args","label","Arg","addLabel","Add Build Arg"],["placeholder","Directory from which the build will be executed","data-cy","image-build-context","matInput","","formControlName","buildContext"],["placeholder","Dockerfile used to build the image","data-cy","image-dockerfile-uri","matInput","","formControlName","uri"],["formControlName","rootRequired"],["data-cy","image-create","mat-flat-button","","color","primary","matTooltip","create new image",3,"disabled","click"],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"h2"),N(2,"Add a new image"),w(),D(3,"div",1),N(4,"An Image defines how to build a container image."),w(),D(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),N(9,"Name"),w()(),D(10,"mat-error"),N(11,"Lowercase words separated by dashes. Ex: my-image"),w(),Ge(12,"input",4),w(),D(13,"mat-form-field",3)(14,"mat-label")(15,"span"),N(16,"Image Name"),w()(),Ge(17,"input",5),w(),Ge(18,"app-multi-text",6),D(19,"mat-form-field",3)(20,"mat-label")(21,"span"),N(22,"Build Context"),w()(),Ge(23,"input",7),w(),D(24,"mat-form-field",3)(25,"mat-label")(26,"span"),N(27,"Dockerfile URI"),w()(),Ge(28,"input",8),w(),D(29,"mat-checkbox",9),N(30,"Root Required"),w()(),D(31,"button",10),ge("click",function(){return i.create()}),N(32,"Create"),w(),pe(33,$U,2,0,"button",11),w()),2&e&&(R(5),U("formGroup",i.form),R(26),U("disabled",i.form.invalid),R(2),U("ngIf",i.cancelable))},dependencies:[Fi,Tc,Vs,ya,Mc,Jo,Ka,br,Vd,ts,xo,sl,xa,al,CA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function jU(n,t){if(1&n){const e=Dn();D(0,"app-image",9),ge("created",function(r){return Ot(e),Ht(_e().onNewImageCreated(r))}),w()}}let UU=(()=>{class n{constructor(e,i,r){var o=this;this.devstate=e,this.state=i,this.telemetry=r,this.canceled=new Je,this.imageList=[],this.showNewImage=!1,this.imageToCreate=null,this.form=new va({name:new fn("",[Kn.required,Kn.pattern(bb)]),component:new fn("",[Kn.required])}),this.state.state.subscribe(function(){var a=(0,yr.Z)(function*(c){const d=c?.images;null!=d&&(o.imageList=d.map(h=>h.name))});return function(c){return a.apply(this,arguments)}}())}create(){this.telemetry.track("[ui] create image command");const e=()=>{this.devstate.addApplyCommand(this.form.value.name,this.form.value).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})};null!=this.imageToCreate&&this.imageToCreate?.name==this.form.controls.component.value?this.devstate.addImage(this.imageToCreate).subscribe({next:()=>{e()},error:r=>{alert(r.error.message)}}):e()}cancel(){this.canceled.emit()}onCreateNewImage(e){this.showNewImage=e}onNewImageCreated(e){this.imageList.push(e.name),this.form.controls.component.setValue(e.name),this.showNewImage=!1,this.imageToCreate=e}}return n.\u0275fac=function(e){return new(e||n)(x(ns),x(js),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-command-image"]],outputs:{canceled:"canceled"},decls:20,vars:4,consts:[[1,"main"],[1,"description"],[3,"formGroup"],["appearance","outline",1,"mid-width"],["placeholder","unique name to identify the command","data-cy","command-image-name","matInput","","formControlName","name"],["formControlName","component","label","Image",3,"containers","createNew"],[3,"created",4,"ngIf"],["data-cy","command-image-create","mat-flat-button","","color","primary","matTooltip","create new Image Command",3,"disabled","click"],["mat-flat-button","",3,"click"],[3,"created"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"h2"),N(2,"Add an Image Command"),w(),D(3,"div",1),N(4,"An Image command builds a container image and pushes it to a container registry."),w(),D(5,"form",2)(6,"mat-form-field",3)(7,"mat-label")(8,"span"),N(9,"Name"),w()(),D(10,"mat-error"),N(11,"Lowercase words separated by dashes. Ex: my-command"),w(),Ge(12,"input",4),w(),D(13,"div")(14,"app-select-container",5),ge("createNew",function(o){return i.onCreateNewImage(o)}),w()()(),pe(15,jU,1,0,"app-image",6),D(16,"button",7),ge("click",function(){return i.create()}),N(17,"Create"),w(),D(18,"button",8),ge("click",function(){return i.cancel()}),N(19,"Cancel"),w()()),2&e&&(R(5),U("formGroup",i.form),R(9),U("containers",i.imageList),R(1),U("ngIf",i.showNewImage),R(1),U("disabled",i.form.invalid))},dependencies:[Fi,Tc,Vs,ya,Mc,Jo,Ka,br,ts,xo,sl,xa,al,kx,MA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}mat-form-field.mid-width[_ngcontent-%COMP%]{width:50%}"]}),n})();function WU(n,t){if(1&n&&(D(0,"div",2),N(1),w()),2&n){const e=_e();R(1),Ai("No ",e.kind," commands yet. You can create a command then drag&drop it here")}}function GU(n,t){1&n&&(D(0,"div",2),N(1,"No generic commands yet. New commands will appear here"),w())}function YU(n,t){if(1&n){const e=Dn();D(0,"mat-checkbox",10),ge("change",function(r){Ot(e);const o=_e(2).$implicit;return Ht(_e().toggleDefault(r,o.name,o.group))}),N(1),w()}if(2&n){const e=_e(2).$implicit,i=_e();U("checked",e._default),R(1),Ai("Default ",i.kind," command")}}function ZU(n,t){1&n&&(D(0,"mat-card-subtitle"),N(1,"Exec Command"),w())}function qU(n,t){1&n&&(D(0,"mat-card-subtitle"),N(1,"Apply Command"),w())}function KU(n,t){1&n&&(D(0,"mat-card-subtitle"),N(1,"Image Command"),w())}function XU(n,t){1&n&&(D(0,"mat-card-subtitle"),N(1,"Composite Command"),w())}function QU(n,t){1&n&&(D(0,"span"),N(1,"Yes"),w())}function JU(n,t){1&n&&(D(0,"span"),N(1,"No"),w())}function e7(n,t){if(1&n&&(bo(0),D(1,"table",11)(2,"tr")(3,"td"),N(4,"Is Hot Reload Capable:"),w(),D(5,"td"),pe(6,QU,2,0,"span",8),pe(7,JU,2,0,"span",8),w()(),D(8,"tr")(9,"td"),N(10,"Command Line:"),w(),D(11,"td")(12,"code"),N(13),w()()(),D(14,"tr")(15,"td"),N(16,"Working Directory:"),w(),D(17,"td")(18,"code"),N(19),w()()(),D(20,"tr")(21,"td"),N(22,"Container:"),w(),D(23,"td")(24,"mat-chip",12)(25,"mat-icon",13),N(26,"width_normal"),w(),N(27),w()()()(),yo()),2&n){const e=_e(2).$implicit;R(6),U("ngIf",null==e.exec?null:e.exec.hotReloadCapable),R(1),U("ngIf",!(null!=e.exec&&e.exec.hotReloadCapable)),R(6),bn(null==e.exec?null:e.exec.commandLine),R(6),bn(null==e.exec?null:e.exec.workingDir),R(8),Ai(" ",null==e.exec?null:e.exec.component," ")}}function t7(n,t){if(1&n&&(bo(0),D(1,"table",11)(2,"tr")(3,"td"),N(4,"Cluster resource:"),w(),D(5,"td")(6,"mat-chip",12)(7,"mat-icon",13),N(8,"description"),w(),N(9),w()()()(),yo()),2&n){const e=_e(2).$implicit;R(9),Ai(" ",null==e.apply?null:e.apply.component," ")}}function n7(n,t){if(1&n&&(bo(0),D(1,"table",11)(2,"tr")(3,"td"),N(4,"Image:"),w(),D(5,"td")(6,"mat-chip",12)(7,"mat-icon",13),N(8,"image"),w(),N(9),w()()()(),yo()),2&n){const e=_e(2).$implicit;R(9),Ai(" ",null==e.image?null:e.image.component," ")}}function i7(n,t){1&n&&(D(0,"div"),N(1,"Commands executed in parallel"),w())}function r7(n,t){1&n&&(D(0,"div"),N(1,"Commands executed serially"),w())}function o7(n,t){if(1&n&&(D(0,"mat-chip",12)(1,"mat-icon",13),N(2,"code"),w(),N(3),w()),2&n){const e=t.$implicit;R(3),Ai(" ",e," ")}}function s7(n,t){if(1&n&&(bo(0),D(1,"table",11)(2,"tr")(3,"td"),N(4,"Scheduling:"),w(),D(5,"td"),pe(6,i7,2,0,"div",8),pe(7,r7,2,0,"div",8),w()(),D(8,"tr")(9,"td"),N(10,"Commands:"),w(),D(11,"td")(12,"mat-chip-set"),pe(13,o7,4,1,"mat-chip",14),w()()()(),yo()),2&n){const e=_e(2).$implicit;R(6),U("ngIf",null==e.composite?null:e.composite.parallel),R(1),U("ngIf",!(null!=e.composite&&e.composite.parallel)),R(5),an("mat-mdc-chip-set-stacked",null==e.composite?null:e.composite.parallel),R(1),U("ngForOf",null==e.composite?null:e.composite.commands)}}function a7(n,t){if(1&n){const e=Dn();D(0,"mat-card",4)(1,"mat-card-header",5)(2,"div",6)(3,"mat-card-title"),N(4),w(),pe(5,YU,2,2,"mat-checkbox",7),w(),D(6,"div"),pe(7,ZU,2,0,"mat-card-subtitle",8),pe(8,qU,2,0,"mat-card-subtitle",8),pe(9,KU,2,0,"mat-card-subtitle",8),pe(10,XU,2,0,"mat-card-subtitle",8),w()(),D(11,"mat-card-content"),pe(12,e7,28,5,"ng-container",8),pe(13,t7,10,1,"ng-container",8),pe(14,n7,10,1,"ng-container",8),pe(15,s7,14,5,"ng-container",8),w(),D(16,"mat-card-actions")(17,"button",9),ge("click",function(){Ot(e);const r=_e().$implicit;return Ht(_e().delete(r.name))}),N(18,"Delete"),w()()()}if(2&n){const e=_e().$implicit;U("cdkDragDisabled",_e().dragDisabled),R(4),Ai(" ",e.name," "),R(1),U("ngIf",""!=e.group),R(2),U("ngIf","exec"==e.type),R(1),U("ngIf","apply"==e.type),R(1),U("ngIf","image"==e.type),R(1),U("ngIf","composite"==e.type),R(2),U("ngIf","exec"==e.type),R(1),U("ngIf","apply"==e.type),R(1),U("ngIf","image"==e.type),R(1),U("ngIf","composite"==e.type)}}function c7(n,t){if(1&n&&(bo(0),pe(1,a7,19,11,"mat-card",3),yo()),2&n){const e=t.$implicit,i=_e();R(1),U("ngIf",e.group==i.kind)}}let l7=(()=>{class n{constructor(e,i){this.devstate=e,this.state=i,this.kind="",this.dragDisabled=!0}toggleDefault(e,i,r){e.checked?this.setDefault(i,r):this.unsetDefault(i)}setDefault(e,i){this.devstate.setDefaultCommand(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}unsetDefault(e){this.devstate.unsetDefaultCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}getCommandsByKind(e,i){return e?.filter(r=>r.group==i)}delete(e){confirm('You will delete the command "'+e+'". Continue?')&&this.devstate.deleteCommand(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(x(ns),x(js))},n.\u0275cmp=k({type:n,selectors:[["app-commands-list"]],inputs:{commands:"commands",kind:"kind",dragDisabled:"dragDisabled"},decls:3,vars:3,consts:[["class","nothing-here",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"nothing-here"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled",4,"ngIf"],["data-cy","command-info","cdkDrag","",3,"cdkDragDisabled"],[1,"with-right-content","colored-title"],[1,"space-between"],[3,"checked","change",4,"ngIf"],[4,"ngIf"],["mat-button","","color","warn",3,"click"],[3,"checked","change"],[1,"aligned"],["disableRipple",""],["matChipAvatar","",1,"material-icons-outlined"],["disableRipple","",4,"ngFor","ngForOf"]],template:function(e,i){if(1&e&&(pe(0,WU,2,1,"div",0),pe(1,GU,2,0,"div",0),pe(2,c7,2,1,"ng-container",1)),2&e){let r,o;U("ngIf",!(null!=(r=i.getCommandsByKind(i.commands,i.kind))&&r.length)&&""!=i.kind),R(1),U("ngIf",!(null!=(o=i.getCommandsByKind(i.commands,i.kind))&&o.length)&&""==i.kind),R(1),U("ngForOf",i.commands)}},dependencies:[ma,Fi,LS,br,Mh,Sh,Eh,Ih,kh,Th,Vd,nd,vx,db,Ja],styles:["mat-card-header.with-right-content[_ngcontent-%COMP%]{display:block}.space-between[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}div.nothing-here[_ngcontent-%COMP%]{margin:0 4px 16px;color:#00000054}"]}),n})();function d7(n,t){if(1&n){const e=Dn();D(0,"app-command-exec",26),ge("canceled",function(){return Ot(e),Ht(_e().undisplayExecForm())}),w()}}function u7(n,t){if(1&n){const e=Dn();D(0,"app-command-apply",26),ge("canceled",function(){return Ot(e),Ht(_e().undisplayApplyForm())}),w()}}function h7(n,t){if(1&n){const e=Dn();D(0,"app-command-image",26),ge("canceled",function(){return Ot(e),Ht(_e().undisplayImageForm())}),w()}}function f7(n,t){if(1&n){const e=Dn();D(0,"app-command-composite",26),ge("canceled",function(){return Ot(e),Ht(_e().undisplayCompositeForm())}),w()}}function m7(n,t){if(1&n&&(bo(0),D(1,"button",27)(2,"mat-icon",28),N(3,"add"),w()(),yo()),2&n){_e();const e=qo(48);R(1),U("matMenuTriggerFor",e)}}let p7=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r,this.forceDisplayExecForm=!1,this.forceDisplayApplyForm=!1,this.forceDisplayImageForm=!1,this.forceDisplayCompositeForm=!1,this.commands=[],this.enableDragAndDrop=this.state.getDragAndDropEnabled()}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,yr.Z)(function*(r){e.commands=r?.commands,null!=e.commands&&(e.forceDisplayExecForm=!1,e.forceDisplayApplyForm=!1,e.forceDisplayImageForm=!1,e.forceDisplayCompositeForm=!1)});return function(r){return i.apply(this,arguments)}}())}displayExecForm(){this.telemetry.track("[ui] start create exec command"),this.forceDisplayExecForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayApplyForm(){this.telemetry.track("[ui] start create apply command"),this.forceDisplayApplyForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayImageForm(){this.telemetry.track("[ui] start create image command"),this.forceDisplayImageForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}displayCompositeForm(){this.telemetry.track("[ui] start create composite command"),this.forceDisplayCompositeForm=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayExecForm(){this.forceDisplayExecForm=!1}undisplayApplyForm(){this.forceDisplayApplyForm=!1}undisplayImageForm(){this.forceDisplayImageForm=!1}undisplayCompositeForm(){this.forceDisplayCompositeForm=!1}drop(e){this.moveCommand(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex)}moveCommand(e,i,r,o){this.devstate.moveCommand(e,i,r,o).subscribe({next:c=>{this.state.changeDevfileYaml(c)},error:c=>{alert(c.error.message)}})}enableDragAndDropChange(){this.state.saveDragAndDropEnabled(this.enableDragAndDrop)}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(x(js),x(ns),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-commands"]],decls:67,vars:18,consts:[[1,"main"],[1,"align-right"],[3,"ngModel","ngModelChange"],["cdkDropListGroup",""],["cdkDropList","","cdkDropListData","build",3,"cdkDropListDropped"],[1,"description"],["kind","build",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","run",3,"cdkDropListDropped"],["kind","run",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","test",3,"cdkDropListDropped"],["kind","test",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","debug",3,"cdkDropListDropped"],["kind","debug",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","deploy",3,"cdkDropListDropped"],["kind","deploy",3,"dragDisabled","commands"],["cdkDropList","","cdkDropListData","",3,"cdkDropListDropped"],["kind","",3,"dragDisabled","commands"],[3,"canceled",4,"ngIf"],[4,"ngIf"],["yPosition","above","xPosition","before"],["menu","matMenu"],["data-cy","new-command-exec","mat-menu-item","",3,"click"],[1,"tab-icon","material-icons-outlined"],["data-cy","new-command-image","mat-menu-item","",3,"click"],["data-cy","new-command-apply","mat-menu-item","",3,"click"],["data-cy","new-command-composite","mat-menu-item","",3,"click"],[3,"canceled"],["data-cy","add","mat-fab","","color","primary",1,"fab",3,"matMenuTriggerFor"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),ge("ngModelChange",function(o){return i.enableDragAndDrop=o})("ngModelChange",function(){return i.enableDragAndDropChange()}),N(3,"Enable Drag and Drop"),w()(),D(4,"div",3)(5,"div",4),ge("cdkDropListDropped",function(o){return i.drop(o)}),D(6,"h2"),N(7,"Build Commands"),w(),D(8,"div",5),N(9,"When using odo, a Build command is the first command executed during the inner loop. The command is expected to terminate after the build is completed."),w(),Ge(10,"app-commands-list",6),w(),D(11,"div",7),ge("cdkDropListDropped",function(o){return i.drop(o)}),D(12,"h2"),N(13,"Run Commands"),w(),D(14,"div",5),N(15,"When using odo, a Run command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),w(),Ge(16,"app-commands-list",8),w(),D(17,"div",9),ge("cdkDropListDropped",function(o){return i.drop(o)}),D(18,"h2"),N(19,"Test Commands"),w(),Ge(20,"app-commands-list",10),w(),D(21,"div",11),ge("cdkDropListDropped",function(o){return i.drop(o)}),D(22,"h2"),N(23,"Debug Commands"),w(),D(24,"div",5),N(25,"When using odo, a Debug command is executed during the inner loop after the Build command terminates. The command is expected to not terminate."),w(),Ge(26,"app-commands-list",12),w(),D(27,"div",13),ge("cdkDropListDropped",function(o){return i.drop(o)}),D(28,"h2"),N(29,"Deploy Commands"),w(),D(30,"div",5),N(31,"When using odo, a Deploy command is executed with "),D(32,"code"),N(33,"odo deploy"),w(),N(34,"."),w(),Ge(35,"app-commands-list",14),w(),D(36,"div",15),ge("cdkDropListDropped",function(o){return i.drop(o)}),D(37,"h2"),N(38,"Generic Commands"),w(),D(39,"div",5),N(40,"Generic can be executed manually, or be part of composite commands and events."),w(),Ge(41,"app-commands-list",16),w()(),pe(42,d7,1,0,"app-command-exec",17),pe(43,u7,1,0,"app-command-apply",17),pe(44,h7,1,0,"app-command-image",17),pe(45,f7,1,0,"app-command-composite",17),w(),pe(46,m7,4,1,"ng-container",18),D(47,"mat-menu",19,20)(49,"button",21),ge("click",function(){return i.displayExecForm()}),D(50,"mat-icon",22),N(51,"width_normal"),w(),D(52,"span"),N(53,"Exec command"),w()(),D(54,"button",23),ge("click",function(){return i.displayImageForm()}),D(55,"mat-icon",22),N(56,"image"),w(),D(57,"span"),N(58,"Image command"),w()(),D(59,"button",24),ge("click",function(){return i.displayApplyForm()}),D(60,"mat-icon",22),N(61,"description"),w(),D(62,"span"),N(63,"Apply command"),w()(),D(64,"button",25),ge("click",function(){return i.displayCompositeForm()}),D(65,"span"),N(66,"Composite command"),w()()()),2&e&&(R(2),U("ngModel",i.enableDragAndDrop),R(8),U("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),R(6),U("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),R(4),U("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),R(6),U("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),R(9),U("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),R(6),U("dragDisabled",!i.enableDragAndDrop)("commands",i.commands),R(1),U("ngIf",i.forceDisplayExecForm),R(1),U("ngIf",i.forceDisplayApplyForm),R(1),U("ngIf",i.forceDisplayImageForm),R(1),U("ngIf",i.forceDisplayCompositeForm),R(1),U("ngIf",!(i.forceDisplayExecForm||i.forceDisplayApplyForm||i.forceDisplayImageForm||i.forceDisplayCompositeForm)))},dependencies:[Fi,ya,mC,OS,IS,Nm,Vd,Ja,Gz,fb,Kz,IU,PU,zU,UU,l7],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}.command[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:4px;background-color:#eee;padding:4px;margin:4px}.parallel-command[_ngcontent-%COMP%]{margin:8px}.serial-commands[_ngcontent-%COMP%]{margin:4px}h2[_ngcontent-%COMP%]{color:#3f51b5}div.align-right[_ngcontent-%COMP%]{text-align:right}"]}),n})();function g7(n,t){if(1&n&&(D(0,"div"),N(1,"URI: "),D(2,"code"),N(3),w()()),2&n){const e=_e().$implicit;R(3),bn(e.uri)}}function _7(n,t){if(1&n&&(D(0,"div")(1,"pre"),N(2),w()()),2&n){const e=_e().$implicit;R(2),bn(e.inlined)}}function b7(n,t){if(1&n){const e=Dn();D(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),N(3),w(),D(4,"mat-card-subtitle"),N(5,"Cluster Resource"),w()(),D(6,"mat-card-content"),pe(7,g7,4,1,"div",3),pe(8,_7,3,1,"div",3),w(),D(9,"mat-card-actions")(10,"button",6),ge("click",function(){const o=Ot(e).$implicit;return Ht(_e().delete(o.name))}),N(11,"Delete"),w()()()}if(2&n){const e=t.$implicit;R(3),bn(e.name),R(4),U("ngIf",e.uri),R(1),U("ngIf",e.inlined)}}function y7(n,t){if(1&n){const e=Dn();D(0,"app-resource",7),ge("canceled",function(){return Ot(e),Ht(_e().undisplayAddForm())})("created",function(r){return Ot(e),Ht(_e().onCreated(r))}),w()}2&n&&U("cancelable",_e().forceDisplayAdd)}function v7(n,t){if(1&n){const e=Dn();bo(0),D(1,"button",8),ge("click",function(){return Ot(e),Ht(_e().displayAddForm())}),D(2,"mat-icon",9),N(3,"add"),w()(),yo()}}let C7=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayAdd=!1,this.resources=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,yr.Z)(function*(o){i.resources=o?.resources,null!=e.resources&&(i.forceDisplayAdd=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.forceDisplayAdd=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayAdd=!1}delete(e){confirm('You will delete the resource "'+e+'". Continue?')&&this.devstate.deleteResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onCreated(e){this.devstate.addResource(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(x(js),x(ns))},n.\u0275cmp=k({type:n,selectors:[["app-resources"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","resource-info",4,"ngFor","ngForOf"],[3,"cancelable","canceled","created",4,"ngIf"],[4,"ngIf"],["data-cy","resource-info"],[1,"colored-title"],["mat-button","","color","warn",3,"click"],[3,"cancelable","canceled","created"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(D(0,"div",0),pe(1,b7,12,3,"mat-card",1),pe(2,y7,1,1,"app-resource",2),w(),pe(3,v7,4,0,"ng-container",3)),2&e&&(R(1),U("ngForOf",i.resources),R(1),U("ngIf",i.forceDisplayAdd||null==i.resources||0==i.resources.length),R(1),U("ngIf",!i.forceDisplayAdd&&null!=i.resources&&i.resources.length>0))},dependencies:[ma,Fi,br,Nm,Mh,Sh,Eh,Ih,kh,Th,Ja,DA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function x7(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"Build Args:"),w(),D(3,"td")(4,"code"),N(5),w()()()),2&n){const e=_e().$implicit;R(5),bn(e.args)}}function w7(n,t){if(1&n){const e=Dn();D(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),N(3),w(),D(4,"mat-card-subtitle"),N(5,"Image"),w()(),D(6,"mat-card-content")(7,"table",6)(8,"tr")(9,"td"),N(10,"Image Name:"),w(),D(11,"td")(12,"code"),N(13),w()()(),D(14,"tr")(15,"td"),N(16,"Dockerfile URI:"),w(),D(17,"td")(18,"code"),N(19),w()()(),pe(20,x7,6,1,"tr",3),D(21,"tr")(22,"td"),N(23,"Build Context:"),w(),D(24,"td")(25,"code"),N(26),w()()(),D(27,"tr")(28,"td"),N(29,"Root Required:"),w(),D(30,"td")(31,"code"),N(32),w()()()()(),D(33,"mat-card-actions")(34,"button",7),ge("click",function(){const o=Ot(e).$implicit;return Ht(_e().delete(o.name))}),N(35,"Delete"),w()()()}if(2&n){const e=t.$implicit;R(3),bn(e.name),R(10),bn(e.imageName),R(6),bn(e.uri),R(1),U("ngIf",null!=e.args&&e.args.length>0),R(6),bn(e.buildContext),R(6),bn(e.rootRequired?"Yes":"No")}}function D7(n,t){if(1&n){const e=Dn();D(0,"app-image",8),ge("canceled",function(){return Ot(e),Ht(_e().undisplayAddForm())})("created",function(r){return Ot(e),Ht(_e().onCreated(r))}),w()}2&n&&U("cancelable",_e().forceDisplayAdd)}function M7(n,t){if(1&n){const e=Dn();bo(0),D(1,"button",9),ge("click",function(){return Ot(e),Ht(_e().displayAddForm())}),D(2,"mat-icon",10),N(3,"add"),w()(),yo()}}let T7=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayAdd=!1,this.images=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,yr.Z)(function*(o){i.images=o?.images,null!=e.images&&(i.forceDisplayAdd=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.forceDisplayAdd=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayAdd=!1}delete(e){confirm('You will delete the image "'+e+'". Continue?')&&this.devstate.deleteImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onCreated(e){this.devstate.addImage(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(x(js),x(ns))},n.\u0275cmp=k({type:n,selectors:[["app-images"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","image-info",4,"ngFor","ngForOf"],[3,"cancelable","canceled","created",4,"ngIf"],[4,"ngIf"],["data-cy","image-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],[3,"cancelable","canceled","created"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(D(0,"div",0),pe(1,w7,36,6,"mat-card",1),pe(2,D7,1,1,"app-image",2),w(),pe(3,M7,4,0,"ng-container",3)),2&e&&(R(1),U("ngForOf",i.images),R(1),U("ngIf",i.forceDisplayAdd||null==i.images||0==i.images.length),R(1),U("ngIf",!i.forceDisplayAdd&&null!=i.images&&i.images.length>0))},dependencies:[ma,Fi,br,Nm,Mh,Sh,Eh,Ih,kh,Th,Ja,MA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function E7(n,t){if(1&n){const e=Dn();D(0,"mat-chip-row",8),ge("removed",function(){const o=Ot(e).$implicit;return Ht(_e().remove(o))}),N(1),D(2,"button",9)(3,"mat-icon",10),N(4,"cancel"),w()()()}if(2&n){const e=t.$implicit;R(1),Ai(" ",e," ")}}function k7(n,t){if(1&n&&(D(0,"mat-option",11),N(1),w()),2&n){const e=t.$implicit;U("value",e),R(1),Ai(" ",e," ")}}let S7=(()=>{class n{constructor(e){this.commandInput=e,this.commands=[],this.allCommands=[],this.updated=new Je,this.separatorKeysCodes=[13,188],this.commandCtrl=new fn(""),this.filteredCommands=new ye}ngOnChanges(e){this.filteredCommands=this.commandCtrl.valueChanges.pipe(Lr(null),Ln(i=>i?this._filter(i):this.allCommands.slice()))}add(e){const i=(e.value||"").trim();i&&(this.commands.push(i),this.updated.emit(this.commands)),e.chipInput.clear(),this.commandCtrl.setValue(null)}remove(e){const i=this.commands.indexOf(e);i>=0&&(this.commands.splice(i,1),this.updated.emit(this.commands))}selected(e){this.commands.push(e.option.viewValue),this.updated.emit(this.commands),this.commandInput.nativeElement.value="",this.commandCtrl.setValue(null)}_filter(e){const i=e.toLowerCase();return this.allCommands.filter(r=>r.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(x(E))},n.\u0275cmp=k({type:n,selectors:[["app-chips-events"]],inputs:{commands:"commands",allCommands:"allCommands"},outputs:{updated:"updated"},features:[kr],decls:12,vars:8,consts:[["appearance","fill",1,"chip-list"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["data-cy","input","placeholder","New command...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd"],["commandInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"removed"],["matChipRemove",""],[1,"material-icons-outlined"],[3,"value"]],template:function(e,i){if(1&e&&(D(0,"mat-form-field",0)(1,"mat-label"),N(2,"Commands"),w(),D(3,"mat-chip-grid",null,1),pe(5,E7,5,1,"mat-chip-row",2),w(),D(6,"input",3,4),ge("matChipInputTokenEnd",function(o){return i.add(o)}),w(),D(8,"mat-autocomplete",5,6),ge("optionSelected",function(o){return i.selected(o)}),pe(10,k7,2,2,"mat-option",7),Iv(11,"async"),w()()),2&e){const r=qo(4),o=qo(9);R(5),U("ngForOf",i.commands),R(1),U("formControl",i.commandCtrl)("matChipInputFor",r)("matAutocomplete",o)("matChipInputSeparatorKeyCodes",i.separatorKeysCodes),R(4),U("ngForOf",Av(11,6,i.filteredCommands))}},dependencies:[ma,Vs,ya,gC,qH,Dh,_I,HI,zI,NI,Cx,ts,xo,Ja,_0],styles:[".chip-list[_ngcontent-%COMP%]{width:100%}"]}),n})();const id=function(){return[]};let I7=(()=>{class n{constructor(e,i,r){this.state=e,this.devstate=i,this.telemetry=r}ngOnInit(){var e=this;this.state.state.subscribe(function(){var i=(0,yr.Z)(function*(r){e.events=r?.events,null==e.events&&(e.events={}),null==e.events.preStart&&(e.events.preStart=[]),null==e.events.preStop&&(e.events.preStop=[]),null==e.events.postStart&&(e.events.postStart=[]),null==e.events.postStop&&(e.events.postStop=[]),e.allCommands=r?.commands?.map(o=>o.name)});return function(r){return i.apply(this,arguments)}}())}onUpdate(e,i){this.telemetry.track("[ui] add "+e+" event"),this.devstate.updateEvents(e,i).subscribe({next:o=>{this.state.changeDevfileYaml(o)},error:o=>{alert(o.error.message)}})}}return n.\u0275fac=function(e){return new(e||n)(x(js),x(ns),x(wa))},n.\u0275cmp=k({type:n,selectors:[["app-events"]],decls:21,vars:16,consts:[[1,"main"],[1,"description"],["data-cy","prestart",3,"commands","allCommands","updated"],["data-cy","poststart",3,"commands","allCommands","updated"],["data-cy","prestop",3,"commands","allCommands","updated"],["data-cy","poststop",3,"commands","allCommands","updated"]],template:function(e,i){if(1&e&&(D(0,"div",0)(1,"h2"),N(2,"Pre-Start event"),w(),D(3,"div",1),N(4,"Pre-Start commands are executed before the inner loop is started, inside init-containers (not implemented by odo)."),w(),D(5,"app-chips-events",2),ge("updated",function(o){return i.onUpdate("preStart",o)}),w(),D(6,"h2"),N(7,"Post-Start event"),w(),D(8,"div",1),N(9,"Post-Start commands are executed at the beginning of the inner loop, inside pre-fetched containers."),w(),D(10,"app-chips-events",3),ge("updated",function(o){return i.onUpdate("postStart",o)}),w(),D(11,"h2"),N(12,"Pre-Stop event"),w(),D(13,"div",1),N(14,"Pre-Stop commands are executed at the end of the inner loop, inside pre-fetched containers."),w(),D(15,"app-chips-events",4),ge("updated",function(o){return i.onUpdate("preStop",o)}),w(),D(16,"h2"),N(17,"Post-Stop event"),w(),D(18,"div",1),N(19,"Post-Stop commands are executed after the inner loop is finished (not implemented by odo)."),w(),D(20,"app-chips-events",5),ge("updated",function(o){return i.onUpdate("postStop",o)}),w()()),2&e){let r,o,a,c,d,h,p,_;R(5),U("commands",null!==(r=null==i.events?null:i.events.preStart)&&void 0!==r?r:Wa(8,id))("allCommands",null!==(o=i.allCommands)&&void 0!==o?o:Wa(9,id)),R(5),U("commands",null!==(a=null==i.events?null:i.events.postStart)&&void 0!==a?a:Wa(10,id))("allCommands",null!==(c=i.allCommands)&&void 0!==c?c:Wa(11,id)),R(5),U("commands",null!==(d=null==i.events?null:i.events.preStop)&&void 0!==d?d:Wa(12,id))("allCommands",null!==(h=i.allCommands)&&void 0!==h?h:Wa(13,id)),R(5),U("commands",null!==(p=null==i.events?null:i.events.postStop)&&void 0!==p?p:Wa(14,id))("allCommands",null!==(_=i.allCommands)&&void 0!==_?_:Wa(15,id))}},dependencies:[S7],styles:[".main[_ngcontent-%COMP%]{padding:16px}h2[_ngcontent-%COMP%]{color:#3f51b5}"]}),n})();function A7(n,t){if(1&n&&(D(0,"tr")(1,"td"),N(2,"Size:"),w(),D(3,"td")(4,"code"),N(5),w()()()),2&n){const e=_e().$implicit;R(5),bn(e.size)}}function F7(n,t){if(1&n){const e=Dn();D(0,"mat-card",4)(1,"mat-card-header",5)(2,"mat-card-title"),N(3),w(),D(4,"mat-card-subtitle"),N(5,"Volume"),w()(),D(6,"mat-card-content")(7,"table",6),pe(8,A7,6,1,"tr",3),D(9,"tr")(10,"td"),N(11,"Volume is Ephemeral:"),w(),D(12,"td")(13,"code"),N(14),w()()()()(),D(15,"mat-card-actions")(16,"button",7),ge("click",function(){const o=Ot(e).$implicit;return Ht(_e().delete(o.name))}),N(17,"Delete"),w()()()}if(2&n){const e=t.$implicit;R(3),bn(e.name),R(5),U("ngIf",e.size),R(6),bn(e.ephemeral?"Yes":"No")}}function O7(n,t){if(1&n){const e=Dn();D(0,"app-volume",8),ge("canceled",function(){return Ot(e),Ht(_e().undisplayAddForm())})("created",function(r){return Ot(e),Ht(_e().onCreated(r))}),w()}2&n&&U("cancelable",_e().forceDisplayAdd)}function R7(n,t){if(1&n){const e=Dn();bo(0),D(1,"button",9),ge("click",function(){return Ot(e),Ht(_e().displayAddForm())}),D(2,"mat-icon",10),N(3,"add"),w()(),yo()}}let P7=(()=>{class n{constructor(e,i){this.state=e,this.devstate=i,this.forceDisplayAdd=!1,this.volumes=[]}ngOnInit(){var e=this;const i=this;this.state.state.subscribe(function(){var r=(0,yr.Z)(function*(o){i.volumes=o?.volumes,null!=e.volumes&&(i.forceDisplayAdd=!1)});return function(o){return r.apply(this,arguments)}}())}displayAddForm(){this.forceDisplayAdd=!0,setTimeout(()=>{this.scrollToBottom()},0)}undisplayAddForm(){this.forceDisplayAdd=!1}delete(e){confirm('You will delete the volume "'+e+'". Continue?')&&this.devstate.deleteVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}onCreated(e){this.devstate.addVolume(e).subscribe({next:r=>{this.state.changeDevfileYaml(r)},error:r=>{alert(r.error.message)}})}scrollToBottom(){window.scrollTo(0,document.body.scrollHeight)}}return n.\u0275fac=function(e){return new(e||n)(x(js),x(ns))},n.\u0275cmp=k({type:n,selectors:[["app-volumes"]],decls:4,vars:3,consts:[[1,"main"],["data-cy","volume-info",4,"ngFor","ngForOf"],[3,"cancelable","canceled","created",4,"ngIf"],[4,"ngIf"],["data-cy","volume-info"],[1,"colored-title"],[1,"aligned"],["mat-button","","color","warn",3,"click"],[3,"cancelable","canceled","created"],["mat-fab","","color","primary",1,"fab",3,"click"],[1,"material-icons-outlined"]],template:function(e,i){1&e&&(D(0,"div",0),pe(1,F7,18,3,"mat-card",1),pe(2,O7,1,1,"app-volume",2),w(),pe(3,R7,4,0,"ng-container",3)),2&e&&(R(1),U("ngForOf",i.volumes),R(1),U("ngIf",i.forceDisplayAdd||null==i.volumes||0==i.volumes.length),R(1),U("ngIf",!i.forceDisplayAdd&&null!=i.volumes&&i.volumes.length>0))},dependencies:[ma,Fi,br,Nm,Mh,Sh,Eh,Ih,kh,Th,Ja,xA],styles:[".main[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-bottom:16px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]}),n})();function L7(n,t){1&n&&N(0),2&n&&Ai(" ",_e().tabNames[2]," ")}function N7(n,t){if(1&n&&(D(0,"mat-icon",20),N(1,"code"),w(),N(2)),2&n){const e=_e();R(2),Ai(" ",e.tabNames[3]," ")}}function B7(n,t){if(1&n&&(D(0,"mat-icon",20),N(1,"alarm"),w(),N(2)),2&n){const e=_e();R(2),Ai(" ",e.tabNames[4]," ")}}function V7(n,t){if(1&n&&(D(0,"mat-icon",20),N(1,"width_normal"),w(),N(2)),2&n){const e=_e();R(2),Ai(" ",e.tabNames[5]," ")}}function H7(n,t){if(1&n&&(D(0,"mat-icon",20),N(1,"image"),w(),N(2)),2&n){const e=_e();R(2),Ai(" ",e.tabNames[6]," ")}}function z7(n,t){if(1&n&&(D(0,"mat-icon",20),N(1,"description"),w(),N(2)),2&n){const e=_e();R(2),Ai(" ",e.tabNames[7]," ")}}function $7(n,t){if(1&n&&(D(0,"mat-icon",20),N(1,"storage"),w(),N(2)),2&n){const e=_e();R(2),Ai(" ",e.tabNames[8]," ")}}let j7=(()=>{class n{constructor(e,i,r,o,a,c,d,h,p){this.sanitizer=e,this.matIconRegistry=i,this.wasmGo=r,this.odoApi=o,this.mermaid=a,this.state=c,this.sse=d,this.telemetry=h,this.snackbar=p,this.tabNames=["YAML","Chart","Metadata","Commands","Events","Containers","Images","Resources","Volumes"],this.mermaidContent="",this.devfileYaml="",this.snackBarRef=null,this.matIconRegistry.addSvgIcon("github",this.sanitizer.bypassSecurityTrustResourceUrl("../assets/github-24.svg"))}ngOnInit(){var e=this;const i=document.getElementById("loading");null!=i&&(i.style.visibility="hidden"),this.odoApi.getDevfile().subscribe({next:o=>{null!=o.content&&this.propagateChange(o.content,!1,!0)}}),this.state.state.subscribe(function(){var o=(0,yr.Z)(function*(a){var d;null!=a&&(e.devfileYaml=a.content,e.wasmGo.getFlowChart().subscribe({next:(d=(0,yr.Z)(function*(h){const p=yield e.mermaid.getMermaidAsSVG(h.chart);e.mermaidContent=p}),function(p){return d.apply(this,arguments)}),error:d=>{console.log(d)}}))});return function(a){return o.apply(this,arguments)}}()),this.sse.subscribeTo(["DevfileUpdated"]).subscribe(o=>{const a=JSON.parse(o.data);this.state.isUpdated(a.content)&&(null!=this.snackBarRef&&(this.snackBarRef.afterDismissed().subscribe(()=>{}),this.snackBarRef.dismiss()),this.snackBarRef=this.snackbar.openFromComponent($j,{data:{message:"The Devfile has changed on disk. Do you want to update it here?",noLabel:"Cancel",yesLabel:"Update"}}),this.snackBarRef.onAction().subscribe(()=>{null!=a.content&&this.propagateChange(a.content,!1,!0),this.snackBarRef=null}),this.snackBarRef.afterDismissed().subscribe(()=>{this.snackBarRef=null}))}),this.odoApi.telemetry().subscribe({next:o=>{if(o.enabled){if(null==o.apikey||null==o.userid)return;this.telemetry.init(o.apikey,o.userid),this.telemetry.track("[ui] start")}},error:()=>{}})}propagateChange(e,i,r){this.wasmGo.setDevfileContent(e).subscribe({next:a=>{this.state.changeDevfileYaml(a,r),i&&this.odoApi.saveDevfile(a.content).subscribe({next:()=>{},error:c=>{this.snackbar.open(c.error.message,"ok")}})},error:a=>{this.snackbar.open(a.error.message,"ok")}})}onSave(e){this.telemetry.track("[ui] save devfile to disk"),this.propagateChange(e,!0,!0)}onApply(e){this.telemetry.track("[ui] change devfile from textarea"),this.propagateChange(e,!1,!1)}clear(){confirm("You will delete the content of the Devfile. Continue?")&&(this.telemetry.track("[ui] clear devfile"),this.wasmGo.clearDevfileContent().subscribe({next:e=>{this.propagateChange(e.content,!1,!1)}}))}onSelectedTabChange(e){this.telemetry.track("[ui] change to tab "+this.tabNames[e.index])}}return n.\u0275fac=function(e){return new(e||n)(x(c_),x(Vm),x(ns),x(jj),x(Qj),x(js),x(Jj),x(wa),x(I$))},n.\u0275cmp=k({type:n,selectors:[["app-root"]],decls:50,vars:7,consts:[["color","primary"],[1,"spacer"],[1,"topright"],["href","https://odo.dev/docs/user-guides/advanced/using-gui/","target","_blank",1,"toplink"],["data-cy","yaml-send","matTooltip","Save Devfile to disk","mat-flat-button","","color","warn",2,"top","-8px",3,"disabled","click"],[1,"flex-container"],[1,"flex-child"],["animationDuration","0",3,"selectedTabChange"],["data-cy","tab-yaml",3,"label"],[1,"tab-content"],["appearance","outline",1,"full-width"],["data-cy","yaml-input","matInput","","id","input","rows","20",3,"value"],["input",""],["data-cy","yaml-save","matTooltip","Apply changes to other tabs","mat-flat-button","","color","primary",3,"click"],["data-cy","yaml-clear","matTooltip","Clear Devfile content","mat-flat-button","","color","normal",3,"click"],["data-cy","tab-chart",3,"label"],["id","mermaid",1,"mermaid",3,"innerHTML"],["mermaid",""],["data-cy","tab-metadata"],["mat-tab-label",""],[1,"tab-icon","material-icons-outlined"]],template:function(e,i){if(1&e){const r=Dn();D(0,"mat-toolbar",0)(1,"span"),N(2,"Devfile Builder"),w(),Ge(3,"span",1),D(4,"span",2)(5,"a",3),N(6,"Work in progress"),w()(),D(7,"button",4),ge("click",function(){Ot(r);const a=qo(20);return Ht(i.onSave(a.value))}),Iv(8,"async"),N(9,"Save"),w()(),D(10,"main")(11,"div",5)(12,"div",6)(13,"mat-tab-group",7),ge("selectedTabChange",function(a){return i.onSelectedTabChange(a)}),D(14,"mat-tab",8)(15,"div",9)(16,"mat-form-field",10)(17,"mat-label"),N(18,"Devfile YAML"),w(),Ge(19,"textarea",11,12),w(),D(21,"button",13),ge("click",function(){Ot(r);const a=qo(20);return Ht(i.onApply(a.value))}),N(22,"Apply"),w(),D(23,"button",14),ge("click",function(){return i.clear()}),N(24,"Clear"),w()()(),D(25,"mat-tab",15)(26,"div",6),Ge(27,"div",16,17),w()(),D(29,"mat-tab",18),pe(30,L7,1,1,"ng-template",19),Ge(31,"app-metadata"),w(),D(32,"mat-tab"),pe(33,N7,3,1,"ng-template",19),Ge(34,"app-commands"),w(),D(35,"mat-tab"),pe(36,B7,3,1,"ng-template",19),Ge(37,"app-events"),w(),D(38,"mat-tab"),pe(39,V7,3,1,"ng-template",19),Ge(40,"app-containers"),w(),D(41,"mat-tab"),pe(42,H7,3,1,"ng-template",19),Ge(43,"app-images"),w(),D(44,"mat-tab"),pe(45,z7,3,1,"ng-template",19),Ge(46,"app-resources"),w(),D(47,"mat-tab"),pe(48,$7,3,1,"ng-template",19),Ge(49,"app-volumes"),w()()()()()}2&e&&(R(7),Hf("disabled",!Av(8,5,i.state.modified)),R(7),Hf("label",i.tabNames[0]),R(5),U("value",i.devfileYaml),R(6),Hf("label",i.tabNames[1]),R(2),U("innerHTML",i.sanitizer.bypassSecurityTrustHtml(i.mermaidContent),dg))},dependencies:[br,ts,xo,Ja,xa,rA,cA,mj,Cj,al,tU,TU,p7,C7,T7,I7,P7,_0],styles:["main[_ngcontent-%COMP%]{min-height:calc(100vh - 100px)}div.mermaid[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace!important}.flex-container[_ngcontent-%COMP%]{display:flex}.flex-child[_ngcontent-%COMP%]{flex:1}.flex-child[_ngcontent-%COMP%]:first-child{margin-right:20px}#input[_ngcontent-%COMP%]{width:99%}button[_ngcontent-%COMP%]{margin-top:20px}mat-form-field.full-width[_ngcontent-%COMP%]{width:100%}div.tab-content[_ngcontent-%COMP%]{padding:16px}div.error-message[_ngcontent-%COMP%]{font-size:large;margin:16px}.toplink[_ngcontent-%COMP%]{color:#fff}"]}),n})(),U7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Re({type:n,bootstrap:[j7]}),n.\u0275inj=qt({imports:[PT,o5,hV,uV,LV,C8,e6,xI,m6,S6,z6,mz,sb,kz,Pz,Xz,p$,JI,gj,xj,Nj,cl.forRoot({loadOnInitialization:!1})]}),n})();YN().bootstrapModule(U7).catch(n=>console.error(n))},1764:function(Jt){Jt.exports=function(){"use strict";var O=6e4,q=36e5,de="millisecond",re="second",J="minute",ne="hour",je="day",Ye="week",V="month",le="quarter",K="year",ce="date",kt="Invalid Date",Xt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(wt){var Ue=["th","st","nd","rd"],we=wt%100;return"["+wt+(Ue[(we-20)%10]||Ue[we]||Ue[0])+"]"}},Te=function(wt,Ue,we){var Ze=String(wt);return!Ze||Ze.length>=Ue?wt:""+Array(Ue+1-Ze.length).join(we)+wt},be={s:Te,z:function(wt){var Ue=-wt.utcOffset(),we=Math.abs(Ue),Ze=Math.floor(we/60),Ve=we%60;return(Ue<=0?"+":"-")+Te(Ze,2,"0")+":"+Te(Ve,2,"0")},m:function wt(Ue,we){if(Ue.date()<we.date())return-wt(we,Ue);var Ze=12*(we.year()-Ue.year())+(we.month()-Ue.month()),Ve=Ue.clone().add(Ze,V),gt=we-Ve<0,ut=Ue.clone().add(Ze+(gt?-1:1),V);return+(-(Ze+(we-Ve)/(gt?Ve-ut:ut-Ve))||0)},a:function(wt){return wt<0?Math.ceil(wt)||0:Math.floor(wt)},p:function(wt){return{M:V,y:K,w:Ye,d:je,D:ce,h:ne,m:J,s:re,ms:de,Q:le}[wt]||String(wt||"").toLowerCase().replace(/s$/,"")},u:function(wt){return void 0===wt}},yt="en",Et={};Et[yt]=X;var pt=function(wt){return wt instanceof nn},zt=function wt(Ue,we,Ze){var Ve;if(!Ue)return yt;if("string"==typeof Ue){var gt=Ue.toLowerCase();Et[gt]&&(Ve=gt),we&&(Et[gt]=we,Ve=gt);var ut=Ue.split("-");if(!Ve&&ut.length>1)return wt(ut[0])}else{var ye=Ue.name;Et[ye]=Ue,Ve=ye}return!Ze&&Ve&&(yt=Ve),Ve||!Ze&&yt},$t=function(wt,Ue){if(pt(wt))return wt.clone();var we="object"==typeof Ue?Ue:{};return we.date=wt,we.args=arguments,new nn(we)},at=be;at.l=zt,at.i=pt,at.w=function(wt,Ue){return $t(wt,{locale:Ue.$L,utc:Ue.$u,x:Ue.$x,$offset:Ue.$offset})};var nn=function(){function wt(we){this.$L=zt(we.locale,null,!0),this.parse(we)}var Ue=wt.prototype;return Ue.parse=function(we){this.$d=function(Ze){var Ve=Ze.date,gt=Ze.utc;if(null===Ve)return new Date(NaN);if(at.u(Ve))return new Date;if(Ve instanceof Date)return new Date(Ve);if("string"==typeof Ve&&!/Z$/i.test(Ve)){var ut=Ve.match(Xt);if(ut){var ye=ut[2]-1||0,Mn=(ut[7]||"0").substring(0,3);return gt?new Date(Date.UTC(ut[1],ye,ut[3]||1,ut[4]||0,ut[5]||0,ut[6]||0,Mn)):new Date(ut[1],ye,ut[3]||1,ut[4]||0,ut[5]||0,ut[6]||0,Mn)}}return new Date(Ve)}(we),this.$x=we.x||{},this.init()},Ue.init=function(){var we=this.$d;this.$y=we.getFullYear(),this.$M=we.getMonth(),this.$D=we.getDate(),this.$W=we.getDay(),this.$H=we.getHours(),this.$m=we.getMinutes(),this.$s=we.getSeconds(),this.$ms=we.getMilliseconds()},Ue.$utils=function(){return at},Ue.isValid=function(){return this.$d.toString()!==kt},Ue.isSame=function(we,Ze){var Ve=$t(we);return this.startOf(Ze)<=Ve&&Ve<=this.endOf(Ze)},Ue.isAfter=function(we,Ze){return $t(we)<this.startOf(Ze)},Ue.isBefore=function(we,Ze){return this.endOf(Ze)<$t(we)},Ue.$g=function(we,Ze,Ve){return at.u(we)?this[Ze]:this.set(Ve,we)},Ue.unix=function(){return Math.floor(this.valueOf()/1e3)},Ue.valueOf=function(){return this.$d.getTime()},Ue.startOf=function(we,Ze){var Ve=this,gt=!!at.u(Ze)||Ze,ut=at.p(we),ye=function(qe,It){var Jn=at.w(Ve.$u?Date.UTC(Ve.$y,It,qe):new Date(Ve.$y,It,qe),Ve);return gt?Jn:Jn.endOf(je)},Mn=function(qe,It){return at.w(Ve.toDate()[qe].apply(Ve.toDate("s"),(gt?[0,0,0,0]:[23,59,59,999]).slice(It)),Ve)},vn=this.$W,ln=this.$M,di=this.$D,Ee="set"+(this.$u?"UTC":"");switch(ut){case K:return gt?ye(1,0):ye(31,11);case V:return gt?ye(1,ln):ye(0,ln+1);case Ye:var Gi=this.$locale().weekStart||0,_t=(vn<Gi?vn+7:vn)-Gi;return ye(gt?di-_t:di+(6-_t),ln);case je:case ce:return Mn(Ee+"Hours",0);case ne:return Mn(Ee+"Minutes",1);case J:return Mn(Ee+"Seconds",2);case re:return Mn(Ee+"Milliseconds",3);default:return this.clone()}},Ue.endOf=function(we){return this.startOf(we,!1)},Ue.$set=function(we,Ze){var Ve,gt=at.p(we),ut="set"+(this.$u?"UTC":""),ye=(Ve={},Ve[je]=ut+"Date",Ve[ce]=ut+"Date",Ve[V]=ut+"Month",Ve[K]=ut+"FullYear",Ve[ne]=ut+"Hours",Ve[J]=ut+"Minutes",Ve[re]=ut+"Seconds",Ve[de]=ut+"Milliseconds",Ve)[gt],Mn=gt===je?this.$D+(Ze-this.$W):Ze;if(gt===V||gt===K){var vn=this.clone().set(ce,1);vn.$d[ye](Mn),vn.init(),this.$d=vn.set(ce,Math.min(this.$D,vn.daysInMonth())).$d}else ye&&this.$d[ye](Mn);return this.init(),this},Ue.set=function(we,Ze){return this.clone().$set(we,Ze)},Ue.get=function(we){return this[at.p(we)]()},Ue.add=function(we,Ze){var Ve,gt=this;we=Number(we);var ut=at.p(Ze),ye=function(ln){var di=$t(gt);return at.w(di.date(di.date()+Math.round(ln*we)),gt)};if(ut===V)return this.set(V,this.$M+we);if(ut===K)return this.set(K,this.$y+we);if(ut===je)return ye(1);if(ut===Ye)return ye(7);var Mn=(Ve={},Ve[J]=O,Ve[ne]=q,Ve[re]=1e3,Ve)[ut]||1,vn=this.$d.getTime()+we*Mn;return at.w(vn,this)},Ue.subtract=function(we,Ze){return this.add(-1*we,Ze)},Ue.format=function(we){var Ze=this,Ve=this.$locale();if(!this.isValid())return Ve.invalidDate||kt;var gt=we||"YYYY-MM-DDTHH:mm:ssZ",ut=at.z(this),ye=this.$H,Mn=this.$m,vn=this.$M,ln=Ve.weekdays,di=Ve.months,Ee=function(It,Jn,Ln,vr){return It&&(It[Jn]||It(Ze,gt))||Ln[Jn].slice(0,vr)},Gi=function(It){return at.s(ye%12||12,It,"0")},_t=Ve.meridiem||function(It,Jn,Ln){var vr=It<12?"AM":"PM";return Ln?vr.toLowerCase():vr},qe={YY:String(this.$y).slice(-2),YYYY:this.$y,M:vn+1,MM:at.s(vn+1,2,"0"),MMM:Ee(Ve.monthsShort,vn,di,3),MMMM:Ee(di,vn),D:this.$D,DD:at.s(this.$D,2,"0"),d:String(this.$W),dd:Ee(Ve.weekdaysMin,this.$W,ln,2),ddd:Ee(Ve.weekdaysShort,this.$W,ln,3),dddd:ln[this.$W],H:String(ye),HH:at.s(ye,2,"0"),h:Gi(1),hh:Gi(2),a:_t(ye,Mn,!0),A:_t(ye,Mn,!1),m:String(Mn),mm:at.s(Mn,2,"0"),s:String(this.$s),ss:at.s(this.$s,2,"0"),SSS:at.s(this.$ms,3,"0"),Z:ut};return gt.replace(Se,function(It,Jn){return Jn||qe[It]||ut.replace(":","")})},Ue.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Ue.diff=function(we,Ze,Ve){var gt,ut=at.p(Ze),ye=$t(we),Mn=(ye.utcOffset()-this.utcOffset())*O,vn=this-ye,ln=at.m(this,ye);return ln=(gt={},gt[K]=ln/12,gt[V]=ln,gt[le]=ln/3,gt[Ye]=(vn-Mn)/6048e5,gt[je]=(vn-Mn)/864e5,gt[ne]=vn/q,gt[J]=vn/O,gt[re]=vn/1e3,gt)[ut]||vn,Ve?ln:at.a(ln)},Ue.daysInMonth=function(){return this.endOf(V).$D},Ue.$locale=function(){return Et[this.$L]},Ue.locale=function(we,Ze){if(!we)return this.$L;var Ve=this.clone(),gt=zt(we,Ze,!0);return gt&&(Ve.$L=gt),Ve},Ue.clone=function(){return at.w(this.$d,this)},Ue.toDate=function(){return new Date(this.valueOf())},Ue.toJSON=function(){return this.isValid()?this.toISOString():null},Ue.toISOString=function(){return this.$d.toISOString()},Ue.toString=function(){return this.$d.toUTCString()},wt}(),Qn=nn.prototype;return $t.prototype=Qn,[["$ms",de],["$s",re],["$m",J],["$H",ne],["$W",je],["$M",V],["$y",K],["$D",ce]].forEach(function(wt){Qn[wt[1]]=function(Ue){return this.$g(Ue,wt[0],wt[1])}}),$t.extend=function(wt,Ue){return wt.$i||(wt(Ue,nn,$t),wt.$i=!0),$t},$t.locale=zt,$t.isDayjs=pt,$t.unix=function(wt){return $t(1e3*wt)},$t.en=Et[yt],$t.Ls=Et,$t.p={},$t}()},2735:function(Jt){Jt.exports=function(){"use strict";function Ae(Ke){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(et){return typeof et}:function(et){return et&&"function"==typeof Symbol&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et})(Ke)}function O(Ke,et){return(O=Object.setPrototypeOf||function(gn,ei){return gn.__proto__=ei,gn})(Ke,et)}function de(Ke,et,Ut){return(de=function q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(ei,bi,Yi){var pn=[null];pn.push.apply(pn,bi);var Eo=new(Function.bind.apply(ei,pn));return Yi&&O(Eo,Yi.prototype),Eo}).apply(null,arguments)}function re(Ke){return function J(Ke){if(Array.isArray(Ke))return Ye(Ke)}(Ke)||function ne(Ke){if(typeof Symbol<"u"&&null!=Ke[Symbol.iterator]||null!=Ke["@@iterator"])return Array.from(Ke)}(Ke)||function je(Ke,et){if(Ke){if("string"==typeof Ke)return Ye(Ke,et);var Ut=Object.prototype.toString.call(Ke).slice(8,-1);if("Object"===Ut&&Ke.constructor&&(Ut=Ke.constructor.name),"Map"===Ut||"Set"===Ut)return Array.from(Ke);if("Arguments"===Ut||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ut))return Ye(Ke,et)}}(Ke)||function V(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(Ke,et){(null==et||et>Ke.length)&&(et=Ke.length);for(var Ut=0,gn=new Array(et);Ut<et;Ut++)gn[Ut]=Ke[Ut];return gn}var le=Object.hasOwnProperty,K=Object.setPrototypeOf,ce=Object.isFrozen,kt=Object.getPrototypeOf,Xt=Object.getOwnPropertyDescriptor,Se=Object.freeze,X=Object.seal,Te=Object.create,be=typeof Reflect<"u"&&Reflect,yt=be.apply,Et=be.construct;yt||(yt=function(et,Ut,gn){return et.apply(Ut,gn)}),Se||(Se=function(et){return et}),X||(X=function(et){return et}),Et||(Et=function(et,Ut){return de(et,re(Ut))});var pt=gt(Array.prototype.forEach),zt=gt(Array.prototype.pop),$t=gt(Array.prototype.push),at=gt(String.prototype.toLowerCase),nn=gt(String.prototype.toString),Qn=gt(String.prototype.match),wt=gt(String.prototype.replace),Ue=gt(String.prototype.indexOf),we=gt(String.prototype.trim),Ze=gt(RegExp.prototype.test),Ve=function ut(Ke){return function(){for(var et=arguments.length,Ut=new Array(et),gn=0;gn<et;gn++)Ut[gn]=arguments[gn];return Et(Ke,Ut)}}(TypeError);function gt(Ke){return function(et){for(var Ut=arguments.length,gn=new Array(Ut>1?Ut-1:0),ei=1;ei<Ut;ei++)gn[ei-1]=arguments[ei];return yt(Ke,et,gn)}}function ye(Ke,et,Ut){Ut=Ut||at,K&&K(Ke,null);for(var gn=et.length;gn--;){var ei=et[gn];if("string"==typeof ei){var bi=Ut(ei);bi!==ei&&(ce(et)||(et[gn]=bi),ei=bi)}Ke[ei]=!0}return Ke}function Mn(Ke){var Ut,et=Te(null);for(Ut in Ke)!0===yt(le,Ke,[Ut])&&(et[Ut]=Ke[Ut]);return et}function vn(Ke,et){for(;null!==Ke;){var Ut=Xt(Ke,et);if(Ut){if(Ut.get)return gt(Ut.get);if("function"==typeof Ut.value)return gt(Ut.value)}Ke=kt(Ke)}return function gn(ei){return console.warn("fallback value for",ei),null}}var ln=Se(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),di=Se(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ee=Se(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Gi=Se(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_t=Se(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),qe=Se(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),It=Se(["#text"]),Jn=Se(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ln=Se(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),vr=Se(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Cs=Se(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Li=X(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Mo=X(/<%[\w\W]*|[\w\W]*%>/gm),Cr=X(/\${[\w\W]*}/gm),ir=X(/^data-[\-\w.\u00B7-\uFFFF]/),is=X(/^aria-[\-\w]+$/),Ma=X(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ta=X(/^(?:\w+script|data):/i),To=X(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ni=X(/^html$/i),rs=function(){return typeof window>"u"?null:window},Bi=function(et,Ut){if("object"!==Ae(et)||"function"!=typeof et.createPolicy)return null;var gn=null,ei="data-tt-policy-suffix";Ut.currentScript&&Ut.currentScript.hasAttribute(ei)&&(gn=Ut.currentScript.getAttribute(ei));var bi="dompurify"+(gn?"#"+gn:"");try{return et.createPolicy(bi,{createHTML:function(pn){return pn},createScriptURL:function(pn){return pn}})}catch{return console.warn("TrustedTypes policy "+bi+" could not be created."),null}};return function os(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rs(),et=function(W){return os(W)};if(et.version="2.4.3",et.removed=[],!Ke||!Ke.document||9!==Ke.document.nodeType)return et.isSupported=!1,et;var Ut=Ke.document,gn=Ke.document,ei=Ke.DocumentFragment,bi=Ke.HTMLTemplateElement,Yi=Ke.Node,pn=Ke.Element,pi=Ke.NodeFilter,Eo=Ke.NamedNodeMap,Ea=void 0===Eo?Ke.NamedNodeMap||Ke.MozNamedAttrMap:Eo,ss=Ke.HTMLFormElement,Ws=Ke.DOMParser,io=Ke.trustedTypes,Vr=pn.prototype,Z=vn(Vr,"cloneNode"),L=vn(Vr,"nextSibling"),Ie=vn(Vr,"childNodes"),ht=vn(Vr,"parentNode");if("function"==typeof bi){var gi=gn.createElement("template");gi.content&&gi.content.ownerDocument&&(gn=gi.content.ownerDocument)}var xn=Bi(io,Ut),as=xn?xn.createHTML(""):"",oo=gn.implementation,ka=gn.createNodeIterator,Gs=gn.createDocumentFragment,yi=gn.getElementsByTagName,cs=Ut.importNode,ko={};try{ko=Mn(gn).documentMode?gn.documentMode:{}}catch{}var Hr={};et.isSupported="function"==typeof ht&&oo&&typeof oo.createHTMLDocument<"u"&&9!==ko;var Mr,ui,So=Li,Io=Mo,xs=Cr,wr=ir,Zi=is,Sa=Ta,Ao=To,Fo=Ma,Yn=null,hl=ye({},[].concat(re(ln),re(di),re(Ee),re(_t),re(It))),Ei=null,nc=ye({},[].concat(re(Jn),re(Ln),re(vr),re(Cs))),oi=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oo=null,Ro=null,ic=!0,Ys=!0,rr=!1,qi=!1,vi=!1,Po=!1,rc=!1,Lo=!1,ws=!1,Zs=!1,ls=!0,si=!1,Dr=!0,On=!1,so={},He=null,Kr=ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),wi=null,dn=ye({},["audio","video","img","source","image","track"]),Bt=null,or=ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ao="http://www.w3.org/1998/Math/MathML",ti="http://www.w3.org/2000/svg",ki="http://www.w3.org/1999/xhtml",ve=ki,Ds=!1,Zt=null,An=ye({},[ao,ti,ki],nn),Ia=["application/xhtml+xml","text/html"],hi=null,Aa=gn.createElement("form"),Ks=function(W){return W instanceof RegExp||W instanceof Function},sr=function(W){hi&&hi===W||((!W||"object"!==Ae(W))&&(W={}),W=Mn(W),Mr=Mr=-1===Ia.indexOf(W.PARSER_MEDIA_TYPE)?"text/html":W.PARSER_MEDIA_TYPE,ui="application/xhtml+xml"===Mr?nn:at,Yn="ALLOWED_TAGS"in W?ye({},W.ALLOWED_TAGS,ui):hl,Ei="ALLOWED_ATTR"in W?ye({},W.ALLOWED_ATTR,ui):nc,Zt="ALLOWED_NAMESPACES"in W?ye({},W.ALLOWED_NAMESPACES,nn):An,Bt="ADD_URI_SAFE_ATTR"in W?ye(Mn(or),W.ADD_URI_SAFE_ATTR,ui):or,wi="ADD_DATA_URI_TAGS"in W?ye(Mn(dn),W.ADD_DATA_URI_TAGS,ui):dn,He="FORBID_CONTENTS"in W?ye({},W.FORBID_CONTENTS,ui):Kr,Oo="FORBID_TAGS"in W?ye({},W.FORBID_TAGS,ui):{},Ro="FORBID_ATTR"in W?ye({},W.FORBID_ATTR,ui):{},so="USE_PROFILES"in W&&W.USE_PROFILES,ic=!1!==W.ALLOW_ARIA_ATTR,Ys=!1!==W.ALLOW_DATA_ATTR,rr=W.ALLOW_UNKNOWN_PROTOCOLS||!1,qi=W.SAFE_FOR_TEMPLATES||!1,vi=W.WHOLE_DOCUMENT||!1,Lo=W.RETURN_DOM||!1,ws=W.RETURN_DOM_FRAGMENT||!1,Zs=W.RETURN_TRUSTED_TYPE||!1,rc=W.FORCE_BODY||!1,ls=!1!==W.SANITIZE_DOM,si=W.SANITIZE_NAMED_PROPS||!1,Dr=!1!==W.KEEP_CONTENT,On=W.IN_PLACE||!1,Fo=W.ALLOWED_URI_REGEXP||Fo,ve=W.NAMESPACE||ki,W.CUSTOM_ELEMENT_HANDLING&&Ks(W.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oi.tagNameCheck=W.CUSTOM_ELEMENT_HANDLING.tagNameCheck),W.CUSTOM_ELEMENT_HANDLING&&Ks(W.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oi.attributeNameCheck=W.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),W.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof W.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(oi.allowCustomizedBuiltInElements=W.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),qi&&(Ys=!1),ws&&(Lo=!0),so&&(Yn=ye({},re(It)),Ei=[],!0===so.html&&(ye(Yn,ln),ye(Ei,Jn)),!0===so.svg&&(ye(Yn,di),ye(Ei,Ln),ye(Ei,Cs)),!0===so.svgFilters&&(ye(Yn,Ee),ye(Ei,Ln),ye(Ei,Cs)),!0===so.mathMl&&(ye(Yn,_t),ye(Ei,vr),ye(Ei,Cs))),W.ADD_TAGS&&(Yn===hl&&(Yn=Mn(Yn)),ye(Yn,W.ADD_TAGS,ui)),W.ADD_ATTR&&(Ei===nc&&(Ei=Mn(Ei)),ye(Ei,W.ADD_ATTR,ui)),W.ADD_URI_SAFE_ATTR&&ye(Bt,W.ADD_URI_SAFE_ATTR,ui),W.FORBID_CONTENTS&&(He===Kr&&(He=Mn(He)),ye(He,W.FORBID_CONTENTS,ui)),Dr&&(Yn["#text"]=!0),vi&&ye(Yn,["html","head","body"]),Yn.table&&(ye(Yn,["tbody"]),delete Oo.tbody),Se&&Se(W),hi=W)},ar=ye({},["mi","mo","mn","ms","mtext"]),No=ye({},["foreignobject","desc","title","annotation-xml"]),fl=ye({},["title","style","font","a","script"]),Xs=ye({},di);ye(Xs,Ee),ye(Xs,Gi);var Ac=ye({},_t);ye(Ac,qe);var zr=function(W){$t(et.removed,{element:W});try{W.parentNode.removeChild(W)}catch{try{W.outerHTML=as}catch{W.remove()}}},oc=function(W,Oe){try{$t(et.removed,{attribute:Oe.getAttributeNode(W),from:Oe})}catch{$t(et.removed,{attribute:null,from:Oe})}if(Oe.removeAttribute(W),"is"===W&&!Ei[W])if(Lo||ws)try{zr(Oe)}catch{}else try{Oe.setAttribute(W,"")}catch{}},Fc=function(W){var Oe,nt;if(rc)W="<remove></remove>"+W;else{var Tn=Qn(W,/^[\r\n\t ]+/);nt=Tn&&Tn[0]}"application/xhtml+xml"===Mr&&ve===ki&&(W='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+W+"</body></html>");var Di=xn?xn.createHTML(W):W;if(ve===ki)try{Oe=(new Ws).parseFromString(Di,Mr)}catch{}if(!Oe||!Oe.documentElement){Oe=oo.createDocument(ve,"template",null);try{Oe.documentElement.innerHTML=Ds?as:Di}catch{}}var zn=Oe.body||Oe.documentElement;return W&&nt&&zn.insertBefore(gn.createTextNode(nt),zn.childNodes[0]||null),ve===ki?yi.call(Oe,vi?"html":"body")[0]:vi?Oe.documentElement:zn},Ki=function(W){return ka.call(W.ownerDocument||W,W,pi.SHOW_ELEMENT|pi.SHOW_COMMENT|pi.SHOW_TEXT,null,!1)},$r=function(W){return"object"===Ae(Yi)?W instanceof Yi:W&&"object"===Ae(W)&&"number"==typeof W.nodeType&&"string"==typeof W.nodeName},co=function(W,Oe,nt){Hr[W]&&pt(Hr[W],function(Tn){Tn.call(et,Oe,nt,hi)})},ml=function(W){var Oe;if(co("beforeSanitizeElements",W,null),function(W){return W instanceof ss&&("string"!=typeof W.nodeName||"string"!=typeof W.textContent||"function"!=typeof W.removeChild||!(W.attributes instanceof Ea)||"function"!=typeof W.removeAttribute||"function"!=typeof W.setAttribute||"string"!=typeof W.namespaceURI||"function"!=typeof W.insertBefore||"function"!=typeof W.hasChildNodes)}(W)||Ze(/[\u0080-\uFFFF]/,W.nodeName))return zr(W),!0;var nt=ui(W.nodeName);if(co("uponSanitizeElement",W,{tagName:nt,allowedTags:Yn}),W.hasChildNodes()&&!$r(W.firstElementChild)&&(!$r(W.content)||!$r(W.content.firstElementChild))&&Ze(/<[/\w]/g,W.innerHTML)&&Ze(/<[/\w]/g,W.textContent)||"select"===nt&&Ze(/<template/i,W.innerHTML))return zr(W),!0;if(!Yn[nt]||Oo[nt]){if(!Oo[nt]&&lo(nt)&&(oi.tagNameCheck instanceof RegExp&&Ze(oi.tagNameCheck,nt)||oi.tagNameCheck instanceof Function&&oi.tagNameCheck(nt)))return!1;if(Dr&&!He[nt]){var Tn=ht(W)||W.parentNode,Di=Ie(W)||W.childNodes;if(Di&&Tn)for(var Fn=Di.length-1;Fn>=0;--Fn)Tn.insertBefore(Z(Di[Fn],!0),L(W))}return zr(W),!0}return W instanceof pn&&!function(W){var Oe=ht(W);(!Oe||!Oe.tagName)&&(Oe={namespaceURI:ve,tagName:"template"});var nt=at(W.tagName),Tn=at(Oe.tagName);return!!Zt[W.namespaceURI]&&(W.namespaceURI===ti?Oe.namespaceURI===ki?"svg"===nt:Oe.namespaceURI===ao?"svg"===nt&&("annotation-xml"===Tn||ar[Tn]):Boolean(Xs[nt]):W.namespaceURI===ao?Oe.namespaceURI===ki?"math"===nt:Oe.namespaceURI===ti?"math"===nt&&No[Tn]:Boolean(Ac[nt]):W.namespaceURI===ki?!(Oe.namespaceURI===ti&&!No[Tn]||Oe.namespaceURI===ao&&!ar[Tn])&&!Ac[nt]&&(fl[nt]||!Xs[nt]):!("application/xhtml+xml"!==Mr||!Zt[W.namespaceURI]))}(W)||("noscript"===nt||"noembed"===nt)&&Ze(/<\/no(script|embed)/i,W.innerHTML)?(zr(W),!0):(qi&&3===W.nodeType&&(Oe=wt(Oe=W.textContent,So," "),Oe=wt(Oe,Io," "),Oe=wt(Oe,xs," "),W.textContent!==Oe&&($t(et.removed,{element:W.cloneNode()}),W.textContent=Oe)),co("afterSanitizeElements",W,null),!1)},it=function(W,Oe,nt){if(ls&&("id"===Oe||"name"===Oe)&&(nt in gn||nt in Aa))return!1;if((!Ys||Ro[Oe]||!Ze(wr,Oe))&&(!ic||!Ze(Zi,Oe)))if(!Ei[Oe]||Ro[Oe]){if(!(lo(W)&&(oi.tagNameCheck instanceof RegExp&&Ze(oi.tagNameCheck,W)||oi.tagNameCheck instanceof Function&&oi.tagNameCheck(W))&&(oi.attributeNameCheck instanceof RegExp&&Ze(oi.attributeNameCheck,Oe)||oi.attributeNameCheck instanceof Function&&oi.attributeNameCheck(Oe))||"is"===Oe&&oi.allowCustomizedBuiltInElements&&(oi.tagNameCheck instanceof RegExp&&Ze(oi.tagNameCheck,nt)||oi.tagNameCheck instanceof Function&&oi.tagNameCheck(nt))))return!1}else if(!Bt[Oe]&&!Ze(Fo,wt(nt,Ao,""))&&("src"!==Oe&&"xlink:href"!==Oe&&"href"!==Oe||"script"===W||0!==Ue(nt,"data:")||!wi[W])&&(!rr||Ze(Sa,wt(nt,Ao,"")))&&nt)return!1;return!0},lo=function(W){return W.indexOf("-")>0},qt=function(W){var Oe,nt,Tn,Di;co("beforeSanitizeAttributes",W,null);var zn=W.attributes;if(zn){var Fn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ei};for(Di=zn.length;Di--;){var bt=(Oe=zn[Di]).name,Bo=Oe.namespaceURI;if(nt="value"===bt?Oe.value:we(Oe.value),Tn=ui(bt),Fn.attrName=Tn,Fn.attrValue=nt,Fn.keepAttr=!0,Fn.forceKeepAttr=void 0,co("uponSanitizeAttribute",W,Fn),nt=Fn.attrValue,!Fn.forceKeepAttr&&(oc(bt,W),Fn.keepAttr)){if(Ze(/\/>/i,nt)){oc(bt,W);continue}qi&&(nt=wt(nt,So," "),nt=wt(nt,Io," "),nt=wt(nt,xs," "));var Xi=ui(W.nodeName);if(it(Xi,Tn,nt)){if(si&&("id"===Tn||"name"===Tn)&&(oc(bt,W),nt="user-content-"+nt),xn&&"object"===Ae(io)&&"function"==typeof io.getAttributeType&&!Bo)switch(io.getAttributeType(Xi,Tn)){case"TrustedHTML":nt=xn.createHTML(nt);break;case"TrustedScriptURL":nt=xn.createScriptURL(nt)}try{Bo?W.setAttributeNS(Bo,bt,nt):W.setAttribute(bt,nt),zt(et.removed)}catch{}}}}co("afterSanitizeAttributes",W,null)}},Ts=function Ft(W){var Oe,nt=Ki(W);for(co("beforeSanitizeShadowDOM",W,null);Oe=nt.nextNode();)co("uponSanitizeShadowNode",Oe,null),!ml(Oe)&&(Oe.content instanceof ei&&Ft(Oe.content),qt(Oe));co("afterSanitizeShadowDOM",W,null)};return et.sanitize=function(Ft){var Oe,nt,Tn,Di,zn,W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((Ds=!Ft)&&(Ft="\x3c!--\x3e"),"string"!=typeof Ft&&!$r(Ft)){if("function"!=typeof Ft.toString)throw Ve("toString is not a function");if("string"!=typeof(Ft=Ft.toString()))throw Ve("dirty is not a string, aborting")}if(!et.isSupported){if("object"===Ae(Ke.toStaticHTML)||"function"==typeof Ke.toStaticHTML){if("string"==typeof Ft)return Ke.toStaticHTML(Ft);if($r(Ft))return Ke.toStaticHTML(Ft.outerHTML)}return Ft}if(Po||sr(W),et.removed=[],"string"==typeof Ft&&(On=!1),On){if(Ft.nodeName){var Fn=ui(Ft.nodeName);if(!Yn[Fn]||Oo[Fn])throw Ve("root node is forbidden and cannot be sanitized in-place")}}else if(Ft instanceof Yi)1===(nt=(Oe=Fc("\x3c!----\x3e")).ownerDocument.importNode(Ft,!0)).nodeType&&"BODY"===nt.nodeName||"HTML"===nt.nodeName?Oe=nt:Oe.appendChild(nt);else{if(!Lo&&!qi&&!vi&&-1===Ft.indexOf("<"))return xn&&Zs?xn.createHTML(Ft):Ft;if(!(Oe=Fc(Ft)))return Lo?null:Zs?as:""}Oe&&rc&&zr(Oe.firstChild);for(var ds=Ki(On?Ft:Oe);Tn=ds.nextNode();)3===Tn.nodeType&&Tn===Di||ml(Tn)||(Tn.content instanceof ei&&Ts(Tn.content),qt(Tn),Di=Tn);if(Di=null,On)return Ft;if(Lo){if(ws)for(zn=Gs.call(Oe.ownerDocument);Oe.firstChild;)zn.appendChild(Oe.firstChild);else zn=Oe;return Ei.shadowroot&&(zn=cs.call(Ut,zn,!0)),zn}var bt=vi?Oe.outerHTML:Oe.innerHTML;return vi&&Yn["!doctype"]&&Oe.ownerDocument&&Oe.ownerDocument.doctype&&Oe.ownerDocument.doctype.name&&Ze(Ni,Oe.ownerDocument.doctype.name)&&(bt="<!DOCTYPE "+Oe.ownerDocument.doctype.name+">\n"+bt),qi&&(bt=wt(bt,So," "),bt=wt(bt,Io," "),bt=wt(bt,xs," ")),xn&&Zs?xn.createHTML(bt):bt},et.setConfig=function(Ft){sr(Ft),Po=!0},et.clearConfig=function(){hi=null,Po=!1},et.isValidAttribute=function(Ft,W,Oe){hi||sr({});var nt=ui(Ft),Tn=ui(W);return it(nt,Tn,Oe)},et.addHook=function(Ft,W){"function"==typeof W&&(Hr[Ft]=Hr[Ft]||[],$t(Hr[Ft],W))},et.removeHook=function(Ft){if(Hr[Ft])return zt(Hr[Ft])},et.removeHooks=function(Ft){Hr[Ft]&&(Hr[Ft]=[])},et.removeAllHooks=function(){Hr={}},et}()}()},5703:(Jt,Ae,O)=>{"use strict";function q(s,l){let f;if(void 0===l)for(const m of s)null!=m&&(f<m||void 0===f&&m>=m)&&(f=m);else{let m=-1;for(let b of s)null!=(b=l(b,++m,s))&&(f<b||void 0===f&&b>=b)&&(f=b)}return f}function de(s,l){let f;if(void 0===l)for(const m of s)null!=m&&(f>m||void 0===f&&m>=m)&&(f=m);else{let m=-1;for(let b of s)null!=(b=l(b,++m,s))&&(f>b||void 0===f&&b>=b)&&(f=b)}return f}function re(s){return s}O.d(Ae,{Nb1:()=>bd,LLu:()=>be,F5q:()=>X,$0Z:()=>Ny,Dts:()=>cg,WQY:()=>lg,qpX:()=>Zn,u93:()=>dg,tFB:()=>ug,YY7:()=>Vy,OvA:()=>Hy,dCK:()=>_w,zgE:()=>fg,fGX:()=>mg,$m7:()=>zy,c_6:()=>Ly,fxm:()=>gg,FdL:()=>qc,ak_:()=>jy,SxZ:()=>Uy,eA_:()=>Wu,jsv:()=>_g,iJ:()=>Kc,JHv:()=>Rb,jvg:()=>wf,Fp7:()=>q,VV$:()=>de,ve8:()=>pw,BYU:()=>$b,PKp:()=>Yb,Xf:()=>Bl,Ys:()=>Ty,td_:()=>Ey,YPS:()=>Ab,rr1:()=>Fl,i$Z:()=>bf,WQD:()=>fd,Z_i:()=>Wr,F0B:()=>nf,NGh:()=>Ol});var J=1,ne=2,je=3,Ye=4,V=1e-6;function le(s){return"translate("+s+",0)"}function K(s){return"translate(0,"+s+")"}function ce(s){return l=>+s(l)}function kt(s,l){return l=Math.max(0,s.bandwidth()-2*l)/2,s.round()&&(l=Math.round(l)),f=>+s(f)+l}function Xt(){return!this.__axis}function Se(s,l){var f=[],m=null,b=null,v=6,C=6,T=3,E=typeof window<"u"&&window.devicePixelRatio>1?0:.5,F=s===J||s===Ye?-1:1,B=s===Ye||s===ne?"x":"y",ee=s===J||s===je?le:K;function Y(se){var ct=m??(l.ticks?l.ticks.apply(l,f):l.domain()),Vt=b??(l.tickFormat?l.tickFormat.apply(l,f):re),xe=Math.max(v,0)+T,ue=l.range(),rt=+ue[0]+E,Fe=+ue[ue.length-1]+E,Xe=(l.bandwidth?kt:ce)(l.copy(),E),lt=se.selection?se.selection():se,$e=lt.selectAll(".domain").data([null]),en=lt.selectAll(".tick").data(ct,l).order(),wn=en.exit(),qn=en.enter().append("g").attr("class","tick"),yn=en.select("line"),ft=en.select("text");$e=$e.merge($e.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),en=en.merge(qn),yn=yn.merge(qn.append("line").attr("stroke","currentColor").attr(B+"2",F*v)),ft=ft.merge(qn.append("text").attr("fill","currentColor").attr(B,F*xe).attr("dy",s===J?"0em":s===je?"0.71em":"0.32em")),se!==lt&&($e=$e.transition(se),en=en.transition(se),yn=yn.transition(se),ft=ft.transition(se),wn=wn.transition(se).attr("opacity",V).attr("transform",function(un){return isFinite(un=Xe(un))?ee(un+E):this.getAttribute("transform")}),qn.attr("opacity",V).attr("transform",function(un){var We=this.parentNode.__axis;return ee((We&&isFinite(We=We(un))?We:Xe(un))+E)})),wn.remove(),$e.attr("d",s===Ye||s===ne?C?"M"+F*C+","+rt+"H"+E+"V"+Fe+"H"+F*C:"M"+E+","+rt+"V"+Fe:C?"M"+rt+","+F*C+"V"+E+"H"+Fe+"V"+F*C:"M"+rt+","+E+"H"+Fe),en.attr("opacity",1).attr("transform",function(un){return ee(Xe(un)+E)}),yn.attr(B+"2",F*v),ft.attr(B,F*xe).text(Vt),lt.filter(Xt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",s===ne?"start":s===Ye?"end":"middle"),lt.each(function(){this.__axis=Xe})}return Y.scale=function(se){return arguments.length?(l=se,Y):l},Y.ticks=function(){return f=Array.from(arguments),Y},Y.tickArguments=function(se){return arguments.length?(f=null==se?[]:Array.from(se),Y):f.slice()},Y.tickValues=function(se){return arguments.length?(m=null==se?null:Array.from(se),Y):m&&m.slice()},Y.tickFormat=function(se){return arguments.length?(b=se,Y):b},Y.tickSize=function(se){return arguments.length?(v=C=+se,Y):v},Y.tickSizeInner=function(se){return arguments.length?(v=+se,Y):v},Y.tickSizeOuter=function(se){return arguments.length?(C=+se,Y):C},Y.tickPadding=function(se){return arguments.length?(T=+se,Y):T},Y.offset=function(se){return arguments.length?(E=+se,Y):E},Y}function X(s){return Se(J,s)}function be(s){return Se(je,s)}function Et(){}function pt(s){return null==s?Et:function(){return this.querySelector(s)}}function $t(s){return null==s?[]:Array.isArray(s)?s:Array.from(s)}function at(){return[]}function nn(s){return null==s?at:function(){return this.querySelectorAll(s)}}function Ue(s){return function(){return this.matches(s)}}function we(s){return function(l){return l.matches(s)}}var Ze=Array.prototype.find;function gt(){return this.firstElementChild}var ye=Array.prototype.filter;function Mn(){return Array.from(this.children)}function Ee(s){return new Array(s.length)}function _t(s,l){this.ownerDocument=s.ownerDocument,this.namespaceURI=s.namespaceURI,this._next=null,this._parent=s,this.__data__=l}function It(s,l,f,m,b,v){for(var T,C=0,E=l.length,F=v.length;C<F;++C)(T=l[C])?(T.__data__=v[C],m[C]=T):f[C]=new _t(s,v[C]);for(;C<E;++C)(T=l[C])&&(b[C]=T)}function Jn(s,l,f,m,b,v,C){var T,E,se,F=new Map,B=l.length,ee=v.length,Y=new Array(B);for(T=0;T<B;++T)(E=l[T])&&(Y[T]=se=C.call(E,E.__data__,T,l)+"",F.has(se)?b[T]=E:F.set(se,E));for(T=0;T<ee;++T)se=C.call(s,v[T],T,v)+"",(E=F.get(se))?(m[T]=E,E.__data__=v[T],F.delete(se)):f[T]=new _t(s,v[T]);for(T=0;T<B;++T)(E=l[T])&&F.get(Y[T])===E&&(b[T]=E)}function Ln(s){return s.__data__}function Cs(s){return"object"==typeof s&&"length"in s?s:Array.from(s)}function Ma(s,l){return s<l?-1:s>l?1:s>=l?0:NaN}_t.prototype={constructor:_t,appendChild:function(s){return this._parent.insertBefore(s,this._next)},insertBefore:function(s,l){return this._parent.insertBefore(s,l)},querySelector:function(s){return this._parent.querySelector(s)},querySelectorAll:function(s){return this._parent.querySelectorAll(s)}};var xr="http://www.w3.org/1999/xhtml";const Ke={svg:"http://www.w3.org/2000/svg",xhtml:xr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function et(s){var l=s+="",f=l.indexOf(":");return f>=0&&"xmlns"!==(l=s.slice(0,f))&&(s=s.slice(f+1)),Ke.hasOwnProperty(l)?{space:Ke[l],local:s}:s}function Ut(s){return function(){this.removeAttribute(s)}}function gn(s){return function(){this.removeAttributeNS(s.space,s.local)}}function ei(s,l){return function(){this.setAttribute(s,l)}}function bi(s,l){return function(){this.setAttributeNS(s.space,s.local,l)}}function Yi(s,l){return function(){var f=l.apply(this,arguments);null==f?this.removeAttribute(s):this.setAttribute(s,f)}}function pn(s,l){return function(){var f=l.apply(this,arguments);null==f?this.removeAttributeNS(s.space,s.local):this.setAttributeNS(s.space,s.local,f)}}function Eo(s){return s.ownerDocument&&s.ownerDocument.defaultView||s.document&&s||s.defaultView}function Ea(s){return function(){this.style.removeProperty(s)}}function ss(s,l,f){return function(){this.style.setProperty(s,l,f)}}function Ws(s,l,f){return function(){var m=l.apply(this,arguments);null==m?this.style.removeProperty(s):this.style.setProperty(s,m,f)}}function Vr(s,l){return s.style.getPropertyValue(l)||Eo(s).getComputedStyle(s,null).getPropertyValue(l)}function Z(s){return function(){delete this[s]}}function L(s,l){return function(){this[s]=l}}function Ie(s,l){return function(){var f=l.apply(this,arguments);null==f?delete this[s]:this[s]=f}}function gi(s){return s.trim().split(/^|\s+/)}function xn(s){return s.classList||new as(s)}function as(s){this._node=s,this._names=gi(s.getAttribute("class")||"")}function ro(s,l){for(var f=xn(s),m=-1,b=l.length;++m<b;)f.add(l[m])}function oo(s,l){for(var f=xn(s),m=-1,b=l.length;++m<b;)f.remove(l[m])}function ka(s){return function(){ro(this,s)}}function Gs(s){return function(){oo(this,s)}}function yi(s,l){return function(){(l.apply(this,arguments)?ro:oo)(this,s)}}function ko(){this.textContent=""}function Hr(s){return function(){this.textContent=s}}function So(s){return function(){var l=s.apply(this,arguments);this.textContent=l??""}}function xs(){this.innerHTML=""}function wr(s){return function(){this.innerHTML=s}}function Zi(s){return function(){var l=s.apply(this,arguments);this.innerHTML=l??""}}function Ao(){this.nextSibling&&this.parentNode.appendChild(this)}function Yn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ei(s){return function(){var l=this.ownerDocument,f=this.namespaceURI;return f===xr&&l.documentElement.namespaceURI===xr?l.createElement(s):l.createElementNS(f,s)}}function nc(s){return function(){return this.ownerDocument.createElementNS(s.space,s.local)}}function oi(s){var l=et(s);return(l.local?nc:Ei)(l)}function Ro(){return null}function Ys(){var s=this.parentNode;s&&s.removeChild(this)}function qi(){var s=this.cloneNode(!1),l=this.parentNode;return l?l.insertBefore(s,this.nextSibling):s}function vi(){var s=this.cloneNode(!0),l=this.parentNode;return l?l.insertBefore(s,this.nextSibling):s}function Zs(s){return function(){var l=this.__on;if(l){for(var v,f=0,m=-1,b=l.length;f<b;++f)v=l[f],s.type&&v.type!==s.type||v.name!==s.name?l[++m]=v:this.removeEventListener(v.type,v.listener,v.options);++m?l.length=m:delete this.__on}}}function ls(s,l,f){return function(){var b,m=this.__on,v=function Lo(s){return function(l){s.call(this,l,this.__data__)}}(l);if(m)for(var C=0,T=m.length;C<T;++C)if((b=m[C]).type===s.type&&b.name===s.name)return this.removeEventListener(b.type,b.listener,b.options),this.addEventListener(b.type,b.listener=v,b.options=f),void(b.value=l);this.addEventListener(s.type,v,f),b={type:s.type,name:s.name,value:l,listener:v,options:f},m?m.push(b):this.__on=[b]}}function qs(s,l,f){var m=Eo(s),b=m.CustomEvent;"function"==typeof b?b=new b(l,f):(b=m.document.createEvent("Event"),f?(b.initEvent(l,f.bubbles,f.cancelable),b.detail=f.detail):b.initEvent(l,!1,!1)),s.dispatchEvent(b)}function Dr(s,l){return function(){return qs(this,s,l)}}function On(s,l){return function(){return qs(this,s,l.apply(this,arguments))}}as.prototype={add:function(s){this._names.indexOf(s)<0&&(this._names.push(s),this._node.setAttribute("class",this._names.join(" ")))},remove:function(s){var l=this._names.indexOf(s);l>=0&&(this._names.splice(l,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(s){return this._names.indexOf(s)>=0}};var Kr=[null];function wi(s,l){this._groups=s,this._parents=l}function dn(){return new wi([[document.documentElement]],Kr)}wi.prototype=dn.prototype={constructor:wi,select:function zt(s){"function"!=typeof s&&(s=pt(s));for(var l=this._groups,f=l.length,m=new Array(f),b=0;b<f;++b)for(var E,F,v=l[b],C=v.length,T=m[b]=new Array(C),B=0;B<C;++B)(E=v[B])&&(F=s.call(E,E.__data__,B,v))&&("__data__"in E&&(F.__data__=E.__data__),T[B]=F);return new wi(m,this._parents)},selectAll:function wt(s){s="function"==typeof s?function Qn(s){return function(){return $t(s.apply(this,arguments))}}(s):nn(s);for(var l=this._groups,f=l.length,m=[],b=[],v=0;v<f;++v)for(var E,C=l[v],T=C.length,F=0;F<T;++F)(E=C[F])&&(m.push(s.call(E,E.__data__,F,C)),b.push(E));return new wi(m,b)},selectChild:function ut(s){return this.select(null==s?gt:function Ve(s){return function(){return Ze.call(this.children,s)}}("function"==typeof s?s:we(s)))},selectChildren:function ln(s){return this.selectAll(null==s?Mn:function vn(s){return function(){return ye.call(this.children,s)}}("function"==typeof s?s:we(s)))},filter:function di(s){"function"!=typeof s&&(s=Ue(s));for(var l=this._groups,f=l.length,m=new Array(f),b=0;b<f;++b)for(var E,v=l[b],C=v.length,T=m[b]=[],F=0;F<C;++F)(E=v[F])&&s.call(E,E.__data__,F,v)&&T.push(E);return new wi(m,this._parents)},data:function vr(s,l){if(!arguments.length)return Array.from(this,Ln);var f=l?Jn:It,m=this._parents,b=this._groups;"function"!=typeof s&&(s=function qe(s){return function(){return s}}(s));for(var v=b.length,C=new Array(v),T=new Array(v),E=new Array(v),F=0;F<v;++F){var B=m[F],ee=b[F],Y=ee.length,se=Cs(s.call(B,B&&B.__data__,F,m)),ct=se.length,Vt=T[F]=new Array(ct),xe=C[F]=new Array(ct);f(B,ee,Vt,xe,E[F]=new Array(Y),se,l);for(var Xe,lt,rt=0,Fe=0;rt<ct;++rt)if(Xe=Vt[rt]){for(rt>=Fe&&(Fe=rt+1);!(lt=xe[Fe])&&++Fe<ct;);Xe._next=lt||null}}return(C=new wi(C,m))._enter=T,C._exit=E,C},enter:function Gi(){return new wi(this._enter||this._groups.map(Ee),this._parents)},exit:function Li(){return new wi(this._exit||this._groups.map(Ee),this._parents)},join:function Mo(s,l,f){var m=this.enter(),b=this,v=this.exit();return"function"==typeof s?(m=s(m))&&(m=m.selection()):m=m.append(s+""),null!=l&&(b=l(b))&&(b=b.selection()),null==f?v.remove():f(v),m&&b?m.merge(b).order():b},merge:function Cr(s){for(var l=s.selection?s.selection():s,f=this._groups,m=l._groups,b=f.length,C=Math.min(b,m.length),T=new Array(b),E=0;E<C;++E)for(var se,F=f[E],B=m[E],ee=F.length,Y=T[E]=new Array(ee),ct=0;ct<ee;++ct)(se=F[ct]||B[ct])&&(Y[ct]=se);for(;E<b;++E)T[E]=f[E];return new wi(T,this._parents)},selection:function Bt(){return this},order:function ir(){for(var s=this._groups,l=-1,f=s.length;++l<f;)for(var C,m=s[l],b=m.length-1,v=m[b];--b>=0;)(C=m[b])&&(v&&4^C.compareDocumentPosition(v)&&v.parentNode.insertBefore(C,v),v=C);return this},sort:function is(s){function l(ee,Y){return ee&&Y?s(ee.__data__,Y.__data__):!ee-!Y}s||(s=Ma);for(var f=this._groups,m=f.length,b=new Array(m),v=0;v<m;++v){for(var F,C=f[v],T=C.length,E=b[v]=new Array(T),B=0;B<T;++B)(F=C[B])&&(E[B]=F);E.sort(l)}return new wi(b,this._parents).order()},call:function Ta(){var s=arguments[0];return arguments[0]=this,s.apply(null,arguments),this},nodes:function To(){return Array.from(this)},node:function Ni(){for(var s=this._groups,l=0,f=s.length;l<f;++l)for(var m=s[l],b=0,v=m.length;b<v;++b){var C=m[b];if(C)return C}return null},size:function rs(){let s=0;for(const l of this)++s;return s},empty:function Bi(){return!this.node()},each:function os(s){for(var l=this._groups,f=0,m=l.length;f<m;++f)for(var T,b=l[f],v=0,C=b.length;v<C;++v)(T=b[v])&&s.call(T,T.__data__,v,b);return this},attr:function pi(s,l){var f=et(s);if(arguments.length<2){var m=this.node();return f.local?m.getAttributeNS(f.space,f.local):m.getAttribute(f)}return this.each((null==l?f.local?gn:Ut:"function"==typeof l?f.local?pn:Yi:f.local?bi:ei)(f,l))},style:function io(s,l,f){return arguments.length>1?this.each((null==l?Ea:"function"==typeof l?Ws:ss)(s,l,f??"")):Vr(this.node(),s)},property:function ht(s,l){return arguments.length>1?this.each((null==l?Z:"function"==typeof l?Ie:L)(s,l)):this.node()[s]},classed:function cs(s,l){var f=gi(s+"");if(arguments.length<2){for(var m=xn(this.node()),b=-1,v=f.length;++b<v;)if(!m.contains(f[b]))return!1;return!0}return this.each(("function"==typeof l?yi:l?ka:Gs)(f,l))},text:function Io(s){return arguments.length?this.each(null==s?ko:("function"==typeof s?So:Hr)(s)):this.node().textContent},html:function Sa(s){return arguments.length?this.each(null==s?xs:("function"==typeof s?Zi:wr)(s)):this.node().innerHTML},raise:function Fo(){return this.each(Ao)},lower:function hl(){return this.each(Yn)},append:function Oo(s){var l="function"==typeof s?s:oi(s);return this.select(function(){return this.appendChild(l.apply(this,arguments))})},insert:function ic(s,l){var f="function"==typeof s?s:oi(s),m=null==l?Ro:"function"==typeof l?l:pt(l);return this.select(function(){return this.insertBefore(f.apply(this,arguments),m.apply(this,arguments)||null)})},remove:function rr(){return this.each(Ys)},clone:function Po(s){return this.select(s?vi:qi)},datum:function rc(s){return arguments.length?this.property("__data__",s):this.node().__data__},on:function si(s,l,f){var b,C,m=function ws(s){return s.trim().split(/^|\s+/).map(function(l){var f="",m=l.indexOf(".");return m>=0&&(f=l.slice(m+1),l=l.slice(0,m)),{type:l,name:f}})}(s+""),v=m.length;if(!(arguments.length<2)){for(T=l?ls:Zs,b=0;b<v;++b)this.each(T(m[b],l,f));return this}var T=this.node().__on;if(T)for(var B,E=0,F=T.length;E<F;++E)for(b=0,B=T[E];b<v;++b)if((C=m[b]).type===B.type&&C.name===B.name)return B.value},dispatch:function so(s,l){return this.each(("function"==typeof l?On:Dr)(s,l))},[Symbol.iterator]:function*He(){for(var s=this._groups,l=0,f=s.length;l<f;++l)for(var C,m=s[l],b=0,v=m.length;b<v;++b)(C=m[b])&&(yield C)}};const or=dn;var ao={value:()=>{}};function ti(){for(var m,s=0,l=arguments.length,f={};s<l;++s){if(!(m=arguments[s]+"")||m in f||/[\s.]/.test(m))throw new Error("illegal type: "+m);f[m]=[]}return new ki(f)}function ki(s){this._=s}function Ds(s,l){for(var b,f=0,m=s.length;f<m;++f)if((b=s[f]).name===l)return b.value}function Zt(s,l,f){for(var m=0,b=s.length;m<b;++m)if(s[m].name===l){s[m]=ao,s=s.slice(0,m).concat(s.slice(m+1));break}return null!=f&&s.push({name:l,value:f}),s}ki.prototype=ti.prototype={constructor:ki,on:function(s,l){var b,f=this._,m=function ve(s,l){return s.trim().split(/^|\s+/).map(function(f){var m="",b=f.indexOf(".");if(b>=0&&(m=f.slice(b+1),f=f.slice(0,b)),f&&!l.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:m}})}(s+"",f),v=-1,C=m.length;if(!(arguments.length<2)){if(null!=l&&"function"!=typeof l)throw new Error("invalid callback: "+l);for(;++v<C;)if(b=(s=m[v]).type)f[b]=Zt(f[b],s.name,l);else if(null==l)for(b in f)f[b]=Zt(f[b],s.name,null);return this}for(;++v<C;)if((b=(s=m[v]).type)&&(b=Ds(f[b],s.name)))return b},copy:function(){var s={},l=this._;for(var f in l)s[f]=l[f].slice();return new ki(s)},call:function(s,l){if((b=arguments.length-2)>0)for(var b,v,f=new Array(b),m=0;m<b;++m)f[m]=arguments[m+2];if(!this._.hasOwnProperty(s))throw new Error("unknown type: "+s);for(m=0,b=(v=this._[s]).length;m<b;++m)v[m].value.apply(l,f)},apply:function(s,l,f){if(!this._.hasOwnProperty(s))throw new Error("unknown type: "+s);for(var m=this._[s],b=0,v=m.length;b<v;++b)m[b].value.apply(l,f)}};const An=ti;var hi,Aa,Mr=0,Ia=0,Ms=0,ui=1e3,Ks=0,sr=0,ar=0,No="object"==typeof performance&&performance.now?performance:Date,fl="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(s){setTimeout(s,17)};function Xs(){return sr||(fl(Ac),sr=No.now()+ar)}function Ac(){sr=0}function Qs(){this._call=this._time=this._next=null}function zr(s,l,f){var m=new Qs;return m.restart(s,l,f),m}function Fc(){sr=(Ks=No.now())+ar,Mr=Ia=0;try{!function oc(){Xs(),++Mr;for(var l,s=hi;s;)(l=sr-s._time)>=0&&s._call.call(void 0,l),s=s._next;--Mr}()}finally{Mr=0,function Rn(){for(var s,f,l=hi,m=1/0;l;)l._call?(m>l._time&&(m=l._time),s=l,l=l._next):(f=l._next,l._next=null,l=s?s._next=f:hi=f);Aa=s,$r(m)}(),sr=0}}function Ki(){var s=No.now(),l=s-Ks;l>ui&&(ar-=l,Ks=s)}function $r(s){Mr||(Ia&&(Ia=clearTimeout(Ia)),s-sr>24?(s<1/0&&(Ia=setTimeout(Fc,s-No.now()-ar)),Ms&&(Ms=clearInterval(Ms))):(Ms||(Ks=No.now(),Ms=setInterval(Ki,ui)),Mr=1,fl(Fc)))}function co(s,l,f){var m=new Qs;return m.restart(b=>{m.stop(),s(b+l)},l=null==l?0:+l,f),m}Qs.prototype=zr.prototype={constructor:Qs,restart:function(s,l,f){if("function"!=typeof s)throw new TypeError("callback is not a function");f=(null==f?Xs():+f)+(null==l?0:+l),!this._next&&Aa!==this&&(Aa?Aa._next=this:hi=this,Aa=this),this._call=s,this._time=f,$r()},stop:function(){this._call&&(this._call=null,this._time=1/0,$r())}};var ml=An("start","end","cancel","interrupt"),it=[],lo=0,qt=1,Ts=2,Ft=3,W=4,Oe=5,nt=6;function Tn(s,l,f,m,b,v){var C=s.__transition;if(C){if(f in C)return}else s.__transition={};!function ds(s,l,f){var b,m=s.__transition;function C(F){var B,ee,Y,se;if(f.state!==qt)return E();for(B in m)if((se=m[B]).name===f.name){if(se.state===Ft)return co(C);se.state===W?(se.state=nt,se.timer.stop(),se.on.call("interrupt",s,s.__data__,se.index,se.group),delete m[B]):+B<l&&(se.state=nt,se.timer.stop(),se.on.call("cancel",s,s.__data__,se.index,se.group),delete m[B])}if(co(function(){f.state===Ft&&(f.state=W,f.timer.restart(T,f.delay,f.time),T(F))}),f.state=Ts,f.on.call("start",s,s.__data__,f.index,f.group),f.state===Ts){for(f.state=Ft,b=new Array(Y=f.tween.length),B=0,ee=-1;B<Y;++B)(se=f.tween[B].value.call(s,s.__data__,f.index,f.group))&&(b[++ee]=se);b.length=ee+1}}function T(F){for(var B=F<f.duration?f.ease.call(null,F/f.duration):(f.timer.restart(E),f.state=Oe,1),ee=-1,Y=b.length;++ee<Y;)b[ee].call(s,B);f.state===Oe&&(f.on.call("end",s,s.__data__,f.index,f.group),E())}function E(){for(var F in f.state=nt,f.timer.stop(),delete m[l],m)return;delete s.__transition}m[l]=f,f.timer=zr(function v(F){f.state=qt,f.timer.restart(C,f.delay,f.time),f.delay<=F&&C(F-f.delay)},0,f.time)}(s,f,{name:l,index:m,group:b,on:ml,tween:it,time:v.time,delay:v.delay,duration:v.duration,ease:v.ease,timer:null,state:lo})}function Di(s,l){var f=Fn(s,l);if(f.state>lo)throw new Error("too late; already scheduled");return f}function zn(s,l){var f=Fn(s,l);if(f.state>Ft)throw new Error("too late; already running");return f}function Fn(s,l){var f=s.__transition;if(!f||!(f=f[l]))throw new Error("transition not found");return f}function Xi(s,l){return s=+s,l=+l,function(f){return s*(1-f)+l*f}}var $n,$i=180/Math.PI,Vo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pl(s,l,f,m,b,v){var C,T,E;return(C=Math.sqrt(s*s+l*l))&&(s/=C,l/=C),(E=s*f+l*m)&&(f-=s*E,m-=l*E),(T=Math.sqrt(f*f+m*m))&&(f/=T,m/=T,E/=T),s*m<l*f&&(s=-s,l=-l,E=-E,C=-C),{translateX:b,translateY:v,rotate:Math.atan2(l,s)*$i,skewX:Math.atan(E)*$i,scaleX:C,scaleY:T}}function gl(s,l,f,m){function b(F){return F.length?F.pop()+" ":""}return function(F,B){var ee=[],Y=[];return F=s(F),B=s(B),function v(F,B,ee,Y,se,ct){if(F!==ee||B!==Y){var Vt=se.push("translate(",null,l,null,f);ct.push({i:Vt-4,x:Xi(F,ee)},{i:Vt-2,x:Xi(B,Y)})}else(ee||Y)&&se.push("translate("+ee+l+Y+f)}(F.translateX,F.translateY,B.translateX,B.translateY,ee,Y),function C(F,B,ee,Y){F!==B?(F-B>180?B+=360:B-F>180&&(F+=360),Y.push({i:ee.push(b(ee)+"rotate(",null,m)-2,x:Xi(F,B)})):B&&ee.push(b(ee)+"rotate("+B+m)}(F.rotate,B.rotate,ee,Y),function T(F,B,ee,Y){F!==B?Y.push({i:ee.push(b(ee)+"skewX(",null,m)-2,x:Xi(F,B)}):B&&ee.push(b(ee)+"skewX("+B+m)}(F.skewX,B.skewX,ee,Y),function E(F,B,ee,Y,se,ct){if(F!==ee||B!==Y){var Vt=se.push(b(se)+"scale(",null,",",null,")");ct.push({i:Vt-4,x:Xi(F,ee)},{i:Vt-2,x:Xi(B,Y)})}else(1!==ee||1!==Y)&&se.push(b(se)+"scale("+ee+","+Y+")")}(F.scaleX,F.scaleY,B.scaleX,B.scaleY,ee,Y),F=B=null,function(se){for(var xe,ct=-1,Vt=Y.length;++ct<Vt;)ee[(xe=Y[ct]).i]=xe.x(se);return ee.join("")}}}var Fa=gl(function Yd(s){const l=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(s+"");return l.isIdentity?Vo:pl(l.a,l.b,l.c,l.d,l.e,l.f)},"px, ","px)","deg)"),Oa=gl(function od(s){return null!=s&&($n||($n=document.createElementNS("http://www.w3.org/2000/svg","g")),$n.setAttribute("transform",s),s=$n.transform.baseVal.consolidate())?pl((s=s.matrix).a,s.b,s.c,s.d,s.e,s.f):Vo},", ",")",")");function sc(s,l){var f,m;return function(){var b=zn(this,s),v=b.tween;if(v!==f)for(var C=0,T=(m=f=v).length;C<T;++C)if(m[C].name===l){(m=m.slice()).splice(C,1);break}b.tween=m}}function sd(s,l,f){var m,b;if("function"!=typeof f)throw new Error;return function(){var v=zn(this,s),C=v.tween;if(C!==m){b=(m=C).slice();for(var T={name:l,value:f},E=0,F=b.length;E<F;++E)if(b[E].name===l){b[E]=T;break}E===F&&b.push(T)}v.tween=b}}function Oc(s,l,f){var m=s._id;return s.each(function(){var b=zn(this,m);(b.value||(b.value={}))[l]=f.apply(this,arguments)}),function(b){return Fn(b,m).value[l]}}function Es(s,l,f){s.prototype=l.prototype=f,f.constructor=s}function us(s,l){var f=Object.create(s.prototype);for(var m in l)f[m]=l[m];return f}function jr(){}var te=1/.7,ks="\\s*([+-]?\\d+)\\s*",_i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ac=/^#([0-9a-f]{3,8})$/,Js=new RegExp(`^rgb\\(${ks},${ks},${ks}\\)$`),cc=new RegExp(`^rgb\\(${Tr},${Tr},${Tr}\\)$`),ad=new RegExp(`^rgba\\(${ks},${ks},${ks},${_i}\\)$`),Rc=new RegExp(`^rgba\\(${Tr},${Tr},${Tr},${_i}\\)$`),Ho=new RegExp(`^hsl\\(${_i},${Tr},${Tr}\\)$`),uo=new RegExp(`^hsla\\(${_i},${Tr},${Tr},${_i}\\)$`),Er={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ho(){return this.rgb().formatHex()}function Ss(){return this.rgb().formatRgb()}function $o(s){var l,f;return s=(s+"").trim().toLowerCase(),(l=ac.exec(s))?(f=l[1].length,l=parseInt(l[1],16),6===f?ea(l):3===f?new k(l>>8&15|l>>4&240,l>>4&15|240&l,(15&l)<<4|15&l,1):8===f?Ur(l>>24&255,l>>16&255,l>>8&255,(255&l)/255):4===f?Ur(l>>12&15|l>>8&240,l>>8&15|l>>4&240,l>>4&15|240&l,((15&l)<<4|15&l)/255):null):(l=Js.exec(s))?new k(l[1],l[2],l[3],1):(l=cc.exec(s))?new k(255*l[1]/100,255*l[2]/100,255*l[3]/100,1):(l=ad.exec(s))?Ur(l[1],l[2],l[3],l[4]):(l=Rc.exec(s))?Ur(255*l[1]/100,255*l[2]/100,255*l[3]/100,l[4]):(l=Ho.exec(s))?y(l[1],l[2]/100,l[3]/100,1):(l=uo.exec(s))?y(l[1],l[2]/100,l[3]/100,l[4]):Er.hasOwnProperty(s)?ea(Er[s]):"transparent"===s?new k(NaN,NaN,NaN,0):null}function ea(s){return new k(s>>16&255,s>>8&255,255&s,1)}function Ur(s,l,f,m){return m<=0&&(s=l=f=NaN),new k(s,l,f,m)}function Xr(s){return s instanceof jr||(s=$o(s)),s?new k((s=s.rgb()).r,s.g,s.b,s.opacity):new k}function Is(s,l,f,m){return 1===arguments.length?Xr(s):new k(s,l,f,m??1)}function k(s,l,f,m){this.r=+s,this.g=+l,this.b=+f,this.opacity=+m}function j(){return`#${g(this.r)}${g(this.g)}${g(this.b)}`}function tt(){const s=Re(this.opacity);return`${1===s?"rgb(":"rgba("}${u(this.r)}, ${u(this.g)}, ${u(this.b)}${1===s?")":`, ${s})`}`}function Re(s){return isNaN(s)?1:Math.max(0,Math.min(1,s))}function u(s){return Math.max(0,Math.min(255,Math.round(s)||0))}function g(s){return((s=u(s))<16?"0":"")+s.toString(16)}function y(s,l,f,m){return m<=0?s=l=f=NaN:f<=0||f>=1?s=l=NaN:l<=0&&(s=NaN),new z(s,l,f,m)}function A(s){if(s instanceof z)return new z(s.h,s.s,s.l,s.opacity);if(s instanceof jr||(s=$o(s)),!s)return new z;if(s instanceof z)return s;var l=(s=s.rgb()).r/255,f=s.g/255,m=s.b/255,b=Math.min(l,f,m),v=Math.max(l,f,m),C=NaN,T=v-b,E=(v+b)/2;return T?(C=l===v?(f-m)/T+6*(f<m):f===v?(m-l)/T+2:(l-f)/T+4,T/=E<.5?v+b:2-v-b,C*=60):T=E>0&&E<1?0:C,new z(C,T,E,s.opacity)}function z(s,l,f,m){this.h=+s,this.s=+l,this.l=+f,this.opacity=+m}function H(s){return(s=(s||0)%360)<0?s+360:s}function oe(s){return Math.max(0,Math.min(1,s||0))}function he(s,l,f){return 255*(s<60?l+(f-l)*s/60:s<180?f:s<240?l+(f-l)*(240-s)/60:l)}function Pe(s,l,f,m,b){var v=s*s,C=v*s;return((1-3*s+3*v-C)*l+(4-6*v+3*C)*f+(1+3*s+3*v-3*C)*m+C*b)/6}Es(jr,$o,{copy(s){return Object.assign(new this.constructor,this,s)},displayable(){return this.rgb().displayable()},hex:ho,formatHex:ho,formatHex8:function Pn(){return this.rgb().formatHex8()},formatHsl:function zo(){return A(this).formatHsl()},formatRgb:Ss,toString:Ss}),Es(k,Is,us(jr,{brighter(s){return s=null==s?te:Math.pow(te,s),new k(this.r*s,this.g*s,this.b*s,this.opacity)},darker(s){return s=null==s?.7:Math.pow(.7,s),new k(this.r*s,this.g*s,this.b*s,this.opacity)},rgb(){return this},clamp(){return new k(u(this.r),u(this.g),u(this.b),Re(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j,formatHex:j,formatHex8:function Me(){return`#${g(this.r)}${g(this.g)}${g(this.b)}${g(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tt,toString:tt})),Es(z,function I(s,l,f,m){return 1===arguments.length?A(s):new z(s,l,f,m??1)},us(jr,{brighter(s){return s=null==s?te:Math.pow(te,s),new z(this.h,this.s,this.l*s,this.opacity)},darker(s){return s=null==s?.7:Math.pow(.7,s),new z(this.h,this.s,this.l*s,this.opacity)},rgb(){var s=this.h%360+360*(this.h<0),l=isNaN(s)||isNaN(this.s)?0:this.s,f=this.l,m=f+(f<.5?f:1-f)*l,b=2*f-m;return new k(he(s>=240?s-240:s+120,b,m),he(s,b,m),he(s<120?s+240:s-120,b,m),this.opacity)},clamp(){return new z(H(this.h),oe(this.s),oe(this.l),Re(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const s=Re(this.opacity);return`${1===s?"hsl(":"hsla("}${H(this.h)}, ${100*oe(this.s)}%, ${100*oe(this.l)}%${1===s?")":`, ${s})`}`}}));const ot=s=>()=>s;function ze(s,l){return function(f){return s+f*l}}function jt(s,l){var f=l-s;return f?ze(s,f):ot(isNaN(s)?l:s)}const Dt=function s(l){var f=function En(s){return 1==(s=+s)?jt:function(l,f){return f-l?function Pt(s,l,f){return s=Math.pow(s,f),l=Math.pow(l,f)-s,f=1/f,function(m){return Math.pow(s+m*l,f)}}(l,f,s):ot(isNaN(l)?f:l)}}(l);function m(b,v){var C=f((b=Is(b)).r,(v=Is(v)).r),T=f(b.g,v.g),E=f(b.b,v.b),F=jt(b.opacity,v.opacity);return function(B){return b.r=C(B),b.g=T(B),b.b=E(B),b.opacity=F(B),b+""}}return m.gamma=s,m}(1);function Pc(s){return function(l){var C,T,f=l.length,m=new Array(f),b=new Array(f),v=new Array(f);for(C=0;C<f;++C)T=Is(l[C]),m[C]=T.r||0,b[C]=T.g||0,v[C]=T.b||0;return m=s(m),b=s(b),v=s(v),T.opacity=1,function(E){return T.r=m(E),T.g=b(E),T.b=v(E),T+""}}}Pc(function ie(s){var l=s.length-1;return function(f){var m=f<=0?f=0:f>=1?(f=1,l-1):Math.floor(f*l),b=s[m],v=s[m+1];return Pe((f-m/l)*l,m>0?s[m-1]:2*b-v,b,v,m<l-1?s[m+2]:2*v-b)}}),Pc(function me(s){var l=s.length;return function(f){var m=Math.floor(((f%=1)<0?++f:f)*l);return Pe((f-m/l)*l,s[(m+l-1)%l],s[m%l],s[(m+1)%l],s[(m+2)%l])}});var ta=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bl=new RegExp(ta.source,"g");function fo(s,l){var m,b,v,f=ta.lastIndex=bl.lastIndex=0,C=-1,T=[],E=[];for(s+="",l+="";(m=ta.exec(s))&&(b=bl.exec(l));)(v=b.index)>f&&(v=l.slice(f,v),T[C]?T[C]+=v:T[++C]=v),(m=m[0])===(b=b[0])?T[C]?T[C]+=b:T[++C]=b:(T[++C]=null,E.push({i:C,x:Xi(m,b)})),f=bl.lastIndex;return f<l.length&&(v=l.slice(f),T[C]?T[C]+=v:T[++C]=v),T.length<2?E[0]?function cr(s){return function(l){return s(l)+""}}(E[0].x):function lc(s){return function(){return s}}(l):(l=E.length,function(F){for(var ee,B=0;B<l;++B)T[(ee=E[B]).i]=ee.x(F);return T.join("")})}function Ra(s,l){var f;return("number"==typeof l?Xi:l instanceof $o?Dt:(f=$o(l))?(l=f,Dt):fo)(s,l)}function mo(s){return function(){this.removeAttribute(s)}}function Qr(s){return function(){this.removeAttributeNS(s.space,s.local)}}function jm(s,l,f){var m,v,b=f+"";return function(){var C=this.getAttribute(s);return C===b?null:C===m?v:v=l(m=C,f)}}function Ci(s,l,f){var m,v,b=f+"";return function(){var C=this.getAttributeNS(s.space,s.local);return C===b?null:C===m?v:v=l(m=C,f)}}function Ix(s,l,f){var m,b,v;return function(){var C,E,T=f(this);return null==T?void this.removeAttribute(s):(C=this.getAttribute(s))===(E=T+"")?null:C===m&&E===b?v:(b=E,v=l(m=C,T))}}function Fh(s,l,f){var m,b,v;return function(){var C,E,T=f(this);return null==T?void this.removeAttributeNS(s.space,s.local):(C=this.getAttributeNS(s.space,s.local))===(E=T+"")?null:C===m&&E===b?v:(b=E,v=l(m=C,T))}}function yl(s,l){var f,m;function b(){var v=l.apply(this,arguments);return v!==m&&(f=(m=v)&&function Kd(s,l){return function(f){this.setAttributeNS(s.space,s.local,l.call(this,f))}}(s,v)),f}return b._value=l,b}function Jr(s,l){var f,m;function b(){var v=l.apply(this,arguments);return v!==m&&(f=(m=v)&&function qd(s,l){return function(f){this.setAttribute(s,l.call(this,f))}}(s,v)),f}return b._value=l,b}function jo(s,l){return function(){Di(this,s).delay=+l.apply(this,arguments)}}function As(s,l){return l=+l,function(){Di(this,s).delay=l}}function cd(s,l){return function(){zn(this,s).duration=+l.apply(this,arguments)}}function Xd(s,l){return l=+l,function(){zn(this,s).duration=l}}var $x=or.prototype.constructor;function Rh(s){return function(){this.style.removeProperty(s)}}var fs=0;function na(s,l,f,m){this._groups=s,this._parents=l,this._name=f,this._id=m}function lr(){return++fs}var Pa=or.prototype;na.prototype=function qm(s){return or().transition(s)}.prototype={constructor:na,select:function Hx(s){var l=this._name,f=this._id;"function"!=typeof s&&(s=pt(s));for(var m=this._groups,b=m.length,v=new Array(b),C=0;C<b;++C)for(var B,ee,T=m[C],E=T.length,F=v[C]=new Array(E),Y=0;Y<E;++Y)(B=T[Y])&&(ee=s.call(B,B.__data__,Y,T))&&("__data__"in B&&(ee.__data__=B.__data__),F[Y]=ee,Tn(F[Y],l,f,Y,F,Fn(B,f)));return new na(v,this._parents,l,f)},selectAll:function zx(s){var l=this._name,f=this._id;"function"!=typeof s&&(s=nn(s));for(var m=this._groups,b=m.length,v=[],C=[],T=0;T<b;++T)for(var B,E=m[T],F=E.length,ee=0;ee<F;++ee)if(B=E[ee]){for(var se,Y=s.call(B,B.__data__,ee,E),ct=Fn(B,f),Vt=0,xe=Y.length;Vt<xe;++Vt)(se=Y[Vt])&&Tn(se,l,f,Vt,Y,ct);v.push(Y),C.push(B)}return new na(v,C,l,f)},selectChild:Pa.selectChild,selectChildren:Pa.selectChildren,filter:function Ox(s){"function"!=typeof s&&(s=Ue(s));for(var l=this._groups,f=l.length,m=new Array(f),b=0;b<f;++b)for(var E,v=l[b],C=v.length,T=m[b]=[],F=0;F<C;++F)(E=v[F])&&s.call(E,E.__data__,F,v)&&T.push(E);return new na(m,this._parents,this._name,this._id)},merge:function Rx(s){if(s._id!==this._id)throw new Error;for(var l=this._groups,f=s._groups,m=l.length,v=Math.min(m,f.length),C=new Array(m),T=0;T<v;++T)for(var Y,E=l[T],F=f[T],B=E.length,ee=C[T]=new Array(B),se=0;se<B;++se)(Y=E[se]||F[se])&&(ee[se]=Y);for(;T<m;++T)C[T]=l[T];return new na(C,this._parents,this._name,this._id)},selection:function jx(){return new $x(this._groups,this._parents)},transition:function Ph(){for(var s=this._name,l=this._id,f=lr(),m=this._groups,b=m.length,v=0;v<b;++v)for(var E,C=m[v],T=C.length,F=0;F<T;++F)if(E=C[F]){var B=Fn(E,l);Tn(E,s,f,F,C,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new na(m,this._parents,s,f)},call:Pa.call,nodes:Pa.nodes,node:Pa.node,size:Pa.size,empty:Pa.empty,each:Pa.each,on:function Nx(s,l){var f=this._id;return arguments.length<2?Fn(this.node(),f).on.on(s):this.each(function Lx(s,l,f){var m,b,v=function Px(s){return(s+"").trim().split(/^|\s+/).every(function(l){var f=l.indexOf(".");return f>=0&&(l=l.slice(0,f)),!l||"start"===l})}(l)?Di:zn;return function(){var C=v(this,s),T=C.on;T!==m&&(b=(m=T).copy()).on(l,f),C.on=b}}(f,s,l))},attr:function Um(s,l){var f=et(s),m="transform"===f?Oa:Ra;return this.attrTween(s,"function"==typeof l?(f.local?Fh:Ix)(f,m,Oc(this,"attr."+s,l)):null==l?(f.local?Qr:mo)(f):(f.local?Ci:jm)(f,m,l))},attrTween:function Ax(s,l){var f="attr."+s;if(arguments.length<2)return(f=this.tween(f))&&f._value;if(null==l)return this.tween(f,null);if("function"!=typeof l)throw new Error;var m=et(s);return this.tween(f,(m.local?yl:Jr)(m,l))},style:function Yx(s,l,f){var m="transform"==(s+="")?Fa:Ra;return null==l?this.styleTween(s,function Ux(s,l){var f,m,b;return function(){var v=Vr(this,s),C=(this.style.removeProperty(s),Vr(this,s));return v===C?null:v===f&&C===m?b:b=l(f=v,m=C)}}(s,m)).on("end.style."+s,Rh(s)):"function"==typeof l?this.styleTween(s,function Wx(s,l,f){var m,b,v;return function(){var C=Vr(this,s),T=f(this),E=T+"";return null==T&&(this.style.removeProperty(s),E=T=Vr(this,s)),C===E?null:C===m&&E===b?v:(b=E,v=l(m=C,T))}}(s,m,Oc(this,"style."+s,l))).each(function Gx(s,l){var f,m,b,T,v="style."+l,C="end."+v;return function(){var E=zn(this,s),F=E.on,B=null==E.value[v]?T||(T=Rh(l)):void 0;(F!==f||b!==B)&&(m=(f=F).copy()).on(C,b=B),E.on=m}}(this._id,s)):this.styleTween(s,function Wm(s,l,f){var m,v,b=f+"";return function(){var C=Vr(this,s);return C===b?null:C===m?v:v=l(m=C,f)}}(s,m,l),f).on("end.style."+s,null)},styleTween:function kr(s,l,f){var m="style."+(s+="");if(arguments.length<2)return(m=this.tween(m))&&m._value;if(null==l)return this.tween(m,null);if("function"!=typeof l)throw new Error;return this.tween(m,function Db(s,l,f){var m,b;function v(){var C=l.apply(this,arguments);return C!==b&&(m=(b=C)&&function Lc(s,l,f){return function(m){this.style.setProperty(s,l.call(this,m),f)}}(s,C,f)),m}return v._value=l,v}(s,l,f??""))},text:function Tb(s){return this.tween("text","function"==typeof s?function Mb(s){return function(){var l=s(this);this.textContent=l??""}}(Oc(this,"text",s)):function Gm(s){return function(){this.textContent=s}}(null==s?"":s+""))},textTween:function Eb(s){var l="text";if(arguments.length<1)return(l=this.tween(l))&&l._value;if(null==s)return this.tween(l,null);if("function"!=typeof s)throw new Error;return this.tween(l,function Zm(s){var l,f;function m(){var b=s.apply(this,arguments);return b!==f&&(l=(f=b)&&function Ym(s){return function(l){this.textContent=s.call(this,l)}}(b)),l}return m._value=s,m}(s))},remove:function Vx(){return this.on("end.remove",function Bx(s){return function(){var l=this.parentNode;for(var f in this.__transition)if(+f!==s)return;l&&l.removeChild(this)}}(this._id))},tween:function _l(s,l){var f=this._id;if(s+="",arguments.length<2){for(var C,m=Fn(this.node(),f).tween,b=0,v=m.length;b<v;++b)if((C=m[b]).name===s)return C.value;return null}return this.each((null==l?sc:sd)(f,s,l))},delay:function Oh(s){var l=this._id;return arguments.length?this.each(("function"==typeof s?jo:As)(l,s)):Fn(this.node(),l).delay},duration:function Fs(s){var l=this._id;return arguments.length?this.each(("function"==typeof s?cd:Xd)(l,s)):Fn(this.node(),l).duration},ease:function Fx(s){var l=this._id;return arguments.length?this.each(function Cb(s,l){if("function"!=typeof l)throw new Error;return function(){zn(this,s).ease=l}}(l,s)):Fn(this.node(),l).ease},easeVarying:function wb(s){if("function"!=typeof s)throw new Error;return this.each(function xb(s,l){return function(){var f=l.apply(this,arguments);if("function"!=typeof f)throw new Error;zn(this,s).ease=f}}(this._id,s))},end:function kb(){var s,l,f=this,m=f._id,b=f.size();return new Promise(function(v,C){var T={value:C},E={value:function(){0==--b&&v()}};f.each(function(){var F=zn(this,m),B=F.on;B!==s&&((l=(s=B).copy())._.cancel.push(T),l._.interrupt.push(T),l._.end.push(E)),F.on=l}),0===b&&v()})},[Symbol.iterator]:Pa[Symbol.iterator]};var Km={time:null,delay:0,duration:250,ease:function Sb(s){return((s*=2)<=1?s*s*s:(s-=2)*s*s+2)/2}};function vl(s,l){for(var f;!(f=s.__transition)||!(f=f[l]);)if(!(s=s.parentNode))throw new Error(`transition ${l} not found`);return f}or.prototype.interrupt=function Bo(s){return this.each(function(){!function bt(s,l){var m,b,C,f=s.__transition,v=!0;if(f){for(C in l=null==l?null:l+"",f)(m=f[C]).name===l?(b=m.state>Ts&&m.state<Oe,m.state=nt,m.timer.stop(),m.on.call(b?"interrupt":"cancel",s,s.__data__,m.index,m.group),delete f[C]):v=!1;v&&delete s.__transition}}(this,s)})},or.prototype.transition=function Uo(s){var l,f;s instanceof na?(l=s._id,s=s._name):(l=lr(),(f=Km).time=Xs(),s=null==s?null:s+"");for(var m=this._groups,b=m.length,v=0;v<b;++v)for(var E,C=m[v],T=C.length,F=0;F<T;++F)(E=C[F])&&Tn(E,s,l,F,C,f||vl(E,l));return new na(m,this._parents,s,l)};Math;function Ot(s){return{type:s}}function eo(s){if(!s.ok)throw new Error(s.status+" "+s.statusText);return s.text()}function tu(s){return(l,f)=>function La(s,l){return fetch(s,l).then(eo)}(l,f).then(m=>(new DOMParser).parseFromString(m,s))}["w","e"].map(Ot),["n","s"].map(Ot),["n","w","e","s","nw","ne","sw","se"].map(Ot),tu("application/xml"),tu("text/html");var Ab=tu("image/svg+xml");const rp=Math.PI/180,Fb=180/Math.PI,iu=.96422,ru=1,Vh=.82521,ou=4/29,wl=6/29,Hh=3*wl*wl,zh=wl*wl*wl;function $h(s){if(s instanceof ps)return new ps(s.l,s.a,s.b,s.opacity);if(s instanceof oa)return su(s);s instanceof k||(s=Xr(s));var v,C,l=Ir(s.r),f=Ir(s.g),m=Ir(s.b),b=dd((.2225045*l+.7168786*f+.0606169*m)/ru);return l===f&&f===m?v=C=b:(v=dd((.4360747*l+.3850649*f+.1430804*m)/iu),C=dd((.0139322*l+.0971045*f+.7141733*m)/Vh)),new ps(116*b-16,500*(v-b),200*(b-C),s.opacity)}function ps(s,l,f,m){this.l=+s,this.a=+l,this.b=+f,this.opacity=+m}function dd(s){return s>zh?Math.pow(s,1/3):s/Hh+ou}function jh(s){return s>wl?s*s*s:Hh*(s-ou)}function Uh(s){return 255*(s<=.0031308?12.92*s:1.055*Math.pow(s,1/2.4)-.055)}function Ir(s){return(s/=255)<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)}function hc(s,l,f,m){return 1===arguments.length?function uc(s){if(s instanceof oa)return new oa(s.h,s.c,s.l,s.opacity);if(s instanceof ps||(s=$h(s)),0===s.a&&0===s.b)return new oa(NaN,0<s.l&&s.l<100?0:NaN,s.l,s.opacity);var l=Math.atan2(s.b,s.a)*Fb;return new oa(l<0?l+360:l,Math.sqrt(s.a*s.a+s.b*s.b),s.l,s.opacity)}(s):new oa(s,l,f,m??1)}function oa(s,l,f,m){this.h=+s,this.c=+l,this.l=+f,this.opacity=+m}function su(s){if(isNaN(s.h))return new ps(s.l,0,0,s.opacity);var l=s.h*rp;return new ps(s.l,Math.cos(l)*s.c,Math.sin(l)*s.c,s.opacity)}function sp(s){return function(l,f){var m=s((l=hc(l)).h,(f=hc(f)).h),b=jt(l.c,f.c),v=jt(l.l,f.l),C=jt(l.opacity,f.opacity);return function(T){return l.h=m(T),l.c=b(T),l.l=v(T),l.opacity=C(T),l+""}}}Es(ps,function op(s,l,f,m){return 1===arguments.length?$h(s):new ps(s,l,f,m??1)},us(jr,{brighter(s){return new ps(this.l+18*(s??1),this.a,this.b,this.opacity)},darker(s){return new ps(this.l-18*(s??1),this.a,this.b,this.opacity)},rgb(){var s=(this.l+16)/116,l=isNaN(this.a)?s:s+this.a/500,f=isNaN(this.b)?s:s-this.b/200;return new k(Uh(3.1338561*(l=iu*jh(l))-1.6168667*(s=ru*jh(s))-.4906146*(f=Vh*jh(f))),Uh(-.9787684*l+1.9161415*s+.033454*f),Uh(.0719453*l-.2289914*s+1.4052427*f),this.opacity)}})),Es(oa,hc,us(jr,{brighter(s){return new oa(this.h,this.c,this.l+18*(s??1),this.opacity)},darker(s){return new oa(this.h,this.c,this.l-18*(s??1),this.opacity)},rgb(){return su(this).rgb()}}));const Rb=sp(function rn(s,l){var f=l-s;return f?ze(s,f>180||f<-180?f-360*Math.round(f/360):f):ot(isNaN(s)?l:s)});sp(jt);const au=Math.sqrt(50),cu=Math.sqrt(10),lu=Math.sqrt(2);function Dl(s,l,f){const m=(l-s)/Math.max(0,f),b=Math.floor(Math.log10(m)),v=m/Math.pow(10,b),C=v>=au?10:v>=cu?5:v>=lu?2:1;let T,E,F;return b<0?(F=Math.pow(10,-b)/C,T=Math.round(s*F),E=Math.round(l*F),T/F<s&&++T,E/F>l&&--E,F=-F):(F=Math.pow(10,b)*C,T=Math.round(s/F),E=Math.round(l/F),T*F<s&&++T,E*F>l&&--E),E<T&&.5<=f&&f<2?Dl(s,l,2*f):[T,E,F]}function Wh(s,l,f){return Dl(s=+s,l=+l,f=+f)[2]}function fc(s,l,f){f=+f;const m=(l=+l)<(s=+s),b=m?Wh(l,s,f):Wh(s,l,f);return(m?-1:1)*(b<0?1/-b:b)}function mc(s,l){return null==s||null==l?NaN:s<l?-1:s>l?1:s>=l?0:NaN}function Pb(s,l){return null==s||null==l?NaN:l<s?-1:l>s?1:l>=s?0:NaN}function cp(s){let l,f,m;function b(T,E,F=0,B=T.length){if(F<B){if(0!==l(E,E))return B;do{const ee=F+B>>>1;f(T[ee],E)<0?F=ee+1:B=ee}while(F<B)}return F}return 2!==s.length?(l=mc,f=(T,E)=>mc(s(T),E),m=(T,E)=>s(T)-E):(l=s===mc||s===Pb?s:Gh,f=s,m=s),{left:b,center:function C(T,E,F=0,B=T.length){const ee=b(T,E,F,B-1);return ee>F&&m(T[ee-1],E)>-m(T[ee],E)?ee-1:ee},right:function v(T,E,F=0,B=T.length){if(F<B){if(0!==l(E,E))return B;do{const ee=F+B>>>1;f(T[ee],E)<=0?F=ee+1:B=ee}while(F<B)}return F}}}function Gh(){return 0}const Qx=cp(mc).right,up=(cp(function Kx(s){return null===s?NaN:+s}),Qx);function Ml(s,l){var C,f=l?l.length:0,m=s?Math.min(f,s.length):0,b=new Array(m),v=new Array(f);for(C=0;C<m;++C)b[C]=Tl(s[C],l[C]);for(;C<f;++C)v[C]=l[C];return function(T){for(C=0;C<m;++C)v[C]=b[C](T);return v}}function hp(s,l){var f=new Date;return s=+s,l=+l,function(m){return f.setTime(s*(1-m)+l*m),f}}function fp(s,l){var b,f={},m={};for(b in(null===s||"object"!=typeof s)&&(s={}),(null===l||"object"!=typeof l)&&(l={}),l)b in s?f[b]=Tl(s[b],l[b]):m[b]=l[b];return function(v){for(b in f)m[b]=f[b](v);return m}}function du(s,l){l||(l=[]);var b,f=s?Math.min(l.length,s.length):0,m=l.slice();return function(v){for(b=0;b<f;++b)m[b]=s[b]*(1-v)+l[b]*v;return m}}function Tl(s,l){var m,f=typeof l;return null==l||"boolean"===f?ot(l):("number"===f?Xi:"string"===f?(m=$o(l))?(l=m,Dt):fo:l instanceof $o?Dt:l instanceof Date?hp:function Nb(s){return ArrayBuffer.isView(s)&&!(s instanceof DataView)}(l)?du:Array.isArray(l)?Ml:"function"!=typeof l.valueOf&&"function"!=typeof l.toString||isNaN(l)?fp:Xi)(s,l)}function Yh(s,l){return s=+s,l=+l,function(f){return Math.round(s*(1-f)+l*f)}}function Jx(s){return+s}var Zh=[0,1];function Bc(s){return s}function qh(s,l){return(l-=s=+s)?function(f){return(f-s)/l}:function uu(s){return function(){return s}}(isNaN(l)?NaN:.5)}function Bb(s,l,f){var m=s[0],b=s[1],v=l[0],C=l[1];return b<m?(m=qh(b,m),v=f(C,v)):(m=qh(m,b),v=f(v,C)),function(T){return v(m(T))}}function hu(s,l,f){var m=Math.min(s.length,l.length)-1,b=new Array(m),v=new Array(m),C=-1;for(s[m]<s[0]&&(s=s.slice().reverse(),l=l.slice().reverse());++C<m;)b[C]=qh(s[C],s[C+1]),v[C]=f(l[C],l[C+1]);return function(T){var E=up(s,T,1,m)-1;return v[E](b[E](T))}}function fu(s,l){return l.domain(s.domain()).range(s.range()).interpolate(s.interpolate()).clamp(s.clamp()).unknown(s.unknown())}function mu(){return function mp(){var m,b,v,T,E,F,s=Zh,l=Zh,f=Tl,C=Bc;function B(){var Y=Math.min(s.length,l.length);return C!==Bc&&(C=function sa(s,l){var f;return s>l&&(f=s,s=l,l=f),function(m){return Math.max(s,Math.min(l,m))}}(s[0],s[Y-1])),T=Y>2?hu:Bb,E=F=null,ee}function ee(Y){return null==Y||isNaN(Y=+Y)?v:(E||(E=T(s.map(m),l,f)))(m(C(Y)))}return ee.invert=function(Y){return C(b((F||(F=T(l,s.map(m),Xi)))(Y)))},ee.domain=function(Y){return arguments.length?(s=Array.from(Y,Jx),B()):s.slice()},ee.range=function(Y){return arguments.length?(l=Array.from(Y),B()):l.slice()},ee.rangeRound=function(Y){return l=Array.from(Y),f=Yh,B()},ee.clamp=function(Y){return arguments.length?(C=!!Y||Bc,B()):C!==Bc},ee.interpolate=function(Y){return arguments.length?(f=Y,B()):f},ee.unknown=function(Y){return arguments.length?(v=Y,ee):v},function(Y,se){return m=Y,b=se,B()}}()(Bc,Bc)}function ud(s,l){switch(arguments.length){case 0:break;case 1:this.range(s);break;default:this.range(l).domain(s)}return this}var Hc,pp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hd(s){if(!(l=pp.exec(s)))throw new Error("invalid format: "+s);var l;return new pu({fill:l[1],align:l[2],sign:l[3],symbol:l[4],zero:l[5],width:l[6],comma:l[7],precision:l[8]&&l[8].slice(1),trim:l[9],type:l[10]})}function pu(s){this.fill=void 0===s.fill?" ":s.fill+"",this.align=void 0===s.align?">":s.align+"",this.sign=void 0===s.sign?"-":s.sign+"",this.symbol=void 0===s.symbol?"":s.symbol+"",this.zero=!!s.zero,this.width=void 0===s.width?void 0:+s.width,this.comma=!!s.comma,this.precision=void 0===s.precision?void 0:+s.precision,this.trim=!!s.trim,this.type=void 0===s.type?"":s.type+""}function gu(s,l){if((f=(s=l?s.toExponential(l-1):s.toExponential()).indexOf("e"))<0)return null;var f,m=s.slice(0,f);return[m.length>1?m[0]+m.slice(2):m,+s.slice(f+1)]}function Na(s){return(s=gu(Math.abs(s)))?s[1]:NaN}function ai(s,l){var f=gu(s,l);if(!f)return s+"";var m=f[0],b=f[1];return b<0?"0."+new Array(-b).join("0")+m:m.length>b+1?m.slice(0,b+1)+"."+m.slice(b+1):m+new Array(b-m.length+2).join("0")}hd.prototype=pu.prototype,pu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const _u={"%":(s,l)=>(100*s).toFixed(l),b:s=>Math.round(s).toString(2),c:s=>s+"",d:function gp(s){return Math.abs(s=Math.round(s))>=1e21?s.toLocaleString("en").replace(/,/g,""):s.toString(10)},e:(s,l)=>s.toExponential(l),f:(s,l)=>s.toFixed(l),g:(s,l)=>s.toPrecision(l),o:s=>Math.round(s).toString(8),p:(s,l)=>ai(100*s,l),r:ai,s:function Hb(s,l){var f=gu(s,l);if(!f)return s+"";var m=f[0],b=f[1],v=b-(Hc=3*Math.max(-8,Math.min(8,Math.floor(b/3))))+1,C=m.length;return v===C?m:v>C?m+new Array(v-C+1).join("0"):v>0?m.slice(0,v)+"."+m.slice(v):"0."+new Array(1-v).join("0")+gu(s,Math.max(0,l+v-1))[0]},X:s=>Math.round(s).toString(16).toUpperCase(),x:s=>Math.round(s).toString(16)};function yp(s){return s}var Ba,zc,Xh,Kh=Array.prototype.map,Os=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function De(s){var l=s.domain;return s.ticks=function(f){var m=l();return function ap(s,l,f){if(!((f=+f)>0))return[];if((s=+s)==(l=+l))return[s];const m=l<s,[b,v,C]=m?Dl(l,s,f):Dl(s,l,f);if(!(v>=b))return[];const T=v-b+1,E=new Array(T);if(m)if(C<0)for(let F=0;F<T;++F)E[F]=(v-F)/-C;else for(let F=0;F<T;++F)E[F]=(v-F)*C;else if(C<0)for(let F=0;F<T;++F)E[F]=(b+F)/-C;else for(let F=0;F<T;++F)E[F]=(b+F)*C;return E}(m[0],m[m.length-1],f??10)},s.tickFormat=function(f,m){var b=l();return function zb(s,l,f,m){var v,b=fc(s,l,f);switch((m=hd(m??",f")).type){case"s":var C=Math.max(Math.abs(s),Math.abs(l));return null==m.precision&&!isNaN(v=function Vc(s,l){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Na(l)/3)))-Na(Math.abs(s)))}(b,C))&&(m.precision=v),Xh(m,C);case"":case"e":case"g":case"p":case"r":null==m.precision&&!isNaN(v=function kl(s,l){return s=Math.abs(s),l=Math.abs(l)-s,Math.max(0,Na(l)-Na(s))+1}(b,Math.max(Math.abs(s),Math.abs(l))))&&(m.precision=v-("e"===m.type));break;case"f":case"%":null==m.precision&&!isNaN(v=function tw(s){return Math.max(0,-Na(Math.abs(s)))}(b))&&(m.precision=v-2*("%"===m.type))}return zc(m)}(b[0],b[b.length-1],f??10,m)},s.nice=function(f){null==f&&(f=10);var E,F,m=l(),b=0,v=m.length-1,C=m[b],T=m[v],B=10;for(T<C&&(F=C,C=T,T=F,F=b,b=v,v=F);B-- >0;){if((F=Wh(C,T,f))===E)return m[b]=C,m[v]=T,l(m);if(F>0)C=Math.floor(C/F)*F,T=Math.ceil(T/F)*F;else{if(!(F<0))break;C=Math.ceil(C*F)/F,T=Math.floor(T*F)/F}E=F}return s},s}function $b(){var s=mu();return s.copy=function(){return fu(s,$b())},ud.apply(s,arguments),De(s)}!function Qh(s){Ba=function El(s){var l=void 0===s.grouping||void 0===s.thousands?yp:function Vb(s,l){return function(f,m){for(var b=f.length,v=[],C=0,T=s[0],E=0;b>0&&T>0&&(E+T+1>m&&(T=Math.max(1,m-E)),v.push(f.substring(b-=T,b+T)),!((E+=T+1)>m));)T=s[C=(C+1)%s.length];return v.reverse().join(l)}}(Kh.call(s.grouping,Number),s.thousands+""),f=void 0===s.currency?"":s.currency[0]+"",m=void 0===s.currency?"":s.currency[1]+"",b=void 0===s.decimal?".":s.decimal+"",v=void 0===s.numerals?yp:function _p(s){return function(l){return l.replace(/[0-9]/g,function(f){return s[+f]})}}(Kh.call(s.numerals,String)),C=void 0===s.percent?"%":s.percent+"",T=void 0===s.minus?"\u2212":s.minus+"",E=void 0===s.nan?"NaN":s.nan+"";function F(ee){var Y=(ee=hd(ee)).fill,se=ee.align,ct=ee.sign,Vt=ee.symbol,xe=ee.zero,ue=ee.width,rt=ee.comma,Fe=ee.precision,Xe=ee.trim,lt=ee.type;"n"===lt?(rt=!0,lt="g"):_u[lt]||(void 0===Fe&&(Fe=12),Xe=!0,lt="g"),(xe||"0"===Y&&"="===se)&&(xe=!0,Y="0",se="=");var $e="$"===Vt?f:"#"===Vt&&/[boxX]/.test(lt)?"0"+lt.toLowerCase():"",en="$"===Vt?m:/[%p]/.test(lt)?C:"",wn=_u[lt],qn=/[defgprs%]/.test(lt);function yn(ft){var G,st,Ce,un=$e,We=en;if("c"===lt)We=wn(ft)+We,ft="";else{var Qe=(ft=+ft)<0||1/ft<0;if(ft=isNaN(ft)?E:wn(Math.abs(ft),Fe),Xe&&(ft=function bp(s){e:for(var b,l=s.length,f=1,m=-1;f<l;++f)switch(s[f]){case".":m=b=f;break;case"0":0===m&&(m=f),b=f;break;default:if(!+s[f])break e;m>0&&(m=0)}return m>0?s.slice(0,m)+s.slice(b+1):s}(ft)),Qe&&0==+ft&&"+"!==ct&&(Qe=!1),un=(Qe?"("===ct?ct:T:"-"===ct||"("===ct?"":ct)+un,We=("s"===lt?Os[8+Hc/3]:"")+We+(Qe&&"("===ct?")":""),qn)for(G=-1,st=ft.length;++G<st;)if(48>(Ce=ft.charCodeAt(G))||Ce>57){We=(46===Ce?b+ft.slice(G+1):ft.slice(G))+We,ft=ft.slice(0,G);break}}rt&&!xe&&(ft=l(ft,1/0));var At=un.length+ft.length+We.length,vt=At<ue?new Array(ue-At+1).join(Y):"";switch(rt&&xe&&(ft=l(vt+ft,vt.length?ue-We.length:1/0),vt=""),se){case"<":ft=un+ft+We+vt;break;case"=":ft=un+vt+ft+We;break;case"^":ft=vt.slice(0,At=vt.length>>1)+un+ft+We+vt.slice(At);break;default:ft=vt+un+ft+We}return v(ft)}return Fe=void 0===Fe?6:/[gprs]/.test(lt)?Math.max(1,Math.min(21,Fe)):Math.max(0,Math.min(20,Fe)),yn.toString=function(){return ee+""},yn}return{format:F,formatPrefix:function B(ee,Y){var se=F(((ee=hd(ee)).type="f",ee)),ct=3*Math.max(-8,Math.min(8,Math.floor(Na(Y)/3))),Vt=Math.pow(10,-ct),xe=Os[8+ct/3];return function(ue){return se(Vt*ue)+xe}}}}(s),zc=Ba.format,Xh=Ba.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class jb extends Map{constructor(l,f=Gb){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),null!=l)for(const[m,b]of l)this.set(m,b)}get(l){return super.get(vp(this,l))}has(l){return super.has(vp(this,l))}set(l,f){return super.set(Ub(this,l),f)}delete(l){return super.delete(Wb(this,l))}}class FA extends Set{constructor(l,f=Gb){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),null!=l)for(const m of l)this.add(m)}has(l){return super.has(vp(this,l))}add(l){return super.add(Ub(this,l))}delete(l){return super.delete(Wb(this,l))}}function vp({_intern:s,_key:l},f){const m=l(f);return s.has(m)?s.get(m):f}function Ub({_intern:s,_key:l},f){const m=l(f);return s.has(m)?s.get(m):(s.set(m,f),f)}function Wb({_intern:s,_key:l},f){const m=l(f);return s.has(m)&&(f=s.get(m),s.delete(m)),f}function Gb(s){return null!==s&&"object"==typeof s?s.valueOf():s}const Sl=Symbol("implicit");function Yb(){var s=new jb,l=[],f=[],m=Sl;function b(v){let C=s.get(v);if(void 0===C){if(m!==Sl)return m;s.set(v,C=l.push(v)-1)}return f[C%f.length]}return b.domain=function(v){if(!arguments.length)return l.slice();l=[],s=new jb;for(const C of v)s.has(C)||s.set(C,l.push(C)-1);return b},b.range=function(v){return arguments.length?(f=Array.from(v),b):f.slice()},b.unknown=function(v){return arguments.length?(m=v,b):m},b.copy=function(){return Yb(l,f).unknown(m)},ud.apply(b,arguments),b}const pc=1e3,ni=60*pc,Rs=60*ni,Go=24*Rs,Jh=7*Go,Yo=30*Go,Va=365*Go,bu=new Date,Il=new Date;function Si(s,l,f,m){function b(v){return s(v=0===arguments.length?new Date:new Date(+v)),v}return b.floor=v=>(s(v=new Date(+v)),v),b.ceil=v=>(s(v=new Date(v-1)),l(v,1),s(v),v),b.round=v=>{const C=b(v),T=b.ceil(v);return v-C<T-v?C:T},b.offset=(v,C)=>(l(v=new Date(+v),null==C?1:Math.floor(C)),v),b.range=(v,C,T)=>{const E=[];if(v=b.ceil(v),T=null==T?1:Math.floor(T),!(v<C&&T>0))return E;let F;do{E.push(F=new Date(+v)),l(v,T),s(v)}while(F<v&&v<C);return E},b.filter=v=>Si(C=>{if(C>=C)for(;s(C),!v(C);)C.setTime(C-1)},(C,T)=>{if(C>=C)if(T<0)for(;++T<=0;)for(;l(C,-1),!v(C););else for(;--T>=0;)for(;l(C,1),!v(C););}),f&&(b.count=(v,C)=>(bu.setTime(+v),Il.setTime(+C),s(bu),s(Il),Math.floor(f(bu,Il))),b.every=v=>(v=Math.floor(v),isFinite(v)&&v>0?v>1?b.filter(m?C=>m(C)%v==0:C=>b.count(0,C)%v==0):b:null)),b}const yu=Si(()=>{},(s,l)=>{s.setTime(+s+l)},(s,l)=>l-s);yu.every=s=>(s=Math.floor(s),isFinite(s)&&s>0?s>1?Si(l=>{l.setTime(Math.floor(l/s)*s)},(l,f)=>{l.setTime(+l+f*s)},(l,f)=>(f-l)/s):yu:null);const Al=Si(s=>{s.setTime(s-s.getMilliseconds())},(s,l)=>{s.setTime(+s+l*pc)},(s,l)=>(l-s)/pc,s=>s.getUTCSeconds()),Wr=Si(s=>{s.setTime(s-s.getMilliseconds()-s.getSeconds()*pc)},(s,l)=>{s.setTime(+s+l*ni)},(s,l)=>(l-s)/ni,s=>s.getMinutes()),$c=Si(s=>{s.setUTCSeconds(0,0)},(s,l)=>{s.setTime(+s+l*ni)},(s,l)=>(l-s)/ni,s=>s.getUTCMinutes()),fd=Si(s=>{s.setTime(s-s.getMilliseconds()-s.getSeconds()*pc-s.getMinutes()*ni)},(s,l)=>{s.setTime(+s+l*Rs)},(s,l)=>(l-s)/Rs,s=>s.getHours()),xp=Si(s=>{s.setUTCMinutes(0,0,0)},(s,l)=>{s.setTime(+s+l*Rs)},(s,l)=>(l-s)/Rs,s=>s.getUTCHours()),Fl=Si(s=>s.setHours(0,0,0,0),(s,l)=>s.setDate(s.getDate()+l),(s,l)=>(l-s-(l.getTimezoneOffset()-s.getTimezoneOffset())*ni)/Go,s=>s.getDate()-1),ef=Si(s=>{s.setUTCHours(0,0,0,0)},(s,l)=>{s.setUTCDate(s.getUTCDate()+l)},(s,l)=>(l-s)/Go,s=>s.getUTCDate()-1),md=Si(s=>{s.setUTCHours(0,0,0,0)},(s,l)=>{s.setUTCDate(s.getUTCDate()+l)},(s,l)=>(l-s)/Go,s=>Math.floor(s/Go));function po(s){return Si(l=>{l.setDate(l.getDate()-(l.getDay()+7-s)%7),l.setHours(0,0,0,0)},(l,f)=>{l.setDate(l.getDate()+7*f)},(l,f)=>(f-l-(f.getTimezoneOffset()-l.getTimezoneOffset())*ni)/Jh)}const Ol=po(0),gc=po(1),aa=(po(2),po(3),po(4));function jc(s){return Si(l=>{l.setUTCDate(l.getUTCDate()-(l.getUTCDay()+7-s)%7),l.setUTCHours(0,0,0,0)},(l,f)=>{l.setUTCDate(l.getUTCDate()+7*f)},(l,f)=>(f-l)/Jh)}po(5),po(6);const Tp=jc(0),xu=jc(1),Ha=(jc(2),jc(3),jc(4)),nf=(jc(5),jc(6),Si(s=>{s.setDate(1),s.setHours(0,0,0,0)},(s,l)=>{s.setMonth(s.getMonth()+l)},(s,l)=>l.getMonth()-s.getMonth()+12*(l.getFullYear()-s.getFullYear()),s=>s.getMonth())),wu=Si(s=>{s.setUTCDate(1),s.setUTCHours(0,0,0,0)},(s,l)=>{s.setUTCMonth(s.getUTCMonth()+l)},(s,l)=>l.getUTCMonth()-s.getUTCMonth()+12*(l.getUTCFullYear()-s.getUTCFullYear()),s=>s.getUTCMonth()),_c=Si(s=>{s.setMonth(0,1),s.setHours(0,0,0,0)},(s,l)=>{s.setFullYear(s.getFullYear()+l)},(s,l)=>l.getFullYear()-s.getFullYear(),s=>s.getFullYear());_c.every=s=>isFinite(s=Math.floor(s))&&s>0?Si(l=>{l.setFullYear(Math.floor(l.getFullYear()/s)*s),l.setMonth(0,1),l.setHours(0,0,0,0)},(l,f)=>{l.setFullYear(l.getFullYear()+f*s)}):null;const Uc=Si(s=>{s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0)},(s,l)=>{s.setUTCFullYear(s.getUTCFullYear()+l)},(s,l)=>l.getUTCFullYear()-s.getUTCFullYear(),s=>s.getUTCFullYear());function Sp(s,l,f,m,b,v){const C=[[Al,1,pc],[Al,5,5*pc],[Al,15,15*pc],[Al,30,30*pc],[v,1,ni],[v,5,5*ni],[v,15,15*ni],[v,30,30*ni],[b,1,Rs],[b,3,3*Rs],[b,6,6*Rs],[b,12,12*Rs],[m,1,Go],[m,2,2*Go],[f,1,Jh],[l,1,Yo],[l,3,3*Yo],[s,1,Va]];function E(F,B,ee){const Y=Math.abs(B-F)/ee,se=cp(([,,xe])=>xe).right(C,Y);if(se===C.length)return s.every(fc(F/Va,B/Va,ee));if(0===se)return yu.every(Math.max(fc(F,B,ee),1));const[ct,Vt]=C[Y/C[se-1][2]<C[se][2]/Y?se-1:se];return ct.every(Vt)}return[function T(F,B,ee){const Y=B<F;Y&&([F,B]=[B,F]);const se=ee&&"function"==typeof ee.range?ee:E(F,B,ee),ct=se?se.range(F,+B+1):[];return Y?ct.reverse():ct},E]}Uc.every=s=>isFinite(s=Math.floor(s))&&s>0?Si(l=>{l.setUTCFullYear(Math.floor(l.getUTCFullYear()/s)*s),l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0)},(l,f)=>{l.setUTCFullYear(l.getUTCFullYear()+f*s)}):null;const[ty,Ip]=Sp(Uc,wu,Tp,md,xp,$c),[Ap,Fp]=Sp(_c,nf,Ol,Fl,fd,Wr);function Du(s){if(0<=s.y&&s.y<100){var l=new Date(-1,s.m,s.d,s.H,s.M,s.S,s.L);return l.setFullYear(s.y),l}return new Date(s.y,s.m,s.d,s.H,s.M,s.S,s.L)}function Gr(s){if(0<=s.y&&s.y<100){var l=new Date(Date.UTC(-1,s.m,s.d,s.H,s.M,s.S,s.L));return l.setUTCFullYear(s.y),l}return new Date(Date.UTC(s.y,s.m,s.d,s.H,s.M,s.S,s.L))}function gd(s,l,f){return{y:s,m:l,d:f,H:0,M:0,S:0,L:0}}var ca,bf,Op={"-":"",_:" ",0:"0"},Qi=/^\s*\d+/,rf=/^%/,iy=/[\\^$*+?|[\]().{}]/g;function jn(s,l,f){var m=s<0?"-":"",b=(m?-s:s)+"",v=b.length;return m+(v<f?new Array(f-v+1).join(l)+b:b)}function ry(s){return s.replace(iy,"\\$&")}function Rl(s){return new RegExp("^(?:"+s.map(ry).join("|")+")","i")}function _d(s){return new Map(s.map((l,f)=>[l.toLowerCase(),f]))}function oy(s,l,f){var m=Qi.exec(l.slice(f,f+1));return m?(s.w=+m[0],f+m[0].length):-1}function go(s,l,f){var m=Qi.exec(l.slice(f,f+1));return m?(s.u=+m[0],f+m[0].length):-1}function sf(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.U=+m[0],f+m[0].length):-1}function Rp(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.V=+m[0],f+m[0].length):-1}function af(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.W=+m[0],f+m[0].length):-1}function Ar(s,l,f){var m=Qi.exec(l.slice(f,f+4));return m?(s.y=+m[0],f+m[0].length):-1}function Pl(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.y=+m[0]+(+m[0]>68?1900:2e3),f+m[0].length):-1}function Pp(s,l,f){var m=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(l.slice(f,f+6));return m?(s.Z=m[1]?0:-(m[2]+(m[3]||"00")),f+m[0].length):-1}function Lp(s,l,f){var m=Qi.exec(l.slice(f,f+1));return m?(s.q=3*m[0]-3,f+m[0].length):-1}function sy(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.m=m[0]-1,f+m[0].length):-1}function cf(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.d=+m[0],f+m[0].length):-1}function ay(s,l,f){var m=Qi.exec(l.slice(f,f+3));return m?(s.m=0,s.d=+m[0],f+m[0].length):-1}function lf(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.H=+m[0],f+m[0].length):-1}function cy(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.M=+m[0],f+m[0].length):-1}function Np(s,l,f){var m=Qi.exec(l.slice(f,f+2));return m?(s.S=+m[0],f+m[0].length):-1}function ly(s,l,f){var m=Qi.exec(l.slice(f,f+3));return m?(s.L=+m[0],f+m[0].length):-1}function dy(s,l,f){var m=Qi.exec(l.slice(f,f+6));return m?(s.L=Math.floor(m[0]/1e3),f+m[0].length):-1}function df(s,l,f){var m=rf.exec(l.slice(f,f+1));return m?f+m[0].length:-1}function uf(s,l,f){var m=Qi.exec(l.slice(f));return m?(s.Q=+m[0],f+m[0].length):-1}function uy(s,l,f){var m=Qi.exec(l.slice(f));return m?(s.s=+m[0],f+m[0].length):-1}function Ll(s,l){return jn(s.getDate(),l,2)}function hy(s,l){return jn(s.getHours(),l,2)}function fy(s,l){return jn(s.getHours()%12||12,l,2)}function hf(s,l){return jn(1+Fl.count(_c(s),s),l,3)}function Mu(s,l){return jn(s.getMilliseconds(),l,3)}function Bp(s,l){return Mu(s,l)+"000"}function Nl(s,l){return jn(s.getMonth()+1,l,2)}function ff(s,l){return jn(s.getMinutes(),l,2)}function Vp(s,l){return jn(s.getSeconds(),l,2)}function my(s){var l=s.getDay();return 0===l?7:l}function mf(s,l){return jn(Ol.count(_c(s)-1,s),l,2)}function Hp(s){var l=s.getDay();return l>=4||0===l?aa(s):aa.ceil(s)}function py(s,l){return s=Hp(s),jn(aa.count(_c(s),s)+(4===_c(s).getDay()),l,2)}function gy(s){return s.getDay()}function _y(s,l){return jn(gc.count(_c(s)-1,s),l,2)}function by(s,l){return jn(s.getFullYear()%100,l,2)}function yy(s,l){return jn((s=Hp(s)).getFullYear()%100,l,2)}function zp(s,l){return jn(s.getFullYear()%1e4,l,4)}function pf(s,l){var f=s.getDay();return jn((s=f>=4||0===f?aa(s):aa.ceil(s)).getFullYear()%1e4,l,4)}function $p(s){var l=s.getTimezoneOffset();return(l>0?"-":(l*=-1,"+"))+jn(l/60|0,"0",2)+jn(l%60,"0",2)}function Tu(s,l){return jn(s.getUTCDate(),l,2)}function vy(s,l){return jn(s.getUTCHours(),l,2)}function Cy(s,l){return jn(s.getUTCHours()%12||12,l,2)}function jp(s,l){return jn(1+ef.count(Uc(s),s),l,3)}function gf(s,l){return jn(s.getUTCMilliseconds(),l,3)}function Wc(s,l){return gf(s,l)+"000"}function Up(s,l){return jn(s.getUTCMonth()+1,l,2)}function Wp(s,l){return jn(s.getUTCMinutes(),l,2)}function xy(s,l){return jn(s.getUTCSeconds(),l,2)}function dw(s){var l=s.getUTCDay();return 0===l?7:l}function Eu(s,l){return jn(Tp.count(Uc(s)-1,s),l,2)}function Gp(s){var l=s.getUTCDay();return l>=4||0===l?Ha(s):Ha.ceil(s)}function Yp(s,l){return s=Gp(s),jn(Ha.count(Uc(s),s)+(4===Uc(s).getUTCDay()),l,2)}function Zp(s){return s.getUTCDay()}function qp(s,l){return jn(xu.count(Uc(s)-1,s),l,2)}function _f(s,l){return jn(s.getUTCFullYear()%100,l,2)}function Kp(s,l){return jn((s=Gp(s)).getUTCFullYear()%100,l,2)}function ku(s,l){return jn(s.getUTCFullYear()%1e4,l,4)}function Su(s,l){var f=s.getUTCDay();return jn((s=f>=4||0===f?Ha(s):Ha.ceil(s)).getUTCFullYear()%1e4,l,4)}function Xp(){return"+0000"}function Iu(){return"%"}function Au(s){return+s}function Fu(s){return Math.floor(+s/1e3)}function eg(s){return new Date(s)}function Ou(s){return s instanceof Date?+s:+new Date(+s)}function Ru(s,l,f,m,b,v,C,T,E,F){var B=mu(),ee=B.invert,Y=B.domain,se=F(".%L"),ct=F(":%S"),Vt=F("%I:%M"),xe=F("%I %p"),ue=F("%a %d"),rt=F("%b %d"),Fe=F("%B"),Xe=F("%Y");function lt($e){return(E($e)<$e?se:T($e)<$e?ct:C($e)<$e?Vt:v($e)<$e?xe:m($e)<$e?b($e)<$e?ue:rt:f($e)<$e?Fe:Xe)($e)}return B.invert=function($e){return new Date(ee($e))},B.domain=function($e){return arguments.length?Y(Array.from($e,Ou)):Y().map(eg)},B.ticks=function($e){var en=Y();return s(en[0],en[en.length-1],$e??10)},B.tickFormat=function($e,en){return null==en?lt:F(en)},B.nice=function($e){var en=Y();return(!$e||"function"!=typeof $e.range)&&($e=l(en[0],en[en.length-1],$e??10)),$e?Y(function Jp(s,l){var C,f=0,m=(s=s.slice()).length-1,b=s[f],v=s[m];return v<b&&(C=f,f=m,m=C,C=b,b=v,v=C),s[f]=l.floor(b),s[m]=l.ceil(v),s}(en,$e)):B},B.copy=function(){return fu(B,Ru(s,l,f,m,b,v,C,T,E,F))},B}function Bl(){return ud.apply(Ru(Ap,Fp,_c,nf,Ol,Fl,fd,Wr,Al,bf).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ty(s){return"string"==typeof s?new wi([[document.querySelector(s)]],[document.documentElement]):new wi([[s]],Kr)}function Ey(s){return"string"==typeof s?new wi([document.querySelectorAll(s)],[document.documentElement]):new wi([$t(s)],Kr)}function ji(s){return function(){return s}}!function My(s){ca=function ny(s){var l=s.dateTime,f=s.date,m=s.time,b=s.periods,v=s.days,C=s.shortDays,T=s.months,E=s.shortMonths,F=Rl(b),B=_d(b),ee=Rl(v),Y=_d(v),se=Rl(C),ct=_d(C),Vt=Rl(T),xe=_d(T),ue=Rl(E),rt=_d(E),Fe={a:function Qe(mt){return C[mt.getDay()]},A:function At(mt){return v[mt.getDay()]},b:function vt(mt){return E[mt.getMonth()]},B:function Rt(mt){return T[mt.getMonth()]},c:null,d:Ll,e:Ll,f:Bp,g:yy,G:pf,H:hy,I:fy,j:hf,L:Mu,m:Nl,M:ff,p:function Yt(mt){return b[+(mt.getHours()>=12)]},q:function on(mt){return 1+~~(mt.getMonth()/3)},Q:Au,s:Fu,S:Vp,u:my,U:mf,V:py,w:gy,W:_y,x:null,X:null,y:by,Y:zp,Z:$p,"%":Iu},Xe={a:function Vi(mt){return C[mt.getUTCDay()]},A:function fi(mt){return v[mt.getUTCDay()]},b:function mi(mt){return E[mt.getUTCMonth()]},B:function ii(mt){return T[mt.getUTCMonth()]},c:null,d:Tu,e:Tu,f:Wc,g:Kp,G:Su,H:vy,I:Cy,j:jp,L:gf,m:Up,M:Wp,p:function Un(mt){return b[+(mt.getUTCHours()>=12)]},q:function Pi(mt){return 1+~~(mt.getUTCMonth()/3)},Q:Au,s:Fu,S:xy,u:dw,U:Eu,V:Yp,w:Zp,W:qp,x:null,X:null,y:_f,Y:ku,Z:Xp,"%":Iu},lt={a:function yn(mt,_n,In){var Le=se.exec(_n.slice(In));return Le?(mt.w=ct.get(Le[0].toLowerCase()),In+Le[0].length):-1},A:function ft(mt,_n,In){var Le=ee.exec(_n.slice(In));return Le?(mt.w=Y.get(Le[0].toLowerCase()),In+Le[0].length):-1},b:function un(mt,_n,In){var Le=ue.exec(_n.slice(In));return Le?(mt.m=rt.get(Le[0].toLowerCase()),In+Le[0].length):-1},B:function We(mt,_n,In){var Le=Vt.exec(_n.slice(In));return Le?(mt.m=xe.get(Le[0].toLowerCase()),In+Le[0].length):-1},c:function G(mt,_n,In){return wn(mt,l,_n,In)},d:cf,e:cf,f:dy,g:Pl,G:Ar,H:lf,I:lf,j:ay,L:ly,m:sy,M:cy,p:function qn(mt,_n,In){var Le=F.exec(_n.slice(In));return Le?(mt.p=B.get(Le[0].toLowerCase()),In+Le[0].length):-1},q:Lp,Q:uf,s:uy,S:Np,u:go,U:sf,V:Rp,w:oy,W:af,x:function st(mt,_n,In){return wn(mt,f,_n,In)},X:function Ce(mt,_n,In){return wn(mt,m,_n,In)},y:Pl,Y:Ar,Z:Pp,"%":df};function $e(mt,_n){return function(In){var no,Ne,R,Le=[],Ii=-1,ci=0,to=mt.length;for(In instanceof Date||(In=new Date(+In));++Ii<to;)37===mt.charCodeAt(Ii)&&(Le.push(mt.slice(ci,Ii)),null!=(Ne=Op[no=mt.charAt(++Ii)])?no=mt.charAt(++Ii):Ne="e"===no?" ":"0",(R=_n[no])&&(no=R(In,Ne)),Le.push(no),ci=Ii+1);return Le.push(mt.slice(ci,Ii)),Le.join("")}}function en(mt,_n){return function(In){var ci,to,Le=gd(1900,void 0,1);if(wn(Le,mt,In+="",0)!=In.length)return null;if("Q"in Le)return new Date(Le.Q);if("s"in Le)return new Date(1e3*Le.s+("L"in Le?Le.L:0));if(_n&&!("Z"in Le)&&(Le.Z=0),"p"in Le&&(Le.H=Le.H%12+12*Le.p),void 0===Le.m&&(Le.m="q"in Le?Le.q:0),"V"in Le){if(Le.V<1||Le.V>53)return null;"w"in Le||(Le.w=1),"Z"in Le?(to=(ci=Gr(gd(Le.y,0,1))).getUTCDay(),ci=to>4||0===to?xu.ceil(ci):xu(ci),ci=ef.offset(ci,7*(Le.V-1)),Le.y=ci.getUTCFullYear(),Le.m=ci.getUTCMonth(),Le.d=ci.getUTCDate()+(Le.w+6)%7):(to=(ci=Du(gd(Le.y,0,1))).getDay(),ci=to>4||0===to?gc.ceil(ci):gc(ci),ci=Fl.offset(ci,7*(Le.V-1)),Le.y=ci.getFullYear(),Le.m=ci.getMonth(),Le.d=ci.getDate()+(Le.w+6)%7)}else("W"in Le||"U"in Le)&&("w"in Le||(Le.w="u"in Le?Le.u%7:"W"in Le?1:0),to="Z"in Le?Gr(gd(Le.y,0,1)).getUTCDay():Du(gd(Le.y,0,1)).getDay(),Le.m=0,Le.d="W"in Le?(Le.w+6)%7+7*Le.W-(to+5)%7:Le.w+7*Le.U-(to+6)%7);return"Z"in Le?(Le.H+=Le.Z/100|0,Le.M+=Le.Z%100,Gr(Le)):Du(Le)}}function wn(mt,_n,In,Le){for(var no,Ne,Ii=0,ci=_n.length,to=In.length;Ii<ci;){if(Le>=to)return-1;if(37===(no=_n.charCodeAt(Ii++))){if(no=_n.charAt(Ii++),!(Ne=lt[no in Op?_n.charAt(Ii++):no])||(Le=Ne(mt,In,Le))<0)return-1}else if(no!=In.charCodeAt(Le++))return-1}return Le}return Fe.x=$e(f,Fe),Fe.X=$e(m,Fe),Fe.c=$e(l,Fe),Xe.x=$e(f,Xe),Xe.X=$e(m,Xe),Xe.c=$e(l,Xe),{format:function(mt){var _n=$e(mt+="",Fe);return _n.toString=function(){return mt},_n},parse:function(mt){var _n=en(mt+="",!1);return _n.toString=function(){return mt},_n},utcFormat:function(mt){var _n=$e(mt+="",Xe);return _n.toString=function(){return mt},_n},utcParse:function(mt){var _n=en(mt+="",!0);return _n.toString=function(){return mt},_n}}}(s),bf=ca.format}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const tg=Math.abs,ur=Math.atan2,Gc=Math.cos,ng=Math.max,Vl=Math.min,gs=Math.sin,Yc=Math.sqrt,Fr=1e-12,Hl=Math.PI,la=Hl/2,Pu=2*Hl;function ig(s){return s>=1?la:s<=-1?-la:Math.asin(s)}const yf=Math.PI,vf=2*yf,Ji=1e-6,da=vf-Ji;function rg(s){this._+=s[0];for(let l=1,f=s.length;l<f;++l)this._+=arguments[l]+s[l]}class Lu{constructor(l){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==l?rg:function Sy(s){let l=Math.floor(s);if(!(l>=0))throw new Error(`invalid digits: ${s}`);if(l>15)return rg;const f=10**l;return function(m){this._+=m[0];for(let b=1,v=m.length;b<v;++b)this._+=Math.round(arguments[b]*f)/f+m[b]}}(l)}moveTo(l,f){this._append`M${this._x0=this._x1=+l},${this._y0=this._y1=+f}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(l,f){this._append`L${this._x1=+l},${this._y1=+f}`}quadraticCurveTo(l,f,m,b){this._append`Q${+l},${+f},${this._x1=+m},${this._y1=+b}`}bezierCurveTo(l,f,m,b,v,C){this._append`C${+l},${+f},${+m},${+b},${this._x1=+v},${this._y1=+C}`}arcTo(l,f,m,b,v){if(l=+l,f=+f,m=+m,b=+b,(v=+v)<0)throw new Error(`negative radius: ${v}`);let C=this._x1,T=this._y1,E=m-l,F=b-f,B=C-l,ee=T-f,Y=B*B+ee*ee;if(null===this._x1)this._append`M${this._x1=l},${this._y1=f}`;else if(Y>Ji)if(Math.abs(ee*E-F*B)>Ji&&v){let se=m-C,ct=b-T,Vt=E*E+F*F,xe=se*se+ct*ct,ue=Math.sqrt(Vt),rt=Math.sqrt(Y),Fe=v*Math.tan((yf-Math.acos((Vt+Y-xe)/(2*ue*rt)))/2),Xe=Fe/rt,lt=Fe/ue;Math.abs(Xe-1)>Ji&&this._append`L${l+Xe*B},${f+Xe*ee}`,this._append`A${v},${v},0,0,${+(ee*se>B*ct)},${this._x1=l+lt*E},${this._y1=f+lt*F}`}else this._append`L${this._x1=l},${this._y1=f}`}arc(l,f,m,b,v,C){if(l=+l,f=+f,C=!!C,(m=+m)<0)throw new Error(`negative radius: ${m}`);let T=m*Math.cos(b),E=m*Math.sin(b),F=l+T,B=f+E,ee=1^C,Y=C?b-v:v-b;null===this._x1?this._append`M${F},${B}`:(Math.abs(this._x1-F)>Ji||Math.abs(this._y1-B)>Ji)&&this._append`L${F},${B}`,m&&(Y<0&&(Y=Y%vf+vf),Y>da?this._append`A${m},${m},0,1,${ee},${l-T},${f-E}A${m},${m},0,1,${ee},${this._x1=F},${this._y1=B}`:Y>Ji&&this._append`A${m},${m},0,${+(Y>=yf)},${ee},${this._x1=l+m*Math.cos(v)},${this._y1=f+m*Math.sin(v)}`)}rect(l,f,m,b){this._append`M${this._x0=this._x1=+l},${this._y0=this._y1=+f}h${m=+m}v${+b}h${-m}Z`}toString(){return this._}}function og(s){let l=3;return s.digits=function(f){if(!arguments.length)return l;if(null==f)l=null;else{const m=Math.floor(f);if(!(m>=0))throw new RangeError(`invalid digits: ${f}`);l=m}return s},()=>new Lu(l)}function sg(s){return s.innerRadius}function Ay(s){return s.outerRadius}function Fy(s){return s.startAngle}function Oy(s){return s.endAngle}function Ry(s){return s&&s.padAngle}function _s(s,l,f,m,b,v,C){var T=s-f,E=l-m,F=(C?v:-v)/Yc(T*T+E*E),B=F*E,ee=-F*T,Y=s+B,se=l+ee,ct=f+B,Vt=m+ee,xe=(Y+ct)/2,ue=(se+Vt)/2,rt=ct-Y,Fe=Vt-se,Xe=rt*rt+Fe*Fe,lt=b-v,$e=Y*Vt-ct*se,en=(Fe<0?-1:1)*Yc(ng(0,lt*lt*Xe-$e*$e)),wn=($e*Fe-rt*en)/Xe,qn=(-$e*rt-Fe*en)/Xe,yn=($e*Fe+rt*en)/Xe,ft=(-$e*rt+Fe*en)/Xe,un=wn-xe,We=qn-ue,G=yn-xe,st=ft-ue;return un*un+We*We>G*G+st*st&&(wn=yn,qn=ft),{cx:wn,cy:qn,x01:-B,y01:-ee,x11:wn*(b/lt-1),y11:qn*(b/lt-1)}}function bd(){var s=sg,l=Ay,f=ji(0),m=null,b=Fy,v=Oy,C=Ry,T=null,E=og(F);function F(){var B,ee,Y=+s.apply(this,arguments),se=+l.apply(this,arguments),ct=b.apply(this,arguments)-la,Vt=v.apply(this,arguments)-la,xe=tg(Vt-ct),ue=Vt>ct;if(T||(T=B=E()),se<Y&&(ee=se,se=Y,Y=ee),se>Fr)if(xe>Pu-Fr)T.moveTo(se*Gc(ct),se*gs(ct)),T.arc(0,0,se,ct,Vt,!ue),Y>Fr&&(T.moveTo(Y*Gc(Vt),Y*gs(Vt)),T.arc(0,0,Y,Vt,ct,ue));else{var We,G,rt=ct,Fe=Vt,Xe=ct,lt=Vt,$e=xe,en=xe,wn=C.apply(this,arguments)/2,qn=wn>Fr&&(m?+m.apply(this,arguments):Yc(Y*Y+se*se)),yn=Vl(tg(se-Y)/2,+f.apply(this,arguments)),ft=yn,un=yn;if(qn>Fr){var st=ig(qn/Y*gs(wn)),Ce=ig(qn/se*gs(wn));($e-=2*st)>Fr?(Xe+=st*=ue?1:-1,lt-=st):($e=0,Xe=lt=(ct+Vt)/2),(en-=2*Ce)>Fr?(rt+=Ce*=ue?1:-1,Fe-=Ce):(en=0,rt=Fe=(ct+Vt)/2)}var Qe=se*Gc(rt),At=se*gs(rt),vt=Y*Gc(lt),Rt=Y*gs(lt);if(yn>Fr){var mi,Yt=se*Gc(Fe),on=se*gs(Fe),Vi=Y*Gc(Xe),fi=Y*gs(Xe);if(xe<Hl)if(mi=function Nu(s,l,f,m,b,v,C,T){var E=f-s,F=m-l,B=C-b,ee=T-v,Y=ee*E-B*F;if(!(Y*Y<Fr))return[s+(Y=(B*(l-v)-ee*(s-b))/Y)*E,l+Y*F]}(Qe,At,Vi,fi,Yt,on,vt,Rt)){var ii=Qe-mi[0],Un=At-mi[1],Pi=Yt-mi[0],mt=on-mi[1],_n=1/gs(function ky(s){return s>1?0:s<-1?Hl:Math.acos(s)}((ii*Pi+Un*mt)/(Yc(ii*ii+Un*Un)*Yc(Pi*Pi+mt*mt)))/2),In=Yc(mi[0]*mi[0]+mi[1]*mi[1]);ft=Vl(yn,(Y-In)/(_n-1)),un=Vl(yn,(se-In)/(_n+1))}else ft=un=0}en>Fr?un>Fr?(We=_s(Vi,fi,Qe,At,se,un,ue),G=_s(Yt,on,vt,Rt,se,un,ue),T.moveTo(We.cx+We.x01,We.cy+We.y01),un<yn?T.arc(We.cx,We.cy,un,ur(We.y01,We.x01),ur(G.y01,G.x01),!ue):(T.arc(We.cx,We.cy,un,ur(We.y01,We.x01),ur(We.y11,We.x11),!ue),T.arc(0,0,se,ur(We.cy+We.y11,We.cx+We.x11),ur(G.cy+G.y11,G.cx+G.x11),!ue),T.arc(G.cx,G.cy,un,ur(G.y11,G.x11),ur(G.y01,G.x01),!ue))):(T.moveTo(Qe,At),T.arc(0,0,se,rt,Fe,!ue)):T.moveTo(Qe,At),Y>Fr&&$e>Fr?ft>Fr?(We=_s(vt,Rt,Yt,on,Y,-ft,ue),G=_s(Qe,At,Vi,fi,Y,-ft,ue),T.lineTo(We.cx+We.x01,We.cy+We.y01),ft<yn?T.arc(We.cx,We.cy,ft,ur(We.y01,We.x01),ur(G.y01,G.x01),!ue):(T.arc(We.cx,We.cy,ft,ur(We.y01,We.x01),ur(We.y11,We.x11),!ue),T.arc(0,0,Y,ur(We.cy+We.y11,We.cx+We.x11),ur(G.cy+G.y11,G.cx+G.x11),ue),T.arc(G.cx,G.cy,ft,ur(G.y11,G.x11),ur(G.y01,G.x01),!ue))):T.arc(0,0,Y,lt,Xe,ue):T.lineTo(vt,Rt)}else T.moveTo(0,0);if(T.closePath(),B)return T=null,B+""||null}return F.centroid=function(){var B=(+s.apply(this,arguments)+ +l.apply(this,arguments))/2,ee=(+b.apply(this,arguments)+ +v.apply(this,arguments))/2-Hl/2;return[Gc(ee)*B,gs(ee)*B]},F.innerRadius=function(B){return arguments.length?(s="function"==typeof B?B:ji(+B),F):s},F.outerRadius=function(B){return arguments.length?(l="function"==typeof B?B:ji(+B),F):l},F.cornerRadius=function(B){return arguments.length?(f="function"==typeof B?B:ji(+B),F):f},F.padRadius=function(B){return arguments.length?(m=null==B?null:"function"==typeof B?B:ji(+B),F):m},F.startAngle=function(B){return arguments.length?(b="function"==typeof B?B:ji(+B),F):b},F.endAngle=function(B){return arguments.length?(v="function"==typeof B?B:ji(+B),F):v},F.padAngle=function(B){return arguments.length?(C="function"==typeof B?B:ji(+B),F):C},F.context=function(B){return arguments.length?(T=B??null,F):T},F}function Cf(s){return"object"==typeof s&&"length"in s?s:Array.from(s)}function xf(s){this._context=s}function Ly(s){return new xf(s)}function hw(s){return s[0]}function fw(s){return s[1]}function wf(s,l){var f=ji(!0),m=null,b=Ly,v=null,C=og(T);function T(E){var F,ee,se,B=(E=Cf(E)).length,Y=!1;for(null==m&&(v=b(se=C())),F=0;F<=B;++F)!(F<B&&f(ee=E[F],F,E))===Y&&((Y=!Y)?v.lineStart():v.lineEnd()),Y&&v.point(+s(ee,F,E),+l(ee,F,E));if(se)return v=null,se+""||null}return s="function"==typeof s?s:void 0===s?hw:ji(s),l="function"==typeof l?l:void 0===l?fw:ji(l),T.x=function(E){return arguments.length?(s="function"==typeof E?E:ji(+E),T):s},T.y=function(E){return arguments.length?(l="function"==typeof E?E:ji(+E),T):l},T.defined=function(E){return arguments.length?(f="function"==typeof E?E:ji(!!E),T):f},T.curve=function(E){return arguments.length?(b=E,null!=m&&(v=b(m)),T):b},T.context=function(E){return arguments.length?(null==E?m=v=null:v=b(m=E),T):m},T}function Df(s,l){return l<s?-1:l>s?1:l>=s?0:NaN}function mw(s){return s}function pw(){var s=mw,l=Df,f=null,m=ji(0),b=ji(Pu),v=ji(0);function C(T){var E,B,ee,ue,Xe,F=(T=Cf(T)).length,Y=0,se=new Array(F),ct=new Array(F),Vt=+m.apply(this,arguments),xe=Math.min(Pu,Math.max(-Pu,b.apply(this,arguments)-Vt)),rt=Math.min(Math.abs(xe)/F,v.apply(this,arguments)),Fe=rt*(xe<0?-1:1);for(E=0;E<F;++E)(Xe=ct[se[E]=E]=+s(T[E],E,T))>0&&(Y+=Xe);for(null!=l?se.sort(function(lt,$e){return l(ct[lt],ct[$e])}):null!=f&&se.sort(function(lt,$e){return f(T[lt],T[$e])}),E=0,ee=Y?(xe-F*Fe)/Y:0;E<F;++E,Vt=ue)ct[B=se[E]]={data:T[B],index:E,value:Xe=ct[B],startAngle:Vt,endAngle:ue=Vt+(Xe>0?Xe*ee:0)+Fe,padAngle:rt};return ct}return C.value=function(T){return arguments.length?(s="function"==typeof T?T:ji(+T),C):s},C.sortValues=function(T){return arguments.length?(l=T,f=null,C):l},C.sort=function(T){return arguments.length?(f=T,l=null,C):f},C.startAngle=function(T){return arguments.length?(m="function"==typeof T?T:ji(+T),C):m},C.endAngle=function(T){return arguments.length?(b="function"==typeof T?T:ji(+T),C):b},C.padAngle=function(T){return arguments.length?(v="function"==typeof T?T:ji(+T),C):v},C}function za(){}function Bu(s,l,f){s._context.bezierCurveTo((2*s._x0+s._x1)/3,(2*s._y0+s._y1)/3,(s._x0+2*s._x1)/3,(s._y0+2*s._y1)/3,(s._x0+4*s._x1+l)/6,(s._y0+4*s._y1+f)/6)}function Vu(s){this._context=s}function Ny(s){return new Vu(s)}function ag(s){this._context=s}function cg(s){return new ag(s)}function yd(s){this._context=s}function lg(s){return new yd(s)}xf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,l){switch(s=+s,l=+l,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,l):this._context.moveTo(s,l);break;case 1:this._point=2;default:this._context.lineTo(s,l)}}},Vu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Bu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,l){switch(s=+s,l=+l,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,l):this._context.moveTo(s,l);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Bu(this,s,l)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=l}},ag.prototype={areaStart:za,areaEnd:za,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(s,l){switch(s=+s,l=+l,this._point){case 0:this._point=1,this._x2=s,this._y2=l;break;case 1:this._point=2,this._x3=s,this._y3=l;break;case 2:this._point=3,this._x4=s,this._y4=l,this._context.moveTo((this._x0+4*this._x1+s)/6,(this._y0+4*this._y1+l)/6);break;default:Bu(this,s,l)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=l}},yd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,l){switch(s=+s,l=+l,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var f=(this._x0+4*this._x1+s)/6,m=(this._y0+4*this._y1+l)/6;this._line?this._context.lineTo(f,m):this._context.moveTo(f,m);break;case 3:this._point=4;default:Bu(this,s,l)}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=l}};class Hu{constructor(l,f){this._context=l,this._x=f}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(l,f){switch(l=+l,f=+f,this._point){case 0:this._point=1,this._line?this._context.lineTo(l,f):this._context.moveTo(l,f);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+l)/2,this._y0,this._x0,f,l,f):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+f)/2,l,this._y0,l,f)}this._x0=l,this._y0=f}}function Zn(s){return new Hu(s,!0)}function dg(s){return new Hu(s,!1)}function Mf(s,l){this._basis=new Vu(s),this._beta=l}Mf.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var s=this._x,l=this._y,f=s.length-1;if(f>0)for(var E,m=s[0],b=l[0],v=s[f]-m,C=l[f]-b,T=-1;++T<=f;)this._basis.point(this._beta*s[T]+(1-this._beta)*(m+(E=T/f)*v),this._beta*l[T]+(1-this._beta)*(b+E*C));this._x=this._y=null,this._basis.lineEnd()},point:function(s,l){this._x.push(+s),this._y.push(+l)}};const ug=function s(l){function f(m){return 1===l?new Vu(m):new Mf(m,l)}return f.beta=function(m){return s(+m)},f}(.85);function zu(s,l,f){s._context.bezierCurveTo(s._x1+s._k*(s._x2-s._x0),s._y1+s._k*(s._y2-s._y0),s._x2+s._k*(s._x1-l),s._y2+s._k*(s._y1-f),s._x2,s._y2)}function Tf(s,l){this._context=s,this._k=(1-l)/6}Tf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:zu(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,l){switch(s=+s,l=+l,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,l):this._context.moveTo(s,l);break;case 1:this._point=2,this._x1=s,this._y1=l;break;case 2:this._point=3;default:zu(this,s,l)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const Vy=function s(l){function f(m){return new Tf(m,l)}return f.tension=function(m){return s(+m)},f}(0);function Ef(s,l){this._context=s,this._k=(1-l)/6}Ef.prototype={areaStart:za,areaEnd:za,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(s,l){switch(s=+s,l=+l,this._point){case 0:this._point=1,this._x3=s,this._y3=l;break;case 1:this._point=2,this._context.moveTo(this._x4=s,this._y4=l);break;case 2:this._point=3,this._x5=s,this._y5=l;break;default:zu(this,s,l)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const Hy=function s(l){function f(m){return new Ef(m,l)}return f.tension=function(m){return s(+m)},f}(0);function hg(s,l){this._context=s,this._k=(1-l)/6}hg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,l){switch(s=+s,l=+l,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:zu(this,s,l)}this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const _w=function s(l){function f(m){return new hg(m,l)}return f.tension=function(m){return s(+m)},f}(0);function Zc(s,l,f){var m=s._x1,b=s._y1,v=s._x2,C=s._y2;if(s._l01_a>Fr){var T=2*s._l01_2a+3*s._l01_a*s._l12_a+s._l12_2a,E=3*s._l01_a*(s._l01_a+s._l12_a);m=(m*T-s._x0*s._l12_2a+s._x2*s._l01_2a)/E,b=(b*T-s._y0*s._l12_2a+s._y2*s._l01_2a)/E}if(s._l23_a>Fr){var F=2*s._l23_2a+3*s._l23_a*s._l12_a+s._l12_2a,B=3*s._l23_a*(s._l23_a+s._l12_a);v=(v*F+s._x1*s._l23_2a-l*s._l12_2a)/B,C=(C*F+s._y1*s._l23_2a-f*s._l12_2a)/B}s._context.bezierCurveTo(m,b,v,C,s._x2,s._y2)}function kf(s,l){this._context=s,this._alpha=l}kf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,l){if(s=+s,l=+l,this._point){var f=this._x2-s,m=this._y2-l;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+m*m,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(s,l):this._context.moveTo(s,l);break;case 1:this._point=2;break;case 2:this._point=3;default:Zc(this,s,l)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const fg=function s(l){function f(m){return l?new kf(m,l):new Tf(m,0)}return f.alpha=function(m){return s(+m)},f}(.5);function Sf(s,l){this._context=s,this._alpha=l}Sf.prototype={areaStart:za,areaEnd:za,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(s,l){if(s=+s,l=+l,this._point){var f=this._x2-s,m=this._y2-l;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+m*m,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=s,this._y3=l;break;case 1:this._point=2,this._context.moveTo(this._x4=s,this._y4=l);break;case 2:this._point=3,this._x5=s,this._y5=l;break;default:Zc(this,s,l)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const mg=function s(l){function f(m){return l?new Sf(m,l):new Ef(m,0)}return f.alpha=function(m){return s(+m)},f}(.5);function pg(s,l){this._context=s,this._alpha=l}pg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,l){if(s=+s,l=+l,this._point){var f=this._x2-s,m=this._y2-l;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(f*f+m*m,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Zc(this,s,l)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=s,this._y0=this._y1,this._y1=this._y2,this._y2=l}};const zy=function s(l){function f(m){return l?new pg(m,l):new hg(m,0)}return f.alpha=function(m){return s(+m)},f}(.5);function If(s){this._context=s}function gg(s){return new If(s)}function $u(s){return s<0?-1:1}function $y(s,l,f){var m=s._x1-s._x0,b=l-s._x1,v=(s._y1-s._y0)/(m||b<0&&-0),C=(f-s._y1)/(b||m<0&&-0),T=(v*b+C*m)/(m+b);return($u(v)+$u(C))*Math.min(Math.abs(v),Math.abs(C),.5*Math.abs(T))||0}function ju(s,l){var f=s._x1-s._x0;return f?(3*(s._y1-s._y0)/f-l)/2:l}function Af(s,l,f){var m=s._x0,v=s._x1,C=s._y1,T=(v-m)/3;s._context.bezierCurveTo(m+T,s._y0+T*l,v-T,C-T*f,v,C)}function zl(s){this._context=s}function Ff(s){this._context=new Of(s)}function Of(s){this._context=s}function qc(s){return new zl(s)}function jy(s){return new Ff(s)}function Uu(s){this._context=s}function vd(s){var l,m,f=s.length-1,b=new Array(f),v=new Array(f),C=new Array(f);for(b[0]=0,v[0]=2,C[0]=s[0]+2*s[1],l=1;l<f-1;++l)b[l]=1,v[l]=4,C[l]=4*s[l]+2*s[l+1];for(b[f-1]=2,v[f-1]=7,C[f-1]=8*s[f-1]+s[f],l=1;l<f;++l)v[l]-=m=b[l]/v[l-1],C[l]-=m*C[l-1];for(b[f-1]=C[f-1]/v[f-1],l=f-2;l>=0;--l)b[l]=(C[l]-b[l+1])/v[l];for(v[f-1]=(s[f]+b[f-1])/2,l=0;l<f-1;++l)v[l]=2*s[l+1]-b[l+1];return[b,v]}function Uy(s){return new Uu(s)}function $l(s,l){this._context=s,this._t=l}function Wu(s){return new $l(s,.5)}function Kc(s){return new $l(s,0)}function _g(s){return new $l(s,1)}function bc(s,l,f){this.k=s,this.x=l,this.y=f}If.prototype={areaStart:za,areaEnd:za,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(s,l){s=+s,l=+l,this._point?this._context.lineTo(s,l):(this._point=1,this._context.moveTo(s,l))}},zl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Af(this,this._t0,ju(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(s,l){var f=NaN;if(l=+l,(s=+s)!==this._x1||l!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(s,l):this._context.moveTo(s,l);break;case 1:this._point=2;break;case 2:this._point=3,Af(this,ju(this,f=$y(this,s,l)),f);break;default:Af(this,this._t0,f=$y(this,s,l))}this._x0=this._x1,this._x1=s,this._y0=this._y1,this._y1=l,this._t0=f}}},(Ff.prototype=Object.create(zl.prototype)).point=function(s,l){zl.prototype.point.call(this,l,s)},Of.prototype={moveTo:function(s,l){this._context.moveTo(l,s)},closePath:function(){this._context.closePath()},lineTo:function(s,l){this._context.lineTo(l,s)},bezierCurveTo:function(s,l,f,m,b,v){this._context.bezierCurveTo(l,s,m,f,v,b)}},Uu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var s=this._x,l=this._y,f=s.length;if(f)if(this._line?this._context.lineTo(s[0],l[0]):this._context.moveTo(s[0],l[0]),2===f)this._context.lineTo(s[1],l[1]);else for(var m=vd(s),b=vd(l),v=0,C=1;C<f;++v,++C)this._context.bezierCurveTo(m[0][v],b[0][v],m[1][v],b[1][v],s[C],l[C]);(this._line||0!==this._line&&1===f)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(s,l){this._x.push(+s),this._y.push(+l)}},$l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(s,l){switch(s=+s,l=+l,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,l):this._context.moveTo(s,l);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,l),this._context.lineTo(s,l);else{var f=this._x*(1-this._t)+s*this._t;this._context.lineTo(f,this._y),this._context.lineTo(f,l)}}this._x=s,this._y=l}},bc.prototype={constructor:bc,scale:function(s){return 1===s?this:new bc(this.k*s,this.x,this.y)},translate:function(s,l){return 0===s&0===l?this:new bc(this.k,this.x+this.k*s,this.y+this.k*l)},apply:function(s){return[s[0]*this.k+this.x,s[1]*this.k+this.y]},applyX:function(s){return s*this.k+this.x},applyY:function(s){return s*this.k+this.y},invert:function(s){return[(s[0]-this.x)/this.k,(s[1]-this.y)/this.k]},invertX:function(s){return(s-this.x)/this.k},invertY:function(s){return(s-this.y)/this.k},rescaleX:function(s){return s.copy().domain(s.range().map(this.invertX,this).map(s.invert,s))},rescaleY:function(s){return s.copy().domain(s.range().map(this.invertY,this).map(s.invert,s))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new bc(1,0,0)},4556:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>V});var q=O(8267),de=O(3796);const V=new class ne{constructor(K,ce){this.color=ce,this.changed=!1,this.data=K,this.type=new class re{constructor(){this.type=de.w.ALL}get(){return this.type}set(K){if(this.type&&this.type!==K)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=K}reset(){this.type=de.w.ALL}is(K){return this.type===K}}}set(K,ce){return this.color=ce,this.changed=!1,this.data=K,this.type.type=de.w.ALL,this}_ensureHSL(){const K=this.data,{h:ce,s:kt,l:Xt}=K;void 0===ce&&(K.h=q.Z.channel.rgb2hsl(K,"h")),void 0===kt&&(K.s=q.Z.channel.rgb2hsl(K,"s")),void 0===Xt&&(K.l=q.Z.channel.rgb2hsl(K,"l"))}_ensureRGB(){const K=this.data,{r:ce,g:kt,b:Xt}=K;void 0===ce&&(K.r=q.Z.channel.hsl2rgb(K,"r")),void 0===kt&&(K.g=q.Z.channel.hsl2rgb(K,"g")),void 0===Xt&&(K.b=q.Z.channel.hsl2rgb(K,"b"))}get r(){const K=this.data,ce=K.r;return this.type.is(de.w.HSL)||void 0===ce?(this._ensureHSL(),q.Z.channel.hsl2rgb(K,"r")):ce}get g(){const K=this.data,ce=K.g;return this.type.is(de.w.HSL)||void 0===ce?(this._ensureHSL(),q.Z.channel.hsl2rgb(K,"g")):ce}get b(){const K=this.data,ce=K.b;return this.type.is(de.w.HSL)||void 0===ce?(this._ensureHSL(),q.Z.channel.hsl2rgb(K,"b")):ce}get h(){const K=this.data,ce=K.h;return this.type.is(de.w.RGB)||void 0===ce?(this._ensureRGB(),q.Z.channel.rgb2hsl(K,"h")):ce}get s(){const K=this.data,ce=K.s;return this.type.is(de.w.RGB)||void 0===ce?(this._ensureRGB(),q.Z.channel.rgb2hsl(K,"s")):ce}get l(){const K=this.data,ce=K.l;return this.type.is(de.w.RGB)||void 0===ce?(this._ensureRGB(),q.Z.channel.rgb2hsl(K,"l")):ce}get a(){return this.data.a}set r(K){this.type.set(de.w.RGB),this.changed=!0,this.data.r=K}set g(K){this.type.set(de.w.RGB),this.changed=!0,this.data.g=K}set b(K){this.type.set(de.w.RGB),this.changed=!0,this.data.b=K}set h(K){this.type.set(de.w.HSL),this.changed=!0,this.data.h=K}set s(K){this.type.set(de.w.HSL),this.changed=!0,this.data.s=K}set l(K){this.type.set(de.w.HSL),this.changed=!0,this.data.l=K}set a(K){this.changed=!0,this.data.a=K}}({r:0,g:0,b:0,a:0},"transparent")},486:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>Xt});var q=O(4556),de=O(3796);const re={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:Se=>{if(35!==Se.charCodeAt(0))return;const X=Se.match(re.re);if(!X)return;const Te=X[1],be=parseInt(Te,16),yt=Te.length,Et=yt%4==0,pt=yt>4,zt=pt?1:17,$t=pt?8:4,at=Et?0:-1,nn=pt?255:15;return q.Z.set({r:(be>>$t*(at+3)&nn)*zt,g:(be>>$t*(at+2)&nn)*zt,b:(be>>$t*(at+1)&nn)*zt,a:Et?(be&nn)*zt/255:1},Se)},stringify:Se=>{const{r:X,g:Te,b:be,a:yt}=Se;return yt<1?`#${de.Q[Math.round(X)]}${de.Q[Math.round(Te)]}${de.Q[Math.round(be)]}${de.Q[Math.round(255*yt)]}`:`#${de.Q[Math.round(X)]}${de.Q[Math.round(Te)]}${de.Q[Math.round(be)]}`}},J=re;var ne=O(8267);const je={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:Se=>{const X=Se.match(je.hueRe);if(X){const[,Te,be]=X;switch(be){case"grad":return ne.Z.channel.clamp.h(.9*parseFloat(Te));case"rad":return ne.Z.channel.clamp.h(180*parseFloat(Te)/Math.PI);case"turn":return ne.Z.channel.clamp.h(360*parseFloat(Te))}}return ne.Z.channel.clamp.h(parseFloat(Se))},parse:Se=>{const X=Se.charCodeAt(0);if(104!==X&&72!==X)return;const Te=Se.match(je.re);if(!Te)return;const[,be,yt,Et,pt,zt]=Te;return q.Z.set({h:je._hue2deg(be),s:ne.Z.channel.clamp.s(parseFloat(yt)),l:ne.Z.channel.clamp.l(parseFloat(Et)),a:pt?ne.Z.channel.clamp.a(zt?parseFloat(pt)/100:parseFloat(pt)):1},Se)},stringify:Se=>{const{h:X,s:Te,l:be,a:yt}=Se;return yt<1?`hsla(${ne.Z.lang.round(X)}, ${ne.Z.lang.round(Te)}%, ${ne.Z.lang.round(be)}%, ${yt})`:`hsl(${ne.Z.lang.round(X)}, ${ne.Z.lang.round(Te)}%, ${ne.Z.lang.round(be)}%)`}},Ye=je,V={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:Se=>{Se=Se.toLowerCase();const X=V.colors[Se];if(X)return J.parse(X)},stringify:Se=>{const X=J.stringify(Se);for(const Te in V.colors)if(V.colors[Te]===X)return Te}},le=V,K={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:Se=>{const X=Se.charCodeAt(0);if(114!==X&&82!==X)return;const Te=Se.match(K.re);if(!Te)return;const[,be,yt,Et,pt,zt,$t,at,nn]=Te;return q.Z.set({r:ne.Z.channel.clamp.r(yt?2.55*parseFloat(be):parseFloat(be)),g:ne.Z.channel.clamp.g(pt?2.55*parseFloat(Et):parseFloat(Et)),b:ne.Z.channel.clamp.b($t?2.55*parseFloat(zt):parseFloat(zt)),a:at?ne.Z.channel.clamp.a(nn?parseFloat(at)/100:parseFloat(at)):1},Se)},stringify:Se=>{const{r:X,g:Te,b:be,a:yt}=Se;return yt<1?`rgba(${ne.Z.lang.round(X)}, ${ne.Z.lang.round(Te)}, ${ne.Z.lang.round(be)}, ${ne.Z.lang.round(yt)})`:`rgb(${ne.Z.lang.round(X)}, ${ne.Z.lang.round(Te)}, ${ne.Z.lang.round(be)})`}},ce=K,Xt={format:{keyword:V,hex:J,rgb:K,rgba:K,hsl:je,hsla:je},parse:Se=>{if("string"!=typeof Se)return Se;const X=J.parse(Se)||ce.parse(Se)||Ye.parse(Se)||le.parse(Se);if(X)return X;throw new Error(`Unsupported color format: "${Se}"`)},stringify:Se=>!Se.changed&&Se.color?Se.color:Se.type.is(de.w.HSL)||void 0===Se.data.r?Ye.stringify(Se):Se.a<1||!Number.isInteger(Se.r)||!Number.isInteger(Se.g)||!Number.isInteger(Se.b)?ce.stringify(Se):J.stringify(Se)}},3796:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Q:()=>de,w:()=>re});var q=O(8267);const de={};for(let J=0;J<=255;J++)de[J]=q.Z.unit.dec2hex(J);const re={ALL:0,RGB:1,HSL:2}},9846:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>J});var q=O(8267),de=O(486);const J=(ne,je,Ye)=>{const V=de.Z.parse(ne),le=V[je],K=q.Z.channel.clamp[je](le+Ye);return le!==K&&(V[je]=K),de.Z.stringify(V)}},8674:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>re});var q=O(9846);const re=(J,ne)=>(0,q.Z)(J,"l",-ne)},1223:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>re});var q=O(9846);const re=(J,ne)=>(0,q.Z)(J,"l",ne)},8267:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>V});const q={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:le=>le>=255?255:le<0?0:le,g:le=>le>=255?255:le<0?0:le,b:le=>le>=255?255:le<0?0:le,h:le=>le%360,s:le=>le>=100?100:le<0?0:le,l:le=>le>=100?100:le<0?0:le,a:le=>le>=1?1:le<0?0:le},toLinear:le=>{const K=le/255;return le>.03928?Math.pow((K+.055)/1.055,2.4):K/12.92},hue2rgb:(le,K,ce)=>(ce<0&&(ce+=1),ce>1&&(ce-=1),ce<1/6?le+6*(K-le)*ce:ce<.5?K:ce<2/3?le+(K-le)*(2/3-ce)*6:le),hsl2rgb:({h:le,s:K,l:ce},kt)=>{if(!K)return 2.55*ce;le/=360,K/=100;const Xt=(ce/=100)<.5?ce*(1+K):ce+K-ce*K,Se=2*ce-Xt;switch(kt){case"r":return 255*q.hue2rgb(Se,Xt,le+1/3);case"g":return 255*q.hue2rgb(Se,Xt,le);case"b":return 255*q.hue2rgb(Se,Xt,le-1/3)}},rgb2hsl:({r:le,g:K,b:ce},kt)=>{le/=255,K/=255,ce/=255;const Xt=Math.max(le,K,ce),Se=Math.min(le,K,ce),X=(Xt+Se)/2;if("l"===kt)return 100*X;if(Xt===Se)return 0;const Te=Xt-Se;if("s"===kt)return 100*(X>.5?Te/(2-Xt-Se):Te/(Xt+Se));switch(Xt){case le:return 60*((K-ce)/Te+(K<ce?6:0));case K:return 60*((ce-le)/Te+2);case ce:return 60*((le-K)/Te+4);default:return-1}}},V={channel:q,lang:{clamp:(le,K,ce)=>K>ce?Math.min(K,Math.max(ce,le)):Math.min(ce,Math.max(K,le)),round:le=>Math.round(1e10*le)/1e10},unit:{dec2hex:le=>{const K=Math.round(le).toString(16);return K.length>1?K:`0${K}`}}}},2622:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>be});var re=O(3093);const ne=function J(yt,Et){for(var pt=yt.length;pt--;)if((0,re.Z)(yt[pt][0],Et))return pt;return-1};var Ye=Array.prototype.splice;function Te(yt){var Et=-1,pt=null==yt?0:yt.length;for(this.clear();++Et<pt;){var zt=yt[Et];this.set(zt[0],zt[1])}}Te.prototype.clear=function q(){this.__data__=[],this.size=0},Te.prototype.delete=function V(yt){var Et=this.__data__,pt=ne(Et,yt);return!(pt<0||(pt==Et.length-1?Et.pop():Ye.call(Et,pt,1),--this.size,0))},Te.prototype.get=function K(yt){var Et=this.__data__,pt=ne(Et,yt);return pt<0?void 0:Et[pt][1]},Te.prototype.has=function kt(yt){return ne(this.__data__,yt)>-1},Te.prototype.set=function Se(yt,Et){var pt=this.__data__,zt=ne(pt,yt);return zt<0?(++this.size,pt.push([yt,Et])):pt[zt][1]=Et,this};const be=Te},9329:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>J});var q=O(3858),de=O(5946);const J=(0,q.Z)(de.Z,"Map")},3639:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>Gi});const re=(0,O(3858).Z)(Object,"create");var K=Object.prototype.hasOwnProperty;var Se=Object.prototype.hasOwnProperty;function pt(_t){var qe=-1,It=null==_t?0:_t.length;for(this.clear();++qe<It;){var Jn=_t[qe];this.set(Jn[0],Jn[1])}}pt.prototype.clear=function J(){this.__data__=re?re(null):{},this.size=0},pt.prototype.delete=function je(_t){var qe=this.has(_t)&&delete this.__data__[_t];return this.size-=qe?1:0,qe},pt.prototype.get=function ce(_t){var qe=this.__data__;if(re){var It=qe[_t];return"__lodash_hash_undefined__"===It?void 0:It}return K.call(qe,_t)?qe[_t]:void 0},pt.prototype.has=function X(_t){var qe=this.__data__;return re?void 0!==qe[_t]:Se.call(qe,_t)},pt.prototype.set=function yt(_t,qe){var It=this.__data__;return this.size+=this.has(_t)?0:1,It[_t]=re&&void 0===qe?"__lodash_hash_undefined__":qe,this};const zt=pt;var $t=O(2622),at=O(9329);const Ze=function we(_t,qe){var It=_t.__data__;return function wt(_t){var qe=typeof _t;return"string"==qe||"number"==qe||"symbol"==qe||"boolean"==qe?"__proto__"!==_t:null===_t}(qe)?It["string"==typeof qe?"string":"hash"]:It.map};function Ee(_t){var qe=-1,It=null==_t?0:_t.length;for(this.clear();++qe<It;){var Jn=_t[qe];this.set(Jn[0],Jn[1])}}Ee.prototype.clear=function nn(){this.size=0,this.__data__={hash:new zt,map:new(at.Z||$t.Z),string:new zt}},Ee.prototype.delete=function Ve(_t){var qe=Ze(this,_t).delete(_t);return this.size-=qe?1:0,qe},Ee.prototype.get=function ut(_t){return Ze(this,_t).get(_t)},Ee.prototype.has=function Mn(_t){return Ze(this,_t).has(_t)},Ee.prototype.set=function ln(_t,qe){var It=Ze(this,_t),Jn=It.size;return It.set(_t,qe),this.size+=It.size==Jn?0:1,this};const Gi=Ee},7863:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>J});var q=O(3858),de=O(5946);const J=(0,q.Z)(de.Z,"Set")},8492:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>re});const re=O(5946).Z.Symbol},7079:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>Te});var q=O(8492),de=Object.prototype,re=de.hasOwnProperty,J=de.toString,ne=q.Z?q.Z.toStringTag:void 0;var le=Object.prototype.toString;var Se=q.Z?q.Z.toStringTag:void 0;const Te=function X(be){return null==be?void 0===be?"[object Undefined]":"[object Null]":Se&&Se in Object(be)?function je(be){var yt=re.call(be,ne),Et=be[ne];try{be[ne]=void 0;var pt=!0}catch{}var zt=J.call(be);return pt&&(yt?be[ne]=Et:delete be[ne]),zt}(be):function K(be){return le.call(be)}(be)}},4884:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>V});var q=O(1986);const J=(0,O(5820).Z)(Object.keys,Object);var je=Object.prototype.hasOwnProperty;const V=function Ye(le){if(!(0,q.Z)(le))return J(le);var K=[];for(var ce in Object(le))je.call(le,ce)&&"constructor"!=ce&&K.push(ce);return K}},6932:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>de});const de=function q(re){return function(J){return re(J)}}},8346:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>de});const de="object"==typeof global&&global&&global.Object===Object&&global},3858:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>$t});var at,q=O(2089),re=O(5946).Z["__core-js_shared__"],ne=(at=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"";var V=O(1999),le=O(4407),ce=/^\[object .+?Constructor\]$/,Te=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const yt=function be(at){return!(!(0,V.Z)(at)||function je(at){return!!ne&&ne in at}(at))&&((0,q.Z)(at)?Te:ce).test((0,le.Z)(at))},$t=function zt(at,nn){var Qn=function Et(at,nn){return at?.[nn]}(at,nn);return yt(Qn)?Qn:void 0}},7183:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>Qn});var q=O(3858),de=O(5946);const J=(0,q.Z)(de.Z,"DataView");var ne=O(9329);const Ye=(0,q.Z)(de.Z,"Promise");var V=O(7863);const K=(0,q.Z)(de.Z,"WeakMap");var ce=O(7079),kt=O(4407),Xt="[object Map]",X="[object Promise]",Te="[object Set]",be="[object WeakMap]",yt="[object DataView]",Et=(0,kt.Z)(J),pt=(0,kt.Z)(ne.Z),zt=(0,kt.Z)(Ye),$t=(0,kt.Z)(V.Z),at=(0,kt.Z)(K),nn=ce.Z;(J&&nn(new J(new ArrayBuffer(1)))!=yt||ne.Z&&nn(new ne.Z)!=Xt||Ye&&nn(Ye.resolve())!=X||V.Z&&nn(new V.Z)!=Te||K&&nn(new K)!=be)&&(nn=function(wt){var Ue=(0,ce.Z)(wt),we="[object Object]"==Ue?wt.constructor:void 0,Ze=we?(0,kt.Z)(we):"";if(Ze)switch(Ze){case Et:return yt;case pt:return Xt;case zt:return X;case $t:return Te;case at:return be}return Ue});const Qn=nn},1986:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>re});var q=Object.prototype;const re=function de(J){var ne=J&&J.constructor;return J===("function"==typeof ne&&ne.prototype||q)}},6594:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>Ye});var q=O(8346),de="object"==typeof exports&&exports&&!exports.nodeType&&exports,re=de&&"object"==typeof module&&module&&!module.nodeType&&module,ne=re&&re.exports===de&&q.Z.process;const Ye=function(){try{return re&&re.require&&re.require("util").types||ne&&ne.binding&&ne.binding("util")}catch{}}()},5820:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>de});const de=function q(re,J){return function(ne){return re(J(ne))}}},5946:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>J});var q=O(8346),de="object"==typeof self&&self&&self.Object===Object&&self;const J=q.Z||de||Function("return this")()},4407:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>J});var de=Function.prototype.toString;const J=function re(ne){if(null!=ne){try{return de.call(ne)}catch{}try{return ne+""}catch{}}return""}},3093:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>de});const de=function q(re,J){return re===J||re!=re&&J!=J}},4825:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>K});var q=O(7079),de=O(214);const ne=function J(ce){return(0,de.Z)(ce)&&"[object Arguments]"==(0,q.Z)(ce)};var je=Object.prototype,Ye=je.hasOwnProperty,V=je.propertyIsEnumerable;const K=ne(function(){return arguments}())?ne:function(ce){return(0,de.Z)(ce)&&Ye.call(ce,"callee")&&!V.call(ce,"callee")}},4177:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>de});const de=Array.isArray},8706:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>J});var q=O(2089),de=O(8696);const J=function re(ne){return null!=ne&&(0,de.Z)(ne.length)&&!(0,q.Z)(ne)}},5202:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>K});var q=O(5946),J="object"==typeof exports&&exports&&!exports.nodeType&&exports,ne=J&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=ne&&ne.exports===J?q.Z.Buffer:void 0;const K=(Ye?Ye.isBuffer:void 0)||function de(){return!1}},9378:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>Se});var q=O(4884),de=O(7183),re=O(4825),J=O(4177),ne=O(8706),je=O(5202),Ye=O(1986),V=O(7583),kt=Object.prototype.hasOwnProperty;const Se=function Xt(X){if(null==X)return!0;if((0,ne.Z)(X)&&((0,J.Z)(X)||"string"==typeof X||"function"==typeof X.splice||(0,je.Z)(X)||(0,V.Z)(X)||(0,re.Z)(X)))return!X.length;var Te=(0,de.Z)(X);if("[object Map]"==Te||"[object Set]"==Te)return!X.size;if((0,Ye.Z)(X))return!(0,q.Z)(X).length;for(var be in X)if(kt.call(X,be))return!1;return!0}},2089:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>V});var q=O(7079),de=O(1999);const V=function Ye(le){if(!(0,de.Z)(le))return!1;var K=(0,q.Z)(le);return"[object Function]"==K||"[object GeneratorFunction]"==K||"[object AsyncFunction]"==K||"[object Proxy]"==K}},8696:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>re});const re=function de(J){return"number"==typeof J&&J>-1&&J%1==0&&J<=9007199254740991}},1999:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>de});const de=function q(re){var J=typeof re;return null!=re&&("object"==J||"function"==J)}},214:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>de});const de=function q(re){return null!=re&&"object"==typeof re}},7583:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>vn});var q=O(7079),de=O(8696),re=O(214),we={};we["[object Float32Array]"]=we["[object Float64Array]"]=we["[object Int8Array]"]=we["[object Int16Array]"]=we["[object Int32Array]"]=we["[object Uint8Array]"]=we["[object Uint8ClampedArray]"]=we["[object Uint16Array]"]=we["[object Uint32Array]"]=!0,we["[object Arguments]"]=we["[object Array]"]=we["[object ArrayBuffer]"]=we["[object Boolean]"]=we["[object DataView]"]=we["[object Date]"]=we["[object Error]"]=we["[object Function]"]=we["[object Map]"]=we["[object Number]"]=we["[object Object]"]=we["[object RegExp]"]=we["[object Set]"]=we["[object String]"]=we["[object WeakMap]"]=!1;var gt=O(6932),ut=O(6594),ye=ut.Z&&ut.Z.isTypedArray;const vn=ye?(0,gt.Z)(ye):function Ze(ln){return(0,re.Z)(ln)&&(0,de.Z)(ln.length)&&!!we[(0,q.Z)(ln)]}},2572:(Jt,Ae,O)=>{"use strict";O.d(Ae,{Z:()=>J});var q=O(3639),de="Expected a function";function re(ne,je){if("function"!=typeof ne||null!=je&&"function"!=typeof je)throw new TypeError(de);var Ye=function(){var V=arguments,le=je?je.apply(this,V):V[0],K=Ye.cache;if(K.has(le))return K.get(le);var ce=ne.apply(this,V);return Ye.cache=K.set(le,ce)||K,ce};return Ye.cache=new(re.Cache||q.Z),Ye}re.Cache=q.Z;const J=re},6012:(Jt,Ae,O)=>{"use strict";O.d(Ae,{a:()=>K,b:()=>le,c:()=>Se,d:()=>ce,e:()=>kt,f:()=>je,g:()=>V,s:()=>Ye});var q=O(855);let de="",re="",J="";const ne=X=>(0,q.b)(X,(0,q.g)()),je=function(){de="",J="",re=""},Ye=function(X){de=ne(X).replace(/^\s+/g,"")},V=function(){return de||re},le=function(X){J=ne(X).replace(/\n\s+/g,"\n")},K=function(){return J},ce=function(X){re=ne(X)},kt=function(){return re},Se=Object.freeze(Object.defineProperty({__proto__:null,clear:je,default:{setAccTitle:Ye,getAccTitle:V,setDiagramTitle:ce,getDiagramTitle:kt,getAccDescription:K,setAccDescription:le,clear:je},getAccDescription:K,getAccTitle:V,getDiagramTitle:kt,setAccDescription:le,setAccTitle:Ye,setDiagramTitle:ce},Symbol.toStringTag,{value:"Module"}))},855:(Jt,Ae,O)=>{"use strict";O.d(Ae,{a:()=>Eo,b:()=>Qn,c:()=>Ni,d:()=>vn,e:()=>Ma,f:()=>Yi,g:()=>pn,h:()=>bi,i:()=>rs,j:()=>ye,k:()=>gn,l:()=>Et,m:()=>Ut,p:()=>Mn,r:()=>Ea,s:()=>pt,t:()=>Cr,u:()=>ei});var q=O(2735),de=O(1764),re=O(486),J=O(8267);const je=(Z,L)=>{const Ie=re.Z.parse(Z);for(const ht in L)Ie[ht]=J.Z.channel.clamp[ht](L[ht]);return re.Z.stringify(Ie)},V=(Z,L)=>{const Ie=re.Z.parse(Z),ht={};for(const gi in L)L[gi]&&(ht[gi]=Ie[gi]+L[gi]);return je(Z,ht)};var le=O(4556);const ce=(Z,L,Ie=0,ht=1)=>{if("number"!=typeof Z)return je(Z,{a:L});const gi=le.Z.set({r:J.Z.channel.clamp.r(Z),g:J.Z.channel.clamp.g(L),b:J.Z.channel.clamp.b(Ie),a:J.Z.channel.clamp.a(ht)});return re.Z.stringify(gi)},X=(Z,L=100)=>{const Ie=re.Z.parse(Z);return Ie.r=255-Ie.r,Ie.g=255-Ie.g,Ie.b=255-Ie.b,((Z,L,Ie=50)=>{const{r:ht,g:gi,b:xn,a:as}=re.Z.parse(Z),{r:ro,g:oo,b:ka,a:Gs}=re.Z.parse(L),yi=Ie/100,cs=2*yi-1,ko=as-Gs,So=((cs*ko==-1?cs:(cs+ko)/(1+cs*ko))+1)/2,Io=1-So;return ce(ht*So+ro*Io,gi*So+oo*Io,xn*So+ka*Io,as*yi+Gs*(1-yi))})(Ie,Z,L)};var Te=O(8674),be=O(1223);const yt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Et={trace:(...Z)=>{},debug:(...Z)=>{},info:(...Z)=>{},warn:(...Z)=>{},error:(...Z)=>{},fatal:(...Z)=>{}},pt=function(Z="fatal"){let L=yt.fatal;"string"==typeof Z?(Z=Z.toLowerCase())in yt&&(L=yt[Z]):"number"==typeof Z&&(L=Z),Et.trace=()=>{},Et.debug=()=>{},Et.info=()=>{},Et.warn=()=>{},Et.error=()=>{},Et.fatal=()=>{},L<=yt.fatal&&(Et.fatal=console.error?console.error.bind(console,zt("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",zt("FATAL"))),L<=yt.error&&(Et.error=console.error?console.error.bind(console,zt("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",zt("ERROR"))),L<=yt.warn&&(Et.warn=console.warn?console.warn.bind(console,zt("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",zt("WARN"))),L<=yt.info&&(Et.info=console.info?console.info.bind(console,zt("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",zt("INFO"))),L<=yt.debug&&(Et.debug=console.debug?console.debug.bind(console,zt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",zt("DEBUG"))),L<=yt.trace&&(Et.trace=console.debug?console.debug.bind(console,zt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",zt("TRACE")))},zt=Z=>`%c${de().format("ss.SSS")} : ${Z} : `,at=Z=>q.sanitize(Z),nn=(Z,L)=>{var Ie;if(!1!==(null==(Ie=L.flowchart)?void 0:Ie.htmlLabels)){const ht=L.securityLevel;"antiscript"===ht||"strict"===ht?Z=at(Z):"loose"!==ht&&(Z=(Z=(Z=gt(Z)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),Z=Ve(Z))}return Z},Qn=(Z,L)=>Z&&(L.dompurifyConfig?q.sanitize(nn(Z,L),L.dompurifyConfig).toString():q.sanitize(nn(Z,L),{FORBID_TAGS:["style"]}).toString()),Ue=/<br\s*\/?>/gi,Ve=Z=>Z.replace(/#br#/g,"<br/>"),gt=Z=>Z.replace(Ue,"#br#"),ye=Z=>!(!1===Z||["false","null","0"].includes(String(Z).trim().toLowerCase())),Mn=function(Z){let L=Z;if(Z.split("~").length-1>=2){let Ie=L;do{L=Ie,Ie=L.replace(/~([^\s,:;]+)~/,"<$1>")}while(Ie!=L);return Mn(Ie)}return L},vn={getRows:Z=>Z?gt(Z).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:Qn,sanitizeTextOrArray:(Z,L)=>"string"==typeof Z?Qn(Z,L):Z.flat().map(Ie=>Qn(Ie,L)),hasBreaks:Z=>Ue.test(Z),splitBreaks:Z=>Z.split(Ue),lineBreakRegex:Ue,removeScript:at,getUrl:Z=>{let L="";return Z&&(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,L=L.replaceAll(/\(/g,"\\("),L=L.replaceAll(/\)/g,"\\)")),L},evaluate:ye},ln=(Z,L)=>V(Z,L?{s:-40,l:10}:{s:-40,l:-10}),di="#ffffff",Ee="#f2f2f2";class Li{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,be.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=V(this.primaryColor,{h:-160}),this.primaryBorderColor=ln(this.primaryColor,this.darkMode),this.secondaryBorderColor=ln(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ln(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.lineColor=X(this.background),this.textColor=X(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,be.Z)(this.contrast,55),this.border2=this.contrast,this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||X(this["cScale"+L]);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScalePeer"+L]=this.darkMode?this["cScalePeer"+L]||(0,be.Z)(this["cScale"+L],10):this["cScalePeer"+L]||(0,Te.Z)(this["cScale"+L],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||V(this.mainBkg,{l:-(5+5*L)}),this["surfacePeer"+L]=this["surfacePeer"+L]||V(this.mainBkg,{l:-(8+5*L)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=(0,be.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=(0,be.Z)(this.contrast,30),this.sectionBkgColor2=(0,be.Z)(this.contrast,30),this.taskBorderColor=(0,Te.Z)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,be.Z)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,Te.Z)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=V(this.primaryColor,{h:64}),this.fillType3=V(this.secondaryColor,{h:64}),this.fillType4=V(this.primaryColor,{h:-64}),this.fillType5=V(this.secondaryColor,{h:-64}),this.fillType6=V(this.primaryColor,{h:128}),this.fillType7=V(this.secondaryColor,{h:128});for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["pie"+L]=this["cScale"+L];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,Te.Z)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||V(this.primaryColor,{h:-30}),this.git4=this.pie5||V(this.primaryColor,{h:-60}),this.git5=this.pie6||V(this.primaryColor,{h:-90}),this.git6=this.pie7||V(this.primaryColor,{h:60}),this.git7=this.pie8||V(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||di,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(L){if("object"!=typeof L)return void this.updateColors();const Ie=Object.keys(L);Ie.forEach(ht=>{this[ht]=L[ht]}),this.updateColors(),Ie.forEach(ht=>{this[ht]=L[ht]})}}const Cr={base:{getThemeVariables:Z=>{const L=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||V(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||V(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ln(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ln(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ln(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ln(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||X(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||X(this.tertiaryColor),this.lineColor=this.lineColor||X(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,Te.Z)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,Te.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||X(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,be.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||V(this.primaryColor,{h:30}),this.cScale4=this.cScale4||V(this.primaryColor,{h:60}),this.cScale5=this.cScale5||V(this.primaryColor,{h:90}),this.cScale6=this.cScale6||V(this.primaryColor,{h:120}),this.cScale7=this.cScale7||V(this.primaryColor,{h:150}),this.cScale8=this.cScale8||V(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||V(this.primaryColor,{h:270}),this.cScale10=this.cScale10||V(this.primaryColor,{h:300}),this.cScale11=this.cScale11||V(this.primaryColor,{h:330}),this.darkMode)for(let Ie=0;Ie<this.THEME_COLOR_LIMIT;Ie++)this["cScale"+Ie]=(0,Te.Z)(this["cScale"+Ie],75);else for(let Ie=0;Ie<this.THEME_COLOR_LIMIT;Ie++)this["cScale"+Ie]=(0,Te.Z)(this["cScale"+Ie],25);for(let Ie=0;Ie<this.THEME_COLOR_LIMIT;Ie++)this["cScaleInv"+Ie]=this["cScaleInv"+Ie]||X(this["cScale"+Ie]);for(let Ie=0;Ie<this.THEME_COLOR_LIMIT;Ie++)this["cScalePeer"+Ie]=this.darkMode?this["cScalePeer"+Ie]||(0,be.Z)(this["cScale"+Ie],10):this["cScalePeer"+Ie]||(0,Te.Z)(this["cScale"+Ie],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let Ie=0;Ie<this.THEME_COLOR_LIMIT;Ie++)this["cScaleLabel"+Ie]=this["cScaleLabel"+Ie]||this.scaleLabelColor;const L=this.darkMode?-4:-1;for(let Ie=0;Ie<5;Ie++)this["surface"+Ie]=this["surface"+Ie]||V(this.mainBkg,{h:180,s:-15,l:L*(5+3*Ie)}),this["surfacePeer"+Ie]=this["surfacePeer"+Ie]||V(this.mainBkg,{h:180,s:-15,l:L*(8+3*Ie)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||V(this.primaryColor,{h:64}),this.fillType3=this.fillType3||V(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||V(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||V(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||V(this.primaryColor,{h:128}),this.fillType7=this.fillType7||V(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||V(this.primaryColor,{l:-10}),this.pie5=this.pie5||V(this.secondaryColor,{l:-10}),this.pie6=this.pie6||V(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||V(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||V(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||V(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||V(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||V(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||V(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,Te.Z)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||V(this.primaryColor,{h:-30}),this.git4=this.git4||V(this.primaryColor,{h:-60}),this.git5=this.git5||V(this.primaryColor,{h:-90}),this.git6=this.git6||V(this.primaryColor,{h:60}),this.git7=this.git7||V(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,be.Z)(this.git0,25),this.git1=(0,be.Z)(this.git1,25),this.git2=(0,be.Z)(this.git2,25),this.git3=(0,be.Z)(this.git3,25),this.git4=(0,be.Z)(this.git4,25),this.git5=(0,be.Z)(this.git5,25),this.git6=(0,be.Z)(this.git6,25),this.git7=(0,be.Z)(this.git7,25)):(this.git0=(0,Te.Z)(this.git0,25),this.git1=(0,Te.Z)(this.git1,25),this.git2=(0,Te.Z)(this.git2,25),this.git3=(0,Te.Z)(this.git3,25),this.git4=(0,Te.Z)(this.git4,25),this.git5=(0,Te.Z)(this.git5,25),this.git6=(0,Te.Z)(this.git6,25),this.git7=(0,Te.Z)(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||di,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(L){if("object"!=typeof L)return void this.updateColors();const Ie=Object.keys(L);Ie.forEach(ht=>{this[ht]=L[ht]}),this.updateColors(),Ie.forEach(ht=>{this[ht]=L[ht]})}};return L.calculate(Z),L}},dark:{getThemeVariables:Z=>{const L=new class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,be.Z)(this.primaryColor,16),this.tertiaryColor=V(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.background),this.secondaryBorderColor=ln(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ln(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.lineColor=X(this.background),this.textColor=X(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,be.Z)(X("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ce(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,Te.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=ce(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ce(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,be.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,be.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,be.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=V(this.primaryColor,{h:64}),this.fillType3=V(this.secondaryColor,{h:64}),this.fillType4=V(this.primaryColor,{h:-64}),this.fillType5=V(this.secondaryColor,{h:-64}),this.fillType6=V(this.primaryColor,{h:128}),this.fillType7=V(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||V(this.primaryColor,{h:30}),this.cScale4=this.cScale4||V(this.primaryColor,{h:60}),this.cScale5=this.cScale5||V(this.primaryColor,{h:90}),this.cScale6=this.cScale6||V(this.primaryColor,{h:120}),this.cScale7=this.cScale7||V(this.primaryColor,{h:150}),this.cScale8=this.cScale8||V(this.primaryColor,{h:210}),this.cScale9=this.cScale9||V(this.primaryColor,{h:270}),this.cScale10=this.cScale10||V(this.primaryColor,{h:300}),this.cScale11=this.cScale11||V(this.primaryColor,{h:330});for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||X(this["cScale"+L]);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScalePeer"+L]=this["cScalePeer"+L]||(0,be.Z)(this["cScale"+L],10);for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||V(this.mainBkg,{h:30,s:-30,l:-(4*L-10)}),this["surfacePeer"+L]=this["surfacePeer"+L]||V(this.mainBkg,{h:30,s:-30,l:-(4*L-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["pie"+L]=this["cScale"+L];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,Te.Z)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,be.Z)(this.secondaryColor,20),this.git1=(0,be.Z)(this.pie2||this.secondaryColor,20),this.git2=(0,be.Z)(this.pie3||this.tertiaryColor,20),this.git3=(0,be.Z)(this.pie4||V(this.primaryColor,{h:-30}),20),this.git4=(0,be.Z)(this.pie5||V(this.primaryColor,{h:-60}),20),this.git5=(0,be.Z)(this.pie6||V(this.primaryColor,{h:-90}),10),this.git6=(0,be.Z)(this.pie7||V(this.primaryColor,{h:60}),10),this.git7=(0,be.Z)(this.pie8||V(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,be.Z)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,be.Z)(this.background,2)}calculate(L){if("object"!=typeof L)return void this.updateColors();const Ie=Object.keys(L);Ie.forEach(ht=>{this[ht]=L[ht]}),this.updateColors(),Ie.forEach(ht=>{this[ht]=L[ht]})}};return L.calculate(Z),L}},default:{getThemeVariables:Z=>{const L=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=V(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=V(this.primaryColor,{h:-160}),this.primaryBorderColor=ln(this.primaryColor,this.darkMode),this.secondaryBorderColor=ln(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ln(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.tertiaryColor),this.lineColor=X(this.background),this.textColor=X(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ce(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||V(this.primaryColor,{h:30}),this.cScale4=this.cScale4||V(this.primaryColor,{h:60}),this.cScale5=this.cScale5||V(this.primaryColor,{h:90}),this.cScale6=this.cScale6||V(this.primaryColor,{h:120}),this.cScale7=this.cScale7||V(this.primaryColor,{h:150}),this.cScale8=this.cScale8||V(this.primaryColor,{h:210}),this.cScale9=this.cScale9||V(this.primaryColor,{h:270}),this.cScale10=this.cScale10||V(this.primaryColor,{h:300}),this.cScale11=this.cScale11||V(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,Te.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,Te.Z)(this.tertiaryColor,40);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScale"+L]=(0,Te.Z)(this["cScale"+L],10),this["cScalePeer"+L]=this["cScalePeer"+L]||(0,Te.Z)(this["cScale"+L],25);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||V(this["cScale"+L],{h:180});for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||V(this.mainBkg,{h:30,l:-(5+5*L)}),this["surfacePeer"+L]=this["surfacePeer"+L]||V(this.mainBkg,{h:30,l:-(7+5*L)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||X(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||X(this.labelTextColor);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,be.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=V(this.primaryColor,{h:64}),this.fillType3=V(this.secondaryColor,{h:64}),this.fillType4=V(this.primaryColor,{h:-64}),this.fillType5=V(this.secondaryColor,{h:-64}),this.fillType6=V(this.primaryColor,{h:128}),this.fillType7=V(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||V(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||V(this.primaryColor,{l:-10}),this.pie5=this.pie5||V(this.secondaryColor,{l:-30}),this.pie6=this.pie6||V(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||V(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||V(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||V(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||V(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||V(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||V(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||V(this.primaryColor,{h:-30}),this.git4=this.git4||V(this.primaryColor,{h:-60}),this.git5=this.git5||V(this.primaryColor,{h:-90}),this.git6=this.git6||V(this.primaryColor,{h:60}),this.git7=this.git7||V(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,be.Z)(this.git0,25),this.git1=(0,be.Z)(this.git1,25),this.git2=(0,be.Z)(this.git2,25),this.git3=(0,be.Z)(this.git3,25),this.git4=(0,be.Z)(this.git4,25),this.git5=(0,be.Z)(this.git5,25),this.git6=(0,be.Z)(this.git6,25),this.git7=(0,be.Z)(this.git7,25)):(this.git0=(0,Te.Z)(this.git0,25),this.git1=(0,Te.Z)(this.git1,25),this.git2=(0,Te.Z)(this.git2,25),this.git3=(0,Te.Z)(this.git3,25),this.git4=(0,Te.Z)(this.git4,25),this.git5=(0,Te.Z)(this.git5,25),this.git6=(0,Te.Z)(this.git6,25),this.git7=(0,Te.Z)(this.git7,25)),this.gitInv0=this.gitInv0||(0,Te.Z)(X(this.git0),25),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||X(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||X(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||di,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(L){if("object"!=typeof L)return void this.updateColors();const Ie=Object.keys(L);Ie.forEach(ht=>{this[ht]=L[ht]}),this.updateColors(),Ie.forEach(ht=>{this[ht]=L[ht]})}};return L.calculate(Z),L}},forest:{getThemeVariables:Z=>{const L=new class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,be.Z)("#cde498",10),this.primaryBorderColor=ln(this.primaryColor,this.darkMode),this.secondaryBorderColor=ln(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ln(this.tertiaryColor,this.darkMode),this.primaryTextColor=X(this.primaryColor),this.secondaryTextColor=X(this.secondaryColor),this.tertiaryTextColor=X(this.primaryColor),this.lineColor=X(this.background),this.textColor=X(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||V(this.primaryColor,{h:30}),this.cScale4=this.cScale4||V(this.primaryColor,{h:60}),this.cScale5=this.cScale5||V(this.primaryColor,{h:90}),this.cScale6=this.cScale6||V(this.primaryColor,{h:120}),this.cScale7=this.cScale7||V(this.primaryColor,{h:150}),this.cScale8=this.cScale8||V(this.primaryColor,{h:210}),this.cScale9=this.cScale9||V(this.primaryColor,{h:270}),this.cScale10=this.cScale10||V(this.primaryColor,{h:300}),this.cScale11=this.cScale11||V(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,Te.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,Te.Z)(this.tertiaryColor,40);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScale"+L]=(0,Te.Z)(this["cScale"+L],10),this["cScalePeer"+L]=this["cScalePeer"+L]||(0,Te.Z)(this["cScale"+L],25);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||V(this["cScale"+L],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||V(this.mainBkg,{h:30,s:-30,l:-(5+5*L)}),this["surfacePeer"+L]=this["surfacePeer"+L]||V(this.mainBkg,{h:30,s:-30,l:-(8+5*L)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=(0,Te.Z)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=V(this.primaryColor,{h:64}),this.fillType3=V(this.secondaryColor,{h:64}),this.fillType4=V(this.primaryColor,{h:-64}),this.fillType5=V(this.secondaryColor,{h:-64}),this.fillType6=V(this.primaryColor,{h:128}),this.fillType7=V(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||V(this.primaryColor,{l:-30}),this.pie5=this.pie5||V(this.secondaryColor,{l:-30}),this.pie6=this.pie6||V(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||V(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||V(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||V(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||V(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||V(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||V(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||V(this.primaryColor,{h:-30}),this.git4=this.git4||V(this.primaryColor,{h:-60}),this.git5=this.git5||V(this.primaryColor,{h:-90}),this.git6=this.git6||V(this.primaryColor,{h:60}),this.git7=this.git7||V(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,be.Z)(this.git0,25),this.git1=(0,be.Z)(this.git1,25),this.git2=(0,be.Z)(this.git2,25),this.git3=(0,be.Z)(this.git3,25),this.git4=(0,be.Z)(this.git4,25),this.git5=(0,be.Z)(this.git5,25),this.git6=(0,be.Z)(this.git6,25),this.git7=(0,be.Z)(this.git7,25)):(this.git0=(0,Te.Z)(this.git0,25),this.git1=(0,Te.Z)(this.git1,25),this.git2=(0,Te.Z)(this.git2,25),this.git3=(0,Te.Z)(this.git3,25),this.git4=(0,Te.Z)(this.git4,25),this.git5=(0,Te.Z)(this.git5,25),this.git6=(0,Te.Z)(this.git6,25),this.git7=(0,Te.Z)(this.git7,25)),this.gitInv0=this.gitInv0||X(this.git0),this.gitInv1=this.gitInv1||X(this.git1),this.gitInv2=this.gitInv2||X(this.git2),this.gitInv3=this.gitInv3||X(this.git3),this.gitInv4=this.gitInv4||X(this.git4),this.gitInv5=this.gitInv5||X(this.git5),this.gitInv6=this.gitInv6||X(this.git6),this.gitInv7=this.gitInv7||X(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||di,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ee}calculate(L){if("object"!=typeof L)return void this.updateColors();const Ie=Object.keys(L);Ie.forEach(ht=>{this[ht]=L[ht]}),this.updateColors(),Ie.forEach(ht=>{this[ht]=L[ht]})}};return L.calculate(Z),L}},neutral:{getThemeVariables:Z=>{const L=new Li;return L.calculate(Z),L}}},ir={theme:"default",themeVariables:Cr.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};ir.class&&(ir.class.arrowMarkerAbsolute=ir.arrowMarkerAbsolute),ir.gitGraph&&(ir.gitGraph.arrowMarkerAbsolute=ir.arrowMarkerAbsolute);const is=(Z,L="")=>Object.keys(Z).reduce((Ie,ht)=>Array.isArray(Z[ht])?Ie:"object"==typeof Z[ht]&&null!==Z[ht]?[...Ie,L+ht,...is(Z[ht],"")]:[...Ie,L+ht],[]),Ma=is(ir,""),To=function(Z,L,Ie){const{depth:ht,clobber:gi}=Object.assign({depth:2,clobber:!1},Ie);return Array.isArray(L)&&!Array.isArray(Z)?(L.forEach(xn=>To(Z,xn,Ie)),Z):Array.isArray(L)&&Array.isArray(Z)?(L.forEach(xn=>{Z.includes(xn)||Z.push(xn)}),Z):void 0===Z||ht<=0?null!=Z&&"object"==typeof Z&&"object"==typeof L?Object.assign(Z,L):L:(void 0!==L&&"object"==typeof Z&&"object"==typeof L&&Object.keys(L).forEach(xn=>{"object"!=typeof L[xn]||void 0!==Z[xn]&&"object"!=typeof Z[xn]?(gi||"object"!=typeof Z[xn]&&"object"!=typeof L[xn])&&(Z[xn]=L[xn]):(void 0===Z[xn]&&(Z[xn]=Array.isArray(L[xn])?[]:{}),Z[xn]=To(Z[xn],L[xn],{depth:ht-1,clobber:gi}))}),Z)},Ni=To,rs=Object.freeze(ir);let os,Bi=Ni({},rs),xr=[],Ke=Ni({},rs);const et=(Z,L)=>{let Ie=Ni({},Z),ht={};for(const gi of L)pi(gi),ht=Ni(ht,gi);if(Ie=Ni(Ie,ht),ht.theme&&ht.theme in Cr){const gi=Ni({},os),xn=Ni(gi.themeVariables||{},ht.themeVariables);Ie.theme&&Ie.theme in Cr&&(Ie.themeVariables=Cr[Ie.theme].getThemeVariables(xn))}return Ke=Ie,Vr(Ke),Ke},Ut=Z=>(Bi=Ni({},rs),Bi=Ni(Bi,Z),Z.theme&&Cr[Z.theme]&&(Bi.themeVariables=Cr[Z.theme].getThemeVariables(Z.themeVariables)),et(Bi,xr),Bi),gn=Z=>{os=Ni({},Z)},ei=Z=>(Bi=Ni(Bi,Z),et(Bi,xr),Bi),bi=()=>Ni({},Bi),Yi=Z=>(Vr(Z),Ni(Ke,Z),pn()),pn=()=>Ni({},Ke),pi=Z=>{["secure",...Bi.secure??[]].forEach(L=>{void 0!==Z[L]&&(Et.debug(`Denied attempt to modify a secure key ${L}`,Z[L]),delete Z[L])}),Object.keys(Z).forEach(L=>{0===L.indexOf("__")&&delete Z[L]}),Object.keys(Z).forEach(L=>{"string"==typeof Z[L]&&(Z[L].includes("<")||Z[L].includes(">")||Z[L].includes("url(data:"))&&delete Z[L],"object"==typeof Z[L]&&pi(Z[L])})},Eo=Z=>{Z.fontFamily&&(Z.themeVariables&&Z.themeVariables.fontFamily||(Z.themeVariables={fontFamily:Z.fontFamily})),xr.push(Z),et(Bi,xr)},Ea=(Z=Bi)=>{xr=[],et(Z,xr)};var ss=(Z=>(Z.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",Z))(ss||{});const Ws={},Vr=Z=>{Z&&(Z.lazyLoadedDiagrams||Z.loadExternalDiagramsAtStartup)&&(Z=>{Ws[Z]||(Et.warn(ss[Z]),Ws[Z]=!0)})("LAZY_LOAD_DEPRECATED")}},3683:(Jt,Ae,O)=>{"use strict";O.d(Ae,{r:()=>Ye});var q=O(5703),de=O(855),re=O(9111);let J={};const Ye={setConf:function(V){J={...J,...V}},draw:(V,le,K)=>{try{de.l.debug("Renering svg for syntax error\n");const ce=(0,q.Ys)("#"+le),kt=ce.append("g");kt.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),kt.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),kt.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),kt.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),kt.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),kt.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),kt.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),kt.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+K),ce.attr("height",100),ce.attr("width",500),ce.attr("viewBox","768 0 912 512")}catch(ce){de.l.error("Error while rendering info diagram"),de.l.error((0,re.h)(ce))}}}},4169:(Jt,Ae,O)=>{"use strict";O.d(Ae,{a:()=>Vo,d:()=>Rc,m:()=>Is});var q=O(5861),de=O(5703),je="comm",Ye="rule",V="decl",ce="@import",be="@keyframes",zt=Math.abs,$t=String.fromCharCode;function Qn(k){return k.trim()}function Ue(k,j,Me){return k.replace(j,Me)}function we(k,j){return k.indexOf(j)}function Ze(k,j){return 0|k.charCodeAt(j)}function Ve(k,j,Me){return k.slice(j,Me)}function gt(k){return k.length}function ut(k){return k.length}function ye(k,j){return j.push(k),k}function vn(k,j){for(var Me="",tt=ut(k),Re=0;Re<tt;Re++)Me+=j(k[Re],Re,k,j)||"";return Me}function ln(k,j,Me,tt){switch(k.type){case ce:case V:return k.return=k.return||k.value;case je:return"";case be:return k.return=k.value+"{"+vn(k.children,tt)+"}";case Ye:k.value=k.props.join(",")}return gt(Me=vn(k.children,tt))?k.return=k.value+"{"+Me+"}":""}var di=1,Ee=1,Gi=0,_t=0,qe=0,It="";function Jn(k,j,Me,tt,Re,u,g){return{value:k,root:j,parent:Me,type:tt,props:Re,children:u,line:di,column:Ee,length:g,return:""}}function Li(){return qe=_t<Gi?Ze(It,_t++):0,Ee++,10===qe&&(Ee=1,di++),qe}function Mo(){return Ze(It,_t)}function Cr(){return _t}function ir(k,j){return Ve(It,k,j)}function is(k){switch(k){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function To(k){return Qn(ir(_t-1,xr(91===k?k+2:40===k?k+1:k)))}function rs(k){for(;(qe=Mo())&&qe<33;)Li();return is(k)>2||is(qe)>3?"":" "}function os(k,j){for(;--j&&Li()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return ir(k,Cr()+(j<6&&32==Mo()&&32==Li()))}function xr(k){for(;Li();)switch(qe){case k:return _t;case 34:case 39:34!==k&&39!==k&&xr(qe);break;case 40:41===k&&xr(k);break;case 92:Li()}return _t}function Ke(k,j){for(;Li()&&k+qe!==57&&(k+qe!==84||47!==Mo()););return"/*"+ir(j,_t-1)+"*"+$t(47===k?k:Li())}function et(k){for(;!is(Mo());)Li();return ir(k,_t)}function Ut(k){return function Ta(k){return It="",k}(gn("",null,null,null,[""],k=function Ma(k){return di=Ee=1,Gi=gt(It=k),_t=0,[]}(k),0,[0],k))}function gn(k,j,Me,tt,Re,u,g,y,A){for(var I=0,z=0,H=g,oe=0,he=0,Pe=0,ie=1,me=1,ot=1,ze=0,Pt="",rn=Re,En=u,jt=tt,Dt=Pt;me;)switch(Pe=ze,ze=Li()){case 40:if(108!=Pe&&58==Ze(Dt,H-1)){-1!=we(Dt+=Ue(To(ze),"&","&\f"),"&\f")&&(ot=-1);break}case 34:case 39:case 91:Dt+=To(ze);break;case 9:case 10:case 13:case 32:Dt+=rs(Pe);break;case 92:Dt+=os(Cr()-1,7);continue;case 47:switch(Mo()){case 42:case 47:ye(bi(Ke(Li(),Cr()),j,Me),A);break;default:Dt+="/"}break;case 123*ie:y[I++]=gt(Dt)*ot;case 125*ie:case 59:case 0:switch(ze){case 0:case 125:me=0;case 59+z:he>0&&gt(Dt)-H&&ye(he>32?Yi(Dt+";",tt,Me,H-1):Yi(Ue(Dt," ","")+";",tt,Me,H-2),A);break;case 59:Dt+=";";default:if(ye(jt=ei(Dt,j,Me,I,z,Re,y,Pt,rn=[],En=[],H),u),123===ze)if(0===z)gn(Dt,j,jt,jt,rn,u,H,y,En);else switch(99===oe&&110===Ze(Dt,3)?100:oe){case 100:case 109:case 115:gn(k,jt,jt,tt&&ye(ei(k,jt,jt,0,0,Re,y,Pt,Re,rn=[],H),En),Re,En,H,y,tt?rn:En);break;default:gn(Dt,jt,jt,jt,[""],En,0,y,En)}}I=z=he=0,ie=ot=1,Pt=Dt="",H=g;break;case 58:H=1+gt(Dt),he=Pe;default:if(ie<1)if(123==ze)--ie;else if(125==ze&&0==ie++&&125==(qe=_t>0?Ze(It,--_t):0,Ee--,10===qe&&(Ee=1,di--),qe))continue;switch(Dt+=$t(ze),ze*ie){case 38:ot=z>0?1:(Dt+="\f",-1);break;case 44:y[I++]=(gt(Dt)-1)*ot,ot=1;break;case 64:45===Mo()&&(Dt+=To(Li())),oe=Mo(),z=H=gt(Pt=Dt+=et(Cr())),ze++;break;case 45:45===Pe&&2==gt(Dt)&&(ie=0)}}return u}function ei(k,j,Me,tt,Re,u,g,y,A,I,z){for(var H=Re-1,oe=0===Re?u:[""],he=ut(oe),Pe=0,ie=0,me=0;Pe<tt;++Pe)for(var ot=0,ze=Ve(k,H+1,H=zt(ie=g[Pe])),Pt=k;ot<he;++ot)(Pt=Qn(ie>0?oe[ot]+" "+ze:Ue(ze,/&\f/g,oe[ot])))&&(A[me++]=Pt);return Jn(k,j,Me,0===Re?Ye:y,A,I,z)}function bi(k,j,Me){return Jn(k,j,Me,je,$t(function vr(){return qe}()),Ve(k,2,-2),0)}function Yi(k,j,Me,tt){return Jn(k,j,Me,V,Ve(k,0,tt),Ve(k,tt+1,-1),tt)}var pn=O(855),pi=O(9111),Eo=O(3683),Ea=O(2735),ss=O(9378);const Ie={id:"c4",detector:k=>null!==k.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield O.e(299).then(O.bind(O,4299));return{id:"c4",diagram:j}});return function(){return k.apply(this,arguments)}}()},ht="flowchart",ro={id:ht,detector:(k,j)=>{var Me,tt;return"dagre-wrapper"!==(null==(Me=j?.flowchart)?void 0:Me.defaultRenderer)&&"elk"!==(null==(tt=j?.flowchart)?void 0:tt.defaultRenderer)&&null!==k.match(/^\s*graph/)},loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(6),O.e(330),O.e(963),O.e(807),O.e(592),O.e(608)]).then(O.bind(O,608));return{id:ht,diagram:j}});return function(){return k.apply(this,arguments)}}()},oo="flowchart-v2",cs={id:oo,detector:(k,j)=>{var Me,tt,Re;return"dagre-d3"!==(null==(Me=j?.flowchart)?void 0:Me.defaultRenderer)&&"elk"!==(null==(tt=j?.flowchart)?void 0:tt.defaultRenderer)&&(null!==k.match(/^\s*graph/)&&"dagre-wrapper"===(null==(Re=j?.flowchart)?void 0:Re.defaultRenderer)||null!==k.match(/^\s*flowchart/))},loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(6),O.e(330),O.e(963),O.e(807),O.e(592),O.e(598)]).then(O.bind(O,5598));return{id:oo,diagram:j}});return function(){return k.apply(this,arguments)}}()},xs={id:"er",detector:k=>null!==k.match(/^\s*erDiagram/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(6),O.e(97)]).then(O.bind(O,3097));return{id:"er",diagram:j}});return function(){return k.apply(this,arguments)}}()},wr="gitGraph",Fo={id:wr,detector:k=>null!==k.match(/^\s*gitGraph/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield O.e(719).then(O.bind(O,4719));return{id:wr,diagram:j}});return function(){return k.apply(this,arguments)}}()},oi={id:"gantt",detector:k=>null!==k.match(/^\s*gantt/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield O.e(883).then(O.bind(O,5883));return{id:"gantt",diagram:j}});return function(){return k.apply(this,arguments)}}()},rr={id:"info",detector:k=>null!==k.match(/^\s*info/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield O.e(103).then(O.bind(O,103));return{id:"info",diagram:j}});return function(){return k.apply(this,arguments)}}()},Lo={id:"pie",detector:k=>null!==k.match(/^\s*pie/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield O.e(905).then(O.bind(O,1905));return{id:"pie",diagram:j}});return function(){return k.apply(this,arguments)}}()},ws="requirement",qs={id:ws,detector:k=>null!==k.match(/^\s*requirement(Diagram)?/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(6),O.e(276)]).then(O.bind(O,9276));return{id:ws,diagram:j}});return function(){return k.apply(this,arguments)}}()},Dr="sequence",Kr={id:Dr,detector:k=>null!==k.match(/^\s*sequenceDiagram/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield O.e(964).then(O.bind(O,3964));return{id:Dr,diagram:j}});return function(){return k.apply(this,arguments)}}()},ao={id:"class",detector:(k,j)=>{var Me;return"dagre-wrapper"!==(null==(Me=j?.class)?void 0:Me.defaultRenderer)&&null!==k.match(/^\s*classDiagram/)},loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(6),O.e(612),O.e(11)]).then(O.bind(O,4011));return{id:"class",diagram:j}});return function(){return k.apply(this,arguments)}}()},ti="classDiagram",Zt={id:ti,detector:(k,j)=>{var Me;return null!==k.match(/^\s*classDiagram/)&&"dagre-wrapper"===(null==(Me=j?.class)?void 0:Me.defaultRenderer)||null!==k.match(/^\s*classDiagram-v2/)},loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(6),O.e(330),O.e(963),O.e(612),O.e(571)]).then(O.bind(O,8571));return{id:ti,diagram:j}});return function(){return k.apply(this,arguments)}}()},ui={id:"state",detector:(k,j)=>{var Me;return"dagre-wrapper"!==(null==(Me=j?.state)?void 0:Me.defaultRenderer)&&null!==k.match(/^\s*stateDiagram/)},loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(6),O.e(911),O.e(973)]).then(O.bind(O,6973));return{id:"state",diagram:j}});return function(){return k.apply(this,arguments)}}()},hi="stateDiagram",ar={id:hi,detector:(k,j)=>{var Me,tt;return!!(null!==k.match(/^\s*stateDiagram-v2/)||k.match(/^\s*stateDiagram/)&&"dagre-wrapper"===(null==(Me=j?.state)?void 0:Me.defaultRenderer)||k.match(/^\s*stateDiagram/)&&"dagre-wrapper"===(null==(tt=j?.state)?void 0:tt.defaultRenderer))},loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(6),O.e(330),O.e(963),O.e(911),O.e(806)]).then(O.bind(O,5806));return{id:hi,diagram:j}});return function(){return k.apply(this,arguments)}}()},No="journey",Qs={id:No,detector:k=>null!==k.match(/^\s*journey/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield O.e(784).then(O.bind(O,7784));return{id:No,diagram:j}});return function(){return k.apply(this,arguments)}}()},Rn={id:"error",detector:k=>"error"===k.toLowerCase().trim(),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield O.e(61).then(O.bind(O,5061));return{id:"error",diagram:j}});return function(){return k.apply(this,arguments)}}()},$r="flowchart-elk",lo={id:$r,detector:(k,j)=>{var Me;return!!(k.match(/^\s*flowchart-elk/)||k.match(/^\s*flowchart|graph/)&&"elk"===(null==(Me=j?.flowchart)?void 0:Me.defaultRenderer))},loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(330),O.e(807),O.e(450)]).then(O.bind(O,4194));return{id:$r,diagram:j}});return function(){return k.apply(this,arguments)}}()},qt="timeline",Oe={id:qt,detector:k=>null!==k.match(/^\s*timeline/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(592),O.e(736)]).then(O.bind(O,2736));return{id:qt,diagram:j}});return function(){return k.apply(this,arguments)}}()},nt="mindmap",Fn={id:nt,detector:k=>null!==k.match(/^\s*mindmap/),loader:function(){var k=(0,q.Z)(function*(){const{diagram:j}=yield Promise.all([O.e(592),O.e(322)]).then(O.bind(O,1322));return{id:nt,diagram:j}});return function(){return k.apply(this,arguments)}}()};let ds=!1;const bt=()=>{ds||(ds=!0,(0,pi.a)("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},k=>k.toLowerCase().trimStart().startsWith("---")),(0,pi.r)(Rn,Ie,Zt,ao,xs,oi,rr,Lo,qs,Kr,lo,cs,ro,Fn,Oe,Fo,ar,ui,Qs))};class Bo{constructor(j){var Me,tt;this.text=j,this.type="graph",this.text+="\n";const Re=(0,pn.g)();try{this.type=(0,pi.d)(j,Re)}catch(y){this.type="error",this.detectError=y}const u=(0,pi.g)(this.type);pn.l.debug("Type "+this.type),this.db=u.db,null==(tt=(Me=this.db).clear)||tt.call(Me),this.renderer=u.renderer,this.parser=u.parser;const g=this.parser.parse.bind(this.parser);this.parser.parse=y=>g((0,pi.e)(y,this.db)),this.parser.parser.yy=this.db,u.init&&(u.init(Re),pn.l.info("Initialized diagram "+this.type,Re)),this.parse()}parse(){var j,Me;if(this.detectError)throw this.detectError;null==(Me=(j=this.db).clear)||Me.call(j),this.parser.parse(this.text)}render(j,Me){var tt=this;return(0,q.Z)(function*(){yield tt.renderer.draw(tt.text,j,Me,tt)})()}getParser(){return this.parser}getType(){return this.type}}const Xi=function(){var k=(0,q.Z)(function*(j){const Me=(0,pi.d)(j,(0,pn.g)());try{(0,pi.g)(Me)}catch{const Re=(0,pi.b)(Me);if(!Re)throw new pi.U(`Diagram ${Me} not found.`);const{id:u,diagram:g}=yield Re();(0,pi.a)(u,g)}return new Bo(j)});return function(Me){return k.apply(this,arguments)}}();let $i=[];const Vo=k=>{$i.push(k)},gl=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],Tr=["foreignobject"],ac=["dominant-baseline"];function cc(){return(cc=(0,q.Z)(function*(k,j){let Me;bt();try{(yield Xi(k)).parse()}catch(tt){Me=tt}if(j?.suppressErrors)return void 0===Me;if(Me)throw Me})).apply(this,arguments)}const Rc=function(k){let j=k;return j=j.replace(/\ufb02\xb0\xb0/g,"&#"),j=j.replace(/\ufb02\xb0/g,"&"),j=j.replace(/\xb6\xdf/g,";"),j},Ho=(k,j,Me=[])=>`\n.${k} ${j} { ${Me.join(" !important; ")} !important; }`,zo=(k,j,Me,tt,Re)=>{const u=k.append("div");u.attr("id",Me),tt&&u.attr("style",tt);const g=u.append("svg").attr("id",j).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return Re&&g.attr("xmlns:xlink",Re),g.append("g"),k};function Ss(k,j){return k.append("iframe").attr("id",j).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Is=Object.freeze({render:function(){var k=(0,q.Z)(function*(j,Me,tt){var Re,u,g,y;bt(),(0,pn.r)();const A=pi.u.detectInit(Me);A&&((0,pi.c)(A),(0,pn.a)(A));const I=(0,pn.g)();pn.l.debug(I),Me.length>(I?.maxTextSize??5e4)&&(Me="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),Me=Me.replace(/\r\n?/g,"\n");const z="#"+j,H="i"+j,oe="#"+H,he="d"+j,Pe="#"+he;let ie=(0,de.Ys)("body");const me="sandbox"===I.securityLevel,ot="loose"===I.securityLevel,ze=I.fontFamily;if(void 0!==tt){if(tt&&(tt.innerHTML=""),me){const Qr=Ss((0,de.Ys)(tt),H);ie=(0,de.Ys)(Qr.nodes()[0].contentDocument.body),ie.node().style.margin=0}else ie=(0,de.Ys)(tt);zo(ie,j,he,`font-family: ${ze}`,"http://www.w3.org/1999/xlink")}else{if(((k,j,Me,tt)=>{var Re,u,g;null==(Re=k.getElementById(j))||Re.remove(),null==(u=k.getElementById(Me))||u.remove(),null==(g=k.getElementById(tt))||g.remove()})(document,j,he,H),me){const Qr=Ss((0,de.Ys)("body"),H);ie=(0,de.Ys)(Qr.nodes()[0].contentDocument.body),ie.node().style.margin=0}else ie=(0,de.Ys)("body");zo(ie,j,he)}let Pt,rn;Me=function(k){let j=k;return j=j.replace(/style.*:\S*#.*;/g,function(Me){return Me.substring(0,Me.length-1)}),j=j.replace(/classDef.*:\S*#.*;/g,function(Me){return Me.substring(0,Me.length-1)}),j=j.replace(/#\w+;/g,function(Me){const tt=Me.substring(1,Me.length-1);return/^\+?\d+$/.test(tt)?"\ufb02\xb0\xb0"+tt+"\xb6\xdf":"\ufb02\xb0"+tt+"\xb6\xdf"}),j}(Me);try{Pt=yield Xi(Me)}catch(Qr){Pt=new Bo("error"),rn=Qr}const En=ie.select(Pe).node(),jt=Pt.type,Dt=En.firstChild,Pc=Dt.firstChild,Zd=((k,j,Me,tt)=>{const Re=((k,j,Me={})=>{var tt;let Re="";if(void 0!==k.themeCSS&&(Re+=`\n${k.themeCSS}`),void 0!==k.fontFamily&&(Re+=`\n:root { --mermaid-font-family: ${k.fontFamily}}`),void 0!==k.altFontFamily&&(Re+=`\n:root { --mermaid-alt-font-family: ${k.altFontFamily}}`),!(0,ss.Z)(Me)&&gl.includes(j)){const A=k.htmlLabels||(null==(tt=k.flowchart)?void 0:tt.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const I in Me){const z=Me[I];(0,ss.Z)(z.styles)||A.forEach(H=>{Re+=Ho(z.id,H,z.styles)}),(0,ss.Z)(z.textStyles)||(Re+=Ho(z.id,"tspan",z.textStyles))}}return Re})(k,j,Me);return vn(Ut(`${tt}{${(0,pi.f)(j,Re,k.themeVariables)}}`),ln)})(I,jt,gl.includes(jt)?Pt.renderer.getClasses(Me,Pt):{},z),ta=document.createElement("style");ta.innerHTML=Zd,Dt.insertBefore(ta,Pc);try{yield Pt.renderer.draw(Me,j,"10.0.2",Pt)}catch(Qr){throw Eo.r.draw(Me,j,"10.0.2"),Qr}(function Xr(k,j,Me,tt){(function Yd(k,j){k.attr("role","graphics-document document"),(0,ss.Z)(j)||k.attr("aria-roledescription",j)})(j,k),function od(k,j,Me,tt){if(void 0!==k.insert){if(!j&&!Me)return;if(Me){const Re="chart-desc-"+tt;k.attr("aria-describedby",Re),k.insert("desc",":first-child").attr("id",Re).text(Me)}if(j){const Re="chart-title-"+tt;k.attr("aria-labelledby",Re),k.insert("title",":first-child").attr("id",Re).text(j)}}}(j,Me,tt,j.attr("id"))})(jt,ie.select(`${Pe} svg`),null==(u=(Re=Pt.db).getAccTitle)?void 0:u.call(Re),null==(y=(g=Pt.db).getAccDescription)?void 0:y.call(g)),ie.select(`[id="${j}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let fo=ie.select(Pe).node().innerHTML;pn.l.debug("config.arrowMarkerAbsolute",I.arrowMarkerAbsolute),fo=((k="",j,Me)=>{let tt=k;return!Me&&!j&&(tt=tt.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),tt=Rc(tt),tt=tt.replace(/<br>/g,"<br/>"),tt})(fo,me,(0,pn.j)(I.arrowMarkerAbsolute)),me?fo=((k="",j)=>`<iframe style="width:100%;height:${j?j.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;base64,${btoa('<body style="margin:0">'+k+"</body>")}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`)(fo,ie.select(Pe+" svg").node()):ot||(fo=Ea.sanitize(fo,{ADD_TAGS:Tr,ADD_ATTR:ac})),$i.forEach(k=>{k()}),$i=[];const mo=(0,de.Ys)(me?oe:Pe).node();if(mo&&"remove"in mo&&mo.remove(),rn)throw rn;return{svg:fo,bindFunctions:Pt.db.bindFunctions}});return function(Me,tt,Re){return k.apply(this,arguments)}}(),parse:function Js(k,j){return cc.apply(this,arguments)},parseDirective:pi.p,initialize:function Ur(k={}){var j;k?.fontFamily&&!(null!=(j=k.themeVariables)&&j.fontFamily)&&(k.themeVariables||(k.themeVariables={}),k.themeVariables.fontFamily=k.fontFamily),(0,pn.k)(k),k?.theme&&k.theme in pn.t?k.themeVariables=pn.t[k.theme].getThemeVariables(k.themeVariables):k&&(k.themeVariables=pn.t.default.getThemeVariables(k.themeVariables));const Me="object"==typeof k?(0,pn.m)(k):(0,pn.h)();(0,pn.s)(Me.logLevel),bt()},getConfig:pn.g,setConfig:pn.f,getSiteConfig:pn.h,updateSiteConfig:pn.u,reset:()=>{(0,pn.r)()},globalReset:()=>{(0,pn.r)(pn.i)},defaultConfig:pn.i});(0,pn.s)((0,pn.g)().logLevel),(0,pn.r)((0,pn.g)())},1775:(Jt,Ae,O)=>{"use strict";O.d(Ae,{c:()=>J,s:()=>ne});var q=O(855);const J=function(je,Ye,V,le){const K=function(je,Ye,V){let le=new Map;return V?(le.set("width","100%"),le.set("style",`max-width: ${Ye}px;`)):(le.set("height",je),le.set("width",Ye)),le}(Ye,V,le);!function(je,Ye){for(let V of Ye)je.attr(V[0],V[1])}(je,K)},ne=function(je,Ye,V,le){const K=Ye.node().getBBox(),ce=K.width,kt=K.height;q.l.info(`SVG bounds: ${ce}x${kt}`,K);let Xt=0,Se=0;q.l.info(`Graph bounds: ${Xt}x${Se}`,je),Xt=ce+2*V,Se=kt+2*V,q.l.info(`Calculated bounds: ${Xt}x${Se}`),J(Ye,Se,Xt,le),Ye.attr("viewBox",`${K.x-V} ${K.y-V} ${K.width+2*V} ${K.height+2*V}`)}},9111:(Jt,Ae,O)=>{"use strict";O.d(Ae,{U:()=>Bo,a:()=>ds,b:()=>gl,c:()=>Xr,d:()=>pl,e:()=>Rn,f:()=>it,g:()=>bt,h:()=>j,i:()=>k,j:()=>zo,k:()=>Pn,l:()=>Yd,m:()=>ac,n:()=>Es,o:()=>Rc,p:()=>qt,q:()=>Oe,r:()=>$n,s:()=>Tn,t:()=>tt,u:()=>Re,v:()=>cc,w:()=>Er});var q=O(5861),de=O(6780),re=O(5703),J=O(855),ne=O(1775),je=O(6012),Ye=O(2572);function V(u){return typeof u>"u"||null===u}var pt={isNothing:V,isObject:function le(u){return"object"==typeof u&&null!==u},toArray:function K(u){return Array.isArray(u)?u:V(u)?[]:[u]},repeat:function kt(u,g){var A,y="";for(A=0;A<g;A+=1)y+=u;return y},isNegativeZero:function Xt(u){return 0===u&&Number.NEGATIVE_INFINITY===1/u},extend:function ce(u,g){var y,A,I,z;if(g)for(y=0,A=(z=Object.keys(g)).length;y<A;y+=1)u[I=z[y]]=g[I];return u}};function zt(u,g){var y="",A=u.reason||"(unknown reason)";return u.mark?(u.mark.name&&(y+='in "'+u.mark.name+'" '),y+="("+(u.mark.line+1)+":"+(u.mark.column+1)+")",!g&&u.mark.snippet&&(y+="\n\n"+u.mark.snippet),A+" "+y):A}function $t(u,g){Error.call(this),this.name="YAMLException",this.reason=u,this.mark=g,this.message=zt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}($t.prototype=Object.create(Error.prototype)).constructor=$t,$t.prototype.toString=function(g){return this.name+": "+zt(this,g)};var at=$t;function nn(u,g,y,A,I){var z="",H="",oe=Math.floor(I/2)-1;return A-g>oe&&(g=A-oe+(z=" ... ").length),y-A>oe&&(y=A+oe-(H=" ...").length),{str:z+u.slice(g,y).replace(/\t/g,"\u2192")+H,pos:A-g+z.length}}function Qn(u,g){return pt.repeat(" ",g-u.length)+u}var Ue=function wt(u,g){if(g=Object.create(g||null),!u.buffer)return null;g.maxLength||(g.maxLength=79),"number"!=typeof g.indent&&(g.indent=1),"number"!=typeof g.linesBefore&&(g.linesBefore=3),"number"!=typeof g.linesAfter&&(g.linesAfter=2);for(var z,y=/\r?\n|\r|\0/g,A=[0],I=[],H=-1;z=y.exec(u.buffer);)I.push(z.index),A.push(z.index+z[0].length),u.position<=z.index&&H<0&&(H=A.length-2);H<0&&(H=A.length-1);var he,Pe,oe="",ie=Math.min(u.line+g.linesAfter,I.length).toString().length,me=g.maxLength-(g.indent+ie+3);for(he=1;he<=g.linesBefore&&!(H-he<0);he++)Pe=nn(u.buffer,A[H-he],I[H-he],u.position-(A[H]-A[H-he]),me),oe=pt.repeat(" ",g.indent)+Qn((u.line-he+1).toString(),ie)+" | "+Pe.str+"\n"+oe;for(Pe=nn(u.buffer,A[H],I[H],u.position,me),oe+=pt.repeat(" ",g.indent)+Qn((u.line+1).toString(),ie)+" | "+Pe.str+"\n",oe+=pt.repeat("-",g.indent+ie+3+Pe.pos)+"^\n",he=1;he<=g.linesAfter&&!(H+he>=I.length);he++)Pe=nn(u.buffer,A[H+he],I[H+he],u.position-(A[H]-A[H+he]),me),oe+=pt.repeat(" ",g.indent)+Qn((u.line+he+1).toString(),ie)+" | "+Pe.str+"\n";return oe.replace(/\n$/,"")},we=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ze=["scalar","sequence","mapping"],ut=function gt(u,g){if(g=g||{},Object.keys(g).forEach(function(y){if(-1===we.indexOf(y))throw new at('Unknown option "'+y+'" is met in definition of "'+u+'" YAML type.')}),this.options=g,this.tag=u,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(y){return y},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.representName=g.representName||null,this.defaultStyle=g.defaultStyle||null,this.multi=g.multi||!1,this.styleAliases=function Ve(u){var g={};return null!==u&&Object.keys(u).forEach(function(y){u[y].forEach(function(A){g[String(A)]=y})}),g}(g.styleAliases||null),-1===Ze.indexOf(this.kind))throw new at('Unknown kind "'+this.kind+'" is specified for "'+u+'" YAML type.')};function ye(u,g){var y=[];return u[g].forEach(function(A){var I=y.length;y.forEach(function(z,H){z.tag===A.tag&&z.kind===A.kind&&z.multi===A.multi&&(I=H)}),y[I]=A}),y}function vn(u){return this.extend(u)}vn.prototype.extend=function(g){var y=[],A=[];if(g instanceof ut)A.push(g);else if(Array.isArray(g))A=A.concat(g);else{if(!g||!Array.isArray(g.implicit)&&!Array.isArray(g.explicit))throw new at("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");g.implicit&&(y=y.concat(g.implicit)),g.explicit&&(A=A.concat(g.explicit))}y.forEach(function(z){if(!(z instanceof ut))throw new at("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(z.loadKind&&"scalar"!==z.loadKind)throw new at("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(z.multi)throw new at("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),A.forEach(function(z){if(!(z instanceof ut))throw new at("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var I=Object.create(vn.prototype);return I.implicit=(this.implicit||[]).concat(y),I.explicit=(this.explicit||[]).concat(A),I.compiledImplicit=ye(I,"implicit"),I.compiledExplicit=ye(I,"explicit"),I.compiledTypeMap=function Mn(){var g,y,u={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function A(I){I.multi?(u.multi[I.kind].push(I),u.multi.fallback.push(I)):u[I.kind][I.tag]=u.fallback[I.tag]=I}for(g=0,y=arguments.length;g<y;g+=1)arguments[g].forEach(A);return u}(I.compiledImplicit,I.compiledExplicit),I};var _t=new vn({explicit:[new ut("tag:yaml.org,2002:str",{kind:"scalar",construct:function(u){return null!==u?u:""}}),new ut("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(u){return null!==u?u:[]}}),new ut("tag:yaml.org,2002:map",{kind:"mapping",construct:function(u){return null!==u?u:{}}})]}),Ln=new ut("tag:yaml.org,2002:null",{kind:"scalar",resolve:function qe(u){if(null===u)return!0;var g=u.length;return 1===g&&"~"===u||4===g&&("null"===u||"Null"===u||"NULL"===u)},construct:function It(){return null},predicate:function Jn(u){return null===u},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),Mo=new ut("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function vr(u){if(null===u)return!1;var g=u.length;return 4===g&&("true"===u||"True"===u||"TRUE"===u)||5===g&&("false"===u||"False"===u||"FALSE"===u)},construct:function Cs(u){return"true"===u||"True"===u||"TRUE"===u},predicate:function Li(u){return"[object Boolean]"===Object.prototype.toString.call(u)},represent:{lowercase:function(u){return u?"true":"false"},uppercase:function(u){return u?"TRUE":"FALSE"},camelcase:function(u){return u?"True":"False"}},defaultStyle:"lowercase"});function Cr(u){return 48<=u&&u<=57||65<=u&&u<=70||97<=u&&u<=102}function ir(u){return 48<=u&&u<=55}function is(u){return 48<=u&&u<=57}var Ni=new ut("tag:yaml.org,2002:int",{kind:"scalar",resolve:function Ma(u){if(null===u)return!1;var I,g=u.length,y=0,A=!1;if(!g)return!1;if(("-"===(I=u[y])||"+"===I)&&(I=u[++y]),"0"===I){if(y+1===g)return!0;if("b"===(I=u[++y])){for(y++;y<g;y++)if("_"!==(I=u[y])){if("0"!==I&&"1"!==I)return!1;A=!0}return A&&"_"!==I}if("x"===I){for(y++;y<g;y++)if("_"!==(I=u[y])){if(!Cr(u.charCodeAt(y)))return!1;A=!0}return A&&"_"!==I}if("o"===I){for(y++;y<g;y++)if("_"!==(I=u[y])){if(!ir(u.charCodeAt(y)))return!1;A=!0}return A&&"_"!==I}}if("_"===I)return!1;for(;y<g;y++)if("_"!==(I=u[y])){if(!is(u.charCodeAt(y)))return!1;A=!0}return!(!A||"_"===I)},construct:function Ta(u){var A,g=u,y=1;if(-1!==g.indexOf("_")&&(g=g.replace(/_/g,"")),("-"===(A=g[0])||"+"===A)&&("-"===A&&(y=-1),A=(g=g.slice(1))[0]),"0"===g)return 0;if("0"===A){if("b"===g[1])return y*parseInt(g.slice(2),2);if("x"===g[1])return y*parseInt(g.slice(2),16);if("o"===g[1])return y*parseInt(g.slice(2),8)}return y*parseInt(g,10)},predicate:function To(u){return"[object Number]"===Object.prototype.toString.call(u)&&u%1==0&&!pt.isNegativeZero(u)},represent:{binary:function(u){return u>=0?"0b"+u.toString(2):"-0b"+u.toString(2).slice(1)},octal:function(u){return u>=0?"0o"+u.toString(8):"-0o"+u.toString(8).slice(1)},decimal:function(u){return u.toString(10)},hexadecimal:function(u){return u>=0?"0x"+u.toString(16).toUpperCase():"-0x"+u.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),rs=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),xr=/^[-+]?[0-9]+e/,Ut=new ut("tag:yaml.org,2002:float",{kind:"scalar",resolve:function Bi(u){return!(null===u||!rs.test(u)||"_"===u[u.length-1])},construct:function os(u){var g,y;return y="-"===(g=u.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(g[0])>=0&&(g=g.slice(1)),".inf"===g?1===y?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===g?NaN:y*parseFloat(g,10)},predicate:function et(u){return"[object Number]"===Object.prototype.toString.call(u)&&(u%1!=0||pt.isNegativeZero(u))},represent:function Ke(u,g){var y;if(isNaN(u))switch(g){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===u)switch(g){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===u)switch(g){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pt.isNegativeZero(u))return"-0.0";return y=u.toString(10),xr.test(y)?y.replace("e",".e"):y},defaultStyle:"lowercase"}),ei=_t.extend({implicit:[Ln,Mo,Ni,Ut]}),bi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Yi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),Ea=new ut("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function pn(u){return null!==u&&(null!==bi.exec(u)||null!==Yi.exec(u))},construct:function pi(u){var g,y,A,I,z,H,oe,ot,he=0,Pe=null;if(null===(g=bi.exec(u))&&(g=Yi.exec(u)),null===g)throw new Error("Date resolve error");if(y=+g[1],A=+g[2]-1,I=+g[3],!g[4])return new Date(Date.UTC(y,A,I));if(z=+g[4],H=+g[5],oe=+g[6],g[7]){for(he=g[7].slice(0,3);he.length<3;)he+="0";he=+he}return g[9]&&(Pe=6e4*(60*+g[10]+ +(g[11]||0)),"-"===g[9]&&(Pe=-Pe)),ot=new Date(Date.UTC(y,A,I,z,H,oe,he)),Pe&&ot.setTime(ot.getTime()-Pe),ot},instanceOf:Date,represent:function Eo(u){return u.toISOString()}}),Ws=new ut("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function ss(u){return"<<"===u||null===u}}),io="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",ht=new ut("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function Vr(u){if(null===u)return!1;var g,y,A=0,I=u.length,z=io;for(y=0;y<I;y++)if(!((g=z.indexOf(u.charAt(y)))>64)){if(g<0)return!1;A+=6}return A%8==0},construct:function Z(u){var g,y,A=u.replace(/[\r\n=]/g,""),I=A.length,z=io,H=0,oe=[];for(g=0;g<I;g++)g%4==0&&g&&(oe.push(H>>16&255),oe.push(H>>8&255),oe.push(255&H)),H=H<<6|z.indexOf(A.charAt(g));return 0==(y=I%4*6)?(oe.push(H>>16&255),oe.push(H>>8&255),oe.push(255&H)):18===y?(oe.push(H>>10&255),oe.push(H>>2&255)):12===y&&oe.push(H>>4&255),new Uint8Array(oe)},predicate:function Ie(u){return"[object Uint8Array]"===Object.prototype.toString.call(u)},represent:function L(u){var A,I,g="",y=0,z=u.length,H=io;for(A=0;A<z;A++)A%3==0&&A&&(g+=H[y>>18&63],g+=H[y>>12&63],g+=H[y>>6&63],g+=H[63&y]),y=(y<<8)+u[A];return 0==(I=z%3)?(g+=H[y>>18&63],g+=H[y>>12&63],g+=H[y>>6&63],g+=H[63&y]):2===I?(g+=H[y>>10&63],g+=H[y>>4&63],g+=H[y<<2&63],g+=H[64]):1===I&&(g+=H[y>>2&63],g+=H[y<<4&63],g+=H[64],g+=H[64]),g}}),gi=Object.prototype.hasOwnProperty,xn=Object.prototype.toString,oo=new ut("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function as(u){if(null===u)return!0;var y,A,I,z,H,g=[],oe=u;for(y=0,A=oe.length;y<A;y+=1){if(H=!1,"[object Object]"!==xn.call(I=oe[y]))return!1;for(z in I)if(gi.call(I,z)){if(H)return!1;H=!0}if(!H)return!1;if(-1!==g.indexOf(z))return!1;g.push(z)}return!0},construct:function ro(u){return null!==u?u:[]}}),ka=Object.prototype.toString,cs=new ut("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function Gs(u){if(null===u)return!0;var g,y,A,I,z,H=u;for(z=new Array(H.length),g=0,y=H.length;g<y;g+=1){if("[object Object]"!==ka.call(A=H[g])||1!==(I=Object.keys(A)).length)return!1;z[g]=[I[0],A[I[0]]]}return!0},construct:function yi(u){if(null===u)return[];var g,y,A,I,z,H=u;for(z=new Array(H.length),g=0,y=H.length;g<y;g+=1)A=H[g],I=Object.keys(A),z[g]=[I[0],A[I[0]]];return z}}),ko=Object.prototype.hasOwnProperty,Io=new ut("tag:yaml.org,2002:set",{kind:"mapping",resolve:function Hr(u){if(null===u)return!0;var g,y=u;for(g in y)if(ko.call(y,g)&&null!==y[g])return!1;return!0},construct:function So(u){return null!==u?u:{}}}),xs=ei.extend({implicit:[Ea,Ws],explicit:[ht,oo,cs,Io]}),wr=Object.prototype.hasOwnProperty,Zi=1,Sa=2,Ao=3,Fo=4,Yn=1,hl=2,Ei=3,nc=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oi=/[\x85\u2028\u2029]/,Oo=/[,\[\]\{\}]/,Ro=/^(?:!|!!|![a-z\-]+!)$/i,ic=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ys(u){return Object.prototype.toString.call(u)}function rr(u){return 10===u||13===u}function qi(u){return 9===u||32===u}function vi(u){return 9===u||32===u||10===u||13===u}function Po(u){return 44===u||91===u||93===u||123===u||125===u}function rc(u){var g;return 48<=u&&u<=57?u-48:97<=(g=32|u)&&g<=102?g-97+10:-1}function Lo(u){return 120===u?2:117===u?4:85===u?8:0}function ws(u){return 48<=u&&u<=57?u-48:-1}function Zs(u){return 48===u?"\0":97===u?"\x07":98===u?"\b":116===u||9===u?"\t":110===u?"\n":118===u?"\v":102===u?"\f":114===u?"\r":101===u?"\x1b":32===u?" ":34===u?'"':47===u?"/":92===u?"\\":78===u?"\x85":95===u?"\xa0":76===u?"\u2028":80===u?"\u2029":""}function ls(u){return u<=65535?String.fromCharCode(u):String.fromCharCode(55296+(u-65536>>10),56320+(u-65536&1023))}for(var si=new Array(256),qs=new Array(256),Dr=0;Dr<256;Dr++)si[Dr]=Zs(Dr)?1:0,qs[Dr]=Zs(Dr);function On(u,g){this.input=u,this.filename=g.filename||null,this.schema=g.schema||xs,this.onWarning=g.onWarning||null,this.legacy=g.legacy||!1,this.json=g.json||!1,this.listener=g.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=u.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function so(u,g){var y={name:u.filename,buffer:u.input.slice(0,-1),position:u.position,line:u.line,column:u.position-u.lineStart};return y.snippet=Ue(y),new at(g,y)}function He(u,g){throw so(u,g)}function Kr(u,g){u.onWarning&&u.onWarning.call(null,so(u,g))}var wi={YAML:function(g,y,A){var I,z,H;null!==g.version&&He(g,"duplication of %YAML directive"),1!==A.length&&He(g,"YAML directive accepts exactly one argument"),null===(I=/^([0-9]+)\.([0-9]+)$/.exec(A[0]))&&He(g,"ill-formed argument of the YAML directive"),z=parseInt(I[1],10),H=parseInt(I[2],10),1!==z&&He(g,"unacceptable YAML version of the document"),g.version=A[0],g.checkLineBreaks=H<2,1!==H&&2!==H&&Kr(g,"unsupported YAML version of the document")},TAG:function(g,y,A){var I,z;2!==A.length&&He(g,"TAG directive accepts exactly two arguments"),z=A[1],Ro.test(I=A[0])||He(g,"ill-formed tag handle (first argument) of the TAG directive"),wr.call(g.tagMap,I)&&He(g,'there is a previously declared suffix for "'+I+'" tag handle'),ic.test(z)||He(g,"ill-formed tag prefix (second argument) of the TAG directive");try{z=decodeURIComponent(z)}catch{He(g,"tag prefix is malformed: "+z)}g.tagMap[I]=z}};function dn(u,g,y,A){var I,z,H,oe;if(g<y){if(oe=u.input.slice(g,y),A)for(I=0,z=oe.length;I<z;I+=1)9===(H=oe.charCodeAt(I))||32<=H&&H<=1114111||He(u,"expected valid JSON character");else nc.test(oe)&&He(u,"the stream contains non-printable characters");u.result+=oe}}function Bt(u,g,y,A){var I,z,H,oe;for(pt.isObject(y)||He(u,"cannot merge mappings; the provided source object is unacceptable"),H=0,oe=(I=Object.keys(y)).length;H<oe;H+=1)wr.call(g,z=I[H])||(g[z]=y[z],A[z]=!0)}function or(u,g,y,A,I,z,H,oe,he){var Pe,ie;if(Array.isArray(I))for(Pe=0,ie=(I=Array.prototype.slice.call(I)).length;Pe<ie;Pe+=1)Array.isArray(I[Pe])&&He(u,"nested arrays are not supported inside keys"),"object"==typeof I&&"[object Object]"===Ys(I[Pe])&&(I[Pe]="[object Object]");if("object"==typeof I&&"[object Object]"===Ys(I)&&(I="[object Object]"),I=String(I),null===g&&(g={}),"tag:yaml.org,2002:merge"===A)if(Array.isArray(z))for(Pe=0,ie=z.length;Pe<ie;Pe+=1)Bt(u,g,z[Pe],y);else Bt(u,g,z,y);else!u.json&&!wr.call(y,I)&&wr.call(g,I)&&(u.line=H||u.line,u.lineStart=oe||u.lineStart,u.position=he||u.position,He(u,"duplicated mapping key")),"__proto__"===I?Object.defineProperty(g,I,{configurable:!0,enumerable:!0,writable:!0,value:z}):g[I]=z,delete y[I];return g}function ao(u){var g;10===(g=u.input.charCodeAt(u.position))?u.position++:13===g?(u.position++,10===u.input.charCodeAt(u.position)&&u.position++):He(u,"a line break is expected"),u.line+=1,u.lineStart=u.position,u.firstTabInLine=-1}function ti(u,g,y){for(var A=0,I=u.input.charCodeAt(u.position);0!==I;){for(;qi(I);)9===I&&-1===u.firstTabInLine&&(u.firstTabInLine=u.position),I=u.input.charCodeAt(++u.position);if(g&&35===I)do{I=u.input.charCodeAt(++u.position)}while(10!==I&&13!==I&&0!==I);if(!rr(I))break;for(ao(u),I=u.input.charCodeAt(u.position),A++,u.lineIndent=0;32===I;)u.lineIndent++,I=u.input.charCodeAt(++u.position)}return-1!==y&&0!==A&&u.lineIndent<y&&Kr(u,"deficient indentation"),A}function ki(u){var y,g=u.position;return!(45!==(y=u.input.charCodeAt(g))&&46!==y||y!==u.input.charCodeAt(g+1)||y!==u.input.charCodeAt(g+2)||(g+=3,y=u.input.charCodeAt(g),0!==y&&!vi(y)))}function ve(u,g){1===g?u.result+=" ":g>1&&(u.result+=pt.repeat("\n",g-1))}function Ms(u,g){var y,he,A=u.tag,I=u.anchor,z=[],oe=!1;if(-1!==u.firstTabInLine)return!1;for(null!==u.anchor&&(u.anchorMap[u.anchor]=z),he=u.input.charCodeAt(u.position);0!==he&&(-1!==u.firstTabInLine&&(u.position=u.firstTabInLine,He(u,"tab characters must not be used in indentation")),45===he&&vi(u.input.charCodeAt(u.position+1)));)if(oe=!0,u.position++,ti(u,!0,-1)&&u.lineIndent<=g)z.push(null),he=u.input.charCodeAt(u.position);else if(y=u.line,sr(u,g,Ao,!1,!0),z.push(u.result),ti(u,!0,-1),he=u.input.charCodeAt(u.position),(u.line===y||u.lineIndent>g)&&0!==he)He(u,"bad indentation of a sequence entry");else if(u.lineIndent<g)break;return!!oe&&(u.tag=A,u.anchor=I,u.kind="sequence",u.result=z,!0)}function hi(u){var g,I,z,H,y=!1,A=!1;if(33!==(H=u.input.charCodeAt(u.position)))return!1;if(null!==u.tag&&He(u,"duplication of a tag property"),60===(H=u.input.charCodeAt(++u.position))?(y=!0,H=u.input.charCodeAt(++u.position)):33===H?(A=!0,I="!!",H=u.input.charCodeAt(++u.position)):I="!",g=u.position,y){do{H=u.input.charCodeAt(++u.position)}while(0!==H&&62!==H);u.position<u.length?(z=u.input.slice(g,u.position),H=u.input.charCodeAt(++u.position)):He(u,"unexpected end of the stream within a verbatim tag")}else{for(;0!==H&&!vi(H);)33===H&&(A?He(u,"tag suffix cannot contain exclamation marks"):(I=u.input.slice(g-1,u.position+1),Ro.test(I)||He(u,"named tag handle cannot contain such characters"),A=!0,g=u.position+1)),H=u.input.charCodeAt(++u.position);z=u.input.slice(g,u.position),Oo.test(z)&&He(u,"tag suffix cannot contain flow indicator characters")}z&&!ic.test(z)&&He(u,"tag name cannot contain such characters: "+z);try{z=decodeURIComponent(z)}catch{He(u,"tag name is malformed: "+z)}return y?u.tag=z:wr.call(u.tagMap,I)?u.tag=u.tagMap[I]+z:"!"===I?u.tag="!"+z:"!!"===I?u.tag="tag:yaml.org,2002:"+z:He(u,'undeclared tag handle "'+I+'"'),!0}function Aa(u){var g,y;if(38!==(y=u.input.charCodeAt(u.position)))return!1;for(null!==u.anchor&&He(u,"duplication of an anchor property"),y=u.input.charCodeAt(++u.position),g=u.position;0!==y&&!vi(y)&&!Po(y);)y=u.input.charCodeAt(++u.position);return u.position===g&&He(u,"name of an anchor node must contain at least one character"),u.anchor=u.input.slice(g,u.position),!0}function sr(u,g,y,A,I){var z,H,oe,me,ot,ze,Pt,rn,En,he=1,Pe=!1,ie=!1;if(null!==u.listener&&u.listener("open",u),u.tag=null,u.anchor=null,u.kind=null,u.result=null,z=H=oe=Fo===y||Ao===y,A&&ti(u,!0,-1)&&(Pe=!0,u.lineIndent>g?he=1:u.lineIndent===g?he=0:u.lineIndent<g&&(he=-1)),1===he)for(;hi(u)||Aa(u);)ti(u,!0,-1)?(Pe=!0,oe=z,u.lineIndent>g?he=1:u.lineIndent===g?he=0:u.lineIndent<g&&(he=-1)):oe=!1;if(oe&&(oe=Pe||I),(1===he||Fo===y)&&(rn=Zi===y||Sa===y?g:g+1,En=u.position-u.lineStart,1===he?oe&&(Ms(u,En)||function ui(u,g,y){var A,I,z,H,oe,he,Dt,Pe=u.tag,ie=u.anchor,me={},ot=Object.create(null),ze=null,Pt=null,rn=null,En=!1,jt=!1;if(-1!==u.firstTabInLine)return!1;for(null!==u.anchor&&(u.anchorMap[u.anchor]=me),Dt=u.input.charCodeAt(u.position);0!==Dt;){if(!En&&-1!==u.firstTabInLine&&(u.position=u.firstTabInLine,He(u,"tab characters must not be used in indentation")),A=u.input.charCodeAt(u.position+1),z=u.line,63!==Dt&&58!==Dt||!vi(A)){if(H=u.line,oe=u.lineStart,he=u.position,!sr(u,y,Sa,!1,!0))break;if(u.line===z){for(Dt=u.input.charCodeAt(u.position);qi(Dt);)Dt=u.input.charCodeAt(++u.position);if(58===Dt)vi(Dt=u.input.charCodeAt(++u.position))||He(u,"a whitespace character is expected after the key-value separator within a block mapping"),En&&(or(u,me,ot,ze,Pt,null,H,oe,he),ze=Pt=rn=null),jt=!0,En=!1,I=!1,ze=u.tag,Pt=u.result;else{if(!jt)return u.tag=Pe,u.anchor=ie,!0;He(u,"can not read an implicit mapping pair; a colon is missed")}}else{if(!jt)return u.tag=Pe,u.anchor=ie,!0;He(u,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===Dt?(En&&(or(u,me,ot,ze,Pt,null,H,oe,he),ze=Pt=rn=null),jt=!0,En=!0,I=!0):En?(En=!1,I=!0):He(u,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),u.position+=1,Dt=A;if((u.line===z||u.lineIndent>g)&&(En&&(H=u.line,oe=u.lineStart,he=u.position),sr(u,g,Fo,!0,I)&&(En?Pt=u.result:rn=u.result),En||(or(u,me,ot,ze,Pt,rn,H,oe,he),ze=Pt=rn=null),ti(u,!0,-1),Dt=u.input.charCodeAt(u.position)),(u.line===z||u.lineIndent>g)&&0!==Dt)He(u,"bad indentation of a mapping entry");else if(u.lineIndent<g)break}return En&&or(u,me,ot,ze,Pt,null,H,oe,he),jt&&(u.tag=Pe,u.anchor=ie,u.kind="mapping",u.result=me),jt}(u,En,rn))||function Mr(u,g){var A,I,z,oe,ie,me,ot,ze,rn,En,jt,Dt,y=!0,H=u.tag,he=u.anchor,Pt=Object.create(null);if(91===(Dt=u.input.charCodeAt(u.position)))ie=93,ze=!1,oe=[];else{if(123!==Dt)return!1;ie=125,ze=!0,oe={}}for(null!==u.anchor&&(u.anchorMap[u.anchor]=oe),Dt=u.input.charCodeAt(++u.position);0!==Dt;){if(ti(u,!0,g),(Dt=u.input.charCodeAt(u.position))===ie)return u.position++,u.tag=H,u.anchor=he,u.kind=ze?"mapping":"sequence",u.result=oe,!0;y?44===Dt&&He(u,"expected the node content, but found ','"):He(u,"missed comma between flow collection entries"),jt=null,me=ot=!1,63===Dt&&vi(u.input.charCodeAt(u.position+1))&&(me=ot=!0,u.position++,ti(u,!0,g)),A=u.line,I=u.lineStart,z=u.position,sr(u,g,Zi,!1,!0),En=u.tag,rn=u.result,ti(u,!0,g),Dt=u.input.charCodeAt(u.position),(ot||u.line===A)&&58===Dt&&(me=!0,Dt=u.input.charCodeAt(++u.position),ti(u,!0,g),sr(u,g,Zi,!1,!0),jt=u.result),ze?or(u,oe,Pt,En,rn,jt,A,I,z):oe.push(me?or(u,null,Pt,En,rn,jt,A,I,z):rn),ti(u,!0,g),44===(Dt=u.input.charCodeAt(u.position))?(y=!0,Dt=u.input.charCodeAt(++u.position)):y=!1}He(u,"unexpected end of the stream within a flow collection")}(u,rn)?ie=!0:(H&&function Ia(u,g){var y,A,ie,me,I=Yn,z=!1,H=!1,oe=g,he=0,Pe=!1;if(124===(me=u.input.charCodeAt(u.position)))A=!1;else{if(62!==me)return!1;A=!0}for(u.kind="scalar",u.result="";0!==me;)if(43===(me=u.input.charCodeAt(++u.position))||45===me)Yn===I?I=43===me?Ei:hl:He(u,"repeat of a chomping mode identifier");else{if(!((ie=ws(me))>=0))break;0===ie?He(u,"bad explicit indentation width of a block scalar; it cannot be less than one"):H?He(u,"repeat of an indentation width identifier"):(oe=g+ie-1,H=!0)}if(qi(me)){do{me=u.input.charCodeAt(++u.position)}while(qi(me));if(35===me)do{me=u.input.charCodeAt(++u.position)}while(!rr(me)&&0!==me)}for(;0!==me;){for(ao(u),u.lineIndent=0,me=u.input.charCodeAt(u.position);(!H||u.lineIndent<oe)&&32===me;)u.lineIndent++,me=u.input.charCodeAt(++u.position);if(!H&&u.lineIndent>oe&&(oe=u.lineIndent),rr(me))he++;else{if(u.lineIndent<oe){I===Ei?u.result+=pt.repeat("\n",z?1+he:he):I===Yn&&z&&(u.result+="\n");break}for(A?qi(me)?(Pe=!0,u.result+=pt.repeat("\n",z?1+he:he)):Pe?(Pe=!1,u.result+=pt.repeat("\n",he+1)):0===he?z&&(u.result+=" "):u.result+=pt.repeat("\n",he):u.result+=pt.repeat("\n",z?1+he:he),z=!0,H=!0,he=0,y=u.position;!rr(me)&&0!==me;)me=u.input.charCodeAt(++u.position);dn(u,y,u.position,!1)}}return!0}(u,rn)||function Zt(u,g){var y,A,I;if(39!==(y=u.input.charCodeAt(u.position)))return!1;for(u.kind="scalar",u.result="",u.position++,A=I=u.position;0!==(y=u.input.charCodeAt(u.position));)if(39===y){if(dn(u,A,u.position,!0),39!==(y=u.input.charCodeAt(++u.position)))return!0;A=u.position,u.position++,I=u.position}else rr(y)?(dn(u,A,I,!0),ve(u,ti(u,!1,g)),A=I=u.position):u.position===u.lineStart&&ki(u)?He(u,"unexpected end of the document within a single quoted scalar"):(u.position++,I=u.position);He(u,"unexpected end of the stream within a single quoted scalar")}(u,rn)||function An(u,g){var y,A,I,z,H,oe;if(34!==(oe=u.input.charCodeAt(u.position)))return!1;for(u.kind="scalar",u.result="",u.position++,y=A=u.position;0!==(oe=u.input.charCodeAt(u.position));){if(34===oe)return dn(u,y,u.position,!0),u.position++,!0;if(92===oe){if(dn(u,y,u.position,!0),rr(oe=u.input.charCodeAt(++u.position)))ti(u,!1,g);else if(oe<256&&si[oe])u.result+=qs[oe],u.position++;else if((H=Lo(oe))>0){for(I=H,z=0;I>0;I--)(H=rc(oe=u.input.charCodeAt(++u.position)))>=0?z=(z<<4)+H:He(u,"expected hexadecimal character");u.result+=ls(z),u.position++}else He(u,"unknown escape sequence");y=A=u.position}else rr(oe)?(dn(u,y,A,!0),ve(u,ti(u,!1,g)),y=A=u.position):u.position===u.lineStart&&ki(u)?He(u,"unexpected end of the document within a double quoted scalar"):(u.position++,A=u.position)}He(u,"unexpected end of the stream within a double quoted scalar")}(u,rn)?ie=!0:function Ks(u){var g,y,A;if(42!==(A=u.input.charCodeAt(u.position)))return!1;for(A=u.input.charCodeAt(++u.position),g=u.position;0!==A&&!vi(A)&&!Po(A);)A=u.input.charCodeAt(++u.position);return u.position===g&&He(u,"name of an alias node must contain at least one character"),y=u.input.slice(g,u.position),wr.call(u.anchorMap,y)||He(u,'unidentified alias "'+y+'"'),u.result=u.anchorMap[y],ti(u,!0,-1),!0}(u)?(ie=!0,(null!==u.tag||null!==u.anchor)&&He(u,"alias node should not have any properties")):function Ds(u,g,y){var I,z,H,oe,he,Pe,ie,ze,me=u.kind,ot=u.result;if(vi(ze=u.input.charCodeAt(u.position))||Po(ze)||35===ze||38===ze||42===ze||33===ze||124===ze||62===ze||39===ze||34===ze||37===ze||64===ze||96===ze||(63===ze||45===ze)&&(vi(I=u.input.charCodeAt(u.position+1))||y&&Po(I)))return!1;for(u.kind="scalar",u.result="",z=H=u.position,oe=!1;0!==ze;){if(58===ze){if(vi(I=u.input.charCodeAt(u.position+1))||y&&Po(I))break}else if(35===ze){if(vi(u.input.charCodeAt(u.position-1)))break}else{if(u.position===u.lineStart&&ki(u)||y&&Po(ze))break;if(rr(ze)){if(he=u.line,Pe=u.lineStart,ie=u.lineIndent,ti(u,!1,-1),u.lineIndent>=g){oe=!0,ze=u.input.charCodeAt(u.position);continue}u.position=H,u.line=he,u.lineStart=Pe,u.lineIndent=ie;break}}oe&&(dn(u,z,H,!1),ve(u,u.line-he),z=H=u.position,oe=!1),qi(ze)||(H=u.position+1),ze=u.input.charCodeAt(++u.position)}return dn(u,z,H,!1),!!u.result||(u.kind=me,u.result=ot,!1)}(u,rn,Zi===y)&&(ie=!0,null===u.tag&&(u.tag="?")),null!==u.anchor&&(u.anchorMap[u.anchor]=u.result)):0===he&&(ie=oe&&Ms(u,En))),null===u.tag)null!==u.anchor&&(u.anchorMap[u.anchor]=u.result);else if("?"===u.tag){for(null!==u.result&&"scalar"!==u.kind&&He(u,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+u.kind+'"'),me=0,ot=u.implicitTypes.length;me<ot;me+=1)if((Pt=u.implicitTypes[me]).resolve(u.result)){u.result=Pt.construct(u.result),u.tag=Pt.tag,null!==u.anchor&&(u.anchorMap[u.anchor]=u.result);break}}else if("!"!==u.tag){if(wr.call(u.typeMap[u.kind||"fallback"],u.tag))Pt=u.typeMap[u.kind||"fallback"][u.tag];else for(Pt=null,me=0,ot=(ze=u.typeMap.multi[u.kind||"fallback"]).length;me<ot;me+=1)if(u.tag.slice(0,ze[me].tag.length)===ze[me].tag){Pt=ze[me];break}Pt||He(u,"unknown tag !<"+u.tag+">"),null!==u.result&&Pt.kind!==u.kind&&He(u,"unacceptable node kind for !<"+u.tag+'> tag; it should be "'+Pt.kind+'", not "'+u.kind+'"'),Pt.resolve(u.result,u.tag)?(u.result=Pt.construct(u.result,u.tag),null!==u.anchor&&(u.anchorMap[u.anchor]=u.result)):He(u,"cannot resolve a node with !<"+u.tag+"> explicit tag")}return null!==u.listener&&u.listener("close",u),null!==u.tag||null!==u.anchor||ie}function ar(u){var y,A,I,H,g=u.position,z=!1;for(u.version=null,u.checkLineBreaks=u.legacy,u.tagMap=Object.create(null),u.anchorMap=Object.create(null);0!==(H=u.input.charCodeAt(u.position))&&(ti(u,!0,-1),H=u.input.charCodeAt(u.position),!(u.lineIndent>0||37!==H));){for(z=!0,H=u.input.charCodeAt(++u.position),y=u.position;0!==H&&!vi(H);)H=u.input.charCodeAt(++u.position);for(I=[],(A=u.input.slice(y,u.position)).length<1&&He(u,"directive name must not be less than one character in length");0!==H;){for(;qi(H);)H=u.input.charCodeAt(++u.position);if(35===H){do{H=u.input.charCodeAt(++u.position)}while(0!==H&&!rr(H));break}if(rr(H))break;for(y=u.position;0!==H&&!vi(H);)H=u.input.charCodeAt(++u.position);I.push(u.input.slice(y,u.position))}0!==H&&ao(u),wr.call(wi,A)?wi[A](u,A,I):Kr(u,'unknown document directive "'+A+'"')}ti(u,!0,-1),0===u.lineIndent&&45===u.input.charCodeAt(u.position)&&45===u.input.charCodeAt(u.position+1)&&45===u.input.charCodeAt(u.position+2)?(u.position+=3,ti(u,!0,-1)):z&&He(u,"directives end mark is expected"),sr(u,u.lineIndent-1,Fo,!1,!0),ti(u,!0,-1),u.checkLineBreaks&&oi.test(u.input.slice(g,u.position))&&Kr(u,"non-ASCII line breaks are interpreted as content"),u.documents.push(u.result),u.position===u.lineStart&&ki(u)?46===u.input.charCodeAt(u.position)&&(u.position+=3,ti(u,!0,-1)):u.position<u.length-1&&He(u,"end of the stream or a document separator is expected")}function No(u,g){g=g||{},0!==(u=String(u)).length&&(10!==u.charCodeAt(u.length-1)&&13!==u.charCodeAt(u.length-1)&&(u+="\n"),65279===u.charCodeAt(0)&&(u=u.slice(1)));var y=new On(u,g),A=u.indexOf("\0");for(-1!==A&&(y.position=A,He(y,"null byte is not allowed in input")),y.input+="\0";32===y.input.charCodeAt(y.position);)y.lineIndent+=1,y.position+=1;for(;y.position<y.length-1;)ar(y);return y.documents}var oc=_t,Fc=function Xs(u,g){var y=No(u,g);if(0!==y.length){if(1===y.length)return y[0];throw new at("expected a single document in the stream, but found more")}};const Ki=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function Rn(u,g){var y;const A=u.match(Ki);if(A){const I=Fc(A[1],{schema:oc});return I?.title&&(null==(y=g.setDiagramTitle)||y.call(g,I.title)),u.slice(A[0].length)}return u}const $r={},it=(u,g,y)=>{let A="";return u in $r&&$r[u]?A=$r[u](y):J.l.warn(`No theme found for ${u}`),` & {\n font-family: ${y.fontFamily};\n font-size: ${y.fontSize};\n fill: ${y.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${y.errorBkgColor};\n }\n & .error-text {\n fill: ${y.errorTextColor};\n stroke: ${y.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${y.lineColor};\n stroke: ${y.lineColor};\n }\n & .marker.cross {\n stroke: ${y.lineColor};\n }\n\n & svg {\n font-family: ${y.fontFamily};\n font-size: ${y.fontSize};\n }\n\n ${A}\n\n ${g}\n`};let lo={};const qt=function(u,g,y,A){J.l.debug("parseDirective is being called",g,y,A);try{if(void 0!==g)switch(g=g.trim(),y){case"open_directive":lo={};break;case"type_directive":if(!lo)throw new Error("currentDirective is undefined");lo.type=g.toLowerCase();break;case"arg_directive":if(!lo)throw new Error("currentDirective is undefined");lo.args=JSON.parse(g);break;case"close_directive":Ts(u,lo,A),lo=void 0}}catch(I){J.l.error(`Error while rendering sequenceDiagram directive: ${g} jison context: ${y}`),J.l.error(I.message)}},Ts=function(u,g,y){switch(J.l.info(`Directive type=${g.type} with args:`,g.args),g.type){case"init":case"initialize":["config"].forEach(A=>{void 0!==g.args[A]&&("flowchart-v2"===y&&(y="flowchart"),g.args[y]=g.args[A],delete g.args[A])}),J.l.info("sanitize in handleDirective",g.args),Xr(g.args),J.l.info("sanitize in handleDirective (done)",g.args),(0,J.a)(g.args);break;case"wrap":case"nowrap":u&&u.setWrap&&u.setWrap("wrap"===g.type);break;case"themeCss":J.l.warn("themeCss encountered");break;default:J.l.warn(`Unhandled directive: source: '%%{${g.type}: ${JSON.stringify(g.args?g.args:{})}}%%`,g)}},Ft=J.l,W=J.s,Oe=J.g,nt=u=>(0,J.b)(u,Oe()),Tn=ne.s,zn=(u,g,y,A)=>qt(u,g,y,A),Fn={},ds=(u,g,y)=>{if(Fn[u])throw new Error(`Diagram ${u} already registered.`);Fn[u]=g,y&&od(u,y),((u,g)=>{$r[u]=g})(u,g.styles),g.injectUtils&&g.injectUtils(Ft,W,Oe,nt,Tn,je.c,zn)},bt=u=>{if(u in Fn)return Fn[u];throw new Error(`Diagram ${u} not found.`)};class Bo extends Error{constructor(g){super(g),this.name="UnknownDiagramError"}}const Xi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,$i=/\s*%%.*\n/gm,Vo={},pl=function(u,g){u=u.replace(Ki,"").replace(Xi,"").replace($i,"\n");for(const[y,{detector:A}]of Object.entries(Vo))if(A(u,g))return y;throw new Bo(`No diagram type detected matching given configuration for text: ${u}`)},$n=(...u)=>{for(const{id:g,detector:y,loader:A}of u)od(g,y,A)},Yd=function(){var u=(0,q.Z)(function*(){J.l.debug("Loading registered diagrams");const y=(yield Promise.allSettled(Object.entries(Vo).map(function(){var A=(0,q.Z)(function*([I,{detector:z,loader:H}]){if(H)try{bt(I)}catch{try{const{diagram:he,id:Pe}=yield H();ds(Pe,he,z)}catch(he){throw J.l.error(`Failed to load external diagram with key ${I}. Removing from detectors.`),delete Vo[I],he}}});return function(I){return A.apply(this,arguments)}}()))).filter(A=>"rejected"===A.status);if(y.length>0){J.l.error(`Failed to load ${y.length} external diagrams`);for(const A of y)J.l.error(A);throw new Error(`Failed to load ${y.length} external diagrams`)}});return function(){return u.apply(this,arguments)}}(),od=(u,g,y)=>{Vo[u]?J.l.error(`Detector with key ${u} already exists`):Vo[u]={detector:g,loader:y},J.l.debug(`Detector with key ${u} added${y?" with loader":""}`)},gl=u=>Vo[u].loader,Fa={curveBasis:re.$0Z,curveBasisClosed:re.Dts,curveBasisOpen:re.WQY,curveBumpX:re.qpX,curveBumpY:re.u93,curveBundle:re.tFB,curveCardinalClosed:re.OvA,curveCardinalOpen:re.dCK,curveCardinal:re.YY7,curveCatmullRomClosed:re.fGX,curveCatmullRomOpen:re.$m7,curveCatmullRom:re.zgE,curveLinear:re.c_6,curveLinearClosed:re.fxm,curveMonotoneX:re.FdL,curveMonotoneY:re.ak_,curveNatural:re.SxZ,curveStep:re.eA_,curveStepAfter:re.jsv,curveStepBefore:re.iJ},Oa=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,sc=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,_l=function(u,g=null){try{const y=new RegExp(`[%]{2}(?![{]${sc.source})(?=[}][%]{2}).*\n`,"ig");let A;u=u.trim().replace(y,"").replace(/'/gm,'"'),J.l.debug(`Detecting diagram directive${null!==g?" type:"+g:""} based on the text:${u}`);const I=[];for(;null!==(A=Oa.exec(u));)if(A.index===Oa.lastIndex&&Oa.lastIndex++,A&&!g||g&&A[1]&&A[1].match(g)||g&&A[2]&&A[2].match(g)){const z=A[1]?A[1]:A[2],H=A[3]?A[3].trim():A[4]?JSON.parse(A[4].trim()):null;I.push({type:z,args:H})}return 0===I.length&&I.push({type:u,args:null}),1===I.length?I[0]:I}catch(y){return J.l.error(`ERROR: ${y.message} - Unable to parse directive\n ${null!==g?" type:"+g:""} based on the text:${u}`),{type:null,args:null}}};function Es(u,g){if(!u)return g;const y=`curve${u.charAt(0).toUpperCase()+u.slice(1)}`;return Fa[y]||g}function hs(u,g){return u&&g?Math.sqrt(Math.pow(g.x-u.x,2)+Math.pow(g.y-u.y,2)):0}function ac(u){let g="",y="";for(const A of u)void 0!==A&&(A.startsWith("color:")||A.startsWith("text-align:")?y=y+A+";":g=g+A+";");return{style:g,labelStyle:y}}let Js=0;const cc=()=>(Js++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Js),Rc=u=>function ad(u){let g="";const y="0123456789abcdef",A=y.length;for(let I=0;I<u;I++)g+=y.charAt(Math.floor(Math.random()*A));return g}(u.length),uo=function(u,g){const y=g.text.replace(J.d.lineBreakRegex," "),[,A]=tt(g.fontSize),I=u.append("text");I.attr("x",g.x),I.attr("y",g.y),I.style("text-anchor",g.anchor),I.style("font-family",g.fontFamily),I.style("font-size",A),I.style("font-weight",g.fontWeight),I.attr("fill",g.fill),void 0!==g.class&&I.attr("class",g.class);const z=I.append("tspan");return z.attr("x",g.x+2*g.textMargin),z.attr("fill",g.fill),z.text(y),I},Er=(0,Ye.Z)((u,g,y)=>{if(!u||(y=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},y),J.d.lineBreakRegex.test(u)))return u;const A=u.split(" "),I=[];let z="";return A.forEach((H,oe)=>{const he=zo(`${H} `,y),Pe=zo(z,y);if(he>g){const{hyphenatedStrings:ot,remainingWord:ze}=ho(H,g,"-",y);I.push(z,...ot),z=ze}else Pe+he>=g?(I.push(z),z=H):z=[z,H].filter(Boolean).join(" ");oe+1===A.length&&I.push(z)}),I.filter(H=>""!==H).join(y.joinWith)},(u,g,y)=>`${u}${g}${y.fontSize}${y.fontWeight}${y.fontFamily}${y.joinWith}`),ho=(0,Ye.Z)((u,g,y="-",A)=>{A=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},A);const I=[...u],z=[];let H="";return I.forEach((oe,he)=>{const Pe=`${H}${oe}`;zo(Pe,A)>=g?(z.push(I.length===he+1?Pe:`${Pe}${y}`),H=""):H=Pe}),{hyphenatedStrings:z,remainingWord:H}},(u,g,y="-",A)=>`${u}${g}${y}${A.fontSize}${A.fontWeight}${A.fontFamily}`);function Pn(u,g){return g=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},g),Ss(u,g).height}function zo(u,g){return g=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},g),Ss(u,g).width}const Ss=(0,Ye.Z)((u,g)=>{g=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},g);const{fontSize:y,fontFamily:A,fontWeight:I}=g;if(!u)return{width:0,height:0};const[,z]=tt(y),H=["sans-serif",A],oe=u.split(J.d.lineBreakRegex),he=[],Pe=(0,re.Ys)("body");if(!Pe.remove)return{width:0,height:0,lineHeight:0};const ie=Pe.append("svg");for(const ot of H){let ze=0;const Pt={width:0,height:0,lineHeight:0};for(const rn of oe){const En={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};En.text=rn;const jt=uo(ie,En).style("font-size",z).style("font-weight",I).style("font-family",ot),Dt=(jt._groups||jt)[0][0].getBBox();Pt.width=Math.round(Math.max(Pt.width,Dt.width)),ze=Math.round(Dt.height),Pt.height+=ze,Pt.lineHeight=Math.round(Math.max(Pt.lineHeight,ze))}he.push(Pt)}return ie.remove(),he[isNaN(he[1].height)||isNaN(he[1].width)||isNaN(he[1].lineHeight)||he[0].height>he[1].height&&he[0].width>he[1].width&&he[0].lineHeight>he[1].lineHeight?0:1]},(u,g)=>`${u}${g.fontSize}${g.fontWeight}${g.fontFamily}`);let ea;const Xr=u=>{if(J.l.debug("directiveSanitizer called with",u),"object"==typeof u&&(u.length?u.forEach(g=>Xr(g)):Object.keys(u).forEach(g=>{J.l.debug("Checking key",g),g.startsWith("__")&&(J.l.debug("sanitize deleting __ option",g),delete u[g]),g.includes("proto")&&(J.l.debug("sanitize deleting proto option",g),delete u[g]),g.includes("constr")&&(J.l.debug("sanitize deleting constr option",g),delete u[g]),g.includes("themeCSS")&&(J.l.debug("sanitizing themeCss option"),u[g]=Is(u[g])),g.includes("fontFamily")&&(J.l.debug("sanitizing fontFamily option"),u[g]=Is(u[g])),g.includes("altFontFamily")&&(J.l.debug("sanitizing altFontFamily option"),u[g]=Is(u[g])),J.e.includes(g)?"object"==typeof u[g]&&(J.l.debug("sanitize deleting object",g),Xr(u[g])):(J.l.debug("sanitize deleting option",g),delete u[g])})),u.themeVariables){const g=Object.keys(u.themeVariables);for(const y of g){const A=u.themeVariables[y];A&&A.match&&!A.match(/^[\d "#%(),.;A-Za-z]+$/)&&(u.themeVariables[y]="")}}J.l.debug("After sanitization",u)},Is=u=>{let g=0,y=0;for(const A of u){if(g<y)return"{ /* ERROR: Unbalanced CSS */ }";"{"===A?g++:"}"===A&&y++}return g!==y?"{ /* ERROR: Unbalanced CSS */ }":u};function k(u){return"str"in u}function j(u){return u instanceof Error?u.message:String(u)}const tt=u=>{if("number"==typeof u)return[u,u+"px"];const g=parseInt(u,10);return Number.isNaN(g)?[void 0,void 0]:u===String(g)?[g,u+"px"]:[g,u]},Re={assignWithDepth:J.c,wrapLabel:Er,calculateTextHeight:Pn,calculateTextWidth:zo,calculateTextDimensions:Ss,detectInit:function(u,g){const y=_l(u,/(?:init\b)|(?:initialize\b)/);let A={};if(Array.isArray(y)){const I=y.map(z=>z.args);Xr(I),A=(0,J.c)(A,[...I])}else A=y.args;if(A){let I=pl(u,g);["config"].forEach(z=>{void 0!==A[z]&&("flowchart-v2"===I&&(I="flowchart"),A[I]=A[z],delete A[z])})}return A},detectDirective:_l,isSubstringInArray:function(u,g){for(const[y,A]of g.entries())if(A.match(u))return y;return-1},interpolateToCurve:Es,calcLabelPosition:function ks(u){return 1===u.length?u[0]:function te(u){let g,y=0;u.forEach(z=>{y+=hs(z,g),g=z});let I,A=y/2;return g=void 0,u.forEach(z=>{if(g&&!I){const H=hs(z,g);if(H<A)A-=H;else{const oe=A/H;oe<=0&&(I=g),oe>=1&&(I={x:z.x,y:z.y}),oe>0&&oe<1&&(I={x:(1-oe)*g.x+oe*z.x,y:(1-oe)*g.y+oe*z.y})}}g=z}),I}(u)},calcCardinalityPosition:(u,g,y)=>{let A;J.l.info(`our points ${JSON.stringify(g)}`),g[0]!==y&&(g=g.reverse());let H,z=25;A=void 0,g.forEach(ie=>{if(A&&!H){const me=hs(ie,A);if(me<z)z-=me;else{const ot=z/me;ot<=0&&(H=A),ot>=1&&(H={x:ie.x,y:ie.y}),ot>0&&ot<1&&(H={x:(1-ot)*A.x+ot*ie.x,y:(1-ot)*A.y+ot*ie.y})}}A=ie});const oe=u?10:5,he=Math.atan2(g[0].y-H.y,g[0].x-H.x),Pe={x:0,y:0};return Pe.x=Math.sin(he)*oe+(g[0].x+H.x)/2,Pe.y=-Math.cos(he)*oe+(g[0].y+H.y)/2,Pe},calcTerminalLabelPosition:function Tr(u,g,y){let I,A=JSON.parse(JSON.stringify(y));J.l.info("our points",A),"start_left"!==g&&"start_right"!==g&&(A=A.reverse()),A.forEach(me=>{I=me});let oe,H=25+u;I=void 0,A.forEach(me=>{if(I&&!oe){const ot=hs(me,I);if(ot<H)H-=ot;else{const ze=H/ot;ze<=0&&(oe=I),ze>=1&&(oe={x:me.x,y:me.y}),ze>0&&ze<1&&(oe={x:(1-ze)*I.x+ze*me.x,y:(1-ze)*I.y+ze*me.y})}}I=me});const he=10+.5*u,Pe=Math.atan2(A[0].y-oe.y,A[0].x-oe.x),ie={x:0,y:0};return ie.x=Math.sin(Pe)*he+(A[0].x+oe.x)/2,ie.y=-Math.cos(Pe)*he+(A[0].y+oe.y)/2,"start_left"===g&&(ie.x=Math.sin(Pe+Math.PI)*he+(A[0].x+oe.x)/2,ie.y=-Math.cos(Pe+Math.PI)*he+(A[0].y+oe.y)/2),"end_right"===g&&(ie.x=Math.sin(Pe-Math.PI)*he+(A[0].x+oe.x)/2-5,ie.y=-Math.cos(Pe-Math.PI)*he+(A[0].y+oe.y)/2-5),"end_left"===g&&(ie.x=Math.sin(Pe)*he+(A[0].x+oe.x)/2-5,ie.y=-Math.cos(Pe)*he+(A[0].y+oe.y)/2-5),ie},formatUrl:function us(u,g){const y=u.trim();if(y)return"loose"!==g.securityLevel?(0,de.N)(y):y},getStylesFromArray:ac,generateId:cc,random:Rc,runFunc:(u,...g)=>{const y=u.split("."),A=y.length-1,I=y[A];let z=window;for(let H=0;H<A;H++)if(z=z[y[H]],!z)return;z[I](...g)},entityDecode:function(u){return ea=ea||document.createElement("div"),u=escape(u).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ea.innerHTML=u,unescape(ea.textContent)},initIdGenerator:class{constructor(g,y){this.deterministic=g,this.seed=y,this.count=y?y.length:0}next(){return this.deterministic?this.count++:Date.now()}},directiveSanitizer:Xr,sanitizeCss:Is,insertTitle:(u,g,y,A)=>{if(!A)return;const I=u.node().getBBox();u.append("text").text(A).attr("x",I.x+I.width/2).attr("y",-y).attr("class",g)},parseFontSize:tt}},5861:(Jt,Ae,O)=>{"use strict";function q(re,J,ne,je,Ye,V,le){try{var K=re[V](le),ce=K.value}catch(kt){return void ne(kt)}K.done?J(ce):Promise.resolve(ce).then(je,Ye)}function de(re){return function(){var J=this,ne=arguments;return new Promise(function(je,Ye){var V=re.apply(J,ne);function le(ce){q(V,je,Ye,le,K,"next",ce)}function K(ce){q(V,je,Ye,le,K,"throw",ce)}le(void 0)})}}O.d(Ae,{Z:()=>de})}},Jt=>{Jt(Jt.s=7414)}]);