From a5f6218763308bbeb0b21543630c52a00863259a Mon Sep 17 00:00:00 2001 From: nzbin Date: Mon, 14 Oct 2024 23:49:32 +0800 Subject: [PATCH] Auto-generated commit --- 404.html | 2 +- chunk-HTEVMZPS.js => chunk-5EAT4YYT.js | 6 +-- chunk-II77XEOM.js => chunk-YANVSZEH.js | 2 +- index.html | 2 +- main-3LEEA4NZ.js | 68 ++++++++++++++++++++++++++ main-HF2JYXOL.js | 62 ----------------------- 6 files changed, 74 insertions(+), 68 deletions(-) rename chunk-HTEVMZPS.js => chunk-5EAT4YYT.js (81%) rename chunk-II77XEOM.js => chunk-YANVSZEH.js (99%) create mode 100644 main-3LEEA4NZ.js delete mode 100644 main-HF2JYXOL.js diff --git a/404.html b/404.html index 2a99f20..5cb4279 100644 --- a/404.html +++ b/404.html @@ -9,5 +9,5 @@ - + diff --git a/chunk-HTEVMZPS.js b/chunk-5EAT4YYT.js similarity index 81% rename from chunk-HTEVMZPS.js rename to chunk-5EAT4YYT.js index ec53bc4..0282e73 100644 --- a/chunk-HTEVMZPS.js +++ b/chunk-5EAT4YYT.js @@ -1,7 +1,7 @@ -var af=Object.defineProperty,uf=Object.defineProperties;var cf=Object.getOwnPropertyDescriptors;var An=Object.getOwnPropertySymbols;var pa=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable;var ha=(e,t,n)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,me=(e,t)=>{for(var n in t||={})pa.call(t,n)&&ha(e,n,t[n]);if(An)for(var n of An(t))ga.call(t,n)&&ha(e,n,t[n]);return e},ye=(e,t)=>uf(e,cf(t));var XD=(e,t)=>{var n={};for(var r in e)pa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&An)for(var r of An(e))t.indexOf(r)<0&&ga.call(e,r)&&(n[r]=e[r]);return n};var lf=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function ma(e,t){return Object.is(e,t)}var j=null,Jt=!1,On=1,oe=Symbol("SIGNAL");function b(e){let t=j;return j=e,t}function ya(){return j}function df(){return Jt}var vt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function To(e){if(Jt)throw new Error("");if(j===null)return;j.consumerOnSignalRead(e);let t=j.nextProducerIndex++;if(jn(j),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Pn(e){jn(e);for(let t=0;t0}function jn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ca(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ba(e){return e.producerNode!==void 0}function No(e){let t=Object.create(hf);t.computation=e;let n=()=>{if(va(t),To(t),t.value===Fn)throw t.error;return t.value};return n[oe]=t,n}var Mo=Symbol("UNSET"),xo=Symbol("COMPUTING"),Fn=Symbol("ERRORED"),hf=ye(me({},vt),{value:Mo,dirty:!0,error:null,equal:ma,producerMustRecompute(e){return e.value===Mo||e.value===xo},producerRecomputeValue(e){if(e.value===xo)throw new Error("Detected cycle in computations.");let t=e.value;e.value=xo;let n=en(e),r;try{r=e.computation()}catch(o){r=Fn,e.error=o}finally{Rn(e,n)}if(t!==Mo&&t!==Fn&&r!==Fn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function pf(){throw new Error}var _a=pf;function Ma(){_a()}function xa(e){_a=e}var gf=null;function Sa(e){let t=Object.create(Na);t.value=e;let n=()=>(To(t),t.value);return n[oe]=t,n}function Ao(e,t){Ia()||Ma(),e.equal(e.value,t)||(e.value=t,mf(e))}function Ta(e,t){Ia()||Ma(),Ao(e,t(e.value))}var Na=ye(me({},vt),{equal:ma,value:void 0});function mf(e){e.version++,ff(),Da(e),gf?.()}function Aa(e,t,n){let r=Object.create(yf);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=u=>{r.cleanupFn=u};function i(u){return u.fn===null&&u.schedule===null}function s(u){i(u)||(kn(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=So)}let a=()=>{if(r.fn===null)return;if(df())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Pn(r))return;r.hasRun=!0;let u=en(r);try{r.cleanupFn(),r.cleanupFn=So,r.fn(o)}finally{Rn(r,u)}};return r.ref={notify:()=>wa(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[oe]:r},r.ref}var So=()=>{},yf=ye(me({},vt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:So});function g(e){return typeof e=="function"}function Dt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Vn=Dt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +var af=Object.defineProperty,uf=Object.defineProperties;var cf=Object.getOwnPropertyDescriptors;var An=Object.getOwnPropertySymbols;var pa=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable;var ha=(e,t,n)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,me=(e,t)=>{for(var n in t||={})pa.call(t,n)&&ha(e,n,t[n]);if(An)for(var n of An(t))ga.call(t,n)&&ha(e,n,t[n]);return e},ye=(e,t)=>uf(e,cf(t));var eI=(e,t)=>{var n={};for(var r in e)pa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&An)for(var r of An(e))t.indexOf(r)<0&&ga.call(e,r)&&(n[r]=e[r]);return n};var lf=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function ma(e,t){return Object.is(e,t)}var j=null,Jt=!1,On=1,oe=Symbol("SIGNAL");function b(e){let t=j;return j=e,t}function ya(){return j}function df(){return Jt}var vt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function To(e){if(Jt)throw new Error("");if(j===null)return;j.consumerOnSignalRead(e);let t=j.nextProducerIndex++;if(jn(j),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Pn(e){jn(e);for(let t=0;t0}function jn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ca(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ba(e){return e.producerNode!==void 0}function No(e){let t=Object.create(hf);t.computation=e;let n=()=>{if(va(t),To(t),t.value===Fn)throw t.error;return t.value};return n[oe]=t,n}var Mo=Symbol("UNSET"),xo=Symbol("COMPUTING"),Fn=Symbol("ERRORED"),hf=ye(me({},vt),{value:Mo,dirty:!0,error:null,equal:ma,producerMustRecompute(e){return e.value===Mo||e.value===xo},producerRecomputeValue(e){if(e.value===xo)throw new Error("Detected cycle in computations.");let t=e.value;e.value=xo;let n=en(e),r;try{r=e.computation()}catch(o){r=Fn,e.error=o}finally{Rn(e,n)}if(t!==Mo&&t!==Fn&&r!==Fn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function pf(){throw new Error}var _a=pf;function Ma(){_a()}function xa(e){_a=e}var gf=null;function Sa(e){let t=Object.create(Na);t.value=e;let n=()=>(To(t),t.value);return n[oe]=t,n}function Ao(e,t){Ia()||Ma(),e.equal(e.value,t)||(e.value=t,mf(e))}function Ta(e,t){Ia()||Ma(),Ao(e,t(e.value))}var Na=ye(me({},vt),{equal:ma,value:void 0});function mf(e){e.version++,ff(),Da(e),gf?.()}function Aa(e,t,n){let r=Object.create(yf);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=u=>{r.cleanupFn=u};function i(u){return u.fn===null&&u.schedule===null}function s(u){i(u)||(kn(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=So)}let a=()=>{if(r.fn===null)return;if(df())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Pn(r))return;r.hasRun=!0;let u=en(r);try{r.cleanupFn(),r.cleanupFn=So,r.fn(o)}finally{Rn(r,u)}};return r.ref={notify:()=>wa(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[oe]:r},r.ref}var So=()=>{},yf=ye(me({},vt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:So});function g(e){return typeof e=="function"}function Dt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Vn=Dt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Ye(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var L=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(g(r))try{r()}catch(i){t=i instanceof Vn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Oa(i)}catch(s){t=t??[],s instanceof Vn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Vn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Oa(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Ye(n,t)}remove(t){let{_finalizers:n}=this;n&&Ye(n,t),t instanceof e&&t._removeParent(this)}};L.EMPTY=(()=>{let e=new L;return e.closed=!0,e})();var Oo=L.EMPTY;function Bn(e){return e instanceof L||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function Oa(e){g(e)?e():e.unsubscribe()}var fe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var It={setTimeout(e,t,...n){let{delegate:r}=It;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=It;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function $n(e){It.setTimeout(()=>{let{onUnhandledError:t}=fe;if(t)t(e);else throw e})}function tn(){}var Fa=Fo("C",void 0,void 0);function Ra(e){return Fo("E",void 0,e)}function Pa(e){return Fo("N",e,void 0)}function Fo(e,t,n){return{kind:e,value:t,error:n}}var Qe=null;function wt(e){if(fe.useDeprecatedSynchronousErrorHandling){let t=!Qe;if(t&&(Qe={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Qe;if(Qe=null,n)throw r}}else e()}function ka(e){fe.useDeprecatedSynchronousErrorHandling&&Qe&&(Qe.errorThrown=!0,Qe.error=e)}var Ke=class extends L{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Bn(t)&&t.add(this)):this.destination=If}static create(t,n,r){return new Me(t,n,r)}next(t){this.isStopped?Po(Pa(t),this):this._next(t)}error(t){this.isStopped?Po(Ra(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Po(Fa,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()}}},vf=Function.prototype.bind;function Ro(e,t){return vf.call(e,t)}var ko=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Hn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Hn(r)}else Hn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Hn(n)}}},Me=class extends Ke{constructor(t,n,r){super();let o;if(g(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&fe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ro(t.next,i),error:t.error&&Ro(t.error,i),complete:t.complete&&Ro(t.complete,i)}):o=t}this.destination=new ko(o)}};function Hn(e){fe.useDeprecatedSynchronousErrorHandling?ka(e):$n(e)}function Df(e){throw e}function Po(e,t){let{onStoppedNotification:n}=fe;n&&It.setTimeout(()=>n(e,t))}var If={closed:!0,next:tn,error:Df,complete:tn};var Et=typeof Symbol=="function"&&Symbol.observable||"@@observable";function G(e){return e}function wf(...e){return Lo(e)}function Lo(e){return e.length===0?G:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var x=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Cf(n)?n:new Me(n,r,o);return wt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=La(r),new r((o,i)=>{let s=new Me({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Et](){return this}pipe(...n){return Lo(n)(this)}toPromise(n){return n=La(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function La(e){var t;return(t=e??fe.Promise)!==null&&t!==void 0?t:Promise}function Ef(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function Cf(e){return e&&e instanceof Ke||Ef(e)&&Bn(e)}function jo(e){return g(e?.lift)}function D(e){return t=>{if(jo(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function I(e,t,n,r,o){return new Vo(e,t,n,r,o)}var Vo=class extends Ke{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Bo(){return D((e,t)=>{let n=null;e._refCount++;let r=I(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var $o=class extends x{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,jo(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new L;let n=this.getSubject();t.add(this.source.subscribe(I(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=L.EMPTY)}return t}refCount(){return Bo()(this)}};var Ct={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Ct;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new L(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Ct;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Ct;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var ja=Dt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ie=(()=>{class e extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Un(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ja}next(n){wt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){wt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){wt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Oo:(this.currentObservers=null,i.push(n),new L(()=>{this.currentObservers=null,Ye(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new x;return n.source=this,n}}return e.create=(t,n)=>new Un(t,n),e})(),Un=class extends ie{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Oo}};var nn=class extends ie{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var rn={now(){return(rn.delegate||Date).now()},delegate:void 0};var zn=class extends ie{constructor(t=1/0,n=1/0,r=rn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sVa(t)&&e()),t},clearImmediate(e){Va(e)}};var{setImmediate:_f,clearImmediate:Mf}=Ba,sn={setImmediate(...e){let{delegate:t}=sn;return(t?.setImmediate||_f)(...e)},clearImmediate(e){let{delegate:t}=sn;return(t?.clearImmediate||Mf)(e)},delegate:void 0};var Wn=class extends Pe{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=sn.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(sn.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var bt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};bt.now=rn.now;var ke=class extends bt{constructor(t,n=bt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var qn=class extends ke{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var xf=new qn(Wn);var an=new ke(Pe),$a=an;var Zn=class extends Pe{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Ct.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Ct.cancelAnimationFrame(n),t._scheduled=void 0)}};var Yn=class extends ke{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Sf=new Yn(Zn);var Je=new x(e=>e.complete());function Qn(e){return e&&g(e.schedule)}function zo(e){return e[e.length-1]}function Kn(e){return g(zo(e))?e.pop():void 0}function se(e){return Qn(zo(e))?e.pop():void 0}function Jn(e,t){return typeof zo(e)=="number"?e.pop():t}function Ua(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Ha(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xe(e){return this instanceof Xe?(this.v=e,this):new Xe(e)}function za(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(v){return new Promise(function(O,_){i.push([f,v,O,_])>1||u(f,v)})},p&&(o[f]=p(o[f])))}function u(f,p){try{c(r[f](p))}catch(v){h(i[0][3],v)}}function c(f){f.value instanceof Xe?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,p){f(p),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Ga(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ha=="function"?Ha(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var _t=e=>e&&typeof e.length=="number"&&typeof e!="function";function Xn(e){return g(e?.then)}function er(e){return g(e[Et])}function tr(e){return Symbol.asyncIterator&&g(e?.[Symbol.asyncIterator])}function nr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Tf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rr=Tf();function or(e){return g(e?.[rr])}function ir(e){return za(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Xe(n.read());if(o)return yield Xe(void 0);yield yield Xe(r)}}finally{n.releaseLock()}})}function sr(e){return g(e?.getReader)}function T(e){if(e instanceof x)return e;if(e!=null){if(er(e))return Nf(e);if(_t(e))return Af(e);if(Xn(e))return Of(e);if(tr(e))return Wa(e);if(or(e))return Ff(e);if(sr(e))return Rf(e)}throw nr(e)}function Nf(e){return new x(t=>{let n=e[Et]();if(g(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Af(e){return new x(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,$n)})}function Ff(e){return new x(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Wa(e){return new x(t=>{Pf(e,t).catch(n=>t.error(n))})}function Rf(e){return Wa(ir(e))}function Pf(e,t){var n,r,o,i;return Ua(this,void 0,void 0,function*(){try{for(n=Ga(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Y(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ar(e,t=0){return D((n,r)=>{n.subscribe(I(r,o=>Y(r,e,()=>r.next(o),t),()=>Y(r,e,()=>r.complete(),t),o=>Y(r,e,()=>r.error(o),t)))})}function ur(e,t=0){return D((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function qa(e,t){return T(e).pipe(ur(t),ar(t))}function Za(e,t){return T(e).pipe(ur(t),ar(t))}function Ya(e,t){return new x(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Qa(e,t){return new x(n=>{let r;return Y(n,t,()=>{r=e[rr](),Y(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>g(r?.return)&&r.return()})}function cr(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(n=>{Y(n,t,()=>{let r=e[Symbol.asyncIterator]();Y(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ka(e,t){return cr(ir(e),t)}function Ja(e,t){if(e!=null){if(er(e))return qa(e,t);if(_t(e))return Ya(e,t);if(Xn(e))return Za(e,t);if(tr(e))return cr(e,t);if(or(e))return Qa(e,t);if(sr(e))return Ka(e,t)}throw nr(e)}function ae(e,t){return t?Ja(e,t):T(e)}function kf(...e){let t=se(e);return ae(e,t)}function Lf(e,t){let n=g(e)?e:()=>e,r=o=>o.error(n());return new x(t?o=>t.schedule(r,0,o):r)}function jf(e){return!!e&&(e instanceof x||g(e.lift)&&g(e.subscribe))}var et=Dt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Xa(e){return e instanceof Date&&!isNaN(e)}function xe(e,t){return D((n,r)=>{let o=0;n.subscribe(I(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Vf}=Array;function Bf(e,t){return Vf(t)?e(...t):e(t)}function Mt(e){return xe(t=>Bf(e,t))}var{isArray:$f}=Array,{getPrototypeOf:Hf,prototype:Uf,keys:zf}=Object;function lr(e){if(e.length===1){let t=e[0];if($f(t))return{args:t,keys:null};if(Gf(t)){let n=zf(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Gf(e){return e&&typeof e=="object"&&Hf(e)===Uf}function dr(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Wf(...e){let t=se(e),n=Kn(e),{args:r,keys:o}=lr(e);if(r.length===0)return ae([],t);let i=new x(qf(r,t,o?s=>dr(o,s):G));return n?i.pipe(Mt(n)):i}function qf(e,t,n=G){return r=>{eu(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=ae(e[u],t),l=!1;c.subscribe(I(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function eu(e,t,n){e?Y(n,e,t):t()}function tu(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=v=>c{i&&t.next(v),c++;let O=!1;T(n(v,l++)).subscribe(I(t,_=>{o?.(_),i?f(_):t.next(_)},()=>{O=!0},void 0,()=>{if(O)try{for(c--;u.length&&cp(_)):p(_)}h()}catch(_){t.error(_)}}))};return e.subscribe(I(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Se(e,t,n=1/0){return g(t)?Se((r,o)=>xe((i,s)=>t(r,i,o,s))(T(e(r,o))),n):(typeof t=="number"&&(n=t),D((r,o)=>tu(r,o,e,n)))}function xt(e=1/0){return Se(G,e)}function nu(){return xt(1)}function fr(...e){return nu()(ae(e,se(e)))}function Zf(e){return new x(t=>{T(e()).subscribe(t)})}function Yf(...e){let t=Kn(e),{args:n,keys:r}=lr(e),o=new x(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?dr(r,a):a),i.complete())}))}});return t?o.pipe(Mt(t)):o}var Qf=["addListener","removeListener"],Kf=["addEventListener","removeEventListener"],Jf=["on","off"];function Go(e,t,n,r){if(g(n)&&(r=n,n=void 0),r)return Go(e,t,n).pipe(Mt(r));let[o,i]=th(e)?Kf.map(s=>a=>e[s](t,a,n)):Xf(e)?Qf.map(ru(e,t)):eh(e)?Jf.map(ru(e,t)):[];if(!o&&_t(e))return Se(s=>Go(s,t,n))(T(e));if(!o)throw new TypeError("Invalid event target");return new x(s=>{let a=(...u)=>s.next(1i(a)})}function ru(e,t){return n=>r=>e[n](t,r)}function Xf(e){return g(e.addListener)&&g(e.removeListener)}function eh(e){return g(e.on)&&g(e.off)}function th(e){return g(e.addEventListener)&&g(e.removeEventListener)}function Wo(e=0,t,n=$a){let r=-1;return t!=null&&(Qn(t)?n=t:r=t),new x(o=>{let i=Xa(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function nh(...e){let t=se(e),n=Jn(e,1/0),r=e;return r.length?r.length===1?T(r[0]):xt(n)(ae(r,t)):Je}var{isArray:rh}=Array;function ou(e){return e.length===1&&rh(e[0])?e[0]:e}function tt(e,t){return D((n,r)=>{let o=0;n.subscribe(I(r,i=>e.call(t,i,o++)&&r.next(i)))})}function iu(e){return D((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},u=()=>{i=null,s&&n.complete()};t.subscribe(I(n,c=>{r=!0,o=c,i||T(e(c)).subscribe(i=I(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function oh(e,t=an){return iu(()=>Wo(e,t))}function su(e){return D((t,n)=>{let r=null,o=!1,i;r=t.subscribe(I(n,void 0,void 0,s=>{i=T(e(s,su(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function au(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(I(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function ih(e,t){return g(t)?Se(e,t,1):Se(e,1)}function sh(e,t=an){return D((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function un(e){return D((t,n)=>{let r=!1;t.subscribe(I(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function qo(e){return e<=0?()=>Je:D((t,n)=>{let r=0;t.subscribe(I(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ah(e){return xe(()=>e)}function uh(e,t=G){return e=e??ch,D((n,r)=>{let o,i=!0;n.subscribe(I(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function ch(e,t){return e===t}function hr(e=lh){return D((t,n)=>{let r=!1;t.subscribe(I(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function lh(){return new et}function dh(e){return D((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function uu(e,t){let n=arguments.length>=2;return r=>r.pipe(e?tt((o,i)=>e(o,i,r)):G,qo(1),n?un(t):hr(()=>new et))}function Zo(e){return e<=0?()=>Je:D((t,n)=>{let r=[];t.subscribe(I(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function fh(e,t){let n=arguments.length>=2;return r=>r.pipe(e?tt((o,i)=>e(o,i,r)):G,Zo(1),n?un(t):hr(()=>new et))}function cu(...e){let t=se(e),n=Jn(e,1/0);return e=ou(e),D((r,o)=>{xt(n)(ae([r,...e],t)).subscribe(o)})}function hh(...e){return cu(...e)}function ph(e,t){return D(au(e,t,arguments.length>=2,!0))}function Qo(e={}){let{connector:t=()=>new ie,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=u=void 0,l=d=!1},p=()=>{let v=s;f(),v?.unsubscribe()};return D((v,O)=>{c++,!d&&!l&&h();let _=u=u??t();O.add(()=>{c--,c===0&&!d&&!l&&(a=Yo(p,o))}),_.subscribe(O),!s&&c>0&&(s=new Me({next:P=>_.next(P),error:P=>{d=!0,h(),a=Yo(f,n,P),_.error(P)},complete:()=>{l=!0,h(),a=Yo(f,r),_.complete()}}),T(v).subscribe(s))})(i)}}function Yo(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Me({next:()=>{r.unsubscribe(),e()}});return T(t(...n)).subscribe(r)}function gh(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Qo({connector:()=>new zn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function mh(e){return tt((t,n)=>e<=n)}function yh(...e){let t=se(e);return D((n,r)=>{(t?fr(e,n,t):fr(e,n)).subscribe(r)})}function vh(e,t){return D((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(I(r,u=>{o?.unsubscribe();let c=0,l=i++;T(e(u,l)).subscribe(o=I(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Dh(e){return D((t,n)=>{T(e).subscribe(I(n,()=>n.complete(),tn)),!n.closed&&t.subscribe(n)})}function Ih(e,t=!1){return D((n,r)=>{let o=0;n.subscribe(I(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function wh(e,t,n){let r=g(e)||t||n?{next:e,error:t,complete:n}:e;return r?D((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(I(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):G}var Ju="https://g.co/ng/security#xss",S=class extends Error{constructor(t,n){super(Xu(t,n)),this.code=t}};function Xu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function In(e){return{toString:e}.toString()}var pr="__parameters__";function Eh(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function ec(e,t,n){return In(()=>{let r=Eh(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(pr)?u[pr]:Object.defineProperty(u,pr,{value:[]})[pr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var lu=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("Could not find renamed property on target object.")}function Ch(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Z(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Z).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function li(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var bh=A({__forward_ref__:A});function tc(e){return e.__forward_ref__=tc,e.toString=function(){return Z(this())},e}function W(e){return nc(e)?e():e}function nc(e){return typeof e=="function"&&e.hasOwnProperty(bh)&&e.__forward_ref__===tc}function k(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function rc(e){return{providers:e.providers||[],imports:e.imports||[]}}function to(e){return du(e,oc)||du(e,ic)}function zM(e){return to(e)!==null}function du(e,t){return e.hasOwnProperty(t)?e[t]:null}function _h(e){let t=e&&(e[oc]||e[ic]);return t||null}function fu(e){return e&&(e.hasOwnProperty(hu)||e.hasOwnProperty(Mh))?e[hu]:null}var oc=A({\u0275prov:A}),hu=A({\u0275inj:A}),ic=A({ngInjectableDef:A}),Mh=A({ngInjectorDef:A}),N=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=k({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function sc(e){return e&&!!e.\u0275providers}var xh=A({\u0275cmp:A}),Sh=A({\u0275dir:A}),Th=A({\u0275pipe:A}),Nh=A({\u0275mod:A}),xr=A({\u0275fac:A}),ln=A({__NG_ELEMENT_ID__:A}),pu=A({__NG_ENV_ID__:A});function no(e){return typeof e=="string"?e:e==null?"":String(e)}function Ah(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():no(e)}function Oh(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,e)}function ws(e,t){throw new S(-201,!1)}var M=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(M||{}),di;function ac(){return di}function Q(e){let t=di;return di=e,t}function uc(e,t,n){let r=to(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&M.Optional)return null;if(t!==void 0)return t;ws(e,"Injector")}var Fh={},dn=Fh,fi="__NG_DI_FLAG__",Sr="ngTempTokenPath",Rh="ngTokenPath",Ph=/\n/gm,kh="\u0275",gu="__source",Ot;function Lh(){return Ot}function Le(e){let t=Ot;return Ot=e,t}function jh(e,t=M.Default){if(Ot===void 0)throw new S(-203,!1);return Ot===null?uc(e,void 0,t):Ot.get(e,t&M.Optional?null:void 0,t)}function J(e,t=M.Default){return(ac()||jh)(W(e),t)}function C(e,t=M.Default){return J(e,ro(t))}function ro(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function hi(e){let t=[];for(let n=0;n ")} > ${e}`:"";throw new S(-200,e)}function ws(e,t){throw new S(-201,!1)}var M=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(M||{}),di;function ac(){return di}function Q(e){let t=di;return di=e,t}function uc(e,t,n){let r=to(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&M.Optional)return null;if(t!==void 0)return t;ws(e,"Injector")}var Fh={},dn=Fh,fi="__NG_DI_FLAG__",Sr="ngTempTokenPath",Rh="ngTokenPath",Ph=/\n/gm,kh="\u0275",gu="__source",Ot;function Lh(){return Ot}function Le(e){let t=Ot;return Ot=e,t}function jh(e,t=M.Default){if(Ot===void 0)throw new S(-203,!1);return Ot===null?uc(e,void 0,t):Ot.get(e,t&M.Optional?null:void 0,t)}function J(e,t=M.Default){return(ac()||jh)(W(e),t)}function C(e,t=M.Default){return J(e,ro(t))}function ro(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function hi(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Z(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Ph,` - `)}`}var Hh=cc(ec("Optional"),8);var Uh=cc(ec("SkipSelf"),4);function rt(e,t){let n=e.hasOwnProperty(xr);return n?e[xr]:null}function zh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Es(n,t):t(n))}function lc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Tr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Wh(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function wn(e,t,n){let r=En(e,t);return r>=0?e[r|1]=n:(r=~r,qh(e,r,t,n)),r}function Ko(e,t){let n=En(e,t);if(n>=0)return e[n|1]}function En(e,t){return Zh(e,t,1)}function Zh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(he(r))return!1;s=!0}}}}return he(r)||s}function he(e){return(e&1)===0}function ep(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!he(s)&&(t+=yu(i,o),o=""),r=s,i=i||!he(r);n++}return o!==""&&(t+=yu(i,o)),t}function sp(e){return e.map(ip).join(",")}function ap(e){let t=[],n=[],r=1,o=2;for(;r{let t=wc(e),n=ye(me({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===hc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||fn.Emulated,styles:e.styles||q,_:null,schemas:e.schemas||null,tView:null,id:""});Ec(n);let r=e.dependencies;return n.directiveDefs=Du(r,!1),n.pipeDefs=Du(r,!0),n.id=fp(n),n})}function up(e){return ot(e)||vc(e)}function cp(e){return e!==null}function yc(e){return In(()=>({type:e.type,bootstrap:e.bootstrap||q,declarations:e.declarations||q,imports:e.imports||q,exports:e.exports||q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vu(e,t){if(e==null)return Rt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Be.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Be.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Cn(e){return In(()=>{let t=wc(e);return Ec(t),t})}function lp(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function ot(e){return e[xh]||null}function vc(e){return e[Sh]||null}function Dc(e){return e[Th]||null}function dp(e){let t=ot(e)||vc(e)||Dc(e);return t!==null?t.standalone:!1}function Ic(e,t){let n=e[Nh]||null;if(!n&&t===!0)throw new Error(`Type ${Z(e)} does not have '\u0275mod' property.`);return n}function wc(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Rt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vu(e.inputs,t),outputs:vu(e.outputs),debugInfo:null}}function Ec(e){e.features?.forEach(t=>t(e))}function Du(e,t){if(!e)return null;let n=t?Dc:up;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(cp)}function fp(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function hp(e){return{\u0275providers:e}}function pp(...e){return{\u0275providers:Cc(!0,e),\u0275fromNgModule:!0}}function Cc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Es(t,s=>{let a=s;gi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&bc(o,i),n}function bc(e,t){for(let n=0;n{t(i,r)})}}function gi(e,t,n,r){if(e=W(e),!e)return!1;let o=null,i=fu(e),s=!i&&ot(e);if(!i&&!s){let u=e.ngModule;if(i=fu(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)gi(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Es(i.imports,l=>{gi(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&bc(c,t)}if(!a){let c=rt(o)||(()=>new o);t({provide:o,useFactory:c,deps:q},o),t({provide:fc,useValue:o,multi:!0},o),t({provide:Nr,useValue:()=>J(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;bs(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function bs(e,t){for(let n of e)sc(n)&&(n=n.\u0275providers),Array.isArray(n)?bs(n,t):t(n)}var gp=A({provide:String,useValue:A});function _c(e){return e!==null&&typeof e=="object"&&gp in e}function mp(e){return!!(e&&e.useExisting)}function yp(e){return!!(e&&e.useFactory)}function Pt(e){return typeof e=="function"}function vp(e){return!!e.useClass}var Mc=new N(""),Ir={},Dp={},Jo;function _s(){return Jo===void 0&&(Jo=new Ar),Jo}var $e=class{},pn=class extends $e{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yi(t,s=>this.processProvider(s)),this.records.set(dc,St(void 0,this)),o.has("environment")&&this.records.set($e,St(void 0,this));let i=this.records.get(Mc);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(fc,q,M.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Le(this),r=Q(void 0),o;try{return t()}finally{Le(n),Q(r)}}get(t,n=dn,r=M.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(pu))return t[pu](this);r=ro(r);let o,i=Le(this),s=Q(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=bp(t)&&to(t);c&&this.injectableDefInScope(c)?u=St(mi(t),Ir):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?_s():this.parent;return n=r&M.Optional&&n===dn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Sr]=a[Sr]||[]).unshift(Z(t)),i)throw a;return Bh(a,t,"R3InjectorError",this.source)}else throw a}finally{Q(s),Le(i)}}resolveInjectorInitializers(){let t=b(null),n=Le(this),r=Q(void 0),o;try{let i=this.get(Nr,q,M.Self);for(let s of i)s()}finally{Le(n),Q(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Z(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(t){t=W(t);let n=Pt(t)?t:W(t&&t.provide),r=wp(t);if(!Pt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=St(void 0,Ir,!0),o.factory=()=>hi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=b(null);try{return n.value===Ir&&(n.value=Dp,n.value=n.factory()),typeof n.value=="object"&&n.value&&Cp(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=W(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function mi(e){let t=to(e),n=t!==null?t.factory:rt(e);if(n!==null)return n;if(e instanceof N)throw new S(204,!1);if(e instanceof Function)return Ip(e);throw new S(204,!1)}function Ip(e){if(e.length>0)throw new S(204,!1);let n=_h(e);return n!==null?()=>n.factory(e):()=>new e}function wp(e){if(_c(e))return St(void 0,e.useValue);{let t=xc(e);return St(t,Ir)}}function xc(e,t,n){let r;if(Pt(e)){let o=W(e);return rt(o)||mi(o)}else if(_c(e))r=()=>W(e.useValue);else if(yp(e))r=()=>e.useFactory(...hi(e.deps||[]));else if(mp(e))r=()=>J(W(e.useExisting));else{let o=W(e&&(e.useClass||e.provide));if(Ep(e))r=()=>new o(...hi(e.deps));else return rt(o)||mi(o)}return r}function St(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ep(e){return!!e.deps}function Cp(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function bp(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function yi(e,t){for(let n of e)Array.isArray(n)?yi(n,t):n&&sc(n)?yi(n.\u0275providers,t):t(n)}function WM(e,t){e instanceof pn&&e.assertNotDestroyed();let n,r=Le(e),o=Q(void 0);try{return t()}finally{Le(r),Q(o)}}function Sc(){return ac()!==void 0||Lh()!=null}function Ms(e){if(!Sc())throw new S(-203,!1)}function _p(e){return typeof e=="function"}var Ee=0,w=1,y=2,z=3,ge=4,te=5,kt=6,Or=7,$=8,Lt=9,Ie=10,R=11,gn=12,Iu=13,Wt=14,X=15,it=16,Tt=17,Te=18,oo=19,Tc=20,je=21,wr=22,ue=23,H=25,xs=1;var st=7,Fr=8,jt=9,U=10,Rr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Rr||{});function Ve(e){return Array.isArray(e)&&typeof e[xs]=="object"}function Fe(e){return Array.isArray(e)&&e[xs]===!0}function Ss(e){return(e.flags&4)!==0}function io(e){return e.componentOffset>-1}function so(e){return(e.flags&1)===1}function Ne(e){return!!e.template}function vi(e){return(e[y]&512)!==0}var Di=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Nc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Ts(){return Ac}function Ac(e){return e.type.prototype.ngOnChanges&&(e.setInput=xp),Mp}Ts.ngInherit=!0;function Mp(){let e=Fc(this),t=e?.current;if(t){let n=e.previous;if(n===Rt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function xp(e,t,n,r,o){let i=this.declaredInputs[r],s=Fc(e)||Sp(e,{previous:Rt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Di(c&&c.currentValue,n,u===Rt),Nc(e,t,o,n)}var Oc="__ngSimpleChanges__";function Fc(e){return e[Oc]||null}function Sp(e,t){return e[Oc]=t}var wu=null;var ve=function(e,t,n){wu?.(e,t,n)},Rc="svg",Tp="math";function we(e){for(;Array.isArray(e);)e=e[Ee];return e}function Np(e){for(;Array.isArray(e);){if(typeof e[xs]=="object")return e;e=e[Ee]}return null}function Pc(e,t){return we(t[e])}function ce(e,t){return we(t[e.index])}function Ns(e,t){return e.data[t]}function kc(e,t){return e[t]}function Ge(e,t){let n=t[e];return Ve(n)?n:n[Ee]}function Ap(e){return(e[y]&4)===4}function As(e){return(e[y]&128)===128}function Op(e){return Fe(e[z])}function He(e,t){return t==null?null:e[t]}function Lc(e){e[Tt]=0}function jc(e){e[y]&1024||(e[y]|=1024,As(e)&&uo(e))}function Fp(e,t){for(;e>0;)t=t[Wt],e--;return t}function ao(e){return!!(e[y]&9216||e[ue]?.dirty)}function Ii(e){e[Ie].changeDetectionScheduler?.notify(8),e[y]&64&&(e[y]|=1024),ao(e)&&uo(e)}function uo(e){e[Ie].changeDetectionScheduler?.notify(0);let t=at(e);for(;t!==null&&!(t[y]&8192||(t[y]|=8192,!As(t)));)t=at(t)}function Vc(e,t){if((e[y]&256)===256)throw new S(911,!1);e[je]===null&&(e[je]=[]),e[je].push(t)}function Rp(e,t){if(e[je]===null)return;let n=e[je].indexOf(t);n!==-1&&e[je].splice(n,1)}function at(e){let t=e[z];return Fe(t)?t[z]:t}var E={lFrame:Zc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Bc=!1;function Pp(){return E.lFrame.elementDepthCount}function kp(){E.lFrame.elementDepthCount++}function Lp(){E.lFrame.elementDepthCount--}function $c(){return E.bindingsEnabled}function Hc(){return E.skipHydrationRootTNode!==null}function jp(e){return E.skipHydrationRootTNode===e}function Vp(){E.skipHydrationRootTNode=null}function m(){return E.lFrame.lView}function F(){return E.lFrame.tView}function qM(e){return E.lFrame.contextLView=e,e[$]}function ZM(e){return E.lFrame.contextLView=null,e}function B(){let e=Uc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Uc(){return E.lFrame.currentTNode}function Bp(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pt(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function Os(){return E.lFrame.isParent}function Fs(){E.lFrame.isParent=!1}function $p(){return E.lFrame.contextLView}function zc(){return Bc}function Eu(e){Bc=e}function qt(){let e=E.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Hp(e){return E.lFrame.bindingIndex=e}function We(){return E.lFrame.bindingIndex++}function Gc(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Up(){return E.lFrame.inI18n}function zp(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,wi(t)}function Gp(){return E.lFrame.currentDirectiveIndex}function wi(e){E.lFrame.currentDirectiveIndex=e}function Rs(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ps(){return E.lFrame.currentQueryIndex}function co(e){E.lFrame.currentQueryIndex=e}function Wp(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[te]:null}function Wc(e,t,n){if(n&M.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&M.Host);)if(o=Wp(i),o===null||(i=i[Wt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=qc();return r.currentTNode=t,r.lView=e,!0}function ks(e){let t=qc(),n=e[w];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function qc(){let e=E.lFrame,t=e===null?null:e.child;return t===null?Zc(e):t}function Zc(e){let 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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Yc(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Qc=Yc;function Ls(){let e=Yc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function qp(e){return(E.lFrame.contextLView=Fp(e,E.lFrame.contextLView))[$]}function qe(){return E.lFrame.selectedIndex}function ut(e){E.lFrame.selectedIndex=e}function Zt(){let e=E.lFrame;return Ns(e.tView,e.selectedIndex)}function YM(){E.lFrame.currentNamespace=Rc}function Zp(){return E.lFrame.currentNamespace}var Kc=!0;function lo(){return Kc}function fo(e){Kc=e}function Yp(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Ac(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ho(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Tt]+=65536),(a>14>16&&(e[y]&3)===t&&(e[y]+=16384,Cu(a,i)):Cu(a,i)}var Ft=-1,ct=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Kp(e){return e instanceof ct}function Jp(e){return(e.flags&8)!==0}function Xp(e){return(e.flags&16)!==0}var ei={},Ei=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ro(r);let o=this.injector.get(t,ei,r);return o!==ei||n===ei?o:this.parentInjector.get(t,n,r)}};function Xc(e){return e!==Ft}function Pr(e){return e&32767}function eg(e){return e>>16}function kr(e,t){let n=eg(e),r=t;for(;n>0;)r=r[Wt],n--;return r}var Ci=!0;function Lr(e){let t=Ci;return Ci=e,t}var tg=256,el=tg-1,tl=5,ng=0,De={};function rg(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ln)&&(r=n[ln]),r==null&&(r=n[ln]=ng++);let o=r&el,i=1<>tl)]|=i}function jr(e,t){let n=nl(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,ti(r.data,e),ti(t,null),ti(r.blueprint,null));let o=js(e,t),i=e.injectorIndex;if(Xc(o)){let s=Pr(o),a=kr(o,t),u=a[w].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function ti(e,t){e.push(0,0,0,0,0,0,0,0,t)}function nl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function js(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=al(o),r===null)return Ft;if(n++,o=o[Wt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ft}function bi(e,t,n){rg(e,t,n)}function og(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:c;for(let f=d;f=u&&p.type===n)return f}if(o){let f=s[u];if(f&&Ne(f)&&f.type===n)return u}return null}function lt(e,t,n,r){let o=e[n],i=t.data;if(Kp(o)){let s=o;s.resolving&&Oh(Ah(i[n]));let a=Lr(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?Q(s.injectImpl):null,l=Wc(e,r,M.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Yp(n,i[n],t)}finally{c!==null&&Q(c),Lr(a),s.resolving=!1,Qc()}}return o}function sg(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ln)?e[ln]:void 0;return typeof t=="number"?t>=0?t&el:ag:t}function bu(e,t,n){let r=1<>tl)]&r)}function _u(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var nt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return il(this._tNode,this._lView,t,ro(r),n)}};function ag(){return new nt(B(),m())}function QM(e){return In(()=>{let t=e.prototype.constructor,n=t[xr]||_i(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[xr]||_i(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function _i(e){return nc(e)?()=>{let t=_i(W(e));return t&&t()}:rt(e)}function ug(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[y]&2048&&!(s[y]&512);){let a=sl(i,s,n,r|M.Self,De);if(a!==De)return a;let u=i.parent;if(!u){let c=s[Tc];if(c){let l=c.get(n,De,r);if(l!==De)return l}u=al(s),s=s[Wt]}i=u}return o}function al(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[te]:null}function cg(e){return og(B(),e)}function Mu(e,t=null,n=null,r){let o=ul(e,t,n,r);return o.resolveInjectorInitializers(),o}function ul(e,t=null,n=null,r,o=new Set){let i=[n||q,pp(e)];return r=r||(typeof e=="object"?void 0:Z(e)),new pn(i,t||_s(),r||null,o)}var Ae=class e{static{this.THROW_IF_NOT_FOUND=dn}static{this.NULL=new Ar}static create(t,n){if(Array.isArray(t))return Mu({name:""},n,t,"");{let r=t.name??"";return Mu({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=k({token:e,providedIn:"any",factory:()=>J(dc)})}static{this.__NG_ELEMENT_ID__=-1}};var lg=new N("");lg.__NG_ELEMENT_ID__=e=>{let t=B();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new S(204,!1)};var dg="ngOriginalError";function ni(e){return e[dg]}var cl=!0,po=(()=>{class e{static{this.__NG_ELEMENT_ID__=fg}static{this.__NG_ENV_ID__=n=>n}}return e})(),Mi=class extends po{constructor(t){super(),this._lView=t}onDestroy(t){return Vc(this._lView,t),()=>Rp(this._lView,t)}};function fg(){return new Mi(m())}var bn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new nn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}}return e})();var xi=class extends ie{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Sc()&&(this.destroyRef=C(po,{optional:!0})??void 0,this.pendingTasks=C(bn,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof L&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},pe=xi;function Vr(...e){}function ll(e){let t,n;function r(){e=Vr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function xu(e){return queueMicrotask(()=>e()),()=>{e=Vr}}var Vs="isAngularZone",Br=Vs+"_ID",hg=0,K=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=cl}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,mg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Vs)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,pg,Vr,Vr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},pg={};function Bs(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ll(()=>{e.callbackScheduled=!1,Si(e),e.isCheckStableRunning=!0,Bs(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Si(e)}function mg(e){let t=()=>{gg(e)},n=hg++;e._inner=e._inner.fork({name:"angular",properties:{[Vs]:!0,[Br]:n,[Br+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(yg(u))return r.invokeTask(i,s,a,u);try{return Su(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Tu(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return Su(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!vg(u)&&t(),Tu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Si(e),Bs(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Si(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Su(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tu(e){e._nesting--,Bs(e)}var Ti=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function yg(e){return dl(e,"__ignore_ng_zone__")}function vg(e){return dl(e,"__scheduler_tick__")}function dl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var dt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ni(t);for(;n&&ni(n);)n=ni(n);return n||null}},Dg=new N("",{providedIn:"root",factory:()=>{let e=C(K),t=C(dt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ig(){return Yt(B(),m())}function Yt(e,t){return new Ze(ce(e,t))}var Ze=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Ig}}return e})();function fl(e){return e instanceof Ze?e.nativeElement:e}function wg(){return this._results[Symbol.iterator]()}var Ni=class e{get changes(){return this._changes??=new pe}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=wg)}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,n){return this._results.reduce(t,n)}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,n){this.dirty=!1;let r=Gh(t);(this._changesDetected=!zh(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function hl(e){return(e.flags&128)===128}var pl=new Map,Eg=0;function Cg(){return Eg++}function bg(e){pl.set(e[oo],e)}function Ai(e){pl.delete(e[oo])}var Nu="__ngContext__";function Ue(e,t){Ve(t)?(e[Nu]=t[oo],bg(t)):e[Nu]=t}function gl(e){return yl(e[gn])}function ml(e){return yl(e[ge])}function yl(e){for(;e!==null&&!Fe(e);)e=e[ge];return e}var Oi;function KM(e){Oi=e}function _g(){if(Oi!==void 0)return Oi;if(typeof document<"u")return document;throw new S(210,!1)}var JM=new N("",{providedIn:"root",factory:()=>Mg}),Mg="ng",xg=new N(""),vl=new N("",{providedIn:"platform",factory:()=>"unknown"});var XM=new N(""),ex=new N("",{providedIn:"root",factory:()=>_g().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Sg="h",Tg="b";var Ng=()=>null;function $s(e,t,n=!1){return Ng(e,t,n)}var Dl=!1,Ag=new N("",{providedIn:"root",factory:()=>Dl});var gr;function Og(){if(gr===void 0&&(gr=null,lu.trustedTypes))try{gr=lu.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return gr}function go(e){return Og()?.createHTML(e)||e}var Oe=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ju})`}},Fi=class extends Oe{getTypeName(){return"HTML"}},Ri=class extends Oe{getTypeName(){return"Style"}},Pi=class extends Oe{getTypeName(){return"Script"}},ki=class extends Oe{getTypeName(){return"URL"}},Li=class extends Oe{getTypeName(){return"ResourceURL"}};function _n(e){return e instanceof Oe?e.changingThisBreaksApplicationSecurity:e}function Fg(e,t){let n=Rg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ju})`)}return n===t}function Rg(e){return e instanceof Oe&&e.getTypeName()||null}function tx(e){return new Fi(e)}function nx(e){return new Ri(e)}function rx(e){return new Pi(e)}function ox(e){return new ki(e)}function ix(e){return new Li(e)}function Pg(e){let t=new Vi(e);return kg()?new ji(t):t}var ji=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(go(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Vi=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=go(t),n}};function kg(){try{return!!new window.DOMParser().parseFromString(go(""),"text/html")}catch{return!1}}var Lg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Il(e){return e=String(e),e.match(Lg)?e:"unsafe:"+e}function Re(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Mn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var wl=Re("area,br,col,hr,img,wbr"),El=Re("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Cl=Re("rp,rt"),jg=Mn(Cl,El),Vg=Mn(El,Re("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")),Bg=Mn(Cl,Re("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")),Au=Mn(wl,Vg,Bg,jg),bl=Re("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$g=Re("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"),Hg=Re("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"),Ug=Mn(bl,$g,Hg),zg=Re("script,style,template"),Bi=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=qg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Wg(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Ou(t).toLowerCase();if(!Au.hasOwnProperty(n))return this.sanitizedSomething=!0,!zg.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Ou(t).toLowerCase();Au.hasOwnProperty(n)&&!wl.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Fu(t))}};function Gg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Wg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw _l(t);return t}function qg(e){let t=e.firstChild;if(t&&Gg(e,t))throw _l(t);return t}function Ou(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function _l(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Zg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yg=/([^\#-~ |!])/g;function Fu(e){return e.replace(/&/g,"&").replace(Zg,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Yg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var mr;function sx(e,t){let n=null;try{mr=mr||Pg(e);let r=t?String(t):"";n=mr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=mr.getInertBodyElement(r)}while(r!==i);let a=new Bi().sanitizeChildren(Ru(n)||n);return go(a)}finally{if(n){let r=Ru(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ru(e){return"content"in e&&Qg(e)?e.content:null}function Qg(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Ml=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ml||{});function ax(e){let t=Kg();return t?t.sanitize(Ml.URL,e)||"":Fg(e,"URL")?_n(e):Il(no(e))}function Kg(){let e=m();return e&&e[Ie].sanitizer}var Jg=/^>|^->||--!>|)/g,em="\u200B$1\u200B";function tm(e){return e.replace(Jg,t=>t.replace(Xg,em))}function ux(e){return e.ownerDocument.defaultView}function xl(e){return e instanceof Function?e():e}function Sl(e){return(e??C(Ae)).get(vl)==="browser"}var mn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(mn||{}),nm;function Hs(e,t){return nm(e,t)}function Nt(e,t,n,r,o){if(r!=null){let i,s=!1;Fe(r)?i=r:Ve(r)&&(s=!0,r=r[Ee]);let a=we(r);e===0&&n!==null?o==null?Fl(t,n,a):$r(t,n,a,o||null,!0):e===1&&n!==null?$r(t,n,a,o||null,!0):e===2?mm(t,a,s):e===3&&t.destroyNode(a),i!=null&&vm(t,e,i,n,o)}}function rm(e,t){return e.createText(t)}function om(e,t,n){e.setValue(t,n)}function im(e,t){return e.createComment(tm(t))}function Tl(e,t,n){return e.createElement(t,n)}function sm(e,t){Nl(e,t),t[Ee]=null,t[te]=null}function am(e,t,n,r,o,i){r[Ee]=o,r[te]=t,vo(e,r,n,1,o,i)}function Nl(e,t){t[Ie].changeDetectionScheduler?.notify(9),vo(e,t,t[R],2,null,null)}function um(e){let t=e[gn];if(!t)return ri(e[w],e);for(;t;){let n=null;if(Ve(t))n=t[gn];else{let r=t[U];r&&(n=r)}if(!n){for(;t&&!t[ge]&&t!==e;)Ve(t)&&ri(t[w],t),t=t[z];t===null&&(t=e),Ve(t)&&ri(t[w],t),n=t&&t[ge]}t=n}}function cm(e,t,n,r){let o=U+r,i=n.length;r>0&&(n[o-1][ge]=t),r0&&(e[n-1][ge]=r[ge]);let i=Tr(e,U+t);sm(r[w],r);let s=i[Te];s!==null&&s.detachView(i[w]),r[z]=null,r[ge]=null,r[y]&=-129}return r}function mo(e,t){if(!(t[y]&256)){let n=t[R];n.destroyNode&&vo(e,t,n,3,null,null),um(t)}}function ri(e,t){if(t[y]&256)return;let n=b(null);try{t[y]&=-129,t[y]|=256,t[ue]&&kn(t[ue]),dm(e,t),lm(e,t),t[w].type===1&&t[R].destroy();let r=t[it];if(r!==null&&Fe(t[z])){r!==t[z]&&Us(r,t);let o=t[Te];o!==null&&o.detachView(e)}Ai(t)}finally{b(n)}}function lm(e,t){let n=e.cleanup,r=t[Or];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Or]=null);let o=t[je];if(o!==null){t[je]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===fn.None||i===fn.Emulated)return null}return ce(r,n)}}function $r(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Fl(e,t,n){e.appendChild(t,n)}function Pu(e,t,n,r,o){r!==null?$r(e,t,n,r,o):Fl(e,t,n)}function Rl(e,t){return e.parentNode(t)}function hm(e,t){return e.nextSibling(t)}function Pl(e,t,n){return gm(e,t,n)}function pm(e,t,n){return e.type&40?ce(e,n):null}var gm=pm,ku;function yo(e,t,n,r){let o=Ol(e,r,t),i=t[R],s=r.parent||t[te],a=Pl(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uH&&Bl(e,t,H,!1),ve(s?2:0,o),n(r,o)}finally{ut(i),ve(s?3:1,o)}}function Gs(e,t,n){if(Ss(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function xm(e,t,n,r){let o=Yl(t);o.push(n),e.firstCreatePass&&Ql(e).push(r,o.length-1)}function Sm(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Hc()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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}}function Lu(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Be.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?ju(r,n,c,a,u):ju(r,n,c,a)}return r}function ju(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Tm(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Rm(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;io(n)&&$m(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||jr(n,t),Ue(r,t);let s=n.initialInputs;for(let a=o;a{uo(e.lView)},consumerOnSignalRead(){this.lView[ue]=this}});function ty(e){let t=e[ue]??Object.create(ny);return t.lView=e,t}var ny=ye(me({},vt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=at(e.lView);for(;t&&!nd(t[w]);)t=at(t);t&&jc(t)},consumerOnSignalRead(){this.lView[ue]=this}});function nd(e){return e.type!==2}var ry=100;function rd(e,t=!0,n=0){let r=e[Ie],o=r.rendererFactory,i=!1;i||o.begin?.();try{oy(e,n)}catch(s){throw t&&Jl(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function oy(e,t){let n=zc();try{Eu(!0),zi(e,t);let r=0;for(;ao(e);){if(r===ry)throw new S(103,!1);r++,zi(e,1)}}finally{Eu(n)}}function iy(e,t,n,r){let o=t[y];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Ie].inlineEffectRunner?.flush(),ks(t);let a=!0,u=null,c=null;i||(nd(e)?(c=Km(t),u=en(c)):ya()===null?(a=!1,c=ty(t),u=en(c)):t[ue]&&(kn(t[ue]),t[ue]=null));try{Lc(t),Hp(e.bindingStartIndex),n!==null&&Ul(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Er(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Cr(t,f,0,null),Xo(t,0)}if(s||sy(t),od(t,0),e.contentQueries!==null&&Zl(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Er(t,f)}else{let f=e.contentHooks;f!==null&&Cr(t,f,1),Xo(t,1)}wm(e,t);let d=e.components;d!==null&&sd(t,d,0);let h=e.viewQuery;if(h!==null&&Ui(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Er(t,f)}else{let f=e.viewHooks;f!==null&&Cr(t,f,2),Xo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[wr]){for(let f of t[wr])f();t[wr]=null}i||(t[y]&=-73)}catch(l){throw i||uo(t),l}finally{c!==null&&(Rn(c,u),a&&Xm(c)),Ls()}}function od(e,t){for(let n=gl(e);n!==null;n=ml(n))for(let r=U;r-1&&(yn(t,r),Tr(n,r))}this._attachedToViewContainer=!1}mo(this._lView[w],this._lView)}onDestroy(t){Vc(this._lView,t)}markForCheck(){Js(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[y]&=-129}reattach(){Ii(this._lView),this._lView[y]|=128}detectChanges(){this._lView[y]|=1024,rd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=vi(this._lView),n=this._lView[it];n!==null&&!t&&Us(n,this._lView),Nl(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=vi(this._lView),r=this._lView[it];r!==null&&!n&&Al(r,this._lView),Ii(this._lView)}},Bt=(()=>{class e{static{this.__NG_ELEMENT_ID__=ly}}return e})(),uy=Bt,cy=class extends uy{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Sn(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ft(o)}};function ly(){return wo(B(),m())}function wo(e,t){return e.type&4?new cy(t,e,Yt(e,t)):null}var fx=new RegExp(`^(\\d+)*(${Tg}|${Sg})*(.*)`);var dy=()=>null;function $t(e,t){return dy(e,t)}var Ht=class{},Xs=new N("",{providedIn:"root",factory:()=>!1});var ad=new N(""),ud=new N(""),Gi=class{},Ur=class{};function fy(e){let t=Error(`No component factory found for ${Z(e)}.`);return t[hy]=e,t}var hy="ngComponent";var Wi=class{resolveComponentFactory(t){throw fy(t)}},Ut=class{static{this.NULL=new Wi}},zr=class{},Eo=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>py()}}return e})();function py(){let e=m(),t=B(),n=Ge(t.index,e);return(Ve(n)?n:e)[R]}var gy=(()=>{class e{static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>null})}}return e})();function Gr(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&jl(e,n,i.join(" "))}}function Ey(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=by}}return e})();function by(){let e=B();return ld(e,m())}var _y=Kt,cd=class extends _y{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Yt(this._hostTNode,this._hostLView)}get injector(){return new nt(this._hostTNode,this._hostLView)}get parentInjector(){let t=js(this._hostTNode,this._hostLView);if(Xc(t)){let n=kr(t,this._hostLView),r=Pr(t),o=n[w].data[r+8];return new nt(o,n)}else return new nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Bu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-U}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$t(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Vt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!_p(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let u=s?t:new vn(ot(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let v=(s?c:this.parentInjector).get($e,null);v&&(i=v)}let l=ot(u.componentType??{}),d=$t(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,o,h,i);return this.insertImpl(f.hostView,a,Vt(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Op(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[z],c=new cd(u,u[te],u[z]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Tn(s,o,i,r),t.attachToViewContainerRef(),lc(oi(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Bu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=yn(this._lContainer,n);r&&(Tr(oi(this._lContainer),n),mo(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=yn(this._lContainer,n);return r&&Tr(oi(this._lContainer),n)!=null?new ft(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Bu(e){return e[Fr]}function oi(e){return e[Fr]||(e[Fr]=[])}function ld(e,t){let n,r=t[e.index];return Fe(r)?n=r:(n=ql(r,t,null,e),t[e.index]=n,Io(t,n)),xy(n,t,e,r),new cd(n,e,t)}function My(e,t){let n=e[R],r=n.createComment(""),o=ce(t,e),i=Rl(n,o);return $r(n,i,r,hm(n,o),!1),r}var xy=Ny,Sy=()=>!1;function Ty(e,t,n){return Sy(e,t,n)}function Ny(e,t,n,r){if(e[st])return;let o;n.type&8?o=we(r):o=My(t,n),e[st]=o}var Zi=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Yi=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=U;dt.trim())}function pd(e,t,n){e.queries===null&&(e.queries=new Qi),e.queries.track(new Ki(t,n))}function Ly(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function ta(e,t){return e.queries.getByIndex(t)}function gd(e,t){let n=e[w],r=ta(n,t);return r.crossesNgTemplate?Ji(n,e,t,[]):dd(n,e,r,t)}var $u=new Set;function Ce(e){$u.has(e)||($u.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function jy(e){return typeof e=="function"&&e[oe]!==void 0}function Vy(e,t){Ce("NgSignals");let n=Sa(e),r=n[oe];return t?.equal&&(r.equal=t.equal),n.set=o=>Ao(r,o),n.update=o=>Ta(r,o),n.asReadonly=By.bind(n),n}function By(){let e=this[oe];if(e.readonlyFn===void 0){let t=()=>this();t[oe]=e,e.readonlyFn=t}return e.readonlyFn}function md(e){return jy(e)&&typeof e.set=="function"}function yd(e,t){let n,r=No(()=>{n._dirtyCounter();let o=zy(n,e);if(t&&o===void 0)throw new S(-951,!1);return o});return n=r[oe],n._dirtyCounter=Vy(0),n._flatValue=void 0,r}function $y(){return yd(!0,!1)}function Hy(){return yd(!0,!0)}function Uy(e,t){let n=e[oe];n._lView=m(),n._queryIndex=t,n._queryList=ea(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function zy(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[y]&4)return t?void 0:q;let o=ea(n,r),i=gd(n,r);return o.reset(i,fl),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Hu(e,t){return $y()}function Gy(e,t){return Hy()}var px=(Hu.required=Gy,Hu);function Wy(e){return Object.getPrototypeOf(e.prototype).constructor}function qy(e){let t=Wy(e.type),n=!0,r=[e];for(;t;){let o;if(Ne(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=yr(e.inputs),s.inputTransforms=yr(e.inputTransforms),s.declaredInputs=yr(e.declaredInputs),s.outputs=yr(e.outputs);let a=o.hostBindings;a&&Jy(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Qy(e,u),c&&Ky(e,c),Zy(e,o),Ch(e.outputs,o.outputs),Ne(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=hn(o.hostAttrs,n=hn(n,o.hostAttrs))}}function yr(e){return e===Rt?{}:e===q?[]:e}function Qy(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Ky(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Jy(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Xy(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var ze=class{},Xi=class{};var es=class extends ze{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Wr(this);let i=Ic(t);this._bootstrapComponents=xl(i.bootstrap),this._r3Injector=ul(t,n,[{provide:ze,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver},...r],Z(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ts=class extends Xi{constructor(t){super(),this.moduleType=t}create(t){return new es(this.moduleType,t,[])}};var Zr=class extends ze{constructor(t){super(),this.componentFactoryResolver=new Wr(this),this.instance=null;let n=new pn([...t.providers,{provide:ze,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver}],t.parent||_s(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function ev(e,t,n=null){return new Zr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function vd(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Nn(e,t,n){return e[t]=n}function tv(e,t){return e[t]}function ee(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Yr(e,t,n,r){let o=ee(e,t,n);return ee(e,t+1,r)||o}function nv(e,t,n,r,o){let i=Yr(e,t,n,r);return ee(e,t+2,o)||i}function rv(e,t,n,r,o,i){let s=Yr(e,t,n,r);return Yr(e,t+2,o,i)||s}function ov(e){return(e.flags&32)===32}function iv(e,t,n,r,o,i,s,a,u){let c=t.consts,l=Qt(t,e,4,s||null,a||null);Ys(t,n,l,He(c,u)),ho(t,l);let d=l.tView=Zs(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Qr(e,t,n,r,o,i,s,a,u,c){let l=n+H,d=t.firstCreatePass?iv(l,t,e,r,o,i,s,a,u):t.data[l];pt(d,!1);let h=av(t,e,d,n);lo()&&yo(t,e,h,d),Ue(h,e);let f=ql(h,e,h,d);return e[l]=f,Io(e,f),Ty(f,d,e),so(d)&&Ws(t,e,d),u!=null&&qs(e,d,c),d}function sv(e,t,n,r,o,i,s,a){let u=m(),c=F(),l=He(c.consts,i);return Qr(u,c,e,t,n,r,o,l,s,a),sv}var av=uv;function uv(e,t,n,r){return fo(!0),t[R].createComment("")}var At=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(At||{}),Dd=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}}return e})(),ns=class e{constructor(){this.ngZone=C(K),this.scheduler=C(Ht),this.errorHandler=C(dt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[At.EarlyRead,At.Write,At.MixedReadWrite,At.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&this.sequences.delete(t);for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}},rs=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function cv(e,t){!t?.injector&&Ms(cv);let n=t?.injector??C(Ae);return Sl(n)?(Ce("NgAfterRender"),Id(e,n,t,!1)):wd}function lv(e,t){!t?.injector&&Ms(lv);let n=t?.injector??C(Ae);return Sl(n)?(Ce("NgAfterNextRender"),Id(e,n,t,!0)):wd}function dv(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Id(e,t,n,r){let o=t.get(Dd);o.impl??=t.get(ns);let i=n?.phase??At.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(po):null,a=new rs(o.impl,dv(e,i),r,s);return o.impl.register(a),a}var wd={destroy(){}};function fv(e,t,n,r){let o=m(),i=We();if(ee(o,i,t)){let s=F(),a=Zt();Hm(a,o,e,t,n,r)}return fv}function na(e,t,n,r){return ee(e,We(),n)?t+no(n)+r:le}function vr(e,t){return e<<17|t<<2}function ht(e){return e>>17&32767}function hv(e){return(e&2)==2}function pv(e,t){return e&131071|t<<17}function os(e){return e|2}function zt(e){return(e&131068)>>2}function ii(e,t){return e&-131069|t<<2}function gv(e){return(e&1)===1}function is(e){return e|1}function mv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ht(s),u=zt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||En(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let h=ht(e[a+1]);e[r+1]=vr(h,a),h!==0&&(e[h+1]=ii(e[h+1],r)),e[a+1]=pv(e[a+1],r)}else e[r+1]=vr(a,0),a!==0&&(e[a+1]=ii(e[a+1],r)),a=r;else e[r+1]=vr(u,0),a===0?a=r:e[u+1]=ii(e[u+1],r),u=r;c&&(e[r+1]=os(e[r+1])),Uu(e,l,r,!0),Uu(e,l,r,!1),yv(t,l,e,r,i),s=vr(a,u),i?t.classBindings=s:t.styleBindings=s}function yv(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&En(i,t)>=0&&(n[r+1]=is(n[r+1]))}function Uu(e,t,n,r){let o=e[n+1],i=t===null,s=r?ht(o):zt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];vv(u,t)&&(a=!0,e[s+1]=r?is(c):os(c)),s=r?ht(c):zt(c)}a&&(e[n+1]=r?os(o):is(o))}function vv(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?En(e,t)>=0:!1}var V={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ed(e){return e.substring(V.key,V.keyEnd)}function Dv(e){return e.substring(V.value,V.valueEnd)}function Iv(e){return _d(e),Cd(e,Gt(e,0,V.textEnd))}function Cd(e,t){let n=V.textEnd;return n===t?-1:(t=V.keyEnd=Ev(e,V.key=t,n),Gt(e,t,n))}function wv(e){return _d(e),bd(e,Gt(e,0,V.textEnd))}function bd(e,t){let n=V.textEnd,r=V.key=Gt(e,t,n);return n===r?-1:(r=V.keyEnd=Cv(e,r,n),r=zu(e,r,n,58),r=V.value=Gt(e,r,n),r=V.valueEnd=bv(e,r,n),zu(e,r,n,59))}function _d(e){V.key=0,V.keyEnd=0,V.value=0,V.valueEnd=0,V.textEnd=e.length}function Gt(e,t,n){for(;t32;)t++;return t}function Cv(e,t,n){let r;for(;t=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function zu(e,t,n,r){return t=Gt(e,t,n),t32&&(a=s),i=o,o=r,r=u&-33}return a}function Gu(e,t,n,r){let o=-1,i=n;for(;i=0;n=bd(t,n))Ad(e,Ed(t),Dv(t))}function mx(e){ra(Fv,xd,e,!0)}function xd(e,t){for(let n=Iv(t);n>=0;n=Cd(t,n))wn(e,Ed(t),!0)}function Sd(e,t,n,r){let o=m(),i=F(),s=Gc(2);if(i.firstUpdatePass&&Nd(i,e,s,r),t!==le&&ee(o,s,t)){let a=i.data[qe()];Od(i,a,o,o[R],e,o[s+1]=Pv(t,n),r,s)}}function ra(e,t,n,r){let o=F(),i=Gc(2);o.firstUpdatePass&&Nd(o,null,i,r);let s=m();if(n!==le&&ee(s,i,n)){let a=o.data[qe()];if(Fd(a,r)&&!Td(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=li(u,n||"")),ss(o,a,s,n,r)}else Rv(o,a,s,s[R],s[i+1],s[i+1]=Ov(e,t,n),r,i)}}function Td(e,t){return t>=e.expandoStartIndex}function Nd(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[qe()],s=Td(e,n);Fd(i,r)&&t===null&&!s&&(t=!1),t=Sv(o,i,t,r),mv(o,i,t,n,s,r)}}function Sv(e,t,n,r){let o=Rs(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=si(null,e,t,n,r),n=Dn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=si(o,e,t,n,r),i===null){let u=Tv(e,t,r);u!==void 0&&Array.isArray(u)&&(u=si(null,e,t,u[1],r),u=Dn(u,t.attrs,r),Nv(e,t,r,u))}else i=Av(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Tv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(zt(r)!==0)return e[ht(r)]}function Nv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ht(o)]=r}function Av(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[o+1];h===le&&(h=d?q:void 0);let f=d?Ko(h,r):l===r?h:void 0;if(c&&!Kr(f)&&(f=Ko(u,r)),Kr(f)&&(a=f,s))return a;let p=e[o+1];o=s?ht(p):zt(p)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=Ko(u,r))}return a}function Kr(e){return e!==void 0}function Pv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Z(_n(e)))),e}function Fd(e,t){return(e.flags&(t?8:16))!==0}function yx(e,t,n){let r=m(),o=na(r,e,t,n);ra(wn,xd,o,!0)}function vx(){return m()[X][$]}var as=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ai(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function kv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=ai(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[u],p=ai(s,h,u,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,u--;continue}let v=n(i,c),O=n(s,h),_=n(i,l);if(Object.is(_,O)){let P=n(u,f);Object.is(P,v)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Jr,o??=Zu(e,i,s,n),us(e,r,i,_))e.updateValue(i,l),i++,s++;else if(o.has(_))r.set(v,e.detach(i)),s--;else{let P=e.create(i,t[i]);e.attach(i,P),i++,s++}}for(;i<=u;)qu(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,h=ai(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new Jr,o??=Zu(e,i,s,n);let f=n(i,d);if(us(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let p=n(i,l);r.set(p,e.detach(i)),s--}}}for(;!c.done;)qu(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function us(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function qu(e,t,n,r,o){if(us(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Zu(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Jr=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Dx(e,t){Ce("NgControlFlow");let n=m(),r=We(),o=n[r]!==le?n[r]:-1,i=o!==-1?Xr(n,H+o):void 0,s=0;if(ee(n,r,e)){let a=b(null);try{if(i!==void 0&&ed(i,s),e!==-1){let u=H+e,c=Xr(n,u),l=fs(n[w],u),d=$t(c,l.tView.ssrId),h=Sn(n,l,t,{dehydratedView:d});Tn(c,h,s,Vt(l,d))}}finally{b(a)}}else if(i!==void 0){let a=Xl(i,s);a!==void 0&&(a[$]=t)}}var cs=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-U}};function Ix(e){return e}function wx(e,t){return t}var ls=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Ex(e,t,n,r,o,i,s,a,u,c,l,d,h){Ce("NgControlFlow");let f=m(),p=F(),v=u!==void 0,O=m(),_=a?s.bind(O[X][$]):s,P=new ls(v,_);O[H+e]=P,Qr(f,p,e+1,t,n,r,o,He(p.consts,i)),v&&Qr(f,p,e+2,u,c,l,d,He(p.consts,h))}var ds=class extends as{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-U}at(t){return this.getLView(t)[$].$implicit}attach(t,n){let r=n[kt];this.needsIndexUpdate||=t!==this.length,Tn(this.lContainer,n,t,Vt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Lv(this.lContainer,t)}create(t,n){let r=$t(this.lContainer,this.templateTNode.tView.ssrId),o=Sn(this.hostLView,this.templateTNode,new cs(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){mo(t[w],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[$].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(fo(!0),Tl(r,o,Zp()));function Hv(e,t,n,r,o){let i=t.consts,s=He(i,r),a=Qt(t,e,8,"ng-container",s);s!==null&&Gr(a,s,!0);let u=He(i,o);return Ys(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function kd(e,t,n){let r=m(),o=F(),i=e+H,s=o.firstCreatePass?Hv(i,o,r,t,n):o.data[i];pt(s,!0);let a=zv(o,r,s,e);return r[i]=a,lo()&&yo(o,r,a,s),Ue(a,r),so(s)&&(Ws(o,r,s),Gs(o,s,r)),n!=null&&qs(r,s),kd}function Ld(){let e=B(),t=F();return Os()?Fs():(e=e.parent,pt(e,!1)),t.firstCreatePass&&(ho(t,e),Ss(e)&&t.queries.elementEnd(e)),Ld}function Uv(e,t,n){return kd(e,t,n),Ld(),Uv}var zv=(e,t,n,r)=>(fo(!0),im(t[R],""));function bx(){return m()}function Gv(e,t,n){let r=m(),o=We();if(ee(r,o,t)){let i=F(),s=Zt();xn(i,s,r,e,t,r[R],n,!0)}return Gv}function Wv(e,t,n){let r=m(),o=We();if(ee(r,o,t)){let i=F(),s=Zt(),a=Rs(i.data),u=Kl(a,s,r);xn(i,s,r,e,t,u,n,!0)}return Wv}var eo="en-US";var qv=eo;function Zv(e){typeof e=="string"&&(qv=e.toLowerCase().replace(/_/g,"-"))}var Yv=(e,t,n)=>{};function Qv(e,t,n,r){let o=m(),i=F(),s=B();return oa(i,o,o[R],s,e,t,r),Qv}function Kv(e,t){let n=B(),r=m(),o=F(),i=Rs(o.data),s=Kl(i,n,r);return oa(o,r,s,n,e,t),Kv}function Jv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function oa(e,t,n,r,o,i,s){let a=so(r),c=e.firstCreatePass&&Ql(e),l=t[$],d=Yl(t),h=!0;if(r.type&3||s){let v=ce(r,t),O=s?s(v):v,_=d.length,P=s?de=>s(we(de[r.index])):r.index,_e=null;if(!s&&a&&(_e=Jv(e,t,o,r.index)),_e!==null){let de=_e.__ngLastListenerFn__||_e;de.__ngNextListenerFn__=i,_e.__ngLastListenerFn__=i,h=!1}else{i=Qu(r,t,l,i),Yv(v,o,i);let de=n.listen(O,o,i);d.push(i,de),c&&c.push(o,P,_,_+1)}}else i=Qu(r,t,l,i);let f=r.outputs,p;if(h&&f!==null&&(p=f[o])){let v=p.length;if(v)for(let O=0;O-1?Ge(e.index,t):t;Js(s,5);let a=Yu(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=Yu(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function _x(e=1){return qp(e)}function Xv(e,t){let n=null,r=tp(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Rx(e){let t=$p();return kc(t,H+e)}function Px(e,t=""){let n=m(),r=F(),o=e+H,i=r.firstCreatePass?Qt(r,o,1,t,null):r.data[o],s=rD(r,n,i,t,e);n[o]=s,lo()&&yo(r,n,s,i),pt(i,!1)}var rD=(e,t,n,r,o)=>(fo(!0),rm(t[R],r));function oD(e){return Vd("",e,""),oD}function Vd(e,t,n){let r=m(),o=na(r,e,t,n);return o!==le&&Wm(r,qe(),o),Vd}function iD(e,t,n){md(t)&&(t=t());let r=m(),o=We();if(ee(r,o,t)){let i=F(),s=Zt();xn(i,s,r,e,t,r[R],n,!1)}return iD}function kx(e,t){let n=md(e);return n&&e.set(t),n}function sD(e,t){let n=m(),r=F(),o=B();return oa(r,n,n[R],o,e,t),sD}function aD(e,t,n){let r=F();if(r.firstCreatePass){let o=Ne(e);hs(n,r.data,r.blueprint,o,!0),hs(t,r.data,r.blueprint,o,!1)}}function hs(e,t,n,r,o){if(e=W(e),Array.isArray(e))for(let i=0;i>20;if(Pt(e)||!e.multi){let f=new ct(c,o,re),p=ci(u,t,o?l:l+h,d);p===-1?(bi(jr(a,s),i,u),ui(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=ci(u,t,l+h,d),p=ci(u,t,l,l+h),v=f>=0&&n[f],O=p>=0&&n[p];if(o&&!O||!o&&!v){bi(jr(a,s),i,u);let _=lD(o?cD:uD,n.length,o,r,c);!o&&O&&(n[p].providerFactory=_),ui(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=Bd(n[o?p:f],c,!o&&r);ui(i,e,f>-1?f:p,_)}!o&&r&&O&&n[p].componentProviders++}}}function ui(e,t,n,r){let o=Pt(t),i=vp(t);if(o||i){let u=(i?W(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Bd(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ci(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>aD(r,o?o(e):e,t)}}var dD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Cc(!1,n.type),o=r.length>0?ev([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=k({token:e,providedIn:"environment",factory:()=>new e(J($e))})}}return e})();function jx(e){Ce("NgStandalone"),e.getStandaloneInjector=t=>t.get(dD).getOrCreateStandaloneInjector(e)}function Vx(e,t,n){let r=qt()+e,o=m();return o[r]===le?Nn(o,r,n?t.call(n):t()):tv(o,r)}function Bx(e,t,n,r){return fD(m(),qt(),e,t,n,r)}function $x(e,t,n,r,o){return $d(m(),qt(),e,t,n,r,o)}function Hx(e,t,n,r,o,i){return hD(m(),qt(),e,t,n,r,o,i)}function Ux(e,t,n,r,o,i,s){return pD(m(),qt(),e,t,n,r,o,i,s)}function Co(e,t){let n=e[t];return n===le?void 0:n}function fD(e,t,n,r,o,i){let s=t+n;return ee(e,s,o)?Nn(e,s+1,i?r.call(i,o):r(o)):Co(e,s+1)}function $d(e,t,n,r,o,i,s){let a=t+n;return Yr(e,a,o,i)?Nn(e,a+2,s?r.call(s,o,i):r(o,i)):Co(e,a+2)}function hD(e,t,n,r,o,i,s,a){let u=t+n;return nv(e,u,o,i,s)?Nn(e,u+3,a?r.call(a,o,i,s):r(o,i,s)):Co(e,u+3)}function pD(e,t,n,r,o,i,s,a,u){let c=t+n;return rv(e,c,o,i,s,a)?Nn(e,c+4,u?r.call(u,o,i,s,a):r(o,i,s,a)):Co(e,c+4)}function zx(e,t){let n=F(),r,o=e+H;n.firstCreatePass?(r=gD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=rt(r.type,!0)),s,a=Q(re);try{let u=Lr(!1),c=i();return Lr(u),nD(n,m(),o,c),c}finally{Q(a)}}function gD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Gx(e,t,n,r){let o=e+H,i=m(),s=kc(i,o);return mD(i,o)?$d(i,qt(),t,s.transform,n,r,s):s.transform(n,r)}function mD(e,t){return e[w].data[t].pure}function Wx(e,t){return wo(e,t)}var qx=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var yD=new N("");function ia(e){return!!e&&typeof e.then=="function"}function Hd(e){return!!e&&typeof e.subscribe=="function"}var vD=new N(""),Ud=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=C(vD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(ia(i))n.push(i);else if(Hd(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),DD=new N("");function ID(){xa(()=>{throw new S(600,!1)})}function wD(e){return e.isBoundToModule}var ED=10;function CD(e,t,n){try{let r=n();return ia(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var bo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(Dg),this.afterRenderManager=C(Dd),this.zonelessEnabled=C(Xs),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ie,this.afterTick=new ie,this.componentTypes=[],this.components=[],this.isStable=C(bn).hasPendingTasks.pipe(xe(n=>!n)),this._injector=C($e)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Ur;if(!this._injector.get(Ud).done){let h=!o&&dp(n),f=!1;throw new S(405,f)}let s;o?s=n:s=this._injector.get(Ut).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=wD(s)?void 0:this._injector.get(ze),u=r||s.selector,c=s.create(Ae.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(yD,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),_r(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new S(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,b(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(zr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++ao(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;_r(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(DD,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>_r(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function _r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function bD(e,t,n,r){if(!n&&!ao(e))return;rd(e,t,n&&!r?0:1)}var gs=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Zx=(()=>{class e{compileModuleSync(n){return new ts(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Ic(n),i=xl(o.declarations).reduce((s,a)=>{let u=ot(a);return u&&s.push(new vn(u)),s},[]);return new gs(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var _D=(()=>{class e{constructor(){this.zone=C(K),this.changeDetectionScheduler=C(Ht),this.applicationRef=C(bo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),MD=new N("",{factory:()=>!1});function zd({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new K(ye(me({},Gd()),{scheduleInRootZone:n})),[{provide:K,useFactory:e},{provide:Nr,multi:!0,useFactory:()=>{let r=C(_D,{optional:!0});return()=>r.initialize()}},{provide:Nr,multi:!0,useFactory:()=>{let r=C(xD);return()=>{r.initialize()}}},t===!0?{provide:ad,useValue:!0}:[],{provide:ud,useValue:n??cl}]}function Yx(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=zd({ngZoneFactory:()=>{let o=Gd(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Ce("NgZone_CoalesceEvent"),new K(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return hp([{provide:MD,useValue:!0},{provide:Xs,useValue:!1},r])}function Gd(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var xD=(()=>{class e{constructor(){this.subscription=new L,this.initialized=!1,this.zone=C(K),this.pendingTasks=C(bn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{K.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{K.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var SD=(()=>{class e{constructor(){this.appRef=C(bo),this.taskService=C(bn),this.ngZone=C(K),this.zonelessEnabled=C(Xs),this.disableScheduling=C(ad,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new L,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Br):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(ud,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ti||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?xu:ll;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Br+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,xu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function TD(){return typeof $localize<"u"&&$localize.locale||eo}var sa=new N("",{providedIn:"root",factory:()=>C(sa,M.Optional|M.SkipSelf)||TD()});var Wd=new N("");function Dr(e){return!!e.platformInjector}function ND(e){let t=Dr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(K);return n.run(()=>{Dr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(dt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Dr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Wd);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else e.moduleRef.onDestroy(()=>{_r(e.allPlatformModules,e.moduleRef),o.unsubscribe()});return CD(r,n,()=>{let i=t.get(Ud);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(sa,eo);if(Zv(s||eo),Dr(e)){let a=t.get(bo);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return AD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function AD(e,t){let n=e.injector.get(bo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}var Mr=null;function OD(e=[],t){return Ae.create({name:t,providers:[{provide:Mc,useValue:"platform"},{provide:Wd,useValue:new Set([()=>Mr=null])},...e]})}function FD(e=[]){if(Mr)return Mr;let t=OD(e);return Mr=t,ID(),RD(t),t}function RD(e){e.get(xg,null)?.forEach(n=>n())}function Qx(){return!1}var aa=(()=>{class e{static{this.__NG_ELEMENT_ID__=PD}}return e})();function PD(e){return kD(B(),m(),(e&16)===16)}function kD(e,t,n){if(io(e)&&!n){let r=Ge(e.index,t);return new ft(r,r)}else if(e.type&175){let r=t[X];return new ft(r,t)}return null}var ms=class{constructor(){}supports(t){return t instanceof Map||vd(t)}create(){return new ys}},ys=class{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 this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||vd(t)))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new vs(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},vs=class{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 Ku(){return new ua([new ms])}var ua=(()=>{class e{static{this.\u0275prov=k({token:e,providedIn:"root",factory:Ku})}constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Ku()),deps:[[e,new Uh,new Hh]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new S(901,!1)}}return e})();function Kx(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=FD(r),i=[zd({}),{provide:Ht,useExisting:SD},...n||[]],s=new Zr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return ND({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function LD(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function jD(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function Jx(e,t){Ce("NgSignals");let n=No(e);return t?.equal&&(n[oe].equal=t.equal),n}function VD(e){let t=b(null);try{return e()}finally{b(t)}}var BD=new N("",{providedIn:"root",factory:()=>C($D)}),$D=(()=>{class e{static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new Ds})}}return e})(),Ds=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=C(bn),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Is=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Aa(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(dt,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function HD(e,t){Ce("NgSignals"),!t?.injector&&Ms(HD);let n=t?.injector??C(Ae),r=t?.manualCleanup!==!0?n.get(po):null,o=new Is(n.get(BD),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(aa,null,{optional:!0});return!i||!(i._lView[y]&8)?o.watcher.notify():(i._lView[wr]??=[]).push(o.watcher.notify),o}var Xd=null;function ca(){return Xd}function CS(e){Xd??=e}var qd=class{};var ef=new N(""),tf=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:()=>C(zD),providedIn:"platform"})}}return e})();var zD=(()=>{class e extends tf{constructor(){super(),this._doc=C(ef),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ca().getBaseHref(this._doc)}onPopState(n){let r=ca().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ca().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function nf(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Zd(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function gt(e){return e&&e[0]!=="?"?"?"+e:e}var fa=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:()=>C(WD),providedIn:"root"})}}return e})(),GD=new N(""),WD=(()=>{class e extends fa{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??C(ef).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return nf(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+gt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+gt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+gt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(J(tf),J(GD,8))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var qD=(()=>{class e{constructor(n){this._subject=new pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=QD(Zd(Yd(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+gt(r))}normalize(n){return e.stripTrailingSlash(YD(this._basePath,Yd(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=gt}static{this.joinWithSlash=nf}static{this.stripTrailingSlash=Zd}static{this.\u0275fac=function(r){return new(r||e)(J(fa))}}static{this.\u0275prov=k({token:e,factory:()=>ZD(),providedIn:"root"})}}return e})();function ZD(){return new qD(J(fa))}function YD(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Yd(e){return e.replace(/\/index.html$/,"")}function QD(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function bS(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var la=/\s+/,Qd=[],_S=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=Qd,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(la):Qd}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(la):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(la).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(re(Ze),re(Eo))}}static{this.\u0275dir=Cn({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var MS=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new da,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Kd("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Kd("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(re(Kt),re(Bt))}}static{this.\u0275dir=Cn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),da=class{constructor(){this.$implicit=null,this.ngIf=null}};function Kd(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Z(t)}'.`)}var xS=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:mn.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static{this.\u0275fac=function(r){return new(r||e)(re(Ze),re(ua),re(Eo))}}static{this.\u0275dir=Cn({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return e})(),SS=(()=>{class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static{this.\u0275fac=function(r){return new(r||e)(re(Kt))}}static{this.\u0275dir=Cn({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ts]})}}return e})();var TS=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yc({type:e})}static{this.\u0275inj=rc({})}}return e})(),KD="browser",JD="server";function NS(e){return e===KD}function AS(e){return e===JD}var Jd=class{};var be=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(be||{}),RS="*";function PS(e,t){return{type:be.Trigger,name:e,definitions:t,options:{}}}function kS(e,t=null){return{type:be.Animate,styles:t,timings:e}}function LS(e,t=null){return{type:be.Sequence,steps:e,options:t}}function jS(e){return{type:be.Style,styles:e,offset:null}}function VS(e,t,n){return{type:be.State,name:e,styles:t,options:n}}function BS(e){return{type:be.Keyframes,steps:e}}function $S(e,t,n=null){return{type:be.Transition,expr:e,animation:t,options:n}}function HS(e=null){return{type:be.AnimateChild,options:e}}function US(e,t,n=null){return{type:be.Query,selector:e,animation:t,options:n}}var rf=class{constructor(t=0,n=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+n}_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(){queueMicrotask(()=>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){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},of=class{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 n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},zS="!";export{me as a,ye as b,XD as c,lf as d,L as e,wf as f,x as g,Bo as h,$o as i,ie as j,nn as k,xf as l,Sf as m,Je as n,ae as o,kf as p,Lf as q,jf as r,et as s,xe as t,Wf as u,Se as v,fr as w,Zf as x,Yf as y,Go as z,Wo as A,nh as B,tt as C,oh as D,su as E,ih as F,sh as G,un as H,qo as I,ah as J,uh as K,dh as L,uu as M,Zo as N,fh as O,hh as P,ph as Q,Qo as R,gh as S,mh as T,yh as U,vh as V,Dh as W,Ih as X,wh as Y,S as Z,tc as _,k as $,rc as aa,zM as ba,N as ca,M as da,J as ea,C as fa,fn as ga,GM as ha,yc as ia,Cn as ja,lp as ka,hp as la,Mc as ma,$e as na,WM as oa,Ts as pa,qM as qa,ZM as ra,YM as sa,QM as ta,cg as ua,Ae as va,bn as wa,pe as xa,K as ya,dt as za,Ze as Aa,Ni as Ba,KM as Ca,JM as Da,xg as Ea,vl as Fa,XM as Ga,ex as Ha,_n as Ia,Fg as Ja,tx as Ka,nx as La,rx as Ma,ox as Na,ix as Oa,Il as Pa,sx as Qa,Ml as Ra,ax as Sa,ux as Ta,mn as Ua,cx as Va,re as Wa,lx as Xa,Bt as Ya,Ht as Za,Ut as _a,zr as $a,Eo as ab,Kt as bb,Ce as cb,jy as db,Vy as eb,px as fb,qy as gb,Xy as hb,Xi as ib,ev as jb,sv as kb,cv as lb,lv as mb,fv as nb,_v as ob,Md as pb,Mv as qb,gx as rb,mx as sb,yx as tb,vx as ub,Dx as vb,Ix as wb,wx as xb,Ex as yb,Cx as zb,Rd as Ab,Pd as Bb,Bv as Cb,kd as Db,Ld as Eb,Uv as Fb,bx as Gb,Gv as Hb,Wv as Ib,Qv as Jb,Kv as Kb,_x as Lb,Mx as Mb,xx as Nb,tD as Ob,Sx as Pb,Tx as Qb,Nx as Rb,Ax as Sb,Ox as Tb,Fx as Ub,Rx as Vb,Px as Wb,oD as Xb,Vd as Yb,iD as Zb,kx as _b,sD as $b,Lx as ac,jx as bc,Vx as cc,Bx as dc,$x as ec,Hx as fc,Ux as gc,zx as hc,Gx as ic,Wx as jc,qx as kc,ia as lc,DD as mc,bo as nc,Zx as oc,Yx as pc,Qx as qc,aa as rc,ua as sc,Kx as tc,LD as uc,jD as vc,Jx as wc,VD as xc,HD as yc,ca as zc,CS as Ac,qd as Bc,ef as Cc,qD as Dc,bS as Ec,_S as Fc,MS as Gc,xS as Hc,SS as Ic,TS as Jc,KD as Kc,NS as Lc,AS as Mc,Jd as Nc,be as Oc,RS as Pc,PS as Qc,kS as Rc,LS as Sc,jS as Tc,VS as Uc,BS as Vc,$S as Wc,HS as Xc,US as Yc,rf as Zc,of as _c,zS as $c}; + `)}`}var Hh=cc(ec("Optional"),8);var Uh=cc(ec("SkipSelf"),4);function rt(e,t){let n=e.hasOwnProperty(xr);return n?e[xr]:null}function zh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Es(n,t):t(n))}function lc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Tr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Wh(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function wn(e,t,n){let r=En(e,t);return r>=0?e[r|1]=n:(r=~r,qh(e,r,t,n)),r}function Ko(e,t){let n=En(e,t);if(n>=0)return e[n|1]}function En(e,t){return Zh(e,t,1)}function Zh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(he(r))return!1;s=!0}}}}return he(r)||s}function he(e){return(e&1)===0}function ep(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!he(s)&&(t+=yu(i,o),o=""),r=s,i=i||!he(r);n++}return o!==""&&(t+=yu(i,o)),t}function sp(e){return e.map(ip).join(",")}function ap(e){let t=[],n=[],r=1,o=2;for(;r{let t=wc(e),n=ye(me({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===hc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||fn.Emulated,styles:e.styles||q,_:null,schemas:e.schemas||null,tView:null,id:""});Ec(n);let r=e.dependencies;return n.directiveDefs=Du(r,!1),n.pipeDefs=Du(r,!0),n.id=fp(n),n})}function up(e){return ot(e)||vc(e)}function cp(e){return e!==null}function yc(e){return In(()=>({type:e.type,bootstrap:e.bootstrap||q,declarations:e.declarations||q,imports:e.imports||q,exports:e.exports||q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vu(e,t){if(e==null)return Rt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Be.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Be.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Cn(e){return In(()=>{let t=wc(e);return Ec(t),t})}function lp(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function ot(e){return e[xh]||null}function vc(e){return e[Sh]||null}function Dc(e){return e[Th]||null}function dp(e){let t=ot(e)||vc(e)||Dc(e);return t!==null?t.standalone:!1}function Ic(e,t){let n=e[Nh]||null;if(!n&&t===!0)throw new Error(`Type ${Z(e)} does not have '\u0275mod' property.`);return n}function wc(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Rt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vu(e.inputs,t),outputs:vu(e.outputs),debugInfo:null}}function Ec(e){e.features?.forEach(t=>t(e))}function Du(e,t){if(!e)return null;let n=t?Dc:up;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(cp)}function fp(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function hp(e){return{\u0275providers:e}}function pp(...e){return{\u0275providers:Cc(!0,e),\u0275fromNgModule:!0}}function Cc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Es(t,s=>{let a=s;gi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&bc(o,i),n}function bc(e,t){for(let n=0;n{t(i,r)})}}function gi(e,t,n,r){if(e=W(e),!e)return!1;let o=null,i=fu(e),s=!i&&ot(e);if(!i&&!s){let u=e.ngModule;if(i=fu(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)gi(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Es(i.imports,l=>{gi(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&bc(c,t)}if(!a){let c=rt(o)||(()=>new o);t({provide:o,useFactory:c,deps:q},o),t({provide:fc,useValue:o,multi:!0},o),t({provide:Nr,useValue:()=>J(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;bs(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function bs(e,t){for(let n of e)sc(n)&&(n=n.\u0275providers),Array.isArray(n)?bs(n,t):t(n)}var gp=A({provide:String,useValue:A});function _c(e){return e!==null&&typeof e=="object"&&gp in e}function mp(e){return!!(e&&e.useExisting)}function yp(e){return!!(e&&e.useFactory)}function Pt(e){return typeof e=="function"}function vp(e){return!!e.useClass}var Mc=new N(""),Ir={},Dp={},Jo;function _s(){return Jo===void 0&&(Jo=new Ar),Jo}var $e=class{},pn=class extends $e{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yi(t,s=>this.processProvider(s)),this.records.set(dc,St(void 0,this)),o.has("environment")&&this.records.set($e,St(void 0,this));let i=this.records.get(Mc);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(fc,q,M.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Le(this),r=Q(void 0),o;try{return t()}finally{Le(n),Q(r)}}get(t,n=dn,r=M.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(pu))return t[pu](this);r=ro(r);let o,i=Le(this),s=Q(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=bp(t)&&to(t);c&&this.injectableDefInScope(c)?u=St(mi(t),Ir):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?_s():this.parent;return n=r&M.Optional&&n===dn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Sr]=a[Sr]||[]).unshift(Z(t)),i)throw a;return Bh(a,t,"R3InjectorError",this.source)}else throw a}finally{Q(s),Le(i)}}resolveInjectorInitializers(){let t=b(null),n=Le(this),r=Q(void 0),o;try{let i=this.get(Nr,q,M.Self);for(let s of i)s()}finally{Le(n),Q(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Z(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(t){t=W(t);let n=Pt(t)?t:W(t&&t.provide),r=wp(t);if(!Pt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=St(void 0,Ir,!0),o.factory=()=>hi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=b(null);try{return n.value===Ir&&(n.value=Dp,n.value=n.factory()),typeof n.value=="object"&&n.value&&Cp(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=W(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function mi(e){let t=to(e),n=t!==null?t.factory:rt(e);if(n!==null)return n;if(e instanceof N)throw new S(204,!1);if(e instanceof Function)return Ip(e);throw new S(204,!1)}function Ip(e){if(e.length>0)throw new S(204,!1);let n=_h(e);return n!==null?()=>n.factory(e):()=>new e}function wp(e){if(_c(e))return St(void 0,e.useValue);{let t=xc(e);return St(t,Ir)}}function xc(e,t,n){let r;if(Pt(e)){let o=W(e);return rt(o)||mi(o)}else if(_c(e))r=()=>W(e.useValue);else if(yp(e))r=()=>e.useFactory(...hi(e.deps||[]));else if(mp(e))r=()=>J(W(e.useExisting));else{let o=W(e&&(e.useClass||e.provide));if(Ep(e))r=()=>new o(...hi(e.deps));else return rt(o)||mi(o)}return r}function St(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ep(e){return!!e.deps}function Cp(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function bp(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function yi(e,t){for(let n of e)Array.isArray(n)?yi(n,t):n&&sc(n)?yi(n.\u0275providers,t):t(n)}function qM(e,t){e instanceof pn&&e.assertNotDestroyed();let n,r=Le(e),o=Q(void 0);try{return t()}finally{Le(r),Q(o)}}function Sc(){return ac()!==void 0||Lh()!=null}function Ms(e){if(!Sc())throw new S(-203,!1)}function _p(e){return typeof e=="function"}var Ee=0,w=1,y=2,z=3,ge=4,te=5,kt=6,Or=7,$=8,Lt=9,Ie=10,R=11,gn=12,Iu=13,Wt=14,X=15,it=16,Tt=17,Te=18,oo=19,Tc=20,je=21,wr=22,ue=23,H=25,xs=1;var st=7,Fr=8,jt=9,U=10,Rr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Rr||{});function Ve(e){return Array.isArray(e)&&typeof e[xs]=="object"}function Fe(e){return Array.isArray(e)&&e[xs]===!0}function Ss(e){return(e.flags&4)!==0}function io(e){return e.componentOffset>-1}function so(e){return(e.flags&1)===1}function Ne(e){return!!e.template}function vi(e){return(e[y]&512)!==0}var Di=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Nc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Ts(){return Ac}function Ac(e){return e.type.prototype.ngOnChanges&&(e.setInput=xp),Mp}Ts.ngInherit=!0;function Mp(){let e=Fc(this),t=e?.current;if(t){let n=e.previous;if(n===Rt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function xp(e,t,n,r,o){let i=this.declaredInputs[r],s=Fc(e)||Sp(e,{previous:Rt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Di(c&&c.currentValue,n,u===Rt),Nc(e,t,o,n)}var Oc="__ngSimpleChanges__";function Fc(e){return e[Oc]||null}function Sp(e,t){return e[Oc]=t}var wu=null;var ve=function(e,t,n){wu?.(e,t,n)},Rc="svg",Tp="math";function we(e){for(;Array.isArray(e);)e=e[Ee];return e}function Np(e){for(;Array.isArray(e);){if(typeof e[xs]=="object")return e;e=e[Ee]}return null}function Pc(e,t){return we(t[e])}function ce(e,t){return we(t[e.index])}function Ns(e,t){return e.data[t]}function kc(e,t){return e[t]}function Ge(e,t){let n=t[e];return Ve(n)?n:n[Ee]}function Ap(e){return(e[y]&4)===4}function As(e){return(e[y]&128)===128}function Op(e){return Fe(e[z])}function He(e,t){return t==null?null:e[t]}function Lc(e){e[Tt]=0}function jc(e){e[y]&1024||(e[y]|=1024,As(e)&&uo(e))}function Fp(e,t){for(;e>0;)t=t[Wt],e--;return t}function ao(e){return!!(e[y]&9216||e[ue]?.dirty)}function Ii(e){e[Ie].changeDetectionScheduler?.notify(8),e[y]&64&&(e[y]|=1024),ao(e)&&uo(e)}function uo(e){e[Ie].changeDetectionScheduler?.notify(0);let t=at(e);for(;t!==null&&!(t[y]&8192||(t[y]|=8192,!As(t)));)t=at(t)}function Vc(e,t){if((e[y]&256)===256)throw new S(911,!1);e[je]===null&&(e[je]=[]),e[je].push(t)}function Rp(e,t){if(e[je]===null)return;let n=e[je].indexOf(t);n!==-1&&e[je].splice(n,1)}function at(e){let t=e[z];return Fe(t)?t[z]:t}var E={lFrame:Zc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Bc=!1;function Pp(){return E.lFrame.elementDepthCount}function kp(){E.lFrame.elementDepthCount++}function Lp(){E.lFrame.elementDepthCount--}function $c(){return E.bindingsEnabled}function Hc(){return E.skipHydrationRootTNode!==null}function jp(e){return E.skipHydrationRootTNode===e}function Vp(){E.skipHydrationRootTNode=null}function m(){return E.lFrame.lView}function F(){return E.lFrame.tView}function ZM(e){return E.lFrame.contextLView=e,e[$]}function YM(e){return E.lFrame.contextLView=null,e}function B(){let e=Uc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Uc(){return E.lFrame.currentTNode}function Bp(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pt(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function Os(){return E.lFrame.isParent}function Fs(){E.lFrame.isParent=!1}function $p(){return E.lFrame.contextLView}function zc(){return Bc}function Eu(e){Bc=e}function qt(){let e=E.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Hp(e){return E.lFrame.bindingIndex=e}function We(){return E.lFrame.bindingIndex++}function Gc(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Up(){return E.lFrame.inI18n}function zp(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,wi(t)}function Gp(){return E.lFrame.currentDirectiveIndex}function wi(e){E.lFrame.currentDirectiveIndex=e}function Rs(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ps(){return E.lFrame.currentQueryIndex}function co(e){E.lFrame.currentQueryIndex=e}function Wp(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[te]:null}function Wc(e,t,n){if(n&M.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&M.Host);)if(o=Wp(i),o===null||(i=i[Wt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=qc();return r.currentTNode=t,r.lView=e,!0}function ks(e){let t=qc(),n=e[w];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function qc(){let e=E.lFrame,t=e===null?null:e.child;return t===null?Zc(e):t}function Zc(e){let 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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Yc(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Qc=Yc;function Ls(){let e=Yc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function qp(e){return(E.lFrame.contextLView=Fp(e,E.lFrame.contextLView))[$]}function qe(){return E.lFrame.selectedIndex}function ut(e){E.lFrame.selectedIndex=e}function Zt(){let e=E.lFrame;return Ns(e.tView,e.selectedIndex)}function QM(){E.lFrame.currentNamespace=Rc}function KM(){Zp()}function Zp(){E.lFrame.currentNamespace=null}function Yp(){return E.lFrame.currentNamespace}var Kc=!0;function lo(){return Kc}function fo(e){Kc=e}function Qp(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Ac(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ho(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Tt]+=65536),(a>14>16&&(e[y]&3)===t&&(e[y]+=16384,Cu(a,i)):Cu(a,i)}var Ft=-1,ct=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Jp(e){return e instanceof ct}function Xp(e){return(e.flags&8)!==0}function eg(e){return(e.flags&16)!==0}var ei={},Ei=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ro(r);let o=this.injector.get(t,ei,r);return o!==ei||n===ei?o:this.parentInjector.get(t,n,r)}};function Xc(e){return e!==Ft}function Pr(e){return e&32767}function tg(e){return e>>16}function kr(e,t){let n=tg(e),r=t;for(;n>0;)r=r[Wt],n--;return r}var Ci=!0;function Lr(e){let t=Ci;return Ci=e,t}var ng=256,el=ng-1,tl=5,rg=0,De={};function og(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ln)&&(r=n[ln]),r==null&&(r=n[ln]=rg++);let o=r&el,i=1<>tl)]|=i}function jr(e,t){let n=nl(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,ti(r.data,e),ti(t,null),ti(r.blueprint,null));let o=js(e,t),i=e.injectorIndex;if(Xc(o)){let s=Pr(o),a=kr(o,t),u=a[w].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function ti(e,t){e.push(0,0,0,0,0,0,0,0,t)}function nl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function js(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=al(o),r===null)return Ft;if(n++,o=o[Wt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ft}function bi(e,t,n){og(e,t,n)}function ig(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:c;for(let f=d;f=u&&p.type===n)return f}if(o){let f=s[u];if(f&&Ne(f)&&f.type===n)return u}return null}function lt(e,t,n,r){let o=e[n],i=t.data;if(Jp(o)){let s=o;s.resolving&&Oh(Ah(i[n]));let a=Lr(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?Q(s.injectImpl):null,l=Wc(e,r,M.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Qp(n,i[n],t)}finally{c!==null&&Q(c),Lr(a),s.resolving=!1,Qc()}}return o}function ag(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ln)?e[ln]:void 0;return typeof t=="number"?t>=0?t&el:ug:t}function bu(e,t,n){let r=1<>tl)]&r)}function _u(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var nt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return il(this._tNode,this._lView,t,ro(r),n)}};function ug(){return new nt(B(),m())}function JM(e){return In(()=>{let t=e.prototype.constructor,n=t[xr]||_i(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[xr]||_i(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function _i(e){return nc(e)?()=>{let t=_i(W(e));return t&&t()}:rt(e)}function cg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[y]&2048&&!(s[y]&512);){let a=sl(i,s,n,r|M.Self,De);if(a!==De)return a;let u=i.parent;if(!u){let c=s[Tc];if(c){let l=c.get(n,De,r);if(l!==De)return l}u=al(s),s=s[Wt]}i=u}return o}function al(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[te]:null}function lg(e){return ig(B(),e)}function Mu(e,t=null,n=null,r){let o=ul(e,t,n,r);return o.resolveInjectorInitializers(),o}function ul(e,t=null,n=null,r,o=new Set){let i=[n||q,pp(e)];return r=r||(typeof e=="object"?void 0:Z(e)),new pn(i,t||_s(),r||null,o)}var Ae=class e{static{this.THROW_IF_NOT_FOUND=dn}static{this.NULL=new Ar}static create(t,n){if(Array.isArray(t))return Mu({name:""},n,t,"");{let r=t.name??"";return Mu({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=k({token:e,providedIn:"any",factory:()=>J(dc)})}static{this.__NG_ELEMENT_ID__=-1}};var dg=new N("");dg.__NG_ELEMENT_ID__=e=>{let t=B();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new S(204,!1)};var fg="ngOriginalError";function ni(e){return e[fg]}var cl=!0,po=(()=>{class e{static{this.__NG_ELEMENT_ID__=hg}static{this.__NG_ENV_ID__=n=>n}}return e})(),Mi=class extends po{constructor(t){super(),this._lView=t}onDestroy(t){return Vc(this._lView,t),()=>Rp(this._lView,t)}};function hg(){return new Mi(m())}var bn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new nn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}}return e})();var xi=class extends ie{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Sc()&&(this.destroyRef=C(po,{optional:!0})??void 0,this.pendingTasks=C(bn,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof L&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},pe=xi;function Vr(...e){}function ll(e){let t,n;function r(){e=Vr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function xu(e){return queueMicrotask(()=>e()),()=>{e=Vr}}var Vs="isAngularZone",Br=Vs+"_ID",pg=0,K=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=cl}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,yg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Vs)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,gg,Vr,Vr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},gg={};function Bs(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function mg(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ll(()=>{e.callbackScheduled=!1,Si(e),e.isCheckStableRunning=!0,Bs(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Si(e)}function yg(e){let t=()=>{mg(e)},n=pg++;e._inner=e._inner.fork({name:"angular",properties:{[Vs]:!0,[Br]:n,[Br+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(vg(u))return r.invokeTask(i,s,a,u);try{return Su(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Tu(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return Su(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Dg(u)&&t(),Tu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Si(e),Bs(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Si(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Su(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tu(e){e._nesting--,Bs(e)}var Ti=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function vg(e){return dl(e,"__ignore_ng_zone__")}function Dg(e){return dl(e,"__scheduler_tick__")}function dl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var dt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ni(t);for(;n&&ni(n);)n=ni(n);return n||null}},Ig=new N("",{providedIn:"root",factory:()=>{let e=C(K),t=C(dt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function wg(){return Yt(B(),m())}function Yt(e,t){return new Ze(ce(e,t))}var Ze=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=wg}}return e})();function fl(e){return e instanceof Ze?e.nativeElement:e}function Eg(){return this._results[Symbol.iterator]()}var Ni=class e{get changes(){return this._changes??=new pe}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Eg)}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,n){return this._results.reduce(t,n)}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,n){this.dirty=!1;let r=Gh(t);(this._changesDetected=!zh(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function hl(e){return(e.flags&128)===128}var pl=new Map,Cg=0;function bg(){return Cg++}function _g(e){pl.set(e[oo],e)}function Ai(e){pl.delete(e[oo])}var Nu="__ngContext__";function Ue(e,t){Ve(t)?(e[Nu]=t[oo],_g(t)):e[Nu]=t}function gl(e){return yl(e[gn])}function ml(e){return yl(e[ge])}function yl(e){for(;e!==null&&!Fe(e);)e=e[ge];return e}var Oi;function XM(e){Oi=e}function Mg(){if(Oi!==void 0)return Oi;if(typeof document<"u")return document;throw new S(210,!1)}var ex=new N("",{providedIn:"root",factory:()=>xg}),xg="ng",Sg=new N(""),vl=new N("",{providedIn:"platform",factory:()=>"unknown"});var tx=new N(""),nx=new N("",{providedIn:"root",factory:()=>Mg().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Tg="h",Ng="b";var Ag=()=>null;function $s(e,t,n=!1){return Ag(e,t,n)}var Dl=!1,Og=new N("",{providedIn:"root",factory:()=>Dl});var gr;function Fg(){if(gr===void 0&&(gr=null,lu.trustedTypes))try{gr=lu.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return gr}function go(e){return Fg()?.createHTML(e)||e}var Oe=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ju})`}},Fi=class extends Oe{getTypeName(){return"HTML"}},Ri=class extends Oe{getTypeName(){return"Style"}},Pi=class extends Oe{getTypeName(){return"Script"}},ki=class extends Oe{getTypeName(){return"URL"}},Li=class extends Oe{getTypeName(){return"ResourceURL"}};function _n(e){return e instanceof Oe?e.changingThisBreaksApplicationSecurity:e}function Rg(e,t){let n=Pg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ju})`)}return n===t}function Pg(e){return e instanceof Oe&&e.getTypeName()||null}function rx(e){return new Fi(e)}function ox(e){return new Ri(e)}function ix(e){return new Pi(e)}function sx(e){return new ki(e)}function ax(e){return new Li(e)}function kg(e){let t=new Vi(e);return Lg()?new ji(t):t}var ji=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(go(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Vi=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=go(t),n}};function Lg(){try{return!!new window.DOMParser().parseFromString(go(""),"text/html")}catch{return!1}}var jg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Il(e){return e=String(e),e.match(jg)?e:"unsafe:"+e}function Re(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Mn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var wl=Re("area,br,col,hr,img,wbr"),El=Re("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Cl=Re("rp,rt"),Vg=Mn(Cl,El),Bg=Mn(El,Re("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")),$g=Mn(Cl,Re("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")),Au=Mn(wl,Bg,$g,Vg),bl=Re("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Hg=Re("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"),Ug=Re("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"),zg=Mn(bl,Hg,Ug),Gg=Re("script,style,template"),Bi=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Zg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=qg(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Ou(t).toLowerCase();if(!Au.hasOwnProperty(n))return this.sanitizedSomething=!0,!Gg.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Ou(t).toLowerCase();Au.hasOwnProperty(n)&&!wl.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Fu(t))}};function Wg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function qg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw _l(t);return t}function Zg(e){let t=e.firstChild;if(t&&Wg(e,t))throw _l(t);return t}function Ou(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function _l(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Yg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qg=/([^\#-~ |!])/g;function Fu(e){return e.replace(/&/g,"&").replace(Yg,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Qg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var mr;function ux(e,t){let n=null;try{mr=mr||kg(e);let r=t?String(t):"";n=mr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=mr.getInertBodyElement(r)}while(r!==i);let a=new Bi().sanitizeChildren(Ru(n)||n);return go(a)}finally{if(n){let r=Ru(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ru(e){return"content"in e&&Kg(e)?e.content:null}function Kg(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Ml=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ml||{});function cx(e){let t=Jg();return t?t.sanitize(Ml.URL,e)||"":Rg(e,"URL")?_n(e):Il(no(e))}function Jg(){let e=m();return e&&e[Ie].sanitizer}var Xg=/^>|^->||--!>|)/g,tm="\u200B$1\u200B";function nm(e){return e.replace(Xg,t=>t.replace(em,tm))}function lx(e){return e.ownerDocument.defaultView}function xl(e){return e instanceof Function?e():e}function Sl(e){return(e??C(Ae)).get(vl)==="browser"}var mn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(mn||{}),rm;function Hs(e,t){return rm(e,t)}function Nt(e,t,n,r,o){if(r!=null){let i,s=!1;Fe(r)?i=r:Ve(r)&&(s=!0,r=r[Ee]);let a=we(r);e===0&&n!==null?o==null?Fl(t,n,a):$r(t,n,a,o||null,!0):e===1&&n!==null?$r(t,n,a,o||null,!0):e===2?ym(t,a,s):e===3&&t.destroyNode(a),i!=null&&Dm(t,e,i,n,o)}}function om(e,t){return e.createText(t)}function im(e,t,n){e.setValue(t,n)}function sm(e,t){return e.createComment(nm(t))}function Tl(e,t,n){return e.createElement(t,n)}function am(e,t){Nl(e,t),t[Ee]=null,t[te]=null}function um(e,t,n,r,o,i){r[Ee]=o,r[te]=t,vo(e,r,n,1,o,i)}function Nl(e,t){t[Ie].changeDetectionScheduler?.notify(9),vo(e,t,t[R],2,null,null)}function cm(e){let t=e[gn];if(!t)return ri(e[w],e);for(;t;){let n=null;if(Ve(t))n=t[gn];else{let r=t[U];r&&(n=r)}if(!n){for(;t&&!t[ge]&&t!==e;)Ve(t)&&ri(t[w],t),t=t[z];t===null&&(t=e),Ve(t)&&ri(t[w],t),n=t&&t[ge]}t=n}}function lm(e,t,n,r){let o=U+r,i=n.length;r>0&&(n[o-1][ge]=t),r0&&(e[n-1][ge]=r[ge]);let i=Tr(e,U+t);am(r[w],r);let s=i[Te];s!==null&&s.detachView(i[w]),r[z]=null,r[ge]=null,r[y]&=-129}return r}function mo(e,t){if(!(t[y]&256)){let n=t[R];n.destroyNode&&vo(e,t,n,3,null,null),cm(t)}}function ri(e,t){if(t[y]&256)return;let n=b(null);try{t[y]&=-129,t[y]|=256,t[ue]&&kn(t[ue]),fm(e,t),dm(e,t),t[w].type===1&&t[R].destroy();let r=t[it];if(r!==null&&Fe(t[z])){r!==t[z]&&Us(r,t);let o=t[Te];o!==null&&o.detachView(e)}Ai(t)}finally{b(n)}}function dm(e,t){let n=e.cleanup,r=t[Or];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Or]=null);let o=t[je];if(o!==null){t[je]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===fn.None||i===fn.Emulated)return null}return ce(r,n)}}function $r(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Fl(e,t,n){e.appendChild(t,n)}function Pu(e,t,n,r,o){r!==null?$r(e,t,n,r,o):Fl(e,t,n)}function Rl(e,t){return e.parentNode(t)}function pm(e,t){return e.nextSibling(t)}function Pl(e,t,n){return mm(e,t,n)}function gm(e,t,n){return e.type&40?ce(e,n):null}var mm=gm,ku;function yo(e,t,n,r){let o=Ol(e,r,t),i=t[R],s=r.parent||t[te],a=Pl(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uH&&Bl(e,t,H,!1),ve(s?2:0,o),n(r,o)}finally{ut(i),ve(s?3:1,o)}}function Gs(e,t,n){if(Ss(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Sm(e,t,n,r){let o=Yl(t);o.push(n),e.firstCreatePass&&Ql(e).push(r,o.length-1)}function Tm(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Hc()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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}}function Lu(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Be.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?ju(r,n,c,a,u):ju(r,n,c,a)}return r}function ju(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Nm(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Pm(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;io(n)&&Hm(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||jr(n,t),Ue(r,t);let s=n.initialInputs;for(let a=o;a{uo(e.lView)},consumerOnSignalRead(){this.lView[ue]=this}});function ny(e){let t=e[ue]??Object.create(ry);return t.lView=e,t}var ry=ye(me({},vt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=at(e.lView);for(;t&&!nd(t[w]);)t=at(t);t&&jc(t)},consumerOnSignalRead(){this.lView[ue]=this}});function nd(e){return e.type!==2}var oy=100;function rd(e,t=!0,n=0){let r=e[Ie],o=r.rendererFactory,i=!1;i||o.begin?.();try{iy(e,n)}catch(s){throw t&&Jl(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function iy(e,t){let n=zc();try{Eu(!0),zi(e,t);let r=0;for(;ao(e);){if(r===oy)throw new S(103,!1);r++,zi(e,1)}}finally{Eu(n)}}function sy(e,t,n,r){let o=t[y];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Ie].inlineEffectRunner?.flush(),ks(t);let a=!0,u=null,c=null;i||(nd(e)?(c=Jm(t),u=en(c)):ya()===null?(a=!1,c=ny(t),u=en(c)):t[ue]&&(kn(t[ue]),t[ue]=null));try{Lc(t),Hp(e.bindingStartIndex),n!==null&&Ul(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Er(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Cr(t,f,0,null),Xo(t,0)}if(s||ay(t),od(t,0),e.contentQueries!==null&&Zl(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Er(t,f)}else{let f=e.contentHooks;f!==null&&Cr(t,f,1),Xo(t,1)}Em(e,t);let d=e.components;d!==null&&sd(t,d,0);let h=e.viewQuery;if(h!==null&&Ui(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Er(t,f)}else{let f=e.viewHooks;f!==null&&Cr(t,f,2),Xo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[wr]){for(let f of t[wr])f();t[wr]=null}i||(t[y]&=-73)}catch(l){throw i||uo(t),l}finally{c!==null&&(Rn(c,u),a&&ey(c)),Ls()}}function od(e,t){for(let n=gl(e);n!==null;n=ml(n))for(let r=U;r-1&&(yn(t,r),Tr(n,r))}this._attachedToViewContainer=!1}mo(this._lView[w],this._lView)}onDestroy(t){Vc(this._lView,t)}markForCheck(){Js(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[y]&=-129}reattach(){Ii(this._lView),this._lView[y]|=128}detectChanges(){this._lView[y]|=1024,rd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=vi(this._lView),n=this._lView[it];n!==null&&!t&&Us(n,this._lView),Nl(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=vi(this._lView),r=this._lView[it];r!==null&&!n&&Al(r,this._lView),Ii(this._lView)}},Bt=(()=>{class e{static{this.__NG_ELEMENT_ID__=dy}}return e})(),cy=Bt,ly=class extends cy{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Sn(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ft(o)}};function dy(){return wo(B(),m())}function wo(e,t){return e.type&4?new ly(t,e,Yt(e,t)):null}var px=new RegExp(`^(\\d+)*(${Ng}|${Tg})*(.*)`);var fy=()=>null;function $t(e,t){return fy(e,t)}var Ht=class{},Xs=new N("",{providedIn:"root",factory:()=>!1});var ad=new N(""),ud=new N(""),Gi=class{},Ur=class{};function hy(e){let t=Error(`No component factory found for ${Z(e)}.`);return t[py]=e,t}var py="ngComponent";var Wi=class{resolveComponentFactory(t){throw hy(t)}},Ut=class{static{this.NULL=new Wi}},zr=class{},Eo=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>gy()}}return e})();function gy(){let e=m(),t=B(),n=Ge(t.index,e);return(Ve(n)?n:e)[R]}var my=(()=>{class e{static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>null})}}return e})();function Gr(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&jl(e,n,i.join(" "))}}function Cy(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=_y}}return e})();function _y(){let e=B();return ld(e,m())}var My=Kt,cd=class extends My{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Yt(this._hostTNode,this._hostLView)}get injector(){return new nt(this._hostTNode,this._hostLView)}get parentInjector(){let t=js(this._hostTNode,this._hostLView);if(Xc(t)){let n=kr(t,this._hostLView),r=Pr(t),o=n[w].data[r+8];return new nt(o,n)}else return new nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Bu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-U}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$t(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Vt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!_p(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let u=s?t:new vn(ot(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let v=(s?c:this.parentInjector).get($e,null);v&&(i=v)}let l=ot(u.componentType??{}),d=$t(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,o,h,i);return this.insertImpl(f.hostView,a,Vt(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Op(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[z],c=new cd(u,u[te],u[z]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Tn(s,o,i,r),t.attachToViewContainerRef(),lc(oi(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Bu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=yn(this._lContainer,n);r&&(Tr(oi(this._lContainer),n),mo(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=yn(this._lContainer,n);return r&&Tr(oi(this._lContainer),n)!=null?new ft(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Bu(e){return e[Fr]}function oi(e){return e[Fr]||(e[Fr]=[])}function ld(e,t){let n,r=t[e.index];return Fe(r)?n=r:(n=ql(r,t,null,e),t[e.index]=n,Io(t,n)),Sy(n,t,e,r),new cd(n,e,t)}function xy(e,t){let n=e[R],r=n.createComment(""),o=ce(t,e),i=Rl(n,o);return $r(n,i,r,pm(n,o),!1),r}var Sy=Ay,Ty=()=>!1;function Ny(e,t,n){return Ty(e,t,n)}function Ay(e,t,n,r){if(e[st])return;let o;n.type&8?o=we(r):o=xy(t,n),e[st]=o}var Zi=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Yi=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=U;dt.trim())}function pd(e,t,n){e.queries===null&&(e.queries=new Qi),e.queries.track(new Ki(t,n))}function jy(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function ta(e,t){return e.queries.getByIndex(t)}function gd(e,t){let n=e[w],r=ta(n,t);return r.crossesNgTemplate?Ji(n,e,t,[]):dd(n,e,r,t)}var $u=new Set;function Ce(e){$u.has(e)||($u.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Vy(e){return typeof e=="function"&&e[oe]!==void 0}function By(e,t){Ce("NgSignals");let n=Sa(e),r=n[oe];return t?.equal&&(r.equal=t.equal),n.set=o=>Ao(r,o),n.update=o=>Ta(r,o),n.asReadonly=$y.bind(n),n}function $y(){let e=this[oe];if(e.readonlyFn===void 0){let t=()=>this();t[oe]=e,e.readonlyFn=t}return e.readonlyFn}function md(e){return Vy(e)&&typeof e.set=="function"}function yd(e,t){let n,r=No(()=>{n._dirtyCounter();let o=Gy(n,e);if(t&&o===void 0)throw new S(-951,!1);return o});return n=r[oe],n._dirtyCounter=By(0),n._flatValue=void 0,r}function Hy(){return yd(!0,!1)}function Uy(){return yd(!0,!0)}function zy(e,t){let n=e[oe];n._lView=m(),n._queryIndex=t,n._queryList=ea(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function Gy(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[y]&4)return t?void 0:q;let o=ea(n,r),i=gd(n,r);return o.reset(i,fl),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Hu(e,t){return Hy()}function Wy(e,t){return Uy()}var mx=(Hu.required=Wy,Hu);function qy(e){return Object.getPrototypeOf(e.prototype).constructor}function Zy(e){let t=qy(e.type),n=!0,r=[e];for(;t;){let o;if(Ne(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=yr(e.inputs),s.inputTransforms=yr(e.inputTransforms),s.declaredInputs=yr(e.declaredInputs),s.outputs=yr(e.outputs);let a=o.hostBindings;a&&Xy(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Ky(e,u),c&&Jy(e,c),Yy(e,o),Ch(e.outputs,o.outputs),Ne(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=hn(o.hostAttrs,n=hn(n,o.hostAttrs))}}function yr(e){return e===Rt?{}:e===q?[]:e}function Ky(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Jy(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Xy(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ev(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var ze=class{},Xi=class{};var es=class extends ze{constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Wr(this);let i=Ic(t);this._bootstrapComponents=xl(i.bootstrap),this._r3Injector=ul(t,n,[{provide:ze,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver},...r],Z(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ts=class extends Xi{constructor(t){super(),this.moduleType=t}create(t){return new es(this.moduleType,t,[])}};var Zr=class extends ze{constructor(t){super(),this.componentFactoryResolver=new Wr(this),this.instance=null;let n=new pn([...t.providers,{provide:ze,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver}],t.parent||_s(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function tv(e,t,n=null){return new Zr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function vd(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Nn(e,t,n){return e[t]=n}function nv(e,t){return e[t]}function ee(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Yr(e,t,n,r){let o=ee(e,t,n);return ee(e,t+1,r)||o}function rv(e,t,n,r,o){let i=Yr(e,t,n,r);return ee(e,t+2,o)||i}function ov(e,t,n,r,o,i){let s=Yr(e,t,n,r);return Yr(e,t+2,o,i)||s}function iv(e){return(e.flags&32)===32}function sv(e,t,n,r,o,i,s,a,u){let c=t.consts,l=Qt(t,e,4,s||null,a||null);Ys(t,n,l,He(c,u)),ho(t,l);let d=l.tView=Zs(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Qr(e,t,n,r,o,i,s,a,u,c){let l=n+H,d=t.firstCreatePass?sv(l,t,e,r,o,i,s,a,u):t.data[l];pt(d,!1);let h=uv(t,e,d,n);lo()&&yo(t,e,h,d),Ue(h,e);let f=ql(h,e,h,d);return e[l]=f,Io(e,f),Ny(f,d,e),so(d)&&Ws(t,e,d),u!=null&&qs(e,d,c),d}function av(e,t,n,r,o,i,s,a){let u=m(),c=F(),l=He(c.consts,i);return Qr(u,c,e,t,n,r,o,l,s,a),av}var uv=cv;function cv(e,t,n,r){return fo(!0),t[R].createComment("")}var At=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(At||{}),Dd=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}}return e})(),ns=class e{constructor(){this.ngZone=C(K),this.scheduler=C(Ht),this.errorHandler=C(dt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[At.EarlyRead,At.Write,At.MixedReadWrite,At.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&this.sequences.delete(t);for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}},rs=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function lv(e,t){!t?.injector&&Ms(lv);let n=t?.injector??C(Ae);return Sl(n)?(Ce("NgAfterRender"),Id(e,n,t,!1)):wd}function dv(e,t){!t?.injector&&Ms(dv);let n=t?.injector??C(Ae);return Sl(n)?(Ce("NgAfterNextRender"),Id(e,n,t,!0)):wd}function fv(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Id(e,t,n,r){let o=t.get(Dd);o.impl??=t.get(ns);let i=n?.phase??At.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(po):null,a=new rs(o.impl,fv(e,i),r,s);return o.impl.register(a),a}var wd={destroy(){}};function hv(e,t,n,r){let o=m(),i=We();if(ee(o,i,t)){let s=F(),a=Zt();Um(a,o,e,t,n,r)}return hv}function na(e,t,n,r){return ee(e,We(),n)?t+no(n)+r:le}function vr(e,t){return e<<17|t<<2}function ht(e){return e>>17&32767}function pv(e){return(e&2)==2}function gv(e,t){return e&131071|t<<17}function os(e){return e|2}function zt(e){return(e&131068)>>2}function ii(e,t){return e&-131069|t<<2}function mv(e){return(e&1)===1}function is(e){return e|1}function yv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ht(s),u=zt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||En(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let h=ht(e[a+1]);e[r+1]=vr(h,a),h!==0&&(e[h+1]=ii(e[h+1],r)),e[a+1]=gv(e[a+1],r)}else e[r+1]=vr(a,0),a!==0&&(e[a+1]=ii(e[a+1],r)),a=r;else e[r+1]=vr(u,0),a===0?a=r:e[u+1]=ii(e[u+1],r),u=r;c&&(e[r+1]=os(e[r+1])),Uu(e,l,r,!0),Uu(e,l,r,!1),vv(t,l,e,r,i),s=vr(a,u),i?t.classBindings=s:t.styleBindings=s}function vv(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&En(i,t)>=0&&(n[r+1]=is(n[r+1]))}function Uu(e,t,n,r){let o=e[n+1],i=t===null,s=r?ht(o):zt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Dv(u,t)&&(a=!0,e[s+1]=r?is(c):os(c)),s=r?ht(c):zt(c)}a&&(e[n+1]=r?os(o):is(o))}function Dv(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?En(e,t)>=0:!1}var V={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ed(e){return e.substring(V.key,V.keyEnd)}function Iv(e){return e.substring(V.value,V.valueEnd)}function wv(e){return _d(e),Cd(e,Gt(e,0,V.textEnd))}function Cd(e,t){let n=V.textEnd;return n===t?-1:(t=V.keyEnd=Cv(e,V.key=t,n),Gt(e,t,n))}function Ev(e){return _d(e),bd(e,Gt(e,0,V.textEnd))}function bd(e,t){let n=V.textEnd,r=V.key=Gt(e,t,n);return n===r?-1:(r=V.keyEnd=bv(e,r,n),r=zu(e,r,n,58),r=V.value=Gt(e,r,n),r=V.valueEnd=_v(e,r,n),zu(e,r,n,59))}function _d(e){V.key=0,V.keyEnd=0,V.value=0,V.valueEnd=0,V.textEnd=e.length}function Gt(e,t,n){for(;t32;)t++;return t}function bv(e,t,n){let r;for(;t=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function zu(e,t,n,r){return t=Gt(e,t,n),t32&&(a=s),i=o,o=r,r=u&-33}return a}function Gu(e,t,n,r){let o=-1,i=n;for(;i=0;n=bd(t,n))Ad(e,Ed(t),Iv(t))}function vx(e){ra(Rv,xd,e,!0)}function xd(e,t){for(let n=wv(t);n>=0;n=Cd(t,n))wn(e,Ed(t),!0)}function Sd(e,t,n,r){let o=m(),i=F(),s=Gc(2);if(i.firstUpdatePass&&Nd(i,e,s,r),t!==le&&ee(o,s,t)){let a=i.data[qe()];Od(i,a,o,o[R],e,o[s+1]=kv(t,n),r,s)}}function ra(e,t,n,r){let o=F(),i=Gc(2);o.firstUpdatePass&&Nd(o,null,i,r);let s=m();if(n!==le&&ee(s,i,n)){let a=o.data[qe()];if(Fd(a,r)&&!Td(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=li(u,n||"")),ss(o,a,s,n,r)}else Pv(o,a,s,s[R],s[i+1],s[i+1]=Fv(e,t,n),r,i)}}function Td(e,t){return t>=e.expandoStartIndex}function Nd(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[qe()],s=Td(e,n);Fd(i,r)&&t===null&&!s&&(t=!1),t=Tv(o,i,t,r),yv(o,i,t,n,s,r)}}function Tv(e,t,n,r){let o=Rs(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=si(null,e,t,n,r),n=Dn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=si(o,e,t,n,r),i===null){let u=Nv(e,t,r);u!==void 0&&Array.isArray(u)&&(u=si(null,e,t,u[1],r),u=Dn(u,t.attrs,r),Av(e,t,r,u))}else i=Ov(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Nv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(zt(r)!==0)return e[ht(r)]}function Av(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ht(o)]=r}function Ov(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[o+1];h===le&&(h=d?q:void 0);let f=d?Ko(h,r):l===r?h:void 0;if(c&&!Kr(f)&&(f=Ko(u,r)),Kr(f)&&(a=f,s))return a;let p=e[o+1];o=s?ht(p):zt(p)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=Ko(u,r))}return a}function Kr(e){return e!==void 0}function kv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Z(_n(e)))),e}function Fd(e,t){return(e.flags&(t?8:16))!==0}function Dx(e,t,n){let r=m(),o=na(r,e,t,n);ra(wn,xd,o,!0)}function Ix(){return m()[X][$]}var as=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ai(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Lv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=ai(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[u],p=ai(s,h,u,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,u--;continue}let v=n(i,c),O=n(s,h),_=n(i,l);if(Object.is(_,O)){let P=n(u,f);Object.is(P,v)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Jr,o??=Zu(e,i,s,n),us(e,r,i,_))e.updateValue(i,l),i++,s++;else if(o.has(_))r.set(v,e.detach(i)),s--;else{let P=e.create(i,t[i]);e.attach(i,P),i++,s++}}for(;i<=u;)qu(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,h=ai(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new Jr,o??=Zu(e,i,s,n);let f=n(i,d);if(us(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let p=n(i,l);r.set(p,e.detach(i)),s--}}}for(;!c.done;)qu(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function us(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function qu(e,t,n,r,o){if(us(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Zu(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Jr=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function wx(e,t){Ce("NgControlFlow");let n=m(),r=We(),o=n[r]!==le?n[r]:-1,i=o!==-1?Xr(n,H+o):void 0,s=0;if(ee(n,r,e)){let a=b(null);try{if(i!==void 0&&ed(i,s),e!==-1){let u=H+e,c=Xr(n,u),l=fs(n[w],u),d=$t(c,l.tView.ssrId),h=Sn(n,l,t,{dehydratedView:d});Tn(c,h,s,Vt(l,d))}}finally{b(a)}}else if(i!==void 0){let a=Xl(i,s);a!==void 0&&(a[$]=t)}}var cs=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-U}};function Ex(e){return e}function Cx(e,t){return t}var ls=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function bx(e,t,n,r,o,i,s,a,u,c,l,d,h){Ce("NgControlFlow");let f=m(),p=F(),v=u!==void 0,O=m(),_=a?s.bind(O[X][$]):s,P=new ls(v,_);O[H+e]=P,Qr(f,p,e+1,t,n,r,o,He(p.consts,i)),v&&Qr(f,p,e+2,u,c,l,d,He(p.consts,h))}var ds=class extends as{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-U}at(t){return this.getLView(t)[$].$implicit}attach(t,n){let r=n[kt];this.needsIndexUpdate||=t!==this.length,Tn(this.lContainer,n,t,Vt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,jv(this.lContainer,t)}create(t,n){let r=$t(this.lContainer,this.templateTNode.tView.ssrId),o=Sn(this.hostLView,this.templateTNode,new cs(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){mo(t[w],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[$].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(fo(!0),Tl(r,o,Yp()));function Uv(e,t,n,r,o){let i=t.consts,s=He(i,r),a=Qt(t,e,8,"ng-container",s);s!==null&&Gr(a,s,!0);let u=He(i,o);return Ys(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function kd(e,t,n){let r=m(),o=F(),i=e+H,s=o.firstCreatePass?Uv(i,o,r,t,n):o.data[i];pt(s,!0);let a=Gv(o,r,s,e);return r[i]=a,lo()&&yo(o,r,a,s),Ue(a,r),so(s)&&(Ws(o,r,s),Gs(o,s,r)),n!=null&&qs(r,s),kd}function Ld(){let e=B(),t=F();return Os()?Fs():(e=e.parent,pt(e,!1)),t.firstCreatePass&&(ho(t,e),Ss(e)&&t.queries.elementEnd(e)),Ld}function zv(e,t,n){return kd(e,t,n),Ld(),zv}var Gv=(e,t,n,r)=>(fo(!0),sm(t[R],""));function Mx(){return m()}function Wv(e,t,n){let r=m(),o=We();if(ee(r,o,t)){let i=F(),s=Zt();xn(i,s,r,e,t,r[R],n,!0)}return Wv}function qv(e,t,n){let r=m(),o=We();if(ee(r,o,t)){let i=F(),s=Zt(),a=Rs(i.data),u=Kl(a,s,r);xn(i,s,r,e,t,u,n,!0)}return qv}var eo="en-US";var Zv=eo;function Yv(e){typeof e=="string"&&(Zv=e.toLowerCase().replace(/_/g,"-"))}var Qv=(e,t,n)=>{};function Kv(e,t,n,r){let o=m(),i=F(),s=B();return oa(i,o,o[R],s,e,t,r),Kv}function Jv(e,t){let n=B(),r=m(),o=F(),i=Rs(o.data),s=Kl(i,n,r);return oa(o,r,s,n,e,t),Jv}function Xv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function oa(e,t,n,r,o,i,s){let a=so(r),c=e.firstCreatePass&&Ql(e),l=t[$],d=Yl(t),h=!0;if(r.type&3||s){let v=ce(r,t),O=s?s(v):v,_=d.length,P=s?de=>s(we(de[r.index])):r.index,_e=null;if(!s&&a&&(_e=Xv(e,t,o,r.index)),_e!==null){let de=_e.__ngLastListenerFn__||_e;de.__ngNextListenerFn__=i,_e.__ngLastListenerFn__=i,h=!1}else{i=Qu(r,t,l,i),Qv(v,o,i);let de=n.listen(O,o,i);d.push(i,de),c&&c.push(o,P,_,_+1)}}else i=Qu(r,t,l,i);let f=r.outputs,p;if(h&&f!==null&&(p=f[o])){let v=p.length;if(v)for(let O=0;O-1?Ge(e.index,t):t;Js(s,5);let a=Yu(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=Yu(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function xx(e=1){return qp(e)}function eD(e,t){let n=null,r=tp(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function kx(e){let t=$p();return kc(t,H+e)}function Lx(e,t=""){let n=m(),r=F(),o=e+H,i=r.firstCreatePass?Qt(r,o,1,t,null):r.data[o],s=oD(r,n,i,t,e);n[o]=s,lo()&&yo(r,n,s,i),pt(i,!1)}var oD=(e,t,n,r,o)=>(fo(!0),om(t[R],r));function iD(e){return Vd("",e,""),iD}function Vd(e,t,n){let r=m(),o=na(r,e,t,n);return o!==le&&qm(r,qe(),o),Vd}function sD(e,t,n){md(t)&&(t=t());let r=m(),o=We();if(ee(r,o,t)){let i=F(),s=Zt();xn(i,s,r,e,t,r[R],n,!1)}return sD}function jx(e,t){let n=md(e);return n&&e.set(t),n}function aD(e,t){let n=m(),r=F(),o=B();return oa(r,n,n[R],o,e,t),aD}function uD(e,t,n){let r=F();if(r.firstCreatePass){let o=Ne(e);hs(n,r.data,r.blueprint,o,!0),hs(t,r.data,r.blueprint,o,!1)}}function hs(e,t,n,r,o){if(e=W(e),Array.isArray(e))for(let i=0;i>20;if(Pt(e)||!e.multi){let f=new ct(c,o,re),p=ci(u,t,o?l:l+h,d);p===-1?(bi(jr(a,s),i,u),ui(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=ci(u,t,l+h,d),p=ci(u,t,l,l+h),v=f>=0&&n[f],O=p>=0&&n[p];if(o&&!O||!o&&!v){bi(jr(a,s),i,u);let _=dD(o?lD:cD,n.length,o,r,c);!o&&O&&(n[p].providerFactory=_),ui(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=Bd(n[o?p:f],c,!o&&r);ui(i,e,f>-1?f:p,_)}!o&&r&&O&&n[p].componentProviders++}}}function ui(e,t,n,r){let o=Pt(t),i=vp(t);if(o||i){let u=(i?W(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Bd(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ci(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>uD(r,o?o(e):e,t)}}var fD=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Cc(!1,n.type),o=r.length>0?tv([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=k({token:e,providedIn:"environment",factory:()=>new e(J($e))})}}return e})();function Bx(e){Ce("NgStandalone"),e.getStandaloneInjector=t=>t.get(fD).getOrCreateStandaloneInjector(e)}function $x(e,t,n){let r=qt()+e,o=m();return o[r]===le?Nn(o,r,n?t.call(n):t()):nv(o,r)}function Hx(e,t,n,r){return hD(m(),qt(),e,t,n,r)}function Ux(e,t,n,r,o){return $d(m(),qt(),e,t,n,r,o)}function zx(e,t,n,r,o,i){return pD(m(),qt(),e,t,n,r,o,i)}function Gx(e,t,n,r,o,i,s){return gD(m(),qt(),e,t,n,r,o,i,s)}function Co(e,t){let n=e[t];return n===le?void 0:n}function hD(e,t,n,r,o,i){let s=t+n;return ee(e,s,o)?Nn(e,s+1,i?r.call(i,o):r(o)):Co(e,s+1)}function $d(e,t,n,r,o,i,s){let a=t+n;return Yr(e,a,o,i)?Nn(e,a+2,s?r.call(s,o,i):r(o,i)):Co(e,a+2)}function pD(e,t,n,r,o,i,s,a){let u=t+n;return rv(e,u,o,i,s)?Nn(e,u+3,a?r.call(a,o,i,s):r(o,i,s)):Co(e,u+3)}function gD(e,t,n,r,o,i,s,a,u){let c=t+n;return ov(e,c,o,i,s,a)?Nn(e,c+4,u?r.call(u,o,i,s,a):r(o,i,s,a)):Co(e,c+4)}function Wx(e,t){let n=F(),r,o=e+H;n.firstCreatePass?(r=mD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=rt(r.type,!0)),s,a=Q(re);try{let u=Lr(!1),c=i();return Lr(u),rD(n,m(),o,c),c}finally{Q(a)}}function mD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function qx(e,t,n,r){let o=e+H,i=m(),s=kc(i,o);return yD(i,o)?$d(i,qt(),t,s.transform,n,r,s):s.transform(n,r)}function yD(e,t){return e[w].data[t].pure}function Zx(e,t){return wo(e,t)}var Yx=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var vD=new N("");function ia(e){return!!e&&typeof e.then=="function"}function Hd(e){return!!e&&typeof e.subscribe=="function"}var DD=new N(""),Ud=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=C(DD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(ia(i))n.push(i);else if(Hd(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ID=new N("");function wD(){xa(()=>{throw new S(600,!1)})}function ED(e){return e.isBoundToModule}var CD=10;function bD(e,t,n){try{let r=n();return ia(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var bo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(Ig),this.afterRenderManager=C(Dd),this.zonelessEnabled=C(Xs),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ie,this.afterTick=new ie,this.componentTypes=[],this.components=[],this.isStable=C(bn).hasPendingTasks.pipe(xe(n=>!n)),this._injector=C($e)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Ur;if(!this._injector.get(Ud).done){let h=!o&&dp(n),f=!1;throw new S(405,f)}let s;o?s=n:s=this._injector.get(Ut).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=ED(s)?void 0:this._injector.get(ze),u=r||s.selector,c=s.create(Ae.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(vD,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),_r(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new S(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,b(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(zr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++ao(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;_r(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(ID,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>_r(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function _r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function _D(e,t,n,r){if(!n&&!ao(e))return;rd(e,t,n&&!r?0:1)}var gs=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Qx=(()=>{class e{compileModuleSync(n){return new ts(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Ic(n),i=xl(o.declarations).reduce((s,a)=>{let u=ot(a);return u&&s.push(new vn(u)),s},[]);return new gs(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var MD=(()=>{class e{constructor(){this.zone=C(K),this.changeDetectionScheduler=C(Ht),this.applicationRef=C(bo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),xD=new N("",{factory:()=>!1});function zd({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new K(ye(me({},Gd()),{scheduleInRootZone:n})),[{provide:K,useFactory:e},{provide:Nr,multi:!0,useFactory:()=>{let r=C(MD,{optional:!0});return()=>r.initialize()}},{provide:Nr,multi:!0,useFactory:()=>{let r=C(SD);return()=>{r.initialize()}}},t===!0?{provide:ad,useValue:!0}:[],{provide:ud,useValue:n??cl}]}function Kx(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=zd({ngZoneFactory:()=>{let o=Gd(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Ce("NgZone_CoalesceEvent"),new K(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return hp([{provide:xD,useValue:!0},{provide:Xs,useValue:!1},r])}function Gd(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var SD=(()=>{class e{constructor(){this.subscription=new L,this.initialized=!1,this.zone=C(K),this.pendingTasks=C(bn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{K.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{K.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var TD=(()=>{class e{constructor(){this.appRef=C(bo),this.taskService=C(bn),this.ngZone=C(K),this.zonelessEnabled=C(Xs),this.disableScheduling=C(ad,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new L,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Br):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(ud,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ti||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?xu:ll;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Br+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,xu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ND(){return typeof $localize<"u"&&$localize.locale||eo}var sa=new N("",{providedIn:"root",factory:()=>C(sa,M.Optional|M.SkipSelf)||ND()});var Wd=new N("");function Dr(e){return!!e.platformInjector}function AD(e){let t=Dr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(K);return n.run(()=>{Dr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(dt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Dr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Wd);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else e.moduleRef.onDestroy(()=>{_r(e.allPlatformModules,e.moduleRef),o.unsubscribe()});return bD(r,n,()=>{let i=t.get(Ud);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(sa,eo);if(Yv(s||eo),Dr(e)){let a=t.get(bo);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return OD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function OD(e,t){let n=e.injector.get(bo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}var Mr=null;function FD(e=[],t){return Ae.create({name:t,providers:[{provide:Mc,useValue:"platform"},{provide:Wd,useValue:new Set([()=>Mr=null])},...e]})}function RD(e=[]){if(Mr)return Mr;let t=FD(e);return Mr=t,wD(),PD(t),t}function PD(e){e.get(Sg,null)?.forEach(n=>n())}function Jx(){return!1}var aa=(()=>{class e{static{this.__NG_ELEMENT_ID__=kD}}return e})();function kD(e){return LD(B(),m(),(e&16)===16)}function LD(e,t,n){if(io(e)&&!n){let r=Ge(e.index,t);return new ft(r,r)}else if(e.type&175){let r=t[X];return new ft(r,t)}return null}var ms=class{constructor(){}supports(t){return t instanceof Map||vd(t)}create(){return new ys}},ys=class{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 this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||vd(t)))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new vs(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},vs=class{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 Ku(){return new ua([new ms])}var ua=(()=>{class e{static{this.\u0275prov=k({token:e,providedIn:"root",factory:Ku})}constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Ku()),deps:[[e,new Uh,new Hh]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new S(901,!1)}}return e})();function Xx(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=RD(r),i=[zd({}),{provide:Ht,useExisting:TD},...n||[]],s=new Zr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return AD({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function jD(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function VD(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function eS(e,t){Ce("NgSignals");let n=No(e);return t?.equal&&(n[oe].equal=t.equal),n}function BD(e){let t=b(null);try{return e()}finally{b(t)}}var $D=new N("",{providedIn:"root",factory:()=>C(HD)}),HD=(()=>{class e{static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new Ds})}}return e})(),Ds=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=C(bn),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Is=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Aa(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(dt,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function UD(e,t){Ce("NgSignals"),!t?.injector&&Ms(UD);let n=t?.injector??C(Ae),r=t?.manualCleanup!==!0?n.get(po):null,o=new Is(n.get($D),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(aa,null,{optional:!0});return!i||!(i._lView[y]&8)?o.watcher.notify():(i._lView[wr]??=[]).push(o.watcher.notify),o}var Xd=null;function ca(){return Xd}function _S(e){Xd??=e}var qd=class{};var ef=new N(""),tf=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:()=>C(GD),providedIn:"platform"})}}return e})();var GD=(()=>{class e extends tf{constructor(){super(),this._doc=C(ef),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ca().getBaseHref(this._doc)}onPopState(n){let r=ca().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ca().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function nf(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Zd(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function gt(e){return e&&e[0]!=="?"?"?"+e:e}var fa=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:()=>C(qD),providedIn:"root"})}}return e})(),WD=new N(""),qD=(()=>{class e extends fa{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??C(ef).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return nf(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+gt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+gt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+gt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(J(tf),J(WD,8))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ZD=(()=>{class e{constructor(n){this._subject=new pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=KD(Zd(Yd(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+gt(r))}normalize(n){return e.stripTrailingSlash(QD(this._basePath,Yd(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=gt}static{this.joinWithSlash=nf}static{this.stripTrailingSlash=Zd}static{this.\u0275fac=function(r){return new(r||e)(J(fa))}}static{this.\u0275prov=k({token:e,factory:()=>YD(),providedIn:"root"})}}return e})();function YD(){return new ZD(J(fa))}function QD(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Yd(e){return e.replace(/\/index.html$/,"")}function KD(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function MS(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var la=/\s+/,Qd=[],xS=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=Qd,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(la):Qd}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(la):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(la).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(re(Ze),re(Eo))}}static{this.\u0275dir=Cn({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var SS=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new da,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Kd("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Kd("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(re(Kt),re(Bt))}}static{this.\u0275dir=Cn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),da=class{constructor(){this.$implicit=null,this.ngIf=null}};function Kd(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Z(t)}'.`)}var TS=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:mn.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static{this.\u0275fac=function(r){return new(r||e)(re(Ze),re(ua),re(Eo))}}static{this.\u0275dir=Cn({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return e})(),NS=(()=>{class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static{this.\u0275fac=function(r){return new(r||e)(re(Kt))}}static{this.\u0275dir=Cn({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ts]})}}return e})();var AS=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=yc({type:e})}static{this.\u0275inj=rc({})}}return e})(),JD="browser",XD="server";function OS(e){return e===JD}function FS(e){return e===XD}var Jd=class{};var be=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(be||{}),kS="*";function LS(e,t){return{type:be.Trigger,name:e,definitions:t,options:{}}}function jS(e,t=null){return{type:be.Animate,styles:t,timings:e}}function VS(e,t=null){return{type:be.Sequence,steps:e,options:t}}function BS(e){return{type:be.Style,styles:e,offset:null}}function $S(e,t,n){return{type:be.State,name:e,styles:t,options:n}}function HS(e){return{type:be.Keyframes,steps:e}}function US(e,t,n=null){return{type:be.Transition,expr:e,animation:t,options:n}}function zS(e=null){return{type:be.AnimateChild,options:e}}function GS(e,t,n=null){return{type:be.Query,selector:e,animation:t,options:n}}var rf=class{constructor(t=0,n=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+n}_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(){queueMicrotask(()=>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){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},of=class{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 n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},WS="!";export{me as a,ye as b,eI as c,lf as d,L as e,wf as f,x as g,Bo as h,$o as i,ie as j,nn as k,xf as l,Sf as m,Je as n,ae as o,kf as p,Lf as q,jf as r,et as s,xe as t,Wf as u,Se as v,fr as w,Zf as x,Yf as y,Go as z,Wo as A,nh as B,tt as C,oh as D,su as E,ih as F,sh as G,un as H,qo as I,ah as J,uh as K,dh as L,uu as M,Zo as N,fh as O,hh as P,ph as Q,Qo as R,gh as S,mh as T,yh as U,vh as V,Dh as W,Ih as X,wh as Y,S as Z,tc as _,k as $,rc as aa,GM as ba,N as ca,M as da,J as ea,C as fa,fn as ga,WM as ha,yc as ia,Cn as ja,lp as ka,hp as la,Mc as ma,$e as na,qM as oa,Ts as pa,ZM as qa,YM as ra,QM as sa,KM as ta,JM as ua,lg as va,Ae as wa,bn as xa,pe as ya,K as za,dt as Aa,Ze as Ba,Ni as Ca,XM as Da,ex as Ea,Sg as Fa,vl as Ga,tx as Ha,nx as Ia,_n as Ja,Rg as Ka,rx as La,ox as Ma,ix as Na,sx as Oa,ax as Pa,Il as Qa,ux as Ra,Ml as Sa,cx as Ta,lx as Ua,mn as Va,dx as Wa,re as Xa,fx as Ya,Bt as Za,Ht as _a,Ut as $a,zr as ab,Eo as bb,Kt as cb,Ce as db,Vy as eb,By as fb,mx as gb,Zy as hb,ev as ib,Xi as jb,tv as kb,av as lb,lv as mb,dv as nb,hv as ob,Mv as pb,Md as qb,xv as rb,yx as sb,vx as tb,Dx as ub,Ix as vb,wx as wb,Ex as xb,Cx as yb,bx as zb,_x as Ab,Rd as Bb,Pd as Cb,$v as Db,kd as Eb,Ld as Fb,zv as Gb,Mx as Hb,Wv as Ib,qv as Jb,Kv as Kb,Jv as Lb,xx as Mb,Sx as Nb,Tx as Ob,nD as Pb,Nx as Qb,Ax as Rb,Ox as Sb,Fx as Tb,Rx as Ub,Px as Vb,kx as Wb,Lx as Xb,iD as Yb,Vd as Zb,sD as _b,jx as $b,aD as ac,Vx as bc,Bx as cc,$x as dc,Hx as ec,Ux as fc,zx as gc,Gx as hc,Wx as ic,qx as jc,Zx as kc,Yx as lc,ia as mc,ID as nc,bo as oc,Qx as pc,Kx as qc,Jx as rc,aa as sc,ua as tc,Xx as uc,jD as vc,VD as wc,eS as xc,BD as yc,UD as zc,ca as Ac,_S as Bc,qd as Cc,ef as Dc,ZD as Ec,MS as Fc,xS as Gc,SS as Hc,TS as Ic,NS as Jc,AS as Kc,JD as Lc,OS as Mc,FS as Nc,Jd as Oc,be as Pc,kS as Qc,LS as Rc,jS as Sc,VS as Tc,BS as Uc,$S as Vc,HS as Wc,US as Xc,zS as Yc,GS as Zc,rf as _c,of as $c,WS as ad}; diff --git a/chunk-II77XEOM.js b/chunk-YANVSZEH.js similarity index 99% rename from chunk-II77XEOM.js rename to chunk-YANVSZEH.js index cbcb10b..bfa4108 100644 --- a/chunk-II77XEOM.js +++ b/chunk-YANVSZEH.js @@ -1 +1 @@ -import{$ as mt,$c as he,Oc as E,Pc as B,Sc as pt,Tc as Ne,Z as S,Zc as x,_c as Me,a as le,c as dt}from"./chunk-HTEVMZPS.js";function gt(n){return new S(3e3,!1)}function Wt(){return new S(3100,!1)}function Gt(){return new S(3101,!1)}function Ht(n){return new S(3001,!1)}function Yt(n){return new S(3003,!1)}function Xt(n){return new S(3004,!1)}function Zt(n,e){return new S(3005,!1)}function Jt(){return new S(3006,!1)}function xt(){return new S(3007,!1)}function es(n,e){return new S(3008,!1)}function ts(n){return new S(3002,!1)}function ss(n,e,t,s,i){return new S(3010,!1)}function is(){return new S(3011,!1)}function ns(){return new S(3012,!1)}function rs(){return new S(3200,!1)}function as(){return new S(3202,!1)}function os(){return new S(3013,!1)}function ls(n){return new S(3014,!1)}function hs(n){return new S(3015,!1)}function us(n){return new S(3016,!1)}function cs(n){return new S(3500,!1)}function fs(n){return new S(3501,!1)}function ds(n,e){return new S(3404,!1)}function ms(n){return new S(3502,!1)}function ps(n){return new S(3503,!1)}function gs(){return new S(3300,!1)}function ys(n){return new S(3504,!1)}function _s(n){return new S(3301,!1)}function Ss(n,e){return new S(3302,!1)}function Es(n){return new S(3303,!1)}function Ts(n,e){return new S(3400,!1)}function vs(n){return new S(3401,!1)}function ws(n){return new S(3402,!1)}function bs(n,e){return new S(3505,!1)}var As=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new x;case 1:return n[0];default:return new Me(n)}}function Lt(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==a,u=c&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case he:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),o=u,a=h}),i.length)throw ms(i);return r}function et(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=tt(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function tt(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function yt(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ps=typeof document>"u"?null:document.documentElement;function st(n){let e=n.parentNode||n.host||null;return e===Ps?null:e}function Ns(n){return n.substring(1,6)=="ebkit"}var H=null,_t=!1;function Ms(n){H||(H=Cs()||{},_t=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Ns(n)&&(e=n in H.style,!e&&_t&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in H.style)),e}function wi(n){return As.has(n)}function Cs(){return typeof document<"u"?document.body:null}function Ft(n,e){for(;e;){if(e===n)return!0;e=st(e)}return!1}function It(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{class n{validateStyleProperty(t){return Ms(t)}containsElement(t,s){return Ft(t,s)}getParentElement(t){return st(t)}query(t,s,i){return It(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new x(i,r)}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=mt({token:n,factory:n.\u0275fac})}}return n})(),St=class{static{this.NOOP=new zt}},Fe=class{},Ie=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},ks=1e3,Kt="{{",Ds="}}",it="ng-enter",pe="ng-leave",ue="ng-trigger",ge=".ng-trigger",Et="ng-animating",ze=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ke(parseFloat(e[1]),e[2])}function Ke(n,e){switch(e){case"s":return n*ks;default:return n}}function ye(n,e,t){return n.hasOwnProperty("duration")?n:Rs(n,e,t)}function Rs(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(gt(n)),{duration:0,delay:0,easing:""};i=Ke(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Ke(parseFloat(l),o[4]));let h=o[5];h&&(a=h)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(Wt()),o=!0),r<0&&(e.push(Gt()),o=!0),o&&e.splice(l,0,gt(n))}return{duration:i,delay:r,easing:a}}function Os(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function Tt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=nt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function X(n,e){e.forEach((t,s)=>{let i=nt(s);n.style[i]=""})}function se(n){return Array.isArray(n)?n.length==1?n[0]:pt(n):n}function Ls(n,e,t){let s=e.params||{},i=qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Ht(r))})}var qe=new RegExp(`${Kt}\\s*(.+?)\\s*${Ds}`,"g");function qt(n){let e=[];if(typeof n=="string"){let t;for(;t=qe.exec(n);)e.push(t[1]);qe.lastIndex=0}return e}function ne(n,e,t){let s=`${n}`,i=s.replace(qe,(r,a)=>{let o=e[a];return o==null&&(t.push(Yt(a)),o=""),o.toString()});return i==s?n:i}var Fs=/-+([a-z0-9])/g;function nt(n){return n.replace(Fs,(...e)=>e[1].toUpperCase())}function bi(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Is(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,rt(n,o)))}}return e}function O(n,e,t){switch(e.type){case E.Trigger:return n.visitTrigger(e,t);case E.State:return n.visitState(e,t);case E.Transition:return n.visitTransition(e,t);case E.Sequence:return n.visitSequence(e,t);case E.Group:return n.visitGroup(e,t);case E.Animate:return n.visitAnimate(e,t);case E.Keyframes:return n.visitKeyframes(e,t);case E.Style:return n.visitStyle(e,t);case E.Reference:return n.visitReference(e,t);case E.AnimateChild:return n.visitAnimateChild(e,t);case E.AnimateRef:return n.visitAnimateRef(e,t);case E.Query:return n.visitQuery(e,t);case E.Stagger:return n.visitStagger(e,t);default:throw Xt(e.type)}}function rt(n,e){return window.getComputedStyle(n)[e]}var Ks=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"]),Be=class extends Fe{normalizePropertyName(e,t){return nt(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Ks.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(Zt(e,s))}return a+r}};var _e="*";function qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Bs(s,t,e)):t.push(n),t}function Bs(n,e,t){if(n[0]==":"){let l=Qs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(hs(n)),e;let i=s[1],r=s[2],a=s[3];e.push(vt(i,a));let o=i==_e&&a==_e;r[0]=="<"&&!o&&e.push(vt(a,i))}function Qs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var ce=new Set(["true","1"]),fe=new Set(["false","0"]);function vt(n,e){let t=ce.has(n)||fe.has(n),s=ce.has(e)||fe.has(e);return(i,r)=>{let a=n==_e||n==i,o=e==_e||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?ce.has(n):fe.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?ce.has(e):fe.has(e)),a&&o}}var Bt=":self",$s=new RegExp(`s*${Bt}s*,?`,"g");function at(n,e,t,s){return new Qe(n).build(e,t,s)}var wt="",Qe=class{constructor(e){this._driver=e}build(e,t,s){let i=new $e(t);return this._resetContextStyleTimingState(i),O(this,se(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=wt,e.collectedStyles=new Map,e.collectedStyles.set(wt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Jt()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(xt())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{qt(l).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(es(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,se(e.animation),t),i=qs(e.expr,t.errors);return{type:E.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=Ws(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Ne({});if(r.type==E.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let h={};s.easing&&(h.easing=s.easing),a=Ne(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?s.push(o):t.errors.push(ts(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Kt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ss(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Ls(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(is()),s;let i=1,r=0,a=[],o=!1,l=!1,h=0,c=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:js(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,se(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Vs(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(os());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ye(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,se(e.animation),t),timings:s,options:null}}};function Vs(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Bt);return e&&(n=n.replace($s,"")),n=n.replace(/@\*/g,ge).replace(/@\w+/g,t=>ge+"-"+t.slice(1)).replace(/:animating/g,ze),[n,e]}function Us(n){return n?le({},n):null}var $e=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function js(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ws(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ye(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=ye(t,e);return ke(i.duration,i.delay,i.easing)}function Y(n){return n?(n=le({},n),n.params&&(n.params=Us(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function ot(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var te=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Gs=1,Hs=":enter",Ys=new RegExp(Hs,"g"),Xs=":leave",Zs=new RegExp(Xs,"g");function lt(n,e,t,s,i,r=new Map,a=new Map,o,l,h=[]){return new Ve().buildKeyframes(n,e,t,s,i,r,a,o,l,h)}var Ve=class{buildKeyframes(e,t,s,i,r,a,o,l,h,c=[]){h=h||new te;let u=new Ue(e,t,h,i,r,c,[]);u.options=l;let _=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[ot(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:$(ne(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==E.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Se);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?ne(s,t.params,t.errors):s;return ye(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;o.forwardTime(h*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},Se={},Ue=class n{constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Se,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=ne(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new je(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Ys,"."+this._enterClassName),e=e.replace(Zs,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),o.push(...h)}return!r&&o.length==0&&a.push(ls(t)),o}},Ee=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Gs,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Js(e,this._globalTimelineStyles);for(let[o,l]of a){let h=ne(l,r,s);this._pendingStyles.set(o,h),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let h=new Map([...this._backFill,...o]);h.forEach((c,u)=>{c===he?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return ot(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},je=class extends Ee{constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",bt(o)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let _=new Map(e[u]),y=_.get("offset"),d=t+y*s;_.set("offset",bt(d/a)),r.push(_)}s=a,t=0,i="",e=r}return ot(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function bt(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Js(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of i)t.set(r,a)}),t}function At(n,e,t,s,i,r,a,o,l,h,c,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:_}}var De={},Te=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return xs(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,h,c){let u=[],_=this.ast.options&&this.ast.options.params||De,y=o&&o.params||De,d=this.buildStyles(s,y,u),g=l&&l.params||De,v=this.buildStyles(i,g,u),b=new Set,A=new Map,C=new Map,N=i==="void",Z={params:Qt(g,_),delay:this.ast.options?.delay},K=c?[]:lt(e,t,this.ast.animation,r,a,d,v,Z,h,u),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),u.length?At(t,this._triggerName,s,i,N,d,v,[],[],A,C,k,u):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let ht=L(C,j,new Set);D.postStyleProps.forEach(W=>ht.add(W)),j!==t&&b.add(j)}),At(t,this._triggerName,s,i,N,d,v,K,[...b.values()],A,C,k))}};function xs(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Qt(n,e){let t=le({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var We=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Qt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=ne(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function ei(n,e,t){return new Ge(n,e,t)}var Ge=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new We(i.style,r,s))}),Pt(this.states,"true","1"),Pt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Te(e,i,this.states))}),this.fallbackTransition=ti(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(n,e,t){let s=[(a,o)=>!0],i={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new Te(n,r,e)}function Pt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var si=new te,He=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ps(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=Lt(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=lt(this._driver,t,r,it,pe,new Map,new Map,s,si,i),a.forEach(c=>{let u=L(o,c.element,new Map);c.postStyleProps.forEach(_=>u.set(_,null))})):(i.push(gs()),a=[]),i.length)throw ys(i);o.forEach((c,u)=>{c.forEach((_,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=a.map(c=>{let u=o.get(c.element);return this._buildPlayer(c,new Map,u)}),h=U(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw _s(e);return t}listen(e,t,s,i){let r=tt(t,"","","");return et(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Nt="ng-animate-queued",ii=".ng-animate-queued",Re="ng-animate-disabled",ni=".ng-animate-disabled",ri="ng-star-inserted",ai=".ng-star-inserted",oi=[],$t={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},li={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",re=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=ui(i),s){let r=e,{value:a}=r,o=dt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},ie="void",Oe=new re(ie),Ye=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ss(s,t);if(s==null||s.length==0)throw Es(t);if(!ci(s))throw Ts(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ue),I(e,ue+"-"+t),o.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new ae(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ue),I(e,ue+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),h=new re(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),o.set(t,h),l||(l=Oe),!(h.value===ie)&&l.value===h.value){if(!mi(l.params,h.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:a,isFallbackTransition:d}),d||(I(e,Nt),a.onStart(()=>{ee(e,Nt)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ge,!0);s.forEach(i=>{if(i[z])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,h)=>{if(a.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,ie,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,h=s.get(a)||Oe,c=new re(ie),u=new ae(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===$t)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=tt(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,et(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,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=(i,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ye(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(de(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!de(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(de(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return de(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ge,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ze,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=$t,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ni,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw ws(e)}_flushAnimations(e,t){let s=new te,i=[],r=new Map,a=[],o=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ii,!0);for(let p=0;p{let p=it+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=kt(_,Array.from(b));N.forEach((f,m)=>{let p=pe+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let oe=F.get(p.triggerName);oe.value=G,F.set(p.triggerName,oe)}}T.destroy();return}}let q=!u||!this.driver.containsElement(u,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}let ft=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||ft.push(M)}),w.timelines=ft,s.append(P,w.timelines);let jt={instruction:w,player:T,element:P};a.push(jt),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))}}),w.postStyleProps.forEach((M,G)=>{let F=h.get(G);F||h.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))})});if(K.length){let f=[];K.forEach(m=>{f.push(bs(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>Dt(f,l,h)),J=new Map;Ct(J,this.driver,A,h,B).forEach(f=>{Dt(f,l,h)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Ct(W,this.driver,new Set(f),l,he)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ae=[],ut=[],ct={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let P=ct;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===ct)Ae.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),i.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ut.push(p),c.has(m)&&i.push(p)}),ut.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?fi(this,m,P):this.processLeaveNode(m)}return v.length=0,Ae.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ie;o.forEach(h=>{h.queued||!l&&h.triggerName!=i||a.push(h)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=L(s,h,[]);this._getPreviousPlayers(h,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,_=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=di((s.get(g)||oi).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=Lt(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&i&&u.add(g),b){let k=new ae(e,o,g);k.setRealPlayer(K),h.push(k)}return K});h.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>hi(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Et));let y=U(_);return y.onDestroy(()=>{c.forEach(d=>ee(d,Et)),Q(l,t.toStyles)}),u.forEach(d=>{L(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},ae=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new x,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>et(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function hi(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function ui(n){return n??null}function de(n){return n&&n.nodeType===1}function ci(n){return n=="start"||n=="done"}function Mt(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Ct(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Mt(l)));let a=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let _=e.computeStyle(h,u,i);c.set(u,_),(!_||_.length==0)&&(h[z]=li,a.push(h))}),n.set(h,c)});let o=0;return t.forEach(l=>Mt(l,r[o++])),a}function kt(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let h=o.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=a(h),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function fi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function di(n){let e=[];return Vt(n,e),e}function Vt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var ve=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new Xe(e.body,t,s),this._timelineEngine=new He(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ds(i,l);h.length&&void 0,o=ei(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=yt(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=yt(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function pi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var Ze=class n{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=n.initialStylesByElement.get(e);i||n.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};function Le(n){let e=null;return n.forEach((t,s)=>{gi(s)&&(e=e||new Map,e.set(s,t))}),e}function gi(n){return n==="display"||n==="position"}var we=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,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=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:rt(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Ft(e,t)}getParentElement(e){return st(e)}query(e,t,s){return It(e,t,s)}computeStyle(e,t,s){return rt(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let h=new Map,c=a.filter(y=>y instanceof we);Is(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Os(t).map(y=>new Map(y));u=zs(e,u,h);let _=pi(e,u);return new we(e,u,l,_)}};function Ai(n,e){return n==="noop"?new ve(e,new zt,new Ie):new ve(e,new Je,new Be)}var Rt=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw cs(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?Tt(t):t,o=Array.isArray(s)?Tt(s):s,l=[];r=r||new te;let h=lt(this._driver,e,this._animationAst,it,pe,a,o,i,r,l);if(l.length)throw fs(l);return h}},me="@",Ut="@.disabled",be=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==me&&t==Ut?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},xe=class extends be{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==me?t.charAt(1)=="."&&t==Ut?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==me){let i=yi(e),r=t.slice(1),a="";return r.charAt(0)!=me&&([r,a]=_i(r)),this.engine.listen(this.namespaceId,i,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function yi(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function _i(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Ot=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new be(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new xe(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{St as AnimationDriver,zt as NoopAnimationDriver,Rt as \u0275Animation,ve as \u0275AnimationEngine,xe as \u0275AnimationRenderer,Ot as \u0275AnimationRendererFactory,Fe as \u0275AnimationStyleNormalizer,be as \u0275BaseAnimationRenderer,Ie as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,we as \u0275WebAnimationsPlayer,Be as \u0275WebAnimationsStyleNormalizer,Is as \u0275allowPreviousPlayerStylesMerge,bi as \u0275camelCaseToDashCase,Ft as \u0275containsElement,Ai as \u0275createEngine,st as \u0275getParentElement,It as \u0275invokeQuery,Os as \u0275normalizeKeyframes,Ms as \u0275validateStyleProperty,wi as \u0275validateWebAnimatableStyleProperty}; +import{$ as mt,$c as Me,Pc as E,Qc as B,Tc as pt,Uc as Ne,Z as S,_c as x,a as le,ad as he,c as dt}from"./chunk-5EAT4YYT.js";function gt(n){return new S(3e3,!1)}function Wt(){return new S(3100,!1)}function Gt(){return new S(3101,!1)}function Ht(n){return new S(3001,!1)}function Yt(n){return new S(3003,!1)}function Xt(n){return new S(3004,!1)}function Zt(n,e){return new S(3005,!1)}function Jt(){return new S(3006,!1)}function xt(){return new S(3007,!1)}function es(n,e){return new S(3008,!1)}function ts(n){return new S(3002,!1)}function ss(n,e,t,s,i){return new S(3010,!1)}function is(){return new S(3011,!1)}function ns(){return new S(3012,!1)}function rs(){return new S(3200,!1)}function as(){return new S(3202,!1)}function os(){return new S(3013,!1)}function ls(n){return new S(3014,!1)}function hs(n){return new S(3015,!1)}function us(n){return new S(3016,!1)}function cs(n){return new S(3500,!1)}function fs(n){return new S(3501,!1)}function ds(n,e){return new S(3404,!1)}function ms(n){return new S(3502,!1)}function ps(n){return new S(3503,!1)}function gs(){return new S(3300,!1)}function ys(n){return new S(3504,!1)}function _s(n){return new S(3301,!1)}function Ss(n,e){return new S(3302,!1)}function Es(n){return new S(3303,!1)}function Ts(n,e){return new S(3400,!1)}function vs(n){return new S(3401,!1)}function ws(n){return new S(3402,!1)}function bs(n,e){return new S(3505,!1)}var As=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new x;case 1:return n[0];default:return new Me(n)}}function Lt(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==a,u=c&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case he:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),o=u,a=h}),i.length)throw ms(i);return r}function et(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=tt(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function tt(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function L(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function yt(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ps=typeof document>"u"?null:document.documentElement;function st(n){let e=n.parentNode||n.host||null;return e===Ps?null:e}function Ns(n){return n.substring(1,6)=="ebkit"}var H=null,_t=!1;function Ms(n){H||(H=Cs()||{},_t=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Ns(n)&&(e=n in H.style,!e&&_t&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in H.style)),e}function wi(n){return As.has(n)}function Cs(){return typeof document<"u"?document.body:null}function Ft(n,e){for(;e;){if(e===n)return!0;e=st(e)}return!1}function It(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{class n{validateStyleProperty(t){return Ms(t)}containsElement(t,s){return Ft(t,s)}getParentElement(t){return st(t)}query(t,s,i){return It(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new x(i,r)}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=mt({token:n,factory:n.\u0275fac})}}return n})(),St=class{static{this.NOOP=new zt}},Fe=class{},Ie=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},ks=1e3,Kt="{{",Ds="}}",it="ng-enter",pe="ng-leave",ue="ng-trigger",ge=".ng-trigger",Et="ng-animating",ze=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ke(parseFloat(e[1]),e[2])}function Ke(n,e){switch(e){case"s":return n*ks;default:return n}}function ye(n,e,t){return n.hasOwnProperty("duration")?n:Rs(n,e,t)}function Rs(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(gt(n)),{duration:0,delay:0,easing:""};i=Ke(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Ke(parseFloat(l),o[4]));let h=o[5];h&&(a=h)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(Wt()),o=!0),r<0&&(e.push(Gt()),o=!0),o&&e.splice(l,0,gt(n))}return{duration:i,delay:r,easing:a}}function Os(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function Tt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=nt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function X(n,e){e.forEach((t,s)=>{let i=nt(s);n.style[i]=""})}function se(n){return Array.isArray(n)?n.length==1?n[0]:pt(n):n}function Ls(n,e,t){let s=e.params||{},i=qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Ht(r))})}var qe=new RegExp(`${Kt}\\s*(.+?)\\s*${Ds}`,"g");function qt(n){let e=[];if(typeof n=="string"){let t;for(;t=qe.exec(n);)e.push(t[1]);qe.lastIndex=0}return e}function ne(n,e,t){let s=`${n}`,i=s.replace(qe,(r,a)=>{let o=e[a];return o==null&&(t.push(Yt(a)),o=""),o.toString()});return i==s?n:i}var Fs=/-+([a-z0-9])/g;function nt(n){return n.replace(Fs,(...e)=>e[1].toUpperCase())}function bi(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Is(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,rt(n,o)))}}return e}function O(n,e,t){switch(e.type){case E.Trigger:return n.visitTrigger(e,t);case E.State:return n.visitState(e,t);case E.Transition:return n.visitTransition(e,t);case E.Sequence:return n.visitSequence(e,t);case E.Group:return n.visitGroup(e,t);case E.Animate:return n.visitAnimate(e,t);case E.Keyframes:return n.visitKeyframes(e,t);case E.Style:return n.visitStyle(e,t);case E.Reference:return n.visitReference(e,t);case E.AnimateChild:return n.visitAnimateChild(e,t);case E.AnimateRef:return n.visitAnimateRef(e,t);case E.Query:return n.visitQuery(e,t);case E.Stagger:return n.visitStagger(e,t);default:throw Xt(e.type)}}function rt(n,e){return window.getComputedStyle(n)[e]}var Ks=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"]),Be=class extends Fe{normalizePropertyName(e,t){return nt(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(Ks.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(Zt(e,s))}return a+r}};var _e="*";function qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Bs(s,t,e)):t.push(n),t}function Bs(n,e,t){if(n[0]==":"){let l=Qs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(hs(n)),e;let i=s[1],r=s[2],a=s[3];e.push(vt(i,a));let o=i==_e&&a==_e;r[0]=="<"&&!o&&e.push(vt(a,i))}function Qs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var ce=new Set(["true","1"]),fe=new Set(["false","0"]);function vt(n,e){let t=ce.has(n)||fe.has(n),s=ce.has(e)||fe.has(e);return(i,r)=>{let a=n==_e||n==i,o=e==_e||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?ce.has(n):fe.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?ce.has(e):fe.has(e)),a&&o}}var Bt=":self",$s=new RegExp(`s*${Bt}s*,?`,"g");function at(n,e,t,s){return new Qe(n).build(e,t,s)}var wt="",Qe=class{constructor(e){this._driver=e}build(e,t,s){let i=new $e(t);return this._resetContextStyleTimingState(i),O(this,se(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=wt,e.collectedStyles=new Map,e.collectedStyles.set(wt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Jt()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(xt())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{qt(l).forEach(h=>{a.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(es(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,se(e.animation),t),i=qs(e.expr,t.errors);return{type:E.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=Ws(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Ne({});if(r.type==E.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let h={};s.easing&&(h.easing=s.easing),a=Ne(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?s.push(o):t.errors.push(ts(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(Kt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ss(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Ls(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(is()),s;let i=1,r=0,a=[],o=!1,l=!1,h=0,c=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:js(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,se(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Vs(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(os());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ye(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,se(e.animation),t),timings:s,options:null}}};function Vs(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Bt);return e&&(n=n.replace($s,"")),n=n.replace(/@\*/g,ge).replace(/@\w+/g,t=>ge+"-"+t.slice(1)).replace(/:animating/g,ze),[n,e]}function Us(n){return n?le({},n):null}var $e=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function js(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ws(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ye(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=ye(t,e);return ke(i.duration,i.delay,i.easing)}function Y(n){return n?(n=le({},n),n.params&&(n.params=Us(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function ot(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var te=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Gs=1,Hs=":enter",Ys=new RegExp(Hs,"g"),Xs=":leave",Zs=new RegExp(Xs,"g");function lt(n,e,t,s,i,r=new Map,a=new Map,o,l,h=[]){return new Ve().buildKeyframes(n,e,t,s,i,r,a,o,l,h)}var Ve=class{buildKeyframes(e,t,s,i,r,a,o,l,h,c=[]){h=h||new te;let u=new Ue(e,t,h,i,r,c,[]);u.options=l;let _=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[ot(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:$(ne(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==E.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Se);let a=$(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?ne(s,t.params,t.errors):s;return ye(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;o.forwardTime(h*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},Se={},Ue=class n{constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Se,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=ne(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new je(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Ys,"."+this._enterClassName),e=e.replace(Zs,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),o.push(...h)}return!r&&o.length==0&&a.push(ls(t)),o}},Ee=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Gs,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Js(e,this._globalTimelineStyles);for(let[o,l]of a){let h=ne(l,r,s);this._pendingStyles.set(o,h),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let h=new Map([...this._backFill,...o]);h.forEach((c,u)=>{c===he?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return ot(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},je=class extends Ee{constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",bt(o)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let _=new Map(e[u]),y=_.get("offset"),d=t+y*s;_.set("offset",bt(d/a)),r.push(_)}s=a,t=0,i="",e=r}return ot(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function bt(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Js(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of i)t.set(r,a)}),t}function At(n,e,t,s,i,r,a,o,l,h,c,u,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:_}}var De={},Te=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return xs(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,h,c){let u=[],_=this.ast.options&&this.ast.options.params||De,y=o&&o.params||De,d=this.buildStyles(s,y,u),g=l&&l.params||De,v=this.buildStyles(i,g,u),b=new Set,A=new Map,C=new Map,N=i==="void",Z={params:Qt(g,_),delay:this.ast.options?.delay},K=c?[]:lt(e,t,this.ast.animation,r,a,d,v,Z,h,u),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),u.length?At(t,this._triggerName,s,i,N,d,v,[],[],A,C,k,u):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let ht=L(C,j,new Set);D.postStyleProps.forEach(W=>ht.add(W)),j!==t&&b.add(j)}),At(t,this._triggerName,s,i,N,d,v,K,[...b.values()],A,C,k))}};function xs(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Qt(n,e){let t=le({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var We=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Qt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=ne(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function ei(n,e,t){return new Ge(n,e,t)}var Ge=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new We(i.style,r,s))}),Pt(this.states,"true","1"),Pt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Te(e,i,this.states))}),this.fallbackTransition=ti(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(n,e,t){let s=[(a,o)=>!0],i={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new Te(n,r,e)}function Pt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var si=new te,He=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ps(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=Lt(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=lt(this._driver,t,r,it,pe,new Map,new Map,s,si,i),a.forEach(c=>{let u=L(o,c.element,new Map);c.postStyleProps.forEach(_=>u.set(_,null))})):(i.push(gs()),a=[]),i.length)throw ys(i);o.forEach((c,u)=>{c.forEach((_,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=a.map(c=>{let u=o.get(c.element);return this._buildPlayer(c,new Map,u)}),h=U(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw _s(e);return t}listen(e,t,s,i){let r=tt(t,"","","");return et(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Nt="ng-animate-queued",ii=".ng-animate-queued",Re="ng-animate-disabled",ni=".ng-animate-disabled",ri="ng-star-inserted",ai=".ng-star-inserted",oi=[],$t={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},li={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",re=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=ui(i),s){let r=e,{value:a}=r,o=dt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},ie="void",Oe=new re(ie),Ye=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Ss(s,t);if(s==null||s.length==0)throw Es(t);if(!ci(s))throw Ts(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ue),I(e,ue+"-"+t),o.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw vs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new ae(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ue),I(e,ue+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),h=new re(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),o.set(t,h),l||(l=Oe),!(h.value===ie)&&l.value===h.value){if(!mi(l.params,h.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:a,isFallbackTransition:d}),d||(I(e,Nt),a.onStart(()=>{ee(e,Nt)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ge,!0);s.forEach(i=>{if(i[z])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,h)=>{if(a.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,ie,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,h=s.get(a)||Oe,c=new re(ie),u=new ae(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===$t)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=tt(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,et(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,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=(i,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ye(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(de(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!de(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(de(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return de(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ge,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ze,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=$t,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ni,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw ws(e)}_flushAnimations(e,t){let s=new te,i=[],r=new Map,a=[],o=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ii,!0);for(let p=0;p{let p=it+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=kt(_,Array.from(b));N.forEach((f,m)=>{let p=pe+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let oe=F.get(p.triggerName);oe.value=G,F.set(p.triggerName,oe)}}T.destroy();return}}let q=!u||!this.driver.containsElement(u,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),i.push(T);return}let ft=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||ft.push(M)}),w.timelines=ft,s.append(P,w.timelines);let jt={instruction:w,player:T,element:P};a.push(jt),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))}}),w.postStyleProps.forEach((M,G)=>{let F=h.get(G);F||h.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))})});if(K.length){let f=[];K.forEach(m=>{f.push(bs(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>Dt(f,l,h)),J=new Map;Ct(J,this.driver,A,h,B).forEach(f=>{Dt(f,l,h)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Ct(W,this.driver,new Set(f),l,he)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ae=[],ut=[],ct={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let P=ct;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===ct)Ae.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),i.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ut.push(p),c.has(m)&&i.push(p)}),ut.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?fi(this,m,P):this.processLeaveNode(m)}return v.length=0,Ae.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ie;o.forEach(h=>{h.queued||!l&&h.triggerName!=i||a.push(h)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=L(s,h,[]);this._getPreviousPlayers(h,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,_=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=di((s.get(g)||oi).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=Lt(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&i&&u.add(g),b){let k=new ae(e,o,g);k.setRealPlayer(K),h.push(k)}return K});h.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>hi(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Et));let y=U(_);return y.onDestroy(()=>{c.forEach(d=>ee(d,Et)),Q(l,t.toStyles)}),u.forEach(d=>{L(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},ae=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new x,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>et(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function hi(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function ui(n){return n??null}function de(n){return n&&n.nodeType===1}function ci(n){return n=="start"||n=="done"}function Mt(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Ct(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Mt(l)));let a=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let _=e.computeStyle(h,u,i);c.set(u,_),(!_||_.length==0)&&(h[z]=li,a.push(h))}),n.set(h,c)});let o=0;return t.forEach(l=>Mt(l,r[o++])),a}function kt(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let h=o.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=a(h),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function fi(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function di(n){let e=[];return Vt(n,e),e}function Vt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var ve=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new Xe(e.body,t,s),this._timelineEngine=new He(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ds(i,l);h.length&&void 0,o=ei(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=yt(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=yt(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function pi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var Ze=class n{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=n.initialStylesByElement.get(e);i||n.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};function Le(n){let e=null;return n.forEach((t,s)=>{gi(s)&&(e=e||new Map,e.set(s,t))}),e}function gi(n){return n==="display"||n==="position"}var we=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,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=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:rt(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Ft(e,t)}getParentElement(e){return st(e)}query(e,t,s){return It(e,t,s)}computeStyle(e,t,s){return rt(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let h=new Map,c=a.filter(y=>y instanceof we);Is(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Os(t).map(y=>new Map(y));u=zs(e,u,h);let _=pi(e,u);return new we(e,u,l,_)}};function Ai(n,e){return n==="noop"?new ve(e,new zt,new Ie):new ve(e,new Je,new Be)}var Rt=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw cs(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?Tt(t):t,o=Array.isArray(s)?Tt(s):s,l=[];r=r||new te;let h=lt(this._driver,e,this._animationAst,it,pe,a,o,i,r,l);if(l.length)throw fs(l);return h}},me="@",Ut="@.disabled",be=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==me&&t==Ut?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},xe=class extends be{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==me?t.charAt(1)=="."&&t==Ut?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==me){let i=yi(e),r=t.slice(1),a="";return r.charAt(0)!=me&&([r,a]=_i(r)),this.engine.listen(this.namespaceId,i,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function yi(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function _i(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Ot=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new be(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=h=>{Array.isArray(h)?h.forEach(o):this.engine.registerTrigger(r,a,e,h.name,h)};return t.data.animation.forEach(o),new xe(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{St as AnimationDriver,zt as NoopAnimationDriver,Rt as \u0275Animation,ve as \u0275AnimationEngine,xe as \u0275AnimationRenderer,Ot as \u0275AnimationRendererFactory,Fe as \u0275AnimationStyleNormalizer,be as \u0275BaseAnimationRenderer,Ie as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,we as \u0275WebAnimationsPlayer,Be as \u0275WebAnimationsStyleNormalizer,Is as \u0275allowPreviousPlayerStylesMerge,bi as \u0275camelCaseToDashCase,Ft as \u0275containsElement,Ai as \u0275createEngine,st as \u0275getParentElement,It as \u0275invokeQuery,Os as \u0275normalizeKeyframes,Ms as \u0275validateStyleProperty,wi as \u0275validateWebAnimatableStyleProperty}; diff --git a/index.html b/index.html index 2a99f20..5cb4279 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,5 @@ - + diff --git a/main-3LEEA4NZ.js b/main-3LEEA4NZ.js new file mode 100644 index 0000000..0dc7cb4 --- /dev/null +++ b/main-3LEEA4NZ.js @@ -0,0 +1,68 @@ +import{$ as L,$a as un,$b as Be,A as ed,Aa as Ni,Ab as Ve,Ac as mn,B as ke,Ba as F,Bb as h,Bc as Vd,C as ve,Ca as sn,Cb as m,Cc as jd,D as er,Da as hd,Db as y,Dc as X,E as qt,Ea as nr,Eb as sr,Ec as pn,F as Fi,Fa as md,Fb as lr,Fc as Bd,G as St,Ga as Li,Gb as Ja,Gc as fn,H as qa,Ha as Ie,Hb as J,Hc as gn,I as Ye,Ia as rr,Ib as Dt,Ic as _n,J as td,Ja as ln,Jb as Sd,Jc as jt,K as ni,Ka as cn,Kb as S,Kc as Oe,L as ri,La as pd,Lb as kd,Lc as zd,M as vi,Ma as fd,Mb as u,Mc as Ud,N as Ya,Na as gd,Nb as de,Nc as ns,O as id,Oa as _d,Ob as q,Oc as Hd,P as nd,Pa as bd,Pb as Md,Q as rd,Qa as vd,Qb as Y,R as od,Ra as yd,Rb as Q,Rc as At,S as Qa,Sa as gt,Sb as k,Sc as rt,T as an,Ta as Vi,Tb as M,U as Ge,Ua as or,Ub as Dd,Uc as Re,V as Qe,Va as ar,Vb as Ad,Vc as bt,W as oe,Wa as d,Wb as be,Wc as Gd,X as ad,Xa as c,Xb as ee,Xc as tt,Y as Ce,Ya as dn,Yb as ue,Yc as $d,Z as Ee,Za as U,Zb as xi,Zc as Wd,_ as ce,_a as xd,_b as je,a as A,aa as V,ab as ho,ac as ze,b as ye,ba as sd,bb as hn,bc as W,ca as O,cb as We,cc as z,d as so,da as Xa,db as wd,dc as po,e as ge,ea as E,eb as Za,ec as Xe,f as Kc,fa as R,fb as yi,fc as Me,g as ft,ga as tr,gb as Cd,gc as Lt,h as Ga,ha as N,hb as _e,hc as cr,i as lo,ia as j,ib as ne,ic as es,j as P,ja as I,jb as Td,jc as ts,k as it,ka as ld,kb as Ed,kc as _t,l as $a,la as ir,lb as b,lc as fo,m as Wa,ma as cd,mb as mo,mc as go,n as lt,na as Pi,nb as Yt,nc as Rd,o as ct,oa as oi,ob as K,oc as dr,p as H,pa as se,pb as f,pc as is,q as Oi,qa as x,qb as Ae,qc as Od,r as Zn,ra as w,rb as B,rc as Fd,s as Jc,sa as kt,sb as Qt,sc as Z,t as te,ta as dd,tb as Ne,tc as Pd,u as Kn,ua as Mt,ub as ji,uc as Nd,v as It,va as $e,vb as Ka,vc as v,w as co,wa as et,wb as C,wc as Te,x as Jn,xa as ud,xb as Id,xc as ai,y as uo,ya as T,yb as nt,yc as Vt,z as Je,za as $,zb as Le,zc as Ld}from"./chunk-5EAT4YYT.js";var os=class{};var bn=class i{constructor(r){this.normalizedNames=new Map,this.lazyUpdate=null,r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(` +`).forEach(e=>{let t=e.indexOf(":");if(t>0){let n=e.slice(0,t),o=n.toLowerCase(),a=e.slice(t+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,t)=>{this.setHeaderEntries(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let t=r.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(r.name,e);let n=(r.op==="a"?this.headers.get(e):void 0)||[];n.push(...t),this.headers.set(e,n);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}setHeaderEntries(r,e){let t=(Array.isArray(e)?e:[e]).map(o=>o.toString()),n=r.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(r,n)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var as=class{encodeKey(r){return qd(r)}encodeValue(r){return qd(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function Uf(i,r){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[a,s]=o==-1?[r.decodeKey(n),""]:[r.decodeKey(n.slice(0,o)),r.decodeValue(n.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var Hf=/%(\d[a-f0-9])/gi,Gf={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qd(i){return encodeURIComponent(i).replace(Hf,(r,e)=>Gf[e]??r)}function _o(i){return`${i}`}var wi=class i{constructor(r={}){if(this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new as,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Uf(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let t=r.fromObject[e],n=Array.isArray(t)?t.map(_o):[_o(t)];this.map.set(e,n)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(t=>{let n=r[t];Array.isArray(n)?n.forEach(o=>{e.push({param:t,value:o,op:"a"})}):e.push({param:t,value:n,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(_o(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let t=this.map.get(r.param)||[],n=t.indexOf(_o(r.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(r.param,t):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var ss=class{constructor(){this.map=new Map}set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function $f(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Yd(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function Qd(i){return typeof Blob<"u"&&i instanceof Blob}function Xd(i){return typeof FormData<"u"&&i instanceof FormData}function Wf(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var ur=class i{constructor(r,e,t,n){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase();let o;if($f(this.method)||n?(this.body=t!==void 0?t:null,o=n):o=t,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.transferCache=o.transferCache),this.headers??=new bn,this.context??=new ss,!this.params)this.params=new wi,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sD.set(G,r.setHeaders[G]),p)),r.setParams&&(g=Object.keys(r.setParams).reduce((D,G)=>D.set(G,r.setParams[G]),g)),new i(e,t,a,{params:g,headers:p,context:_,reportProgress:l,responseType:n,withCredentials:s,transferCache:o})}},Zd=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(Zd||{}),ls=class{constructor(r,e=200,t="OK"){this.headers=r.headers||new bn,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||t,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}};var hr=class i extends ls{constructor(r={}){super(r),this.type=Zd.Response,this.body=r.body!==void 0?r.body:null}clone(r={}){return new i({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}};function rs(i,r){return{body:r,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var bo=(()=>{class i{constructor(e){this.handler=e}request(e,t,n={}){let o;if(e instanceof ur)o=e;else{let l;n.headers instanceof bn?l=n.headers:l=new bn(n.headers);let p;n.params&&(n.params instanceof wi?p=n.params:p=new wi({fromObject:n.params})),o=new ur(e,t,n.body!==void 0?n.body:null,{headers:l,context:n.context,params:p,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials,transferCache:n.transferCache})}let a=H(o).pipe(Fi(l=>this.handler.handle(l)));if(e instanceof ur||n.observe==="events")return a;let s=a.pipe(ve(l=>l instanceof hr));switch(n.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(te(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(te(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(te(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return s.pipe(te(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new wi().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,rs(n,t))}post(e,t,n={}){return this.request("POST",e,rs(n,t))}put(e,t,n={}){return this.request("PUT",e,rs(n,t))}static{this.\u0275fac=function(t){return new(t||i)(E(os))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})();var us=class extends jd{constructor(){super(...arguments),this.supportsDOMEvents=!0}},hs=class i extends us{static makeCurrent(){Vd(new i)}onAndCancel(r,e,t){return r.addEventListener(e,t),()=>{r.removeEventListener(e,t)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Yf();return e==null?null:Qf(e)}resetBaseElement(){mr=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Bd(document.cookie,r)}},mr=null;function Yf(){return mr=mr||document.querySelector("base"),mr?mr.getAttribute("href"):null}function Qf(i){return new URL(i,document.baseURI).pathname}var Xf=(()=>{class i{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})(),ms=new O(""),iu=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(n=>{n.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new Ee(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||i)(E(ms),E($))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})(),vo=class{constructor(r){this._doc=r}},cs="ng-app-id",nu=(()=>{class i{constructor(e,t,n,o={}){this.doc=e,this.appId=t,this.nonce=n,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ns(o),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(n=>n.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${cs}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(n=>{n.textContent!=null&&t.set(n.textContent,n)}),t}return null}changeUsageCount(e,t){let n=this.styleRef;if(n.has(e)){let o=n.get(e);return o.usage+=t,o.usage}return n.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let n=this.styleNodesInDOM,o=n?.get(t);if(o?.parentNode===e)return n.delete(t),o.removeAttribute(cs),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=t,this.platformIsServer&&a.setAttribute(cs,this.appId),e.appendChild(a),a}}addStyleToHost(e,t){let n=this.getStyleElement(e,t),o=this.styleRef,a=o.get(t)?.elements;a?a.push(n):o.set(t,{elements:[n],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||i)(E(X),E(nr),E(rr,8),E(Li))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})(),ds={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/Math/MathML"},gs=/%COMP%/g,ru="%COMP%",Zf=`_nghost-${ru}`,Kf=`_ngcontent-${ru}`,Jf=!0,eg=new O("",{providedIn:"root",factory:()=>Jf});function tg(i){return Kf.replace(gs,i)}function ig(i){return Zf.replace(gs,i)}function ou(i,r){return r.map(e=>e.replace(gs,i))}var yo=(()=>{class i{constructor(e,t,n,o,a,s,l,p=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=ns(s),this.defaultRenderer=new pr(e,a,l,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===tr.ShadowDom&&(t=ye(A({},t),{encapsulation:tr.Emulated}));let n=this.getOrCreateRenderer(e,t);return n instanceof xo?n.applyToHost(e):n instanceof fr&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,o=n.get(t.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,p=this.sharedStylesHost,g=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(t.encapsulation){case tr.Emulated:o=new xo(l,p,t,this.appId,g,a,s,_);break;case tr.ShadowDom:return new ps(l,p,e,t,a,s,this.nonce,_);default:o=new fr(l,p,t,g,a,s,_);break}n.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||i)(E(iu),E(nu),E(nr),E(eg),E(X),E(Li),E($),E(rr))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})(),pr=class{constructor(r,e,t,n){this.eventManager=r,this.doc=e,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(r,e){return e?this.doc.createElementNS(ds[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Jd(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Jd(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new Ee(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,n){if(n){e=n+":"+e;let o=ds[n];o?r.setAttributeNS(o,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let n=ds[t];n?r.removeAttributeNS(n,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,n){n&(ar.DashCase|ar.Important)?r.style.setProperty(e,t,n&ar.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&ar.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t){if(typeof r=="string"&&(r=mn().getGlobalEventTarget(this.doc,r),!r))throw new Error(`Unsupported event target ${r} for event ${e}`);return this.eventManager.addEventListener(r,e,this.decoratePreventDefault(t))}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function Jd(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var ps=class extends pr{constructor(r,e,t,n,o,a,s,l){super(r,o,a,l),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let p=ou(n.id,n.styles);for(let g of p){let _=document.createElement("style");s&&_.setAttribute("nonce",s),_.textContent=g,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},fr=class extends pr{constructor(r,e,t,n,o,a,s,l){super(r,o,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=n,this.styles=l?ou(l,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},xo=class extends fr{constructor(r,e,t,n,o,a,s,l){let p=n+"-"+t.id;super(r,e,t,o,a,s,l,p),this.contentAttr=tg(p),this.hostAttr=ig(p)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}},ng=(()=>{class i extends vo{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}static{this.\u0275fac=function(t){return new(t||i)(E(X))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})(),eu=["alt","control","meta","shift"],rg={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},og={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},ag=(()=>{class i extends vo{constructor(e){super(e)}supports(e){return i.parseEventName(e)!=null}addEventListener(e,t,n){let o=i.parseEventName(t),a=i.eventCallback(o.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mn().onAndCancel(e,o.domEventName,a))}static parseEventName(e){let t=e.toLowerCase().split("."),n=t.shift();if(t.length===0||!(n==="keydown"||n==="keyup"))return null;let o=i._normalizeKey(t.pop()),a="",s=t.indexOf("code");if(s>-1&&(t.splice(s,1),a="code."),eu.forEach(p=>{let g=t.indexOf(p);g>-1&&(t.splice(g,1),a+=p+".")}),a+=o,t.length!=0||o.length===0)return null;let l={};return l.domEventName=n,l.fullKey=a,l}static matchEventFullKeyCode(e,t){let n=rg[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(n=e.code,o="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),eu.forEach(a=>{if(a!==n){let s=og[a];s(e)&&(o+=a+".")}}),o+=n,o===t)}static eventCallback(e,t,n){return o=>{i.matchEventFullKeyCode(o,e)&&n.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||i)(E(X))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})();function au(i,r){return Nd(A({rootComponent:i},sg(r)))}function sg(i){return{appProviders:[...hg,...i?.providers??[]],platformProviders:ug}}function lg(){hs.makeCurrent()}function cg(){return new Ni}function dg(){return hd(document),document}var ug=[{provide:Li,useValue:zd},{provide:md,useValue:lg,multi:!0},{provide:X,useFactory:dg,deps:[]}];var hg=[{provide:cd,useValue:"root"},{provide:Ni,useFactory:cg,deps:[]},{provide:ms,useClass:ng,multi:!0,deps:[X,$,Li]},{provide:ms,useClass:ag,multi:!0,deps:[X]},yo,nu,iu,{provide:ho,useExisting:yo},{provide:Hd,useClass:Xf,deps:[]},[]];var su=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||i)(E(X))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var gr=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:function(t){let n=null;return t?n=new(t||i):n=E(mg),n},providedIn:"root"})}}return i})(),mg=(()=>{class i extends gr{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case gt.NONE:return t;case gt.HTML:return cn(t,"HTML")?ln(t):yd(this._doc,String(t)).toString();case gt.STYLE:return cn(t,"Style")?ln(t):t;case gt.SCRIPT:if(cn(t,"Script"))return ln(t);throw new Ee(5200,!1);case gt.URL:return cn(t,"URL")?ln(t):vd(String(t));case gt.RESOURCE_URL:if(cn(t,"ResourceURL"))return ln(t);throw new Ee(5201,!1);default:throw new Ee(5202,!1)}}bypassSecurityTrustHtml(e){return pd(e)}bypassSecurityTrustStyle(e){return fd(e)}bypassSecurityTrustScript(e){return gd(e)}bypassSecurityTrustUrl(e){return _d(e)}bypassSecurityTrustResourceUrl(e){return bd(e)}static{this.\u0275fac=function(t){return new(t||i)(E(X))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var pg="@",fg=(()=>{class i{constructor(e,t,n,o,a){this.doc=e,this.delegate=t,this.zone=n,this.animationType=o,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=R(xd,{optional:!0}),this.loadingSchedulerFn=R(gg,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-YANVSZEH.js").then(n=>n),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(n=>{throw new Ee(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:o})=>{this._engine=n(this.animationType,this.doc);let a=new o(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let o=new bs(n);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let s=a.createRenderer(e,t);o.use(s),this.scheduler?.notify(10)}).catch(a=>{o.use(n)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static{this.\u0275fac=function(t){dn()}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})(),bs=class{constructor(r){this.delegate=r,this.replay=[],this.\u0275type=1}use(r){if(this.delegate=r,this.replay!==null){for(let e of this.replay)e(r);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}get destroyNode(){return this.delegate.destroyNode}appendChild(r,e){this.delegate.appendChild(r,e)}insertBefore(r,e,t,n){this.delegate.insertBefore(r,e,t,n)}removeChild(r,e,t){this.delegate.removeChild(r,e,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,n){this.delegate.setAttribute(r,e,t,n)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,n){this.delegate.setStyle(r,e,t,n)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(r,e,t)),this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.shouldReplay(e)&&this.replay.push(n=>n.listen(r,e,t)),this.delegate.listen(r,e,t)}shouldReplay(r){return this.replay!==null&&r.startsWith(pg)}},gg=new O("");function lu(i="animations"){return wd("NgAsyncAnimations"),ir([{provide:ho,useFactory:(r,e,t)=>new fg(r,e,t,i),deps:[X,yo,$]},{provide:Ie,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}])}var he="primary",Or=Symbol("RouteTitle"),Cs=class{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Tn(i){return new Cs(i)}function bg(i,r,e){let t=e.path.split("/");if(t.length>i.length||e.pathMatch==="full"&&(r.hasChildren()||t.lengtht[o]===n)}else return i===r}function _u(i){return i.length>0?i[i.length-1]:null}function Ci(i){return Zn(i)?i:go(i)?ct(Promise.resolve(i)):H(i)}var yg={exact:vu,subset:yu},bu={exact:xg,subset:wg,ignored:()=>!0};function cu(i,r,e){return yg[e.paths](i.root,r.root,e.matrixParams)&&bu[e.queryParams](i.queryParams,r.queryParams)&&!(e.fragment==="exact"&&i.fragment!==r.fragment)}function xg(i,r){return Xt(i,r)}function vu(i,r,e){if(!zi(i.segments,r.segments)||!To(i.segments,r.segments,e)||i.numberOfChildren!==r.numberOfChildren)return!1;for(let t in r.children)if(!i.children[t]||!vu(i.children[t],r.children[t],e))return!1;return!0}function wg(i,r){return Object.keys(r).length<=Object.keys(i).length&&Object.keys(r).every(e=>gu(i[e],r[e]))}function yu(i,r,e){return xu(i,r,r.segments,e)}function xu(i,r,e,t){if(i.segments.length>e.length){let n=i.segments.slice(0,e.length);return!(!zi(n,e)||r.hasChildren()||!To(n,e,t))}else if(i.segments.length===e.length){if(!zi(i.segments,e)||!To(i.segments,e,t))return!1;for(let n in r.children)if(!i.children[n]||!yu(i.children[n],r.children[n],t))return!1;return!0}else{let n=e.slice(0,i.segments.length),o=e.slice(i.segments.length);return!zi(i.segments,n)||!To(i.segments,n,t)||!i.children[he]?!1:xu(i.children[he],r,o,t)}}function To(i,r,e){return r.every((t,n)=>bu[e](i[n].parameters,t.parameters))}var li=class{constructor(r=new xe([],{}),e={},t=null){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Tn(this.queryParams),this._queryParamMap}toString(){return Eg.serialize(this)}},xe=class{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Eo(this)}},Bi=class{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Tn(this.parameters),this._parameterMap}toString(){return Cu(this)}};function Cg(i,r){return zi(i,r)&&i.every((e,t)=>Xt(e.parameters,r[t].parameters))}function zi(i,r){return i.length!==r.length?!1:i.every((e,t)=>e.path===r[t].path)}function Tg(i,r){let e=[];return Object.entries(i.children).forEach(([t,n])=>{t===he&&(e=e.concat(r(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==he&&(e=e.concat(r(n,t)))}),e}var Xs=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:()=>new Cr,providedIn:"root"})}}return i})(),Cr=class{parse(r){let e=new Is(r);return new li(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${_r(r.root,!0)}`,t=kg(r.queryParams),n=typeof r.fragment=="string"?`#${Ig(r.fragment)}`:"";return`${e}${t}${n}`}},Eg=new Cr;function Eo(i){return i.segments.map(r=>Cu(r)).join("/")}function _r(i,r){if(!i.hasChildren())return Eo(i);if(r){let e=i.children[he]?_r(i.children[he],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==he&&t.push(`${n}:${_r(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=Tg(i,(t,n)=>n===he?[_r(i.children[he],!1)]:[`${n}:${_r(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[he]!=null?`${Eo(i)}/${e[0]}`:`${Eo(i)}/(${e.join("//")})`}}function wu(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wo(i){return wu(i).replace(/%3B/gi,";")}function Ig(i){return encodeURI(i)}function Es(i){return wu(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Io(i){return decodeURIComponent(i)}function du(i){return Io(i.replace(/\+/g,"%20"))}function Cu(i){return`${Es(i.path)}${Sg(i.parameters)}`}function Sg(i){return Object.entries(i).map(([r,e])=>`;${Es(r)}=${Es(e)}`).join("")}function kg(i){let r=Object.entries(i).map(([e,t])=>Array.isArray(t)?t.map(n=>`${wo(e)}=${wo(n)}`).join("&"):`${wo(e)}=${wo(t)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Mg=/^[^\/()?;#]+/;function vs(i){let r=i.match(Mg);return r?r[0]:""}var Dg=/^[^\/()?;=#]+/;function Ag(i){let r=i.match(Dg);return r?r[0]:""}var Rg=/^[^=?&#]+/;function Og(i){let r=i.match(Rg);return r?r[0]:""}var Fg=/^[^&#]+/;function Pg(i){let r=i.match(Fg);return r?r[0]:""}var Is=class{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[he]=new xe(r,e)),t}parseSegment(){let r=vs(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new Ee(4009,!1);return this.capture(r),new Bi(Io(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Ag(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let n=vs(this.remaining);n&&(t=n,this.capture(t))}r[Io(e)]=Io(t)}parseQueryParam(r){let e=Og(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let a=Pg(this.remaining);a&&(t=a,this.capture(t))}let n=du(e),o=du(t);if(r.hasOwnProperty(n)){let a=r[n];Array.isArray(a)||(a=[a],r[n]=a),a.push(o)}else r[n]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=vs(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new Ee(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=he);let a=this.parseChildren();e[o]=Object.keys(a).length===1?a[he]:new xe([],a),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new Ee(4011,!1)}};function Tu(i){return i.segments.length>0?new xe([],{[he]:i}):i}function Eu(i){let r={};for(let[t,n]of Object.entries(i.children)){let o=Eu(n);if(t===he&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))r[a]=s;else(o.segments.length>0||o.hasChildren())&&(r[t]=o)}let e=new xe(i.segments,r);return Ng(e)}function Ng(i){if(i.numberOfChildren===1&&i.children[he]){let r=i.children[he];return new xe(i.segments.concat(r.segments),r.children)}return i}function Tr(i){return i instanceof li}function Lg(i,r,e=null,t=null){let n=Iu(i);return Su(n,r,e,t)}function Iu(i){let r;function e(o){let a={};for(let l of o.children){let p=e(l);a[l.outlet]=p}let s=new xe(o.url,a);return o===i&&(r=s),s}let t=e(i.root),n=Tu(t);return r??n}function Su(i,r,e,t){let n=i;for(;n.parent;)n=n.parent;if(r.length===0)return ys(n,n,n,e,t);let o=Vg(r);if(o.toRoot())return ys(n,n,new xe([],{}),e,t);let a=jg(o,n,i),s=a.processChildren?yr(a.segmentGroup,a.index,o.commands):Mu(a.segmentGroup,a.index,o.commands);return ys(n,a.segmentGroup,s,e,t)}function So(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Er(i){return typeof i=="object"&&i!=null&&i.outlets}function ys(i,r,e,t,n){let o={};t&&Object.entries(t).forEach(([l,p])=>{o[l]=Array.isArray(p)?p.map(g=>`${g}`):`${p}`});let a;i===r?a=e:a=ku(i,r,e);let s=Tu(Eu(a));return new li(s,o,n)}function ku(i,r,e){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===r?t[n]=e:t[n]=ku(o,r,e)}),new xe(i.segments,t)}var ko=class{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&So(t[0]))throw new Ee(4003,!1);let n=t.find(Er);if(n&&n!==_u(t))throw new Ee(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Vg(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new ko(!0,0,i);let r=0,e=!1,t=i.reduce((n,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,p])=>{s[l]=typeof p=="string"?p.split("/"):p}),[...n,{outlets:s}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?r++:s!=""&&n.push(s))}),n):[...n,o]},[]);return new ko(e,r,t)}var xn=class{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}};function jg(i,r,e){if(i.isAbsolute)return new xn(r,!0,0);if(!e)return new xn(r,!1,NaN);if(e.parent===null)return new xn(e,!0,0);let t=So(i.commands[0])?0:1,n=e.segments.length-1+t;return Bg(e,n,i.numberOfDoubleDots)}function Bg(i,r,e){let t=i,n=r,o=e;for(;o>n;){if(o-=n,t=t.parent,!t)throw new Ee(4005,!1);n=t.segments.length}return new xn(t,!1,n-o)}function zg(i){return Er(i[0])?i[0].outlets:{[he]:i}}function Mu(i,r,e){if(i??=new xe([],{}),i.segments.length===0&&i.hasChildren())return yr(i,r,e);let t=Ug(i,r,e),n=e.slice(t.commandIndex);if(t.match&&t.pathIndexo!==he)&&i.children[he]&&i.numberOfChildren===1&&i.children[he].segments.length===0){let o=yr(i.children[he],r,e);return new xe(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(n[o]=Mu(i.children[o],r,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(n[o]=a)}),new xe(i.segments,n)}}function Ug(i,r,e){let t=0,n=r,o={match:!1,pathIndex:0,commandIndex:0};for(;n=e.length)return o;let a=i.segments[n],s=e[t];if(Er(s))break;let l=`${s}`,p=t0&&l===void 0)break;if(l&&p&&typeof p=="object"&&p.outlets===void 0){if(!hu(l,p,a))return o;t+=2}else{if(!hu(l,{},a))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function Ss(i,r,e){let t=i.segments.slice(0,r),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(r[e]=Ss(new xe([],{}),0,t))}),r}function uu(i){let r={};return Object.entries(i).forEach(([e,t])=>r[e]=`${t}`),r}function hu(i,r,e){return i==e.path&&Xt(r,e.parameters)}var xr="imperative",Ze=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(Ze||{}),Rt=class{constructor(r,e){this.id=r,this.url=e}},Ir=class extends Rt{constructor(r,e,t="imperative",n=null){super(r,e),this.type=Ze.NavigationStart,this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ui=class extends Rt{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=Ze.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},yt=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(yt||{}),ks=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(ks||{}),si=class extends Rt{constructor(r,e,t,n){super(r,e),this.reason=t,this.code=n,this.type=Ze.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Hi=class extends Rt{constructor(r,e,t,n){super(r,e),this.reason=t,this.code=n,this.type=Ze.NavigationSkipped}},Sr=class extends Rt{constructor(r,e,t,n){super(r,e),this.error=t,this.target=n,this.type=Ze.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Mo=class extends Rt{constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n,this.type=Ze.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ms=class extends Rt{constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n,this.type=Ze.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ds=class extends Rt{constructor(r,e,t,n,o){super(r,e),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o,this.type=Ze.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},As=class extends Rt{constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n,this.type=Ze.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rs=class extends Rt{constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n,this.type=Ze.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Os=class{constructor(r){this.route=r,this.type=Ze.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Fs=class{constructor(r){this.route=r,this.type=Ze.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ps=class{constructor(r){this.snapshot=r,this.type=Ze.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ns=class{constructor(r){this.snapshot=r,this.type=Ze.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ls=class{constructor(r){this.snapshot=r,this.type=Ze.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vs=class{constructor(r){this.snapshot=r,this.type=Ze.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var kr=class{},En=class{constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Gg(i,r){return i.providers&&!i._injector&&(i._injector=Ed(i.providers,r,`Route: ${i.path}`)),i._injector??r}function Bt(i){return i.outlet||he}function $g(i,r){let e=i.filter(t=>Bt(t)===r);return e.push(...i.filter(t=>Bt(t)!==r)),e}function Fr(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let r=i.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var js=class{get injector(){return Fr(this.route?.snapshot)??this.rootInjector}set injector(r){}constructor(r){this.rootInjector=r,this.outlet=null,this.route=null,this.children=new No(this.rootInjector),this.attachRef=null}},No=(()=>{class i{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,t){let n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new js(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(t){return new(t||i)(E(Pi))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Do=class{constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Bs(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){let e=Bs(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=zs(r,this._root);return e.length<2?[]:e[e.length-2].children.map(n=>n.value).filter(n=>n!==r)}pathFromRoot(r){return zs(r,this._root).map(e=>e.value)}};function Bs(i,r){if(i===r.value)return r;for(let e of r.children){let t=Bs(i,e);if(t)return t}return null}function zs(i,r){if(i===r.value)return[r];for(let e of r.children){let t=zs(i,e);if(t.length)return t.unshift(r),t}return[]}var vt=class{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function yn(i){let r={};return i&&i.children.forEach(e=>r[e.value.outlet]=e),r}var Ao=class extends Do{constructor(r,e){super(r),this.snapshot=e,Zs(this,r)}toString(){return this.snapshot.toString()}};function Du(i){let r=Wg(i),e=new it([new Bi("",{})]),t=new it({}),n=new it({}),o=new it({}),a=new it(""),s=new In(e,t,o,a,n,he,i,r.root);return s.snapshot=r.root,new Ao(new vt(s,[]),r)}function Wg(i){let r={},e={},t={},n="",o=new wn([],r,t,n,e,he,i,null,{});return new Oo("",new vt(o,[]))}var In=class{constructor(r,e,t,n,o,a,s,l){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(te(p=>p[Or]))??H(void 0),this.url=r,this.params=e,this.queryParams=t,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(te(r=>Tn(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(te(r=>Tn(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ro(i,r,e="emptyOnly"){let t,{routeConfig:n}=i;return r!==null&&(e==="always"||n?.path===""||!r.component&&!r.routeConfig?.loadComponent)?t={params:A(A({},r.params),i.params),data:A(A({},r.data),i.data),resolve:A(A(A(A({},i.data),r.data),n?.data),i._resolvedData)}:t={params:A({},i.params),data:A({},i.data),resolve:A(A({},i.data),i._resolvedData??{})},n&&Ru(n)&&(t.resolve[Or]=n.title),t}var wn=class{get title(){return this.data?.[Or]}constructor(r,e,t,n,o,a,s,l,p){this.url=r,this.params=e,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=p}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Tn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Tn(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Oo=class extends Do{constructor(r,e){super(e),this.url=r,Zs(this,e)}toString(){return Au(this._root)}};function Zs(i,r){r.value._routerState=i,r.children.forEach(e=>Zs(i,e))}function Au(i){let r=i.children.length>0?` { ${i.children.map(Au).join(", ")} } `:"";return`${i.value}${r}`}function xs(i){if(i.snapshot){let r=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Xt(r.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),Xt(r.params,e.params)||i.paramsSubject.next(e.params),vg(r.url,e.url)||i.urlSubject.next(e.url),Xt(r.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Us(i,r){let e=Xt(i.params,r.params)&&Cg(i.url,r.url),t=!i.parent!=!r.parent;return e&&!t&&(!i.parent||Us(i.parent,r.parent))}function Ru(i){return typeof i.title=="string"||i.title===null}var qg=(()=>{class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new T,this.deactivateEvents=new T,this.attachEvents=new T,this.detachEvents=new T,this.parentContexts=R(No),this.location=R(We),this.changeDetector=R(Z),this.inputBinder=R(Ks,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ee(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ee(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ee(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Ee(4013,!1);this._activatedRoute=e;let n=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new Hs(e,s,n.injector);this.activated=n.createComponent(a,{index:n.length,injector:l,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[se]})}}return i})(),Hs=class i{__ngOutletInjector(r){return new i(this.route,this.childContexts,r)}constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===In?this.route:r===No?this.childContexts:this.parent.get(r,e)}},Ks=new O("");function Yg(i,r,e){let t=Mr(i,r._root,e?e._root:void 0);return new Ao(t,r)}function Mr(i,r,e){if(e&&i.shouldReuseRoute(r.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=r.value;let n=Qg(i,r,e);return new vt(t,n)}else{if(i.shouldAttach(r.value)){let o=i.retrieve(r.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=r.value,a.children=r.children.map(s=>Mr(i,s)),a}}let t=Xg(r.value),n=r.children.map(o=>Mr(i,o));return new vt(t,n)}}function Qg(i,r,e){return r.children.map(t=>{for(let n of e.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return Mr(i,t,n);return Mr(i,t)})}function Xg(i){return new In(new it(i.url),new it(i.params),new it(i.queryParams),new it(i.fragment),new it(i.data),i.outlet,i.component,i)}var Dr=class{constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Ou="ngNavigationCancelingError";function Fo(i,r){let{redirectTo:e,navigationBehaviorOptions:t}=Tr(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,n=Fu(!1,yt.Redirect);return n.url=e,n.navigationBehaviorOptions=t,n}function Fu(i,r){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[Ou]=!0,e.cancellationCode=r,e}function Zg(i){return Pu(i)&&Tr(i.url)}function Pu(i){return!!i&&i[Ou]}var Kg=(i,r,e,t)=>te(n=>(new Gs(r,n.targetRouterState,n.currentRouterState,e,t).activate(i),n)),Gs=class{constructor(r,e,t,n,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),xs(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){let n=yn(e);r.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,n[a],t),delete n[a]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(r,e,t){let n=r.value,o=e?e.value:null;if(n===o)if(n.component){let a=t.getContext(n.outlet);a&&this.deactivateChildRoutes(r,e,a.children)}else this.deactivateChildRoutes(r,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let t=e.getContext(r.value.outlet),n=t&&r.value.component?t.children:e,o=yn(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);if(t&&t.outlet){let a=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:a,route:r,contexts:s})}}deactivateRouteAndOutlet(r,e){let t=e.getContext(r.value.outlet),n=t&&r.value.component?t.children:e,o=yn(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(r,e,t){let n=yn(e);r.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new Vs(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Ns(r.value.snapshot))}activateRoutes(r,e,t){let n=r.value,o=e?e.value:null;if(xs(n),n===o)if(n.component){let a=t.getOrCreateContext(n.outlet);this.activateChildRoutes(r,e,a.children)}else this.activateChildRoutes(r,e,t);else if(n.component){let a=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),xs(s.route.value),this.activateChildRoutes(r,null,a.children)}else a.attachRef=null,a.route=n,a.outlet&&a.outlet.activateWith(n,a.injector),this.activateChildRoutes(r,null,a.children)}else this.activateChildRoutes(r,null,t)}},Po=class{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Cn=class{constructor(r,e){this.component=r,this.route=e}};function Jg(i,r,e){let t=i._root,n=r?r._root:null;return br(t,n,e,[t.value])}function e_(i){let r=i.routeConfig?i.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:i,guards:r}}function kn(i,r){let e=Symbol(),t=r.get(i,e);return t===e?typeof i=="function"&&!sd(i)?i:r.get(i):t}function br(i,r,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=yn(r);return i.children.forEach(a=>{t_(a,o[a.value.outlet],e,t.concat([a.value]),n),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>wr(s,e.getContext(a),n)),n}function t_(i,r,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=r?r.value:null,s=e?e.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=i_(a,o,o.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new Po(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?br(i,r,s?s.children:null,t,n):br(i,r,e,t,n),l&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new Cn(s.outlet.component,a))}else a&&wr(r,s,n),n.canActivateChecks.push(new Po(t)),o.component?br(i,null,s?s.children:null,t,n):br(i,null,e,t,n);return n}function i_(i,r,e){if(typeof e=="function")return e(i,r);switch(e){case"pathParamsChange":return!zi(i.url,r.url);case"pathParamsOrQueryParamsChange":return!zi(i.url,r.url)||!Xt(i.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Us(i,r)||!Xt(i.queryParams,r.queryParams);case"paramsChange":default:return!Us(i,r)}}function wr(i,r,e){let t=yn(i),n=i.value;Object.entries(t).forEach(([o,a])=>{n.component?r?wr(a,r.children.getContext(o),e):wr(a,null,e):wr(a,r,e)}),n.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Cn(r.outlet.component,n)):e.canDeactivateChecks.push(new Cn(null,n)):e.canDeactivateChecks.push(new Cn(null,n))}function Pr(i){return typeof i=="function"}function n_(i){return typeof i=="boolean"}function r_(i){return i&&Pr(i.canLoad)}function o_(i){return i&&Pr(i.canActivate)}function a_(i){return i&&Pr(i.canActivateChild)}function s_(i){return i&&Pr(i.canDeactivate)}function l_(i){return i&&Pr(i.canMatch)}function Nu(i){return i instanceof Jc||i?.name==="EmptyError"}var Co=Symbol("INITIAL_VALUE");function Sn(){return Qe(i=>Kn(i.map(r=>r.pipe(Ye(1),Ge(Co)))).pipe(te(r=>{for(let e of r)if(e!==!0){if(e===Co)return Co;if(e===!1||c_(e))return e}return!0}),ve(r=>r!==Co),Ye(1)))}function c_(i){return Tr(i)||i instanceof Dr}function d_(i,r){return It(e=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?H(ye(A({},e),{guardsResult:!0})):u_(a,t,n,i).pipe(It(s=>s&&n_(s)?h_(t,o,i,r):H(s)),te(s=>ye(A({},e),{guardsResult:s})))})}function u_(i,r,e,t){return ct(i).pipe(It(n=>__(n.component,n.route,e,r,t)),vi(n=>n!==!0,!0))}function h_(i,r,e,t){return ct(r).pipe(Fi(n=>co(p_(n.route.parent,t),m_(n.route,t),g_(i,n.path,e),f_(i,n.route,e))),vi(n=>n!==!0,!0))}function m_(i,r){return i!==null&&r&&r(new Ls(i)),H(!0)}function p_(i,r){return i!==null&&r&&r(new Ps(i)),H(!0)}function f_(i,r,e){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return H(!0);let n=t.map(o=>Jn(()=>{let a=Fr(r)??e,s=kn(o,a),l=o_(s)?s.canActivate(r,i):oi(a,()=>s(r,i));return Ci(l).pipe(vi())}));return H(n).pipe(Sn())}function g_(i,r,e){let t=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(a=>e_(a)).filter(a=>a!==null).map(a=>Jn(()=>{let s=a.guards.map(l=>{let p=Fr(a.node)??e,g=kn(l,p),_=a_(g)?g.canActivateChild(t,i):oi(p,()=>g(t,i));return Ci(_).pipe(vi())});return H(s).pipe(Sn())}));return H(o).pipe(Sn())}function __(i,r,e,t,n){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return H(!0);let a=o.map(s=>{let l=Fr(r)??n,p=kn(s,l),g=s_(p)?p.canDeactivate(i,r,e,t):oi(l,()=>p(i,r,e,t));return Ci(g).pipe(vi())});return H(a).pipe(Sn())}function b_(i,r,e,t){let n=r.canLoad;if(n===void 0||n.length===0)return H(!0);let o=n.map(a=>{let s=kn(a,i),l=r_(s)?s.canLoad(r,e):oi(i,()=>s(r,e));return Ci(l)});return H(o).pipe(Sn(),Lu(t))}function Lu(i){return Kc(Ce(r=>{if(typeof r!="boolean")throw Fo(i,r)}),te(r=>r===!0))}function v_(i,r,e,t){let n=r.canMatch;if(!n||n.length===0)return H(!0);let o=n.map(a=>{let s=kn(a,i),l=l_(s)?s.canMatch(r,e):oi(i,()=>s(r,e));return Ci(l)});return H(o).pipe(Sn(),Lu(t))}var Ar=class{constructor(r){this.segmentGroup=r||null}},Rr=class extends Error{constructor(r){super(),this.urlTree=r}};function vn(i){return Oi(new Ar(i))}function y_(i){return Oi(new Ee(4e3,!1))}function x_(i){return Oi(Fu(!1,yt.GuardRejected))}var $s=class{constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let t=[],n=e.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return H(t);if(n.numberOfChildren>1||!n.children[he])return y_(`${r.redirectTo}`);n=n.children[he]}}applyRedirectCommands(r,e,t,n,o){if(typeof e!="string"){let s=e,{queryParams:l,fragment:p,routeConfig:g,url:_,outlet:D,params:G,data:ie,title:ae}=n,fe=oi(o,()=>s({params:G,data:ie,queryParams:l,fragment:p,routeConfig:g,url:_,outlet:D,title:ae}));if(fe instanceof li)throw new Rr(fe);e=fe}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t);if(e[0]==="/")throw new Rr(a);return a}applyRedirectCreateUrlTree(r,e,t,n){let o=this.createSegmentGroup(r,e.root,t,n);return new li(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let t={};return Object.entries(r).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);t[n]=e[s]}else t[n]=o}),t}createSegmentGroup(r,e,t,n){let o=this.createSegments(r,e.segments,t,n),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(r,l,t,n)}),new xe(o,a)}createSegments(r,e,t,n){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,n):this.findOrReturn(o,t))}findPosParam(r,e,t){let n=t[e.path.substring(1)];if(!n)throw new Ee(4001,!1);return n}findOrReturn(r,e){let t=0;for(let n of e){if(n.path===r.path)return e.splice(t),n;t++}return r}},Ws={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function w_(i,r,e,t,n){let o=Vu(i,r,e);return o.matched?(t=Gg(r,t),v_(t,r,e,n).pipe(te(a=>a===!0?o:A({},Ws)))):H(o)}function Vu(i,r,e){if(r.path==="**")return C_(e);if(r.path==="")return r.pathMatch==="full"&&(i.hasChildren()||e.length>0)?A({},Ws):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let n=(r.matcher||bg)(e,i,r);if(!n)return A({},Ws);let o={};Object.entries(n.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=n.consumed.length>0?A(A({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:e.slice(n.consumed.length),parameters:a,positionalParamSegments:n.posParams??{}}}function C_(i){return{matched:!0,parameters:i.length>0?_u(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function mu(i,r,e,t){return e.length>0&&I_(i,e,t)?{segmentGroup:new xe(r,E_(t,new xe(e,i.children))),slicedSegments:[]}:e.length===0&&S_(i,e,t)?{segmentGroup:new xe(i.segments,T_(i,e,t,i.children)),slicedSegments:e}:{segmentGroup:new xe(i.segments,i.children),slicedSegments:e}}function T_(i,r,e,t){let n={};for(let o of e)if(Lo(i,r,o)&&!t[Bt(o)]){let a=new xe([],{});n[Bt(o)]=a}return A(A({},t),n)}function E_(i,r){let e={};e[he]=r;for(let t of i)if(t.path===""&&Bt(t)!==he){let n=new xe([],{});e[Bt(t)]=n}return e}function I_(i,r,e){return e.some(t=>Lo(i,r,t)&&Bt(t)!==he)}function S_(i,r,e){return e.some(t=>Lo(i,r,t))}function Lo(i,r,e){return(i.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function k_(i,r,e){return r.length===0&&!i.children[e]}var qs=class{};function M_(i,r,e,t,n,o,a="emptyOnly"){return new Ys(i,r,e,t,n,a,o).recognize()}var D_=31,Ys=class{constructor(r,e,t,n,o,a,s){this.injector=r,this.configLoader=e,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new $s(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new Ee(4002,`'${r.segmentGroup}'`)}recognize(){let r=mu(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(te(({children:e,rootSnapshot:t})=>{let n=new vt(t,e),o=new Oo("",n),a=Lg(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(r){let e=new wn([],Object.freeze({}),Object.freeze(A({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),he,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,he,e).pipe(te(t=>({children:t,rootSnapshot:e})),qt(t=>{if(t instanceof Rr)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Ar?this.noMatchError(t):t}))}processSegmentGroup(r,e,t,n,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(r,e,t,o):this.processSegment(r,e,t,t.segments,n,!0,o).pipe(te(a=>a instanceof vt?[a]:[]))}processChildren(r,e,t,n){let o=[];for(let a of Object.keys(t.children))a==="primary"?o.unshift(a):o.push(a);return ct(o).pipe(Fi(a=>{let s=t.children[a],l=$g(e,a);return this.processSegmentGroup(r,l,s,a,n)}),rd((a,s)=>(a.push(...s),a)),qa(null),id(),It(a=>{if(a===null)return vn(t);let s=ju(a);return A_(s),H(s)}))}processSegment(r,e,t,n,o,a,s){return ct(e).pipe(Fi(l=>this.processSegmentAgainstRoute(l._injector??r,e,l,t,n,o,a,s).pipe(qt(p=>{if(p instanceof Ar)return H(null);throw p}))),vi(l=>!!l),qt(l=>{if(Nu(l))return k_(t,n,o)?H(new qs):vn(t);throw l}))}processSegmentAgainstRoute(r,e,t,n,o,a,s,l){return Bt(t)!==a&&(a===he||!Lo(n,o,t))?vn(n):t.redirectTo===void 0?this.matchSegmentAgainstRoute(r,n,t,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(r,n,e,t,o,a,l):vn(n)}expandSegmentAgainstRouteUsingRedirect(r,e,t,n,o,a,s){let{matched:l,parameters:p,consumedSegments:g,positionalParamSegments:_,remainingSegments:D}=Vu(e,n,o);if(!l)return vn(e);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>D_&&(this.allowRedirects=!1));let G=new wn(o,p,Object.freeze(A({},this.urlTree.queryParams)),this.urlTree.fragment,pu(n),Bt(n),n.component??n._loadedComponent??null,n,fu(n)),ie=Ro(G,s,this.paramsInheritanceStrategy);G.params=Object.freeze(ie.params),G.data=Object.freeze(ie.data);let ae=this.applyRedirects.applyRedirectCommands(g,n.redirectTo,_,G,r);return this.applyRedirects.lineralizeSegments(n,ae).pipe(It(fe=>this.processSegment(r,t,e,fe.concat(D),a,!1,s)))}matchSegmentAgainstRoute(r,e,t,n,o,a){let s=w_(e,t,n,r,this.urlSerializer);return t.path==="**"&&(e.children={}),s.pipe(Qe(l=>l.matched?(r=t._injector??r,this.getChildConfig(r,t,n).pipe(Qe(({routes:p})=>{let g=t._loadedInjector??r,{parameters:_,consumedSegments:D,remainingSegments:G}=l,ie=new wn(D,_,Object.freeze(A({},this.urlTree.queryParams)),this.urlTree.fragment,pu(t),Bt(t),t.component??t._loadedComponent??null,t,fu(t)),ae=Ro(ie,a,this.paramsInheritanceStrategy);ie.params=Object.freeze(ae.params),ie.data=Object.freeze(ae.data);let{segmentGroup:fe,slicedSegments:Se}=mu(e,D,G,p);if(Se.length===0&&fe.hasChildren())return this.processChildren(g,p,fe,ie).pipe(te(Wt=>new vt(ie,Wt)));if(p.length===0&&Se.length===0)return H(new vt(ie,[]));let bi=Bt(t)===o;return this.processSegment(g,p,fe,Se,bi?he:o,!0,ie).pipe(te(Wt=>new vt(ie,Wt instanceof vt?[Wt]:[])))}))):vn(e)))}getChildConfig(r,e,t){return e.children?H({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?H({routes:e._loadedRoutes,injector:e._loadedInjector}):b_(r,e,t,this.urlSerializer).pipe(It(n=>n?this.configLoader.loadChildren(r,e).pipe(Ce(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):x_(e))):H({routes:[],injector:r})}};function A_(i){i.sort((r,e)=>r.value.outlet===he?-1:e.value.outlet===he?1:r.value.outlet.localeCompare(e.value.outlet))}function R_(i){let r=i.value.routeConfig;return r&&r.path===""}function ju(i){let r=[],e=new Set;for(let t of i){if(!R_(t)){r.push(t);continue}let n=r.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),e.add(n)):r.push(t)}for(let t of e){let n=ju(t.children);r.push(new vt(t.value,n))}return r.filter(t=>!e.has(t))}function pu(i){return i.data||{}}function fu(i){return i.resolve||{}}function O_(i,r,e,t,n,o){return It(a=>M_(i,r,e,t,a.extractedUrl,n,o).pipe(te(({state:s,tree:l})=>ye(A({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function F_(i,r){return It(e=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return H(e);let o=new Set(n.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let p of Bu(l))a.add(p);let s=0;return ct(a).pipe(Fi(l=>o.has(l)?P_(l,t,i,r):(l.data=Ro(l,l.parent,i).resolve,H(void 0))),Ce(()=>s++),Ya(1),It(l=>s===a.size?H(e):lt))})}function Bu(i){let r=i.children.map(e=>Bu(e)).flat();return[i,...r]}function P_(i,r,e,t){let n=i.routeConfig,o=i._resolve;return n?.title!==void 0&&!Ru(n)&&(o[Or]=n.title),N_(o,i,r,t).pipe(te(a=>(i._resolvedData=a,i.data=Ro(i,i.parent,e).resolve,null)))}function N_(i,r,e,t){let n=Ts(i);if(n.length===0)return H({});let o={};return ct(n).pipe(It(a=>L_(i[a],r,e,t).pipe(vi(),Ce(s=>{if(s instanceof Dr)throw Fo(new Cr,s);o[a]=s}))),Ya(1),td(o),qt(a=>Nu(a)?lt:Oi(a)))}function L_(i,r,e,t){let n=Fr(r)??t,o=kn(i,n),a=o.resolve?o.resolve(r,e):oi(n,()=>o(r,e));return Ci(a)}function ws(i){return Qe(r=>{let e=i(r);return e?ct(e).pipe(te(()=>r)):H(r)})}var zu=(()=>{class i{buildTitle(e){let t,n=e.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(o=>o.outlet===he);return t}getResolvedTitleForRoute(e){return e.data[Or]}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:()=>R(V_),providedIn:"root"})}}return i})(),V_=(()=>{class i extends zu{constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static{this.\u0275fac=function(t){return new(t||i)(E(su))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Js=new O("",{providedIn:"root",factory:()=>({})}),j_=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=N({type:i,selectors:[["ng-component"]],standalone:!0,features:[z],decls:1,vars:0,template:function(t,n){t&1&&y(0,"router-outlet")},dependencies:[qg],encapsulation:2})}}return i})();function el(i){let r=i.children&&i.children.map(el),e=r?ye(A({},i),{children:r}):A({},i);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==he&&(e.component=j_),e}var tl=new O(""),B_=(()=>{class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=R(is)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return H(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=Ci(e.loadComponent()).pipe(te(Uu),Ce(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ri(()=>{this.componentLoaders.delete(e)})),n=new lo(t,()=>new P).pipe(Ga());return this.componentLoaders.set(e,n),n}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return H({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=z_(t,this.compiler,e,this.onLoadEndListener).pipe(ri(()=>{this.childrenLoaders.delete(t)})),a=new lo(o,()=>new P).pipe(Ga());return this.childrenLoaders.set(t,a),a}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function z_(i,r,e,t){return Ci(i.loadChildren()).pipe(te(Uu),It(n=>n instanceof Td||Array.isArray(n)?H(n):ct(r.compileModuleAsync(n))),te(n=>{t&&t(i);let o,a,s=!1;return Array.isArray(n)?(a=n,s=!0):(o=n.create(e).injector,a=o.get(tl,[],{optional:!0,self:!0}).flat()),{routes:a.map(el),injector:o}}))}function U_(i){return i&&typeof i=="object"&&"default"in i}function Uu(i){return U_(i)?i.default:i}var il=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:()=>R(H_),providedIn:"root"})}}return i})(),H_=(()=>{class i{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),G_=new O("");var $_=new O(""),W_=(()=>{class i{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new P,this.transitionAbortSubject=new P,this.configLoader=R(B_),this.environmentInjector=R(Pi),this.urlSerializer=R(Xs),this.rootContexts=R(No),this.location=R(pn),this.inputBindingEnabled=R(Ks,{optional:!0})!==null,this.titleStrategy=R(zu),this.options=R(Js,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=R(il),this.createViewTransition=R(G_,{optional:!0}),this.navigationErrorHandler=R($_,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>H(void 0),this.rootComponentType=null;let e=n=>this.events.next(new Os(n)),t=n=>this.events.next(new Fs(n));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(ye(A(A({},this.transitions.value),e),{id:t}))}setupNavigations(e,t,n){return this.transitions=new it({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:n.snapshot,targetSnapshot:null,currentRouterState:n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ve(o=>o.id!==0),te(o=>ye(A({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Qe(o=>{let a=!1,s=!1;return H(o).pipe(Qe(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",yt.SupersededByNewNavigation),lt;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?ye(A({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let p=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),g=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!p&&g!=="reload"){let _="";return this.events.next(new Hi(l.id,this.urlSerializer.serialize(l.rawUrl),_,ks.IgnoredSameUrlNavigation)),l.resolve(!1),lt}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return H(l).pipe(Qe(_=>{let D=this.transitions?.getValue();return this.events.next(new Ir(_.id,this.urlSerializer.serialize(_.extractedUrl),_.source,_.restoredState)),D!==this.transitions?.getValue()?lt:Promise.resolve(_)}),O_(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ce(_=>{o.targetSnapshot=_.targetSnapshot,o.urlAfterRedirects=_.urlAfterRedirects,this.currentNavigation=ye(A({},this.currentNavigation),{finalUrl:_.urlAfterRedirects});let D=new Mo(_.id,this.urlSerializer.serialize(_.extractedUrl),this.urlSerializer.serialize(_.urlAfterRedirects),_.targetSnapshot);this.events.next(D)}));if(p&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:_,extractedUrl:D,source:G,restoredState:ie,extras:ae}=l,fe=new Ir(_,this.urlSerializer.serialize(D),G,ie);this.events.next(fe);let Se=Du(this.rootComponentType).snapshot;return this.currentTransition=o=ye(A({},l),{targetSnapshot:Se,urlAfterRedirects:D,extras:ye(A({},ae),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=D,H(o)}else{let _="";return this.events.next(new Hi(l.id,this.urlSerializer.serialize(l.extractedUrl),_,ks.IgnoredByUrlHandlingStrategy)),l.resolve(!1),lt}}),Ce(l=>{let p=new Ms(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),te(l=>(this.currentTransition=o=ye(A({},l),{guards:Jg(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),d_(this.environmentInjector,l=>this.events.next(l)),Ce(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Fo(this.urlSerializer,l.guardsResult);let p=new Ds(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(p)}),ve(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",yt.GuardRejected),!1)),ws(l=>{if(l.guards.canActivateChecks.length)return H(l).pipe(Ce(p=>{let g=new As(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(g)}),Qe(p=>{let g=!1;return H(p).pipe(F_(this.paramsInheritanceStrategy,this.environmentInjector),Ce({next:()=>g=!0,complete:()=>{g||this.cancelNavigationTransition(p,"",yt.NoDataFromResolver)}}))}),Ce(p=>{let g=new Rs(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(g)}))}),ws(l=>{let p=g=>{let _=[];g.routeConfig?.loadComponent&&!g.routeConfig._loadedComponent&&_.push(this.configLoader.loadComponent(g.routeConfig).pipe(Ce(D=>{g.component=D}),te(()=>{})));for(let D of g.children)_.push(...p(D));return _};return Kn(p(l.targetSnapshot.root)).pipe(qa(null),Ye(1))}),ws(()=>this.afterPreactivation()),Qe(()=>{let{currentSnapshot:l,targetSnapshot:p}=o,g=this.createViewTransition?.(this.environmentInjector,l.root,p.root);return g?ct(g).pipe(te(()=>o)):H(o)}),te(l=>{let p=Yg(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=ye(A({},l),{targetRouterState:p}),this.currentNavigation.targetRouterState=p,o}),Ce(()=>{this.events.next(new kr)}),Kg(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Ye(1),Ce({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ui(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),oe(this.transitionAbortSubject.pipe(Ce(l=>{throw l}))),ri(()=>{!a&&!s&&this.cancelNavigationTransition(o,"",yt.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),qt(l=>{if(s=!0,Pu(l))this.events.next(new si(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),Zg(l)?this.events.next(new En(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let p=new Sr(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let g=oi(this.environmentInjector,()=>this.navigationErrorHandler?.(p));if(g instanceof Dr){let{message:_,cancellationCode:D}=Fo(this.urlSerializer,g);this.events.next(new si(o.id,this.urlSerializer.serialize(o.extractedUrl),_,D)),this.events.next(new En(g.redirectTo,g.navigationBehaviorOptions))}else{this.events.next(p);let _=e.errorHandler(l);o.resolve(!!_)}}catch(g){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(g)}}return lt}))}))}cancelNavigationTransition(e,t,n){let o=new si(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function q_(i){return i!==xr}var Y_=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:()=>R(Q_),providedIn:"root"})}}return i})(),Qs=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Q_=(()=>{class i extends Qs{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Mt(i)))(n||i)}})()}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Hu=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:()=>R(X_),providedIn:"root"})}}return i})(),X_=(()=>{class i extends Hu{constructor(){super(...arguments),this.location=R(pn),this.urlSerializer=R(Xs),this.options=R(Js,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=R(il),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new li,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Du(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&e(t.url,t.state)})}handleRouterEvent(e,t){if(e instanceof Ir)this.stateMemento=this.createStateMemento();else if(e instanceof Hi)this.rawUrlTree=t.initialUrl;else if(e instanceof Mo){if(this.urlUpdateStrategy==="eager"&&!t.extras.skipLocationChange){let n=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(t.targetBrowserUrl??n,t)}}else e instanceof kr?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(t.targetBrowserUrl??this.rawUrlTree,t)):e instanceof si&&(e.code===yt.GuardRejected||e.code===yt.NoDataFromResolver)?this.restoreHistory(t):e instanceof Sr?this.restoreHistory(t,!0):e instanceof Ui&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){let n=e instanceof li?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl){let o=this.browserPageId,a=A(A({},t.extras.state),this.generateNgRouterState(t.id,o));this.location.replaceState(n,"",a)}else{let o=A(A({},t.extras.state),this.generateNgRouterState(t.id,this.browserPageId+1));this.location.go(n,"",o)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,o=this.currentPageId-n;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Mt(i)))(n||i)}})()}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),vr=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(vr||{});function Z_(i,r){i.events.pipe(ve(e=>e instanceof Ui||e instanceof si||e instanceof Sr||e instanceof Hi),te(e=>e instanceof Ui||e instanceof Hi?vr.COMPLETE:(e instanceof si?e.code===yt.Redirect||e.code===yt.SupersededByNewNavigation:!1)?vr.REDIRECTING:vr.FAILED),ve(e=>e!==vr.REDIRECTING),Ye(1)).subscribe(()=>{r()})}function K_(i){throw i}var J_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gu=(()=>{class i{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=R(fo),this.stateManager=R(Hu),this.options=R(Js,{optional:!0})||{},this.pendingTasks=R(ud),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=R(W_),this.urlSerializer=R(Xs),this.location=R(pn),this.urlHandlingStrategy=R(il),this._events=new P,this.errorHandler=this.options.errorHandler||K_,this.navigated=!1,this.routeReuseStrategy=R(Y_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=R(tl,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!R(Ks,{optional:!0}),this.eventsSubscription=new ge,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let n=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(n!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof si&&t.code!==yt.Redirect&&t.code!==yt.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Ui)this.navigated=!0;else if(t instanceof En){let a=t.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(t.url,n.currentRawUrl),l=A({browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||q_(n.source)},a);this.scheduleNavigation(s,xr,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}ib(t)&&this._events.next(t)}catch(n){this.navigationTransitions.transitionAbortSubject.next(n)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",t)},0)})}navigateToSyncWithBrowser(e,t,n){let o={replaceUrl:!0},a=n?.navigationId?n:null;if(n){let l=A({},n);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,t,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(el),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:n,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=t,p=l?this.currentUrlTree.fragment:a,g=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":g=A(A({},this.currentUrlTree.queryParams),o);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=o||null}g!==null&&(g=this.removeEmptyProps(g));let _;try{let D=n?n.snapshot:this.routerState.snapshot.root;_=Iu(D)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),_=this.currentUrlTree.root}return Su(_,e,g,p??null)}navigateByUrl(e,t={skipLocationChange:!1}){let n=Tr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,xr,null,t)}navigate(e,t={skipLocationChange:!1}){return tb(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let n;if(t===!0?n=A({},J_):t===!1?n=A({},eb):n=t,Tr(e))return cu(this.currentUrlTree,e,n);let o=this.parseUrl(e);return cu(this.currentUrlTree,o,n)}removeEmptyProps(e){return Object.entries(e).reduce((t,[n,o])=>(o!=null&&(t[n]=o),t),{})}scheduleNavigation(e,t,n,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,p;a?(s=a.resolve,l=a.reject,p=a.promise):p=new Promise((_,D)=>{s=_,l=D});let g=this.pendingTasks.add();return Z_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:p,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),p.catch(_=>Promise.reject(_))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function tb(i){for(let r=0;re.\u0275providers)])}function rb(i){return i.routerState.root}function ob(){let i=R(et);return r=>{let e=i.get(dr);if(r!==e.components[0])return;let t=i.get(Gu),n=i.get(ab);i.get(sb)===1&&t.initialNavigation(),i.get(lb,null,Xa.Optional)?.setUpPreloading(),i.get(nb,null,Xa.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var ab=new O("",{factory:()=>new P}),sb=new O("",{providedIn:"root",factory:()=>1});var lb=new O("");var Wu=[];var qu={providers:[Od({eventCoalescing:!0}),$u(Wu),lu()]};var th=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=n=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(t){return new(t||i)(c(hn),c(F))}}static{this.\u0275dir=I({type:i})}}return i})(),ih=(()=>{class i extends th{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Mt(i)))(n||i)}})()}static{this.\u0275dir=I({type:i,features:[_e]})}}return i})(),we=new O("");var cb={provide:we,useExisting:ce(()=>Kt),multi:!0};function db(){let i=mn()?mn().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var ub=new O(""),Kt=(()=>{class i extends th{constructor(e,t,n){super(e,t),this._compositionMode=n,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!db())}writeValue(e){let t=e??"";this.setProperty("value",t)}_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)}static{this.\u0275fac=function(t){return new(t||i)(c(hn),c(F),c(ub,8))}}static{this.\u0275dir=I({type:i,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(t,n){t&1&&S("input",function(a){return n._handleInput(a.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(a){return n._compositionEnd(a.target.value)})},features:[W([cb]),_e]})}}return i})();function Ti(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function nh(i){return i!=null&&typeof i.length=="number"}var Ot=new O(""),An=new O(""),hb=/^(?=.{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])?)*$/,Zt=class{static min(r){return rh(r)}static max(r){return oh(r)}static required(r){return mb(r)}static requiredTrue(r){return pb(r)}static email(r){return fb(r)}static minLength(r){return gb(r)}static maxLength(r){return _b(r)}static pattern(r){return bb(r)}static nullValidator(r){return jo(r)}static compose(r){return uh(r)}static composeAsync(r){return hh(r)}};function rh(i){return r=>{if(Ti(r.value)||Ti(i))return null;let e=parseFloat(r.value);return!isNaN(e)&&e{if(Ti(r.value)||Ti(i))return null;let e=parseFloat(r.value);return!isNaN(e)&&e>i?{max:{max:i,actual:r.value}}:null}}function mb(i){return Ti(i.value)?{required:!0}:null}function pb(i){return i.value===!0?null:{required:!0}}function fb(i){return Ti(i.value)||hb.test(i.value)?null:{email:!0}}function gb(i){return r=>Ti(r.value)||!nh(r.value)?null:r.value.lengthnh(r.value)&&r.value.length>i?{maxlength:{requiredLength:i,actualLength:r.value.length}}:null}function bb(i){if(!i)return jo;let r,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),r=new RegExp(e)):(e=i.toString(),r=i),t=>{if(Ti(t.value))return null;let n=t.value;return r.test(n)?null:{pattern:{requiredPattern:e,actualValue:n}}}}function jo(i){return null}function ah(i){return i!=null}function sh(i){return go(i)?ct(i):i}function lh(i){let r={};return i.forEach(e=>{r=e!=null?A(A({},r),e):r}),Object.keys(r).length===0?null:r}function ch(i,r){return r.map(e=>e(i))}function vb(i){return!i.validate}function dh(i){return i.map(r=>vb(r)?r:e=>r.validate(e))}function uh(i){if(!i)return null;let r=i.filter(ah);return r.length==0?null:function(e){return lh(ch(e,r))}}function al(i){return i!=null?uh(dh(i)):null}function hh(i){if(!i)return null;let r=i.filter(ah);return r.length==0?null:function(e){let t=ch(e,r).map(sh);return uo(t).pipe(te(lh))}}function sl(i){return i!=null?hh(dh(i)):null}function Yu(i,r){return i===null?[r]:Array.isArray(i)?[...i,r]:[i,r]}function mh(i){return i._rawValidators}function ph(i){return i._rawAsyncValidators}function nl(i){return i?Array.isArray(i)?i:[i]:[]}function Bo(i,r){return Array.isArray(i)?i.includes(r):i===r}function Qu(i,r){let e=nl(r);return nl(i).forEach(n=>{Bo(e,n)||e.push(n)}),e}function Xu(i,r){return nl(r).filter(e=>!Bo(i,e))}var zo=class{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(r){this._rawValidators=r||[],this._composedValidatorFn=al(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=sl(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r=void 0){this.control&&this.control.reset(r)}hasError(r,e){return this.control?this.control.hasError(r,e):!1}getError(r,e){return this.control?this.control.getError(r,e):null}},ot=class extends zo{get formDirective(){return null}get path(){return null}},xt=class extends zo{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Uo=class{constructor(r){this._cd=r}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},yb={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},FI=ye(A({},yb),{"[class.ng-submitted]":"isSubmitted"}),dt=(()=>{class i extends Uo{constructor(e){super(e)}static{this.\u0275fac=function(t){return new(t||i)(c(xt,2))}}static{this.\u0275dir=I({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&B("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[_e]})}}return i})(),fh=(()=>{class i extends Uo{constructor(e){super(e)}static{this.\u0275fac=function(t){return new(t||i)(c(ot,10))}}static{this.\u0275dir=I({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){t&2&&B("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[_e]})}}return i})();var Nr="VALID",Vo="INVALID",Mn="PENDING",Lr="DISABLED",Ei=class{},Ho=class extends Ei{constructor(r,e){super(),this.value=r,this.source=e}},jr=class extends Ei{constructor(r,e){super(),this.pristine=r,this.source=e}},Br=class extends Ei{constructor(r,e){super(),this.touched=r,this.source=e}},Dn=class extends Ei{constructor(r,e){super(),this.status=r,this.source=e}},rl=class extends Ei{constructor(r){super(),this.source=r}},ol=class extends Ei{constructor(r){super(),this.source=r}};function ll(i){return(qo(i)?i.validators:i)||null}function xb(i){return Array.isArray(i)?al(i):i||null}function cl(i,r){return(qo(r)?r.asyncValidators:i)||null}function wb(i){return Array.isArray(i)?sl(i):i||null}function qo(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function gh(i,r,e){let t=i.controls;if(!(r?Object.keys(t):t).length)throw new Ee(1e3,"");if(!t[e])throw new Ee(1001,"")}function _h(i,r,e){i._forEachChild((t,n)=>{if(e[n]===void 0)throw new Ee(1002,"")})}var zr=class{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ai(()=>this.statusReactive()),this.statusReactive=yi(void 0),this._pristine=ai(()=>this.pristineReactive()),this.pristineReactive=yi(!0),this._touched=ai(()=>this.touchedReactive()),this.touchedReactive=yi(!1),this._events=new P,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(r),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get status(){return Vt(this.statusReactive)}set status(r){Vt(()=>this.statusReactive.set(r))}get valid(){return this.status===Nr}get invalid(){return this.status===Vo}get pending(){return this.status==Mn}get disabled(){return this.status===Lr}get enabled(){return this.status!==Lr}get pristine(){return Vt(this.pristineReactive)}set pristine(r){Vt(()=>this.pristineReactive.set(r))}get dirty(){return!this.pristine}get touched(){return Vt(this.touchedReactive)}set touched(r){Vt(()=>this.touchedReactive.set(r))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._assignValidators(r)}setAsyncValidators(r){this._assignAsyncValidators(r)}addValidators(r){this.setValidators(Qu(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(Qu(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(Xu(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(Xu(r,this._rawAsyncValidators))}hasValidator(r){return Bo(this._rawValidators,r)}hasAsyncValidator(r){return Bo(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){let e=this.touched===!1;this.touched=!0;let t=r.sourceControl??this;this._parent&&!r.onlySelf&&this._parent.markAsTouched(ye(A({},r),{sourceControl:t})),e&&r.emitEvent!==!1&&this._events.next(new Br(!0,t))}markAllAsTouched(r={}){this.markAsTouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(r))}markAsUntouched(r={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=r.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:t})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r,t),e&&r.emitEvent!==!1&&this._events.next(new Br(!1,t))}markAsDirty(r={}){let e=this.pristine===!0;this.pristine=!1;let t=r.sourceControl??this;this._parent&&!r.onlySelf&&this._parent.markAsDirty(ye(A({},r),{sourceControl:t})),e&&r.emitEvent!==!1&&this._events.next(new jr(!1,t))}markAsPristine(r={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=r.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:r.emitEvent})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r,t),e&&r.emitEvent!==!1&&this._events.next(new jr(!0,t))}markAsPending(r={}){this.status=Mn;let e=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new Dn(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.markAsPending(ye(A({},r),{sourceControl:e}))}disable(r={}){let e=this._parentMarkedDirty(r.onlySelf);this.status=Lr,this.errors=null,this._forEachChild(n=>{n.disable(ye(A({},r),{onlySelf:!0}))}),this._updateValue();let t=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new Ho(this.value,t)),this._events.next(new Dn(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ye(A({},r),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(r={}){let e=this._parentMarkedDirty(r.onlySelf);this.status=Nr,this._forEachChild(t=>{t.enable(ye(A({},r),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors(ye(A({},r),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r,e){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nr||this.status===Mn)&&this._runAsyncValidator(t,r.emitEvent)}let e=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new Ho(this.value,e)),this._events.next(new Dn(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(ye(A({},r),{sourceControl:e}))}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lr:Nr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r,e){if(this.asyncValidator){this.status=Mn,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let t=sh(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:r})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let r=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,r}return!1}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(r){let e=r;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(r,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r,e,t){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),(r||t)&&this._events.next(new Dn(this.status,e)),this._parent&&this._parent._updateControlsErrors(r,e,t)}_initObservables(){this.valueChanges=new T,this.statusChanges=new T}_calculateStatus(){return this._allControlsDisabled()?Lr:this.errors?Vo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mn)?Mn:this._anyControlsHaveStatus(Vo)?Vo:Nr}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!r.onlySelf&&this._parent._updatePristine(r,e),n&&this._events.next(new jr(this.pristine,e))}_updateTouched(r={},e){this.touched=this._anyControlsTouched(),this._events.next(new Br(this.touched,e)),this._parent&&!r.onlySelf&&this._parent._updateTouched(r,e)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){qo(r)&&r.updateOn!=null&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){let e=this._parent&&this._parent.dirty;return!r&&!!e&&!this._parent._anyControlsDirty()}_find(r){return null}_assignValidators(r){this._rawValidators=Array.isArray(r)?r.slice():r,this._composedValidatorFn=xb(this._rawValidators)}_assignAsyncValidators(r){this._rawAsyncValidators=Array.isArray(r)?r.slice():r,this._composedAsyncValidatorFn=wb(this._rawAsyncValidators)}},zt=class extends zr{constructor(r,e,t){super(ll(e),cl(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){_h(this,!0,r),Object.keys(r).forEach(t=>{gh(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){r!=null&&(Object.keys(r).forEach(t=>{let n=this.controls[t];n&&n.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,n)=>{t.reset(r?r[n]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){let r={};return this._reduceChildren(r,(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((n,o)=>{t=e(t,n,o)}),t}_allControlsDisabled(){for(let r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}};var Ur=new O("CallSetDisabledState",{providedIn:"root",factory:()=>Yo}),Yo="always";function Qo(i,r){return[...r.path,i]}function Go(i,r,e=Yo){dl(i,r),r.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&r.valueAccessor.setDisabledState?.(i.disabled),Tb(i,r),Ib(i,r),Eb(i,r),Cb(i,r)}function Zu(i,r,e=!0){let t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Wo(i,r),i&&(r._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function $o(i,r){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function Cb(i,r){if(r.valueAccessor.setDisabledState){let e=t=>{r.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),r._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function dl(i,r){let e=mh(i);r.validator!==null?i.setValidators(Yu(e,r.validator)):typeof e=="function"&&i.setValidators([e]);let t=ph(i);r.asyncValidator!==null?i.setAsyncValidators(Yu(t,r.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();$o(r._rawValidators,n),$o(r._rawAsyncValidators,n)}function Wo(i,r){let e=!1;if(i!==null){if(r.validator!==null){let n=mh(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==r.validator);o.length!==n.length&&(e=!0,i.setValidators(o))}}if(r.asyncValidator!==null){let n=ph(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==r.asyncValidator);o.length!==n.length&&(e=!0,i.setAsyncValidators(o))}}}let t=()=>{};return $o(r._rawValidators,t),$o(r._rawAsyncValidators,t),e}function Tb(i,r){r.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&bh(i,r)})}function Eb(i,r){r.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&bh(i,r),i.updateOn!=="submit"&&i.markAsTouched()})}function bh(i,r){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Ib(i,r){let e=(t,n)=>{r.valueAccessor.writeValue(t),n&&r.viewToModelUpdate(t)};i.registerOnChange(e),r._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function vh(i,r){i==null,dl(i,r)}function Sb(i,r){return Wo(i,r)}function yh(i,r){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(r,e.currentValue)}function kb(i){return Object.getPrototypeOf(i.constructor)===ih}function xh(i,r){i._syncPendingControls(),r.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function wh(i,r){if(!r)return null;Array.isArray(r);let e,t,n;return r.forEach(o=>{o.constructor===Kt?e=o:kb(o)?t=o:n=o}),n||t||e||null}function Mb(i,r){let e=i.indexOf(r);e>-1&&i.splice(e,1)}var Db={provide:ot,useExisting:ce(()=>Gi)},Vr=Promise.resolve(),Gi=(()=>{class i extends ot{get submitted(){return Vt(this.submittedReactive)}constructor(e,t,n){super(),this.callSetDisabledState=n,this._submitted=ai(()=>this.submittedReactive()),this.submittedReactive=yi(!1),this._directives=new Set,this.ngSubmit=new T,this.form=new zt({},al(e),sl(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vr.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Go(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vr.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vr.then(()=>{let t=this._findContainer(e.path),n=new zt({});vh(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vr.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vr.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),xh(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(t){return new(t||i)(c(Ot,10),c(An,10),c(Ur,8))}}static{this.\u0275dir=I({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){t&1&&S("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[W([Db]),_e]})}}return i})();function Ku(i,r){let e=i.indexOf(r);e>-1&&i.splice(e,1)}function Ju(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Hr=class extends zr{constructor(r=null,e,t){super(ll(e),cl(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qo(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ju(r)?this.defaultValue=r.value:this.defaultValue=r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){Ku(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){Ku(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(r){Ju(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}};var Ab=i=>i instanceof Hr,Rb=(()=>{class i extends ot{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Qo(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Mt(i)))(n||i)}})()}static{this.\u0275dir=I({type:i,features:[_e]})}}return i})();var Ob={provide:xt,useExisting:ce(()=>ut)},eh=Promise.resolve(),ut=(()=>{class i extends xt{constructor(e,t,n,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Hr,this._registered=!1,this.name="",this.update=new T,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=wh(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),yh(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&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Go(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()&&this.name}_updateValue(e){eh.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&v(t);eh.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Qo(e,this._parent):[e]}static{this.\u0275fac=function(t){return new(t||i)(c(ot,9),c(Ot,10),c(An,10),c(we,10),c(Z,8),c(Ur,8))}}static{this.\u0275dir=I({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[W([Ob]),_e,se]})}}return i})(),Ch=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})(),Fb={provide:we,useExisting:ce(()=>Xo),multi:!0},Xo=(()=>{class i extends ih{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Mt(i)))(n||i)}})()}static{this.\u0275dir=I({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){t&1&&S("input",function(a){return n.onChange(a.target.value)})("blur",function(){return n.onTouched()})},features:[W([Fb]),_e]})}}return i})();var Th=new O("");var Pb={provide:ot,useExisting:ce(()=>Jt)},Jt=(()=>{class i extends ot{get submitted(){return Vt(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,t,n){super(),this.callSetDisabledState=n,this._submitted=ai(()=>this._submittedReactive()),this._submittedReactive=yi(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new T,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Wo(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){let t=this.form.get(e.path);return Go(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Zu(e.control||null,e,!1),Mb(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,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this._submittedReactive.set(!0),xh(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new rl(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new ol(this.form))}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,n=this.form.get(e.path);t!==n&&(Zu(t||null,e),Ab(n)&&(Go(n,e,this.callSetDisabledState),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);vh(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let t=this.form.get(e.path);t&&Sb(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dl(this.form,this),this._oldForm&&Wo(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(t){return new(t||i)(c(Ot,10),c(An,10),c(Ur,8))}}static{this.\u0275dir=I({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,n){t&1&&S("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[W([Pb]),_e,se]})}}return i})(),Nb={provide:ot,useExisting:ce(()=>Zo)},Zo=(()=>{class i extends Rb{constructor(e,t,n){super(),this.name=null,this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Eh(this._parent)}static{this.\u0275fac=function(t){return new(t||i)(c(ot,13),c(Ot,10),c(An,10))}}static{this.\u0275dir=I({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[W([Nb]),_e]})}}return i})(),Lb={provide:ot,useExisting:ce(()=>Ko)},Ko=(()=>{class i extends ot{constructor(e,t,n){super(),this.name=null,this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Qo(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Eh(this._parent)}static{this.\u0275fac=function(t){return new(t||i)(c(ot,13),c(Ot,10),c(An,10))}}static{this.\u0275dir=I({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[W([Lb]),_e]})}}return i})();function Eh(i){return!(i instanceof Zo)&&!(i instanceof Jt)&&!(i instanceof Ko)}var Vb={provide:xt,useExisting:ce(()=>ul)},ul=(()=>{class i extends xt{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,t,n,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new T,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=wh(this,o)}ngOnChanges(e){this._added||this._setUpControl(),yh(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 Qo(this.name==null?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}static{this.\u0275fac=function(t){return new(t||i)(c(ot,13),c(Ot,10),c(An,10),c(we,10),c(Th,8))}}static{this.\u0275dir=I({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[W([Vb]),_e,se]})}}return i})();function Ih(i){return typeof i=="number"?i:parseFloat(i)}var Sh=(()=>{class i{constructor(){this._validator=jo}ngOnChanges(e){if(this.inputName in e){let t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):jo,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,features:[se]})}}return i})(),jb={provide:Ot,useExisting:ce(()=>Jo),multi:!0},Jo=(()=>{class i extends Sh{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>Ih(e),this.createValidator=e=>oh(e)}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Mt(i)))(n||i)}})()}static{this.\u0275dir=I({type:i,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,n){t&2&&K("max",n._enabled?n.max:null)},inputs:{max:"max"},features:[W([jb]),_e]})}}return i})(),Bb={provide:Ot,useExisting:ce(()=>ea),multi:!0},ea=(()=>{class i extends Sh{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>Ih(e),this.createValidator=e=>rh(e)}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Mt(i)))(n||i)}})()}static{this.\u0275dir=I({type:i,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,n){t&2&&K("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[W([Bb]),_e]})}}return i})();var kh=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})(),Ii=class extends zr{constructor(r,e,t){super(ll(e),cl(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,t={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(r,e={}){let t=this._adjustIndex(r);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,t={}){let n=this._adjustIndex(r);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,e={}){_h(this,!1,r),r.forEach((t,n)=>{gh(this,!1,n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){r!=null&&(r.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((t,n)=>{t.reset(r[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,t)=>t._syncPendingControls()?!0:e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,t)=>{r(e,t)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(let r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}};var at=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Ur,useValue:e.callSetDisabledState??Yo}]}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[kh]})}}return i})(),Gr=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Th,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ur,useValue:e.callSetDisabledState??Yo}]}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[kh]})}}return i})();var zb=new O("cdk-dir-doc",{providedIn:"root",factory:Ub});function Ub(){return R(X)}var Hb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Gb(i){let r=i?.toLowerCase()||"";return r==="auto"&&typeof navigator<"u"&&navigator?.language?Hb.test(navigator.language)?"rtl":"ltr":r==="rtl"?"rtl":"ltr"}var Fe=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new T,e){let t=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=Gb(t||n||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(t){return new(t||i)(E(zb,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Si=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})();function ei(i){return i!=null&&`${i}`!="false"}function ki(i,r=0){return $b(i)?Number(i):arguments.length===2?r:0}function $b(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Rn(i){return Array.isArray(i)?i:[i]}function Pe(i){return i==null?"":typeof i=="string"?i:`${i}px`}function ht(i){return i instanceof F?i.nativeElement:i}var ml;try{ml=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ml=!1}var le=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Ud(this._platformId):typeof document=="object"&&!!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||ml)&&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}static{this.\u0275fac=function(t){return new(t||i)(E(Li))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var On,Mh=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function pl(){if(On)return On;if(typeof document!="object"||!document)return On=new Set(Mh),On;let i=document.createElement("input");return On=new Set(Mh.filter(r=>(i.setAttribute("type",r),i.type===r))),On}var $r;function Wb(){if($r==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$r=!0}))}finally{$r=$r||!1}return $r}function Ft(i){return Wb()?i:!!i.capture}var Ut=function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i}(Ut||{}),ia,$i;function na(){if($i==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return $i=!1,$i;if("scrollBehavior"in document.documentElement.style)$i=!0;else{let i=Element.prototype.scrollTo;i?$i=!/\{\s*\[native code\]\s*\}/.test(i.toString()):$i=!1}}return $i}function Fn(){if(typeof document!="object"||!document)return Ut.NORMAL;if(ia==null){let i=document.createElement("div"),r=i.style;i.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";let e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",i.appendChild(e),document.body.appendChild(i),ia=Ut.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,ia=i.scrollLeft===0?Ut.NEGATED:Ut.INVERTED),i.remove()}return ia}var hl;function qb(){if(hl==null){let i=typeof document<"u"?document.head:null;hl=!!(i&&(i.createShadowRoot||i.attachShadow))}return hl}function Dh(i){if(qb()){let r=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function wt(i){return i.composedPath?i.composedPath()[0]:i.target}function Wr(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var fl=class{constructor(r){this._box=r,this._destroyed=new P,this._resizeSubject=new P,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(r){return this._elementObservables.has(r)||this._elementObservables.set(r,new ft(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(r,{box:this._box}),()=>{this._resizeObserver?.unobserve(r),t.unsubscribe(),this._elementObservables.delete(r)}}).pipe(ve(e=>e.some(t=>t.target===r)),Qa({bufferSize:1,refCount:!0}),oe(this._destroyed))),this._elementObservables.get(r)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},ra=(()=>{class i{constructor(){this._observers=new Map,this._ngZone=R($),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new fl(n)),this._observers.get(n).observe(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Yb(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let r=0;r{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Qb=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map,this._ngZone=R($)}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){let t=ht(e);return new ft(n=>{let a=this._observeElement(t).pipe(te(s=>s.filter(l=>!Yb(l))),ve(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{n.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let t=new P,n=this._mutationObserverFactory.create(o=>t.next(o));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,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)){let{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}static{this.\u0275fac=function(t){return new(t||i)(E(Ah))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Rh=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ki(e),this._subscribe()}constructor(e,t){this._contentObserver=e,this._elementRef=t,this.event=new T,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(St(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)(c(Qb),c(F))}}static{this.\u0275dir=I({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",v],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ne]})}}return i})(),oa=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[Ah]})}}return i})();function qe(i,...r){return r.length?r.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var Oh=new Set,Wi,Xb=(()=>{class i{constructor(e,t){this._platform=e,this._nonce=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Kb}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Zb(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(t){return new(t||i)(E(le),E(rr,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Zb(i,r){if(!Oh.has(i))try{Wi||(Wi=document.createElement("style"),r&&Wi.setAttribute("nonce",r),Wi.setAttribute("type","text/css"),document.head.appendChild(Wi)),Wi.sheet&&(Wi.sheet.insertRule(`@media ${i} {body{ }}`,0),Oh.add(i))}catch(e){console.error(e)}}function Kb(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Ph=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new P}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Fh(Rn(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Fh(Rn(e)).map(a=>this._registerQuery(a).observable),o=Kn(n);return o=co(o.pipe(Ye(1)),o.pipe(an(1),St(0))),o.pipe(te(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:p})=>{s.matches=s.matches||l,s.breakpoints[p]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),o={observable:new ft(a=>{let s=l=>this._zone.run(()=>a.next(l));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(Ge(t),te(({matches:a})=>({query:e,matches:a})),oe(this._destroySubject)),mql:t};return this._queries.set(e,o),o}static{this.\u0275fac=function(t){return new(t||i)(E(Xb),E($))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Fh(i){return i.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}var jh=" ";function xl(i,r,e){let t=ca(i,r);e=e.trim(),!t.some(n=>n.trim()===e)&&(t.push(e),i.setAttribute(r,t.join(jh)))}function fa(i,r,e){let t=ca(i,r);e=e.trim();let n=t.filter(o=>o!==e);n.length?i.setAttribute(r,n.join(jh)):i.removeAttribute(r)}function ca(i,r){return i.getAttribute(r)?.match(/\S+/g)??[]}var Bh="cdk-describedby-message",aa="cdk-describedby-host",bl=0,zh=(()=>{class i{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${bl++}`,this._document=e,this._id=R(nr)+"-"+bl++}describe(e,t,n){if(!this._canBeDescribed(e,t))return;let o=gl(t,n);typeof t!="string"?(Nh(t,this._id),this._messageRegistry.set(o,{messageElement:t,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;let o=gl(t,n);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof t=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${aa}="${this._id}"]`);for(let t=0;tn.indexOf(Bh)!=0);e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){let n=this._messageRegistry.get(t);xl(e,"aria-describedby",n.messageElement.id),e.setAttribute(aa,this._id),n.referenceCount++}_removeMessageReference(e,t){let n=this._messageRegistry.get(t);n.referenceCount--,fa(e,"aria-describedby",n.messageElement.id),e.removeAttribute(aa)}_isElementDescribedByMessage(e,t){let n=ca(e,"aria-describedby"),o=this._messageRegistry.get(t),a=o&&o.messageElement.id;return!!a&&n.indexOf(a)!=-1}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&typeof t=="object")return!0;let n=t==null?"":`${t}`.trim(),o=e.getAttribute("aria-label");return n?!o||o.trim()!==n:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(t){return new(t||i)(E(X),E(le))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function gl(i,r){return typeof i=="string"?`${r||""}/${i}`:i}function Nh(i,r){i.id||(i.id=`${Bh}-${r}-${bl++}`)}var hv=200,vl=class{constructor(r,e){this._letterKeyStream=new P,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new P,this.selectedItem=this._selectedItem;let t=typeof e?.debounceInterval=="number"?e.debounceInterval:hv;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(r),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(r){this._selectedItemIndex=r}setItems(r){this._items=r}handleKey(r){let e=r.keyCode;r.key&&r.key.length===1?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(r){this._letterKeyStream.pipe(Ce(e=>this._pressedLetters.push(e)),St(r),ve(()=>this._pressedLetters.length>0),te(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;tt.disabled,this.tabOut=new P,this.change=new P,r instanceof sn?this._itemChangesSubscription=r.changes.subscribe(t=>this._itemsChanged(t.toArray())):Za(r)&&(this._effectRef=Ld(()=>this._itemsChanged(r()),{injector:e}))}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new vl(e,{debounceInterval:typeof r=="number"?r:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(r=!0){return this._homeAndEnd=r,this}withPageUpDown(r=!0,e=10){return this._pageUpAndDown={enabled:r,delta:e},this}setActiveItem(r){let e=this._activeItem;this.updateActiveItem(r),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(r){let e=r.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!r[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e,this._typeahead?.setCurrentSelectedItemIndex(e))}}},ua=class extends da{setActiveItem(r){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(r),this.activeItem&&this.activeItem.setActiveStyles()}},ha=class extends da{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}};function wl(i){return i.buttons===0||i.detail===0}function Cl(i){let r=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!r&&r.identifier===-1&&(r.radiusX==null||r.radiusX===1)&&(r.radiusY==null||r.radiusY===1)}var mv=new O("cdk-input-modality-detector-options"),pv={ignoreKeys:[18,17,224,91,16]},Uh=650,Pn=Ft({passive:!0,capture:!0}),fv=(()=>{class i{get mostRecentModality(){return this._modality.value}constructor(e,t,n,o){this._platform=e,this._mostRecentTarget=null,this._modality=new it(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=wt(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(Cl(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=wt(a)},this._options=A(A({},pv),o),this.modalityDetected=this._modality.pipe(an(1)),this.modalityChanged=this.modalityDetected.pipe(ni()),e.isBrowser&&t.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,Pn),n.addEventListener("mousedown",this._onMousedown,Pn),n.addEventListener("touchstart",this._onTouchstart,Pn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Pn),document.removeEventListener("mousedown",this._onMousedown,Pn),document.removeEventListener("touchstart",this._onTouchstart,Pn))}static{this.\u0275fac=function(t){return new(t||i)(E(le),E($),E(X),E(mv,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),gv=new O("liveAnnouncerElement",{providedIn:"root",factory:_v});function _v(){return null}var bv=new O("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),vv=0,Hh=(()=>{class i{constructor(e,t,n,o){this._ngZone=t,this._defaultOptions=o,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){let n=this._defaultOptions,o,a;return t.length===1&&typeof t[0]=="number"?a=t[0]:[o,a]=t,this.clear(),clearTimeout(this._previousTimeout),o||(o=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(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(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{class i{constructor(e,t,n,o,a){this._ngZone=e,this._platform=t,this._inputModalityDetector=n,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 P,this._rootNodeFocusAndBlurListener=s=>{let l=wt(s);for(let p=l;p;p=p.parentElement)s.type==="focus"?this._onFocus(s,p):this._onBlur(s,p)},this._document=o,this._detectionMode=a?.detectionMode||la.IMMEDIATE}monitor(e,t=!1){let n=ht(e);if(!this._platform.isBrowser||n.nodeType!==1)return H();let o=Dh(n)||this._getDocument(),a=this._elementInfo.get(n);if(a)return t&&(a.checkChildren=!0),a.subject;let s={checkChildren:t,subject:new P,rootNode:o};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let t=ht(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){let o=ht(e),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,t,l)):(this._setOrigin(t),typeof o.focus=="function"&&o.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_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 this._detectionMode===la.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program")}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===la.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?Uh:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,t){let n=this._elementInfo.get(t),o=wt(e);!n||!n.checkChildren&&t!==o||this._originChanged(t,this._getFocusOrigin(o),n)}_onBlur(e,t){let n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,sa),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,sa)}),this._rootNodeFocusListenerCount.set(t,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(oe(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,sa),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,sa),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((n,o)=>{(o===e||n.checkChildren&&o.contains(e))&&t.push([o,n])}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class i{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this._focusOrigin=null,this.cdkFocusChange=new T}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Ct))}}static{this.\u0275dir=I({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}}return i})(),qi=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(qi||{}),Lh="cdk-high-contrast-black-on-white",Vh="cdk-high-contrast-white-on-black",_l="cdk-high-contrast-active",Tl=(()=>{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=R(Ph).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return qi.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,o=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return qi.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return qi.BLACK_ON_WHITE}return qi.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(_l,Lh,Vh),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===qi.BLACK_ON_WHITE?e.add(_l,Lh):t===qi.WHITE_ON_BLACK&&e.add(_l,Vh)}}static{this.\u0275fac=function(t){return new(t||i)(E(le),E(X))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ga=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(t){return new(t||i)(E(Tl))}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[oa]})}}return i})();var xv=["text"],wv=[[["mat-icon"]],"*"],Cv=["mat-icon","*"];function Tv(i,r){if(i&1&&y(0,"mat-pseudo-checkbox",1),i&2){let e=u();f("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function Ev(i,r){if(i&1&&y(0,"mat-pseudo-checkbox",3),i&2){let e=u();f("disabled",e.disabled)}}function Iv(i,r){if(i&1&&(h(0,"span",4),ee(1),m()),i&2){let e=u();d(),xi("(",e.group.label,")")}}var Sv=["mat-internal-form-field",""],kv=["*"];function Mv(){return!0}var Dv=new O("mat-sanity-checks",{providedIn:"root",factory:Mv}),me=(()=>{class i{constructor(e,t,n){this._sanityChecks=t,this._document=n,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return Wr()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(t){return new(t||i)(E(Tl),E(Dv,8),E(X))}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Si,Si]})}}return i})();var Mi=class{constructor(r,e,t,n,o){this._defaultMatcher=r,this.ngControl=e,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let r=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=t?.isErrorState(n,e)??!1;o!==r&&(this.errorState=o,this._stateChanges.next())}};var Nn=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var st=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(st||{}),Sl=class{constructor(r,e,t,n=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=n,this.state=st.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},$h=Ft({passive:!0,capture:!0}),kl=class{constructor(){this._events=new Map,this._delegateEventHandler=r=>{let e=wt(r);e&&this._events.get(r.type)?.forEach((t,n)=>{(n===e||n.contains(e))&&t.forEach(o=>o.handleEvent(r))})}}addHandler(r,e,t,n){let o=this._events.get(e);if(o){let a=o.get(t);a?a.add(n):o.set(t,new Set([n]))}else this._events.set(e,new Map([[t,new Set([n])]])),r.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,$h)})}removeHandler(r,e,t){let n=this._events.get(r);if(!n)return;let o=n.get(e);o&&(o.delete(t),o.size===0&&n.delete(e),n.size===0&&(this._events.delete(r),document.removeEventListener(r,this._delegateEventHandler,$h)))}},Wh={enterDuration:225,exitDuration:150},Av=800,qh=Ft({passive:!0,capture:!0}),Yh=["mousedown","touchstart"],Qh=["mouseup","mouseleave","touchend","touchcancel"],Ml=class i{static{this._eventManager=new kl}constructor(r,e,t,n){this._target=r,this._ngZone=e,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=ht(t))}fadeInRipple(r,e,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=A(A({},Wh),t.animation);t.centered&&(r=n.left+n.width/2,e=n.top+n.height/2);let a=t.radius||Rv(r,e,n),s=r-n.left,l=e-n.top,p=o.enterDuration,g=document.createElement("div");g.classList.add("mat-ripple-element"),g.style.left=`${s-a}px`,g.style.top=`${l-a}px`,g.style.height=`${a*2}px`,g.style.width=`${a*2}px`,t.color!=null&&(g.style.backgroundColor=t.color),g.style.transitionDuration=`${p}ms`,this._containerElement.appendChild(g);let _=window.getComputedStyle(g),D=_.transitionProperty,G=_.transitionDuration,ie=D==="none"||G==="0s"||G==="0s, 0s"||n.width===0&&n.height===0,ae=new Sl(this,g,t,ie);g.style.transform="scale3d(1, 1, 1)",ae.state=st.FADING_IN,t.persistent||(this._mostRecentTransientRipple=ae);let fe=null;return!ie&&(p||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Se=()=>{fe&&(fe.fallbackTimer=null),clearTimeout(Wt),this._finishRippleTransition(ae)},bi=()=>this._destroyRipple(ae),Wt=setTimeout(bi,p+100);g.addEventListener("transitionend",Se),g.addEventListener("transitioncancel",bi),fe={onTransitionEnd:Se,onTransitionCancel:bi,fallbackTimer:Wt}}),this._activeRipples.set(ae,fe),(ie||!p)&&this._finishRippleTransition(ae),ae}fadeOutRipple(r){if(r.state===st.FADING_OUT||r.state===st.HIDDEN)return;let e=r.element,t=A(A({},Wh),r.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=st.FADING_OUT,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){let e=ht(r);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Yh.forEach(t=>{i._eventManager.addHandler(this._ngZone,t,e,this)}))}handleEvent(r){r.type==="mousedown"?this._onMousedown(r):r.type==="touchstart"?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Qh.forEach(e=>{this._triggerElement.addEventListener(e,this,qh)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){r.state===st.FADING_IN?this._startFadeOutTransition(r):r.state===st.FADING_OUT&&this._destroyRipple(r)}_startFadeOutTransition(r){let e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=st.VISIBLE,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){let e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=st.HIDDEN,e!==null&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),r.element.remove()}_onMousedown(r){let e=wl(r),t=this._lastTouchStartEvent&&Date.now(){let e=r.state===st.VISIBLE||r.config.terminateOnPointerUp&&r.state===st.FADING_IN;!r.config.persistent&&e&&r.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let r=this._triggerElement;r&&(Yh.forEach(e=>i._eventManager.removeHandler(e,r,this)),this._pointerUpEventsRegistered&&(Qh.forEach(e=>r.removeEventListener(e,this,qh)),this._pointerUpEventsRegistered=!1))}};function Rv(i,r,e){let t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),n=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+n*n)}var qr=new O("mat-ripple-global-options"),Nt=(()=>{class i{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,t,n,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Ml(this,t,e,n)}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:A(A(A({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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,t=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,A(A({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,A(A({},this.rippleConfig),e))}static{this.\u0275fac=function(t){return new(t||i)(c(F),c($),c(le),c(qr,8),c(Ie,8))}}static{this.\u0275dir=I({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){t&2&&B("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return i})(),Zi=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,me]})}}return i})(),Al=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(t){return new(t||i)(c(Ie,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,n){t&2&&B("mat-pseudo-checkbox-indeterminate",n.state==="indeterminate")("mat-pseudo-checkbox-checked",n.state==="checked")("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal",n.appearance==="minimal")("mat-pseudo-checkbox-full",n.appearance==="full")("_mat-animation-noopable",n._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[z],decls:0,vars:0,template:function(t,n){},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-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.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})}}return i})(),Ov=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me]})}}return i})(),Rl=new O("MAT_OPTION_PARENT_COMPONENT");var Ol=new O("MatOptgroup");var Fv=0,Dl=class{constructor(r,e=!1){this.source=r,this.isUserInput=e}},ba=(()=>{class i{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=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,t,n,o){this._element=e,this._changeDetectorRef=t,this._parent=n,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${Fv++}`,this.onSelectionChange=new T,this._stateChanges=new P}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!qe(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let 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 Dl(this,e))}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Z),c(Rl,8),c(Ol,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-option"]],viewQuery:function(t,n){if(t&1&&Q(xv,7),t&2){let o;k(o=M())&&(n._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,n){t&1&&S("click",function(){return n._selectViaInteraction()})("keydown",function(a){return n._handleKeydown(a)}),t&2&&(Dt("id",n.id),K("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),B("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",v]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[ne,z],ngContentSelectors:Cv,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){t&1&&(de(wv),b(0,Tv,1,2,"mat-pseudo-checkbox",1),q(1),h(2,"span",2,0),q(4,1),m(),b(5,Ev,1,1,"mat-pseudo-checkbox",3)(6,Iv,2,1,"span",4),y(7,"div",5)),t&2&&(C(n.multiple?0:-1),d(5),C(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),d(),C(n.group&&n.group._inert?6:-1),d(),f("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Al,Nt],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.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-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return i})();function Jh(i,r,e){if(e.length){let t=r.toArray(),n=e.toArray(),o=0;for(let a=0;ae+t?Math.max(0,i-t+r):e}var Fl=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Zi,me,Ov]})}}return i})(),Xh={capture:!0},Zh=["focus","mousedown","mouseenter","touchstart"],El="mat-ripple-loader-uninitialized",Il="mat-ripple-loader-class-name",Kh="mat-ripple-loader-centered",_a="mat-ripple-loader-disabled",tm=(()=>{class i{constructor(){this._document=R(X,{optional:!0}),this._animationMode=R(Ie,{optional:!0}),this._globalRippleOptions=R(qr,{optional:!0}),this._platform=R(le),this._ngZone=R($),this._hosts=new Map,this._onInteraction=e=>{let t=wt(e);if(t instanceof HTMLElement){let n=t.closest(`[${El}="${this._globalRippleOptions?.namespace??""}"]`);n&&this._createRipple(n)}},this._ngZone.runOutsideAngular(()=>{for(let e of Zh)this._document?.addEventListener(e,this._onInteraction,Xh)})}ngOnDestroy(){let e=this._hosts.keys();for(let t of e)this.destroyRipple(t);for(let t of Zh)this._document?.removeEventListener(t,this._onInteraction,Xh)}configureRipple(e,t){e.setAttribute(El,this._globalRippleOptions?.namespace??""),(t.className||!e.hasAttribute(Il))&&e.setAttribute(Il,t.className||""),t.centered&&e.setAttribute(Kh,""),t.disabled&&e.setAttribute(_a,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,t){let n=this._hosts.get(e);if(n){n.disabled=t;return}t?e.setAttribute(_a,""):e.removeAttribute(_a)}_createRipple(e){if(!this._document)return;let t=this._hosts.get(e);if(t)return t;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(Il)),e.append(n);let o=new Nt(new F(n),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(Kh),o.disabled=e.hasAttribute(_a),this.attachRipple(e,o),o}attachRipple(e,t){e.removeAttribute(El),this._hosts.set(e,t)}destroyRipple(e){let t=this._hosts.get(e);t&&(t.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),im=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=N({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,n){t&2&&B("mdc-form-field--align-end",n.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[z],attrs:Sv,ngContentSelectors:kv,decls:1,vars:0,template:function(t,n){t&1&&(de(),q(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.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 .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}}return i})();var Pv=["notch"],Nv=["matFormFieldNotchedOutline",""],Lv=["*"],Vv=["textField"],jv=["iconPrefixContainer"],Bv=["textPrefixContainer"],zv=["iconSuffixContainer"],Uv=["textSuffixContainer"],Hv=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Gv=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function $v(i,r){i&1&&y(0,"span",21)}function Wv(i,r){if(i&1&&(h(0,"label",20),q(1,1),b(2,$v,1,0,"span",21),m()),i&2){let e=u(2);f("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),K("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),C(!e.hideRequiredMarker&&e._control.required?2:-1)}}function qv(i,r){if(i&1&&b(0,Wv,3,5,"label",20),i&2){let e=u();C(e._hasFloatingLabel()?0:-1)}}function Yv(i,r){i&1&&y(0,"div",7)}function Qv(i,r){}function Xv(i,r){if(i&1&&b(0,Qv,0,0,"ng-template",13),i&2){u(2);let e=be(1);f("ngTemplateOutlet",e)}}function Zv(i,r){if(i&1&&(h(0,"div",9),b(1,Xv,1,1,null,13),m()),i&2){let e=u();f("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),C(e._forceDisplayInfixLabel()?-1:1)}}function Kv(i,r){i&1&&(h(0,"div",10,2),q(2,2),m())}function Jv(i,r){i&1&&(h(0,"div",11,3),q(2,3),m())}function e0(i,r){}function t0(i,r){if(i&1&&b(0,e0,0,0,"ng-template",13),i&2){u();let e=be(1);f("ngTemplateOutlet",e)}}function i0(i,r){i&1&&(h(0,"div",14,4),q(2,4),m())}function n0(i,r){i&1&&(h(0,"div",15,5),q(2,5),m())}function r0(i,r){i&1&&y(0,"div",16)}function o0(i,r){if(i&1&&(h(0,"div",18),q(1,6),m()),i&2){let e=u();f("@transitionMessages",e._subscriptAnimationState)}}function a0(i,r){if(i&1&&(h(0,"mat-hint",22),ee(1),m()),i&2){let e=u(2);f("id",e._hintLabelId),d(),ue(e.hintLabel)}}function s0(i,r){if(i&1&&(h(0,"div",19),b(1,a0,2,2,"mat-hint",22),q(2,7),y(3,"div",23),q(4,8),m()),i&2){let e=u();f("@transitionMessages",e._subscriptAnimationState),d(),C(e.hintLabel?1:-1)}}var nm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["mat-label"]],standalone:!0})}}return i})();var l0=new O("MatError");var c0=0,Tt=(()=>{class i{constructor(){this.align="start",this.id=`mat-mdc-hint-${c0++}`}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(Dt("id",n.id),K("align",null),B("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return i})(),um=new O("MatPrefix"),hi=(()=>{class i{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[W([{provide:um,useExisting:i}])]})}}return i})(),hm=new O("MatSuffix"),mi=(()=>{class i{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[W([{provide:hm,useExisting:i}])]})}}return i})(),mm=new O("FloatingLabelParent"),rm=(()=>{class i{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=R(ra),this._ngZone=R($),this._parent=R(mm),this._resizeSubscription=new ge}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return d0(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=I({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&B("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return i})();function d0(i){let r=i;if(r.offsetParent!==null)return r.scrollWidth;let e=r.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var om="mdc-line-ripple--active",va="mdc-line-ripple--deactivating",am=(()=>{class i{constructor(e,t){this._elementRef=e,this._handleTransitionEnd=n=>{let o=this._elementRef.nativeElement.classList,a=o.contains(va);n.propertyName==="opacity"&&a&&o.remove(om,va)},t.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(va),e.add(om)}deactivate(){this._elementRef.nativeElement.classList.add(va)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c($))}}static{this.\u0275dir=I({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return i})(),sm=(()=>{class i{constructor(e,t){this._elementRef=e,this._ngZone=t,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(t){return new(t||i)(c(F),c($))}}static{this.\u0275cmp=N({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&Q(Pv,5),t&2){let o;k(o=M())&&(n._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&B("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[z],attrs:Nv,ngContentSelectors:Lv,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(de(),y(0,"div",1),h(1,"div",2,0),q(3),m(),y(4,"div",3))},encapsulation:2,changeDetection:0})}}return i})(),u0={transitionMessages:At("transitionMessages",[bt("enter",Re({opacity:1,transform:"translateY(0%)"})),tt("void => enter",[Re({opacity:0,transform:"translateY(-5px)"}),rt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ki=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i})}}return i})();var Ji=new O("MatFormField"),h0=new O("MAT_FORM_FIELD_DEFAULT_OPTIONS"),lm=0,cm="fill",m0="auto",dm="fixed",p0="translateY(-50%)",Ht=(()=>{class i{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ei(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||m0}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let t=this._appearance,n=e||this._defaults?.appearance||cm;this._appearance=n,this._appearance==="outline"&&this._appearance!==t&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||dm}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||dm}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,t,n,o,a,s,l,p){this._elementRef=e,this._changeDetectorRef=t,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=l,this._labelChild=Cd(nm),this._hideRequiredMarker=!1,this.color="primary",this._appearance=cm,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${lm++}`,this._hintLabelId=`mat-mdc-hint-${lm++}`,this._subscriptAnimationState="",this._destroyed=new P,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=R(et),this.getLabelId=ai(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=ai(()=>!!this._labelChild()),s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(oe(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(),ke(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),mo(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(oe(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let t=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,n=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let t=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=t?.getBoundingClientRect().width??0,l=n?.getBoundingClientRect().width??0,p=o?.getBoundingClientRect().width??0,g=a?.getBoundingClientRect().width??0,_=this._dir.value==="rtl"?"-1":"1",D=`${s+l}px`,ie=`calc(${_} * (${D} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( + --mat-mdc-form-field-label-transform, + ${p0} translateX(${ie}) + )`;let ae=s+l+p+g;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${ae}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Z),c($),c(Fe),c(le),c(h0,8),c(Ie,8),c(X))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-form-field"]],contentQueries:function(t,n,o){if(t&1&&(Dd(o,n._labelChild,nm,5),Y(o,Ki,5),Y(o,um,5),Y(o,hm,5),Y(o,l0,5),Y(o,Tt,5)),t&2){Ad();let a;k(a=M())&&(n._formFieldControl=a.first),k(a=M())&&(n._prefixChildren=a),k(a=M())&&(n._suffixChildren=a),k(a=M())&&(n._errorChildren=a),k(a=M())&&(n._hintChildren=a)}},viewQuery:function(t,n){if(t&1&&(Q(Vv,5),Q(jv,5),Q(Bv,5),Q(zv,5),Q(Uv,5),Q(rm,5),Q(sm,5),Q(am,5)),t&2){let o;k(o=M())&&(n._textField=o.first),k(o=M())&&(n._iconPrefixContainer=o.first),k(o=M())&&(n._textPrefixContainer=o.first),k(o=M())&&(n._iconSuffixContainer=o.first),k(o=M())&&(n._textSuffixContainer=o.first),k(o=M())&&(n._floatingLabel=o.first),k(o=M())&&(n._notchedOutline=o.first),k(o=M())&&(n._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(t,n){t&2&&B("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-no-animations",n._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-focused",n._control.focused)("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[W([{provide:Ji,useExisting:i},{provide:mm,useExisting:i}]),z],ngContentSelectors:Gv,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1){let o=J();de(Hv),b(0,qv,1,1,"ng-template",null,0,_t),h(2,"div",6,1),S("click",function(s){return x(o),w(n._control.onContainerClick(s))}),b(4,Yv,1,0,"div",7),h(5,"div",8),b(6,Zv,2,2,"div",9)(7,Kv,3,0,"div",10)(8,Jv,3,0,"div",11),h(9,"div",12),b(10,t0,1,1,null,13),q(11),m(),b(12,i0,3,0,"div",14)(13,n0,3,0,"div",15),m(),b(14,r0,1,0,"div",16),m(),h(15,"div",17),b(16,o0,2,1,"div",18)(17,s0,5,2,"div",19),m()}if(t&2){let o;d(2),B("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),d(2),C(!n._hasOutline()&&!n._control.disabled?4:-1),d(2),C(n._hasOutline()?6:-1),d(),C(n._hasIconPrefix?7:-1),d(),C(n._hasTextPrefix?8:-1),d(2),C(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),d(2),C(n._hasTextSuffix?12:-1),d(),C(n._hasIconSuffix?13:-1),d(),C(n._hasOutline()?-1:14),d(),B("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic"),d(),C((o=n._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[rm,sm,jt,am,Tt],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.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--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;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{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.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-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-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.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{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{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{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.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{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change: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-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.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-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.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;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.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-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.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-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-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .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--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-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[u0.transitionMessages]},changeDetection:0})}}return i})(),en=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,Oe,oa,me]})}}return i})();var pm=Ft({passive:!0}),fm=(()=>{class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return lt;let t=ht(e),n=this._monitoredElements.get(t);if(n)return n.subject;let o=new P,a="cdk-text-field-autofilled",s=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,pm),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",s,pm)}}),o}stopMonitoring(e){let t=ht(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static{this.\u0275fac=function(t){return new(t||i)(E(le),E($))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var gm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})();var Nl=new O("MAT_INPUT_VALUE_ACCESSOR"),_0=["button","checkbox","file","hidden","image","radio","range","reset","submit"],b0=0,tn=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=ei(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(Zt.required)??!1}set required(e){this._required=ei(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&pl().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}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=ei(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,n,o,a,s,l,p,g,_){this._elementRef=e,this._platform=t,this.ngControl=n,this._autofillMonitor=p,this._ngZone=g,this._formField=_,this._uid=`mat-input-${b0++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new P,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(ie=>pl().has(ie)),this._iOSKeyupListener=ie=>{let ae=ie.target;!ae.value&&ae.selectionStart===0&&ae.selectionEnd===0&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let D=this._elementRef.nativeElement,G=D.nodeName.toLowerCase();this._inputValueAccessor=l||D,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&g.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Mi(s,n,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=G==="select",this._isTextarea=G==="textarea",this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=D.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),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){_0.indexOf(this._type)>-1}_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){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else 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(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(le),c(xt,10),c(Gi,8),c(Jt,8),c(Nn),c(Nl,10),c(fm),c($),c(Ji,8))}}static{this.\u0275dir=I({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,n){t&1&&S("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),t&2&&(Dt("id",n.id)("disabled",n.disabled)("required",n.required),K("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required)("id",n.id),B("mat-input-server",n._isServer)("mat-mdc-form-field-textarea-control",n._isInFormField&&n._isTextarea)("mat-mdc-form-field-input-control",n._isInFormField)("mdc-text-field__input",n._isInFormField)("mat-mdc-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[W([{provide:Ki,useExisting:i}]),se]})}}return i})(),_m=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,en,en,gm,me]})}}return i})();var v0=["*"],ya;function y0(){if(ya===void 0&&(ya=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(ya=i.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return ya}function Yr(i){return y0()?.createHTML(i)||i}function bm(i){return Error(`Unable to find icon with the name "${i}"`)}function x0(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function vm(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function ym(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var pi=class{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}},Ll=(()=>{class i{constructor(e,t,n,o){this._httpClient=e,this._sanitizer=t,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=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,o){return this._addSvgIconConfig(e,t,new pi(n,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,o){let a=this._sanitizer.sanitize(gt.HTML,n);if(!a)throw ym(n);let s=Yr(a);return this._addSvgIconConfig(e,t,new pi("",s,o))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new pi(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){let o=this._sanitizer.sanitize(gt.HTML,t);if(!o)throw ym(t);let a=Yr(o);return this._addSvgIconSetConfig(e,new pi("",a,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(gt.RESOURCE_URL,e);if(!t)throw vm(e);let n=this._cachedIconsByUrl.get(t);return n?H(xa(n)):this._loadSvgIconFromConfig(new pi(e,null)).pipe(Ce(o=>this._cachedIconsByUrl.set(t,o)),te(o=>xa(o)))}getNamedSvgIcon(e,t=""){let n=xm(t,e),o=this._svgIconConfigs.get(n);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(t,e),o)return this._svgIconConfigs.set(n,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(t);return a?this._getSvgFromIconSetConfigs(e,a):Oi(bm(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?H(xa(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(te(t=>xa(t)))}_getSvgFromIconSetConfigs(e,t){let n=this._extractIconWithNameFromAnySet(e,t);if(n)return H(n);let o=t.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(qt(s=>{let p=`Loading icon set URL: ${this._sanitizer.sanitize(gt.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(p)),H(null)})));return uo(o).pipe(te(()=>{let a=this._extractIconWithNameFromAnySet(e,t);if(!a)throw bm(e);return a}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){let o=t[n];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ce(t=>e.svgText=t),te(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?H(null):this._fetchIcon(e).pipe(Ce(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){let o=e.querySelector(`[id="${t}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,n);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),n);let s=this._svgElementFromString(Yr(""));return s.appendChild(a),this._setSvgAttributes(s,n)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(e){let t=this._svgElementFromString(Yr("")),n=e.attributes;for(let o=0;oYr(p)),ri(()=>this._inProgressUrlFetches.delete(a)),od());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(xm(e,t),n),this}_addSvgIconSetConfig(e,t){let n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let n=0;nr?r.pathname+r.search:""}}var wm=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],I0=wm.map(i=>`[${i}]`).join(", "),S0=/^url\(['"]?#(.*?)['"]?\)$/,Vl=(()=>{class i{get color(){return this._color||this._defaultColor}set color(e){this._color=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){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}constructor(e,t,n,o,a,s){this._elementRef=e,this._iconRegistry=t,this._location=o,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ge.EMPTY,s&&(s.color&&(this.color=this._defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),n||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let n=e.childNodes[t];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>e.classList.remove(n)),t.forEach(n=>e.classList.add(n)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.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 typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((n,o)=>{n.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(I0),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=t[o],l=s.getAttribute(a),p=l?l.match(S0):null;if(p){let g=n.get(s);g||(g=[],n.set(s,g)),g.push({name:a,value:p[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(Ye(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${t}:${n}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Ll),$e("aria-hidden"),c(T0),c(Ni),c(C0,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,n){t&2&&(K("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),Ne(n.color?"mat-"+n.color:""),B("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",v],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[ne,z],ngContentSelectors:v0,decls:1,vars:0,template:function(t,n){t&1&&(de(),q(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.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})}}return i})(),Cm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,me]})}}return i})();var Ln=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(r=!1,e,t=!0,n){this._multiple=r,this._emitChanges=t,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new P,e&&e.length&&(r?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...r){this._verifyValueAssignment(r),r.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...r){this._verifyValueAssignment(r),r.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...r){this._verifyValueAssignment(r);let e=this.selected,t=new Set(r);r.forEach(o=>this._markSelected(o)),e.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(r){return this.isSelected(r)?this.deselect(r):this.select(r)}clear(r=!0){this._unmarkAll();let e=this._hasQueuedChanges();return r&&this._emitChangeEvent(),e}isSelected(r){return this._selection.has(this._getConcreteValue(r))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(r){this._multiple&&this.selected&&this._selected.sort(r)}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(r){r=this._getConcreteValue(r),this.isSelected(r)||(this._multiple||this._unmarkAll(),this.isSelected(r)||this._selection.add(r),this._emitChanges&&this._selectedToEmit.push(r))}_unmarkSelected(r){r=this._getConcreteValue(r),this.isSelected(r)&&(this._selection.delete(r),this._emitChanges&&this._deselectedToEmit.push(r))}_unmarkAll(){this.isEmpty()||this._selection.forEach(r=>this._unmarkSelected(r))}_verifyValueAssignment(r){r.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(r,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(r,t))return t;return r}else return r}};var wa=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let n of this._listeners)n(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var M0=20,jn=(()=>{class i{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new P,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=M0){return this._platform.isBrowser?new ft(t=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(er(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):H()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(ve(o=>!o||n.indexOf(o)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((n,o)=>{this._scrollableContainsElement(o,e)&&t.push(o)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=ht(t),o=e.getElementRef().nativeElement;do if(n==o)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Je(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(t){return new(t||i)(E($),E(le),E(X,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),jl=(()=>{class i{constructor(e,t,n,o){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=n,this.dir=o,this._destroyed=new P,this._elementScrolled=new ft(a=>this.ngZone.runOutsideAngular(()=>Je(this.elementRef.nativeElement,"scroll").pipe(oe(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){let t=this.elementRef.nativeElement,n=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=n?e.end:e.start),e.right==null&&(e.right=n?e.start:e.end),e.bottom!=null&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&Fn()!=Ut.NORMAL?(e.left!=null&&(e.right=t.scrollWidth-t.clientWidth-e.left),Fn()==Ut.INVERTED?e.left=e.right:Fn()==Ut.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let t=this.elementRef.nativeElement;na()?t.scrollTo(e):(e.top!=null&&(t.scrollTop=e.top),e.left!=null&&(t.scrollLeft=e.left))}measureScrollOffset(e){let t="left",n="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?n:t:e=="end"&&(e=a?t:n),a&&Fn()==Ut.INVERTED?e==t?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&Fn()==Ut.NEGATED?e==t?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==t?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(jn),c($),c(Fe,8))}}static{this.\u0275dir=I({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return i})(),D0=20,fi=(()=>{class i{constructor(e,t,n){this._platform=e,this._change=new P,this._changeListener=o=>{this._change.next(o)},this._document=n,t.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),n=e.documentElement,o=n.getBoundingClientRect(),a=-o.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,s=-o.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:a,left:s}}change(e=D0){return e>0?this._change.pipe(er(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(t){return new(t||i)(E(le),E($),E(X,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Vn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})(),Bl=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Si,Vn,Si,Vn]})}}return i})();var Qr=class{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;r!=null&&(this._attachedHost=null,r.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(r){this._attachedHost=r}},nn=class extends Qr{constructor(r,e,t,n,o){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=n,this.projectableNodes=o}},ti=class extends Qr{constructor(r,e,t,n){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}},Ul=class extends Qr{constructor(r){super(),this.element=r instanceof F?r.nativeElement:r}},Ca=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){if(r instanceof nn)return this._attachedPortal=r,this.attachComponentPortal(r);if(r instanceof ti)return this._attachedPortal=r,this.attachTemplatePortal(r);if(this.attachDomPortal&&r instanceof Ul)return this._attachedPortal=r,this.attachDomPortal(r)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Ta=class extends Ca{constructor(r,e,t,n,o){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=n,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");s.parentNode.insertBefore(l,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}attachComponentPortal(r){let t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component),n;return r.viewContainerRef?(n=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector,r.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=t.create(r.injector||this._defaultInjector||et.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=r,n}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=e.indexOf(t);n!==-1&&e.remove(n)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}};var Em=(()=>{class i extends ti{constructor(e,t){super(e,t)}static{this.\u0275fac=function(t){return new(t||i)(c(U),c(We))}}static{this.\u0275dir=I({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[_e]})}}return i})();var Bn=(()=>{class i extends Ca{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new T,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=n}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);let t=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(o,t.length,e.injector||t.injector,e.projectableNodes||void 0);return t!==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);let t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(t){return new(t||i)(c(un),c(We),c(X))}}static{this.\u0275dir=I({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[_e]})}}return i})();var zn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})();var Im=na(),Hl=class{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Pe(-this._previousScrollPosition.left),r.style.top=Pe(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let r=this._document.documentElement,e=this._document.body,t=r.style,n=e.style,o=t.scrollBehavior||"",a=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Im&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Im&&(t.scrollBehavior=o,n.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};var Gl=class{constructor(r,e,t,n){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef,this._overlayRef=r}enable(){if(this._scrollSubscription)return;let r=this._scrollDispatcher.scrolled(0).pipe(ve(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ea=class{enable(){}disable(){}attach(){}};function $l(i,r){return r.some(e=>{let t=i.bottome.bottom,o=i.righte.right;return t||n||o||a})}function Sm(i,r){return r.some(e=>{let t=i.tope.bottom,o=i.lefte.right;return t||n||o||a})}var Wl=class{constructor(r,e,t,n){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=n,this._scrollSubscription=null}attach(r){this._overlayRef,this._overlayRef=r}enable(){if(!this._scrollSubscription){let r=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(r).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();$l(e,[{width:t,height:n,bottom:n,right:t,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}},A0=(()=>{class i{constructor(e,t,n,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new Ea,this.close=a=>new Gl(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Hl(this._viewportRuler,this._document),this.reposition=a=>new Wl(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}static{this.\u0275fac=function(t){return new(t||i)(E(jn),E(fi),E($),E(X))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Un=class{constructor(r){if(this.scrollStrategy=new Ea,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){let e=Object.keys(r);for(let t of e)r[t]!==void 0&&(this[t]=r[t])}}};var ql=class{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}};var Fm=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(t){return new(t||i)(E(X))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),R0=(()=>{class i extends Fm{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=n=>{let o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){let s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(n)):s.next(n);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)}static{this.\u0275fac=function(t){return new(t||i)(E(X),E($,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),O0=(()=>{class i extends Fm{constructor(e,t,n){super(e),this._platform=t,this._ngZone=n,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=wt(o)},this._clickListener=o=>{let a=wt(o),s=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let p=l.length-1;p>-1;p--){let g=l[p];if(g._outsidePointerEvents.observers.length<1||!g.hasAttached())continue;if(km(g.overlayElement,a)||km(g.overlayElement,s))break;let _=g._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(o)):_.next(o)}}}add(e){if(super.add(e),!this._isAttached){let t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let 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)}static{this.\u0275fac=function(t){return new(t||i)(E(X),E(le),E($,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function km(i,r){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=r;for(;t;){if(t===i)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var Pm=(()=>{class i{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Wr()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(D),this._backdropTransitionendHandler=D=>{this._disposeBackdrop(D.target)},this._keydownEvents=new P,this._outsidePointerEvents=new P,this._renders=new P,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=Vt(()=>mo(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Yt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof e?.onDestroy=="function"&&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();let r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){let r=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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config=A(A({},this._config),r),this._updateElementSize()}setDirection(r){this._config=ye(A({},this._config),{direction:r}),this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){let r=this._config.direction;return r?typeof r=="string"?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let r=this._pane.style;r.width=Pe(this._config.width),r.height=Pe(this._config.height),r.minWidth=Pe(this._config.minWidth),r.minHeight=Pe(this._config.minHeight),r.maxWidth=Pe(this._config.maxWidth),r.maxHeight=Pe(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){let r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let r=this._backdropElement;if(r){if(this._animationsDisabled){this._disposeBackdrop(r);return}r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){let n=Rn(e||[]).filter(o=>!!o);n.length&&(t?r.classList.add(...n):r.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let r=this._renders.pipe(oe(ke(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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()),r.unsubscribe())})})}_disposeScrollStrategy(){let r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Mm="cdk-overlay-connected-position-bounding-box",F0=/([A-Za-z%]+)$/,Ql=class{get positions(){return this._preferredPositions}constructor(r,e,t,n,o){this._viewportRuler=e,this._document=t,this._platform=n,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 P,this._resizeSubscription=ge.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}attach(r){this._overlayRef&&this._overlayRef,this._validatePositions(),r.hostElement.classList.add(Mm),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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){this.reapplyLastPosition();return}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();let r=this._originRect,e=this._overlayRect,t=this._viewportRect,n=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(r,n,s),p=this._getOverlayPoint(l,e,s),g=this._getOverlayFit(p,e,t,s);if(g.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(g,p,t)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=g,s=p)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&rn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Mm),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,r.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let n;if(t.originX=="center")n=r.left+r.width/2;else{let a=this._isRtl()?r.right:r.left,s=this._isRtl()?r.left:r.right;n=t.originX=="start"?a:s}e.left<0&&(n-=e.left);let o;return t.originY=="center"?o=r.top+r.height/2:o=t.originY=="top"?r.top:r.bottom,e.top<0&&(o-=e.top),{x:n,y:o}}_getOverlayPoint(r,e,t){let n;t.overlayX=="center"?n=-e.width/2:t.overlayX==="start"?n=this._isRtl()?-e.width:0:n=this._isRtl()?0:-e.width;let o;return t.overlayY=="center"?o=-e.height/2:o=t.overlayY=="top"?0:-e.height,{x:r.x+n,y:r.y+o}}_getOverlayFit(r,e,t,n){let o=Am(e),{x:a,y:s}=r,l=this._getOffset(n,"x"),p=this._getOffset(n,"y");l&&(a+=l),p&&(s+=p);let g=0-a,_=a+o.width-t.width,D=0-s,G=s+o.height-t.height,ie=this._subtractOverflows(o.width,g,_),ae=this._subtractOverflows(o.height,D,G),fe=ie*ae;return{visibleArea:fe,isCompletelyWithinViewport:o.width*o.height===fe,fitsInViewportVertically:ae===o.height,fitsInViewportHorizontally:ie==o.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){let n=t.bottom-e.y,o=t.right-e.x,a=Dm(this._overlayRef.getConfig().minHeight),s=Dm(this._overlayRef.getConfig().minWidth),l=r.fitsInViewportVertically||a!=null&&a<=n,p=r.fitsInViewportHorizontally||s!=null&&s<=o;return l&&p}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};let n=Am(e),o=this._viewportRect,a=Math.max(r.x+n.width-o.width,0),s=Math.max(r.y+n.height-o.height,0),l=Math.max(o.top-t.top-r.y,0),p=Math.max(o.left-t.left-r.x,0),g=0,_=0;return n.width<=o.width?g=p||-a:g=r.xie&&!this._isInitialRender&&!this._growAfterOpen&&(a=r.y-ie/2)}let l=e.overlayX==="start"&&!n||e.overlayX==="end"&&n,p=e.overlayX==="end"&&!n||e.overlayX==="start"&&n,g,_,D;if(p)D=t.width-r.x+this._viewportMargin*2,g=r.x-this._viewportMargin;else if(l)_=r.x,g=t.right-r.x;else{let G=Math.min(t.right-r.x+t.left,r.x),ie=this._lastBoundingBoxSize.width;g=G*2,_=r.x-G,g>ie&&!this._isInitialRender&&!this._growAfterOpen&&(_=r.x-ie/2)}return{top:a,left:_,bottom:s,right:D,width:g,height:o}}_setBoundingBoxStyles(r,e){let t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;n.height=Pe(t.height),n.top=Pe(t.top),n.bottom=Pe(t.bottom),n.width=Pe(t.width),n.left=Pe(t.left),n.right=Pe(t.right),e.overlayX==="center"?n.alignItems="center":n.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?n.justifyContent="center":n.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=Pe(o)),a&&(n.maxWidth=Pe(a))}this._lastBoundingBoxSize=t,rn(this._boundingBox.style,n)}_resetBoundingBoxStyles(){rn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){rn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){let t={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){let g=this._viewportRuler.getViewportScrollPosition();rn(t,this._getExactOverlayY(e,r,g)),rn(t,this._getExactOverlayX(e,r,g))}else t.position="static";let s="",l=this._getOffset(e,"x"),p=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),p&&(s+=`translateY(${p}px)`),t.transform=s.trim(),a.maxHeight&&(n?t.maxHeight=Pe(a.maxHeight):o&&(t.maxHeight="")),a.maxWidth&&(n?t.maxWidth=Pe(a.maxWidth):o&&(t.maxWidth="")),rn(this._pane.style,t)}_getExactOverlayY(r,e,t){let n={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,r);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),r.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;n.bottom=`${a-(o.y+this._overlayRect.height)}px`}else n.top=Pe(o.y);return n}_getExactOverlayX(r,e,t){let n={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,r);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let a;if(this._isRtl()?a=r.overlayX==="end"?"left":"right":a=r.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;n.right=`${s-(o.x+this._overlayRect.width)}px`}else n.left=Pe(o.x);return n}_getScrollVisibility(){let r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Sm(r,t),isOriginOutsideView:$l(r,t),isOverlayClipped:Sm(e,t),isOverlayOutsideView:$l(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,n)=>t-Math.max(n,0),r)}_getNarrowedViewportRect(){let r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return e==="x"?r.offsetX==null?this._offsetX:r.offsetX:r.offsetY==null?this._offsetY:r.offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Rn(r).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){let r=this._origin;if(r instanceof F)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();let e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}};function rn(i,r){for(let e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);return i}function Dm(i){if(typeof i!="number"&&i!=null){let[r,e]=i.split(F0);return!e||e==="px"?parseFloat(r):null}return i||null}function Am(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function P0(i,r){return i===r?!0:i.isOriginClipped===r.isOriginClipped&&i.isOriginOutsideView===r.isOriginOutsideView&&i.isOverlayClipped===r.isOverlayClipped&&i.isOverlayOutsideView===r.isOverlayOutsideView}var Rm="cdk-global-overlay-wrapper",Xl=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){let e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Rm),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:a,maxHeight:s}=t,l=(n==="100%"||n==="100vw")&&(!a||a==="100%"||a==="100vw"),p=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),g=this._xPosition,_=this._xOffset,D=this._overlayRef.getConfig().direction==="rtl",G="",ie="",ae="";l?ae="flex-start":g==="center"?(ae="center",D?ie=_:G=_):D?g==="left"||g==="end"?(ae="flex-end",G=_):(g==="right"||g==="start")&&(ae="flex-start",ie=_):g==="left"||g==="start"?(ae="flex-start",G=_):(g==="right"||g==="end")&&(ae="flex-end",ie=_),r.position=this._cssPosition,r.marginLeft=l?"0":G,r.marginTop=p?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=l?"0":ie,e.justifyContent=ae,e.alignItems=p?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Rm),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}},N0=(()=>{class i{constructor(e,t,n,o){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=o}global(){return new Xl}flexibleConnectedTo(e){return new Ql(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(t){return new(t||i)(E(fi),E(X),E(le),E(Pm))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),L0=0,Ke=(()=>{class i{constructor(e,t,n,o,a,s,l,p,g,_,D,G){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=l,this._document=p,this._directionality=g,this._location=_,this._outsideClickDispatcher=D,this._animationsModuleType=G}create(e){let t=this._createHostElement(),n=this._createPaneElement(t),o=this._createPortalOutlet(n),a=new Un(e);return a.direction=a.direction||this._directionality.value,new Yl(o,t,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Pi))}position(){return this._positionBuilder}_createPaneElement(e){let t=this._document.createElement("div");return t.id=`cdk-overlay-${L0++}`,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(dr)),new Ta(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(t){return new(t||i)(E(A0),E(Pm),E(un),E(N0),E(R0),E(et),E($),E(X),E(Fe),E(pn),E(O0),E(Ie,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),V0=[{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"}],Nm=new O("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=R(Ke);return()=>i.scrollStrategies.reposition()}}),Xr=(()=>{class i{constructor(e){this.elementRef=e}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=I({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return i})(),Zl=(()=>{class i{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 disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,t,n,o,a){this._overlay=e,this._dir=a,this._backdropSubscription=ge.EMPTY,this._attachSubscription=ge.EMPTY,this._detachSubscription=ge.EMPTY,this._positionSubscription=ge.EMPTY,this._disposeOnNavigation=!1,this._ngZone=R($),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new T,this.positionChange=new T,this.attach=new T,this.detach=new T,this.overlayKeydown=new T,this.overlayOutsideClick=new T,this._templatePortal=new ti(t,n),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=V0);let 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(t=>{this.overlayKeydown.next(t),t.keyCode===27&&!this.disableClose&&!qe(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let n=this._getOriginElement(),o=wt(t);(!n||n!==o&&!n.contains(o))&&this.overlayOutsideClick.next(t)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Un({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(t.width=this.width),(this.height||this.height===0)&&(t.height=this.height),(this.minWidth||this.minWidth===0)&&(t.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){let t=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Xr?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Xr?this.origin.elementRef.nativeElement:this.origin instanceof F?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(ad(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)(c(Ke),c(U),c(We),c(Nm),c(Fe,8))}}static{this.\u0275dir=I({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",v],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",v],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",v],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",v],push:[2,"cdkConnectedOverlayPush","push",v],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",v]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ne,se]})}}return i})();function j0(i){return()=>i.scrollStrategies.reposition()}var B0={provide:Nm,deps:[Ke],useFactory:j0},Hn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[Ke,B0],imports:[Si,zn,Bl,Bl]})}}return i})();var z0=["trigger"],U0=["panel"],H0=[[["mat-select-trigger"]],"*"],G0=["mat-select-trigger","*"];function $0(i,r){if(i&1&&(h(0,"span",4),ee(1),m()),i&2){let e=u();d(),ue(e.placeholder)}}function W0(i,r){i&1&&q(0)}function q0(i,r){if(i&1&&(h(0,"span",11),ee(1),m()),i&2){let e=u(2);d(),ue(e.triggerValue)}}function Y0(i,r){if(i&1&&(h(0,"span",5),b(1,W0,1,0)(2,q0,2,1,"span",11),m()),i&2){let e=u();d(),C(e.customTrigger?1:2)}}function Q0(i,r){if(i&1){let e=J();h(0,"div",12,1),S("@transformPanel.done",function(n){x(e);let o=u();return w(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){x(e);let o=u();return w(o._handleKeydown(n))}),q(2,1),m()}if(i&2){let e=u();ji("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),f("ngClass",e.panelClass)("@transformPanel","showing"),K("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var X0={transformPanelWrap:At("transformPanelWrap",[tt("* => void",Wd("@transformPanel",[$d()],{optional:!0}))]),transformPanel:At("transformPanel",[bt("void",Re({opacity:0,transform:"scale(1, 0.8)"})),tt("void => showing",rt("120ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:1,transform:"scale(1, 1)"}))),tt("* => void",rt("100ms linear",Re({opacity:0})))])};var Vm=0,jm=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=R(Ke);return()=>i.scrollStrategies.reposition()}});function Z0(i){return()=>i.scrollStrategies.reposition()}var K0=new O("MAT_SELECT_CONFIG"),J0={provide:jm,deps:[Ke],useFactory:Z0},ey=new O("MatSelectTrigger"),Kl=class{constructor(r,e){this.source=r,this.value=e}},Bm=(()=>{class i{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let n=this.panel.nativeElement,o=Jh(e,this.options,this.optionGroups),a=t._getHostElement();e===0&&o===1?n.scrollTop=0:n.scrollTop=em(a.offsetTop,a.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Kl(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Zt.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=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 errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,n,o,a,s,l,p,g,_,D,G,ie,ae){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=a,this._dir=s,this._parentFormField=g,this.ngControl=_,this._liveAnnouncer=ie,this._defaultOptions=ae,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(fe,Se)=>fe===Se,this._uid=`mat-select-${Vm++}`,this._triggerAriaLabelledBy=null,this._destroy=new P,this.stateChanges=new P,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${Vm++}`,this._panelDoneAnimatingStream=new P,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new P,this.optionSelectionChanges=Jn(()=>{let fe=this.options;return fe?fe.changes.pipe(Ge(fe),Qe(()=>ke(...fe.map(Se=>Se.onSelectionChange)))):this._initialized.pipe(Qe(()=>this.optionSelectionChanges))}),this.openedChange=new T,this._openedStream=this.openedChange.pipe(ve(fe=>fe),te(()=>{})),this._closedStream=this.openedChange.pipe(ve(fe=>!fe),te(()=>{})),this.selectionChange=new T,this.valueChange=new T,this._trackedModal=null,this._skipPredicate=fe=>this.panelOpen?!1:fe.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),ae?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=ae.typeaheadDebounceInterval),this._errorStateTracker=new Mi(o,_,p,l,this.stateChanges),this._scrollStrategyFactory=G,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(D)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ln(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ni(),oe(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(oe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(oe(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Ge(null),oe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.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(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&fa(this._trackedModal,"aria-owns",t),xl(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;fa(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}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){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,n=t===40||t===38||t===37||t===39,o=t===13||t===32,a=this._keyManager;if(!a.isTyping()&&o&&!qe(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,n=e.keyCode,o=n===40||n===38,a=t.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(n===13||n===32)&&t.activeItem&&!qe(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!a&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=t.activeItemIndex;t.onKeydown(e),this._multiple&&o&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.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(Ye(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(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return n.value!=null&&this._compareWith(n.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Xr?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new ua(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),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(){let e=ke(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(oe(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ke(...this.options.map(t=>t._stateChanges)).pipe(oe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let n=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(n=>n.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_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}static{this.\u0275fac=function(t){return new(t||i)(c(fi),c(Z),c($),c(Nn),c(F),c(Fe,8),c(Gi,8),c(Jt,8),c(Ji,8),c(xt,10),$e("tabindex"),c(jm),c(Hh),c(K0,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-select"]],contentQueries:function(t,n,o){if(t&1&&(Y(o,ey,5),Y(o,ba,5),Y(o,Ol,5)),t&2){let a;k(a=M())&&(n.customTrigger=a.first),k(a=M())&&(n.options=a),k(a=M())&&(n.optionGroups=a)}},viewQuery:function(t,n){if(t&1&&(Q(z0,5),Q(U0,5),Q(Zl,5)),t&2){let o;k(o=M())&&(n.trigger=o.first),k(o=M())&&(n.panel=o.first),k(o=M())&&(n._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,n){t&1&&S("keydown",function(a){return n._handleKeydown(a)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),t&2&&(K("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),B("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",v],disableRipple:[2,"disableRipple","disableRipple",v],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",v],placeholder:"placeholder",required:[2,"required","required",v],multiple:[2,"multiple","multiple",v],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",v],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Te],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[W([{provide:Ki,useExisting:i},{provide:Rl,useExisting:i}]),ne,se,z],ngContentSelectors:G0,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,n){if(t&1){let o=J();de(H0),h(0,"div",2,0),S("click",function(){return x(o),w(n.open())}),h(3,"div",3),b(4,$0,2,1,"span",4)(5,Y0,3,1,"span",5),m(),h(6,"div",6)(7,"div",7),kt(),h(8,"svg",8),y(9,"path",9),m()()()(),b(10,Q0,3,9,"ng-template",10),S("backdropClick",function(){return x(o),w(n.close())})("attach",function(){return x(o),w(n._onAttached())})("detach",function(){return x(o),w(n.close())})}if(t&2){let o=be(1);d(3),K("id",n._valueId),d(),C(n.empty?4:5),d(6),f("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[Xr,Zl,fn],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.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}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._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:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.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}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[X0.transformPanel]},changeDetection:0})}}return i})();var zm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[J0],imports:[Oe,Hn,Fl,me,Vn,en,Fl,me]})}}return i})();var ty=["knob"],iy=["valueIndicatorContainer"];function ny(i,r){if(i&1&&(h(0,"div",2,1)(2,"div",5)(3,"span",6),ee(4),m()()()),i&2){let e=u();d(4),ue(e.valueIndicatorText)}}var ry=["trackActive"],oy=["*"];function ay(i,r){if(i&1&&y(0,"div"),i&2){let e=r.$implicit,t=r.$index,n=u(3);Ne(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),Ae("transform",n._calcTickMarkTransform(t))}}function sy(i,r){if(i&1&&Le(0,ay,1,4,"div",8,Id),i&2){let e=u(2);Ve(e._tickMarks)}}function ly(i,r){if(i&1&&(h(0,"div",6,1),b(2,sy,2,0),m()),i&2){let e=u();d(2),C(e._cachedWidth?2:-1)}}function cy(i,r){if(i&1&&y(0,"mat-slider-visual-thumb",7),i&2){let e=u();f("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText)}}var re=function(i){return i[i.START=1]="START",i[i.END=2]="END",i}(re||{}),Gn=function(i){return i[i.ACTIVE=0]="ACTIVE",i[i.INACTIVE=1]="INACTIVE",i}(Gn||{}),Ia=new O("_MatSlider"),Um=new O("_MatSliderThumb"),Hm=new O("_MatSliderRangeThumb"),Gm=new O("_MatSliderVisualThumb");var dy=(()=>{class i{constructor(e,t,n,o){this._cdr=e,this._ngZone=t,this._slider=o,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._platform=R(le),this._onPointerMove=a=>{if(this._sliderInput._isFocused)return;let s=this._hostElement.getBoundingClientRect(),l=this._slider._isCursorOnSliderThumb(a,s);this._isHovered=l,l?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=a=>{a.button===0&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()},this._hostElement=n.nativeElement}ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let t=this._sliderInputEl;t.addEventListener("pointermove",this._onPointerMove),t.addEventListener("pointerdown",this._onDragStart),t.addEventListener("pointerup",this._onDragEnd),t.addEventListener("pointerleave",this._onMouseLeave),t.addEventListener("focus",this._onFocus),t.addEventListener("blur",this._onBlur)}))}ngOnDestroy(){let e=this._sliderInputEl;e&&(e.removeEventListener("pointermove",this._onPointerMove),e.removeEventListener("pointerdown",this._onDragStart),e.removeEventListener("pointerup",this._onDragEnd),e.removeEventListener("pointerleave",this._onMouseLeave),e.removeEventListener("focus",this._onFocus),e.removeEventListener("blur",this._onBlur))}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(e){return e?.state===st.FADING_IN||e?.state===st.VISIBLE}_showRipple(e,t){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===re.START?re.END:re.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!t)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let t=this._getSibling();t._isShowingAnyRipple()||(this._hideValueIndicator(),t._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===re.START?re.END:re.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static{this.\u0275fac=function(t){return new(t||i)(c(Z),c($),c(F),c(Ia))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(t,n){if(t&1&&(Q(Nt,5),Q(ty,5),Q(iy,5)),t&2){let o;k(o=M())&&(n._ripple=o.first),k(o=M())&&(n._knob=o.first),k(o=M())&&(n._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},standalone:!0,features:[W([{provide:Gm,useExisting:i}]),z],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(t,n){t&1&&(b(0,ny,5,1,"div",2),y(1,"div",3,0)(3,"div",4)),t&2&&(C(n.discrete?0:-1),d(3),f("matRippleDisabled",!0))},dependencies:[Nt],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}}return i})(),$m=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=e;let t=this._getInput(re.END),n=this._getInput(re.START);t&&(t.disabled=this._disabled),n&&(n.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs()}get min(){return this._min}set min(e){let t=isNaN(e)?this._min:e;this._min!==t&&this._updateMin(t)}_updateMin(e){let t=this._min;this._min=e,this._isRange?this._updateMinRange({old:t,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange()}_updateMinRange(e){let t=this._getInput(re.END),n=this._getInput(re.START),o=t.value,a=n.value;n.min=e.new,t.min=Math.max(e.new,n.value),n.max=Math.min(t.max,t.value),n._updateWidthInactive(),t._updateWidthInactive(),e.newe.old?this._onTranslateXChangeBySideEffect(n,t):this._onTranslateXChangeBySideEffect(t,n),o!==t.value&&this._onValueChange(t),a!==n.value&&this._onValueChange(n)}_updateMaxNonRange(e){let t=this._getInput(re.END);if(t){let n=t.value;t.max=e,t._updateThumbUIByValue(),this._updateTrackUI(t),n!==t.value&&this._onValueChange(t)}}get step(){return this._step}set step(e){let t=isNaN(e)?this._step:e;this._step!==t&&this._updateStep(t)}_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let e=this._getInput(re.END),t=this._getInput(re.START),n=e.value,o=t.value,a=t.value;e.min=this._min,t.max=this._max,e.step=this._step,t.step=this._step,this._platform.SAFARI&&(e.value=e.value,t.value=t.value),e.min=Math.max(this._min,t.value),t.max=Math.min(this._max,e.value),t._updateWidthInactive(),e._updateWidthInactive(),e.value`${l}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=R(le),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations=s==="NoopAnimations",this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl"}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(re.END),t=this._getInput(re.START);this._isRange=!!e&&!!t,this._cdr.detectChanges();let n=this._getThumb(re.END);this._rippleRadius=n._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,t):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue()}_initUIRange(e,t){e.initProps(),e.initUI(),t.initProps(),t.initUI(),e._updateMinMax(),t._updateMinMax(),e._updateStaticStyles(),t._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),t._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let e=this._getInput(re.END),t=this._getInput(re.START);e._setIsLeftThumb(),t._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),t.translateX=t._calcTranslateXByValue(),e._updateStaticStyles(),t._updateStaticStyles(),e._updateWidthInactive(),t._updateWidthInactive(),e._updateThumbUIByValue(),t._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(re.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(re.START)._isActive||this._getThumb(re.END)._isActive}_getValue(e=re.END){let t=this._getInput(e);return t?t.value:this.min}_skipUpdate(){return!!(this._getInput(re.START)?._skipUIUpdate||this._getInput(re.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(e){let t=this._trackActive.nativeElement.style;t.left=e.left,t.right=e.right,t.transformOrigin=e.transformOrigin,t.transform=e.transform}_calcTickMarkTransform(e){return`translateX(${e*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e))}_onTranslateXChangeBySideEffect(e,t){this._hasViewInitialized&&(e._updateThumbUIByValue(),t._updateThumbUIByValue())}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(re.END),t=this._getInput(re.START);e._updateThumbUIByValue(),t._updateThumbUIByValue(),e._updateStaticStyles(),t._updateStaticStyles(),e._updateMinMax(),t._updateMinMax(),e._updateWidthInactive(),t._updateWidthInactive()}else{let e=this._getInput(re.END);e&&e._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){let e=this._getInput(re.START),t=this._getInput(re.END);return!e||!t?!1:t.translateX-e.translateX<20}_updateOverlappingThumbClassNames(e){let t=e.getSibling(),n=this._getThumb(e.thumbPosition);this._getThumb(t.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),n._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e))}_updateThumbUI(e){if(this._skipUpdate())return;let t=this._getThumb(e.thumbPosition===re.END?re.END:re.START);t._hostElement.style.transform=`translateX(${e.translateX}px)`}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let t=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(t):e._hostElement.setAttribute("aria-valuetext",t),this.discrete){e.thumbPosition===re.START?this.startValueIndicatorText=t:this.endValueIndicatorText=t;let n=this._getThumb(e.thumbPosition);t.length<3?n._hostElement.classList.add("mdc-slider__thumb--short-value"):n._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let e=this._getInput(re.END),t=this._getInput(re.START);e&&this._updateValueIndicatorUI(e),t&&this._updateValueIndicatorUI(t)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,n=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*n-6}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e))}_updateTrackUIRange(e){let t=e.getSibling();if(!t||!this._cachedWidth)return;let n=Math.abs(t.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-t.translateX}px`,transformOrigin:"right",transform:`scaleX(${n})`}):this._setTrackActiveStyles({left:`${t.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${n})`})}_updateTrackUINonRange(e){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(e){let t=this._getValue(),n=Math.max(Math.round((t-this.min)/e),0),o=Math.max(Math.round((this.max-t)/e),0);this._isRtl?n++:o++,this._tickMarks=Array(n).fill(Gn.ACTIVE).concat(Array(o).fill(Gn.INACTIVE))}_updateTickMarkUIRange(e){let t=this._getValue(),n=this._getValue(re.START),o=Math.max(Math.round((n-this.min)/e),0),a=Math.max(Math.round((t-n)/e)+1,0),s=Math.max(Math.round((this.max-t)/e),0);this._tickMarks=Array(o).fill(Gn.INACTIVE).concat(Array(a).fill(Gn.ACTIVE),Array(s).fill(Gn.INACTIVE))}_getInput(e){if(e===re.END&&this._input)return this._input;if(this._inputs?.length)return e===re.START?this._inputs.first:this._inputs.last}_getThumb(e){return e===re.END?this._thumbs?.last:this._thumbs?.first}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(e,t){let n=t.width/2,o=t.x+n,a=t.y+n,s=e.clientX-o,l=e.clientY-a;return Math.pow(s,2)+Math.pow(l,2)Sa),multi:!0},hy={provide:we,useExisting:ce(()=>Jl),multi:!0},Sa=(()=>{class i{get value(){return Te(this._hostElement.value,0)}set value(e){e=isNaN(e)?0:e;let t=e+"";if(!this._hasSetInitialValue){this._initialValue=t;return}this._isActive||this._setValue(t)}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e}get min(){return Te(this._hostElement.min,0)}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges()}get max(){return Te(this._hostElement.max,0)}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges()}get step(){return Te(this._hostElement.step,0)}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges()}get disabled(){return v(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(e){this._isFocused=e}constructor(e,t,n,o){this._ngZone=e,this._elementRef=t,this._cdr=n,this._slider=o,this.valueChange=new T,this.dragStart=new T,this.dragEnd=new T,this.thumbPosition=re.END,this._valuetext=yi(""),this._knobRadius=8,this._tickMarkOffset=3,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new P,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=R(le),this._hostElement=t.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let t=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=t,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e)},0)}_fixValue(e){let t=e.clientX-this._slider._cachedLeft,n=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),s=this._slider._isRtl?1-t/n:t/n,p=Math.round(s*a)/a*(this._slider.max-this._slider.min)+this._slider.min,g=Math.round(p/o)*o,_=this.value;if(g===_){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return}this.value=g,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation})}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(e){let t=this._tickMarkOffset,n=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,n),t)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e)}_updateThumbUIByPointerEvent(e,t){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(t)}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e)}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0}registerOnTouched(e){this._onTouchedFn=e}setDisabledState(e){this.disabled=e}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static{this.\u0275fac=function(t){return new(t||i)(c($),c(F),c(Z),c(Ia))}}static{this.\u0275dir=I({type:i,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(t,n){t&1&&S("change",function(){return n._onChange()})("input",function(){return n._onInput()})("blur",function(){return n._onBlur()})("focus",function(){return n._onFocus()}),t&2&&K("aria-valuetext",n._valuetext())},inputs:{value:[2,"value","value",Te]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],standalone:!0,features:[W([uy,{provide:Um,useExisting:i}]),ne]})}}return i})(),Jl=(()=>{class i extends Sa{getSibling(){return this._sibling||(this._sibling=this._slider._getInput(this._isEndThumb?re.START:re.END)),this._sibling}getMinPos(){let e=this.getSibling();return!this._isLeftThumb&&e?e.translateX:this._tickMarkOffset}getMaxPos(){let e=this.getSibling();return this._isLeftThumb&&e?e.translateX:this._slider._cachedWidth-this._tickMarkOffset}_setIsLeftThumb(){this._isLeftThumb=this._isEndThumb&&this._slider._isRtl||!this._isEndThumb&&!this._slider._isRtl}constructor(e,t,n,o){super(e,n,o,t),this._cdr=o,this._isEndThumb=this._hostElement.hasAttribute("matSliderEndThumb"),this._setIsLeftThumb(),this.thumbPosition=this._isEndThumb?re.END:re.START}_getDefaultValue(){return this._isEndThumb&&this._slider._isRange?this.max:this.min}_onInput(){super._onInput(),this._updateSibling(),this._isActive||this._updateWidthInactive()}_onNgControlValueChange(){super._onNgControlValueChange(),this.getSibling()?._updateMinMax()}_onPointerDown(e){this.disabled||e.button!==0||(this._sibling&&(this._sibling._updateWidthActive(),this._sibling._hostElement.classList.add("mat-mdc-slider-input-no-pointer-events")),super._onPointerDown(e))}_onPointerUp(){super._onPointerUp(),this._sibling&&setTimeout(()=>{this._sibling._updateWidthInactive(),this._sibling._hostElement.classList.remove("mat-mdc-slider-input-no-pointer-events")})}_onPointerMove(e){super._onPointerMove(e),!this._slider.step&&this._isActive&&this._updateSibling()}_fixValue(e){super._fixValue(e),this._sibling?._updateMinMax()}_clamp(e){return Math.max(Math.min(e,this.getMaxPos()),this.getMinPos())}_updateMinMax(){let e=this.getSibling();e&&(this._isEndThumb?(this.min=Math.max(this._slider.min,e.value),this.max=this._slider.max):(this.min=this._slider.min,this.max=Math.min(this._slider.max,e.value)))}_updateWidthActive(){let e=this._slider._rippleRadius*2-this._slider._inputPadding*2,t=this._slider._cachedWidth+this._slider._inputPadding-e-this._tickMarkOffset*2,n=this._slider.min{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,Zi]})}}return i})();var my=["switch"],py=["*"];function fy(i,r){i&1&&(h(0,"span",10),kt(),h(1,"svg",12),y(2,"path",13),m(),h(3,"svg",14),y(4,"path",15),m()())}var gy=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),_y={provide:we,useExisting:ce(()=>Ma),multi:!0},ka=class{constructor(r,e){this.source=r,this.checked=e}},by=0,Ma=(()=>{class i{_createChangeEvent(e){return new ka(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,n,o,a,s){this._elementRef=e,this._focusMonitor=t,this._changeDetectorRef=n,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new T,this.toggleChange=new T,this.tabIndex=parseInt(o)||0,this.color=a.color||"accent",this._noopAnimations=s==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++by}`,this.hideIcon=a.hideIcon??!1,this.disabledInteractive=a.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new ka(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Ct),c(Z),$e("tabindex"),c(gy),c(Ie,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(t,n){if(t&1&&Q(my,5),t&2){let o;k(o=M())&&(n._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(t,n){t&2&&(Dt("id",n.id),K("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Ne(n.color?"mat-"+n.color:""),B("mat-mdc-slide-toggle-focused",n._focused)("mat-mdc-slide-toggle-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",v],color:"color",disabled:[2,"disabled","disabled",v],disableRipple:[2,"disableRipple","disableRipple",v],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)],checked:[2,"checked","checked",v],hideIcon:[2,"hideIcon","hideIcon",v],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[W([_y,{provide:Ot,useExisting:i,multi:!0}]),ne,se,z],ngContentSelectors:py,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(t,n){if(t&1){let o=J();de(),h(0,"div",1)(1,"button",2,0),S("click",function(){return x(o),w(n._handleClick())}),y(3,"span",3),h(4,"span",4)(5,"span",5)(6,"span",6),y(7,"span",7),m(),h(8,"span",8),y(9,"span",9),m(),b(10,fy,5,0,"span",10),m()()(),h(11,"label",11),S("click",function(s){return x(o),w(s.stopPropagation())}),q(12),m()()}if(t&2){let o=be(2);f("labelPosition",n.labelPosition),d(),B("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled)("mat-mdc-slide-toggle-disabled-interactive",n.disabledInteractive),f("tabIndex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex)("disabled",n.disabled&&!n.disabledInteractive),K("id",n.buttonId)("name",n.name)("aria-label",n.ariaLabel)("aria-labelledby",n._getAriaLabelledBy())("aria-describedby",n.ariaDescribedby)("aria-required",n.required||null)("aria-checked",n.checked)("aria-disabled",n.disabled&&n.disabledInteractive?"true":null),d(8),f("matRippleTrigger",o)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),d(),C(n.hideIcon?-1:10),d(),f("for",n.buttonId),K("id",n._labelId)}},dependencies:[Nt,im],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height);border-radius:var(--mdc-switch-track-shape, var(--mat-app-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color, var(--mat-app-outline))}.cdk-high-contrast-active .mdc-switch__track::before,.cdk-high-contrast-active .mdc-switch__track::after{border-color:currentColor}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-app-on-surface))}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-app-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-app-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-app-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-app-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-app-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-app-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-app-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size);margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size);margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}.cdk-high-contrast-active .mdc-switch__handle::before,.cdk-high-contrast-active .mdc-switch__handle::after{border-color:currentColor}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-app-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-app-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-app-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-app-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-app-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size);height:var(--mdc-switch-state-layer-size)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-app-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size);fill:var(--mdc-switch-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size);fill:var(--mdc-switch-selected-icon-color, var(--mat-app-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-app-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0})}}return i})();var qm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Ma,me,me]})}}return i})();var vy=["button"],yy=["*"];function xy(i,r){if(i&1&&y(0,"mat-pseudo-checkbox",3),i&2){let e=u();f("disabled",e.disabled)}}function wy(i,r){if(i&1&&y(0,"mat-pseudo-checkbox",3),i&2){let e=u();f("disabled",e.disabled)}}var Ym=new O("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Cy});function Cy(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Qm=new O("MatButtonToggleGroup"),Ty={provide:we,useExisting:ce(()=>ec),multi:!0},Xm=0,Da=class{constructor(r,e){this.source=r,this.value=e}},ec=(()=>{class i{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(t=>t.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck()}constructor(e,t,n){this._changeDetector=e,this._dir=n,this._multiple=!1,this._disabled=!1,this._disabledInteractive=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${Xm++}`,this.valueChange=new T,this.change=new T,this.appearance=t&&t.appearance?t.appearance:"standard",this.hideSingleSelectionIndicator=t?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=t?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Ln(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex()}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_keydown(e){if(this.multiple||this.disabled)return;let n=e.target.id,o=this._buttonToggles.toArray().findIndex(s=>s.buttonId===n),a=null;switch(e.keyCode){case 32:case 13:a=this._buttonToggles.get(o)||null;break;case 38:a=this._getNextButton(o,-1);break;case 37:a=this._getNextButton(o,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(o,1);break;case 39:a=this._getNextButton(o,this.dir==="ltr"?1:-1);break;default:return}a&&(e.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(e){let t=new Da(e,this.value);this._rawValue=t.value,this._controlValueAccessorChangeFn(t.value),this.change.emit(t)}_syncButtonToggle(e,t,n=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?t?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,n)):this._updateModelValue(e,n)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(t=>e.value!=null&&t===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;ethis._selectValue(t))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e){let t=this._buttonToggles.find(n=>n.value!=null&&n.value===e);t&&(t.checked=!0,this._selectionModel.select(t),this.multiple||(t.tabIndex=0))}_updateModelValue(e,t){t&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static{this.\u0275fac=function(t){return new(t||i)(c(Z),c(Ym,8),c(Fe,8))}}static{this.\u0275dir=I({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,n,o){if(t&1&&Y(o,Aa,5),t&2){let a;k(a=M())&&(n._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(t,n){t&1&&S("keydown",function(a){return n._keydown(a)}),t&2&&(K("role",n.multiple?"group":"radiogroup")("aria-disabled",n.disabled),B("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard",n.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",v],value:"value",multiple:[2,"multiple","multiple",v],disabled:[2,"disabled","disabled",v],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",v],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",v]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[W([Ty,{provide:Qm,useExisting:i}]),ne]})}}return i})(),Aa=(()=>{class i{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(e){this._tabIndex=e,this._markForCheck()}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){e!==this._checked&&(this._checked=e,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=e}get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}constructor(e,t,n,o,a,s){this._changeDetectorRef=t,this._elementRef=n,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T;let l=Number(a);this.tabIndex=l||l===0?l:null,this.buttonToggleGroup=e,this.appearance=s&&s.appearance?s.appearance:"standard",this.disabledInteractive=s?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${Xm++}`,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(){let 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(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let t=this.buttonToggleGroup._buttonToggles.find(n=>n.tabIndex===0);t&&(t.tabIndex=-1),this.tabIndex=0}this.change.emit(new Da(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static{this.\u0275fac=function(t){return new(t||i)(c(Qm,8),c(Z),c(F),c(Ct),$e("tabindex"),c(Ym,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-button-toggle"]],viewQuery:function(t,n){if(t&1&&Q(vy,5),t&2){let o;k(o=M())&&(n._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(t,n){t&1&&S("focus",function(){return n.focus()}),t&2&&(K("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),B("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-disabled-interactive",n.disabledInteractive)("mat-button-toggle-appearance-standard",n.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",v],appearance:"appearance",checked:[2,"checked","checked",v],disabled:[2,"disabled","disabled",v],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[ne,z],ngContentSelectors:yy,decls:8,vars:14,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){if(t&1){let o=J();de(),h(0,"button",1,0),S("click",function(){return x(o),w(n._onButtonClick())}),h(2,"span",2),b(3,xy,1,1,"mat-pseudo-checkbox",3)(4,wy,1,1,"mat-pseudo-checkbox",3),q(5),m()(),y(6,"span",4)(7,"span",5)}if(t&2){let o=be(1);f("id",n.buttonId)("disabled",n.disabled&&!n.disabledInteractive||null),K("role",n.isSingleSelector()?"radio":"button")("tabindex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex)("aria-pressed",n.isSingleSelector()?null:n.checked)("aria-checked",n.isSingleSelector()?n.checked:null)("name",n._getButtonName())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-disabled",n.disabled&&n.disabledInteractive?"true":null),d(3),C(n.buttonToggleGroup&&n.checked&&!n.buttonToggleGroup.multiple&&!n.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),d(),C(n.buttonToggleGroup&&n.checked&&n.buttonToggleGroup.multiple&&!n.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),d(3),f("matRippleTrigger",o)("matRippleDisabled",n.disableRipple||n.disabled)}},dependencies:[Nt,Al],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow: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)}.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:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.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;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-app-on-surface));background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-app-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-app-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-app-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-app-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-app-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.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;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;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}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}"],encapsulation:2,changeDetection:0})}}return i})(),Zm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,Zi,Aa,me]})}}return i})();var Km=".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}";var Jm=["mat-icon-button",""],ep=["*"],Ey='.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;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;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.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-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.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-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.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[hidden]{display:none}.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}',Iy=new O("MAT_BUTTON_CONFIG");var Sy=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],tp=(()=>{class i{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,t,n,o){this._elementRef=e,this._platform=t,this._ngZone=n,this._animationMode=o,this._focusMonitor=R(Ct),this._rippleLoader=R(tm),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=R(Iy,{optional:!0}),s=e.nativeElement,l=s.classList;this.disabledInteractive=a?.disabledInteractive??!1,this.color=a?.color??null,this._rippleLoader?.configureRipple(s,{className:"mat-mdc-button-ripple"});for(let{attribute:p,mdcClasses:g}of Sy)s.hasAttribute(p)&&l.add(...g)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",t){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,t):this._elementRef.nativeElement.focus(t)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(t){dn()}}static{this.\u0275dir=I({type:i,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",v],disabled:[2,"disabled","disabled",v],ariaDisabled:[2,"aria-disabled","ariaDisabled",v],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v]},features:[ne]})}}return i})();var ky=(()=>{class i extends tp{constructor(e,t,n,o){super(e,t,n,o),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}static{this.\u0275fac=function(t){dn()}}static{this.\u0275dir=I({type:i,inputs:{tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Te(e)]},features:[ne,_e]})}}return i})();var Kr=(()=>{class i extends tp{constructor(e,t,n,o){super(e,t,n,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(le),c($),c(Ie,8))}}static{this.\u0275cmp=N({type:i,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(t,n){t&2&&(K("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled()),Ne(n.color?"mat-"+n.color:""),B("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[_e,z],attrs:Jm,ngContentSelectors:ep,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(de(),y(0,"span",0),q(1),y(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;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;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.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-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.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-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.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[hidden]{display:none}.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}',Km],encapsulation:2,changeDetection:0})}}return i})(),ip=(()=>{class i extends ky{constructor(e,t,n,o){super(e,t,n,o)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(le),c($),c(Ie,8))}}static{this.\u0275cmp=N({type:i,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(t,n){t&2&&(K("disabled",n._getDisabledAttribute())("tabindex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex)("aria-disabled",n._getDisabledAttribute()),Ne(n.color?"mat-"+n.color:""),B("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[_e,z],attrs:Jm,ngContentSelectors:ep,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(de(),y(0,"span",0),q(1),y(2,"span",1)(3,"span",2))},styles:[Ey,Km],encapsulation:2,changeDetection:0})}}return i})(),$n=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,Zi,me]})}}return i})();var rc=["*"];function Dy(i,r){i&1&&q(0)}var Ay=["tabListContainer"],Ry=["tabList"],Oy=["tabListInner"],Fy=["nextPaginator"],Py=["previousPaginator"],Ny=i=>({animationDuration:i}),Ly=(i,r)=>({value:i,params:r});function Vy(i,r){}var jy=["tabBodyWrapper"],By=["tabHeader"];function zy(i,r){}function Uy(i,r){if(i&1&&b(0,zy,0,0,"ng-template",12),i&2){let e=u().$implicit;f("cdkPortalOutlet",e.templateLabel)}}function Hy(i,r){if(i&1&&ee(0),i&2){let e=u().$implicit;ue(e.textLabel)}}function Gy(i,r){if(i&1){let e=J();h(0,"div",7,2),S("click",function(){let n=x(e),o=n.$implicit,a=n.$index,s=u(),l=be(1);return w(s._handleClick(o,l,a))})("cdkFocusChange",function(n){let o=x(e).$index,a=u();return w(a._tabFocusChanged(n,o))}),y(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),b(6,Uy,1,1,null,12)(7,Hy,1,1),m()()()}if(i&2){let e=r.$implicit,t=r.$index,n=be(1),o=u();Ne(e.labelClass),B("mdc-tab--active",o.selectedIndex===t),f("id",o._getTabLabelId(t))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),K("tabIndex",o._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(t))("aria-selected",o.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),d(3),f("matRippleTrigger",n)("matRippleDisabled",e.disabled||o.disableRipple),d(3),C(e.templateLabel?6:7)}}function $y(i,r){i&1&&q(0)}function Wy(i,r){if(i&1){let e=J();h(0,"mat-tab-body",13),S("_onCentered",function(){x(e);let n=u();return w(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){x(e);let o=u();return w(o._setTabBodyWrapperHeight(n))}),m()}if(i&2){let e=r.$implicit,t=r.$index,n=u();Ne(e.bodyClass),B("mat-mdc-tab-body-active",n.selectedIndex===t),f("id",n._getTabContentId(t))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),K("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(t))("aria-hidden",n.selectedIndex!==t)}}var qy=new O("MatTabContent"),oc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","matTabContent",""]],standalone:!0,features:[W([{provide:qy,useExisting:i}])]})}}return i})(),Yy=new O("MatTabLabel"),op=new O("MAT_TAB"),ac=(()=>{class i extends Em{constructor(e,t,n){super(e,t),this._closestTab=n}static{this.\u0275fac=function(t){return new(t||i)(c(U),c(We),c(op,8))}}static{this.\u0275dir=I({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[W([{provide:Yy,useExisting:i}]),_e]})}}return i})(),ap=new O("MAT_TAB_GROUP"),sc=(()=>{class i{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,t){this._viewContainerRef=e,this._closestTabGroup=t,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new P,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 ti(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static{this.\u0275fac=function(t){return new(t||i)(c(We),c(ap,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-tab"]],contentQueries:function(t,n,o){if(t&1&&(Y(o,ac,5),Y(o,oc,7,U)),t&2){let a;k(a=M())&&(n.templateLabel=a.first),k(a=M())&&(n._explicitContent=a.first)}},viewQuery:function(t,n){if(t&1&&Q(U,7),t&2){let o;k(o=M())&&(n._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",v],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[W([{provide:op,useExisting:i}]),ne,se,z],ngContentSelectors:rc,decls:1,vars:0,template:function(t,n){t&1&&(de(),b(0,Dy,1,0,"ng-template"))},encapsulation:2})}}return i})(),tc="mdc-tab-indicator--active",np="mdc-tab-indicator--no-transition",ic=class{constructor(r){this._items=r}hide(){this._items.forEach(r=>r.deactivateInkBar())}alignToElement(r){let e=this._items.find(n=>n.elementRef.nativeElement===r),t=this._currentItem;if(e!==t&&(t?.deactivateInkBar(),e)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(n),this._currentItem=e}}},Qy=(()=>{class i{constructor(){this._elementRef=R(F),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let t=this._elementRef.nativeElement;if(!e||!t.getBoundingClientRect||!this._inkBarContentElement){t.classList.add(tc);return}let n=t.getBoundingClientRect(),o=e.width/n.width,a=e.left-n.left;t.classList.add(np),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),t.getBoundingClientRect(),t.classList.remove(np),t.classList.add(tc),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(tc)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,t=this._inkBarElement=e.createElement("span"),n=this._inkBarContentElement=e.createElement("span");t.className="mdc-tab-indicator",n.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",t.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",v]},features:[ne]})}}return i})();var sp=(()=>{class i extends Qy{constructor(e){super(),this.elementRef=e,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=I({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){t&2&&(K("aria-disabled",!!n.disabled),B("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:[2,"disabled","disabled",v]},standalone:!0,features:[ne,_e]})}}return i})(),rp=Ft({passive:!0}),Xy=650,Zy=100,Ky=(()=>{class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let t=isNaN(e)?0:e;this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}constructor(e,t,n,o,a,s,l){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=n,this._dir=o,this._ngZone=a,this._platform=s,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new P,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new P,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new T,this.indexFocused=new T,this._sharedResizeObserver=R(ra),this._injector=R(et),a.runOutsideAngular(()=>{Je(e.nativeElement,"mouseleave").pipe(oe(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Je(this._previousPaginator.nativeElement,"touchstart",rp).pipe(oe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Je(this._nextPaginator.nativeElement,"touchstart",rp).pipe(oe(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let e=this._dir?this._dir.change:H("ltr"),t=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(St(32),oe(this._destroyed)),n=this._viewportRuler.change(150).pipe(oe(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ha(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Yt(o,{injector:this._injector}),ke(e,n,t,this._items.changes,this._itemsResized()).pipe(oe(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?lt:this._items.changes.pipe(Ge(this._items),Qe(e=>new ft(t=>this._ngZone.runOutsideAngular(()=>{let n=new ResizeObserver(o=>t.next(o));return e.forEach(o=>n.observe(o.elementRef.nativeElement)),()=>{n.disconnect()}}))),an(1),ve(e=>e.some(t=>t.contentRect.width>0&&t.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(!qe(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let t=this._items.get(this.focusIndex);t&&!t.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){let 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]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let t=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?t.scrollLeft=0:t.scrollLeft=t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,t=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}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){let t=this._tabListContainer.nativeElement.offsetWidth,n=(e=="before"?-1:1)*t/3;return this._scrollTo(this._scrollDistance+n)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let t=this._items?this._items.toArray()[e]:null;if(!t)return;let n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=t.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let p=this.scrollDistance,g=this.scrollDistance+n;sg&&(this.scrollDistance+=Math.min(l-g,s-p))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,t=this._elementRef.nativeElement.offsetWidth,n=e-t>=5;n||(this.scrollDistance=0),n!==this._showPaginationControls&&(this._showPaginationControls=n,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,t=this._tabListContainer.nativeElement.offsetWidth;return e-t||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&t.button!=null&&t.button!==0||(this._stopInterval(),ed(Xy,Zy).pipe(oe(ke(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:n,distance:o}=this._scrollHeader(e);(o===0||o>=n)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Z),c(fi),c(Fe,8),c($),c(le),c(Ie,8))}}static{this.\u0275dir=I({type:i,inputs:{disablePagination:[2,"disablePagination","disablePagination",v],selectedIndex:[2,"selectedIndex","selectedIndex",Te]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ne]})}}return i})(),Jy=(()=>{class i extends Ky{constructor(e,t,n,o,a,s,l){super(e,t,n,o,a,s,l),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new ic(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Z),c(fi),c(Fe,8),c($),c(le),c(Ie,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-tab-header"]],contentQueries:function(t,n,o){if(t&1&&Y(o,sp,4),t&2){let a;k(a=M())&&(n._items=a)}},viewQuery:function(t,n){if(t&1&&(Q(Ay,7),Q(Ry,7),Q(Oy,7),Q(Fy,5),Q(Py,5)),t&2){let o;k(o=M())&&(n._tabListContainer=o.first),k(o=M())&&(n._tabList=o.first),k(o=M())&&(n._tabListInner=o.first),k(o=M())&&(n._nextPaginator=o.first),k(o=M())&&(n._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,n){t&2&&B("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl",n._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",v]},standalone:!0,features:[ne,_e,z],ngContentSelectors:rc,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(t,n){if(t&1){let o=J();de(),h(0,"div",5,0),S("click",function(){return x(o),w(n._handlePaginatorClick("before"))})("mousedown",function(s){return x(o),w(n._handlePaginatorPress("before",s))})("touchend",function(){return x(o),w(n._stopInterval())}),y(2,"div",6),m(),h(3,"div",7,1),S("keydown",function(s){return x(o),w(n._handleKeydown(s))}),h(5,"div",8,2),S("cdkObserveContent",function(){return x(o),w(n._onContentChanges())}),h(7,"div",9,3),q(9),m()()(),h(10,"div",10,4),S("mousedown",function(s){return x(o),w(n._handlePaginatorPress("after",s))})("click",function(){return x(o),w(n._handlePaginatorClick("after"))})("touchend",function(){return x(o),w(n._stopInterval())}),y(12,"div",6),m()}t&2&&(B("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),f("matRippleDisabled",n._disableScrollBefore||n.disableRipple),d(3),B("_mat-animation-noopable",n._animationMode==="NoopAnimations"),d(2),K("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null),d(5),B("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),f("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},dependencies:[Nt,Rh],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.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;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.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;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.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-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.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}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}}return i})(),ex=new O("MAT_TABS_CONFIG"),tx={translateTab:At("translateTab",[bt("center, void, left-origin-center, right-origin-center",Re({transform:"none",visibility:"visible"})),bt("left",Re({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),bt("right",Re({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),tt("* => left, * => right, left => center, right => center",rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),tt("void => left-origin-center",[Re({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),tt("void => right-origin-center",[Re({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},ix=(()=>{class i extends Bn{constructor(e,t,n,o){super(e,t,o),this._host=n,this._centeringSub=ge.EMPTY,this._leavingSub=ge.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ge(this._host._isCenterPosition(this._host._position))).subscribe(e=>{this._host._content&&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()}static{this.\u0275fac=function(t){return new(t||i)(c(un),c(We),c(ce(()=>lp)),c(X))}}static{this.\u0275dir=I({type:i,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[_e]})}}return i})(),lp=(()=>{class i{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,t,n){this._elementRef=e,this._dir=t,this._dirChangeSubscription=ge.EMPTY,this._translateTabComplete=new P,this._onCentering=new T,this._beforeCentering=new T,this._afterLeavingCenter=new T,this._onCentered=new T(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(o=>{this._computePositionAnimationState(o),n.markForCheck()})),this._translateTabComplete.pipe(ni((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(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){let t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(e){return e=="center"||e=="left-origin-center"||e=="right-origin-center"}_computePositionAnimationState(e=this._getLayoutDirection()){this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(e){let t=this._getLayoutDirection();return t=="ltr"&&e<=0||t=="rtl"&&e>0?"left-origin-center":"right-origin-center"}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Fe,8),c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-tab-body"]],viewQuery:function(t,n){if(t&1&&Q(Bn,5),t&2){let o;k(o=M())&&(n._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[z],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(t,n){if(t&1){let o=J();h(0,"div",1,0),S("@translateTab.start",function(s){return x(o),w(n._onTranslateTabStarted(s))})("@translateTab.done",function(s){return x(o),w(n._translateTabComplete.next(s))}),b(2,Vy,0,0,"ng-template",2),m()}t&2&&f("@translateTab",Me(3,Ly,n._position,Xe(1,Ny,n.animationDuration)))},dependencies:[ix,jl],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:[tx.translateTab]}})}}return i})(),nx=0,rx=!0,cp=(()=>{class i{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}get animationDuration(){return this._animationDuration}set animationDuration(e){let t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){if(!rx)throw new Error("mat-tab-group background color must be set through the Sass theming API");let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,t,n,o){this._elementRef=e,this._changeDetectorRef=t,this._animationMode=o,this._tabs=new sn,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ge.EMPTY,this._tabLabelSubscription=ge.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new T,this.focusChange=new T,this.animationDone=new T,this.selectedTabChange=new T(!0),this._isServer=!R(le).isBrowser,this._groupId=nx++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=n&&n.disablePagination!=null?n.disablePagination:!1,this.dynamicHeight=n&&n.dynamicHeight!=null?n.dynamicHeight:!1,n?.contentTabIndex!=null&&(this.contentTabIndex=n.contentTabIndex),this.preserveContent=!!n?.preserveContent,this.fitInkBarToContent=n&&n.fitInkBarToContent!=null?n.fitInkBarToContent:!1,this.stretchTabs=n&&n.stretchTabs!=null?n.stretchTabs:!0}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let t=this._selectedIndex==null;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));let n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((n,o)=>n.isActive=o===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,n)=>{t.position=n-e,this._selectedIndex!=null&&t.position==0&&!t.origin&&(t.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(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let t=this._tabs.toArray(),n;for(let o=0;o{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Ge(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._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){let t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let t=new nc;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ke(...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;let t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,n){t.focusIndex=n,e.disabled||(this.selectedIndex=n)}_getTabIndex(e){let t=this._lastFocusedTabIndex??this.selectedIndex;return e===t?0:-1}_tabFocusChanged(e,t){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=t)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Z),c(ex,8),c(Ie,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-tab-group"]],contentQueries:function(t,n,o){if(t&1&&Y(o,sc,5),t&2){let a;k(a=M())&&(n._allTabs=a)}},viewQuery:function(t,n){if(t&1&&(Q(jy,5),Q(By,5)),t&2){let o;k(o=M())&&(n._tabBodyWrapper=o.first),k(o=M())&&(n._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(t,n){t&2&&(Ne("mat-"+(n.color||"primary")),Ae("--mat-tab-animation-duration",n.animationDuration),B("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header",n.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",n.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",v],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",v],dynamicHeight:[2,"dynamicHeight","dynamicHeight",v],selectedIndex:[2,"selectedIndex","selectedIndex",Te],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Te],disablePagination:[2,"disablePagination","disablePagination",v],disableRipple:[2,"disableRipple","disableRipple",v],preserveContent:[2,"preserveContent","preserveContent",v],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[W([{provide:ap,useExisting:i}]),ne,z],ngContentSelectors:rc,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(t,n){if(t&1){let o=J();de(),h(0,"mat-tab-header",3,0),S("indexFocused",function(s){return x(o),w(n._focusChanged(s))})("selectFocusedIndex",function(s){return x(o),w(n.selectedIndex=s)}),Le(2,Gy,8,17,"div",4,nt),m(),b(4,$y,1,0),h(5,"div",5,1),Le(7,Wy,1,13,"mat-tab-body",6,nt),m()}t&2&&(f("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),d(2),Ve(n._tabs),d(2),C(n._isServer?4:-1),d(),B("_mat-animation-noopable",n._animationMode==="NoopAnimations"),d(2),Ve(n._tabs))},dependencies:[Jy,sp,Gh,Nt,Bn,lp],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.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--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.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{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);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--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.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);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.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;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));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;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.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-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.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,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.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-tab-header-with-background-foreground-color)}.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{color:var(--mat-tab-header-with-background-foreground-color)}.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})}}return i})(),nc=class{};var dp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,me]})}}return i})();var up=new O("CdkAccordion");var ox=0,hp=(()=>{class i{get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(e,t,n){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=n,this._openCloseAllSubscription=ge.EMPTY,this.closed=new T,this.opened=new T,this.destroyed=new T,this.expandedChange=new T,this.id=`cdk-accordion-child-${ox++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static{this.\u0275fac=function(t){return new(t||i)(c(up,12),c(Z),c(wa))}}static{this.\u0275dir=I({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",v],disabled:[2,"disabled","disabled",v]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[W([{provide:up,useValue:void 0}]),ne]})}}return i})(),mp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})();var ax=["body"],sx=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],lx=["mat-expansion-panel-header","*","mat-action-row"];function cx(i,r){}var dx=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ux=["mat-panel-title","mat-panel-description","*"];function hx(i,r){if(i&1&&(h(0,"span",1),kt(),h(1,"svg",2),y(2,"path",3),m()()),i&2){let e=u();f("@indicatorRotate",e._getExpandedState())}}var pp=new O("MAT_ACCORDION"),fp="225ms cubic-bezier(0.4,0.0,0.2,1)",_p={indicatorRotate:At("indicatorRotate",[bt("collapsed, void",Re({transform:"rotate(0deg)"})),bt("expanded",Re({transform:"rotate(180deg)"})),tt("expanded <=> collapsed, void => collapsed",rt(fp))]),bodyExpansion:At("bodyExpansion",[bt("collapsed, void",Re({height:"0px",visibility:"hidden"})),bt("expanded",Re({height:"*",visibility:""})),tt("expanded <=> collapsed, void => collapsed",rt(fp))])},bp=new O("MAT_EXPANSION_PANEL"),lc=(()=>{class i{constructor(e,t){this._template=e,this._expansionPanel=t}static{this.\u0275fac=function(t){return new(t||i)(c(U),c(bp,8))}}static{this.\u0275dir=I({type:i,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}}return i})(),mx=0,vp=new O("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),cc=(()=>{class i extends hp{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,t,n,o,a,s,l){super(e,t,n),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new T,this.afterCollapse=new T,this._inputChanges=new P,this._headerId=`mat-expansion-panel-header-${mx++}`,this.accordion=e,this._document=a,this._animationsDisabled=s==="NoopAnimations",l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Ge(null),ve(()=>this.expanded&&!this._portal),Ye(1)).subscribe(()=>{this._portal=new ti(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_animationStarted(e){!gp(e)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(e){gp(e)||(e.toState==="expanded"?this.afterExpand.emit():e.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}static{this.\u0275fac=function(t){return new(t||i)(c(pp,12),c(Z),c(wa),c(We),c(X),c(Ie,8),c(vp,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(t,n,o){if(t&1&&Y(o,lc,5),t&2){let a;k(a=M())&&(n._lazyContent=a.first)}},viewQuery:function(t,n){if(t&1&&Q(ax,5),t&2){let o;k(o=M())&&(n._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,n){t&2&&B("mat-expanded",n.expanded)("_mat-animation-noopable",n._animationsDisabled)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",v],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[W([{provide:pp,useValue:void 0},{provide:bp,useExisting:i}]),ne,_e,se,z],ngContentSelectors:lx,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,n){if(t&1){let o=J();de(sx),q(0),h(1,"div",1,0),S("@bodyExpansion.start",function(s){return x(o),w(n._animationStarted(s))})("@bodyExpansion.done",function(s){return x(o),w(n._animationDone(s))}),h(3,"div",2),q(4,1),b(5,cx,0,0,"ng-template",3),m(),q(6,2),m()}t&2&&(d(),f("@bodyExpansion",n._getExpandedState())("id",n.id),K("aria-labelledby",n._headerId),d(4),f("cdkPortalOutlet",n._portal))},dependencies:[Bn],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color, var(--mat-app-surface));color:var(--mat-expansion-container-text-color, var(--mat-app-on-surface));border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow: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-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font, var(--mat-app-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-app-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-app-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-app-body-large-tracking))}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-app-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[_p.bodyExpansion]},changeDetection:0})}}return i})();function gp(i){return i.fromState==="void"}var yp=(()=>{class i{constructor(e,t,n,o,a,s,l){this.panel=e,this._element=t,this._focusMonitor=n,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=ge.EMPTY,this.tabIndex=0;let p=e.accordion?e.accordion._stateChanges.pipe(ve(g=>!!(g.hideToggle||g.togglePosition))):lt;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=ke(e.opened,e.closed,p,e._inputChanges.pipe(ve(g=>!!(g.hideToggle||g.disabled||g.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ve(()=>e._containsFocus())).subscribe(()=>n.focusVia(t,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:qe(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static{this.\u0275fac=function(t){return new(t||i)(c(cc,1),c(F),c(Ct),c(Z),c(vp,8),c(Ie,8),$e("tabindex"))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,n){t&1&&S("click",function(){return n._toggle()})("keydown",function(a){return n._keydown(a)}),t&2&&(K("id",n.panel._headerId)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),Ae("height",n._getHeaderHeight()),B("mat-expanded",n._isExpanded())("mat-expansion-toggle-indicator-after",n._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",n._getTogglePosition()==="before")("_mat-animation-noopable",n._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)]},standalone:!0,features:[ne,z],ngContentSelectors:ux,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(t,n){t&1&&(de(dx),h(0,"span",0),q(1),q(2,1),q(3,2),m(),b(4,hx,3,1,"span",1)),t&2&&(B("mat-content-hide-toggle",!n._showToggle()),d(4),C(n._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font, var(--mat-app-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-app-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-app-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-app-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-app-title-medium-tracking))}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-app-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-app-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-app-on-surface-variant))}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-app-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-app-on-surface-variant));display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[_p.indicatorRotate]},changeDetection:0})}}return i})();var xp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,mp,zn]})}}return i})();var px=["tooltip"],Tp=20;var Ep=new O("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=R(Ke);return()=>i.scrollStrategies.reposition({scrollThrottle:Tp})}});function fx(i){return()=>i.scrollStrategies.reposition({scrollThrottle:Tp})}var gx={provide:Ep,deps:[Ke],useFactory:fx};function _x(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var bx=new O("mat-tooltip-default-options",{providedIn:"root",factory:_x});var wp="tooltip-panel",Cp=Ft({passive:!0}),vx=8,yx=8,xx=24,wx=200,Ip=(()=>{class i{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=ei(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=ei(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ki(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ki(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,t,n,o,a,s,l,p,g,_,D,G){this._overlay=e,this._elementRef=t,this._scrollDispatcher=n,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=l,this._focusMonitor=p,this._dir=_,this._defaultOptions=D,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Cx,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new P,this._injector=R(et),this._scrollStrategy=g,this._document=G,D&&(this._showDelay=D.showDelay,this._hideDelay=D.hideDelay,D.position&&(this.position=D.position),D.positionAtOrigin&&(this.positionAtOrigin=D.positionAtOrigin),D.touchGestures&&(this.touchGestures=D.touchGestures),D.tooltipClass&&(this.tooltipClass=D.tooltipClass)),_.change.pipe(oe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=vx}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(oe(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,n])=>{e.removeEventListener(t,n,Cp)}),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,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(t);this._detach(),this._portal=this._portal||new nn(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=n.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(oe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._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){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof F)return this._overlayRef;this._detach()}let t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(oe(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:n,panelClass:`${this._cssClassPrefix}-${wp}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(oe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(oe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(oe(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!qe(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){let t=e.getConfig().positionStrategy,n=this._getOrigin(),o=this._getOverlayPosition();t.withPositions([this._addOffset(A(A({},n.main),o.main)),this._addOffset(A(A({},n.fallback),o.fallback))])}_addOffset(e){let t=yx,n=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=n?-t:t:e.originX==="end"&&(e.offsetX=n?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"||t=="below"?n={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"?n={overlayX:"center",overlayY:"bottom"}:t=="below"?n={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Yt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:n,originY:o}=e,a;if(t==="center"?this._dir&&this._dir.value==="rtl"?a=n==="end"?"left":"right":a=n==="start"?"left":"right":a=t==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${wp}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let t=e.targetTouches?.[0],n=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{let n=t.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,n])=>{this._elementRef.nativeElement.addEventListener(t,n,Cp)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,n=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(e==="on"||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static{this.\u0275fac=function(t){return new(t||i)(c(Ke),c(F),c(jn),c(We),c($),c(le),c(zh),c(Ct),c(Ep),c(Fe),c(bx,8),c(X))}}static{this.\u0275dir=I({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,n){t&2&&B("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}}return i})(),Cx=(()=>{class i{constructor(e,t,n){this._changeDetectorRef=e,this._elementRef=t,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new P,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=n==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&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(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>xx&&e.width>=wx}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,n=this._showAnimation,o=this._hideAnimation;if(t.classList.remove(e?o:n),t.classList.add(e?n:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(t);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static{this.\u0275fac=function(t){return new(t||i)(c(Z),c(F),c(Ie,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(t,n){if(t&1&&Q(px,7),t&2){let o;k(o=M())&&(n._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,n){t&1&&S("mouseleave",function(a){return n._handleMouseLeave(a)})},standalone:!0,features:[z],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,n){if(t&1){let o=J();h(0,"div",1,0),S("animationend",function(s){return x(o),w(n._handleAnimationEnd(s))}),h(2,"div",2),ee(3),m()()}t&2&&(B("mdc-tooltip--multiline",n._isMultiline),f("ngClass",n.tooltipClass),d(3),ue(n.message))},dependencies:[fn],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-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}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.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})}}return i})();var Sp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[gx],imports:[ga,Oe,Hn,me,me,Vn]})}}return i})();function He(i,r){Tx(i)&&(i="100%");var e=Ex(i);return i=r===360?i:Math.min(r,Math.max(0,parseFloat(i))),e&&(i=parseInt(String(i*r),10)/100),Math.abs(i-r)<1e-6?1:(r===360?i=(i<0?i%r+r:i%r)/parseFloat(String(r)):i=i%r/parseFloat(String(r)),i)}function Jr(i){return Math.min(1,Math.max(0,i))}function Tx(i){return typeof i=="string"&&i.indexOf(".")!==-1&&parseFloat(i)===1}function Ex(i){return typeof i=="string"&&i.indexOf("%")!==-1}function Ra(i){return i=parseFloat(i),(isNaN(i)||i<0||i>1)&&(i=1),i}function eo(i){return i<=1?"".concat(Number(i)*100,"%"):i}function Di(i){return i.length===1?"0"+i:String(i)}function kp(i,r,e){return{r:He(i,255)*255,g:He(r,255)*255,b:He(e,255)*255}}function uc(i,r,e){i=He(i,255),r=He(r,255),e=He(e,255);var t=Math.max(i,r,e),n=Math.min(i,r,e),o=0,a=0,s=(t+n)/2;if(t===n)a=0,o=0;else{var l=t-n;switch(a=s>.5?l/(2-t-n):l/(t+n),t){case i:o=(r-e)/l+(r1&&(e-=1),e<1/6?i+(r-i)*(6*e):e<1/2?r:e<2/3?i+(r-i)*(2/3-e)*6:i}function Mp(i,r,e){var t,n,o;if(i=He(i,360),r=He(r,100),e=He(e,100),r===0)n=e,o=e,t=e;else{var a=e<.5?e*(1+r):e+r-e*r,s=2*e-a;t=dc(s,a,i+1/3),n=dc(s,a,i),o=dc(s,a,i-1/3)}return{r:t*255,g:n*255,b:o*255}}function hc(i,r,e){i=He(i,255),r=He(r,255),e=He(e,255);var t=Math.max(i,r,e),n=Math.min(i,r,e),o=0,a=t,s=t-n,l=t===0?0:s/t;if(t===n)o=0;else{switch(t){case i:o=(r-e)/s+(r>16,g:(i&65280)>>8,b:i&255}}var to={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",cyan:"#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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Op(i){var r={r:0,g:0,b:0},e=1,t=null,n=null,o=null,a=!1,s=!1;return typeof i=="string"&&(i=Mx(i)),typeof i=="object"&&(gi(i.r)&&gi(i.g)&&gi(i.b)?(r=kp(i.r,i.g,i.b),a=!0,s=String(i.r).substr(-1)==="%"?"prgb":"rgb"):gi(i.h)&&gi(i.s)&&gi(i.v)?(t=eo(i.s),n=eo(i.v),r=Dp(i.h,t,n),a=!0,s="hsv"):gi(i.h)&&gi(i.s)&&gi(i.l)&&(t=eo(i.s),o=eo(i.l),r=Mp(i.h,t,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(i,"a")&&(e=i.a)),e=Ra(e),{ok:a,format:i.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}var Sx="[-\\+]?\\d+%?",kx="[-\\+]?\\d*\\.\\d+%?",Ai="(?:".concat(kx,")|(?:").concat(Sx,")"),fc="[\\s|\\(]+(".concat(Ai,")[,|\\s]+(").concat(Ai,")[,|\\s]+(").concat(Ai,")\\s*\\)?"),gc="[\\s|\\(]+(".concat(Ai,")[,|\\s]+(").concat(Ai,")[,|\\s]+(").concat(Ai,")[,|\\s]+(").concat(Ai,")\\s*\\)?"),Gt={CSS_UNIT:new RegExp(Ai),rgb:new RegExp("rgb"+fc),rgba:new RegExp("rgba"+gc),hsl:new RegExp("hsl"+fc),hsla:new RegExp("hsla"+gc),hsv:new RegExp("hsv"+fc),hsva:new RegExp("hsva"+gc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Mx(i){if(i=i.trim().toLowerCase(),i.length===0)return!1;var r=!1;if(to[i])i=to[i],r=!0;else if(i==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=Gt.rgb.exec(i);return e?{r:e[1],g:e[2],b:e[3]}:(e=Gt.rgba.exec(i),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Gt.hsl.exec(i),e?{h:e[1],s:e[2],l:e[3]}:(e=Gt.hsla.exec(i),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Gt.hsv.exec(i),e?{h:e[1],s:e[2],v:e[3]}:(e=Gt.hsva.exec(i),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Gt.hex8.exec(i),e?{r:mt(e[1]),g:mt(e[2]),b:mt(e[3]),a:pc(e[4]),format:r?"name":"hex8"}:(e=Gt.hex6.exec(i),e?{r:mt(e[1]),g:mt(e[2]),b:mt(e[3]),format:r?"name":"hex"}:(e=Gt.hex4.exec(i),e?{r:mt(e[1]+e[1]),g:mt(e[2]+e[2]),b:mt(e[3]+e[3]),a:pc(e[4]+e[4]),format:r?"name":"hex8"}:(e=Gt.hex3.exec(i),e?{r:mt(e[1]+e[1]),g:mt(e[2]+e[2]),b:mt(e[3]+e[3]),format:r?"name":"hex"}:!1)))))))))}function gi(i){return!!Gt.CSS_UNIT.exec(String(i))}var $t=function(){function i(r,e){r===void 0&&(r=""),e===void 0&&(e={});var t;if(r instanceof i)return r;typeof r=="number"&&(r=Rp(r)),this.originalInput=r;var n=Op(r);this.originalInput=r,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(t=e.format)!==null&&t!==void 0?t:n.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return i.prototype.isDark=function(){return this.getBrightness()<128},i.prototype.isLight=function(){return!this.isDark()},i.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},i.prototype.getLuminance=function(){var r=this.toRgb(),e,t,n,o=r.r/255,a=r.g/255,s=r.b/255;return o<=.03928?e=o/12.92:e=Math.pow((o+.055)/1.055,2.4),a<=.03928?t=a/12.92:t=Math.pow((a+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},i.prototype.getAlpha=function(){return this.a},i.prototype.setAlpha=function(r){return this.a=Ra(r),this.roundA=Math.round(100*this.a)/100,this},i.prototype.isMonochrome=function(){var r=this.toHsl().s;return r===0},i.prototype.toHsv=function(){var r=hc(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},i.prototype.toHsvString=function(){var r=hc(this.r,this.g,this.b),e=Math.round(r.h*360),t=Math.round(r.s*100),n=Math.round(r.v*100);return this.a===1?"hsv(".concat(e,", ").concat(t,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(t,"%, ").concat(n,"%, ").concat(this.roundA,")")},i.prototype.toHsl=function(){var r=uc(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},i.prototype.toHslString=function(){var r=uc(this.r,this.g,this.b),e=Math.round(r.h*360),t=Math.round(r.s*100),n=Math.round(r.l*100);return this.a===1?"hsl(".concat(e,", ").concat(t,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(t,"%, ").concat(n,"%, ").concat(this.roundA,")")},i.prototype.toHex=function(r){return r===void 0&&(r=!1),mc(this.r,this.g,this.b,r)},i.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},i.prototype.toHex8=function(r){return r===void 0&&(r=!1),Ap(this.r,this.g,this.b,this.a,r)},i.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},i.prototype.toHexShortString=function(r){return r===void 0&&(r=!1),this.a===1?this.toHexString(r):this.toHex8String(r)},i.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},i.prototype.toRgbString=function(){var r=Math.round(this.r),e=Math.round(this.g),t=Math.round(this.b);return this.a===1?"rgb(".concat(r,", ").concat(e,", ").concat(t,")"):"rgba(".concat(r,", ").concat(e,", ").concat(t,", ").concat(this.roundA,")")},i.prototype.toPercentageRgb=function(){var r=function(e){return"".concat(Math.round(He(e,255)*100),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},i.prototype.toPercentageRgbString=function(){var r=function(e){return Math.round(He(e,255)*100)};return this.a===1?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},i.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+mc(this.r,this.g,this.b,!1),e=0,t=Object.entries(to);e=0,o=!e&&n&&(r.startsWith("hex")||r==="name");return o?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(t=this.toRgbString()),r==="prgb"&&(t=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(t=this.toHexString()),r==="hex3"&&(t=this.toHexString(!0)),r==="hex4"&&(t=this.toHex8String(!0)),r==="hex8"&&(t=this.toHex8String()),r==="name"&&(t=this.toName()),r==="hsl"&&(t=this.toHslString()),r==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},i.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},i.prototype.clone=function(){return new i(this.toString())},i.prototype.lighten=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.l+=r/100,e.l=Jr(e.l),new i(e)},i.prototype.brighten=function(r){r===void 0&&(r=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),new i(e)},i.prototype.darken=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.l-=r/100,e.l=Jr(e.l),new i(e)},i.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},i.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},i.prototype.desaturate=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.s-=r/100,e.s=Jr(e.s),new i(e)},i.prototype.saturate=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.s+=r/100,e.s=Jr(e.s),new i(e)},i.prototype.greyscale=function(){return this.desaturate(100)},i.prototype.spin=function(r){var e=this.toHsl(),t=(e.h+r)%360;return e.h=t<0?360+t:t,new i(e)},i.prototype.mix=function(r,e){e===void 0&&(e=50);var t=this.toRgb(),n=new i(r).toRgb(),o=e/100,a={r:(n.r-t.r)*o+t.r,g:(n.g-t.g)*o+t.g,b:(n.b-t.b)*o+t.b,a:(n.a-t.a)*o+t.a};return new i(a)},i.prototype.analogous=function(r,e){r===void 0&&(r=6),e===void 0&&(e=30);var t=this.toHsl(),n=360/e,o=[this];for(t.h=(t.h-(n*r>>1)+720)%360;--r;)t.h=(t.h+n)%360,o.push(new i(t));return o},i.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new i(r)},i.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var e=this.toHsv(),t=e.h,n=e.s,o=e.v,a=[],s=1/r;r--;)a.push(new i({h:t,s:n,v:o})),o=(o+s)%1;return a},i.prototype.splitcomplement=function(){var r=this.toHsl(),e=r.h;return[this,new i({h:(e+72)%360,s:r.s,l:r.l}),new i({h:(e+216)%360,s:r.s,l:r.l})]},i.prototype.onBackground=function(r){var e=this.toRgb(),t=new i(r).toRgb(),n=e.a+t.a*(1-e.a);return new i({r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n})},i.prototype.triad=function(){return this.polyad(3)},i.prototype.tetrad=function(){return this.polyad(4)},i.prototype.polyad=function(r){for(var e=this.toHsl(),t=e.h,n=[this],o=360/r,a=1;a"u")return null;let t=document.createElement("canvas");t.width=e*2,t.height=e*2;let n=t.getContext("2d");return n?(n.fillStyle=i,n.fillRect(0,0,t.width,t.height),n.fillStyle=r,n.fillRect(0,0,e,e),n.translate(e,e),n.fillRect(0,0,e,e),t.toDataURL()):null}function Ox(i,r,e){let t=`${i}-${r}-${e}`;if(_c[t])return _c[t];let n=Rx(i,r,e);return n?(_c[t]=n,n):null}var bc=(()=>{class i{white="transparent";size=8;grey="rgba(0,0,0,.08)";boxShadow;borderRadius;gridStyles;ngOnInit(){let e=Ox(this.white,this.grey,this.size);this.gridStyles={borderRadius:this.borderRadius,boxShadow:this.boxShadow,background:`url(${e}) center left`}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["color-checkboard"]],inputs:{white:"white",size:"size",grey:"grey",boxShadow:"boxShadow",borderRadius:"borderRadius"},decls:1,vars:1,consts:[[1,"grid",3,"ngStyle"]],template:function(t,n){t&1&&y(0,"div",0),t&2&&f("ngStyle",n.gridStyles)},dependencies:[_n],styles:[".grid[_ngcontent-%COMP%]{inset:0;position:absolute}"],changeDetection:0})}return i})(),vc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe]})}return i})(),yc=(()=>{class i{el;coordinatesChange=new P;mousechange=new P;mouseListening=!1;sub;mousemove(e,t,n,o=!1){this.mouseListening&&(e.preventDefault(),this.mousechange.next({$event:e,x:t,y:n,isTouch:o}))}mouseup(){this.mouseListening=!1}mousedown(e,t,n,o=!1){e.preventDefault(),this.mouseListening=!0,this.mousechange.next({$event:e,x:t,y:n,isTouch:o})}constructor(e){this.el=e}ngOnInit(){this.sub=this.mousechange.pipe(ni((e,t)=>e.x===t.x&&e.y===t.y)).subscribe(e=>this.handleChange(e.x,e.y,e.$event,e.isTouch))}ngOnDestroy(){this.sub?.unsubscribe()}handleChange(e,t,n,o){let a=this.el.nativeElement.clientWidth,s=this.el.nativeElement.clientHeight,l=e-(this.el.nativeElement.getBoundingClientRect().left+window.pageXOffset),p=t-this.el.nativeElement.getBoundingClientRect().top;o||(p=p-window.pageYOffset),this.coordinatesChange.next({x:e,y:t,top:p,left:l,containerWidth:a,containerHeight:s,$event:n})}static \u0275fac=function(t){return new(t||i)(c(F))};static \u0275dir=I({type:i,selectors:[["","ngx-color-coordinates",""]],hostBindings:function(t,n){t&1&&S("mousemove",function(a){return n.mousemove(a,a.pageX,a.pageY)},!1,or)("touchmove",function(a){return n.mousemove(a,a.touches[0].clientX,a.touches[0].clientY,!0)},!1,or)("mouseup",function(){return n.mouseup()},!1,or)("touchend",function(){return n.mouseup()},!1,or)("mousedown",function(a){return n.mousedown(a,a.pageX,a.pageY)})("touchstart",function(a){return n.mousedown(a,a.touches[0].clientX,a.touches[0].clientY,!0)})},outputs:{coordinatesChange:"coordinatesChange"}})}return i})(),xc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({})}return i})(),Pp=(()=>{class i{hsl;rgb;pointer;shadow;radius;direction="horizontal";onChange=new T;gradient;pointerLeft;pointerTop;ngOnChanges(){this.direction==="vertical"?(this.pointerLeft=0,this.pointerTop=this.rgb.a*100,this.gradient={background:`linear-gradient(to bottom, rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 0) 0%, + rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 1) 100%)`}):(this.gradient={background:`linear-gradient(to right, rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 0) 0%, + rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 1) 100%)`},this.pointerLeft=this.rgb.a*100)}handleChange({top:e,left:t,containerHeight:n,containerWidth:o,$event:a}){let s;if(this.direction==="vertical"){let l;e<0?l=0:e>n?l=1:l=Math.round(e*100/n)/100,this.hsl.a!==l&&(s={h:this.hsl.h,s:this.hsl.s,l:this.hsl.l,a:l,source:"rgb"})}else{let l;t<0?l=0:t>o?l=1:l=Math.round(t*100/o)/100,this.hsl.a!==l&&(s={h:this.hsl.h,s:this.hsl.s,l:this.hsl.l,a:l,source:"rgb"})}s&&this.onChange.emit({data:s,$event:a})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["color-alpha"]],inputs:{hsl:"hsl",rgb:"rgb",pointer:"pointer",shadow:"shadow",radius:"radius",direction:"direction"},outputs:{onChange:"onChange"},features:[se],decls:7,vars:15,consts:[[1,"alpha"],[1,"alpha-checkboard"],[1,"alpha-gradient",3,"ngStyle"],["ngx-color-coordinates","",3,"coordinatesChange"],[1,"alpha-pointer"],[1,"alpha-slider",3,"ngStyle"]],template:function(t,n){t&1&&(h(0,"div",0)(1,"div",1),y(2,"color-checkboard"),m(),y(3,"div",2),h(4,"div",3),S("coordinatesChange",function(a){return n.handleChange(a)}),h(5,"div",4),y(6,"div",5),m()()()),t&2&&(Ae("border-radius",n.radius),d(3),Ae("box-shadow",n.shadow)("border-radius",n.radius),f("ngStyle",n.gradient),d(),ji("alpha-container color-alpha-",n.direction,""),d(),Ae("left",n.pointerLeft,"%")("top",n.pointerTop,"%"),d(),f("ngStyle",n.pointer))},dependencies:[_n,bc,yc],styles:[".alpha[_ngcontent-%COMP%]{position:absolute;inset:0}.alpha-checkboard[_ngcontent-%COMP%]{position:absolute;inset:0;overflow:hidden}.alpha-gradient[_ngcontent-%COMP%]{position:absolute;inset:0}.alpha-container[_ngcontent-%COMP%]{position:relative;height:100%;margin:0 3px}.alpha-pointer[_ngcontent-%COMP%]{position:absolute}.alpha-slider[_ngcontent-%COMP%]{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}"],changeDetection:0})}return i})(),Np=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe,vc,xc]})}return i})();function Fp(i){let r=["r","g","b","a","h","s","l","v"],e=0,t=0;return r.forEach(n=>{i[n]&&(e+=1,isNaN(i[n])||(t+=1),(n==="s"||n==="l")&&/^\d+%$/.test(i[n])&&(t+=1))}),e===t?i:!1}function Oa(i,r,e){let t=i.hex?new $t(i.hex):new $t(i);e&&t.setAlpha(1);let n=t.toHsl(),o=t.toHsv(),a=t.toRgb(),s=t.toHex();n.s===0&&(n.h=r||0,o.h=r||0);let l=s==="000000"&&a.a===0;return{hsl:n,hex:l?"transparent":t.toHexString(),rgb:a,hsv:o,oldHue:i.h||r||n.h,source:i.source}}function Lp(i){return new $t(i).isValid}var Wn=function(i){return i.HEX="hex",i.HSL="hsl",i.HSV="hsv",i.RGB="rgb",i}(Wn||{}),wc=(()=>{class i{className;mode=Wn.HEX;color={h:250,s:.5,l:.2,a:1};colorChange=new T;onChange=new T;onChangeComplete=new T;onSwatchHover=new T;oldHue;hsl;hsv;rgb;hex;source;currentColor;changes;disableAlpha;_onChangeCompleteSubscription=new ge;_onSwatchHoverSubscription=new ge;ngOnInit(){this.changes=this.onChange.pipe(St(100),Ce(e=>{switch(this.onChangeComplete.emit(e),this.mode){case Wn.HEX:this.colorChange.emit(e.color.hex);break;case Wn.HSL:this.colorChange.emit(e.color.hsl);break;case Wn.HSV:this.colorChange.emit(e.color.hsv);break;case Wn.RGB:this.colorChange.emit(e.color.rgb);break;default:let t=`The mode '${this.mode}' is not supported`;if(Fd())throw new Error(t);console.warn(t);break}})).subscribe(),this.setState(Oa(this.color,0)),this.currentColor=this.hex}ngOnChanges(){this.setState(Oa(this.color,this.oldHue))}ngOnDestroy(){this.changes?.unsubscribe(),this._onChangeCompleteSubscription?.unsubscribe(),this._onSwatchHoverSubscription?.unsubscribe()}setState(e){this.oldHue=e.oldHue,this.hsl=e.hsl,this.hsv=e.hsv,this.rgb=e.rgb,this.hex=e.hex,this.source=e.source,this.afterValidChange()}handleChange(e,t){if(Fp(e)){let o=Oa(e,e.h||this.oldHue,this.disableAlpha);this.setState(o),this.onChange.emit({color:o,$event:t}),this.afterValidChange()}}afterValidChange(){}handleSwatchHover(e,t){if(Fp(e)){let o=Oa(e,e.h||this.oldHue);this.setState(o),this.onSwatchHover.emit({color:o,$event:t})}}registerOnChange(e){this._onChangeCompleteSubscription.add(this.onChangeComplete.pipe(Ce(t=>e(t.color.hex))).subscribe())}registerOnTouched(e){this._onSwatchHoverSubscription.add(this.onSwatchHover.pipe(Ce(()=>e())).subscribe())}setDisabledState(e){}writeValue(e){this.color=e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["color-wrap"]],inputs:{className:"className",mode:"mode",color:"color"},outputs:{colorChange:"colorChange",onChange:"onChange",onChangeComplete:"onChangeComplete",onSwatchHover:"onSwatchHover"},features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),se],decls:0,vars:0,template:function(t,n){},encapsulation:2})}return i})();var Fx=0,Vp=(()=>{class i{style;label;value;arrowOffset;dragLabel;dragMax;placeholder="";onChange=new T;currentValue;blurValue;wrapStyle;inputStyle;labelStyle;focus=!1;mousemove;mouseup;uniqueId=`editableInput-${++Fx}`;ngOnInit(){this.wrapStyle=this.style&&this.style.wrap?this.style.wrap:{},this.inputStyle=this.style&&this.style.input?this.style.input:{},this.labelStyle=this.style&&this.style.label?this.style.label:{},this.dragLabel&&(this.labelStyle.cursor="ew-resize")}handleFocus(e){this.focus=!0}handleFocusOut(e){this.focus=!1,this.currentValue=this.blurValue}handleKeydown(e){let t=String(e.target.value),n=t.indexOf("%")>-1,o=Number(t.replace(/%/g,""));if(isNaN(o))return;let a=this.arrowOffset||1;e.keyCode===38&&(this.label?this.onChange.emit({data:{[this.label]:o+a},$event:e}):this.onChange.emit({data:o+a,$event:e}),n?this.currentValue=`${o+a}%`:this.currentValue=o+a),e.keyCode===40&&(this.label?this.onChange.emit({data:{[this.label]:o-a},$event:e}):this.onChange.emit({data:o-a,$event:e}),n?this.currentValue=`${o-a}%`:this.currentValue=o-a)}handleKeyup(e){e.keyCode===40||e.keyCode===38||`${this.currentValue}`!==e.target.value&&(this.label?this.onChange.emit({data:{[this.label]:e.target.value},$event:e}):this.onChange.emit({data:e.target.value,$event:e}))}ngOnChanges(){this.focus?this.blurValue=String(this.value).toUpperCase():(this.currentValue=String(this.value).toUpperCase(),this.blurValue=String(this.value).toUpperCase())}ngOnDestroy(){this.unsubscribe()}subscribe(){this.mousemove=Je(document,"mousemove").subscribe(e=>this.handleDrag(e)),this.mouseup=Je(document,"mouseup").subscribe(()=>this.unsubscribe())}unsubscribe(){this.mousemove?.unsubscribe(),this.mouseup?.unsubscribe()}handleMousedown(e){this.dragLabel&&(e.preventDefault(),this.handleDrag(e),this.subscribe())}handleDrag(e){if(this.dragLabel){let t=Math.round(this.value+e.movementX);t>=0&&t<=this.dragMax&&this.onChange.emit({data:{[this.label]:t},$event:e})}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["color-editable-input"]],inputs:{style:"style",label:"label",value:"value",arrowOffset:"arrowOffset",dragLabel:"dragLabel",dragMax:"dragMax",placeholder:"placeholder"},outputs:{onChange:"onChange"},features:[se],decls:3,vars:6,consts:[[1,"wrap",3,"ngStyle"],["spellCheck","false",3,"keydown","keyup","focus","focusout","ngStyle","value","placeholder"],[3,"id","ngStyle","mousedown",4,"ngIf"],[3,"mousedown","id","ngStyle"]],template:function(t,n){t&1&&(h(0,"div",0)(1,"input",1),S("keydown",function(a){return n.handleKeydown(a)})("keyup",function(a){return n.handleKeyup(a)})("focus",function(a){return n.handleFocus(a)})("focusout",function(a){return n.handleFocusOut(a)}),m(),b(2,Dx,2,3,"span",2),m()),t&2&&(f("ngStyle",n.wrapStyle),d(),f("ngStyle",n.inputStyle)("value",n.currentValue)("placeholder",n.placeholder),K("aria-labelledby",n.uniqueId),d(),f("ngIf",n.label))},dependencies:[gn,_n],styles:["[_nghost-%COMP%]{display:flex}.wrap[_ngcontent-%COMP%]{position:relative}"],changeDetection:0})}return i})(),jp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe]})}return i})(),Bp=(()=>{class i{hsl;pointer;radius;shadow;hidePointer=!1;direction="horizontal";onChange=new T;left="0px";top="";ngOnChanges(){this.direction==="horizontal"?this.left=`${this.hsl.h*100/360}%`:this.top=`${-(this.hsl.h*100/360)+100}%`}handleChange({top:e,left:t,containerHeight:n,containerWidth:o,$event:a}){let s;if(this.direction==="vertical"){let l;e<0?l=359:e>n?l=0:l=360*(-(e*100/n)+100)/100,this.hsl.h!==l&&(s={h:l,s:this.hsl.s,l:this.hsl.l,a:this.hsl.a,source:"rgb"})}else{let l;t<0?l=0:t>o?l=359:l=360*(t*100/o)/100,this.hsl.h!==l&&(s={h:l,s:this.hsl.s,l:this.hsl.l,a:this.hsl.a,source:"rgb"})}s&&this.onChange.emit({data:s,$event:a})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["color-hue"]],inputs:{hsl:"hsl",pointer:"pointer",radius:"radius",shadow:"shadow",hidePointer:"hidePointer",direction:"direction"},outputs:{onChange:"onChange"},features:[se],decls:3,vars:8,consts:[["ngx-color-coordinates","",1,"color-hue-container",3,"coordinatesChange"],["class","color-hue-pointer",3,"left","top",4,"ngIf"],[1,"color-hue-pointer"],[1,"color-hue-slider",3,"ngStyle"]],template:function(t,n){t&1&&(h(0,"div")(1,"div",0),S("coordinatesChange",function(a){return n.handleChange(a)}),b(2,Ax,2,5,"div",1),m()()),t&2&&(ji("color-hue color-hue-",n.direction,""),Ae("border-radius",n.radius,"px")("box-shadow",n.shadow),d(2),f("ngIf",!n.hidePointer))},dependencies:[gn,_n,yc],styles:[".color-hue[_ngcontent-%COMP%]{position:absolute;inset:0}.color-hue-container[_ngcontent-%COMP%]{margin:0 2px;position:relative;height:100%}.color-hue-pointer[_ngcontent-%COMP%]{position:absolute}.color-hue-slider[_ngcontent-%COMP%]{margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.color-hue-horizontal[_ngcontent-%COMP%]{background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}.color-hue-vertical[_ngcontent-%COMP%]{background:linear-gradient(to top,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}"],changeDetection:0})}return i})(),zp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe,xc]})}return i})();var Up=(()=>{class i{hsl;hsv;radius;pointer;circle;onChange=new T;background;pointerTop;pointerLeft;ngOnChanges(){this.background=`hsl(${this.hsl.h}, 100%, 50%)`,this.pointerTop=-(this.hsv.v*100)+1+100+"%",this.pointerLeft=this.hsv.s*100+"%"}handleChange({top:e,left:t,containerHeight:n,containerWidth:o,$event:a}){t<0?t=0:t>o?t=o:e<0?e=0:e>n&&(e=n);let s=t/o,l=-(e/n)+1;l=l>0?l:0,l=l>1?1:l;let p={h:this.hsl.h,s,v:l,a:this.hsl.a,source:"hsva"};this.onChange.emit({data:p,$event:a})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["color-saturation"]],inputs:{hsl:"hsl",hsv:"hsv",radius:"radius",pointer:"pointer",circle:"circle"},outputs:{onChange:"onChange"},features:[se],decls:5,vars:8,consts:[["ngx-color-coordinates","",1,"color-saturation",3,"coordinatesChange"],[1,"saturation-white"],[1,"saturation-black"],[1,"saturation-pointer",3,"ngStyle"],[1,"saturation-circle",3,"ngStyle"]],template:function(t,n){t&1&&(h(0,"div",0),S("coordinatesChange",function(a){return n.handleChange(a)}),h(1,"div",1),y(2,"div",2),h(3,"div",3),y(4,"div",4),m()()()),t&2&&(Ae("background",n.background),d(3),Ae("top",n.pointerTop)("left",n.pointerLeft),f("ngStyle",n.pointer),d(),f("ngStyle",n.circle))},dependencies:[_n,yc],styles:[".saturation-white[_ngcontent-%COMP%]{background:linear-gradient(to right,#fff,rgba(255,255,255,0));position:absolute;inset:0}.saturation-black[_ngcontent-%COMP%]{background:linear-gradient(to top,#000,rgba(0,0,0,0));position:absolute;inset:0}.color-saturation[_ngcontent-%COMP%]{position:absolute;inset:0}.saturation-pointer[_ngcontent-%COMP%]{position:absolute;cursor:default}.saturation-circle[_ngcontent-%COMP%]{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;cursor:hand;transform:translate(-2px,-4px)}"],changeDetection:0})}return i})(),Hp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe,xc]})}return i})();var _i=(i,r)=>({input:i,label:r});function Nx(i,r){if(i&1){let e=J();h(0,"div",11)(1,"color-editable-input",12),S("onChange",function(n){x(e);let o=u();return w(o.handleChange(n))}),m()()}if(i&2){let e=u();d(),Qt(Me(3,_i,e.input,e.label)),f("value",e.hex)}}function Lx(i,r){if(i&1){let e=J();h(0,"color-editable-input",17),S("onChange",function(n){x(e);let o=u(2);return w(o.handleChange(n))}),m()}if(i&2){let e=u(2);Qt(Me(4,_i,e.input,e.label)),f("value",e.rgb.a)("arrowOffset",.01)}}function Vx(i,r){if(i&1){let e=J();h(0,"div",11)(1,"color-editable-input",13),S("onChange",function(n){x(e);let o=u();return w(o.handleChange(n))}),m()(),h(2,"div",11)(3,"color-editable-input",14),S("onChange",function(n){x(e);let o=u();return w(o.handleChange(n))}),m()(),h(4,"div",11)(5,"color-editable-input",15),S("onChange",function(n){x(e);let o=u();return w(o.handleChange(n))}),m()(),h(6,"div",11),b(7,Lx,1,7,"color-editable-input",16),m()}if(i&2){let e=u();d(),Qt(Me(10,_i,e.input,e.label)),f("value",e.rgb.r),d(2),Qt(Me(13,_i,e.input,e.label)),f("value",e.rgb.g),d(2),Qt(Me(16,_i,e.input,e.label)),f("value",e.rgb.b),d(2),f("ngIf",!e.disableAlpha)}}function jx(i,r){if(i&1){let e=J();h(0,"color-editable-input",17),S("onChange",function(n){x(e);let o=u(2);return w(o.handleChange(n))}),m()}if(i&2){let e=u(2);Qt(Me(4,_i,e.input,e.label)),f("value",e.hsl.a)("arrowOffset",.01)}}function Bx(i,r){if(i&1){let e=J();h(0,"div",11)(1,"color-editable-input",18),S("onChange",function(n){x(e);let o=u();return w(o.handleChange(n))}),m()(),h(2,"div",11)(3,"color-editable-input",19),S("onChange",function(n){x(e);let o=u();return w(o.handleChange(n))}),m()(),h(4,"div",11)(5,"color-editable-input",20),S("onChange",function(n){x(e);let o=u();return w(o.handleChange(n))}),m()(),h(6,"div",11),b(7,jx,1,7,"color-editable-input",16),m()}if(i&2){let e=u();d(),Qt(Me(10,_i,e.input,e.label)),f("value",e.round(e.hsl.h)),d(2),Qt(Me(13,_i,e.input,e.label)),f("value",e.round(e.hsl.s*100)+"%"),d(2),Qt(Me(16,_i,e.input,e.label)),f("value",e.round(e.hsl.l*100)+"%"),d(2),f("ngIf",!e.disableAlpha)}}function zx(i,r){if(i&1){let e=J();h(0,"div",12)(1,"color-alpha",13),S("onChange",function(n){x(e);let o=u();return w(o.handleValueChange(n))}),m()()}if(i&2){let e=u();d(),f("radius",2)("rgb",e.rgb)("hsl",e.hsl)("pointer",e.pointer)}}var Ux=(()=>{class i{disableAlpha;hsl;rgb;hex;onChange=new T;view="";input={fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px","text-align":"center"};label={"text-transform":"uppercase",fontSize:"11px","line-height":"11px",color:"#969696","text-align":"center",display:"block",marginTop:"12px"};ngOnInit(){this.hsl.a===1&&this.view!=="hex"?this.view="hex":this.view!=="rgb"&&this.view!=="hsl"&&(this.view="rgb")}toggleViews(){this.view==="hex"?this.view="rgb":this.view==="rgb"?this.view="hsl":this.view==="hsl"&&(this.hsl.a===1?this.view="hex":this.view="rgb")}round(e){return Math.round(e)}handleChange({data:e,$event:t}){if(e.hex){if(Lp(e.hex)){let n=new $t(e.hex);this.onChange.emit({data:{hex:this.disableAlpha?n.toHex():n.toHex8(),source:"hex"},$event:t})}}else if(e.r||e.g||e.b)this.onChange.emit({data:{r:e.r||this.rgb.r,g:e.g||this.rgb.g,b:e.b||this.rgb.b,source:"rgb"},$event:t});else if(e.a)e.a<0?e.a=0:e.a>1&&(e.a=1),this.disableAlpha&&(e.a=1),this.onChange.emit({data:{h:this.hsl.h,s:this.hsl.s,l:this.hsl.l,a:Math.round(e.a*100)/100,source:"rgb"},$event:t});else if(e.h||e.s||e.l){let n=e.s&&e.s.replace("%",""),o=e.l&&e.l.replace("%","");this.onChange.emit({data:{h:e.h||this.hsl.h,s:Number(n||this.hsl.s),l:Number(o||this.hsl.l),source:"hsl"},$event:t})}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["color-chrome-fields"]],inputs:{disableAlpha:"disableAlpha",hsl:"hsl",rgb:"rgb",hex:"hex"},outputs:{onChange:"onChange"},decls:13,vars:3,consts:[["icon",""],["iconUp",""],["iconDown",""],[1,"chrome-wrap"],[1,"chrome-fields"],[3,"ngIf"],[1,"chrome-toggle"],[1,"chrome-icon",3,"click"],["viewBox","0 0 24 24",1,"chrome-toggle-svg"],["fill","#333","d","M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"],["fill","#333","d","M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15Z"],[1,"chrome-field"],["label","hex",3,"onChange","value"],["label","r",3,"onChange","value"],["label","g",3,"onChange","value"],["label","b",3,"onChange","value"],["label","a",3,"style","value","arrowOffset","onChange",4,"ngIf"],["label","a",3,"onChange","value","arrowOffset"],["label","h",3,"onChange","value"],["label","s",3,"onChange","value"],["label","l",3,"onChange","value"]],template:function(t,n){if(t&1){let o=J();h(0,"div",3)(1,"div",4),b(2,Nx,2,6,"ng-template",5)(3,Vx,8,19,"ng-template",5)(4,Bx,8,19,"ng-template",5),m(),h(5,"div",6)(6,"div",7,0),S("click",function(){return x(o),w(n.toggleViews())}),kt(),h(8,"svg",8),y(9,"path",9,1)(11,"path",10,2),m()()()()}t&2&&(d(2),f("ngIf",n.view==="hex"),d(),f("ngIf",n.view==="rgb"),d(),f("ngIf",n.view==="hsl"))},dependencies:[gn,Vp],styles:[".chrome-wrap[_ngcontent-%COMP%]{padding-top:16px;display:flex}.chrome-fields[_ngcontent-%COMP%]{flex:1;display:flex;margin-left:-6px}.chrome-field[_ngcontent-%COMP%]{padding-left:6px;width:100%}.chrome-toggle[_ngcontent-%COMP%]{width:32px;text-align:right;position:relative}.chrome-icon[_ngcontent-%COMP%]{margin-right:-4px;margin-top:12px;cursor:pointer;position:relative}.chrome-toggle-svg[_ngcontent-%COMP%]{width:24px;height:24px;border:1px transparent solid;border-radius:5px}.chrome-toggle-svg[_ngcontent-%COMP%]:hover{background:#eee}"],changeDetection:0})}return i})(),Gp=(()=>{class i extends wc{disableAlpha=!1;circle={width:"12px",height:"12px",borderRadius:"6px",boxShadow:"rgb(255, 255, 255) 0px 0px 0px 1px inset",transform:"translate(-6px, -8px)"};pointer={width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -2px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"};activeBackground;constructor(){super()}afterValidChange(){let e=this.disableAlpha?1:this.rgb.a;this.activeBackground=`rgba(${this.rgb.r}, ${this.rgb.g}, ${this.rgb.b}, ${e})`}handleValueChange({data:e,$event:t}){this.handleChange(e,t)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["color-chrome"]],inputs:{disableAlpha:"disableAlpha"},features:[W([{provide:we,useExisting:ce(()=>i),multi:!0},{provide:wc,useExisting:ce(()=>i)}]),_e],decls:14,vars:16,consts:[[1,"saturation"],[3,"onChange","hsl","hsv","circle"],[1,"chrome-body"],[1,"chrome-controls"],[1,"chrome-color"],[1,"chrome-swatch"],[1,"chrome-active"],[1,"chrome-toggles"],[1,"chrome-hue"],[3,"onChange","radius","hsl","pointer"],["class","chrome-alpha",4,"ngIf"],[3,"onChange","rgb","hsl","hex","disableAlpha"],[1,"chrome-alpha"],[3,"onChange","radius","rgb","hsl","pointer"]],template:function(t,n){t&1&&(h(0,"div")(1,"div",0)(2,"color-saturation",1),S("onChange",function(a){return n.handleValueChange(a)}),m()(),h(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),y(7,"div",6)(8,"color-checkboard"),m()(),h(9,"div",7)(10,"div",8)(11,"color-hue",9),S("onChange",function(a){return n.handleValueChange(a)}),m()(),b(12,zx,2,4,"div",10),m()(),h(13,"color-chrome-fields",11),S("onChange",function(a){return n.handleValueChange(a)}),m()()()),t&2&&(ji("chrome-picker ",n.className,""),d(2),f("hsl",n.hsl)("hsv",n.hsv)("circle",n.circle),d(5),Ae("background",n.activeBackground),d(4),f("radius",2)("hsl",n.hsl)("pointer",n.pointer),d(),f("ngIf",!n.disableAlpha),d(),f("rgb",n.rgb)("hsl",n.hsl)("hex",n.hex)("disableAlpha",n.disableAlpha))},dependencies:()=>[gn,Pp,bc,Bp,Up,Ux],styles:[".chrome-picker[_ngcontent-%COMP%]{background:#fff;border-radius:2px;box-shadow:0 0 2px #0000004d,0 4px 8px #0000004d;box-sizing:initial;width:225px;font-family:Menlo}.chrome-controls[_ngcontent-%COMP%]{display:flex}.chrome-color[_ngcontent-%COMP%]{width:42px}.chrome-body[_ngcontent-%COMP%]{padding:14px 14px 12px}.chrome-active[_ngcontent-%COMP%]{position:absolute;inset:0;border-radius:20px;box-shadow:inset 0 0 0 1px #0000001a;z-index:2}.chrome-swatch[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:15px;position:relative;overflow:hidden}.saturation[_ngcontent-%COMP%]{width:100%;padding-bottom:55%;position:relative;border-radius:2px 2px 0 0;overflow:hidden}.chrome-toggles[_ngcontent-%COMP%]{flex:1}.chrome-hue[_ngcontent-%COMP%]{height:10px;position:relative;margin-bottom:8px}.chrome-alpha[_ngcontent-%COMP%]{height:10px;position:relative}"],changeDetection:0})}return i})(),Cc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe,Np,vc,jp,zp,Hp]})}return i})();function Gx(i,r){}function $x(i,r){if(i&1&&b(0,Gx,0,0,"ng-template",0),i&2){let e=u();f("ngTemplateOutlet",e.picker.content)}}function Wx(i,r){if(i&1){let e=J();h(0,"color-chrome",2),S("onChangeComplete",function(n){x(e);let o=u();return w(o.picker.select(o.getColorString(n)))}),m()}if(i&2){let e=u();f("color",e.picker.selected)}}var qx=["button"],Yx=[[["","mtxColorpickerToggleIcon",""]]],Qx=["[mtxColorpickerToggleIcon]"];function Xx(i,r){i&1&&(kt(),h(0,"svg",2),y(1,"path",3),m())}var Zx={transformPanel:At("transformPanel",[tt("void => enter-dropdown",rt("120ms cubic-bezier(0, 0, 0.2, 1)",Gd([Re({opacity:0,transform:"scale(1, 0.8)"}),Re({opacity:1,transform:"scale(1, 1)"})]))),tt("* => void",rt("100ms linear",Re({opacity:0})))])},Kx=0,$p=new O("mtx-colorpicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=R(Ke);return()=>i.scrollStrategies.reposition()}});function Jx(i){return()=>i.scrollStrategies.reposition()}var ew={provide:$p,deps:[Ke],useFactory:Jx},Wp=(()=>{class i{constructor(e){this._changeDetectorRef=e,this._animationState="enter-dropdown",this._animationDone=new P}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._animationDone.complete()}getColorString(e){return{hex:e.color.rgb.a===1?e.color.hex:new $t(e.color.rgb).toHex8String(),rgb:new $t(e.color.rgb).toRgbString(),hsl:new $t(e.color.hsl).toHslString(),hsv:new $t(e.color.hsv).toHsvString()}[this.picker.format]}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["mtx-colorpicker-content"]],hostAttrs:[1,"mtx-colorpicker-content"],hostVars:3,hostBindings:function(t,n){t&1&&kd("@transformPanel.done",function(){return n._animationDone.next()}),t&2&&(Sd("@transformPanel",n._animationState),Ne(n.color?"mat-"+n.color:""))},inputs:{color:"color"},exportAs:["mtxColorpickerContent"],standalone:!0,features:[z],decls:2,vars:1,consts:[[3,"ngTemplateOutlet"],[3,"color"],[3,"onChangeComplete","color"]],template:function(t,n){t&1&&b(0,$x,1,1,null,0)(1,Wx,1,1,"color-chrome",1),t&2&&C(n.picker.content?0:1)},dependencies:[Cc,Gp,jt],styles:[`.mtx-colorpicker-content{display:block;border-radius:4px} +`],encapsulation:2,data:{animation:[Zx.transformPanel]},changeDetection:0})}}return i})(),qp=(()=>{class i{get disabled(){return this._disabled===void 0&&this.pickerInput?this.pickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))}get opened(){return this._opened}set opened(e){e?this.open():this.close()}get color(){return this._color||(this.pickerInput?this.pickerInput.getThemePalette():void 0)}set color(e){this._color=e}get format(){return this._format||this.pickerInput.format}set format(e){this._format=e}get selected(){return this._validSelected}set selected(e){this._validSelected=e}constructor(e,t,n,o,a){this._overlay=e,this._viewContainerRef=t,this._dir=o,this._document=a,this._inputStateChanges=ge.EMPTY,this.openedStream=new T,this.closedStream=new T,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this._opened=!1,this.id=`mtx-colorpicker-${Kx++}`,this._validSelected="",this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this._disabledChange=new P,this._selectedChanged=new P,this._injector=R(et),this._scrollStrategy=n}ngOnChanges(){}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this._disabledChange.complete()}select(e){let t=this.selected;this.selected=e,this._selectedChanged.next(e)}registerInput(e){if(this.pickerInput)throw Error("A Colorpicker can only be associated with a single input.");this.pickerInput=e,this._inputStateChanges=e._valueChange.subscribe(t=>this.selected=t)}open(){if(!(this._opened||this.disabled)){if(!this.pickerInput)throw Error("Attempted to open an Colorpicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this._openOverlay(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;if(this._componentRef){let t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Ye(1)).subscribe(()=>this._destroyOverlay())}let e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function"?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_forwardContentValues(e){e.picker=this,e.color=this.color}_openOverlay(){this._destroyOverlay();let e=this.pickerInput.getOverlayLabelId(),t=new nn(Wp,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new Un({positionStrategy:this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mtx-colorpicker-popup"})),o=n.overlayElement;o.setAttribute("role","dialog"),e&&o.setAttribute("aria-labelledby",e),this._getCloseStream(n).subscribe(a=>{a&&a.preventDefault(),this.close()}),this._componentRef=n.attach(t),this._forwardContentValues(this._componentRef.instance),Yt(()=>{n.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.pickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mtx-colorpicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let t=this.xPosition==="end"?"end":"start",n=t==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:t,originY:a,overlayX:t,overlayY:o},{originX:t,originY:o,overlayX:t,overlayY:a},{originX:n,originY:a,overlayX:n,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:a}])}_getCloseStream(e){return ke(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ve(t=>t.keyCode===27&&!qe(t)||this.pickerInput&&qe(t,"altKey")&&t.keyCode===38)))}static{this.\u0275fac=function(t){return new(t||i)(c(Ke),c(We),c($p),c(Fe,8),c(X,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mtx-colorpicker"]],inputs:{content:"content",disabled:[2,"disabled","disabled",v],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",v],opened:[2,"opened","opened",v],color:"color",format:"format"},outputs:{openedStream:"opened",closedStream:"closed"},exportAs:["mtxColorpicker"],standalone:!0,features:[ne,se,z],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0})}}return i})(),qn=class{constructor(r,e){this.target=r,this.targetElement=e,this.value=this.target.value}},tw={provide:we,useExisting:ce(()=>Fa),multi:!0},iw={provide:Ot,useExisting:ce(()=>Fa),multi:!0},Fa=(()=>{class i{set mtxColorpicker(e){e&&(this._picker=e,this._picker.registerInput(this),this._pickerSubscription.unsubscribe(),this._pickerSubscription=this._picker._selectedChanged.subscribe(t=>{this.value=t,this._cvaOnChange(t),this._onTouched(),this.colorInput.emit(new qn(this,this._elementRef.nativeElement)),this.colorChange.emit(new qn(this,this._elementRef.nativeElement))}))}get disabled(){return!!this._disabled}set disabled(e){let t=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&this._isInitialized&&t.blur&&t.blur()}get value(){return this._value}set value(e){let t=this.value;this._value=e,this._formatValue(e),this._valueChange.emit(e)}constructor(e,t){this._elementRef=e,this._formField=t,this.format="hex",this.colorChange=new T,this.colorInput=new T,this._disabledChange=new T,this._valueChange=new T,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._pickerSubscription=ge.EMPTY,this._validator=Zt.compose([]),this._lastValueValid=!1}ngAfterViewInit(){this._isInitialized=!0}ngOnDestroy(){this._pickerSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}writeValue(e){this.value=e}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let t=e.altKey&&e.keyCode===40;this._picker&&t&&!this._elementRef.nativeElement.readOnly&&(this._picker.open(),e.preventDefault())}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onInput(e){let t=e;this._value=t,this._cvaOnChange(t),this._valueChange.emit(t),this.colorInput.emit(new qn(this,this._elementRef.nativeElement))}_onChange(){this.colorChange.emit(new qn(this,this._elementRef.nativeElement))}getThemePalette(){return this._formField?this._formField.color:void 0}_formatValue(e){this._elementRef.nativeElement.value=e||""}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Ht,8))}}static{this.\u0275dir=I({type:i,selectors:[["input","mtxColorpicker",""]],hostAttrs:[1,"mtx-colorpicker-input"],hostVars:3,hostBindings:function(t,n){t&1&&S("input",function(a){return n._onInput(a.target.value)})("change",function(){return n._onChange()})("blur",function(){return n._onBlur()})("keydown",function(a){return n._onKeydown(a)}),t&2&&(Dt("disabled",n.disabled),K("aria-haspopup",n._picker?"dialog":null)("aria-owns",(n._picker==null?null:n._picker.opened)&&n._picker.id||null))},inputs:{mtxColorpicker:"mtxColorpicker",disabled:[2,"disabled","disabled",v],value:"value",format:"format"},outputs:{colorChange:"colorChange",colorInput:"colorInput"},exportAs:["mtxColorpickerInput"],standalone:!0,features:[W([tw,iw,{provide:Nl,useExisting:i}]),ne]})}}return i})(),nw=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","mtxColorpickerToggleIcon",""]],standalone:!0})}}return i})(),Tc=(()=>{class i{get disabled(){return this._disabled==null&&this.picker?this.picker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,t){this._changeDetectorRef=e,this._stateChanges=ge.EMPTY;let n=Number(t);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.picker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.picker&&!this.disabled&&(this.picker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.picker?this.picker._disabledChange:H(),t=this.picker&&this.picker.pickerInput?this.picker.pickerInput._disabledChange:H(),n=this.picker?ke(this.picker.openedStream,this.picker.closedStream):H();this._stateChanges.unsubscribe(),this._stateChanges=ke(e,t,n).subscribe(()=>this._changeDetectorRef.markForCheck())}static{this.\u0275fac=function(t){return new(t||i)(c(Z),$e("tabindex"))}}static{this.\u0275cmp=N({type:i,selectors:[["mtx-colorpicker-toggle"]],contentQueries:function(t,n,o){if(t&1&&Y(o,nw,5),t&2){let a;k(a=M())&&(n._customIcon=a.first)}},viewQuery:function(t,n){if(t&1&&Q(qx,5),t&2){let o;k(o=M())&&(n._button=o.first)}},hostAttrs:[1,"mtx-colorpicker-toggle"],hostVars:7,hostBindings:function(t,n){t&1&&S("click",function(a){return n._open(a)}),t&2&&(K("tabindex",null),B("mtx-colorpicker-toggle-active",n.picker&&n.picker.opened)("mat-accent",n.picker&&n.picker.color==="accent")("mat-warn",n.picker&&n.picker.color==="warn"))},inputs:{picker:[0,"for","picker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",v],disableRipple:[2,"disableRipple","disableRipple",v]},exportAs:["mtxColorpickerToggle"],standalone:!0,features:[ne,se,z],ngContentSelectors:Qx,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mtx-colorpicker-toggle-default-icon"],["d","M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z"]],template:function(t,n){t&1&&(de(Yx),h(0,"button",1,0),b(2,Xx,2,0,":svg:svg",2),q(3),m()),t&2&&(f("disabled",n.disabled)("disableRipple",n.disableRipple),K("aria-haspopup",n.picker?"dialog":null)("aria-label",n.ariaLabel)("tabindex",n.disabled?-1:n.tabIndex),d(2),C(n._customIcon?-1:2))},dependencies:[Kr],styles:[`.mtx-colorpicker-toggle{pointer-events:auto;color:var(--mtx-colorpicker-toggle-icon-color, var(--mat-app-on-surface-variant))}.mtx-colorpicker-toggle-active{color:var(--mtx-colorpicker-toggle-active-state-icon-color, var(--mat-app-on-surface-variant))}.cdk-high-contrast-active .mtx-colorpicker-toggle-default-icon{color:CanvasText} +`],encapsulation:2,changeDetection:0})}}return i})(),Yp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[ew],imports:[Oe,Hn,ga,zn,$n,Cc,Wp,Tc]})}}return i})();var rw=["content"],ow=["scroll"],aw=["padding"],Zp=["*"],no=i=>({searchTerm:i});function sw(i,r){if(i&1&&(h(0,"div",3),Ja(1,6),m()),i&2){let e=u();d(),f("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",Xe(2,no,e.filterValue))}}function lw(i,r){if(i&1&&(h(0,"div",5),Ja(1,6),m()),i&2){let e=u();d(),f("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",Xe(2,no,e.filterValue))}}var cw=["searchInput"],dw=["clearButton"],uw=(i,r,e)=>({item:i,clear:r,label:e}),hw=(i,r)=>({items:i,clear:r}),mw=(i,r,e,t)=>({item:i,item$:r,index:e,searchTerm:t});function pw(i,r){if(i&1&&(h(0,"div",20),ee(1),m()),i&2){let e=u(2);d(),ue(e.placeholder)}}function fw(i,r){}function gw(i,r){if(i&1&&b(0,pw,2,1,"ng-template",null,1,_t)(2,fw,0,0,"ng-template",19),i&2){let e=be(1),t=u();d(2),f("ngTemplateOutlet",t.placeholderTemplate||e)}}function _w(i,r){if(i&1){let e=J();h(0,"span",23),S("click",function(){x(e);let n=u().$implicit,o=u(2);return w(o.unselect(n))}),ee(1,"\xD7"),m(),y(2,"span",24)}if(i&2){let e=u().$implicit,t=u(2);d(2),f("ngItemLabel",e.label)("escape",t.escapeHTML)}}function bw(i,r){}function vw(i,r){if(i&1&&(h(0,"div",22),b(1,_w,3,2,"ng-template",null,2,_t)(3,bw,0,0,"ng-template",12),m()),i&2){let e=r.$implicit,t=be(2),n=u(2);B("ng-value-disabled",e.disabled),d(3),f("ngTemplateOutlet",n.labelTemplate||t)("ngTemplateOutletContext",Lt(4,uw,e.value,n.clearItem,e.label))}}function yw(i,r){if(i&1&&Le(0,vw,4,8,"div",21,Ka().trackByOption,!0),i&2){let e=u();Ve(e.selectedItems)}}function xw(i,r){}function ww(i,r){if(i&1&&b(0,xw,0,0,"ng-template",12),i&2){let e=u();f("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",Me(2,hw,e.selectedValues,e.clearItem))}}function Cw(i,r){i&1&&y(0,"div",25)}function Tw(i,r){}function Ew(i,r){if(i&1&&b(0,Cw,1,0,"ng-template",null,3,_t)(2,Tw,0,0,"ng-template",19),i&2){let e=be(1),t=u();d(2),f("ngTemplateOutlet",t.loadingSpinnerTemplate||e)}}function Iw(i,r){if(i&1&&(h(0,"span",15,4)(2,"span",26),ee(3,"\xD7"),m()()),i&2){let e=u();Md("title",e.clearAllText)}}function Sw(i,r){if(i&1&&y(0,"span",31),i&2){let e=u().$implicit,t=u(2);f("ngItemLabel",e.label)("escape",t.escapeHTML)}}function kw(i,r){}function Mw(i,r){if(i&1){let e=J();h(0,"div",30),S("click",function(){let n=x(e).$implicit,o=u(2);return w(o.toggleItem(n))})("mouseover",function(){let n=x(e).$implicit,o=u(2);return w(o.onItemHover(n))}),b(1,Sw,1,2,"ng-template",null,5,_t)(3,kw,0,0,"ng-template",12),m()}if(i&2){let e=r.$implicit,t=be(2),n=u(2);B("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===n.itemsList.markedItem),K("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId),d(3),f("ngTemplateOutlet",e.children?n.optgroupTemplate||t:n.optionTemplate||t)("ngTemplateOutletContext",cr(17,mw,e.value,e,e.index,n.searchTerm))}}function Dw(i,r){if(i&1&&(h(0,"span")(1,"span",33),ee(2),m(),ee(3),m()),i&2){let e=u(3);d(2),ue(e.addTagText),d(),xi('"',e.searchTerm,'"')}}function Aw(i,r){}function Rw(i,r){if(i&1){let e=J();h(0,"div",32),S("mouseover",function(){x(e);let n=u(2);return w(n.itemsList.unmarkItem())})("click",function(){x(e);let n=u(2);return w(n.selectTag())}),b(1,Dw,4,2,"ng-template",null,6,_t)(3,Aw,0,0,"ng-template",12),m()}if(i&2){let e=be(2),t=u(2);B("ng-option-marked",!t.itemsList.markedItem),d(3),f("ngTemplateOutlet",t.tagTemplate||e)("ngTemplateOutletContext",Xe(4,no,t.searchTerm))}}function Ow(i,r){if(i&1&&(h(0,"div",34),ee(1),m()),i&2){let e=u(3);d(),ue(e.notFoundText)}}function Fw(i,r){}function Pw(i,r){if(i&1&&b(0,Ow,2,1,"ng-template",null,7,_t)(2,Fw,0,0,"ng-template",12),i&2){let e=be(1),t=u(2);d(2),f("ngTemplateOutlet",t.notFoundTemplate||e)("ngTemplateOutletContext",Xe(2,no,t.searchTerm))}}function Nw(i,r){if(i&1&&(h(0,"div",34),ee(1),m()),i&2){let e=u(3);d(),ue(e.typeToSearchText)}}function Lw(i,r){}function Vw(i,r){if(i&1&&b(0,Nw,2,1,"ng-template",null,8,_t)(2,Lw,0,0,"ng-template",19),i&2){let e=be(1),t=u(2);d(2),f("ngTemplateOutlet",t.typeToSearchTemplate||e)}}function jw(i,r){if(i&1&&(h(0,"div",34),ee(1),m()),i&2){let e=u(3);d(),ue(e.loadingText)}}function Bw(i,r){}function zw(i,r){if(i&1&&b(0,jw,2,1,"ng-template",null,9,_t)(2,Bw,0,0,"ng-template",12),i&2){let e=be(1),t=u(2);d(2),f("ngTemplateOutlet",t.loadingTextTemplate||e)("ngTemplateOutletContext",Xe(2,no,t.searchTerm))}}function Uw(i,r){if(i&1){let e=J();h(0,"ng-dropdown-panel",27),S("update",function(n){x(e);let o=u();return w(o.viewPortItems=n)})("scroll",function(n){x(e);let o=u();return w(o.scroll.emit(n))})("scrollToEnd",function(n){x(e);let o=u();return w(o.scrollToEnd.emit(n))})("outsideClick",function(){x(e);let n=u();return w(n.close())}),sr(1),Le(2,Mw,4,22,"div",28,Ka().trackByOption,!0),b(4,Rw,4,6,"div",29),lr(),b(5,Pw,3,4)(6,Vw,3,1)(7,zw,3,4),m()}if(i&2){let e=u();B("ng-select-multiple",e.multiple),f("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId),d(2),Ve(e.viewPortItems),d(2),C(e.showAddTag?4:-1),d(),C(e.showNoItemsFound()?5:-1),d(),C(e.showTypeToSearch()?6:-1),d(),C(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var Kp=/[&<>"']/g,Hw=RegExp(Kp.source),Gw={"&":"&","<":"<",">":">",'"':""","'":"'"};function $w(i){return i&&Hw.test(i)?i.replace(Kp,r=>Gw[r]):i}function De(i){return i!=null}function io(i){return typeof i=="object"&&De(i)}function Ww(i){return i instanceof Promise}function Na(i){return i instanceof Function}var qw=(()=>{class i{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?$w(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=I({type:i,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[se]})}}return i})(),Sc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return i})(),kc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return i})(),Mc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return i})(),Dc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return i})(),Ac=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return i})(),Rc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return i})(),Oc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return i})(),Fc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return i})(),Pc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return i})(),Nc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return i})(),Lc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return i})(),Vc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return i})();function Jp(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Yw={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function Pa(i){let r=e=>Yw[e]||e;return i.replace(/[^\u0000-\u007E]/g,r)}var Ec=class{constructor(r,e){this._ngSelect=r,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let r=this.selectedItems.length-1;for(;r>=0;r--){let e=this.selectedItems[r];if(!e.disabled)return e}return null}setItems(r){this._items=r.map((e,t)=>this.mapItem(e,t)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(r){if(r.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(r,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(r)}unselect(r){r.selected&&(this._selectionModel.unselect(r,this._ngSelect.multiple),this._ngSelect.hideSelected&&De(r.index)&&this._ngSelect.multiple&&this._showSelected(r))}findItem(r){let e;return this._ngSelect.compareWith?e=t=>this._ngSelect.compareWith(t.value,r):this._ngSelect.bindValue?e=t=>!t.children&&this.resolveNested(t.value,this._ngSelect.bindValue)===r:e=t=>t.value===r||!t.children&&t.label&&t.label===this.resolveNested(r,this._ngSelect.bindLabel),this._items.find(t=>e(t))}addItem(r){let e=this.mapItem(r,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(r=!1){this._selectionModel.clear(r),this._items.forEach(e=>{e.selected=r&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(r){return r=Pa(r).toLocaleLowerCase(),this.filteredItems.find(e=>Pa(e.label).toLocaleLowerCase().substr(0,r.length)===r)}filter(r){if(!r){this.resetFilteredItems();return}this._filteredItems=[],r=this._ngSelect.searchFn?r:Pa(r).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,t=this._ngSelect.hideSelected;for(let n of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(n)){if(t&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn?a.value:a;e(r,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(r=>!r.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(r){this._markedIndex=this._filteredItems.indexOf(r)}markSelectedOrDefault(r){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=r?this.filteredItems.findIndex(t=>!t.disabled):-1}resolveNested(r,e){if(!io(r))return r;if(e.indexOf(".")===-1)return r[e];{let t=e.split("."),n=r;for(let o=0,a=t.length;othis.selectedItems.indexOf(e)===-1))}_showSelected(r){if(this._filteredItems.push(r),r.parent){let e=r.parent;this._filteredItems.find(n=>n===e)||this._filteredItems.push(e)}else if(r.children)for(let e of r.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,t)=>e.index-t.index)]}_hideSelected(r){this._filteredItems=this._filteredItems.filter(e=>e!==r),r.parent?r.parent.children.every(t=>t.selected)&&(this._filteredItems=this._filteredItems.filter(t=>t!==r.parent)):r.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==r))}_defaultSearchFn(r,e){return Pa(e.label).toLocaleLowerCase().indexOf(r)>-1}_getNextItemIndex(r){return r>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(r){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(r),this.markedItem.disabled&&this._stepToItem(r))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let r=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&r<0?-1:Math.max(this.markedIndex,r)}_groupBy(r,e){let t=new Map;if(r.length===0)return t;if(Array.isArray(r[0].value[e])){for(let a of r){let s=(a.value[e]||[]).map((l,p)=>this.mapItem(l,p));t.set(a,s)}return t}let n=Na(this._ngSelect.groupBy),o=a=>{let s=n?e(a.value):a.value[e];return De(s)?s:void 0};for(let a of r){let s=o(a),l=t.get(s);l?l.push(a):t.set(s,[a])}return t}_flatten(r){let e=Na(this._ngSelect.groupBy),t=[];for(let n of Array.from(r.keys())){let o=t.length;if(n===void 0){let _=r.get(void 0)||[];t.push(..._.map(D=>(D.index=o++,D)));continue}let a=io(n),s={label:a?"":String(n),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup,htmlId:Jp()},l=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,p=this._ngSelect.groupValue||(()=>a?n.value:{[l]:n}),g=r.get(n).map(_=>(_.parent=s,_.children=void 0,_.index=o++,_));s.children=g,s.value=p(n,g.map(_=>_.value)),t.push(s),t.push(...g)}return t}},ii=function(i){return i[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Esc=27]="Esc",i[i.Space=32]="Space",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowDown=40]="ArrowDown",i[i.Backspace=8]="Backspace",i}(ii||{}),ef=(()=>{class i{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,t,n){let o=this._dimensions,a=o.itemHeight*t,l=Math.max(0,e)/a*t,p=Math.min(t,Math.ceil(l)+(o.itemsPerViewport+1)),_=Math.max(0,p-o.itemsPerViewport),D=Math.min(_,Math.floor(l)),G=o.itemHeight*Math.ceil(D)-o.itemHeight*Math.min(D,n);return G=isNaN(G)?0:G,D=isNaN(D)?-1:D,p=isNaN(p)?-1:p,D-=n,D=Math.max(0,D),p+=n,p=Math.min(t,p),{topPadding:G,scrollHeight:a,start:D,end:p}}setDimensions(e,t){let n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}getScrollTo(e,t,n){let{panelHeight:o}=this.dimensions,a=e+t,s=n,l=s+o;return o>=a&&n===e?null:a>l?s+a-l:e<=s?e:null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac})}}return i})(),Qp=["top","right","bottom","left"],Qw=typeof requestAnimationFrame<"u"?Wa:$a,Xp=(()=>{class i{constructor(e,t,n,o,a){this._renderer=e,this._zone=t,this._panelService=n,this._document=a,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new T,this.scroll=new T,this.scrollToEnd=new T,this.outsideClick=new T,this._destroy$=new P,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=o.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:t}=this._panelService.dimensions,n=this.markedItem.index*e;return t>n?0:n}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,t=!1){if(!e)return;let n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let o;if(this.virtualScroll){let a=this._panelService.dimensions.itemHeight;o=this._panelService.getScrollTo(n*a,a,this._lastScrollPosition)}else{let a=this._dropdown.querySelector(`#${e.htmlId}`),s=t?a.offsetTop:this._lastScrollPosition;o=this._panelService.getScrollTo(a.offsetTop,a.clientHeight,s)}De(o)&&(this._scrollablePanel.scrollTop=o)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Qp.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Qp.forEach(n=>{let o=`ng-select-${n}`;this._renderer.removeClass(this._dropdown,o),this._renderer.removeClass(this._select,o)});let t=`ng-select-${e}`;this._renderer.addClass(this._dropdown,t),this._renderer.addClass(this._select,t)}_handleScroll(){this._zone.runOutsideAngular(()=>{Je(this.scrollElementRef.nativeElement,"scroll").pipe(oe(this._destroy$),er(0,Qw)).subscribe(e=>{let t=e.path||e.composedPath&&e.composedPath();if(!t||t.length===0&&!e.target)return;let n=!t||t.length===0?e.target.scrollTop:t[0].scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{ke(Je(this._document,"touchstart",{capture:!0}),Je(this._document,"click",{capture:!0})).pipe(oe(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let t=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,t),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let t=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(t.scrollHeight),this._contentPanel.style.transform=`translateY(${t.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(t.start,t.end)),this.scroll.emit({start:t.start,end:t.end})}),De(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let n=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${n*this.itemsLength}px`;let o=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(n,o),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let t=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=t.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop,o=t.top+window.pageYOffset,a=t.height,s=e.getBoundingClientRect().height;return o+a+s>n+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.left-t.left;this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;if(this._currentPosition==="top"){let o=t.bottom-e.bottom;this._dropdown.style.bottom=o+n+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let o=e.top-t.top;this._dropdown.style.top=o+n+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Je(this._dropdown,"mousedown").pipe(oe(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(t){return new(t||i)(c(hn),c($),c(ef),c(F),c(X,8))}}static{this.\u0275cmp=N({type:i,selectors:[["ng-dropdown-panel"]],viewQuery:function(t,n){if(t&1&&(Q(rw,7,F),Q(ow,7,F),Q(aw,7,F)),t&2){let o;k(o=M())&&(n.contentElementRef=o.first),k(o=M())&&(n.scrollElementRef=o.first),k(o=M())&&(n.paddingElementRef=o.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",v],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[ne,se,z],ngContentSelectors:Zp,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&(de(),b(0,sw,2,4,"div",3),h(1,"div",4,0),y(3,"div",null,1),h(5,"div",null,2),q(7),m()(),b(8,lw,2,4,"div",5)),t&2&&(C(n.headerTemplate?0:-1),d(3),B("total-padding",n.virtualScroll),d(2),B("scrollable-content",n.virtualScroll&&n.items.length),d(3),C(n.footerTemplate?8:-1))},dependencies:[jt],encapsulation:2,changeDetection:0})}}return i})(),Xw=(()=>{class i{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new P}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275cmp=N({type:i,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",v]},standalone:!0,features:[ne,se,z],ngContentSelectors:Zp,decls:1,vars:0,template:function(t,n){t&1&&(de(),q(0))},encapsulation:2,changeDetection:0})}}return i})();function tf(){return new Ic}var Ic=class{constructor(){this._selected=[]}get value(){return this._selected}select(r,e,t){if(r.selected=!0,(!r.children||!e&&t)&&this._selected.push(r),e)if(r.parent){let n=r.parent.children.length,o=r.parent.children.filter(a=>a.selected).length;r.parent.selected=n===o}else r.children&&(this._setChildrenSelectedState(r.children,!0),this._removeChildren(r),t&&this._activeChildren(r)?this._selected=[...this._selected.filter(n=>n.parent!==r),r]:this._selected=[...this._selected,...r.children.filter(n=>!n.disabled)])}unselect(r,e){if(this._selected=this._selected.filter(t=>t!==r),r.selected=!1,e)if(r.parent&&r.parent.selected){let t=r.parent.children;this._removeParent(r.parent),this._removeChildren(r.parent),this._selected.push(...t.filter(n=>n!==r&&!n.disabled)),r.parent.selected=!1}else r.children&&(this._setChildrenSelectedState(r.children,!1),this._removeChildren(r))}clear(r){this._selected=r?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(r,e){for(let t of r)t.disabled||(t.selected=e)}_removeChildren(r){this._selected=[...this._selected.filter(e=>e.parent!==r),...r.children.filter(e=>e.parent===r&&e.disabled&&e.selected)]}_removeParent(r){this._selected=this._selected.filter(e=>e!==r)}_activeChildren(r){return r.children.every(e=>!e.disabled||e.selected)}},Zw=(()=>{class i{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Kw=(()=>{class i{warn(e){console.warn(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),nf=new O("ng-select-selection-model"),rf=(()=>{class i{constructor(e,t,n,o,a,s,l){this.classes=e,this.autoFocus=t,this.config=n,this._cd=s,this._console=l,this.markFirst=!0,this.fixedPlaceholder=!0,this.preventToggleOnRightClick=!1,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new T,this.focusEvent=new T,this.changeEvent=new T,this.openEvent=new T,this.closeEvent=new T,this.searchEvent=new T,this.clearEvent=new T,this.addEvent=new T,this.removeEvent=new T,this.scroll=new T,this.scrollToEnd=new T,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Jp(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new P,this._keyPress$=new P,this._items=[],this.keyDownFn=p=>!0,this.clearItem=p=>{let g=this.selectedItems.find(_=>_.value===p);this.unselect(g)},this.trackByOption=(p,g)=>this.trackByFn?this.trackByFn(g.value):g,this._onChange=p=>{},this._onTouched=()=>{},this._mergeGlobalConfig(n),this.itemsList=new Ec(this,o?o():tf()),this.element=a.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!Na(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return De(this._clearSearchOnAdd)?this._clearSearchOnAdd:De(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return De(this._deselectOnClick)?this._deselectOnClick:De(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(t=>t.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(t=>t.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=De(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),De(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(ii[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let t=e.target;this.clearButton&&this.clearButton.nativeElement===t?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case ii.ArrowDown:this._handleArrowDown(e);break;case ii.ArrowUp:this._handleArrowUp(e);break;case ii.Space:this._handleSpace(e);break;case ii.Enter:this._handleEnter(e);break;case ii.Tab:this._handleTab(e);break;case ii.Esc:this.close(),e.preventDefault();break;case ii.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case ii.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let t=e.target;if(t.tagName!=="INPUT"&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(t.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}t.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;Na(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let t=n=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(n,null):this.itemsList.addItem(n);Ww(e)?e.then(n=>this.select(t(n))).catch(()=>{}):e&&this.select(t(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(t=>t.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=De(t)?!io(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&De(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=n=>{this.items=n.map(o=>({$ngOptionValue:o.value,$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},t=()=>{let n=ke(this.ngOptions.changes,this._destroy$);ke(...this.ngOptions.map(o=>o.stateChange$)).pipe(oe(n)).subscribe(o=>{let a=this.itemsList.findItem(o.value);a.disabled=o.disabled,a.label=o.label||a.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Ge(this.ngOptions),oe(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),t()})}_isValidWriteValue(e){if(!De(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let t=n=>!De(this.compareWith)&&io(n)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(n)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(n=>t(n)):(this._console.warn("Multiple select ngModel should be array."),!1):t(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let t=n=>{let o=this.itemsList.findItem(n);if(o)this.itemsList.select(o);else{let a=io(n),s=!a&&!this.bindValue;a||s?this.itemsList.select(this.itemsList.mapItem(n,null)):this.bindValue&&(o={[this.bindLabel]:null,[this.bindValue]:n},this.itemsList.select(this.itemsList.mapItem(o,null)))}};this.multiple?e.forEach(n=>t(n)):t(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(oe(this._destroy$),Ce(e=>this._pressedKeys.push(e)),St(200),ve(()=>this._pressedKeys.length>0),te(()=>this._pressedKeys.join(""))).subscribe(e=>{let t=this.itemsList.findByLabel(e);t&&(this.isOpen?(this.itemsList.markItem(t),this._scrollToMarked(),this._cd.markForCheck()):this.select(t)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,t=A({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let n of Object.keys(t))e.setAttribute(n,t[n])}_updateNgModel(){let e=[];for(let n of this.selectedItems)if(this.bindValue){let o=null;if(n.children){let a=this.groupValue?this.bindValue:this.groupBy;o=n.value[a||this.groupBy]}else o=this.itemsList.resolveNested(n.value,this.bindValue);e.push(o)}else e.push(n.value);let t=this.selectedItems.map(n=>n.value);this.multiple?(this._onChange(e),this.changeEvent.emit(t)):(this._onChange(De(e[0])?e[0]:null),this.changeEvent.emit(t[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey)this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=De(this.virtualScroll)?this.virtualScroll:De(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=De(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}static{this.\u0275fac=function(t){return new(t||i)($e("class"),$e("autofocus"),c(Zw),c(nf,8),c(F),c(Z),c(Kw))}}static{this.\u0275cmp=N({type:i,selectors:[["ng-select"]],contentQueries:function(t,n,o){if(t&1&&(Y(o,Sc,5,U),Y(o,kc,5,U),Y(o,Mc,5,U),Y(o,Dc,5,U),Y(o,Ac,5,U),Y(o,Rc,5,U),Y(o,Oc,5,U),Y(o,Fc,5,U),Y(o,Pc,5,U),Y(o,Nc,5,U),Y(o,Lc,5,U),Y(o,Vc,5,U),Y(o,Xw,5)),t&2){let a;k(a=M())&&(n.optionTemplate=a.first),k(a=M())&&(n.optgroupTemplate=a.first),k(a=M())&&(n.labelTemplate=a.first),k(a=M())&&(n.multiLabelTemplate=a.first),k(a=M())&&(n.headerTemplate=a.first),k(a=M())&&(n.footerTemplate=a.first),k(a=M())&&(n.notFoundTemplate=a.first),k(a=M())&&(n.placeholderTemplate=a.first),k(a=M())&&(n.typeToSearchTemplate=a.first),k(a=M())&&(n.loadingTextTemplate=a.first),k(a=M())&&(n.tagTemplate=a.first),k(a=M())&&(n.loadingSpinnerTemplate=a.first),k(a=M())&&(n.ngOptions=a)}},viewQuery:function(t,n){if(t&1&&(Q(Xp,5),Q(cw,7),Q(dw,5)),t&2){let o;k(o=M())&&(n.dropdownPanel=o.first),k(o=M())&&(n.searchInput=o.first),k(o=M())&&(n.clearButton=o.first)}},hostVars:20,hostBindings:function(t,n){t&1&&S("keydown",function(a){return n.handleKeyDown(a)}),t&2&&B("ng-select-typeahead",n.typeahead)("ng-select-multiple",n.multiple)("ng-select-taggable",n.addTag)("ng-select-searchable",n.searchable)("ng-select-clearable",n.clearable)("ng-select-opened",n.isOpen)("ng-select",n.useDefaultClass)("ng-select-filtered",n.filtered)("ng-select-single",n.single)("ng-select-disabled",n.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",v],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",v],closeOnSelect:[2,"closeOnSelect","closeOnSelect",v],hideSelected:[2,"hideSelected","hideSelected",v],selectOnTab:[2,"selectOnTab","selectOnTab",v],openOnEnter:[2,"openOnEnter","openOnEnter",v],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Te],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Te],virtualScroll:[2,"virtualScroll","virtualScroll",v],selectableGroup:[2,"selectableGroup","selectableGroup",v],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",v],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",v],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Te],readonly:[2,"readonly","readonly",v],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",v],minTermLength:[2,"minTermLength","minTermLength",Te],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",v],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",v],addTag:"addTag",searchable:[2,"searchable","searchable",v],clearable:[2,"clearable","clearable",v],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0},ef]),ne,se,z],decls:13,vars:19,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(t,n){if(t&1){let o=J();h(0,"div",10),S("mousedown",function(s){return x(o),w(n.handleMousedown(s))}),h(1,"div",11),b(2,gw,3,1)(3,yw,2,0)(4,ww,1,5,null,12),h(5,"div",13)(6,"input",14,0),S("blur",function(s){return x(o),w(n.onInputBlur(s))})("change",function(s){return x(o),w(s.stopPropagation())})("compositionend",function(){x(o);let s=be(7);return w(n.onCompositionEnd(s.value))})("compositionstart",function(){return x(o),w(n.onCompositionStart())})("focus",function(s){return x(o),w(n.onInputFocus(s))})("input",function(){x(o);let s=be(7);return w(n.filter(s.value))}),m()()(),b(8,Ew,3,1)(9,Iw,4,1,"span",15),h(10,"span",16),y(11,"span",17),m()(),b(12,Uw,8,17,"ng-dropdown-panel",18)}t&2&&(B("ng-appearance-outline",n.appearance==="outline")("ng-has-value",n.hasValue),d(2),C(n.selectedItems.length===0&&!n.searchTerm||n.fixedPlaceholder===!0?2:-1),d(),C((!n.multiLabelTemplate||!n.multiple)&&n.selectedItems.length>0?3:-1),d(),C(n.multiple&&n.multiLabelTemplate&&n.selectedValues.length>0?4:-1),d(2),f("disabled",n.disabled)("readOnly",!n.searchable||n.itemsList.maxItemsSelected)("value",n.searchTerm?n.searchTerm:""),K("aria-activedescendant",n.isOpen?n.itemsList==null||n.itemsList.markedItem==null?null:n.itemsList.markedItem.htmlId:null)("aria-controls",n.isOpen?n.dropdownId:null)("aria-expanded",n.isOpen)("aria-label",n.ariaLabel)("id",n.labelForId)("tabindex",n.tabIndex),d(2),C(n.loading?8:-1),d(),C(n.showClear()?9:-1),d(3),C(n.isOpen?12:-1))},dependencies:[jt,qw,Xp,fn],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0} +`],encapsulation:2,changeDetection:0})}}return i})(),jc=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[{provide:nf,useValue:tf}]})}}return i})();var eC=["*"],tC=["ngSelect"],iC=()=>({standalone:!0}),af=(i,r,e,t)=>({item:i,item$:r,index:e,searchTerm:t}),nC=(i,r,e)=>({item:i,clear:r,label:e}),rC=(i,r)=>({items:i,clear:r}),Bc=i=>({searchTerm:i});function oC(i,r){}function aC(i,r){if(i&1&&b(0,oC,0,0,"ng-template",14),i&2){let e=r.item,t=r.item$,n=r.index,o=r.searchTerm,a=u(2);f("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",cr(2,af,e,t,n,o))}}function sC(i,r){i&1&&b(0,aC,1,7,"ng-template",2)}function lC(i,r){}function cC(i,r){if(i&1&&b(0,lC,0,0,"ng-template",14),i&2){let e=r.item,t=r.item$,n=r.index,o=r.searchTerm,a=u(2);f("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",cr(2,af,e,t,n,o))}}function dC(i,r){i&1&&b(0,cC,1,7,"ng-template",3)}function uC(i,r){}function hC(i,r){if(i&1&&b(0,uC,0,0,"ng-template",14),i&2){let e=r.item,t=r.clear,n=r.label,o=u(2);f("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Lt(2,nC,e,t,n))}}function mC(i,r){i&1&&b(0,hC,1,6,"ng-template",4)}function pC(i,r){}function fC(i,r){if(i&1&&b(0,pC,0,0,"ng-template",14),i&2){let e=r.items,t=r.clear,n=u(2);f("ngTemplateOutlet",n.multiLabelTemplate)("ngTemplateOutletContext",Me(2,rC,e,t))}}function gC(i,r){i&1&&b(0,fC,1,5,"ng-template",5)}function _C(i,r){}function bC(i,r){if(i&1&&b(0,_C,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.headerTemplate)}}function vC(i,r){i&1&&b(0,bC,1,1,"ng-template",6)}function yC(i,r){}function xC(i,r){if(i&1&&b(0,yC,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.footerTemplate)}}function wC(i,r){i&1&&b(0,xC,1,1,"ng-template",7)}function CC(i,r){}function TC(i,r){if(i&1&&b(0,CC,0,0,"ng-template",14),i&2){let e=r.searchTerm,t=u(2);f("ngTemplateOutlet",t.notFoundTemplate)("ngTemplateOutletContext",Xe(2,Bc,e))}}function EC(i,r){i&1&&b(0,TC,1,4,"ng-template",8)}function IC(i,r){}function SC(i,r){if(i&1&&b(0,IC,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.typeToSearchTemplate)}}function kC(i,r){i&1&&b(0,SC,1,1,"ng-template",9)}function MC(i,r){}function DC(i,r){if(i&1&&b(0,MC,0,0,"ng-template",14),i&2){let e=r.searchTerm,t=u(2);f("ngTemplateOutlet",t.loadingTextTemplate)("ngTemplateOutletContext",Xe(2,Bc,e))}}function AC(i,r){i&1&&b(0,DC,1,4,"ng-template",10)}function RC(i,r){}function OC(i,r){if(i&1&&b(0,RC,0,0,"ng-template",14),i&2){let e=r.searchTerm,t=u(2);f("ngTemplateOutlet",t.tagTemplate)("ngTemplateOutletContext",Xe(2,Bc,e))}}function FC(i,r){i&1&&b(0,OC,1,4,"ng-template",11)}function PC(i,r){}function NC(i,r){if(i&1&&b(0,PC,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function LC(i,r){i&1&&b(0,NC,1,1,"ng-template",12)}function VC(i,r){}function jC(i,r){if(i&1&&b(0,VC,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.placeholderTemplate)}}function BC(i,r){i&1&&b(0,jC,1,1,"ng-template",13)}var zC=(()=>{class i{get label(){return(this.elementRef.nativeElement.textContent||"").trim()}constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new P}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275cmp=N({type:i,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",v]},exportAs:["mtxOption"],standalone:!0,features:[ne,se,z],ngContentSelectors:eC,decls:1,vars:0,template:function(t,n){t&1&&(de(),q(0))},encapsulation:2,changeDetection:0})}}return i})(),zc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return i})(),UC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return i})(),Uc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return i})(),HC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return i})(),GC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return i})(),$C=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return i})(),WC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return i})(),qC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return i})(),YC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return i})(),QC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return i})(),XC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return i})(),ZC=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(U))}}static{this.\u0275dir=I({type:i,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return i})(),KC=new O("mtx-select-default-options"),of=0,La=(()=>{class i{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Zt.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,n,o,a,s,l,p,g){this._changeDetectorRef=e,this._elementRef=t,this._focusMonitor=n,this.ngControl=l,this._parentFormField=p,this._defaultOptions=g,this.addTag=!1,this.addTagText=this._defaultOptions?.addTagText??"Add item",this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearAllText=this._defaultOptions?.clearAllText??"Clear all",this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=_=>!0,this.virtualScroll=!1,this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.blurEvent=new T,this.focusEvent=new T,this.changeEvent=new T,this.openEvent=new T,this.closeEvent=new T,this.searchEvent=new T,this.clearEvent=new T,this.addEvent=new T,this.removeEvent=new T,this.scroll=new T,this.scrollToEnd=new T,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new P,this._value=null,this.stateChanges=new P,this._uid=`mtx-select-${of++}`,this._placeholder=this._defaultOptions?.placeholder,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${of++}`,n.monitor(this._elementRef,!0).subscribe(_=>{this._focused&&!_&&this._onTouched(),this._focused=!!_,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Mi(o,l,s,a,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){let e=this.ngControl;this.ngControl&&(this._previousControl!==e.control&&(this._previousControl!==void 0&&e.disabled!==null&&e.disabled!==this.disabled&&(this.disabled=e.disabled),this._previousControl=e.control),this.updateErrorState())}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef)}_getAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}setDescribedByIds(e){this._ariaDescribedby=e.length?e.join(" "):null}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(e){let t=e.target;/mat-mdc-form-field|mtx-select/g.test(t.parentElement?.classList[0]||"")&&(this.focus(),this.open())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(e){return e!==this._value||this.multiple&&Array.isArray(e)?(this._value=e,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let e=n=>{this.items=n.map(o=>({$ngOptionValue:o.value,$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},t=()=>{let n=ke(this.mtxOptions.changes,this._destroy$);ke(...this.mtxOptions.map(o=>o.stateChange$)).pipe(oe(n)).subscribe(o=>{let a=this.ngSelect.itemsList.findItem(o.value);a.disabled=o.disabled,a.label=o.label||a.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(Ge(this.mtxOptions),oe(this._destroy$)).subscribe(n=>{e(n),t()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}static{this.\u0275fac=function(t){return new(t||i)(c(Z),c(F),c(Ct),c(Nn),c(Gi,8),c(Jt,8),c(xt,10),c(Ji,8),c(KC,8))}}static{this.\u0275cmp=N({type:i,selectors:[["mtx-select"]],contentQueries:function(t,n,o){if(t&1&&(Y(o,zc,5,U),Y(o,UC,5,U),Y(o,Uc,5,U),Y(o,HC,5,U),Y(o,GC,5,U),Y(o,$C,5,U),Y(o,WC,5,U),Y(o,qC,5,U),Y(o,YC,5,U),Y(o,QC,5,U),Y(o,XC,5,U),Y(o,ZC,5,U),Y(o,zC,5)),t&2){let a;k(a=M())&&(n.optionTemplate=a.first),k(a=M())&&(n.optgroupTemplate=a.first),k(a=M())&&(n.labelTemplate=a.first),k(a=M())&&(n.multiLabelTemplate=a.first),k(a=M())&&(n.headerTemplate=a.first),k(a=M())&&(n.footerTemplate=a.first),k(a=M())&&(n.notFoundTemplate=a.first),k(a=M())&&(n.typeToSearchTemplate=a.first),k(a=M())&&(n.loadingTextTemplate=a.first),k(a=M())&&(n.tagTemplate=a.first),k(a=M())&&(n.loadingSpinnerTemplate=a.first),k(a=M())&&(n.placeholderTemplate=a.first),k(a=M())&&(n.mtxOptions=a)}},viewQuery:function(t,n){if(t&1&&Q(tC,7),t&2){let o;k(o=M())&&(n.ngSelect=o.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(t,n){t&2&&(K("id",n.id)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-labelledby",n._getAriaLabelledby())("aria-describedby",n._ariaDescribedby||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState),B("mtx-select-floating",n.shouldLabelFloat)("mtx-select-disabled",n.disabled)("mtx-select-invalid",n.errorState)("mtx-select-required",n.required)("mtx-select-empty",n.empty)("mtx-select-multiple",n.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",v],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",v],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",v],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",v],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",v],hideSelected:[2,"hideSelected","hideSelected",v],loading:[2,"loading","loading",v],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",v],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",v],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",v],readonly:[2,"readonly","readonly",v],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",v],selectOnTab:[2,"selectOnTab","selectOnTab",v],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",v],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",v],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",v],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",v],required:[2,"required","required",v],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],standalone:!0,features:[W([{provide:Ki,useExisting:i}]),ne,z],decls:14,vars:60,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1){let o=J();h(0,"ng-select",1,0),ze("ngModelChange",function(s){return x(o),Be(n.value,s)||(n.value=s),w(s)}),S("blur",function(s){return x(o),w(n.blurEvent.emit(s))})("focus",function(s){return x(o),w(n.focusEvent.emit(s))})("change",function(s){return x(o),w(n.changeEvent.emit(s))})("open",function(){return x(o),w(n.openChange())})("close",function(){return x(o),w(n.closeEvent.emit())})("search",function(s){return x(o),w(n.searchEvent.emit(s))})("clear",function(s){return x(o),w(n.clearEvent.emit(s))})("add",function(s){return x(o),w(n.addEvent.emit(s))})("remove",function(s){return x(o),w(n.removeEvent.emit(s))})("scroll",function(s){return x(o),w(n.scroll.emit(s))})("scrollToEnd",function(){return x(o),w(n.scrollToEnd.emit())}),b(2,sC,1,0,null,2)(3,dC,1,0,null,3)(4,mC,1,0,null,4)(5,gC,1,0,null,5)(6,vC,1,0,null,6)(7,wC,1,0,null,7)(8,EC,1,0,null,8)(9,kC,1,0,null,9)(10,AC,1,0,null,10)(11,FC,1,0,null,11)(12,LC,1,0,null,12)(13,BC,1,0,null,13),m()}t&2&&(B("ng-select-invalid",n.errorState),je("ngModel",n.value),f("ngModelOptions",po(59,iC))("placeholder",n.placeholder)("items",n.items)("addTag",n.addTag)("addTagText",n.addTagText)("appendTo",n.appendTo)("appearance",n.appearance)("bindLabel",n.bindLabel)("bindValue",n.bindValue)("closeOnSelect",n.closeOnSelect)("clearAllText",n.clearAllText)("clearable",n.clearable)("clearOnBackspace",n.clearOnBackspace)("dropdownPosition",n.dropdownPosition)("groupBy",n.groupBy)("groupValue",n.groupValue)("bufferAmount",n.bufferAmount)("hideSelected",n.hideSelected)("isOpen",n.isOpen)("inputAttrs",n.inputAttrs)("loading",n.loading)("loadingText",n.loadingText)("labelForId",n.labelForId)("markFirst",n.markFirst)("maxSelectedItems",n.maxSelectedItems)("multiple",n.multiple)("notFoundText",n.notFoundText)("readonly",n.readonly||n.disabled)("typeahead",n.typeahead)("typeToSearchText",n.typeToSearchText)("trackByFn",n.trackByFn)("searchable",n.searchable)("searchFn",n.searchFn)("searchWhileComposing",n.searchWhileComposing)("clearSearchOnAdd",n.clearSearchOnAdd)("selectableGroup",n.selectableGroup)("selectableGroupAsModel",n.selectableGroupAsModel)("selectOnTab",n.selectOnTab)("tabIndex",n.tabIndex)("openOnEnter",n.openOnEnter)("minTermLength",n.minTermLength)("editableSearchTerm",n.editableSearchTerm)("keyDownFn",n.keyDownFn)("virtualScroll",n.virtualScroll),d(2),C(n.optionTemplate?2:-1),d(),C(n.optgroupTemplate?3:-1),d(),C(n.labelTemplate?4:-1),d(),C(n.multiLabelTemplate?5:-1),d(),C(n.headerTemplate?6:-1),d(),C(n.footerTemplate?7:-1),d(),C(n.notFoundTemplate?8:-1),d(),C(n.typeToSearchTemplate?9:-1),d(),C(n.loadingTextTemplate?10:-1),d(),C(n.tagTemplate?11:-1),d(),C(n.loadingSpinnerTemplate?12:-1),d(),C(n.placeholderTemplate?13:-1))},dependencies:[jc,rf,kc,Sc,Mc,Dc,Ac,Rc,Fc,Oc,Pc,Nc,Lc,Vc,at,dt,ut,jt],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top) 16px var(--mat-form-field-filled-with-label-container-padding-bottom);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding);margin-top:calc(var(--mat-form-field-container-vertical-padding) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-app-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-input>input{padding:0;color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{width:24px;text-align:center}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color)}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-app-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-app-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color)}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin:2px 4px 2px 0;border-radius:16px;font-size:.875em;line-height:18px;background-color:var(--mtx-select-multiple-value-background-color);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-app-outline))}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:auto;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 8px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;width:18px;height:18px;border-radius:100%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{margin-right:-4px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{margin-left:-4px;margin-right:auto}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{margin-left:-4px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{margin-right:-4px;margin-left:auto}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-app-outline-variant))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-app-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-app-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-app-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-app-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-app-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow)}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-app-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow)}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-app-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-app-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-app-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-app-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-app-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-app-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-app-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-app-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color)}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} +`],encapsulation:2,changeDetection:0})}}return i})(),sf=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Oe,at,Gr,jc,La]})}}return i})();function JC(i,r){if(i&1&&(h(0,"span"),ee(1),m()),i&2){let e=u();d(),ue(e.title)}}function e1(i,r){if(i&1&&(h(0,"span",1),ee(1),m()),i&2){let e=u();B("gui-field-label-with-description",e.config.description),f("matTooltip",e.config.description),d(),ue(e.title)}}function t1(i,r){if(i&1&&y(0,"img",0),i&2){let e=u();f("src",e.src,Vi)}}function i1(i,r){if(i&1&&y(0,"i"),i&2){let e=u();Ne(e.src)}}function n1(i,r){if(i&1&&y(0,"gui-icon",3),i&2){let e=u().$implicit;f("src",e.src)}}function r1(i,r){if(i&1&&ee(0),i&2){let e=u().$implicit;xi(" ",e.label," ")}}function o1(i,r){if(i&1&&(h(0,"mat-button-toggle",2),b(1,n1,1,1,"gui-icon",3)(2,r1,1,1),m()),i&2){let e=r.$implicit,t=u();B("gui-icon-toggle",t.config.useIcon),f("flex",e.col)("value",e.value)("disabled",e.disabled)("title",t.config.useIcon?e.label:""),d(),C(t.config.useIcon?1:2)}}function a1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",4),m()),i&2){let e=u();d(),f("config",e.config)}}var Hc=["*"];function s1(i,r){if(i&1&&y(0,"gui-field-label",0),i&2){let e=u();f("config",e.config)("index",e.config.index)}}var l1=["fileInput"];function c1(i,r){if(i&1){let e=J();h(0,"gui-icon-button-wrapper",4)(1,"button",8),S("click",function(){x(e);let n=u();return w(n.onClear())}),y(2,"mat-icon",9),m()()}if(i&2){let e=u();d(),f("disabled",e.disabled)}}function d1(i,r){if(i&1&&y(0,"img",10),i&2){let e=u(2);f("src",e.url,Vi)}}function u1(i,r){if(i&1&&y(0,"video",10),i&2){let e=u(2);f("src",e.url,Vi)}}function h1(i,r){if(i&1&&y(0,"audio",11),i&2){let e=u(2);f("src",e.url,Vi)}}function m1(i,r){i&1&&y(0,"mat-icon",12)}function p1(i,r){if(i&1&&b(0,d1,1,1,"img",10)(1,u1,1,1,"video",10)(2,h1,1,1,"audio",11)(3,m1,1,0,"mat-icon",12),i&2){let e,t=u();C((e=t.type)==="image"?0:e==="video"?1:e==="audio"?2:3)}}function f1(i,r){i&1&&(h(0,"div",6),y(1,"mat-icon",13),m())}function g1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",14),m()),i&2){let e=u();d(),f("config",e.config)}}function _1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",7),m()),i&2){let e=u();d(),f("config",e.config)}}var b1=()=>[];function v1(i,r){if(i&1&&(h(0,"span",0),ee(1),m()),i&2){let e=u();d(),ue(e.config.prefix)}}function y1(i,r){if(i&1&&(y(0,"img",5),h(1,"span"),ee(2),m()),i&2){let e=r.item;f("src",e.src,Vi)("alt",e.label),d(2),ue(e.label)}}function x1(i,r){if(i&1&&(y(0,"img",5),h(1,"span"),ee(2),m()),i&2){let e=r.item;f("src",e.src,Vi)("alt",e.label),d(2),ue(e.label)}}function w1(i,r){if(i&1&&(h(0,"span",4),ee(1),m()),i&2){let e=u();d(),ue(e.config.suffix)}}function C1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",6),m()),i&2){let e=u();d(),f("config",e.config)}}function T1(i,r){if(i&1&&y(0,"gui-field-label",0),i&2){let e=u();f("config",e.config)}}function E1(i,r){if(i&1&&(h(0,"span",0),ee(1),m()),i&2){let e=u();d(),ue(e.config.prefix)}}function I1(i,r){if(i&1&&(h(0,"span",2),ee(1),m()),i&2){let e=u();d(),ue(e.config.suffix)}}function S1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",3),m()),i&2){let e=u();d(),f("config",e.config)}}function k1(i,r){if(i&1&&(h(0,"span",0),ee(1),m()),i&2){let e=u();d(),ue(e.config.prefix)}}function M1(i,r){if(i&1&&(h(0,"span",2),ee(1),m()),i&2){let e=u();d(),ue(e.config.suffix)}}function D1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",3),m()),i&2){let e=u();d(),f("config",e.config)}}function A1(i,r){if(i&1&&(h(0,"span",0),ee(1),m()),i&2){let e=u();d(),ue(e.config.prefix)}}function R1(i,r){if(i&1&&(h(0,"mat-option",2)(1,"span"),ee(2),m()()),i&2){let e=r.$implicit,t=u();f("value",e.value)("disabled",e.disabled),d(),Ae("font-family",t.config.useFont?e.value:""),d(),ue(e.label)}}function O1(i,r){if(i&1&&(h(0,"span",3),ee(1),m()),i&2){let e=u();d(),ue(e.config.suffix)}}function F1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",4),m()),i&2){let e=u();d(),f("config",e.config)}}function P1(i,r){if(i&1&&(h(0,"span",2),ee(1),m()),i&2){let e=u(2);d(),ue(e.config.prefix)}}function N1(i,r){if(i&1&&(h(0,"span",4),ee(1),m()),i&2){let e=u(2);d(),ue(e.config.suffix)}}function L1(i,r){if(i&1){let e=J();h(0,"mat-slider",0)(1,"input",1),ze("ngModelChange",function(n){x(e);let o=u();return Be(o.value,n)||(o.value=n),w(n)}),S("valueChange",function(){x(e);let n=u();return w(n.onValueChange())}),m()(),h(2,"mat-form-field"),b(3,P1,2,1,"span",2),h(4,"input",3),ze("ngModelChange",function(n){x(e);let o=u();return Be(o.value,n)||(o.value=n),w(n)}),S("change",function(){x(e);let n=u();return w(n.onValueChange())}),m(),b(5,N1,2,1,"span",4),m()}if(i&2){let e=u();f("disabled",e.disabled)("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),je("ngModel",e.value),d(2),C(e.config.prefix?3:-1),d(),je("ngModel",e.value),f("disabled",e.disabled)("placeholder",e.config.placeholder||"")("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),C(e.config.suffix?5:-1)}}function V1(i,r){if(i&1&&(h(0,"span",2),ee(1),m()),i&2){let e=u(2);d(),ue(e.config.prefix)}}function j1(i,r){if(i&1&&(h(0,"span",4),ee(1),m()),i&2){let e=u(2);d(),ue(e.config.suffix)}}function B1(i,r){if(i&1&&(h(0,"span",2),ee(1),m()),i&2){let e=u(2);d(),ue(e.config.prefix)}}function z1(i,r){if(i&1&&(h(0,"span",4),ee(1),m()),i&2){let e=u(2);d(),ue(e.config.suffix)}}function U1(i,r){if(i&1){let e=J();h(0,"mat-slider",0)(1,"input",5),ze("ngModelChange",function(n){x(e);let o=u();return Be(o.minValue,n)||(o.minValue=n),w(n)}),S("valueChange",function(){x(e);let n=u();return w(n.onRangeInputChange())}),m(),h(2,"input",6),ze("ngModelChange",function(n){x(e);let o=u();return Be(o.maxValue,n)||(o.maxValue=n),w(n)}),S("valueChange",function(){x(e);let n=u();return w(n.onRangeInputChange())}),m()(),h(3,"mat-form-field"),b(4,V1,2,1,"span",2),h(5,"input",3),ze("ngModelChange",function(n){x(e);let o=u();return Be(o.minValue,n)||(o.minValue=n),w(n)}),S("change",function(){x(e);let n=u();return w(n.onRangeInputChange())}),m(),b(6,j1,2,1,"span",4),m(),h(7,"mat-form-field"),b(8,B1,2,1,"span",2),h(9,"input",3),ze("ngModelChange",function(n){x(e);let o=u();return Be(o.maxValue,n)||(o.maxValue=n),w(n)}),S("change",function(){x(e);let n=u();return w(n.onRangeInputChange())}),m(),b(10,z1,2,1,"span",4),m()}if(i&2){let e=u();f("disabled",e.disabled)("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),je("ngModel",e.minValue),d(),je("ngModel",e.maxValue),d(2),C(e.config.prefix?4:-1),d(),je("ngModel",e.minValue),f("disabled",e.disabled)("placeholder",e.config.placeholder||"")("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),C(e.config.suffix?6:-1),d(2),C(e.config.prefix?8:-1),d(),je("ngModel",e.maxValue),f("disabled",e.disabled)("placeholder",e.config.placeholder||"")("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),C(e.config.suffix?10:-1)}}function H1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",7),m()),i&2){let e=u();d(),f("config",e.config)}}function G1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",1),m()),i&2){let e=u();d(),f("config",e.config)}}function $1(i,r){if(i&1&&(h(0,"span",0),ee(1),m()),i&2){let e=u();d(),ue(e.config.prefix)}}function W1(i,r){if(i&1&&(h(0,"span",2),ee(1),m()),i&2){let e=u();d(),ue(e.config.suffix)}}function q1(i,r){if(i&1&&(h(0,"mat-hint"),y(1,"gui-field-label",3),m()),i&2){let e=u();d(),f("config",e.config)}}var Gc=(i,r)=>({$implicit:i,formGroup:r}),Yn=(i,r,e)=>({$implicit:i,parent:r,formGroup:e}),cf=i=>({i}),df=i=>[i],$c=(i,r)=>[i,r];function Y1(i,r){}function Q1(i,r){if(i&1&&(h(0,"div"),b(1,Y1,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(),n=be(4);d(),f("ngTemplateOutlet",n)("ngTemplateOutletContext",Me(2,Gc,e,t.form))}}function X1(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-input-text",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function Z1(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-input-number",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function K1(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-select",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function J1(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-switch",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function eT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-slider",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function tT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-button-toggle",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function iT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-fill",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function nT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-file-uploader",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function rT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-file-uploader",10),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function oT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-file-uploader",11),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function aT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-file-uploader",12),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function sT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-image-select",13),m()),i&2){let e=u(2).$implicit,t=u();f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)("appendTo","#"+t.uid)}}function lT(i,r){if(i&1&&(h(0,"gui-field-group",3),y(1,"gui-textarea",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function cT(i,r){if(i&1&&y(0,"input",4),i&2){let e=u(2).$implicit;f("formControlName",e.key)}}function dT(i,r){}function uT(i,r){if(i&1&&b(0,dT,0,0,"ng-template",2),i&2){let e=r.$implicit,t=u(3),n=t.$implicit,o=t.formGroup;u();let a=be(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",Lt(2,Yn,e,n,o.get(n.key)))}}function hT(i,r){if(i&1&&(h(0,"gui-inline-group",5),Le(1,uT,1,6,null,2,nt),m()),i&2){let e=u(2).$implicit;f("config",e)("formGroupName",e.key),d(),Ve(e.children)}}function mT(i,r){}function pT(i,r){if(i&1&&(h(0,"div"),b(1,mT,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(4),n=t.$implicit,o=t.formGroup;u();let a=be(4);d(),f("ngTemplateOutlet",a)("ngTemplateOutletContext",Lt(2,Yn,e,n,o.get(n.key)))}}function fT(i,r){if(i&1&&Le(0,pT,2,6,"div",null,nt),i&2){let e=u(3).$implicit;Ve(e.children)}}function gT(i,r){if(i&1){let e=J();h(0,"mat-expansion-panel",14),ze("expandedChange",function(n){x(e);let o=u(2).$implicit;return Be(o.expanded,n)||(o.expanded=n),w(n)}),h(1,"mat-expansion-panel-header"),y(2,"gui-field-label",15),m(),b(3,fT,2,0,"ng-template",16),m()}if(i&2){let e=u(2).$implicit;f("formGroupName",e.key),je("expanded",e.expanded),f("disabled",e.disabled),d(2),f("config",e)}}function _T(i,r){if(i&1){let e=J();h(0,"button",21),S("click",function(n){x(e);let o=u(4),a=o.$implicit,s=o.formGroup,l=u();return w(l.addTab(n,s.get(a.key),a,!0))}),y(1,"mat-icon",22),m(),h(2,"button",21),S("click",function(n){x(e);let o=u(4),a=o.$implicit,s=o.formGroup,l=u();return w(l.addTab(n,s.get(a.key),a))}),y(3,"mat-icon",23),m(),h(4,"button",21),S("click",function(n){x(e);let o=u(4),a=o.$implicit,s=o.formGroup,l=u();return w(l.removeTab(n,s.get(a.key),a))}),y(5,"mat-icon",24),m()}if(i&2){let e=u(4).$implicit;f("disabled",e.disabled),d(2),f("disabled",e.disabled),d(2),f("disabled",e.disabled)}}function bT(i,r){if(i&1){let e=J();h(0,"gui-icon-button-wrapper")(1,"button",18),S("click",function(n){x(e);let o=u(3).$implicit,a=u();return w(a.changeTabsMode(n,o,"normal"))}),y(2,"mat-icon",19),m(),h(3,"button",18),S("click",function(n){x(e);let o=u(3).$implicit,a=u();return w(a.changeTabsMode(n,o,"list"))}),y(4,"mat-icon",20),m(),b(5,_T,6,3),m()}if(i&2){let e=u(3).$implicit;d(),f("color",e.mode!=="list"?"primary":""),d(2),f("color",e.mode==="list"?"primary":""),d(2),C(e.template&&(e.addable||e.addable===void 0)?5:-1)}}function vT(i,r){if(i&1&&(h(0,"div"),ee(1),es(2,"ejs"),m()),i&2){let e=u(),t=e.$implicit,n=e.$index;d(),ue(ts(2,1,t.name,Xe(4,cf,n)))}}function yT(i,r){}function xT(i,r){if(i&1&&b(0,yT,0,0,"ng-template",2),i&2){let e=u().$implicit,t=u(5),n=t.$implicit,o=t.formGroup;u();let a=be(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",Lt(4,Yn,e,n,o.get(Xe(2,df,n.key))))}}function wT(i,r){}function CT(i,r){if(i&1&&(h(0,"div"),b(1,wT,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(2).$index,n=u(5),o=n.$implicit,a=n.formGroup;u();let s=be(4);d(),f("ngTemplateOutlet",s)("ngTemplateOutletContext",Lt(5,Yn,e,o,a.get(Me(2,$c,o.key,t))))}}function TT(i,r){if(i&1&&Le(0,CT,2,9,"div",null,nt),i&2){let e=u().$implicit;Ve(e.children)}}function ET(i,r){if(i&1&&(h(0,"mat-tab",28),b(1,vT,3,6,"ng-template",29)(2,xT,1,8,null,2)(3,TT,2,0),m()),i&2){let e=r.$implicit;f("disabled",e.disabled),d(2),C(!e.children||e.children.length===0||e.type==="tabs"?2:-1),d(),C((e.children==null?null:e.children.length)>0&&e.type!=="tabs"?3:-1)}}function IT(i,r){if(i&1){let e=J();h(0,"mat-tab-group",27),ze("selectedIndexChange",function(n){x(e);let o=u(4).$implicit;return Be(o.selectedIndex,n)||(o.selectedIndex=n),w(n)}),Le(1,ET,4,3,"mat-tab",28,nt),m()}if(i&2){let e=u(4).$implicit;f("mat-stretch-tabs",!1),je("selectedIndex",e.selectedIndex),d(),Ve(e.children)}}function ST(i,r){if(i&1){let e=J();h(0,"gui-icon-button-wrapper")(1,"button",21),S("click",function(n){x(e);let o=u().$index,a=u(5),s=a.$implicit,l=a.formGroup,p=u();return w(p.addTab(n,l.get(s.key),s,!0,o))}),y(2,"mat-icon",22),m(),h(3,"button",21),S("click",function(n){x(e);let o=u().$index,a=u(5),s=a.$implicit,l=a.formGroup,p=u();return w(p.addTab(n,l.get(s.key),s,!1,o))}),y(4,"mat-icon",23),m(),h(5,"button",21),S("click",function(n){x(e);let o=u().$index,a=u(5),s=a.$implicit,l=a.formGroup,p=u();return w(p.removeTab(n,l.get(s.key),s,o))}),y(6,"mat-icon",24),m()()}if(i&2){let e=u(6).$implicit;d(),f("disabled",e.disabled),d(2),f("disabled",e.disabled),d(2),f("disabled",e.disabled)}}function kT(i,r){}function MT(i,r){if(i&1&&b(0,kT,0,0,"ng-template",2),i&2){let e=u().$implicit,t=u(5),n=t.$implicit,o=t.formGroup;u();let a=be(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",Lt(4,Yn,e,n,o.get(Xe(2,df,n.key))))}}function DT(i,r){}function AT(i,r){if(i&1&&(h(0,"div"),b(1,DT,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(2).$index,n=u(5),o=n.$implicit,a=n.formGroup;u();let s=be(4);d(),f("ngTemplateOutlet",s)("ngTemplateOutletContext",Lt(5,Yn,e,o,a.get(Me(2,$c,o.key,t))))}}function RT(i,r){if(i&1&&Le(0,AT,2,9,"div",null,nt),i&2){let e=u().$implicit;Ve(e.children)}}function OT(i,r){if(i&1){let e=J();h(0,"div",31)(1,"div",32)(2,"span",33),S("click",function(){let n=x(e).$index,o=u(5).$implicit;return w(o.selectedIndex=n)}),ee(3),es(4,"ejs"),m(),b(5,ST,7,3,"gui-icon-button-wrapper"),m(),h(6,"div",34),b(7,MT,1,8,null,2)(8,RT,2,0),m()()}if(i&2){let e=r.$implicit,t=r.$index,n=u(5).$implicit;B("gui-list-item-active",n.selectedIndex===t),d(3),ue(ts(4,6,e.name,Xe(9,cf,t))),d(2),C(n.template&&(n.addable||n.addable===void 0)?5:-1),d(2),C(!e.children||e.children.length===0||e.type==="tabs"?7:-1),d(),C((e.children==null?null:e.children.length)>0&&e.type!=="tabs"?8:-1)}}function FT(i,r){if(i&1&&(h(0,"div",26),Le(1,OT,9,11,"div",30,nt),m()),i&2){let e=u(4).$implicit;d(),Ve(e.children)}}function PT(i,r){if(i&1&&b(0,IT,3,2,"mat-tab-group",25)(1,FT,3,0,"div",26),i&2){let e=u(3).$implicit;C(e.mode!=="list"?0:1)}}function NT(i,r){if(i&1){let e=J();h(0,"mat-expansion-panel",17),ze("expandedChange",function(n){x(e);let o=u(2).$implicit;return Be(o.expanded,n)||(o.expanded=n),w(n)}),h(1,"mat-expansion-panel-header"),y(2,"gui-field-label",15),b(3,bT,6,3,"gui-icon-button-wrapper"),m(),b(4,PT,2,1,"ng-template",16),m()}if(i&2){let e=u(2).$implicit;f("formArrayName",e.key),je("expanded",e.expanded),f("disabled",e.disabled),d(2),f("config",e),d(),C(e.expanded?3:-1)}}function LT(i,r){}function VT(i,r){if(i&1&&(h(0,"div",37),b(1,LT,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(3).$implicit,n=u(3),o=n.$implicit,a=n.formGroup;u();let s=be(4);f("formGroupName",t.key),d(),f("ngTemplateOutlet",s)("ngTemplateOutletContext",Me(6,Gc,e,a.get(Me(3,$c,o.key,t.key))))}}function jT(i,r){if(i&1&&Le(0,VT,2,9,"div",37,nt),i&2){let e=u(2).$implicit;Ve(e.children)}}function BT(i,r){}function zT(i,r){if(i&1&&b(0,BT,0,0,"ng-template",2),i&2){let e=u(2).$implicit,t=u(3),n=t.$implicit,o=t.formGroup;u();let a=be(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",Me(2,Gc,e,o.get(n.key)))}}function UT(i,r){if(i&1&&b(0,jT,2,0)(1,zT,1,5,null,2),i&2){let e=u().$implicit;C(e.type==="menuItem"?0:-1),d(),C(e.type==="menu"?1:-1)}}function HT(i,r){if(i&1&&(h(0,"mat-tab",35),b(1,UT,2,2,"ng-template",36),m()),i&2){let e=r.$implicit;f("label",e.name)("disabled",e.disabled)}}function GT(i,r){if(i&1&&(h(0,"mat-tab-group",8),Le(1,HT,2,2,"mat-tab",35,nt),m()),i&2){let e=u(2).$implicit;f("formGroupName",e.key),d(),Ve(e.children)}}function $T(i,r){if(i&1&&(sr(0,1),b(1,X1,2,4,"gui-field-group",3)(2,Z1,2,4,"gui-field-group",3)(3,K1,2,4,"gui-field-group",3)(4,J1,2,4,"gui-field-group",3)(5,eT,2,4,"gui-field-group",3)(6,tT,2,4,"gui-field-group",3)(7,iT,2,4,"gui-field-group",3)(8,nT,2,4,"gui-field-group",3)(9,rT,2,4,"gui-field-group",3)(10,oT,2,4,"gui-field-group",3)(11,aT,2,4,"gui-field-group",3)(12,sT,2,5,"gui-field-group",3)(13,lT,2,4,"gui-field-group",3)(14,cT,1,1,"input",4)(15,hT,3,2,"gui-inline-group",5)(16,gT,4,4,"mat-expansion-panel",6)(17,NT,5,5,"mat-expansion-panel",7)(18,GT,3,1,"mat-tab-group",8),lr()),i&2){let e,t=u(),n=t.$implicit,o=t.formGroup;f("formGroup",o),d(),C((e=n.type)==="text"?1:e==="number"?2:e==="select"?3:e==="switch"?4:e==="slider"?5:e==="buttonToggle"?6:e==="fill"?7:e==="file"?8:e==="image"?9:e==="video"?10:e==="audio"?11:e==="imageSelect"?12:e==="textarea"?13:e==="hidden"?14:e==="inline"?15:e==="group"?16:e==="tabs"?17:e==="menu"?18:-1)}}function WT(i,r){if(i&1&&b(0,$T,19,2,"ng-container",1),i&2){let e=r.$implicit;C(e.show?0:-1)}}function uf(i,r){let e=new Function("obj",'var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push("'+i.replace(/[\r\t\n]/g," ").split("<%").join(" ").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,'",$1,"').split(" ").join('");').split("%>").join('p.push("').split("\r").join('"')+'");}return p.join("");');return r?e(r):e}var qT=(()=>{class i{transform(e,t={}){return uf(e,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275pipe=ld({name:"ejs",type:i,pure:!0,standalone:!0})}}return i})(),hf=(()=>{class i{constructor(e){this.el=e,this.flex=100}ngOnInit(){this.el.nativeElement.style.flex=`1 1 ${this.flex}%`,this.el.nativeElement.style.maxWidth=`${this.flex}%`}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=I({type:i,selectors:[["","flex",""]],inputs:{flex:"flex"},standalone:!0})}}return i})();function lf(i,r,e){switch(e){case"$eq":return i===r;case"$ne":return i!==r;case"$gt":return(i??0)>(r??0);case"$lt":return(i??0)<(r??0);case"$gte":return(i??0)>=(r??0);case"$lte":return(i??0)<=(r??0);case"$in":return Array.isArray(r)&&r.includes(i);case"$nin":return Array.isArray(r)&&!r.includes(i);default:return!1}}function Va(i,r){return r.split(".").reduce((e,t)=>e?.children?.[t]?e.children[t]:e?.[t],i)}var Et=(()=>{class i{constructor(){this.config={},this.title="",this.styless=!1}ngOnChanges(){let{index:e,name:t,parentType:n,type:o}=this.config;this.title=e!=null&&!isNaN(e)?uf(t||"",{i:e}):t,this.styless=n==="inline"&&o!=="inline"||o==="group"||o==="tabs"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=N({type:i,selectors:[["gui-field-label"]],hostVars:3,hostBindings:function(t,n){t&2&&(Dt("title",n.title),B("gui-field-label",!n.styless))},inputs:{config:"config",index:"index"},standalone:!0,features:[se,z],decls:2,vars:1,consts:[["matTooltipPosition","above","matTooltipClass","gui-field-label-tooltip",3,"gui-field-label-with-description","matTooltip"],["matTooltipPosition","above","matTooltipClass","gui-field-label-tooltip",3,"matTooltip"]],template:function(t,n){t&1&&b(0,JC,2,1,"span")(1,e1,2,4,"span",0),t&2&&C(n.config.description?1:0)},dependencies:[Ip],styles:[`.gui-field-label{display:inline-block;width:4rem;height:1.5rem;padding:0 .25rem;line-height:1.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gui-field-label-with-description{text-decoration:underline dotted;cursor:help} +`],encapsulation:2,changeDetection:0})}}return i})(),YT=(()=>{class i{constructor(){this.src=""}isUrl(){return/^(https?:\/\/|\.?\/)\w+/.test(this.src)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=N({type:i,selectors:[["gui-icon"]],hostAttrs:[1,"gui-icon"],inputs:{src:"src"},standalone:!0,features:[z],decls:2,vars:1,consts:[[3,"src"],[3,"class"]],template:function(t,n){t&1&&b(0,t1,1,1,"img",0)(1,i1,1,2,"i",1),t&2&&C(n.isUrl()?0:1)},styles:[`.gui-icon{display:inline-flex}.gui-icon img,.gui-icon i{display:block;width:var(--mat-standard-button-toggle-height);height:var(--mat-standard-button-toggle-height);line-height:var(--mat-standard-button-toggle-height)} +`],encapsulation:2,changeDetection:0})}}return i})(),mf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-button-toggle"]],hostAttrs:[1,"gui-field","gui-button-toggle"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:4,vars:4,consts:[["hideSingleSelectionIndicator","","hideMultipleSelectionIndicator","",3,"ngModelChange","change","ngModel","disabled","multiple"],["disableRipple","",3,"gui-icon-toggle","flex","value","disabled","title"],["disableRipple","",3,"flex","value","disabled","title"],[3,"src"],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-button-toggle-group",0),ze("ngModelChange",function(a){return Be(n.value,a)||(n.value=a),a}),S("change",function(){return n.onValueChange()}),Le(1,o1,3,7,"mat-button-toggle",1,nt),m(),b(3,a1,2,1,"mat-hint")),t&2&&(je("ngModel",n.value),f("disabled",n.disabled)("multiple",n.config.multiple),d(),Ve(n.config.options),d(2),C(n.config.parentType==="inline"?3:-1))},dependencies:[at,dt,ut,ec,Aa,Tt,hf,YT,Et],styles:[`.gui-button-toggle{--mat-standard-button-toggle-shape: .25rem;--mat-standard-button-toggle-height: 1.5rem;--mat-standard-button-toggle-label-text-size: .75rem;--mat-standard-button-toggle-label-text-weight: 400;--mat-standard-button-toggle-label-text-line-height: var(--mat-standard-button-toggle-height)}.gui-button-toggle .mat-button-toggle-group{flex-wrap:wrap;border-width:0}.gui-button-toggle .mat-button-toggle-appearance-standard{border-width:0!important;background-color:var(--mdc-filled-text-field-container-color)}.gui-icon-toggle.mat-button-toggle .mat-button-toggle-label-content{padding:0;line-height:normal}.gui-icon-toggle.mat-button-toggle-checked img{opacity:.64} +`],encapsulation:2,changeDetection:0})}}return i})(),QT=(()=>{class i{constructor(e,t){this.differs=e,this.cdr=t,this.config={}}ngOnInit(){this.configDiffer=this.differs.find(this.config).create()}ngDoCheck(){this.configDiffer?.diff(this.config)?.forEachChangedItem(t=>{this.cdr.markForCheck()})}static{this.\u0275fac=function(t){return new(t||i)(c(Pd),c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-field-group"]],hostAttrs:[1,"gui-field-group"],inputs:{config:"config"},standalone:!0,features:[z],ngContentSelectors:Hc,decls:2,vars:1,consts:[[3,"config","index"]],template:function(t,n){t&1&&(de(),b(0,s1,1,2,"gui-field-label",0),q(1)),t&2&&C(n.config.parentType!=="inline"&&n.config.name?0:-1)},dependencies:[Et],styles:[`.gui-field-group{display:flex;padding:.25rem .5rem}.gui-field{--mat-form-field-container-text-size: .75rem;display:inline-flex;flex:1;flex-wrap:wrap}.gui-field>.mat-mdc-form-field{flex:1;width:0;max-width:100%}.gui-field .mat-mdc-text-field-wrapper,.gui-field .mat-mdc-form-field-hint-wrapper{position:relative;padding:0 .5rem;border-radius:var(--mdc-filled-text-field-container-shape)}[dir=rtl] .gui-field .mat-mdc-text-field-wrapper,[dir=rtl] .gui-field .mat-mdc-form-field-hint-wrapper{padding:0 .5rem}.gui-field .mat-mdc-form-field-infix{min-height:auto;padding:0!important}.gui-field .mat-mdc-form-field-hint-spacer,.gui-field .mat-mdc-form-field-bottom-align:before,.gui-field .mdc-line-ripple{display:none} +`],encapsulation:2,changeDetection:0})}}return i})(),Wc=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=N({type:i,selectors:[["gui-icon-button-wrapper"]],hostAttrs:[1,"gui-icon-button-wrapper"],standalone:!0,features:[z],ngContentSelectors:Hc,decls:1,vars:0,template:function(t,n){t&1&&(de(),q(0))},styles:[`.gui-icon-button-wrapper .mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 1.5rem;--mdc-icon-button-icon-size: .875rem;padding:0}.gui-icon-button-wrapper .mat-mdc-icon-button .mat-mdc-button-touch-target{width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size)}.gui-icon-button-wrapper .mat-icon{display:inline-flex;justify-content:center;align-items:center;width:1.5rem;height:1.5rem}.gui-icon-button-wrapper .mat-icon svg{width:.875rem;height:.875rem} +`],encapsulation:2,changeDetection:0})}}return i})(),XT=(()=>{class i{constructor(e){this.http=e,this.url="",this.params={}}upload(e){return this.http.post(this.url,e,{reportProgress:!0,observe:"events",params:this.params})}static{this.\u0275fac=function(t){return new(t||i)(E(bo))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ZT={horizontal:` + + + + `,vertical:` + + + + `,add:` + + + + `,delete:` + + + + `,copy:` + + + + `,link:` + + + + `,clear:` + + + + `,file:` + + + + `,upload:` + + + + `},KT=new O("gui-icons-config"),pf=(()=>{class i{constructor(e,t,n){this._iconRegistry=e,this._sanitizer=t,this._defaultIcons=n}add(...e){let t=Object.assign(ZT,this._defaultIcons);e.forEach(n=>{this._iconRegistry.addSvgIconLiteral(n,this._sanitizer.bypassSecurityTrustHtml(t[n]))})}static{this.\u0275fac=function(t){return new(t||i)(E(Ll),E(gr),E(KT,8))}}static{this.\u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ff=(()=>{class i{constructor(e,t,n){this.fileUploaderCfg=e,this.cdr=t,this.config={},this.disabled=!1,this.type="*",this.name="",this.accept="",this.fileChange=new T,this.url="",this.onChange=()=>{},this.onTouched=()=>{},n.add("link","clear","file","upload")}ngOnChanges(e){e.type&&(this.accept=this.type+"/*")}writeValue(e){this.url=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}upload(e){let t=new FormData;t.append("file",e.data||""),e.inProgress=!0,this.fileUploaderCfg.upload(t).pipe(qt(n=>(e.inProgress=!1,H(`${e.data?.name||"File"} upload failed.`))),ri(()=>{})).subscribe(n=>{n instanceof hr&&n.body&&(this.url=n.body.data,this.onChange(this.url),this.onTouched(),this.fileChange.emit(this.url)),this.cdr.detectChanges()})}onUrlChange(e){this.url=e.target.value,this.onChange(this.url),this.fileChange.emit(this.url)}onFileChange(e){this.file={data:e.target.files[0],inProgress:!1,progress:0},this.upload(this.file),e.target.value=""}onBlur(){this.onTouched()}onClear(){this.url="",this.onChange(this.url),this.onTouched(),this.fileChange.emit(this.url)}static{this.\u0275fac=function(t){return new(t||i)(c(XT),c(Z),c(pf))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-file-uploader"]],viewQuery:function(t,n){if(t&1&&Q(l1,5),t&2){let o;k(o=M())&&(n.fileInput=o.first)}},hostAttrs:[1,"gui-field","gui-file-uploader"],inputs:{config:"config",disabled:"disabled",type:"type",name:"name",accept:"accept"},outputs:{fileChange:"fileChange"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),se,z],decls:11,vars:9,consts:[["fileInput",""],["matPrefix",""],["svgIcon","link"],["matInput","","type","text",3,"change","blur","ngModel","disabled","placeholder"],["matSuffix",""],[1,"gui-file-content"],[1,"gui-file-placeholder"],["type","file",3,"change","accept","name","disabled"],["mat-icon-button","","color","warn",3,"click","disabled"],["svgIcon","clear"],[3,"src"],["controls","",3,"src"],["svgIcon","file"],["svgIcon","upload"],[3,"config"]],template:function(t,n){if(t&1){let o=J();h(0,"mat-form-field")(1,"gui-icon-button-wrapper",1),y(2,"mat-icon",2),m(),h(3,"input",3),S("change",function(s){return x(o),w(n.onUrlChange(s))})("blur",function(){return x(o),w(n.onBlur())}),m(),b(4,c1,3,1,"gui-icon-button-wrapper",4),m(),h(5,"figure",5),b(6,p1,4,1)(7,f1,2,0,"div",6),h(8,"input",7,0),S("change",function(s){return x(o),w(n.onFileChange(s))}),m()(),b(10,g1,2,1,"mat-hint")}t&2&&(d(3),f("ngModel",n.url)("disabled",n.disabled)("placeholder",n.config.placeholder||""),d(),C(n.url?4:-1),d(2),C(n.url?6:7),d(2),f("accept",n.accept)("name",n.name)("disabled",n.disabled),d(2),C(n.config.parentType==="inline"?10:-1))},dependencies:[at,Kt,dt,ut,Ht,Vl,hi,tn,Kr,mi,Tt,Et,Wc],styles:[`.gui-file-uploader{display:block;overflow:auto}.gui-file-uploader .mat-mdc-form-field{width:100%}.gui-file-uploader .gui-file-content{position:relative;display:flex;align-items:center;justify-content:center;height:7.5rem;margin:.25rem 0 0;padding:.25rem;background-color:var(--mdc-filled-text-field-container-color);border:1px solid transparent;border-radius:.25rem}.gui-file-uploader .gui-file-content:hover,.gui-file-uploader .gui-file-content:focus-within{border-color:currentColor}.gui-file-uploader .gui-file-content img,.gui-file-uploader .gui-file-content video{width:100%;height:100%;object-fit:contain}.gui-file-uploader .gui-file-content input[type=file]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.gui-file-uploader .gui-file-content .mat-icon svg{width:1.5rem;height:1.5rem} +`],encapsulation:2,changeDetection:0})}}return i})(),gf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-fill"]],hostAttrs:[1,"gui-field","gui-fill"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:10,vars:8,consts:[["cp",""],["matPrefix",""],[1,"gui-color-block-empty"],[1,"gui-color-block"],["matInput","",3,"ngModelChange","colorChange","ngModel","disabled","placeholder","mtxColorpicker"],["matSuffix",""],[3,"for"],[3,"config"]],template:function(t,n){if(t&1){let o=J();h(0,"mat-form-field"),sr(1,1),y(2,"span",2)(3,"span",3),lr(),h(4,"input",4),ze("ngModelChange",function(s){return x(o),Be(n.value,s)||(n.value=s),w(s)}),S("colorChange",function(){return x(o),w(n.onValueChange())}),m(),y(5,"mtx-colorpicker",null,0),h(7,"gui-icon-button-wrapper",5),y(8,"mtx-colorpicker-toggle",6),m(),b(9,_1,2,1,"mat-hint"),m()}if(t&2){let o=be(6);d(3),Ae("background",n.value),d(),je("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||"")("mtxColorpicker",o),d(4),f("for",o),d(),C(n.config.parentType==="inline"?9:-1)}},dependencies:[at,Kt,dt,ut,Ht,hi,tn,mi,Tt,Fa,qp,Tc,Et,Wc],styles:[`.gui-color-block,.gui-color-block-empty{position:relative;display:inline-block;width:1.5rem;height:1.5rem}.gui-color-block-empty{position:absolute;background-color:#fff;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-position:0 0,0 .25rem,.25rem -.25rem,-.25rem 0;background-size:.5rem .5rem}.gui-color-block:after{display:inline-block;width:100%;height:100%;border:1px solid currentColor;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-bottom-left-radius:var(--mdc-filled-text-field-container-shape);opacity:.12;content:""}[dir=rtl] .gui-color-block:after{border-radius:0;border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:var(--mdc-filled-text-field-container-shape)}.gui-fill .mat-mdc-icon-button{display:inline-flex;justify-content:center;align-items:center} +`],encapsulation:2,changeDetection:0})}}return i})(),_f=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.appendTo="body",this.onChange=()=>{},this.onTouched=()=>{}}ngAfterViewInit(){let{ngSelect:e}=this.mtxSelect;e.classes=(e.classes||"")+" gui-image-select"}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-image-select"]],viewQuery:function(t,n){if(t&1&&Q(La,5),t&2){let o;k(o=M())&&(n.mtxSelect=o.first)}},hostAttrs:[1,"gui-field","gui-image-select"],inputs:{config:"config",disabled:"disabled",appendTo:"appendTo"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:7,vars:9,consts:[["matPrefix",""],["bindValue","value",3,"ngModelChange","change","items","appendTo","ngModel","disabled","placeholder"],["ng-label-tmp",""],["ng-option-tmp",""],["matSuffix",""],[3,"src","alt"],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,v1,2,1,"span",0),h(2,"mtx-select",1),ze("ngModelChange",function(a){return Be(n.value,a)||(n.value=a),a}),S("change",function(){return n.onValueChange()}),b(3,y1,3,3,"ng-template",2)(4,x1,3,3,"ng-template",3),m(),b(5,w1,2,1,"span",4)(6,C1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),f("items",n.config.options||po(8,b1))("appendTo",n.appendTo),je("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||""),d(3),C(n.config.suffix?5:-1),d(),C(n.config.parentType==="inline"?6:-1))},dependencies:[at,dt,ut,Ht,hi,mi,Tt,La,Uc,zc,Et],styles:[`.gui-image-select.ng-dropdown-panel .ng-dropdown-panel-items .ng-option img,.gui-image-select .ng-select .ng-value img{height:100%;max-width:7.5rem;object-fit:contain;border-radius:.25rem;background-color:var(--mat-option-hover-state-layer-color)}.gui-image-select{--mat-form-field-container-vertical-padding: 0}.gui-image-select .ng-select{padding:0 .5rem;margin:0 -.5rem}.gui-image-select .ng-select .ng-value-container{height:4rem}.gui-image-select .ng-select .ng-value{display:inline-flex;align-items:center;gap:.5rem;height:100%;padding:.5rem 0}.gui-image-select.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;gap:.5rem;height:4rem;padding:.5rem} +`],encapsulation:2,changeDetection:0})}}return i})(),JT=(()=>{class i{constructor(){this.config={}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=N({type:i,selectors:[["gui-inline-group"]],hostAttrs:[1,"gui-inline-group"],inputs:{config:"config"},standalone:!0,features:[z],ngContentSelectors:Hc,decls:3,vars:1,consts:[[3,"config"],[1,"gui-inline-group-content"]],template:function(t,n){t&1&&(de(),b(0,T1,1,1,"gui-field-label",0),h(1,"div",1),q(2),m()),t&2&&C(n.config.name?0:-1)},dependencies:[Et],styles:[`.gui-inline-group{display:flex;padding:.25rem .5rem}.gui-inline-group mat-hint{width:100%;line-height:var(--mat-form-field-subscript-text-line-height);-webkit-font-smoothing:antialiased}.gui-inline-group-content{display:inline-flex;flex:1;flex-flow:row wrap;margin:0 -.25rem}.gui-inline-group-content>.gui-field-group,.gui-inline-group-content>.gui-inline-group,.gui-inline-group-content>.mat-expansion-panel,.gui-inline-group-content>.gui-menu{width:100%;padding:0 .25rem} +`],encapsulation:2,changeDetection:0})}}return i})(),bf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-input-number"]],hostAttrs:[1,"gui-field","gui-input-number"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:5,vars:9,consts:[["matPrefix",""],["matInput","","type","number",3,"ngModelChange","change","ngModel","disabled","placeholder","step","min","max"],["matSuffix",""],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,E1,2,1,"span",0),h(2,"input",1),ze("ngModelChange",function(a){return Be(n.value,a)||(n.value=a),a}),S("change",function(){return n.onValueChange()}),m(),b(3,I1,2,1,"span",2)(4,S1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),je("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||"")("step",n.config.step)("min",n.config.min)("max",n.config.max),d(),C(n.config.suffix?3:-1),d(),C(n.config.parentType==="inline"?4:-1))},dependencies:[at,Kt,Xo,dt,ea,Jo,ut,Ht,hi,tn,mi,Tt,Et],styles:[`.gui-input-number .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .gui-input-number .mat-mdc-text-field-wrapper{padding-left:0} +`],encapsulation:2,changeDetection:0})}}return i})(),vf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-input-text"]],hostAttrs:[1,"gui-field","gui-input-text"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:5,vars:6,consts:[["matPrefix",""],["matInput","","type","text",3,"ngModelChange","change","ngModel","disabled","placeholder"],["matSuffix",""],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,k1,2,1,"span",0),h(2,"input",1),ze("ngModelChange",function(a){return Be(n.value,a)||(n.value=a),a}),S("change",function(){return n.onValueChange()}),m(),b(3,M1,2,1,"span",2)(4,D1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),je("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||""),d(),C(n.config.suffix?3:-1),d(),C(n.config.parentType==="inline"?4:-1))},dependencies:[at,Kt,dt,ut,Ht,hi,tn,mi,Tt,Et],encapsulation:2,changeDetection:0})}}return i})(),yf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-select"]],hostAttrs:[1,"gui-field","gui-select"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:7,vars:7,consts:[["matPrefix",""],["panelClass","gui-select","hideSingleSelectionIndicator","","disableRipple","",3,"ngModelChange","selectionChange","ngModel","disabled","placeholder","multiple"],[3,"value","disabled"],["matSuffix",""],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,A1,2,1,"span",0),h(2,"mat-select",1),ze("ngModelChange",function(a){return Be(n.value,a)||(n.value=a),a}),S("selectionChange",function(){return n.onValueChange()}),Le(3,R1,3,5,"mat-option",2,nt),m(),b(5,O1,2,1,"span",3)(6,F1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),je("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||"")("multiple",n.config.multiple||!1),d(),Ve(n.config.options),d(2),C(n.config.suffix?5:-1),d(),C(n.config.parentType==="inline"?6:-1))},dependencies:[at,dt,ut,Ht,hi,Bm,ba,mi,Tt,Et],styles:[`.gui-select{--mat-select-trigger-text-size: .75rem;--mat-option-label-text-size: .75rem}.gui-select .mat-mdc-option{min-height:var(--mat-option-label-text-line-height);padding:0 .5rem!important}.gui-select .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:.5rem}[dir=rtl] .gui-select .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:.5rem}.gui-select .mat-pseudo-checkbox{width:1rem;height:1rem;border-width:1px} +`],encapsulation:2,changeDetection:0})}}return i})(),xf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.setInputValue(),this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}onRangeSliderChange(){this.setInputValue(),this.onValueChange()}onRangeInputChange(){this.value=[this.minValue,this.maxValue],this.onValueChange()}setInputValue(){Array.isArray(this.value)&&(this.minValue=this.value[0],this.maxValue=this.value[1])}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-slider"]],hostAttrs:[1,"gui-field","gui-slider"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:3,vars:2,consts:[[3,"disabled","step","min","max"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["matPrefix",""],["matInput","","type","number",3,"ngModelChange","change","ngModel","disabled","placeholder","step","min","max"],["matSuffix",""],["matSliderStartThumb","",3,"ngModelChange","valueChange","ngModel"],["matSliderEndThumb","",3,"ngModelChange","valueChange","ngModel"],[3,"config"]],template:function(t,n){t&1&&b(0,L1,6,13)(1,U1,11,22)(2,H1,2,1,"mat-hint"),t&2&&(C(n.config.mode!=="range"?0:1),d(2),C(n.config.parentType==="inline"?2:-1))},dependencies:[at,Kt,Xo,dt,ea,Jo,ut,$m,Sa,Ht,hi,tn,mi,Jl,Tt,Et],styles:[`.gui-slider .mat-mdc-slider{--mdc-slider-handle-width: .75rem;--mdc-slider-handle-height: .75rem;--mdc-slider-inactive-track-height: .125rem;--mdc-slider-active-track-height: .125rem;flex:3;min-width:auto;height:calc(var(--mdc-slider-handle-width) * 2);margin:0 calc(var(--mdc-slider-handle-width) / 2)}.gui-slider .mat-mdc-slider+.mat-mdc-form-field{flex:2}.gui-slider .mat-mdc-slider.mdc-slider--range+.mat-mdc-form-field,.gui-slider .mat-mdc-slider.mdc-slider--range+.mat-mdc-form-field+.mat-mdc-form-field{flex:1.5}.gui-slider .mat-mdc-slider .mdc-slider__input{top:0;height:calc(var(--mdc-slider-handle-width) * 2)}.gui-slider .mat-mdc-slider .mdc-slider__thumb{left:calc(var(--mdc-slider-handle-width) * -1);width:calc(var(--mdc-slider-handle-width) * 2);height:calc(var(--mdc-slider-handle-width) * 2);border-radius:50%;overflow:hidden}.gui-slider .mat-mdc-form-field{margin-left:.375rem}[dir=rtl] .gui-slider .mat-mdc-form-field{margin-left:0;margin-right:.375rem}.gui-slider .mat-mdc-form-field input::-webkit-outer-spin-button,.gui-slider .mat-mdc-form-field input::-webkit-inner-spin-button{appearance:none} +`],encapsulation:2,changeDetection:0})}}return i})(),wf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value=!1,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-switch"]],hostAttrs:[1,"gui-field","gui-switch"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:2,vars:3,consts:[["hideIcon","",3,"ngModelChange","change","ngModel","disabled"],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-slide-toggle",0),ze("ngModelChange",function(a){return Be(n.value,a)||(n.value=a),a}),S("change",function(){return n.onValueChange()}),m(),b(1,G1,2,1,"mat-hint")),t&2&&(je("ngModel",n.value),f("disabled",n.disabled),d(),C(n.config.parentType==="inline"?1:-1))},dependencies:[at,dt,ut,Ma,Tt,Et],styles:[`.gui-switch .mat-mdc-slide-toggle{--mat-switch-unselected-handle-size: .75rem;--mat-switch-selected-handle-size: .75rem;--mat-switch-pressed-handle-size: .75rem;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0 .125rem;--mat-switch-unselected-pressed-handle-horizontal-margin: 0 .125rem;--mat-switch-track-outline-width: 1px;--mdc-switch-track-width: 1.75rem;--mdc-switch-track-height: 1rem;--mdc-switch-track-shape: .5rem;--mdc-switch-handle-width: .875rem;--mdc-switch-state-layer-size: 1.5rem;line-height:var(--mdc-switch-state-layer-size)} +`],encapsulation:2,changeDetection:0})}}return i})(),Cf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Z))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-textarea"]],hostAttrs:[1,"gui-field","gui-textarea"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[W([{provide:we,useExisting:ce(()=>i),multi:!0}]),z],decls:5,vars:7,consts:[["matPrefix",""],["matInput","",3,"ngModelChange","change","ngModel","disabled","placeholder","rows"],["matSuffix",""],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,$1,2,1,"span",0),h(2,"textarea",1),ze("ngModelChange",function(a){return Be(n.value,a)||(n.value=a),a}),S("change",function(){return n.onValueChange()}),m(),b(3,W1,2,1,"span",2)(4,q1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),je("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||"")("rows",n.config.rows),d(),C(n.config.suffix?3:-1),d(),C(n.config.parentType==="inline"?4:-1))},dependencies:[at,Kt,dt,ut,Ht,hi,tn,mi,Tt,Et],styles:[`.gui-textarea .mat-mdc-text-field-wrapper{padding:0}.gui-textarea .mat-mdc-form-field-textarea-control{padding:0 .5rem} +`],encapsulation:2,changeDetection:0})}}return i})(),eE=0,qc=(()=>{class i{constructor(e){this.form=new zt({}),this.config={},this.model={},this.modelChange=new T,this.formFields=[],this.formSubscription=ge.EMPTY,this.controlSubscriptions=[],this.uid=`gui-form-${eE++}`,e.add("horizontal","vertical","copy","add","delete")}ngOnChanges(e){e.config&&(this.form.controls={},this.formFields=this.getFormFieldArray(this.form,this.config,this.model)),e.model&&this.model&&Object.keys(this.model).length>0&&this.form.patchValue(this.model)}ngOnInit(){this.formSubscription=this.form.valueChanges.subscribe(e=>{Object.assign(this.model,e),this.modelChange.emit(e)})}ngOnDestroy(){this.formSubscription.unsubscribe(),this.controlSubscriptions.forEach(e=>e.unsubscribe())}getFormFieldArray(e,t={},n={},o=null,a="group"){let s=[];for(let l of Object.keys(t)){let p=t[l].template?[]:t[l].children,g=p?Array.isArray(p)?"array":"group":"control",_=A({_type:g,key:l,parentType:a,model:n[l],default:o?.[l],index:Number(l),show:!0},t[l]);if(_.children&&n[l]==null&&_.default==null&&(_.model=n[l]=_._type==="array"?[]:{}),typeof n=="object"&&n[l]==null&&(n[l]=_.default),_.template&&(Array.isArray(_.model)&&_.model.length>0&&(_.default=_.model),_.default?.length?_.children=_.default.map(D=>(Object.assign(D,_.template?.default),A({default:D},_.template))):_.children=[]),_.showIf){let D=G=>{_.showIf.logicalType==="$or"?_.show=_.showIf.conditions.some(ie=>G(ie)):_.show=_.showIf.conditions.every(ie=>G(ie))};D(G=>{let ie=Va(t,G[0])??Va(this.config,G[0]),ae=Va(n,G[0])??Va(this.model,G[0]);return lf(ie?.default??ae,G[2],G[1])}),setTimeout(()=>{let G=Se=>e.get(Se)||this.form.get(Se),ae=_.showIf.conditions.map(Se=>G(Se[0])).map(Se=>Se?.valueChanges||H()),fe=H().pipe(nd(ae)).subscribe(()=>{D(Se=>lf(G(Se[0])?.value,Se[2],Se[1]))});this.controlSubscriptions.push(fe)})}if(_._type==="control"){let D={value:_.default,disabled:_.disabled};e instanceof zt?e.registerControl(_.key,new Hr(D)):e instanceof Ii&&e.insert(_.index||e.length,new Hr(D),{emitEvent:!1})}else if(_._type==="array"){let D=new Ii([]);e instanceof zt?D=e.registerControl(_.key,new Ii([])):e instanceof Ii&&e.insert(_.index||e.length,D,{emitEvent:!1}),_.children=this.getFormFieldArray(D,_.children,_.model,_.default,_.type),_.selectedIndex=0}else if(_._type==="group"){let D=new zt({});e instanceof zt?D=e.registerControl(_.key,new zt({})):e instanceof Ii&&e.insert(_.index||e.length,D,{emitEvent:!1}),_.children=this.getFormFieldArray(D,_.children,_.model,_.default,_.type)}s.push(_)}return s}addTab(e,t,n,o,a){e.stopPropagation();let s=a!==void 0?a+1:o?n.selectedIndex+1:n.children.length;n.template.index=s,n.children.forEach((g,_)=>{_>=s&&(g.index+=1,g.key=g.index+"")});let l=t.get(s-1+"")?.value,p=this.getFormFieldArray(t,{[s]:n.template},o?{[s]:l}:{},o?{[s]:l}:null,"tabs");n.children.splice(s,0,p[0]),t.patchValue(t.value)}removeTab(e,t,n,o){e.stopPropagation();let a=o===void 0?n.selectedIndex:o;n.children.forEach((s,l)=>{l>a&&(s.index-=1,s.key=s.index+"")}),n.children.splice(a,1),t.removeAt(a)}changeTabsMode(e,t,n){e.stopPropagation(),t.mode=n}static{this.\u0275fac=function(t){return new(t||i)(c(pf))}}static{this.\u0275cmp=N({type:i,selectors:[["gui-form"]],hostAttrs:[1,"gui-form"],hostVars:1,hostBindings:function(t,n){t&2&&K("id",n.uid)},inputs:{form:"form",config:"config",model:"model"},outputs:{modelChange:"modelChange"},standalone:!0,features:[se,z],decls:5,vars:1,consts:[["controlType",""],[3,"formGroup"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"config","flex"],["type","hidden",3,"formControlName"],[3,"config","formGroupName"],[3,"formGroupName","expanded","disabled"],[3,"formArrayName","expanded","disabled"],["disableRipple","",1,"gui-menu",3,"formGroupName"],[3,"formControlName","config"],["type","image",3,"formControlName","config"],["type","video",3,"formControlName","config"],["type","audio",3,"formControlName","config"],[3,"formControlName","config","appendTo"],[3,"expandedChange","formGroupName","expanded","disabled"],[3,"config"],["matExpansionPanelContent",""],[3,"expandedChange","formArrayName","expanded","disabled"],["mat-icon-button","","type","button",3,"click","color"],["svgIcon","horizontal"],["svgIcon","vertical"],["mat-icon-button","","type","button",3,"click","disabled"],["svgIcon","copy"],["svgIcon","add"],["svgIcon","delete"],["disableRipple","",1,"gui-tabs",3,"mat-stretch-tabs","selectedIndex"],[1,"gui-list"],["disableRipple","",1,"gui-tabs",3,"selectedIndexChange","mat-stretch-tabs","selectedIndex"],[3,"disabled"],["mat-tab-label",""],[1,"gui-list-item",3,"gui-list-item-active"],[1,"gui-list-item"],[1,"gui-list-item-heading"],[1,"gui-list-item-title",3,"click"],[1,"gui-list-item-content"],[3,"label","disabled"],["matTabContent",""],[3,"formGroupName"]],template:function(t,n){t&1&&(h(0,"form",1),Le(1,Q1,2,5,"div",null,nt),m(),b(3,WT,1,1,"ng-template",null,0,_t)),t&2&&(f("formGroup",n.form),d(),Ve(n.formFields))},dependencies:[Gr,Ch,Kt,dt,fh,Jt,ul,Zo,Ko,jt,cc,yp,lc,Kr,Vl,cp,sc,ac,oc,QT,hf,vf,bf,yf,wf,xf,mf,gf,ff,_f,Cf,JT,Et,Wc,qT],styles:[`.gui-form{--mat-expansion-header-text-size: .75rem;--mat-expansion-header-collapsed-state-height: 2rem;--mat-expansion-header-expanded-state-height: 2rem;--mat-expansion-container-text-size: .75rem;--mat-expansion-container-shape: 0;position:relative;display:block;font-size:.75rem}.gui-form .mat-expansion-panel{box-shadow:none!important}.gui-form .mat-expansion-panel-body{padding:0}.gui-form .mat-expansion-panel-header{padding:0 .75rem}.gui-form .mat-expansion-panel-header .mat-content{align-items:center;padding-right:.5rem}[dir=rtl] .gui-form .mat-expansion-panel-header .mat-content{padding-right:0;padding-left:.5rem}.gui-form .mat-expansion-panel-header .mat-content gui-field-label{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gui-form .mat-expansion-indicator svg{width:1.5rem;height:1.5rem;margin:0 -.5rem}.gui-form .mat-expansion-indicator:after{vertical-align:.125rem}.gui-form .mat-mdc-tab-header{--mat-tab-header-label-text-size: .75rem;--mdc-secondary-navigation-tab-container-height: 1.5rem}.gui-form .mat-mdc-tab-header-pagination{min-width:var(--mdc-secondary-navigation-tab-container-height)}.gui-form .mat-mdc-tab{min-width:auto;padding:0 .75rem}.gui-list-item-heading{display:flex;align-items:center;position:relative;padding:0 .75rem;line-height:1.5rem}.gui-list-item-heading:before{position:absolute;left:0;width:.125rem;height:1rem;background-color:var(--mat-expansion-header-text-color);content:""}[dir=rtl] .gui-list-item-heading:before{left:auto;right:0}.gui-list-item-title{flex:1;cursor:pointer}.gui-list-item-active .gui-list-item-title{font-weight:700}.gui-menu .mat-mdc-tab-header{--mdc-tab-indicator-active-indicator-shape: .25rem;padding:.25rem;background-color:var(--mdc-filled-text-field-container-color)}.gui-menu .mat-mdc-tab-header .mdc-tab__ripple:before{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.gui-menu .mat-mdc-tab-labels{gap:.25rem}.gui-menu .mdc-tab-indicator .mdc-tab-indicator__content{height:100%;background-color:var(--mdc-tab-indicator-active-indicator-color)}.gui-menu .mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:.24} +`],encapsulation:2,changeDetection:0})}}return i})(),Tf=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Oe,Gr,at,en,_m,zm,Wm,qm,Zm,Cm,$n,dp,xp,Sp,Yp,sf,qc,vf,bf,yf,wf,xf,mf,gf,_f,Cf,ff]})}}return i})();var Qn="data-watermark-tag",Yc={childList:!0,subtree:!0,attributeFilter:["style","class",Qn]};function Ef(i){return i.split("-").slice(1).reduce((r,e,t)=>t===0?e:`${r}${e[0].toUpperCase()+e.slice(1)}`)}var ro=i=>{let r="";return Object.keys(i).forEach(e=>{let t=e.replace(/([A-Z])/g,"-$1").toLowerCase();i[e]!==""&&i[e]!=null&&(r+=`${t}:${i[e]};`)}),r},iE=i=>window.btoa(decodeURI(encodeURIComponent(i))),If=(i="")=>`${iE(i)}-${new Date().getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`,Sf=i=>{let r;if(typeof i=="string"){if(r=document.querySelector(i),!r)throw new Error(`The watermark container element '${i}' not found!`)}else r=i??document.body;return r};var kf=i=>{let r=document.createElement("div"),e={display:"block !important",position:"static !important",opacity:"1 !important",visibility:"visible !important",transform:"none !important","clip-path":"none !important"};return r.setAttribute("style",ro(e)),r.setAttribute(Qn,i),r};function Mf(i){let{text:r,gapX:e,gapY:t,offsetY:n,offsetX:o,width:a,height:s,rotate:l,opacity:p,fontSize:g,fontStyle:_,fontVariant:D,fontWeight:G,fontFamily:ie,fontColor:ae,textAlign:fe,textBaseline:Se,image:bi,blindText:Wt,blindFontSize:Ff,blindOpacity:Pf}=i;return new Promise((Qc,Nf)=>{let Ba=document.createElement("canvas"),Ue=Ba.getContext("2d"),Ri=1,za=(Number(e)+Number(a))*Ri,Ua=(Number(t)+Number(s))*Ri,Lf=Number(o)||Number(e)/2,Vf=Number(n)||Number(t)/2;if(Ba.setAttribute("width",`${za}px`),Ba.setAttribute("height",`${Ua}px`),Ue){let on=a*Ri,oo=s*Ri;if(Ue.translate(Lf*Ri,Vf*Ri),Ue.translate(on/2,oo/2),Ue.rotate(Math.PI/180*Number(l)),Ue.translate(-on/2,-oo/2),Wt&&(Ue.globalAlpha=Pf,Ue.font=`${Ff}px normal`,Ue.fillText(Wt,0,0)),Ue.globalAlpha=p,bi){let pt=new Image;pt.crossOrigin="anonymous",pt.referrerPolicy="no-referrer",pt.src=bi,pt.onload=()=>{Ue.drawImage(pt,0,0,on,oo),Qc({url:Ue.canvas.toDataURL(),width:za,height:Ua})};return}let Xn=typeof r=="string"?r.split(` +`):r,jf=Xn.map(pt=>Ue.measureText(pt).width),Bf=Math.max(...jf),Ha=Number(g)*Ri;Ue.textAlign=fe,Ue.textBaseline=Se,Ue.fillStyle=ae,Ue.font=Xc(`${Ha}px`),Bf>a&&(Ue.font=Xc(`${Ha/2}px`));let Zc=4,zf=Ha,ao=(oo-(g+4)*Xn.length-Zc*(Xn.length-1))/2;ao=ao<0?0:ao;for(let pt=0;pt!!(r.type==="attributes"&&(r.attributeName===Qn||this.watermarkTag===this._getNodeRandomId(r.target))||r.removedNodes.length&&this.watermarkTag===this._getNodeRandomId(r.removedNodes[0]));_getNodeRandomId=r=>r?.dataset?.[Ef(Qn)];_destroyMutationObserver=()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)};_getWatermarkDom=()=>so(this,null,function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div"));let r=yield Mf(this.options);if(r?.url){let e=r.url;if(this.style.zIndex=this.options.zIndex,this.options.repeat==="multiply"?(this.style.backgroundImage=`url(${e}), url(${e})`,this.style.backgroundRepeat="repeat",this.style.backgroundPosition=`${r.width/2}px ${r.height/2}px, 0 0`):(this.style.backgroundImage=`url(${e})`,this.style.backgroundRepeat="repeat",this.style.backgroundPosition="",this.options.repeat==="none"&&(this.style.backgroundRepeat="no-repeat",this.style.backgroundPosition=this.options.position||"center")),this.options.container||(this.style.position="fixed"),this.options.scrollHeight){let t=this.options.scrollHeight;this.style.height=isNaN(Number(t))?t:t+"px"}this.watermarkDom.setAttribute("style",ro(this.style))}return this.watermarkDom.setAttribute(Qn,this.watermarkTag),this.watermarkDom});_render(){return so(this,null,function*(){this._destroyMutationObserver(),this.container=Sf(this.options.container),this.watermarkHost||(this.watermarkHost=kf(this.watermarkTag),this.container.append(this.watermarkHost)),this.watermarkDom=yield this._getWatermarkDom(),this.watermarkHost&&(this.watermarkHost.childNodes||[]).forEach(e=>{this.watermarkHost.removeChild(e)}),typeof this.watermarkHost.attachShadow=="function"?this.shadowRoot||(this.shadowRoot=this.watermarkHost.attachShadow({mode:"open"})):this.shadowRoot=this.watermarkHost,this.shadowRoot.append(this.watermarkDom),MutationObserver&&this.options.secure&&(this.mutationObserver=new MutationObserver(r=>{r.forEach(e=>{if(this._shouldRerender(e)){this.destroy(),this._render();return}})}),this.mutationObserver.observe(this.container,Yc),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Yc))})}};var Df=(()=>{class i{options={};container;secure=!0;zIndex=9999;scrollHeight;_elementRef=R(F);_ngZone=R($);_watermark;ngOnInit(){let e=this._elementRef.nativeElement;this._watermark=this._ngZone.runOutsideAngular(()=>new ja(ye(A({},this.options),{container:this.container||(e.childNodes.length>0?e:null),secure:this.secure,zIndex:this.zIndex,scrollHeight:this.scrollHeight})))}ngOnChanges(){this.update(this.options)}ngOnDestroy(){this.destroy()}update(e){this._watermark?.update(e)}show(){this._watermark?.show()}hide(){this._watermark?.hide()}destroy(){this._watermark?.destroy()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","watermark",""]],hostVars:2,hostBindings:function(t,n){t&2&&Ae("position","relative")},inputs:{options:[0,"watermarkOptions","options"],container:[0,"watermarkContainer","container"],secure:[2,"watermarkSecure","secure",v],zIndex:[2,"watermarkZIndex","zIndex",Te],scrollHeight:[0,"watermarkScrollHeight","scrollHeight"]},exportAs:["watermark"],standalone:!0,features:[ne,se]})}return i})();var rE=["*",[["mat-toolbar-row"]]],oE=["*","mat-toolbar-row"],aE=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return i})(),Af=(()=>{class i{constructor(e,t,n){this._elementRef=e,this._platform=t,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(le),c(X))}}static{this.\u0275cmp=N({type:i,selectors:[["mat-toolbar"]],contentQueries:function(t,n,o){if(t&1&&Y(o,aE,5),t&2){let a;k(a=M())&&(n._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(t,n){t&2&&(Ne(n.color?"mat-"+n.color:""),B("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",n._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[z],ngContentSelectors:oE,decls:2,vars:0,template:function(t,n){t&1&&(de(rE),q(0),q(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-app-surface));color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-app-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-app-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-app-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-app-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-app-title-large-tracking));margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-app-on-surface))}.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;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return i})();var Rf=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[me,me]})}}return i})();var Of=(()=>{class i{options={text:"abc123"};config={secure:{type:"switch",name:"secure",default:!0},image:{type:"text",name:"image",description:"If both image and text are set, render the image first"},text:{type:"textarea",name:"text",default:"abc123"},repeat:{type:"buttonToggle",name:"repeat",options:[{label:"multiply",value:"multiply"},{label:"normal",value:"normal"},{label:"none",value:"none"}],default:"multiply"},position:{type:"text",name:"position",placeholder:"background-position"},width:{type:"number",name:"width",min:0,default:120,suffix:"px"},height:{type:"number",name:"height",min:0,default:60,suffix:"px"},gapX:{type:"number",name:"gapX",min:0,default:100,suffix:"px"},gapY:{type:"number",name:"gapY",min:0,default:100,suffix:"px"},offsetX:{type:"number",name:"offsetX",default:0,suffix:"px"},offsetY:{type:"number",name:"offsetY",default:0,suffix:"px"},opacity:{type:"slider",name:"opacity",min:0,max:1,step:.05,default:.15},rotate:{type:"slider",name:"rotate",min:-360,max:360,default:-24},fontSize:{type:"number",name:"fontSize",suffix:"px",default:16},fontWeight:{type:"select",name:"fontWeight",options:[{label:"100",value:100},{label:"200",value:200},{label:"300",value:300},{label:"400",value:400},{label:"500",value:500},{label:"600",value:600},{label:"700",value:700},{label:"800",value:800},{label:"900",value:900}],default:400},fontStyle:{type:"buttonToggle",name:"fontStyle",options:[{label:"normal",value:"normal"},{label:"italic",value:"italic"}],default:"normal"},fontVariant:{type:"buttonToggle",name:"fontVariant",options:[{label:"normal",value:"normal"},{label:"small-caps",value:"small-caps"}],default:"normal"},fontColor:{type:"fill",name:"fontColor",default:"#000"},fontFamily:{type:"select",name:"fontFamily",options:[{label:"sans-serif",value:"sans-serif"},{label:"serif",value:"serif"},{label:"monospace",value:"monospace"},{label:"Arial",value:"Arial"},{label:"Courier New",value:"Courier New"},{label:"Microsoft YaHei",value:"Microsoft YaHei"}],useFont:!0,default:"sans-serif"}};ngOnInit(){}onModelChange(e){this.options=e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=N({type:i,selectors:[["app-root"]],standalone:!0,features:[z],decls:12,vars:2,consts:[[1,"container"],["mat-icon-button","","href","https://github.com/acrodata/watermark","target","_blank"],["focusable","false","viewBox","0 0 51.8 50.4","xmlns","http://www.w3.org/2000/svg"],["d",`M25.9,0.2C11.8,0.2,0.3,11.7,0.3,25.8c0,11.3,7.3,20.9,17.5,24.3c1.3,0.2,1.7-0.6,1.7-1.2c0-0.6,0-2.6,0-4.8 + c-7.1,1.5-8.6-3-8.6-3c-1.2-3-2.8-3.7-2.8-3.7c-2.3-1.6,0.2-1.6,0.2-1.6c2.6,0.2,3.9,2.6,3.9,2.6c2.3,3.9,6,2.8,7.5,2.1 + c0.2-1.7,0.9-2.8,1.6-3.4c-5.7-0.6-11.7-2.8-11.7-12.7c0-2.8,1-5.1,2.6-6.9c-0.3-0.7-1.1-3.3,0.3-6.8c0,0,2.1-0.7,7,2.6 + c2-0.6,4.2-0.9,6.4-0.9c2.2,0,4.4,0.3,6.4,0.9c4.9-3.3,7-2.6,7-2.6c1.4,3.5,0.5,6.1,0.3,6.8c1.6,1.8,2.6,4.1,2.6,6.9 + c0,9.8-6,12-11.7,12.6c0.9,0.8,1.7,2.4,1.7,4.7c0,3.4,0,6.2,0,7c0,0.7,0.5,1.5,1.8,1.2c10.2-3.4,17.5-13,17.5-24.3 + C51.5,11.7,40.1,0.2,25.9,0.2z`],[3,"modelChange","config"],["watermark","",3,"watermarkOptions"]],template:function(t,n){t&1&&(h(0,"div",0)(1,"div")(2,"mat-toolbar")(3,"span"),ee(4,"Watermark"),m(),h(5,"a",1),kt(),h(6,"svg",2),y(7,"path",3),m()()(),dd(),h(8,"gui-form",4),S("modelChange",function(a){return n.onModelChange(a)}),m()(),h(9,"div",5)(10,"p"),ee(11," Add watermark to your page. "),m()()()),t&2&&(d(8),f("config",n.config),d(),f("watermarkOptions",n.options))},dependencies:[Df,Tf,qc,$n,ip,Rf,Af],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:300px 1fr;height:100%;padding:16px}mat-toolbar[_ngcontent-%COMP%]{--mat-toolbar-standard-height: 56px;justify-content:space-between}[watermark][_ngcontent-%COMP%]{padding:0 16px;border:1px solid var(--mat-divider-color)}"]})}return i})();au(Of,qu).catch(i=>console.error(i)); diff --git a/main-HF2JYXOL.js b/main-HF2JYXOL.js deleted file mode 100644 index bf1400c..0000000 --- a/main-HF2JYXOL.js +++ /dev/null @@ -1,62 +0,0 @@ -import{$ as N,$a as uo,$b as Be,A as ed,Aa as F,Ab as h,Ac as Ld,B as Se,Ba as sn,Bb as m,Bc as Vd,C as ve,Ca as ud,Cb as w,Cc as K,D as Kn,Da as tr,Db as ar,Dc as mn,E as Wt,Ea as hd,Eb as sr,Ec as jd,F as Fi,Fa as Li,Fb as Ja,Fc as pn,G as St,Ga as ke,Gb as X,Gc as fn,H as qa,Ha as ir,Hb as Mt,Hc as gn,I as qe,Ia as ln,Ib as Id,Ic as Lt,J as td,Ja as cn,Jb as I,Jc as Oe,K as ni,Ka as md,Kb as Sd,Kc as Bd,L as ri,La as pd,Lb as u,Lc as zd,M as vi,Ma as fd,Mb as he,Mc as ns,N as Ya,Na as gd,Nb as Z,Nc as Ud,O as id,Oa as _d,Ob as kd,P as nd,Pa as bd,Pb as Y,Q as rd,Qa as vd,Qb as q,Qc as Dt,R as od,Ra as gt,Rb as k,Rc as rt,S as Qa,Sa as Vi,Sb as M,T as an,Ta as nr,Tb as Md,Tc as Re,U as He,Ua as rr,Ub as Dd,Uc as bt,V as Ye,Va as d,Vb as _e,Vc as Hd,W as re,Wa as c,Wb as te,Wc as tt,X as ad,Xa as or,Xb as ce,Xc as Gd,Y as we,Ya as z,Yb as xi,Yc as $d,Z as Te,Za as yd,Zb as Ve,_ as le,_a as dn,_b as je,a as A,aa as V,ab as un,ac as $,b as ye,ba as sd,bb as $e,bc as H,ca as O,cb as xd,cc as mo,d as ao,da as Xa,db as Za,dc as Xe,e as fe,ea as E,eb as yi,ec as Me,f as Kc,fa as R,fb as Cd,fc as Pt,g as ft,ga as Jn,gb as be,gc as lr,h as Ga,ha as L,hb as oe,hc as es,i as so,ia as j,ib as wd,ic as ts,j as P,ja as S,jb as Td,jc as _t,k as it,ka as ld,kb as b,kc as po,l as $a,la as er,lb as ho,lc as fo,m as Wa,ma as cd,mb as Yt,mc as Ad,n as lt,na as Pi,nb as ee,nc as cr,o as ct,oa as oi,ob as f,oc as is,p as U,pa as se,pb as Ae,pc as Rd,q as Oi,qa as y,qb as B,qc as Od,r as Qn,ra as x,rb as Qt,rc as Q,s as Jc,sa as qt,sb as Qe,sc as Fd,t as J,ta as kt,tb as ji,tc as Pd,u as Xn,ua as Ge,ub as Ka,uc as v,v as It,va as et,vb as C,vc as Ee,w as lo,wa as dd,wb as Ed,wc as ai,x as Zn,xa as T,xb as nt,xc as Nt,y as co,ya as W,yb as Ne,yc as Nd,z as Je,za as Ni,zb as Le,zc as hn}from"./chunk-HTEVMZPS.js";var os=class{};var _n=class i{constructor(r){this.normalizedNames=new Map,this.lazyUpdate=null,r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(` -`).forEach(e=>{let t=e.indexOf(":");if(t>0){let n=e.slice(0,t),o=n.toLowerCase(),a=e.slice(t+1).trim();this.maybeSetNormalizedName(n,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,t)=>{this.setHeaderEntries(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let t=r.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(r.name,e);let n=(r.op==="a"?this.headers.get(e):void 0)||[];n.push(...t),this.headers.set(e,n);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}setHeaderEntries(r,e){let t=(Array.isArray(e)?e:[e]).map(o=>o.toString()),n=r.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(r,n)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var as=class{encodeKey(r){return Wd(r)}encodeValue(r){return Wd(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function Ff(i,r){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[a,s]=o==-1?[r.decodeKey(n),""]:[r.decodeKey(n.slice(0,o)),r.decodeValue(n.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var Pf=/%(\d[a-f0-9])/gi,Nf={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Wd(i){return encodeURIComponent(i).replace(Pf,(r,e)=>Nf[e]??r)}function go(i){return`${i}`}var Ci=class i{constructor(r={}){if(this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new as,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Ff(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let t=r.fromObject[e],n=Array.isArray(t)?t.map(go):[go(t)];this.map.set(e,n)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(t=>{let n=r[t];Array.isArray(n)?n.forEach(o=>{e.push({param:t,value:o,op:"a"})}):e.push({param:t,value:n,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(go(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let t=this.map.get(r.param)||[],n=t.indexOf(go(r.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(r.param,t):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var ss=class{constructor(){this.map=new Map}set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function Lf(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function qd(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function Yd(i){return typeof Blob<"u"&&i instanceof Blob}function Qd(i){return typeof FormData<"u"&&i instanceof FormData}function Vf(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var dr=class i{constructor(r,e,t,n){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase();let o;if(Lf(this.method)||n?(this.body=t!==void 0?t:null,o=n):o=t,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.transferCache=o.transferCache),this.headers??=new _n,this.context??=new ss,!this.params)this.params=new Ci,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sD.set(G,r.setHeaders[G]),p)),r.setParams&&(g=Object.keys(r.setParams).reduce((D,G)=>D.set(G,r.setParams[G]),g)),new i(e,t,a,{params:g,headers:p,context:_,reportProgress:l,responseType:n,withCredentials:s,transferCache:o})}},Xd=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(Xd||{}),ls=class{constructor(r,e=200,t="OK"){this.headers=r.headers||new _n,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||t,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}};var ur=class i extends ls{constructor(r={}){super(r),this.type=Xd.Response,this.body=r.body!==void 0?r.body:null}clone(r={}){return new i({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}};function rs(i,r){return{body:r,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var _o=(()=>{class i{constructor(e){this.handler=e}request(e,t,n={}){let o;if(e instanceof dr)o=e;else{let l;n.headers instanceof _n?l=n.headers:l=new _n(n.headers);let p;n.params&&(n.params instanceof Ci?p=n.params:p=new Ci({fromObject:n.params})),o=new dr(e,t,n.body!==void 0?n.body:null,{headers:l,context:n.context,params:p,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials,transferCache:n.transferCache})}let a=U(o).pipe(Fi(l=>this.handler.handle(l)));if(e instanceof dr||n.observe==="events")return a;let s=a.pipe(ve(l=>l instanceof ur));switch(n.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(J(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(J(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(J(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return s.pipe(J(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new Ci().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,rs(n,t))}post(e,t,n={}){return this.request("POST",e,rs(n,t))}put(e,t,n={}){return this.request("PUT",e,rs(n,t))}static{this.\u0275fac=function(t){return new(t||i)(E(os))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})();var us=class extends Vd{constructor(){super(...arguments),this.supportsDOMEvents=!0}},hs=class i extends us{static makeCurrent(){Ld(new i)}onAndCancel(r,e,t){return r.addEventListener(e,t),()=>{r.removeEventListener(e,t)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Bf();return e==null?null:zf(e)}resetBaseElement(){hr=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return jd(document.cookie,r)}},hr=null;function Bf(){return hr=hr||document.querySelector("base"),hr?hr.getAttribute("href"):null}function zf(i){return new URL(i,document.baseURI).pathname}var Uf=(()=>{class i{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})(),ms=new O(""),tu=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(n=>{n.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new Te(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||i)(E(ms),E(W))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})(),bo=class{constructor(r){this._doc=r}},cs="ng-app-id",iu=(()=>{class i{constructor(e,t,n,o={}){this.doc=e,this.appId=t,this.nonce=n,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ns(o),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(n=>n.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${cs}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(n=>{n.textContent!=null&&t.set(n.textContent,n)}),t}return null}changeUsageCount(e,t){let n=this.styleRef;if(n.has(e)){let o=n.get(e);return o.usage+=t,o.usage}return n.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let n=this.styleNodesInDOM,o=n?.get(t);if(o?.parentNode===e)return n.delete(t),o.removeAttribute(cs),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=t,this.platformIsServer&&a.setAttribute(cs,this.appId),e.appendChild(a),a}}addStyleToHost(e,t){let n=this.getStyleElement(e,t),o=this.styleRef,a=o.get(t)?.elements;a?a.push(n):o.set(t,{elements:[n],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||i)(E(K),E(tr),E(ir,8),E(Li))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})(),ds={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/Math/MathML"},gs=/%COMP%/g,nu="%COMP%",Hf=`_nghost-${nu}`,Gf=`_ngcontent-${nu}`,$f=!0,Wf=new O("",{providedIn:"root",factory:()=>$f});function qf(i){return Gf.replace(gs,i)}function Yf(i){return Hf.replace(gs,i)}function ru(i,r){return r.map(e=>e.replace(gs,i))}var vo=(()=>{class i{constructor(e,t,n,o,a,s,l,p=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=ns(s),this.defaultRenderer=new mr(e,a,l,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Jn.ShadowDom&&(t=ye(A({},t),{encapsulation:Jn.Emulated}));let n=this.getOrCreateRenderer(e,t);return n instanceof yo?n.applyToHost(e):n instanceof pr&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,o=n.get(t.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,p=this.sharedStylesHost,g=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(t.encapsulation){case Jn.Emulated:o=new yo(l,p,t,this.appId,g,a,s,_);break;case Jn.ShadowDom:return new ps(l,p,e,t,a,s,this.nonce,_);default:o=new pr(l,p,t,g,a,s,_);break}n.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||i)(E(tu),E(iu),E(tr),E(Wf),E(K),E(Li),E(W),E(ir))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})(),mr=class{constructor(r,e,t,n){this.eventManager=r,this.doc=e,this.ngZone=t,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(r,e){return e?this.doc.createElementNS(ds[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Kd(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Kd(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new Te(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,n){if(n){e=n+":"+e;let o=ds[n];o?r.setAttributeNS(o,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let n=ds[t];n?r.removeAttributeNS(n,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,n){n&(rr.DashCase|rr.Important)?r.style.setProperty(e,t,n&rr.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&rr.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t){if(typeof r=="string"&&(r=hn().getGlobalEventTarget(this.doc,r),!r))throw new Error(`Unsupported event target ${r} for event ${e}`);return this.eventManager.addEventListener(r,e,this.decoratePreventDefault(t))}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function Kd(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var ps=class extends mr{constructor(r,e,t,n,o,a,s,l){super(r,o,a,l),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let p=ru(n.id,n.styles);for(let g of p){let _=document.createElement("style");s&&_.setAttribute("nonce",s),_.textContent=g,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},pr=class extends mr{constructor(r,e,t,n,o,a,s,l){super(r,o,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=n,this.styles=l?ru(l,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},yo=class extends pr{constructor(r,e,t,n,o,a,s,l){let p=n+"-"+t.id;super(r,e,t,o,a,s,l,p),this.contentAttr=qf(p),this.hostAttr=Yf(p)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}},Qf=(()=>{class i extends bo{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}static{this.\u0275fac=function(t){return new(t||i)(E(K))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})(),Jd=["alt","control","meta","shift"],Xf={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Zf={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},Kf=(()=>{class i extends bo{constructor(e){super(e)}supports(e){return i.parseEventName(e)!=null}addEventListener(e,t,n){let o=i.parseEventName(t),a=i.eventCallback(o.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hn().onAndCancel(e,o.domEventName,a))}static parseEventName(e){let t=e.toLowerCase().split("."),n=t.shift();if(t.length===0||!(n==="keydown"||n==="keyup"))return null;let o=i._normalizeKey(t.pop()),a="",s=t.indexOf("code");if(s>-1&&(t.splice(s,1),a="code."),Jd.forEach(p=>{let g=t.indexOf(p);g>-1&&(t.splice(g,1),a+=p+".")}),a+=o,t.length!=0||o.length===0)return null;let l={};return l.domEventName=n,l.fullKey=a,l}static matchEventFullKeyCode(e,t){let n=Xf[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(n=e.code,o="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),Jd.forEach(a=>{if(a!==n){let s=Zf[a];s(e)&&(o+=a+".")}}),o+=n,o===t)}static eventCallback(e,t,n){return o=>{i.matchEventFullKeyCode(o,e)&&n.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||i)(E(K))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})();function ou(i,r){return Pd(A({rootComponent:i},Jf(r)))}function Jf(i){return{appProviders:[...rg,...i?.providers??[]],platformProviders:ng}}function eg(){hs.makeCurrent()}function tg(){return new Ni}function ig(){return ud(document),document}var ng=[{provide:Li,useValue:Bd},{provide:hd,useValue:eg,multi:!0},{provide:K,useFactory:ig,deps:[]}];var rg=[{provide:cd,useValue:"root"},{provide:Ni,useFactory:tg,deps:[]},{provide:ms,useClass:Qf,multi:!0,deps:[K,W,Li]},{provide:ms,useClass:Kf,multi:!0,deps:[K]},vo,iu,tu,{provide:uo,useExisting:vo},{provide:Ud,useClass:Uf,deps:[]},[]];var au=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||i)(E(K))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var fr=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:function(t){let n=null;return t?n=new(t||i):n=E(og),n},providedIn:"root"})}}return i})(),og=(()=>{class i extends fr{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case gt.NONE:return t;case gt.HTML:return cn(t,"HTML")?ln(t):vd(this._doc,String(t)).toString();case gt.STYLE:return cn(t,"Style")?ln(t):t;case gt.SCRIPT:if(cn(t,"Script"))return ln(t);throw new Te(5200,!1);case gt.URL:return cn(t,"URL")?ln(t):bd(String(t));case gt.RESOURCE_URL:if(cn(t,"ResourceURL"))return ln(t);throw new Te(5201,!1);default:throw new Te(5202,!1)}}bypassSecurityTrustHtml(e){return md(e)}bypassSecurityTrustStyle(e){return pd(e)}bypassSecurityTrustScript(e){return fd(e)}bypassSecurityTrustUrl(e){return gd(e)}bypassSecurityTrustResourceUrl(e){return _d(e)}static{this.\u0275fac=function(t){return new(t||i)(E(K))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ag="@",sg=(()=>{class i{constructor(e,t,n,o,a){this.doc=e,this.delegate=t,this.zone=n,this.animationType=o,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=R(yd,{optional:!0}),this.loadingSchedulerFn=R(lg,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-II77XEOM.js").then(n=>n),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(n=>{throw new Te(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:o})=>{this._engine=n(this.animationType,this.doc);let a=new o(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let o=new bs(n);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let s=a.createRenderer(e,t);o.use(s),this.scheduler?.notify(10)}).catch(a=>{o.use(n)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static{this.\u0275fac=function(t){or()}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})(),bs=class{constructor(r){this.delegate=r,this.replay=[],this.\u0275type=1}use(r){if(this.delegate=r,this.replay!==null){for(let e of this.replay)e(r);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}get destroyNode(){return this.delegate.destroyNode}appendChild(r,e){this.delegate.appendChild(r,e)}insertBefore(r,e,t,n){this.delegate.insertBefore(r,e,t,n)}removeChild(r,e,t){this.delegate.removeChild(r,e,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,n){this.delegate.setAttribute(r,e,t,n)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,n){this.delegate.setStyle(r,e,t,n)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(r,e,t)),this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.shouldReplay(e)&&this.replay.push(n=>n.listen(r,e,t)),this.delegate.listen(r,e,t)}shouldReplay(r){return this.replay!==null&&r.startsWith(ag)}},lg=new O("");function su(i="animations"){return xd("NgAsyncAnimations"),er([{provide:uo,useFactory:(r,e,t)=>new sg(r,e,t,i),deps:[K,vo,W]},{provide:ke,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}])}var de="primary",Rr=Symbol("RouteTitle"),ws=class{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function wn(i){return new ws(i)}function dg(i,r,e){let t=e.path.split("/");if(t.length>i.length||e.pathMatch==="full"&&(r.hasChildren()||t.lengtht[o]===n)}else return i===r}function gu(i){return i.length>0?i[i.length-1]:null}function wi(i){return Qn(i)?i:fo(i)?ct(Promise.resolve(i)):U(i)}var hg={exact:bu,subset:vu},_u={exact:mg,subset:pg,ignored:()=>!0};function lu(i,r,e){return hg[e.paths](i.root,r.root,e.matrixParams)&&_u[e.queryParams](i.queryParams,r.queryParams)&&!(e.fragment==="exact"&&i.fragment!==r.fragment)}function mg(i,r){return Xt(i,r)}function bu(i,r,e){if(!zi(i.segments,r.segments)||!wo(i.segments,r.segments,e)||i.numberOfChildren!==r.numberOfChildren)return!1;for(let t in r.children)if(!i.children[t]||!bu(i.children[t],r.children[t],e))return!1;return!0}function pg(i,r){return Object.keys(r).length<=Object.keys(i).length&&Object.keys(r).every(e=>fu(i[e],r[e]))}function vu(i,r,e){return yu(i,r,r.segments,e)}function yu(i,r,e,t){if(i.segments.length>e.length){let n=i.segments.slice(0,e.length);return!(!zi(n,e)||r.hasChildren()||!wo(n,e,t))}else if(i.segments.length===e.length){if(!zi(i.segments,e)||!wo(i.segments,e,t))return!1;for(let n in r.children)if(!i.children[n]||!vu(i.children[n],r.children[n],t))return!1;return!0}else{let n=e.slice(0,i.segments.length),o=e.slice(i.segments.length);return!zi(i.segments,n)||!wo(i.segments,n,t)||!i.children[de]?!1:yu(i.children[de],r,o,t)}}function wo(i,r,e){return r.every((t,n)=>_u[e](i[n].parameters,t.parameters))}var li=class{constructor(r=new xe([],{}),e={},t=null){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=wn(this.queryParams),this._queryParamMap}toString(){return _g.serialize(this)}},xe=class{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return To(this)}},Bi=class{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=wn(this.parameters),this._parameterMap}toString(){return Cu(this)}};function fg(i,r){return zi(i,r)&&i.every((e,t)=>Xt(e.parameters,r[t].parameters))}function zi(i,r){return i.length!==r.length?!1:i.every((e,t)=>e.path===r[t].path)}function gg(i,r){let e=[];return Object.entries(i.children).forEach(([t,n])=>{t===de&&(e=e.concat(r(n,t)))}),Object.entries(i.children).forEach(([t,n])=>{t!==de&&(e=e.concat(r(n,t)))}),e}var Xs=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:()=>new Cr,providedIn:"root"})}}return i})(),Cr=class{parse(r){let e=new Is(r);return new li(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${gr(r.root,!0)}`,t=yg(r.queryParams),n=typeof r.fragment=="string"?`#${bg(r.fragment)}`:"";return`${e}${t}${n}`}},_g=new Cr;function To(i){return i.segments.map(r=>Cu(r)).join("/")}function gr(i,r){if(!i.hasChildren())return To(i);if(r){let e=i.children[de]?gr(i.children[de],!1):"",t=[];return Object.entries(i.children).forEach(([n,o])=>{n!==de&&t.push(`${n}:${gr(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=gg(i,(t,n)=>n===de?[gr(i.children[de],!1)]:[`${n}:${gr(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[de]!=null?`${To(i)}/${e[0]}`:`${To(i)}/(${e.join("//")})`}}function xu(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xo(i){return xu(i).replace(/%3B/gi,";")}function bg(i){return encodeURI(i)}function Es(i){return xu(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Eo(i){return decodeURIComponent(i)}function cu(i){return Eo(i.replace(/\+/g,"%20"))}function Cu(i){return`${Es(i.path)}${vg(i.parameters)}`}function vg(i){return Object.entries(i).map(([r,e])=>`;${Es(r)}=${Es(e)}`).join("")}function yg(i){let r=Object.entries(i).map(([e,t])=>Array.isArray(t)?t.map(n=>`${xo(e)}=${xo(n)}`).join("&"):`${xo(e)}=${xo(t)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var xg=/^[^\/()?;#]+/;function vs(i){let r=i.match(xg);return r?r[0]:""}var Cg=/^[^\/()?;=#]+/;function wg(i){let r=i.match(Cg);return r?r[0]:""}var Tg=/^[^=?&#]+/;function Eg(i){let r=i.match(Tg);return r?r[0]:""}var Ig=/^[^&#]+/;function Sg(i){let r=i.match(Ig);return r?r[0]:""}var Is=class{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[de]=new xe(r,e)),t}parseSegment(){let r=vs(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new Te(4009,!1);return this.capture(r),new Bi(Eo(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=wg(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let n=vs(this.remaining);n&&(t=n,this.capture(t))}r[Eo(e)]=Eo(t)}parseQueryParam(r){let e=Eg(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let a=Sg(this.remaining);a&&(t=a,this.capture(t))}let n=cu(e),o=cu(t);if(r.hasOwnProperty(n)){let a=r[n];Array.isArray(a)||(a=[a],r[n]=a),a.push(o)}else r[n]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=vs(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new Te(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=de);let a=this.parseChildren();e[o]=Object.keys(a).length===1?a[de]:new xe([],a),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new Te(4011,!1)}};function wu(i){return i.segments.length>0?new xe([],{[de]:i}):i}function Tu(i){let r={};for(let[t,n]of Object.entries(i.children)){let o=Tu(n);if(t===de&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))r[a]=s;else(o.segments.length>0||o.hasChildren())&&(r[t]=o)}let e=new xe(i.segments,r);return kg(e)}function kg(i){if(i.numberOfChildren===1&&i.children[de]){let r=i.children[de];return new xe(i.segments.concat(r.segments),r.children)}return i}function wr(i){return i instanceof li}function Mg(i,r,e=null,t=null){let n=Eu(i);return Iu(n,r,e,t)}function Eu(i){let r;function e(o){let a={};for(let l of o.children){let p=e(l);a[l.outlet]=p}let s=new xe(o.url,a);return o===i&&(r=s),s}let t=e(i.root),n=wu(t);return r??n}function Iu(i,r,e,t){let n=i;for(;n.parent;)n=n.parent;if(r.length===0)return ys(n,n,n,e,t);let o=Dg(r);if(o.toRoot())return ys(n,n,new xe([],{}),e,t);let a=Ag(o,n,i),s=a.processChildren?vr(a.segmentGroup,a.index,o.commands):ku(a.segmentGroup,a.index,o.commands);return ys(n,a.segmentGroup,s,e,t)}function Io(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Tr(i){return typeof i=="object"&&i!=null&&i.outlets}function ys(i,r,e,t,n){let o={};t&&Object.entries(t).forEach(([l,p])=>{o[l]=Array.isArray(p)?p.map(g=>`${g}`):`${p}`});let a;i===r?a=e:a=Su(i,r,e);let s=wu(Tu(a));return new li(s,o,n)}function Su(i,r,e){let t={};return Object.entries(i.children).forEach(([n,o])=>{o===r?t[n]=e:t[n]=Su(o,r,e)}),new xe(i.segments,t)}var So=class{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&Io(t[0]))throw new Te(4003,!1);let n=t.find(Tr);if(n&&n!==gu(t))throw new Te(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Dg(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new So(!0,0,i);let r=0,e=!1,t=i.reduce((n,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,p])=>{s[l]=typeof p=="string"?p.split("/"):p}),[...n,{outlets:s}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?r++:s!=""&&n.push(s))}),n):[...n,o]},[]);return new So(e,r,t)}var yn=class{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}};function Ag(i,r,e){if(i.isAbsolute)return new yn(r,!0,0);if(!e)return new yn(r,!1,NaN);if(e.parent===null)return new yn(e,!0,0);let t=Io(i.commands[0])?0:1,n=e.segments.length-1+t;return Rg(e,n,i.numberOfDoubleDots)}function Rg(i,r,e){let t=i,n=r,o=e;for(;o>n;){if(o-=n,t=t.parent,!t)throw new Te(4005,!1);n=t.segments.length}return new yn(t,!1,n-o)}function Og(i){return Tr(i[0])?i[0].outlets:{[de]:i}}function ku(i,r,e){if(i??=new xe([],{}),i.segments.length===0&&i.hasChildren())return vr(i,r,e);let t=Fg(i,r,e),n=e.slice(t.commandIndex);if(t.match&&t.pathIndexo!==de)&&i.children[de]&&i.numberOfChildren===1&&i.children[de].segments.length===0){let o=vr(i.children[de],r,e);return new xe(i.segments,o.children)}return Object.entries(t).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(n[o]=ku(i.children[o],r,a))}),Object.entries(i.children).forEach(([o,a])=>{t[o]===void 0&&(n[o]=a)}),new xe(i.segments,n)}}function Fg(i,r,e){let t=0,n=r,o={match:!1,pathIndex:0,commandIndex:0};for(;n=e.length)return o;let a=i.segments[n],s=e[t];if(Tr(s))break;let l=`${s}`,p=t0&&l===void 0)break;if(l&&p&&typeof p=="object"&&p.outlets===void 0){if(!uu(l,p,a))return o;t+=2}else{if(!uu(l,{},a))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function Ss(i,r,e){let t=i.segments.slice(0,r),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(r[e]=Ss(new xe([],{}),0,t))}),r}function du(i){let r={};return Object.entries(i).forEach(([e,t])=>r[e]=`${t}`),r}function uu(i,r,e){return i==e.path&&Xt(r,e.parameters)}var yr="imperative",Ze=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(Ze||{}),At=class{constructor(r,e){this.id=r,this.url=e}},Er=class extends At{constructor(r,e,t="imperative",n=null){super(r,e),this.type=Ze.NavigationStart,this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ui=class extends At{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=Ze.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},yt=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(yt||{}),ks=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(ks||{}),si=class extends At{constructor(r,e,t,n){super(r,e),this.reason=t,this.code=n,this.type=Ze.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Hi=class extends At{constructor(r,e,t,n){super(r,e),this.reason=t,this.code=n,this.type=Ze.NavigationSkipped}},Ir=class extends At{constructor(r,e,t,n){super(r,e),this.error=t,this.target=n,this.type=Ze.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ko=class extends At{constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n,this.type=Ze.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ms=class extends At{constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n,this.type=Ze.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ds=class extends At{constructor(r,e,t,n,o){super(r,e),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o,this.type=Ze.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},As=class extends At{constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n,this.type=Ze.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rs=class extends At{constructor(r,e,t,n){super(r,e),this.urlAfterRedirects=t,this.state=n,this.type=Ze.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Os=class{constructor(r){this.route=r,this.type=Ze.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Fs=class{constructor(r){this.route=r,this.type=Ze.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ps=class{constructor(r){this.snapshot=r,this.type=Ze.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ns=class{constructor(r){this.snapshot=r,this.type=Ze.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ls=class{constructor(r){this.snapshot=r,this.type=Ze.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vs=class{constructor(r){this.snapshot=r,this.type=Ze.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Sr=class{},Tn=class{constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Ng(i,r){return i.providers&&!i._injector&&(i._injector=Td(i.providers,r,`Route: ${i.path}`)),i._injector??r}function Vt(i){return i.outlet||de}function Lg(i,r){let e=i.filter(t=>Vt(t)===r);return e.push(...i.filter(t=>Vt(t)!==r)),e}function Or(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let r=i.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var js=class{get injector(){return Or(this.route?.snapshot)??this.rootInjector}set injector(r){}constructor(r){this.rootInjector=r,this.outlet=null,this.route=null,this.children=new Po(this.rootInjector),this.attachRef=null}},Po=(()=>{class i{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,t){let n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new js(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(t){return new(t||i)(E(Pi))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Mo=class{constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Bs(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){let e=Bs(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=zs(r,this._root);return e.length<2?[]:e[e.length-2].children.map(n=>n.value).filter(n=>n!==r)}pathFromRoot(r){return zs(r,this._root).map(e=>e.value)}};function Bs(i,r){if(i===r.value)return r;for(let e of r.children){let t=Bs(i,e);if(t)return t}return null}function zs(i,r){if(i===r.value)return[r];for(let e of r.children){let t=zs(i,e);if(t.length)return t.unshift(r),t}return[]}var vt=class{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function vn(i){let r={};return i&&i.children.forEach(e=>r[e.value.outlet]=e),r}var Do=class extends Mo{constructor(r,e){super(r),this.snapshot=e,Zs(this,r)}toString(){return this.snapshot.toString()}};function Mu(i){let r=Vg(i),e=new it([new Bi("",{})]),t=new it({}),n=new it({}),o=new it({}),a=new it(""),s=new En(e,t,o,a,n,de,i,r.root);return s.snapshot=r.root,new Do(new vt(s,[]),r)}function Vg(i){let r={},e={},t={},n="",o=new xn([],r,t,n,e,de,i,null,{});return new Ro("",new vt(o,[]))}var En=class{constructor(r,e,t,n,o,a,s,l){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(J(p=>p[Rr]))??U(void 0),this.url=r,this.params=e,this.queryParams=t,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(J(r=>wn(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(J(r=>wn(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ao(i,r,e="emptyOnly"){let t,{routeConfig:n}=i;return r!==null&&(e==="always"||n?.path===""||!r.component&&!r.routeConfig?.loadComponent)?t={params:A(A({},r.params),i.params),data:A(A({},r.data),i.data),resolve:A(A(A(A({},i.data),r.data),n?.data),i._resolvedData)}:t={params:A({},i.params),data:A({},i.data),resolve:A(A({},i.data),i._resolvedData??{})},n&&Au(n)&&(t.resolve[Rr]=n.title),t}var xn=class{get title(){return this.data?.[Rr]}constructor(r,e,t,n,o,a,s,l,p){this.url=r,this.params=e,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=p}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=wn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=wn(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Ro=class extends Mo{constructor(r,e){super(e),this.url=r,Zs(this,e)}toString(){return Du(this._root)}};function Zs(i,r){r.value._routerState=i,r.children.forEach(e=>Zs(i,e))}function Du(i){let r=i.children.length>0?` { ${i.children.map(Du).join(", ")} } `:"";return`${i.value}${r}`}function xs(i){if(i.snapshot){let r=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Xt(r.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),Xt(r.params,e.params)||i.paramsSubject.next(e.params),ug(r.url,e.url)||i.urlSubject.next(e.url),Xt(r.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Us(i,r){let e=Xt(i.params,r.params)&&fg(i.url,r.url),t=!i.parent!=!r.parent;return e&&!t&&(!i.parent||Us(i.parent,r.parent))}function Au(i){return typeof i.title=="string"||i.title===null}var jg=(()=>{class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=de,this.activateEvents=new T,this.deactivateEvents=new T,this.attachEvents=new T,this.detachEvents=new T,this.parentContexts=R(Po),this.location=R($e),this.changeDetector=R(Q),this.inputBinder=R(Ks,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Te(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Te(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Te(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Te(4013,!1);this._activatedRoute=e;let n=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new Hs(e,s,n.injector);this.activated=n.createComponent(a,{index:n.length,injector:l,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[se]})}}return i})(),Hs=class i{__ngOutletInjector(r){return new i(this.route,this.childContexts,r)}constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===En?this.route:r===Po?this.childContexts:this.parent.get(r,e)}},Ks=new O("");function Bg(i,r,e){let t=kr(i,r._root,e?e._root:void 0);return new Do(t,r)}function kr(i,r,e){if(e&&i.shouldReuseRoute(r.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=r.value;let n=zg(i,r,e);return new vt(t,n)}else{if(i.shouldAttach(r.value)){let o=i.retrieve(r.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=r.value,a.children=r.children.map(s=>kr(i,s)),a}}let t=Ug(r.value),n=r.children.map(o=>kr(i,o));return new vt(t,n)}}function zg(i,r,e){return r.children.map(t=>{for(let n of e.children)if(i.shouldReuseRoute(t.value,n.value.snapshot))return kr(i,t,n);return kr(i,t)})}function Ug(i){return new En(new it(i.url),new it(i.params),new it(i.queryParams),new it(i.fragment),new it(i.data),i.outlet,i.component,i)}var Mr=class{constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Ru="ngNavigationCancelingError";function Oo(i,r){let{redirectTo:e,navigationBehaviorOptions:t}=wr(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,n=Ou(!1,yt.Redirect);return n.url=e,n.navigationBehaviorOptions=t,n}function Ou(i,r){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[Ru]=!0,e.cancellationCode=r,e}function Hg(i){return Fu(i)&&wr(i.url)}function Fu(i){return!!i&&i[Ru]}var Gg=(i,r,e,t)=>J(n=>(new Gs(r,n.targetRouterState,n.currentRouterState,e,t).activate(i),n)),Gs=class{constructor(r,e,t,n,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),xs(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){let n=vn(e);r.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,n[a],t),delete n[a]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(r,e,t){let n=r.value,o=e?e.value:null;if(n===o)if(n.component){let a=t.getContext(n.outlet);a&&this.deactivateChildRoutes(r,e,a.children)}else this.deactivateChildRoutes(r,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let t=e.getContext(r.value.outlet),n=t&&r.value.component?t.children:e,o=vn(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);if(t&&t.outlet){let a=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:a,route:r,contexts:s})}}deactivateRouteAndOutlet(r,e){let t=e.getContext(r.value.outlet),n=t&&r.value.component?t.children:e,o=vn(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(r,e,t){let n=vn(e);r.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new Vs(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Ns(r.value.snapshot))}activateRoutes(r,e,t){let n=r.value,o=e?e.value:null;if(xs(n),n===o)if(n.component){let a=t.getOrCreateContext(n.outlet);this.activateChildRoutes(r,e,a.children)}else this.activateChildRoutes(r,e,t);else if(n.component){let a=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),xs(s.route.value),this.activateChildRoutes(r,null,a.children)}else a.attachRef=null,a.route=n,a.outlet&&a.outlet.activateWith(n,a.injector),this.activateChildRoutes(r,null,a.children)}else this.activateChildRoutes(r,null,t)}},Fo=class{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Cn=class{constructor(r,e){this.component=r,this.route=e}};function $g(i,r,e){let t=i._root,n=r?r._root:null;return _r(t,n,e,[t.value])}function Wg(i){let r=i.routeConfig?i.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:i,guards:r}}function Sn(i,r){let e=Symbol(),t=r.get(i,e);return t===e?typeof i=="function"&&!sd(i)?i:r.get(i):t}function _r(i,r,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=vn(r);return i.children.forEach(a=>{qg(a,o[a.value.outlet],e,t.concat([a.value]),n),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>xr(s,e.getContext(a),n)),n}function qg(i,r,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=i.value,a=r?r.value:null,s=e?e.getContext(i.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=Yg(a,o,o.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new Fo(t)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?_r(i,r,s?s.children:null,t,n):_r(i,r,e,t,n),l&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new Cn(s.outlet.component,a))}else a&&xr(r,s,n),n.canActivateChecks.push(new Fo(t)),o.component?_r(i,null,s?s.children:null,t,n):_r(i,null,e,t,n);return n}function Yg(i,r,e){if(typeof e=="function")return e(i,r);switch(e){case"pathParamsChange":return!zi(i.url,r.url);case"pathParamsOrQueryParamsChange":return!zi(i.url,r.url)||!Xt(i.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Us(i,r)||!Xt(i.queryParams,r.queryParams);case"paramsChange":default:return!Us(i,r)}}function xr(i,r,e){let t=vn(i),n=i.value;Object.entries(t).forEach(([o,a])=>{n.component?r?xr(a,r.children.getContext(o),e):xr(a,null,e):xr(a,r,e)}),n.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Cn(r.outlet.component,n)):e.canDeactivateChecks.push(new Cn(null,n)):e.canDeactivateChecks.push(new Cn(null,n))}function Fr(i){return typeof i=="function"}function Qg(i){return typeof i=="boolean"}function Xg(i){return i&&Fr(i.canLoad)}function Zg(i){return i&&Fr(i.canActivate)}function Kg(i){return i&&Fr(i.canActivateChild)}function Jg(i){return i&&Fr(i.canDeactivate)}function e_(i){return i&&Fr(i.canMatch)}function Pu(i){return i instanceof Jc||i?.name==="EmptyError"}var Co=Symbol("INITIAL_VALUE");function In(){return Ye(i=>Xn(i.map(r=>r.pipe(qe(1),He(Co)))).pipe(J(r=>{for(let e of r)if(e!==!0){if(e===Co)return Co;if(e===!1||t_(e))return e}return!0}),ve(r=>r!==Co),qe(1)))}function t_(i){return wr(i)||i instanceof Mr}function i_(i,r){return It(e=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?U(ye(A({},e),{guardsResult:!0})):n_(a,t,n,i).pipe(It(s=>s&&Qg(s)?r_(t,o,i,r):U(s)),J(s=>ye(A({},e),{guardsResult:s})))})}function n_(i,r,e,t){return ct(i).pipe(It(n=>c_(n.component,n.route,e,r,t)),vi(n=>n!==!0,!0))}function r_(i,r,e,t){return ct(r).pipe(Fi(n=>lo(a_(n.route.parent,t),o_(n.route,t),l_(i,n.path,e),s_(i,n.route,e))),vi(n=>n!==!0,!0))}function o_(i,r){return i!==null&&r&&r(new Ls(i)),U(!0)}function a_(i,r){return i!==null&&r&&r(new Ps(i)),U(!0)}function s_(i,r,e){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return U(!0);let n=t.map(o=>Zn(()=>{let a=Or(r)??e,s=Sn(o,a),l=Zg(s)?s.canActivate(r,i):oi(a,()=>s(r,i));return wi(l).pipe(vi())}));return U(n).pipe(In())}function l_(i,r,e){let t=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(a=>Wg(a)).filter(a=>a!==null).map(a=>Zn(()=>{let s=a.guards.map(l=>{let p=Or(a.node)??e,g=Sn(l,p),_=Kg(g)?g.canActivateChild(t,i):oi(p,()=>g(t,i));return wi(_).pipe(vi())});return U(s).pipe(In())}));return U(o).pipe(In())}function c_(i,r,e,t,n){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return U(!0);let a=o.map(s=>{let l=Or(r)??n,p=Sn(s,l),g=Jg(p)?p.canDeactivate(i,r,e,t):oi(l,()=>p(i,r,e,t));return wi(g).pipe(vi())});return U(a).pipe(In())}function d_(i,r,e,t){let n=r.canLoad;if(n===void 0||n.length===0)return U(!0);let o=n.map(a=>{let s=Sn(a,i),l=Xg(s)?s.canLoad(r,e):oi(i,()=>s(r,e));return wi(l)});return U(o).pipe(In(),Nu(t))}function Nu(i){return Kc(we(r=>{if(typeof r!="boolean")throw Oo(i,r)}),J(r=>r===!0))}function u_(i,r,e,t){let n=r.canMatch;if(!n||n.length===0)return U(!0);let o=n.map(a=>{let s=Sn(a,i),l=e_(s)?s.canMatch(r,e):oi(i,()=>s(r,e));return wi(l)});return U(o).pipe(In(),Nu(t))}var Dr=class{constructor(r){this.segmentGroup=r||null}},Ar=class extends Error{constructor(r){super(),this.urlTree=r}};function bn(i){return Oi(new Dr(i))}function h_(i){return Oi(new Te(4e3,!1))}function m_(i){return Oi(Ou(!1,yt.GuardRejected))}var $s=class{constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let t=[],n=e.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return U(t);if(n.numberOfChildren>1||!n.children[de])return h_(`${r.redirectTo}`);n=n.children[de]}}applyRedirectCommands(r,e,t,n,o){if(typeof e!="string"){let s=e,{queryParams:l,fragment:p,routeConfig:g,url:_,outlet:D,params:G,data:ie,title:ae}=n,me=oi(o,()=>s({params:G,data:ie,queryParams:l,fragment:p,routeConfig:g,url:_,outlet:D,title:ae}));if(me instanceof li)throw new Ar(me);e=me}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t);if(e[0]==="/")throw new Ar(a);return a}applyRedirectCreateUrlTree(r,e,t,n){let o=this.createSegmentGroup(r,e.root,t,n);return new li(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let t={};return Object.entries(r).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);t[n]=e[s]}else t[n]=o}),t}createSegmentGroup(r,e,t,n){let o=this.createSegments(r,e.segments,t,n),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(r,l,t,n)}),new xe(o,a)}createSegments(r,e,t,n){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,n):this.findOrReturn(o,t))}findPosParam(r,e,t){let n=t[e.path.substring(1)];if(!n)throw new Te(4001,!1);return n}findOrReturn(r,e){let t=0;for(let n of e){if(n.path===r.path)return e.splice(t),n;t++}return r}},Ws={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function p_(i,r,e,t,n){let o=Lu(i,r,e);return o.matched?(t=Ng(r,t),u_(t,r,e,n).pipe(J(a=>a===!0?o:A({},Ws)))):U(o)}function Lu(i,r,e){if(r.path==="**")return f_(e);if(r.path==="")return r.pathMatch==="full"&&(i.hasChildren()||e.length>0)?A({},Ws):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let n=(r.matcher||dg)(e,i,r);if(!n)return A({},Ws);let o={};Object.entries(n.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=n.consumed.length>0?A(A({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:e.slice(n.consumed.length),parameters:a,positionalParamSegments:n.posParams??{}}}function f_(i){return{matched:!0,parameters:i.length>0?gu(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function hu(i,r,e,t){return e.length>0&&b_(i,e,t)?{segmentGroup:new xe(r,__(t,new xe(e,i.children))),slicedSegments:[]}:e.length===0&&v_(i,e,t)?{segmentGroup:new xe(i.segments,g_(i,e,t,i.children)),slicedSegments:e}:{segmentGroup:new xe(i.segments,i.children),slicedSegments:e}}function g_(i,r,e,t){let n={};for(let o of e)if(No(i,r,o)&&!t[Vt(o)]){let a=new xe([],{});n[Vt(o)]=a}return A(A({},t),n)}function __(i,r){let e={};e[de]=r;for(let t of i)if(t.path===""&&Vt(t)!==de){let n=new xe([],{});e[Vt(t)]=n}return e}function b_(i,r,e){return e.some(t=>No(i,r,t)&&Vt(t)!==de)}function v_(i,r,e){return e.some(t=>No(i,r,t))}function No(i,r,e){return(i.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function y_(i,r,e){return r.length===0&&!i.children[e]}var qs=class{};function x_(i,r,e,t,n,o,a="emptyOnly"){return new Ys(i,r,e,t,n,a,o).recognize()}var C_=31,Ys=class{constructor(r,e,t,n,o,a,s){this.injector=r,this.configLoader=e,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new $s(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new Te(4002,`'${r.segmentGroup}'`)}recognize(){let r=hu(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(J(({children:e,rootSnapshot:t})=>{let n=new vt(t,e),o=new Ro("",n),a=Mg(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}))}match(r){let e=new xn([],Object.freeze({}),Object.freeze(A({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),de,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,de,e).pipe(J(t=>({children:t,rootSnapshot:e})),Wt(t=>{if(t instanceof Ar)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Dr?this.noMatchError(t):t}))}processSegmentGroup(r,e,t,n,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(r,e,t,o):this.processSegment(r,e,t,t.segments,n,!0,o).pipe(J(a=>a instanceof vt?[a]:[]))}processChildren(r,e,t,n){let o=[];for(let a of Object.keys(t.children))a==="primary"?o.unshift(a):o.push(a);return ct(o).pipe(Fi(a=>{let s=t.children[a],l=Lg(e,a);return this.processSegmentGroup(r,l,s,a,n)}),rd((a,s)=>(a.push(...s),a)),qa(null),id(),It(a=>{if(a===null)return bn(t);let s=Vu(a);return w_(s),U(s)}))}processSegment(r,e,t,n,o,a,s){return ct(e).pipe(Fi(l=>this.processSegmentAgainstRoute(l._injector??r,e,l,t,n,o,a,s).pipe(Wt(p=>{if(p instanceof Dr)return U(null);throw p}))),vi(l=>!!l),Wt(l=>{if(Pu(l))return y_(t,n,o)?U(new qs):bn(t);throw l}))}processSegmentAgainstRoute(r,e,t,n,o,a,s,l){return Vt(t)!==a&&(a===de||!No(n,o,t))?bn(n):t.redirectTo===void 0?this.matchSegmentAgainstRoute(r,n,t,o,a,l):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(r,n,e,t,o,a,l):bn(n)}expandSegmentAgainstRouteUsingRedirect(r,e,t,n,o,a,s){let{matched:l,parameters:p,consumedSegments:g,positionalParamSegments:_,remainingSegments:D}=Lu(e,n,o);if(!l)return bn(e);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>C_&&(this.allowRedirects=!1));let G=new xn(o,p,Object.freeze(A({},this.urlTree.queryParams)),this.urlTree.fragment,mu(n),Vt(n),n.component??n._loadedComponent??null,n,pu(n)),ie=Ao(G,s,this.paramsInheritanceStrategy);G.params=Object.freeze(ie.params),G.data=Object.freeze(ie.data);let ae=this.applyRedirects.applyRedirectCommands(g,n.redirectTo,_,G,r);return this.applyRedirects.lineralizeSegments(n,ae).pipe(It(me=>this.processSegment(r,t,e,me.concat(D),a,!1,s)))}matchSegmentAgainstRoute(r,e,t,n,o,a){let s=p_(e,t,n,r,this.urlSerializer);return t.path==="**"&&(e.children={}),s.pipe(Ye(l=>l.matched?(r=t._injector??r,this.getChildConfig(r,t,n).pipe(Ye(({routes:p})=>{let g=t._loadedInjector??r,{parameters:_,consumedSegments:D,remainingSegments:G}=l,ie=new xn(D,_,Object.freeze(A({},this.urlTree.queryParams)),this.urlTree.fragment,mu(t),Vt(t),t.component??t._loadedComponent??null,t,pu(t)),ae=Ao(ie,a,this.paramsInheritanceStrategy);ie.params=Object.freeze(ae.params),ie.data=Object.freeze(ae.data);let{segmentGroup:me,slicedSegments:Ie}=hu(e,D,G,p);if(Ie.length===0&&me.hasChildren())return this.processChildren(g,p,me,ie).pipe(J($t=>new vt(ie,$t)));if(p.length===0&&Ie.length===0)return U(new vt(ie,[]));let bi=Vt(t)===o;return this.processSegment(g,p,me,Ie,bi?de:o,!0,ie).pipe(J($t=>new vt(ie,$t instanceof vt?[$t]:[])))}))):bn(e)))}getChildConfig(r,e,t){return e.children?U({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?U({routes:e._loadedRoutes,injector:e._loadedInjector}):d_(r,e,t,this.urlSerializer).pipe(It(n=>n?this.configLoader.loadChildren(r,e).pipe(we(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):m_(e))):U({routes:[],injector:r})}};function w_(i){i.sort((r,e)=>r.value.outlet===de?-1:e.value.outlet===de?1:r.value.outlet.localeCompare(e.value.outlet))}function T_(i){let r=i.value.routeConfig;return r&&r.path===""}function Vu(i){let r=[],e=new Set;for(let t of i){if(!T_(t)){r.push(t);continue}let n=r.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),e.add(n)):r.push(t)}for(let t of e){let n=Vu(t.children);r.push(new vt(t.value,n))}return r.filter(t=>!e.has(t))}function mu(i){return i.data||{}}function pu(i){return i.resolve||{}}function E_(i,r,e,t,n,o){return It(a=>x_(i,r,e,t,a.extractedUrl,n,o).pipe(J(({state:s,tree:l})=>ye(A({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function I_(i,r){return It(e=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return U(e);let o=new Set(n.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let p of ju(l))a.add(p);let s=0;return ct(a).pipe(Fi(l=>o.has(l)?S_(l,t,i,r):(l.data=Ao(l,l.parent,i).resolve,U(void 0))),we(()=>s++),Ya(1),It(l=>s===a.size?U(e):lt))})}function ju(i){let r=i.children.map(e=>ju(e)).flat();return[i,...r]}function S_(i,r,e,t){let n=i.routeConfig,o=i._resolve;return n?.title!==void 0&&!Au(n)&&(o[Rr]=n.title),k_(o,i,r,t).pipe(J(a=>(i._resolvedData=a,i.data=Ao(i,i.parent,e).resolve,null)))}function k_(i,r,e,t){let n=Ts(i);if(n.length===0)return U({});let o={};return ct(n).pipe(It(a=>M_(i[a],r,e,t).pipe(vi(),we(s=>{if(s instanceof Mr)throw Oo(new Cr,s);o[a]=s}))),Ya(1),td(o),Wt(a=>Pu(a)?lt:Oi(a)))}function M_(i,r,e,t){let n=Or(r)??t,o=Sn(i,n),a=o.resolve?o.resolve(r,e):oi(n,()=>o(r,e));return wi(a)}function Cs(i){return Ye(r=>{let e=i(r);return e?ct(e).pipe(J(()=>r)):U(r)})}var Bu=(()=>{class i{buildTitle(e){let t,n=e.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(o=>o.outlet===de);return t}getResolvedTitleForRoute(e){return e.data[Rr]}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:()=>R(D_),providedIn:"root"})}}return i})(),D_=(()=>{class i extends Bu{constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static{this.\u0275fac=function(t){return new(t||i)(E(au))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Js=new O("",{providedIn:"root",factory:()=>({})}),A_=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=L({type:i,selectors:[["ng-component"]],standalone:!0,features:[H],decls:1,vars:0,template:function(t,n){t&1&&w(0,"router-outlet")},dependencies:[jg],encapsulation:2})}}return i})();function el(i){let r=i.children&&i.children.map(el),e=r?ye(A({},i),{children:r}):A({},i);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==de&&(e.component=A_),e}var tl=new O(""),R_=(()=>{class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=R(is)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return U(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=wi(e.loadComponent()).pipe(J(zu),we(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ri(()=>{this.componentLoaders.delete(e)})),n=new so(t,()=>new P).pipe(Ga());return this.componentLoaders.set(e,n),n}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return U({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=O_(t,this.compiler,e,this.onLoadEndListener).pipe(ri(()=>{this.childrenLoaders.delete(t)})),a=new so(o,()=>new P).pipe(Ga());return this.childrenLoaders.set(t,a),a}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function O_(i,r,e,t){return wi(i.loadChildren()).pipe(J(zu),It(n=>n instanceof wd||Array.isArray(n)?U(n):ct(r.compileModuleAsync(n))),J(n=>{t&&t(i);let o,a,s=!1;return Array.isArray(n)?(a=n,s=!0):(o=n.create(e).injector,a=o.get(tl,[],{optional:!0,self:!0}).flat()),{routes:a.map(el),injector:o}}))}function F_(i){return i&&typeof i=="object"&&"default"in i}function zu(i){return F_(i)?i.default:i}var il=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:()=>R(P_),providedIn:"root"})}}return i})(),P_=(()=>{class i{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),N_=new O("");var L_=new O(""),V_=(()=>{class i{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new P,this.transitionAbortSubject=new P,this.configLoader=R(R_),this.environmentInjector=R(Pi),this.urlSerializer=R(Xs),this.rootContexts=R(Po),this.location=R(mn),this.inputBindingEnabled=R(Ks,{optional:!0})!==null,this.titleStrategy=R(Bu),this.options=R(Js,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=R(il),this.createViewTransition=R(N_,{optional:!0}),this.navigationErrorHandler=R(L_,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>U(void 0),this.rootComponentType=null;let e=n=>this.events.next(new Os(n)),t=n=>this.events.next(new Fs(n));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(ye(A(A({},this.transitions.value),e),{id:t}))}setupNavigations(e,t,n){return this.transitions=new it({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:yr,restoredState:null,currentSnapshot:n.snapshot,targetSnapshot:null,currentRouterState:n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ve(o=>o.id!==0),J(o=>ye(A({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Ye(o=>{let a=!1,s=!1;return U(o).pipe(Ye(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",yt.SupersededByNewNavigation),lt;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?ye(A({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let p=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),g=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!p&&g!=="reload"){let _="";return this.events.next(new Hi(l.id,this.urlSerializer.serialize(l.rawUrl),_,ks.IgnoredSameUrlNavigation)),l.resolve(!1),lt}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return U(l).pipe(Ye(_=>{let D=this.transitions?.getValue();return this.events.next(new Er(_.id,this.urlSerializer.serialize(_.extractedUrl),_.source,_.restoredState)),D!==this.transitions?.getValue()?lt:Promise.resolve(_)}),E_(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),we(_=>{o.targetSnapshot=_.targetSnapshot,o.urlAfterRedirects=_.urlAfterRedirects,this.currentNavigation=ye(A({},this.currentNavigation),{finalUrl:_.urlAfterRedirects});let D=new ko(_.id,this.urlSerializer.serialize(_.extractedUrl),this.urlSerializer.serialize(_.urlAfterRedirects),_.targetSnapshot);this.events.next(D)}));if(p&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:_,extractedUrl:D,source:G,restoredState:ie,extras:ae}=l,me=new Er(_,this.urlSerializer.serialize(D),G,ie);this.events.next(me);let Ie=Mu(this.rootComponentType).snapshot;return this.currentTransition=o=ye(A({},l),{targetSnapshot:Ie,urlAfterRedirects:D,extras:ye(A({},ae),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=D,U(o)}else{let _="";return this.events.next(new Hi(l.id,this.urlSerializer.serialize(l.extractedUrl),_,ks.IgnoredByUrlHandlingStrategy)),l.resolve(!1),lt}}),we(l=>{let p=new Ms(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),J(l=>(this.currentTransition=o=ye(A({},l),{guards:$g(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),i_(this.environmentInjector,l=>this.events.next(l)),we(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Oo(this.urlSerializer,l.guardsResult);let p=new Ds(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(p)}),ve(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",yt.GuardRejected),!1)),Cs(l=>{if(l.guards.canActivateChecks.length)return U(l).pipe(we(p=>{let g=new As(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(g)}),Ye(p=>{let g=!1;return U(p).pipe(I_(this.paramsInheritanceStrategy,this.environmentInjector),we({next:()=>g=!0,complete:()=>{g||this.cancelNavigationTransition(p,"",yt.NoDataFromResolver)}}))}),we(p=>{let g=new Rs(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(g)}))}),Cs(l=>{let p=g=>{let _=[];g.routeConfig?.loadComponent&&!g.routeConfig._loadedComponent&&_.push(this.configLoader.loadComponent(g.routeConfig).pipe(we(D=>{g.component=D}),J(()=>{})));for(let D of g.children)_.push(...p(D));return _};return Xn(p(l.targetSnapshot.root)).pipe(qa(null),qe(1))}),Cs(()=>this.afterPreactivation()),Ye(()=>{let{currentSnapshot:l,targetSnapshot:p}=o,g=this.createViewTransition?.(this.environmentInjector,l.root,p.root);return g?ct(g).pipe(J(()=>o)):U(o)}),J(l=>{let p=Bg(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=ye(A({},l),{targetRouterState:p}),this.currentNavigation.targetRouterState=p,o}),we(()=>{this.events.next(new Sr)}),Gg(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),qe(1),we({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ui(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),re(this.transitionAbortSubject.pipe(we(l=>{throw l}))),ri(()=>{!a&&!s&&this.cancelNavigationTransition(o,"",yt.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Wt(l=>{if(s=!0,Fu(l))this.events.next(new si(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),Hg(l)?this.events.next(new Tn(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let p=new Ir(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let g=oi(this.environmentInjector,()=>this.navigationErrorHandler?.(p));if(g instanceof Mr){let{message:_,cancellationCode:D}=Oo(this.urlSerializer,g);this.events.next(new si(o.id,this.urlSerializer.serialize(o.extractedUrl),_,D)),this.events.next(new Tn(g.redirectTo,g.navigationBehaviorOptions))}else{this.events.next(p);let _=e.errorHandler(l);o.resolve(!!_)}}catch(g){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(g)}}return lt}))}))}cancelNavigationTransition(e,t,n){let o=new si(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function j_(i){return i!==yr}var B_=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:()=>R(z_),providedIn:"root"})}}return i})(),Qs=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},z_=(()=>{class i extends Qs{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=kt(i)))(n||i)}})()}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Uu=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:()=>R(U_),providedIn:"root"})}}return i})(),U_=(()=>{class i extends Uu{constructor(){super(...arguments),this.location=R(mn),this.urlSerializer=R(Xs),this.options=R(Js,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=R(il),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new li,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Mu(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&e(t.url,t.state)})}handleRouterEvent(e,t){if(e instanceof Er)this.stateMemento=this.createStateMemento();else if(e instanceof Hi)this.rawUrlTree=t.initialUrl;else if(e instanceof ko){if(this.urlUpdateStrategy==="eager"&&!t.extras.skipLocationChange){let n=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(t.targetBrowserUrl??n,t)}}else e instanceof Sr?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(t.targetBrowserUrl??this.rawUrlTree,t)):e instanceof si&&(e.code===yt.GuardRejected||e.code===yt.NoDataFromResolver)?this.restoreHistory(t):e instanceof Ir?this.restoreHistory(t,!0):e instanceof Ui&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){let n=e instanceof li?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl){let o=this.browserPageId,a=A(A({},t.extras.state),this.generateNgRouterState(t.id,o));this.location.replaceState(n,"",a)}else{let o=A(A({},t.extras.state),this.generateNgRouterState(t.id,this.browserPageId+1));this.location.go(n,"",o)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,o=this.currentPageId-n;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=kt(i)))(n||i)}})()}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),br=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(br||{});function H_(i,r){i.events.pipe(ve(e=>e instanceof Ui||e instanceof si||e instanceof Ir||e instanceof Hi),J(e=>e instanceof Ui||e instanceof Hi?br.COMPLETE:(e instanceof si?e.code===yt.Redirect||e.code===yt.SupersededByNewNavigation:!1)?br.REDIRECTING:br.FAILED),ve(e=>e!==br.REDIRECTING),qe(1)).subscribe(()=>{r()})}function G_(i){throw i}var $_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},W_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Hu=(()=>{class i{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=R(po),this.stateManager=R(Uu),this.options=R(Js,{optional:!0})||{},this.pendingTasks=R(dd),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=R(V_),this.urlSerializer=R(Xs),this.location=R(mn),this.urlHandlingStrategy=R(il),this._events=new P,this.errorHandler=this.options.errorHandler||G_,this.navigated=!1,this.routeReuseStrategy=R(B_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=R(tl,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!R(Ks,{optional:!0}),this.eventsSubscription=new fe,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let n=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(n!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof si&&t.code!==yt.Redirect&&t.code!==yt.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Ui)this.navigated=!0;else if(t instanceof Tn){let a=t.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(t.url,n.currentRawUrl),l=A({browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||j_(n.source)},a);this.scheduleNavigation(s,yr,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}Y_(t)&&this._events.next(t)}catch(n){this.navigationTransitions.transitionAbortSubject.next(n)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",t)},0)})}navigateToSyncWithBrowser(e,t,n){let o={replaceUrl:!0},a=n?.navigationId?n:null;if(n){let l=A({},n);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,t,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(el),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:n,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=t,p=l?this.currentUrlTree.fragment:a,g=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":g=A(A({},this.currentUrlTree.queryParams),o);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=o||null}g!==null&&(g=this.removeEmptyProps(g));let _;try{let D=n?n.snapshot:this.routerState.snapshot.root;_=Eu(D)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),_=this.currentUrlTree.root}return Iu(_,e,g,p??null)}navigateByUrl(e,t={skipLocationChange:!1}){let n=wr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,yr,null,t)}navigate(e,t={skipLocationChange:!1}){return q_(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let n;if(t===!0?n=A({},$_):t===!1?n=A({},W_):n=t,wr(e))return lu(this.currentUrlTree,e,n);let o=this.parseUrl(e);return lu(this.currentUrlTree,o,n)}removeEmptyProps(e){return Object.entries(e).reduce((t,[n,o])=>(o!=null&&(t[n]=o),t),{})}scheduleNavigation(e,t,n,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,p;a?(s=a.resolve,l=a.reject,p=a.promise):p=new Promise((_,D)=>{s=_,l=D});let g=this.pendingTasks.add();return H_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:p,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),p.catch(_=>Promise.reject(_))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function q_(i){for(let r=0;re.\u0275providers)])}function X_(i){return i.routerState.root}function Z_(){let i=R(et);return r=>{let e=i.get(cr);if(r!==e.components[0])return;let t=i.get(Hu),n=i.get(K_);i.get(J_)===1&&t.initialNavigation(),i.get(eb,null,Xa.Optional)?.setUpPreloading(),i.get(Q_,null,Xa.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var K_=new O("",{factory:()=>new P}),J_=new O("",{providedIn:"root",factory:()=>1});var eb=new O("");var $u=[];var Wu={providers:[Rd({eventCoalescing:!0}),Gu($u),su()]};var eh=(()=>{class i{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=n=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(t){return new(t||i)(c(un),c(F))}}static{this.\u0275dir=S({type:i})}}return i})(),th=(()=>{class i extends eh{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=kt(i)))(n||i)}})()}static{this.\u0275dir=S({type:i,features:[be]})}}return i})(),Ce=new O("");var tb={provide:Ce,useExisting:le(()=>Kt),multi:!0};function ib(){let i=hn()?hn().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var nb=new O(""),Kt=(()=>{class i extends eh{constructor(e,t,n){super(e,t),this._compositionMode=n,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ib())}writeValue(e){let t=e??"";this.setProperty("value",t)}_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)}static{this.\u0275fac=function(t){return new(t||i)(c(un),c(F),c(nb,8))}}static{this.\u0275dir=S({type:i,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(t,n){t&1&&I("input",function(a){return n._handleInput(a.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(a){return n._compositionEnd(a.target.value)})},features:[$([tb]),be]})}}return i})();function Ti(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ih(i){return i!=null&&typeof i.length=="number"}var Rt=new O(""),Dn=new O(""),rb=/^(?=.{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])?)*$/,Zt=class{static min(r){return nh(r)}static max(r){return rh(r)}static required(r){return ob(r)}static requiredTrue(r){return ab(r)}static email(r){return sb(r)}static minLength(r){return lb(r)}static maxLength(r){return cb(r)}static pattern(r){return db(r)}static nullValidator(r){return Vo(r)}static compose(r){return dh(r)}static composeAsync(r){return uh(r)}};function nh(i){return r=>{if(Ti(r.value)||Ti(i))return null;let e=parseFloat(r.value);return!isNaN(e)&&e{if(Ti(r.value)||Ti(i))return null;let e=parseFloat(r.value);return!isNaN(e)&&e>i?{max:{max:i,actual:r.value}}:null}}function ob(i){return Ti(i.value)?{required:!0}:null}function ab(i){return i.value===!0?null:{required:!0}}function sb(i){return Ti(i.value)||rb.test(i.value)?null:{email:!0}}function lb(i){return r=>Ti(r.value)||!ih(r.value)?null:r.value.lengthih(r.value)&&r.value.length>i?{maxlength:{requiredLength:i,actualLength:r.value.length}}:null}function db(i){if(!i)return Vo;let r,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),r=new RegExp(e)):(e=i.toString(),r=i),t=>{if(Ti(t.value))return null;let n=t.value;return r.test(n)?null:{pattern:{requiredPattern:e,actualValue:n}}}}function Vo(i){return null}function oh(i){return i!=null}function ah(i){return fo(i)?ct(i):i}function sh(i){let r={};return i.forEach(e=>{r=e!=null?A(A({},r),e):r}),Object.keys(r).length===0?null:r}function lh(i,r){return r.map(e=>e(i))}function ub(i){return!i.validate}function ch(i){return i.map(r=>ub(r)?r:e=>r.validate(e))}function dh(i){if(!i)return null;let r=i.filter(oh);return r.length==0?null:function(e){return sh(lh(e,r))}}function al(i){return i!=null?dh(ch(i)):null}function uh(i){if(!i)return null;let r=i.filter(oh);return r.length==0?null:function(e){let t=lh(e,r).map(ah);return co(t).pipe(J(sh))}}function sl(i){return i!=null?uh(ch(i)):null}function qu(i,r){return i===null?[r]:Array.isArray(i)?[...i,r]:[i,r]}function hh(i){return i._rawValidators}function mh(i){return i._rawAsyncValidators}function nl(i){return i?Array.isArray(i)?i:[i]:[]}function jo(i,r){return Array.isArray(i)?i.includes(r):i===r}function Yu(i,r){let e=nl(r);return nl(i).forEach(n=>{jo(e,n)||e.push(n)}),e}function Qu(i,r){return nl(r).filter(e=>!jo(i,e))}var Bo=class{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(r){this._rawValidators=r||[],this._composedValidatorFn=al(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=sl(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r=void 0){this.control&&this.control.reset(r)}hasError(r,e){return this.control?this.control.hasError(r,e):!1}getError(r,e){return this.control?this.control.getError(r,e):null}},ot=class extends Bo{get formDirective(){return null}get path(){return null}},xt=class extends Bo{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},zo=class{constructor(r){this._cd=r}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},hb={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},wI=ye(A({},hb),{"[class.ng-submitted]":"isSubmitted"}),dt=(()=>{class i extends zo{constructor(e){super(e)}static{this.\u0275fac=function(t){return new(t||i)(c(xt,2))}}static{this.\u0275dir=S({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&B("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},features:[be]})}}return i})(),ph=(()=>{class i extends zo{constructor(e){super(e)}static{this.\u0275fac=function(t){return new(t||i)(c(ot,10))}}static{this.\u0275dir=S({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){t&2&&B("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},features:[be]})}}return i})();var Pr="VALID",Lo="INVALID",kn="PENDING",Nr="DISABLED",Ei=class{},Uo=class extends Ei{constructor(r,e){super(),this.value=r,this.source=e}},Vr=class extends Ei{constructor(r,e){super(),this.pristine=r,this.source=e}},jr=class extends Ei{constructor(r,e){super(),this.touched=r,this.source=e}},Mn=class extends Ei{constructor(r,e){super(),this.status=r,this.source=e}},rl=class extends Ei{constructor(r){super(),this.source=r}},ol=class extends Ei{constructor(r){super(),this.source=r}};function ll(i){return(Wo(i)?i.validators:i)||null}function mb(i){return Array.isArray(i)?al(i):i||null}function cl(i,r){return(Wo(r)?r.asyncValidators:i)||null}function pb(i){return Array.isArray(i)?sl(i):i||null}function Wo(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function fh(i,r,e){let t=i.controls;if(!(r?Object.keys(t):t).length)throw new Te(1e3,"");if(!t[e])throw new Te(1001,"")}function gh(i,r,e){i._forEachChild((t,n)=>{if(e[n]===void 0)throw new Te(1002,"")})}var Br=class{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ai(()=>this.statusReactive()),this.statusReactive=yi(void 0),this._pristine=ai(()=>this.pristineReactive()),this.pristineReactive=yi(!0),this._touched=ai(()=>this.touchedReactive()),this.touchedReactive=yi(!1),this._events=new P,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(r),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get status(){return Nt(this.statusReactive)}set status(r){Nt(()=>this.statusReactive.set(r))}get valid(){return this.status===Pr}get invalid(){return this.status===Lo}get pending(){return this.status==kn}get disabled(){return this.status===Nr}get enabled(){return this.status!==Nr}get pristine(){return Nt(this.pristineReactive)}set pristine(r){Nt(()=>this.pristineReactive.set(r))}get dirty(){return!this.pristine}get touched(){return Nt(this.touchedReactive)}set touched(r){Nt(()=>this.touchedReactive.set(r))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._assignValidators(r)}setAsyncValidators(r){this._assignAsyncValidators(r)}addValidators(r){this.setValidators(Yu(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(Yu(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(Qu(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(Qu(r,this._rawAsyncValidators))}hasValidator(r){return jo(this._rawValidators,r)}hasAsyncValidator(r){return jo(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){let e=this.touched===!1;this.touched=!0;let t=r.sourceControl??this;this._parent&&!r.onlySelf&&this._parent.markAsTouched(ye(A({},r),{sourceControl:t})),e&&r.emitEvent!==!1&&this._events.next(new jr(!0,t))}markAllAsTouched(r={}){this.markAsTouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(r))}markAsUntouched(r={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=r.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:t})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r,t),e&&r.emitEvent!==!1&&this._events.next(new jr(!1,t))}markAsDirty(r={}){let e=this.pristine===!0;this.pristine=!1;let t=r.sourceControl??this;this._parent&&!r.onlySelf&&this._parent.markAsDirty(ye(A({},r),{sourceControl:t})),e&&r.emitEvent!==!1&&this._events.next(new Vr(!1,t))}markAsPristine(r={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=r.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:r.emitEvent})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r,t),e&&r.emitEvent!==!1&&this._events.next(new Vr(!0,t))}markAsPending(r={}){this.status=kn;let e=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new Mn(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.markAsPending(ye(A({},r),{sourceControl:e}))}disable(r={}){let e=this._parentMarkedDirty(r.onlySelf);this.status=Nr,this.errors=null,this._forEachChild(n=>{n.disable(ye(A({},r),{onlySelf:!0}))}),this._updateValue();let t=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new Uo(this.value,t)),this._events.next(new Mn(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ye(A({},r),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(r={}){let e=this._parentMarkedDirty(r.onlySelf);this.status=Pr,this._forEachChild(t=>{t.enable(ye(A({},r),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors(ye(A({},r),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r,e){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pr||this.status===kn)&&this._runAsyncValidator(t,r.emitEvent)}let e=r.sourceControl??this;r.emitEvent!==!1&&(this._events.next(new Uo(this.value,e)),this._events.next(new Mn(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(ye(A({},r),{sourceControl:e}))}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Nr:Pr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r,e){if(this.asyncValidator){this.status=kn,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let t=ah(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:r})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let r=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,r}return!1}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(r){let e=r;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(r,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r,e,t){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),(r||t)&&this._events.next(new Mn(this.status,e)),this._parent&&this._parent._updateControlsErrors(r,e,t)}_initObservables(){this.valueChanges=new T,this.statusChanges=new T}_calculateStatus(){return this._allControlsDisabled()?Nr:this.errors?Lo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kn)?kn:this._anyControlsHaveStatus(Lo)?Lo:Pr}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!r.onlySelf&&this._parent._updatePristine(r,e),n&&this._events.next(new Vr(this.pristine,e))}_updateTouched(r={},e){this.touched=this._anyControlsTouched(),this._events.next(new jr(this.touched,e)),this._parent&&!r.onlySelf&&this._parent._updateTouched(r,e)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Wo(r)&&r.updateOn!=null&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){let e=this._parent&&this._parent.dirty;return!r&&!!e&&!this._parent._anyControlsDirty()}_find(r){return null}_assignValidators(r){this._rawValidators=Array.isArray(r)?r.slice():r,this._composedValidatorFn=mb(this._rawValidators)}_assignAsyncValidators(r){this._rawAsyncValidators=Array.isArray(r)?r.slice():r,this._composedAsyncValidatorFn=pb(this._rawAsyncValidators)}},jt=class extends Br{constructor(r,e,t){super(ll(e),cl(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){gh(this,!0,r),Object.keys(r).forEach(t=>{fh(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){r!=null&&(Object.keys(r).forEach(t=>{let n=this.controls[t];n&&n.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,n)=>{t.reset(r?r[n]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){let r={};return this._reduceChildren(r,(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((n,o)=>{t=e(t,n,o)}),t}_allControlsDisabled(){for(let r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}};var zr=new O("CallSetDisabledState",{providedIn:"root",factory:()=>qo}),qo="always";function Yo(i,r){return[...r.path,i]}function Ho(i,r,e=qo){dl(i,r),r.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&r.valueAccessor.setDisabledState?.(i.disabled),gb(i,r),bb(i,r),_b(i,r),fb(i,r)}function Xu(i,r,e=!0){let t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),$o(i,r),i&&(r._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Go(i,r){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function fb(i,r){if(r.valueAccessor.setDisabledState){let e=t=>{r.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),r._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function dl(i,r){let e=hh(i);r.validator!==null?i.setValidators(qu(e,r.validator)):typeof e=="function"&&i.setValidators([e]);let t=mh(i);r.asyncValidator!==null?i.setAsyncValidators(qu(t,r.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();Go(r._rawValidators,n),Go(r._rawAsyncValidators,n)}function $o(i,r){let e=!1;if(i!==null){if(r.validator!==null){let n=hh(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==r.validator);o.length!==n.length&&(e=!0,i.setValidators(o))}}if(r.asyncValidator!==null){let n=mh(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(a=>a!==r.asyncValidator);o.length!==n.length&&(e=!0,i.setAsyncValidators(o))}}}let t=()=>{};return Go(r._rawValidators,t),Go(r._rawAsyncValidators,t),e}function gb(i,r){r.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&_h(i,r)})}function _b(i,r){r.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&_h(i,r),i.updateOn!=="submit"&&i.markAsTouched()})}function _h(i,r){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function bb(i,r){let e=(t,n)=>{r.valueAccessor.writeValue(t),n&&r.viewToModelUpdate(t)};i.registerOnChange(e),r._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function bh(i,r){i==null,dl(i,r)}function vb(i,r){return $o(i,r)}function vh(i,r){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(r,e.currentValue)}function yb(i){return Object.getPrototypeOf(i.constructor)===th}function yh(i,r){i._syncPendingControls(),r.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function xh(i,r){if(!r)return null;Array.isArray(r);let e,t,n;return r.forEach(o=>{o.constructor===Kt?e=o:yb(o)?t=o:n=o}),n||t||e||null}function xb(i,r){let e=i.indexOf(r);e>-1&&i.splice(e,1)}var Cb={provide:ot,useExisting:le(()=>Gi)},Lr=Promise.resolve(),Gi=(()=>{class i extends ot{get submitted(){return Nt(this.submittedReactive)}constructor(e,t,n){super(),this.callSetDisabledState=n,this._submitted=ai(()=>this.submittedReactive()),this.submittedReactive=yi(!1),this._directives=new Set,this.ngSubmit=new T,this.form=new jt({},al(e),sl(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Lr.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Ho(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Lr.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Lr.then(()=>{let t=this._findContainer(e.path),n=new jt({});bh(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Lr.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Lr.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),yh(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(t){return new(t||i)(c(Rt,10),c(Dn,10),c(zr,8))}}static{this.\u0275dir=S({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){t&1&&I("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$([Cb]),be]})}}return i})();function Zu(i,r){let e=i.indexOf(r);e>-1&&i.splice(e,1)}function Ku(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Ur=class extends Br{constructor(r=null,e,t){super(ll(e),cl(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Wo(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ku(r)?this.defaultValue=r.value:this.defaultValue=r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){Zu(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){Zu(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(r){Ku(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}};var wb=i=>i instanceof Ur,Tb=(()=>{class i extends ot{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Yo(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=kt(i)))(n||i)}})()}static{this.\u0275dir=S({type:i,features:[be]})}}return i})();var Eb={provide:xt,useExisting:le(()=>ut)},Ju=Promise.resolve(),ut=(()=>{class i extends xt{constructor(e,t,n,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new Ur,this._registered=!1,this.name="",this.update=new T,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=xh(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),vh(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&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ho(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()&&this.name}_updateValue(e){Ju.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&v(t);Ju.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Yo(e,this._parent):[e]}static{this.\u0275fac=function(t){return new(t||i)(c(ot,9),c(Rt,10),c(Dn,10),c(Ce,10),c(Q,8),c(zr,8))}}static{this.\u0275dir=S({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[$([Eb]),be,se]})}}return i})(),Ch=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})(),Ib={provide:Ce,useExisting:le(()=>Qo),multi:!0},Qo=(()=>{class i extends th{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=kt(i)))(n||i)}})()}static{this.\u0275dir=S({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){t&1&&I("input",function(a){return n.onChange(a.target.value)})("blur",function(){return n.onTouched()})},features:[$([Ib]),be]})}}return i})();var wh=new O("");var Sb={provide:ot,useExisting:le(()=>Jt)},Jt=(()=>{class i extends ot{get submitted(){return Nt(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,t,n){super(),this.callSetDisabledState=n,this._submitted=ai(()=>this._submittedReactive()),this._submittedReactive=yi(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new T,this._setValidators(e),this._setAsyncValidators(t)}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){let t=this.form.get(e.path);return Ho(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Xu(e.control||null,e,!1),xb(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,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this._submittedReactive.set(!0),yh(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new rl(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new ol(this.form))}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,n=this.form.get(e.path);t!==n&&(Xu(t||null,e),wb(n)&&(Ho(n,e,this.callSetDisabledState),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);bh(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let t=this.form.get(e.path);t&&vb(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dl(this.form,this),this._oldForm&&$o(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(t){return new(t||i)(c(Rt,10),c(Dn,10),c(zr,8))}}static{this.\u0275dir=S({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,n){t&1&&I("submit",function(a){return n.onSubmit(a)})("reset",function(){return n.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$([Sb]),be,se]})}}return i})(),kb={provide:ot,useExisting:le(()=>Xo)},Xo=(()=>{class i extends Tb{constructor(e,t,n){super(),this.name=null,this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Th(this._parent)}static{this.\u0275fac=function(t){return new(t||i)(c(ot,13),c(Rt,10),c(Dn,10))}}static{this.\u0275dir=S({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[$([kb]),be]})}}return i})(),Mb={provide:ot,useExisting:le(()=>Zo)},Zo=(()=>{class i extends ot{constructor(e,t,n){super(),this.name=null,this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Yo(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Th(this._parent)}static{this.\u0275fac=function(t){return new(t||i)(c(ot,13),c(Rt,10),c(Dn,10))}}static{this.\u0275dir=S({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[$([Mb]),be]})}}return i})();function Th(i){return!(i instanceof Xo)&&!(i instanceof Jt)&&!(i instanceof Zo)}var Db={provide:xt,useExisting:le(()=>ul)},ul=(()=>{class i extends xt{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,t,n,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new T,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=xh(this,o)}ngOnChanges(e){this._added||this._setUpControl(),vh(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 Yo(this.name==null?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}static{this.\u0275fac=function(t){return new(t||i)(c(ot,13),c(Rt,10),c(Dn,10),c(Ce,10),c(wh,8))}}static{this.\u0275dir=S({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[$([Db]),be,se]})}}return i})();function Eh(i){return typeof i=="number"?i:parseFloat(i)}var Ih=(()=>{class i{constructor(){this._validator=Vo}ngOnChanges(e){if(this.inputName in e){let t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Vo,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,features:[se]})}}return i})(),Ab={provide:Rt,useExisting:le(()=>Ko),multi:!0},Ko=(()=>{class i extends Ih{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>Eh(e),this.createValidator=e=>rh(e)}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=kt(i)))(n||i)}})()}static{this.\u0275dir=S({type:i,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,n){t&2&&ee("max",n._enabled?n.max:null)},inputs:{max:"max"},features:[$([Ab]),be]})}}return i})(),Rb={provide:Rt,useExisting:le(()=>Jo),multi:!0},Jo=(()=>{class i extends Ih{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>Eh(e),this.createValidator=e=>nh(e)}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=kt(i)))(n||i)}})()}static{this.\u0275dir=S({type:i,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,n){t&2&&ee("min",n._enabled?n.min:null)},inputs:{min:"min"},features:[$([Rb]),be]})}}return i})();var Sh=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})(),Ii=class extends Br{constructor(r,e,t){super(ll(e),cl(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,t={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(r,e={}){let t=this._adjustIndex(r);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,t={}){let n=this._adjustIndex(r);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,e={}){gh(this,!1,r),r.forEach((t,n)=>{fh(this,!1,n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){r!=null&&(r.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((t,n)=>{t.reset(r[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,t)=>t._syncPendingControls()?!0:e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,t)=>{r(e,t)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(let r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}};var at=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:zr,useValue:e.callSetDisabledState??qo}]}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Sh]})}}return i})(),Hr=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:wh,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:zr,useValue:e.callSetDisabledState??qo}]}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Sh]})}}return i})();var Ob=new O("cdk-dir-doc",{providedIn:"root",factory:Fb});function Fb(){return R(K)}var Pb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Nb(i){let r=i?.toLowerCase()||"";return r==="auto"&&typeof navigator<"u"&&navigator?.language?Pb.test(navigator.language)?"rtl":"ltr":r==="rtl"?"rtl":"ltr"}var Fe=(()=>{class i{constructor(e){if(this.value="ltr",this.change=new T,e){let t=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=Nb(t||n||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(t){return new(t||i)(E(Ob,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Si=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})();function ei(i){return i!=null&&`${i}`!="false"}function ki(i,r=0){return Lb(i)?Number(i):arguments.length===2?r:0}function Lb(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function An(i){return Array.isArray(i)?i:[i]}function Pe(i){return i==null?"":typeof i=="string"?i:`${i}px`}function ht(i){return i instanceof F?i.nativeElement:i}var ml;try{ml=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ml=!1}var ue=(()=>{class i{constructor(e){this._platformId=e,this.isBrowser=this._platformId?zd(this._platformId):typeof document=="object"&&!!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||ml)&&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}static{this.\u0275fac=function(t){return new(t||i)(E(Li))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Rn,kh=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function pl(){if(Rn)return Rn;if(typeof document!="object"||!document)return Rn=new Set(kh),Rn;let i=document.createElement("input");return Rn=new Set(kh.filter(r=>(i.setAttribute("type",r),i.type===r))),Rn}var Gr;function Vb(){if(Gr==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Gr=!0}))}finally{Gr=Gr||!1}return Gr}function Ot(i){return Vb()?i:!!i.capture}var Bt=function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i}(Bt||{}),ta,$i;function ia(){if($i==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return $i=!1,$i;if("scrollBehavior"in document.documentElement.style)$i=!0;else{let i=Element.prototype.scrollTo;i?$i=!/\{\s*\[native code\]\s*\}/.test(i.toString()):$i=!1}}return $i}function On(){if(typeof document!="object"||!document)return Bt.NORMAL;if(ta==null){let i=document.createElement("div"),r=i.style;i.dir="rtl",r.width="1px",r.overflow="auto",r.visibility="hidden",r.pointerEvents="none",r.position="absolute";let e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",i.appendChild(e),document.body.appendChild(i),ta=Bt.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,ta=i.scrollLeft===0?Bt.NEGATED:Bt.INVERTED),i.remove()}return ta}var hl;function jb(){if(hl==null){let i=typeof document<"u"?document.head:null;hl=!!(i&&(i.createShadowRoot||i.attachShadow))}return hl}function Mh(i){if(jb()){let r=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Ct(i){return i.composedPath?i.composedPath()[0]:i.target}function $r(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var fl=class{constructor(r){this._box=r,this._destroyed=new P,this._resizeSubject=new P,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(r){return this._elementObservables.has(r)||this._elementObservables.set(r,new ft(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(r,{box:this._box}),()=>{this._resizeObserver?.unobserve(r),t.unsubscribe(),this._elementObservables.delete(r)}}).pipe(ve(e=>e.some(t=>t.target===r)),Qa({bufferSize:1,refCount:!0}),re(this._destroyed))),this._elementObservables.get(r)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},na=(()=>{class i{constructor(){this._observers=new Map,this._ngZone=R(W),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new fl(n)),this._observers.get(n).observe(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Bb(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let r=0;r{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),zb=(()=>{class i{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map,this._ngZone=R(W)}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){let t=ht(e);return new ft(n=>{let a=this._observeElement(t).pipe(J(s=>s.filter(l=>!Bb(l))),ve(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{n.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let t=new P,n=this._mutationObserverFactory.create(o=>t.next(o));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,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)){let{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}static{this.\u0275fac=function(t){return new(t||i)(E(Dh))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Ah=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ki(e),this._subscribe()}constructor(e,t){this._contentObserver=e,this._elementRef=t,this.event=new T,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(St(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)(c(zb),c(F))}}static{this.\u0275dir=S({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",v],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[oe]})}}return i})(),ra=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[Dh]})}}return i})();function We(i,...r){return r.length?r.some(e=>i[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var Rh=new Set,Wi,Ub=(()=>{class i{constructor(e,t){this._platform=e,this._nonce=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Gb}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Hb(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(t){return new(t||i)(E(ue),E(ir,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Hb(i,r){if(!Rh.has(i))try{Wi||(Wi=document.createElement("style"),r&&Wi.setAttribute("nonce",r),Wi.setAttribute("type","text/css"),document.head.appendChild(Wi)),Wi.sheet&&(Wi.sheet.insertRule(`@media ${i} {body{ }}`,0),Rh.add(i))}catch(e){console.error(e)}}function Gb(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Fh=(()=>{class i{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new P}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Oh(An(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Oh(An(e)).map(a=>this._registerQuery(a).observable),o=Xn(n);return o=lo(o.pipe(qe(1)),o.pipe(an(1),St(0))),o.pipe(J(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:p})=>{s.matches=s.matches||l,s.breakpoints[p]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),o={observable:new ft(a=>{let s=l=>this._zone.run(()=>a.next(l));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(He(t),J(({matches:a})=>({query:e,matches:a})),re(this._destroySubject)),mql:t};return this._queries.set(e,o),o}static{this.\u0275fac=function(t){return new(t||i)(E(Ub),E(W))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Oh(i){return i.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}var Vh=" ";function xl(i,r,e){let t=la(i,r);e=e.trim(),!t.some(n=>n.trim()===e)&&(t.push(e),i.setAttribute(r,t.join(Vh)))}function pa(i,r,e){let t=la(i,r);e=e.trim();let n=t.filter(o=>o!==e);n.length?i.setAttribute(r,n.join(Vh)):i.removeAttribute(r)}function la(i,r){return i.getAttribute(r)?.match(/\S+/g)??[]}var jh="cdk-describedby-message",oa="cdk-describedby-host",bl=0,Bh=(()=>{class i{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${bl++}`,this._document=e,this._id=R(tr)+"-"+bl++}describe(e,t,n){if(!this._canBeDescribed(e,t))return;let o=gl(t,n);typeof t!="string"?(Ph(t,this._id),this._messageRegistry.set(o,{messageElement:t,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;let o=gl(t,n);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof t=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${oa}="${this._id}"]`);for(let t=0;tn.indexOf(jh)!=0);e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){let n=this._messageRegistry.get(t);xl(e,"aria-describedby",n.messageElement.id),e.setAttribute(oa,this._id),n.referenceCount++}_removeMessageReference(e,t){let n=this._messageRegistry.get(t);n.referenceCount--,pa(e,"aria-describedby",n.messageElement.id),e.removeAttribute(oa)}_isElementDescribedByMessage(e,t){let n=la(e,"aria-describedby"),o=this._messageRegistry.get(t),a=o&&o.messageElement.id;return!!a&&n.indexOf(a)!=-1}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&typeof t=="object")return!0;let n=t==null?"":`${t}`.trim(),o=e.getAttribute("aria-label");return n?!o||o.trim()!==n:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(t){return new(t||i)(E(K),E(ue))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function gl(i,r){return typeof i=="string"?`${r||""}/${i}`:i}function Ph(i,r){i.id||(i.id=`${jh}-${r}-${bl++}`)}var rv=200,vl=class{constructor(r,e){this._letterKeyStream=new P,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new P,this.selectedItem=this._selectedItem;let t=typeof e?.debounceInterval=="number"?e.debounceInterval:rv;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(r),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(r){this._selectedItemIndex=r}setItems(r){this._items=r}handleKey(r){let e=r.keyCode;r.key&&r.key.length===1?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(r){this._letterKeyStream.pipe(we(e=>this._pressedLetters.push(e)),St(r),ve(()=>this._pressedLetters.length>0),J(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;tt.disabled,this.tabOut=new P,this.change=new P,r instanceof sn?this._itemChangesSubscription=r.changes.subscribe(t=>this._itemsChanged(t.toArray())):Za(r)&&(this._effectRef=Nd(()=>this._itemsChanged(r()),{injector:e}))}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new vl(e,{debounceInterval:typeof r=="number"?r:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(r=!0){return this._homeAndEnd=r,this}withPageUpDown(r=!0,e=10){return this._pageUpAndDown={enabled:r,delta:e},this}setActiveItem(r){let e=this._activeItem;this.updateActiveItem(r),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(r){let e=r.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!r[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e,this._typeahead?.setCurrentSelectedItemIndex(e))}}},da=class extends ca{setActiveItem(r){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(r),this.activeItem&&this.activeItem.setActiveStyles()}},ua=class extends ca{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}};function Cl(i){return i.buttons===0||i.detail===0}function wl(i){let r=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!!r&&r.identifier===-1&&(r.radiusX==null||r.radiusX===1)&&(r.radiusY==null||r.radiusY===1)}var ov=new O("cdk-input-modality-detector-options"),av={ignoreKeys:[18,17,224,91,16]},zh=650,Fn=Ot({passive:!0,capture:!0}),sv=(()=>{class i{get mostRecentModality(){return this._modality.value}constructor(e,t,n,o){this._platform=e,this._mostRecentTarget=null,this._modality=new it(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ct(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(wl(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ct(a)},this._options=A(A({},av),o),this.modalityDetected=this._modality.pipe(an(1)),this.modalityChanged=this.modalityDetected.pipe(ni()),e.isBrowser&&t.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,Fn),n.addEventListener("mousedown",this._onMousedown,Fn),n.addEventListener("touchstart",this._onTouchstart,Fn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fn),document.removeEventListener("mousedown",this._onMousedown,Fn),document.removeEventListener("touchstart",this._onTouchstart,Fn))}static{this.\u0275fac=function(t){return new(t||i)(E(ue),E(W),E(K),E(ov,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),lv=new O("liveAnnouncerElement",{providedIn:"root",factory:cv});function cv(){return null}var dv=new O("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),uv=0,Uh=(()=>{class i{constructor(e,t,n,o){this._ngZone=t,this._defaultOptions=o,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){let n=this._defaultOptions,o,a;return t.length===1&&typeof t[0]=="number"?a=t[0]:[o,a]=t,this.clear(),clearTimeout(this._previousTimeout),o||(o=n&&n.politeness?n.politeness:"polite"),a==null&&n&&(a=n.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(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(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{class i{constructor(e,t,n,o,a){this._ngZone=e,this._platform=t,this._inputModalityDetector=n,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 P,this._rootNodeFocusAndBlurListener=s=>{let l=Ct(s);for(let p=l;p;p=p.parentElement)s.type==="focus"?this._onFocus(s,p):this._onBlur(s,p)},this._document=o,this._detectionMode=a?.detectionMode||sa.IMMEDIATE}monitor(e,t=!1){let n=ht(e);if(!this._platform.isBrowser||n.nodeType!==1)return U();let o=Mh(n)||this._getDocument(),a=this._elementInfo.get(n);if(a)return t&&(a.checkChildren=!0),a.subject;let s={checkChildren:t,subject:new P,rootNode:o};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let t=ht(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){let o=ht(e),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,t,l)):(this._setOrigin(t),typeof o.focus=="function"&&o.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_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 this._detectionMode===sa.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program")}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===sa.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?zh:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,t){let n=this._elementInfo.get(t),o=Ct(e);!n||!n.checkChildren&&t!==o||this._originChanged(t,this._getFocusOrigin(o),n)}_onBlur(e,t){let n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,aa),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,aa)}),this._rootNodeFocusListenerCount.set(t,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(re(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,aa),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,aa),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((n,o)=>{(o===e||n.checkChildren&&o.contains(e))&&t.push([o,n])}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class i{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this._focusOrigin=null,this.cdkFocusChange=new T}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(wt))}}static{this.\u0275dir=S({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}}return i})(),qi=function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i}(qi||{}),Nh="cdk-high-contrast-black-on-white",Lh="cdk-high-contrast-white-on-black",_l="cdk-high-contrast-active",Tl=(()=>{class i{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=R(Fh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return qi.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,o=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return qi.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return qi.BLACK_ON_WHITE}return qi.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(_l,Nh,Lh),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===qi.BLACK_ON_WHITE?e.add(_l,Nh):t===qi.WHITE_ON_BLACK&&e.add(_l,Lh)}}static{this.\u0275fac=function(t){return new(t||i)(E(ue),E(K))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),fa=(()=>{class i{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(t){return new(t||i)(E(Tl))}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ra]})}}return i})();var mv=["text"],pv=[[["mat-icon"]],"*"],fv=["mat-icon","*"];function gv(i,r){if(i&1&&w(0,"mat-pseudo-checkbox",1),i&2){let e=u();f("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function _v(i,r){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=u();f("disabled",e.disabled)}}function bv(i,r){if(i&1&&(h(0,"span",4),te(1),m()),i&2){let e=u();d(),xi("(",e.group.label,")")}}var vv=["mat-internal-form-field",""],yv=["*"];function xv(){return!0}var Cv=new O("mat-sanity-checks",{providedIn:"root",factory:xv}),ge=(()=>{class i{constructor(e,t,n){this._sanityChecks=t,this._document=n,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return $r()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(t){return new(t||i)(E(Tl),E(Cv,8),E(K))}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Si,Si]})}}return i})();var Mi=class{constructor(r,e,t,n,o){this._defaultMatcher=r,this.ngControl=e,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=o,this.errorState=!1}updateErrorState(){let r=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,o=t?.isErrorState(n,e)??!1;o!==r&&(this.errorState=o,this._stateChanges.next())}};var Pn=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var st=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(st||{}),Sl=class{constructor(r,e,t,n=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=n,this.state=st.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},Gh=Ot({passive:!0,capture:!0}),kl=class{constructor(){this._events=new Map,this._delegateEventHandler=r=>{let e=Ct(r);e&&this._events.get(r.type)?.forEach((t,n)=>{(n===e||n.contains(e))&&t.forEach(o=>o.handleEvent(r))})}}addHandler(r,e,t,n){let o=this._events.get(e);if(o){let a=o.get(t);a?a.add(n):o.set(t,new Set([n]))}else this._events.set(e,new Map([[t,new Set([n])]])),r.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,Gh)})}removeHandler(r,e,t){let n=this._events.get(r);if(!n)return;let o=n.get(e);o&&(o.delete(t),o.size===0&&n.delete(e),n.size===0&&(this._events.delete(r),document.removeEventListener(r,this._delegateEventHandler,Gh)))}},$h={enterDuration:225,exitDuration:150},wv=800,Wh=Ot({passive:!0,capture:!0}),qh=["mousedown","touchstart"],Yh=["mouseup","mouseleave","touchend","touchcancel"],Ml=class i{static{this._eventManager=new kl}constructor(r,e,t,n){this._target=r,this._ngZone=e,this._platform=n,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=ht(t))}fadeInRipple(r,e,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=A(A({},$h),t.animation);t.centered&&(r=n.left+n.width/2,e=n.top+n.height/2);let a=t.radius||Tv(r,e,n),s=r-n.left,l=e-n.top,p=o.enterDuration,g=document.createElement("div");g.classList.add("mat-ripple-element"),g.style.left=`${s-a}px`,g.style.top=`${l-a}px`,g.style.height=`${a*2}px`,g.style.width=`${a*2}px`,t.color!=null&&(g.style.backgroundColor=t.color),g.style.transitionDuration=`${p}ms`,this._containerElement.appendChild(g);let _=window.getComputedStyle(g),D=_.transitionProperty,G=_.transitionDuration,ie=D==="none"||G==="0s"||G==="0s, 0s"||n.width===0&&n.height===0,ae=new Sl(this,g,t,ie);g.style.transform="scale3d(1, 1, 1)",ae.state=st.FADING_IN,t.persistent||(this._mostRecentTransientRipple=ae);let me=null;return!ie&&(p||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Ie=()=>{me&&(me.fallbackTimer=null),clearTimeout($t),this._finishRippleTransition(ae)},bi=()=>this._destroyRipple(ae),$t=setTimeout(bi,p+100);g.addEventListener("transitionend",Ie),g.addEventListener("transitioncancel",bi),me={onTransitionEnd:Ie,onTransitionCancel:bi,fallbackTimer:$t}}),this._activeRipples.set(ae,me),(ie||!p)&&this._finishRippleTransition(ae),ae}fadeOutRipple(r){if(r.state===st.FADING_OUT||r.state===st.HIDDEN)return;let e=r.element,t=A(A({},$h),r.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=st.FADING_OUT,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){let e=ht(r);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,qh.forEach(t=>{i._eventManager.addHandler(this._ngZone,t,e,this)}))}handleEvent(r){r.type==="mousedown"?this._onMousedown(r):r.type==="touchstart"?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Yh.forEach(e=>{this._triggerElement.addEventListener(e,this,Wh)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){r.state===st.FADING_IN?this._startFadeOutTransition(r):r.state===st.FADING_OUT&&this._destroyRipple(r)}_startFadeOutTransition(r){let e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=st.VISIBLE,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){let e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=st.HIDDEN,e!==null&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),r.element.remove()}_onMousedown(r){let e=Cl(r),t=this._lastTouchStartEvent&&Date.now(){let e=r.state===st.VISIBLE||r.config.terminateOnPointerUp&&r.state===st.FADING_IN;!r.config.persistent&&e&&r.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let r=this._triggerElement;r&&(qh.forEach(e=>i._eventManager.removeHandler(e,r,this)),this._pointerUpEventsRegistered&&(Yh.forEach(e=>r.removeEventListener(e,this,Wh)),this._pointerUpEventsRegistered=!1))}};function Tv(i,r,e){let t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),n=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+n*n)}var Wr=new O("mat-ripple-global-options"),Ft=(()=>{class i{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,t,n,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Ml(this,t,e,n)}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:A(A(A({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{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,t=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,A(A({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,A(A({},this.rippleConfig),e))}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(W),c(ue),c(Wr,8),c(ke,8))}}static{this.\u0275dir=S({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){t&2&&B("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return i})(),Zi=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,ge]})}}return i})(),Al=(()=>{class i{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(t){return new(t||i)(c(ke,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,n){t&2&&B("mat-pseudo-checkbox-indeterminate",n.state==="indeterminate")("mat-pseudo-checkbox-checked",n.state==="checked")("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal",n.appearance==="minimal")("mat-pseudo-checkbox-full",n.appearance==="full")("_mat-animation-noopable",n._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[H],decls:0,vars:0,template:function(t,n){},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-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.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})}}return i})(),Ev=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge]})}}return i})(),Rl=new O("MAT_OPTION_PARENT_COMPONENT");var Ol=new O("MatOptgroup");var Iv=0,Dl=class{constructor(r,e=!1){this.source=r,this.isUserInput=e}},_a=(()=>{class i{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=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,t,n,o){this._element=e,this._changeDetectorRef=t,this._parent=n,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${Iv++}`,this.onSelectionChange=new T,this._stateChanges=new P}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!We(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let 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 Dl(this,e))}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Q),c(Rl,8),c(Ol,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-option"]],viewQuery:function(t,n){if(t&1&&q(mv,7),t&2){let o;k(o=M())&&(n._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,n){t&1&&I("click",function(){return n._selectViaInteraction()})("keydown",function(a){return n._handleKeydown(a)}),t&2&&(Mt("id",n.id),ee("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),B("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",v]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[oe,H],ngContentSelectors:fv,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){t&1&&(he(pv),b(0,gv,1,2,"mat-pseudo-checkbox",1),Z(1),h(2,"span",2,0),Z(4,1),m(),b(5,_v,1,1,"mat-pseudo-checkbox",3)(6,bv,2,1,"span",4),w(7,"div",5)),t&2&&(C(n.multiple?0:-1),d(5),C(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),d(),C(n.group&&n.group._inert?6:-1),d(),f("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Al,Ft],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.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-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return i})();function Kh(i,r,e){if(e.length){let t=r.toArray(),n=e.toArray(),o=0;for(let a=0;ae+t?Math.max(0,i-t+r):e}var Fl=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Zi,ge,Ev]})}}return i})(),Qh={capture:!0},Xh=["focus","mousedown","mouseenter","touchstart"],El="mat-ripple-loader-uninitialized",Il="mat-ripple-loader-class-name",Zh="mat-ripple-loader-centered",ga="mat-ripple-loader-disabled",em=(()=>{class i{constructor(){this._document=R(K,{optional:!0}),this._animationMode=R(ke,{optional:!0}),this._globalRippleOptions=R(Wr,{optional:!0}),this._platform=R(ue),this._ngZone=R(W),this._hosts=new Map,this._onInteraction=e=>{let t=Ct(e);if(t instanceof HTMLElement){let n=t.closest(`[${El}="${this._globalRippleOptions?.namespace??""}"]`);n&&this._createRipple(n)}},this._ngZone.runOutsideAngular(()=>{for(let e of Xh)this._document?.addEventListener(e,this._onInteraction,Qh)})}ngOnDestroy(){let e=this._hosts.keys();for(let t of e)this.destroyRipple(t);for(let t of Xh)this._document?.removeEventListener(t,this._onInteraction,Qh)}configureRipple(e,t){e.setAttribute(El,this._globalRippleOptions?.namespace??""),(t.className||!e.hasAttribute(Il))&&e.setAttribute(Il,t.className||""),t.centered&&e.setAttribute(Zh,""),t.disabled&&e.setAttribute(ga,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,t){let n=this._hosts.get(e);if(n){n.disabled=t;return}t?e.setAttribute(ga,""):e.removeAttribute(ga)}_createRipple(e){if(!this._document)return;let t=this._hosts.get(e);if(t)return t;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute(Il)),e.append(n);let o=new Ft(new F(n),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(Zh),o.disabled=e.hasAttribute(ga),this.attachRipple(e,o),o}attachRipple(e,t){e.removeAttribute(El),this._hosts.set(e,t)}destroyRipple(e){let t=this._hosts.get(e);t&&(t.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),tm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=L({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,n){t&2&&B("mdc-form-field--align-end",n.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[H],attrs:vv,ngContentSelectors:yv,decls:1,vars:0,template:function(t,n){t&1&&(he(),Z(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.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 .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}}return i})();var Sv=["notch"],kv=["matFormFieldNotchedOutline",""],Mv=["*"],Dv=["textField"],Av=["iconPrefixContainer"],Rv=["textPrefixContainer"],Ov=["iconSuffixContainer"],Fv=["textSuffixContainer"],Pv=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Nv=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Lv(i,r){i&1&&w(0,"span",21)}function Vv(i,r){if(i&1&&(h(0,"label",20),Z(1,1),b(2,Lv,1,0,"span",21),m()),i&2){let e=u(2);f("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ee("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),C(!e.hideRequiredMarker&&e._control.required?2:-1)}}function jv(i,r){if(i&1&&b(0,Vv,3,5,"label",20),i&2){let e=u();C(e._hasFloatingLabel()?0:-1)}}function Bv(i,r){i&1&&w(0,"div",7)}function zv(i,r){}function Uv(i,r){if(i&1&&b(0,zv,0,0,"ng-template",13),i&2){u(2);let e=_e(1);f("ngTemplateOutlet",e)}}function Hv(i,r){if(i&1&&(h(0,"div",9),b(1,Uv,1,1,null,13),m()),i&2){let e=u();f("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),C(e._forceDisplayInfixLabel()?-1:1)}}function Gv(i,r){i&1&&(h(0,"div",10,2),Z(2,2),m())}function $v(i,r){i&1&&(h(0,"div",11,3),Z(2,3),m())}function Wv(i,r){}function qv(i,r){if(i&1&&b(0,Wv,0,0,"ng-template",13),i&2){u();let e=_e(1);f("ngTemplateOutlet",e)}}function Yv(i,r){i&1&&(h(0,"div",14,4),Z(2,4),m())}function Qv(i,r){i&1&&(h(0,"div",15,5),Z(2,5),m())}function Xv(i,r){i&1&&w(0,"div",16)}function Zv(i,r){if(i&1&&(h(0,"div",18),Z(1,6),m()),i&2){let e=u();f("@transitionMessages",e._subscriptAnimationState)}}function Kv(i,r){if(i&1&&(h(0,"mat-hint",22),te(1),m()),i&2){let e=u(2);f("id",e._hintLabelId),d(),ce(e.hintLabel)}}function Jv(i,r){if(i&1&&(h(0,"div",19),b(1,Kv,2,2,"mat-hint",22),Z(2,7),w(3,"div",23),Z(4,8),m()),i&2){let e=u();f("@transitionMessages",e._subscriptAnimationState),d(),C(e.hintLabel?1:-1)}}var im=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,selectors:[["mat-label"]],standalone:!0})}}return i})();var e0=new O("MatError");var t0=0,Tt=(()=>{class i{constructor(){this.align="start",this.id=`mat-mdc-hint-${t0++}`}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(Mt("id",n.id),ee("align",null),B("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return i})(),dm=new O("MatPrefix"),hi=(()=>{class i{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[$([{provide:dm,useExisting:i}])]})}}return i})(),um=new O("MatSuffix"),mi=(()=>{class i{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[$([{provide:um,useExisting:i}])]})}}return i})(),hm=new O("FloatingLabelParent"),nm=(()=>{class i{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=R(na),this._ngZone=R(W),this._parent=R(hm),this._resizeSubscription=new fe}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return i0(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=S({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&B("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return i})();function i0(i){let r=i;if(r.offsetParent!==null)return r.scrollWidth;let e=r.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var rm="mdc-line-ripple--active",ba="mdc-line-ripple--deactivating",om=(()=>{class i{constructor(e,t){this._elementRef=e,this._handleTransitionEnd=n=>{let o=this._elementRef.nativeElement.classList,a=o.contains(ba);n.propertyName==="opacity"&&a&&o.remove(rm,ba)},t.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(ba),e.add(rm)}deactivate(){this._elementRef.nativeElement.classList.add(ba)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(W))}}static{this.\u0275dir=S({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return i})(),am=(()=>{class i{constructor(e,t){this._elementRef=e,this._ngZone=t,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(W))}}static{this.\u0275cmp=L({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&q(Sv,5),t&2){let o;k(o=M())&&(n._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&B("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[H],attrs:kv,ngContentSelectors:Mv,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(he(),w(0,"div",1),h(1,"div",2,0),Z(3),m(),w(4,"div",3))},encapsulation:2,changeDetection:0})}}return i})(),n0={transitionMessages:Dt("transitionMessages",[bt("enter",Re({opacity:1,transform:"translateY(0%)"})),tt("void => enter",[Re({opacity:0,transform:"translateY(-5px)"}),rt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ki=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i})}}return i})();var Ji=new O("MatFormField"),r0=new O("MAT_FORM_FIELD_DEFAULT_OPTIONS"),sm=0,lm="fill",o0="auto",cm="fixed",a0="translateY(-50%)",Ut=(()=>{class i{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ei(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||o0}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let t=this._appearance,n=e||this._defaults?.appearance||lm;this._appearance=n,this._appearance==="outline"&&this._appearance!==t&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||cm}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||cm}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,t,n,o,a,s,l,p){this._elementRef=e,this._changeDetectorRef=t,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=l,this._labelChild=Cd(im),this._hideRequiredMarker=!1,this.color="primary",this._appearance=lm,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${sm++}`,this._hintLabelId=`mat-mdc-hint-${sm++}`,this._subscriptAnimationState="",this._destroyed=new P,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=R(et),this.getLabelId=ai(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=ai(()=>!!this._labelChild()),s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(re(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(),Se(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(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),ho(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(re(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let t=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,n=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let t=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=t?.getBoundingClientRect().width??0,l=n?.getBoundingClientRect().width??0,p=o?.getBoundingClientRect().width??0,g=a?.getBoundingClientRect().width??0,_=this._dir.value==="rtl"?"-1":"1",D=`${s+l}px`,ie=`calc(${_} * (${D} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( - --mat-mdc-form-field-label-transform, - ${a0} translateX(${ie}) - )`;let ae=s+l+p+g;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${ae}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Q),c(W),c(Fe),c(ue),c(r0,8),c(ke,8),c(K))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-form-field"]],contentQueries:function(t,n,o){if(t&1&&(Md(o,n._labelChild,im,5),Y(o,Ki,5),Y(o,dm,5),Y(o,um,5),Y(o,e0,5),Y(o,Tt,5)),t&2){Dd();let a;k(a=M())&&(n._formFieldControl=a.first),k(a=M())&&(n._prefixChildren=a),k(a=M())&&(n._suffixChildren=a),k(a=M())&&(n._errorChildren=a),k(a=M())&&(n._hintChildren=a)}},viewQuery:function(t,n){if(t&1&&(q(Dv,5),q(Av,5),q(Rv,5),q(Ov,5),q(Fv,5),q(nm,5),q(am,5),q(om,5)),t&2){let o;k(o=M())&&(n._textField=o.first),k(o=M())&&(n._iconPrefixContainer=o.first),k(o=M())&&(n._textPrefixContainer=o.first),k(o=M())&&(n._iconSuffixContainer=o.first),k(o=M())&&(n._textSuffixContainer=o.first),k(o=M())&&(n._floatingLabel=o.first),k(o=M())&&(n._notchedOutline=o.first),k(o=M())&&(n._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(t,n){t&2&&B("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-no-animations",n._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-focused",n._control.focused)("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[$([{provide:Ji,useExisting:i},{provide:hm,useExisting:i}]),H],ngContentSelectors:Nv,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1){let o=X();he(Pv),b(0,jv,1,1,"ng-template",null,0,_t),h(2,"div",6,1),I("click",function(s){return y(o),x(n._control.onContainerClick(s))}),b(4,Bv,1,0,"div",7),h(5,"div",8),b(6,Hv,2,2,"div",9)(7,Gv,3,0,"div",10)(8,$v,3,0,"div",11),h(9,"div",12),b(10,qv,1,1,null,13),Z(11),m(),b(12,Yv,3,0,"div",14)(13,Qv,3,0,"div",15),m(),b(14,Xv,1,0,"div",16),m(),h(15,"div",17),b(16,Zv,2,1,"div",18)(17,Jv,5,2,"div",19),m()}if(t&2){let o;d(2),B("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),d(2),C(!n._hasOutline()&&!n._control.disabled?4:-1),d(2),C(n._hasOutline()?6:-1),d(),C(n._hasIconPrefix?7:-1),d(),C(n._hasTextPrefix?8:-1),d(2),C(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),d(2),C(n._hasTextSuffix?12:-1),d(),C(n._hasIconSuffix?13:-1),d(),C(n._hasOutline()?-1:14),d(),B("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic"),d(),C((o=n._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[nm,am,Lt,om,Tt],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.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--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;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{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.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-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-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.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{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{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{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.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{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.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;will-change: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-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.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-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.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;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}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}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.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;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[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-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.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-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.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;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.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-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-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .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--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-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[n0.transitionMessages]},changeDetection:0})}}return i})(),en=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,Oe,ra,ge]})}}return i})();var mm=Ot({passive:!0}),pm=(()=>{class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return lt;let t=ht(e),n=this._monitoredElements.get(t);if(n)return n.subject;let o=new P,a="cdk-text-field-autofilled",s=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,mm),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",s,mm)}}),o}stopMonitoring(e){let t=ht(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static{this.\u0275fac=function(t){return new(t||i)(E(ue),E(W))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var fm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})();var Nl=new O("MAT_INPUT_VALUE_ACCESSOR"),c0=["button","checkbox","file","hidden","image","radio","range","reset","submit"],d0=0,tn=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=ei(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(Zt.required)??!1}set required(e){this._required=ei(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&pl().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}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=ei(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,n,o,a,s,l,p,g,_){this._elementRef=e,this._platform=t,this.ngControl=n,this._autofillMonitor=p,this._ngZone=g,this._formField=_,this._uid=`mat-input-${d0++}`,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new P,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(ie=>pl().has(ie)),this._iOSKeyupListener=ie=>{let ae=ie.target;!ae.value&&ae.selectionStart===0&&ae.selectionEnd===0&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};let D=this._elementRef.nativeElement,G=D.nodeName.toLowerCase();this._inputValueAccessor=l||D,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&g.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Mi(s,n,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=G==="select",this._isTextarea=G==="textarea",this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=D.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),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){c0.indexOf(this._type)>-1}_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){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else 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(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(ue),c(xt,10),c(Gi,8),c(Jt,8),c(Pn),c(Nl,10),c(pm),c(W),c(Ji,8))}}static{this.\u0275dir=S({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,n){t&1&&I("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),t&2&&(Mt("id",n.id)("disabled",n.disabled)("required",n.required),ee("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required)("id",n.id),B("mat-input-server",n._isServer)("mat-mdc-form-field-textarea-control",n._isInFormField&&n._isTextarea)("mat-mdc-form-field-input-control",n._isInFormField)("mdc-text-field__input",n._isInFormField)("mat-mdc-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[$([{provide:Ki,useExisting:i}]),se]})}}return i})(),gm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,en,en,fm,ge]})}}return i})();var u0=["*"],va;function h0(){if(va===void 0&&(va=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(va=i.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return va}function qr(i){return h0()?.createHTML(i)||i}function _m(i){return Error(`Unable to find icon with the name "${i}"`)}function m0(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function bm(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function vm(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var pi=class{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}},Ll=(()=>{class i{constructor(e,t,n,o){this._httpClient=e,this._sanitizer=t,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=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,o){return this._addSvgIconConfig(e,t,new pi(n,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,o){let a=this._sanitizer.sanitize(gt.HTML,n);if(!a)throw vm(n);let s=qr(a);return this._addSvgIconConfig(e,t,new pi("",s,o))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new pi(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){let o=this._sanitizer.sanitize(gt.HTML,t);if(!o)throw vm(t);let a=qr(o);return this._addSvgIconSetConfig(e,new pi("",a,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(gt.RESOURCE_URL,e);if(!t)throw bm(e);let n=this._cachedIconsByUrl.get(t);return n?U(ya(n)):this._loadSvgIconFromConfig(new pi(e,null)).pipe(we(o=>this._cachedIconsByUrl.set(t,o)),J(o=>ya(o)))}getNamedSvgIcon(e,t=""){let n=ym(t,e),o=this._svgIconConfigs.get(n);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(t,e),o)return this._svgIconConfigs.set(n,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(t);return a?this._getSvgFromIconSetConfigs(e,a):Oi(_m(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?U(ya(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(J(t=>ya(t)))}_getSvgFromIconSetConfigs(e,t){let n=this._extractIconWithNameFromAnySet(e,t);if(n)return U(n);let o=t.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Wt(s=>{let p=`Loading icon set URL: ${this._sanitizer.sanitize(gt.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(p)),U(null)})));return co(o).pipe(J(()=>{let a=this._extractIconWithNameFromAnySet(e,t);if(!a)throw _m(e);return a}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){let o=t[n];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(we(t=>e.svgText=t),J(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?U(null):this._fetchIcon(e).pipe(we(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){let o=e.querySelector(`[id="${t}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,n);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),n);let s=this._svgElementFromString(qr(""));return s.appendChild(a),this._setSvgAttributes(s,n)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(e){let t=this._svgElementFromString(qr("")),n=e.attributes;for(let o=0;oqr(p)),ri(()=>this._inProgressUrlFetches.delete(a)),od());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(ym(e,t),n),this}_addSvgIconSetConfig(e,t){let n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let n=0;nr?r.pathname+r.search:""}}var xm=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],b0=xm.map(i=>`[${i}]`).join(", "),v0=/^url\(['"]?#(.*?)['"]?\)$/,Vl=(()=>{class i{get color(){return this._color||this._defaultColor}set color(e){this._color=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){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}constructor(e,t,n,o,a,s){this._elementRef=e,this._iconRegistry=t,this._location=o,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=fe.EMPTY,s&&(s.color&&(this.color=this._defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),n||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let n=e.childNodes[t];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>e.classList.remove(n)),t.forEach(n=>e.classList.add(n)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.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 typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((n,o)=>{n.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(b0),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=t[o],l=s.getAttribute(a),p=l?l.match(v0):null;if(p){let g=n.get(s);g||(g=[],n.set(s,g)),g.push({name:a,value:p[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(qe(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${t}:${n}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Ll),Ge("aria-hidden"),c(g0),c(Ni),c(f0,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,n){t&2&&(ee("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),Qe(n.color?"mat-"+n.color:""),B("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",v],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[oe,H],ngContentSelectors:u0,decls:1,vars:0,template:function(t,n){t&1&&(he(),Z(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.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})}}return i})(),Cm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,ge]})}}return i})();var Nn=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(r=!1,e,t=!0,n){this._multiple=r,this._emitChanges=t,this.compareWith=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new P,e&&e.length&&(r?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...r){this._verifyValueAssignment(r),r.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...r){this._verifyValueAssignment(r),r.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...r){this._verifyValueAssignment(r);let e=this.selected,t=new Set(r);r.forEach(o=>this._markSelected(o)),e.filter(o=>!t.has(this._getConcreteValue(o,t))).forEach(o=>this._unmarkSelected(o));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(r){return this.isSelected(r)?this.deselect(r):this.select(r)}clear(r=!0){this._unmarkAll();let e=this._hasQueuedChanges();return r&&this._emitChangeEvent(),e}isSelected(r){return this._selection.has(this._getConcreteValue(r))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(r){this._multiple&&this.selected&&this._selected.sort(r)}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(r){r=this._getConcreteValue(r),this.isSelected(r)||(this._multiple||this._unmarkAll(),this.isSelected(r)||this._selection.add(r),this._emitChanges&&this._selectedToEmit.push(r))}_unmarkSelected(r){r=this._getConcreteValue(r),this.isSelected(r)&&(this._selection.delete(r),this._emitChanges&&this._deselectedToEmit.push(r))}_unmarkAll(){this.isEmpty()||this._selection.forEach(r=>this._unmarkSelected(r))}_verifyValueAssignment(r){r.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(r,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(r,t))return t;return r}else return r}};var xa=(()=>{class i{constructor(){this._listeners=[]}notify(e,t){for(let n of this._listeners)n(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var x0=20,Vn=(()=>{class i{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new P,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=x0){return this._platform.isBrowser?new ft(t=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(Kn(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):U()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(ve(o=>!o||n.indexOf(o)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((n,o)=>{this._scrollableContainsElement(o,e)&&t.push(o)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=ht(t),o=e.getElementRef().nativeElement;do if(n==o)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Je(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(t){return new(t||i)(E(W),E(ue),E(K,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),jl=(()=>{class i{constructor(e,t,n,o){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=n,this.dir=o,this._destroyed=new P,this._elementScrolled=new ft(a=>this.ngZone.runOutsideAngular(()=>Je(this.elementRef.nativeElement,"scroll").pipe(re(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){let t=this.elementRef.nativeElement,n=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=n?e.end:e.start),e.right==null&&(e.right=n?e.start:e.end),e.bottom!=null&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&On()!=Bt.NORMAL?(e.left!=null&&(e.right=t.scrollWidth-t.clientWidth-e.left),On()==Bt.INVERTED?e.left=e.right:On()==Bt.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let t=this.elementRef.nativeElement;ia()?t.scrollTo(e):(e.top!=null&&(t.scrollTop=e.top),e.left!=null&&(t.scrollLeft=e.left))}measureScrollOffset(e){let t="left",n="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?n:t:e=="end"&&(e=a?t:n),a&&On()==Bt.INVERTED?e==t?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&On()==Bt.NEGATED?e==t?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==t?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Vn),c(W),c(Fe,8))}}static{this.\u0275dir=S({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return i})(),C0=20,fi=(()=>{class i{constructor(e,t,n){this._platform=e,this._change=new P,this._changeListener=o=>{this._change.next(o)},this._document=n,t.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),n=e.documentElement,o=n.getBoundingClientRect(),a=-o.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,s=-o.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:a,left:s}}change(e=C0){return e>0?this._change.pipe(Kn(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(t){return new(t||i)(E(ue),E(W),E(K,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ln=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})(),Bl=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Si,Ln,Si,Ln]})}}return i})();var Yr=class{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;r!=null&&(this._attachedHost=null,r.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(r){this._attachedHost=r}},nn=class extends Yr{constructor(r,e,t,n,o){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=n,this.projectableNodes=o}},ti=class extends Yr{constructor(r,e,t,n){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}},Ul=class extends Yr{constructor(r){super(),this.element=r instanceof F?r.nativeElement:r}},Ca=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){if(r instanceof nn)return this._attachedPortal=r,this.attachComponentPortal(r);if(r instanceof ti)return this._attachedPortal=r,this.attachTemplatePortal(r);if(this.attachDomPortal&&r instanceof Ul)return this._attachedPortal=r,this.attachDomPortal(r)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var wa=class extends Ca{constructor(r,e,t,n,o){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=n,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");s.parentNode.insertBefore(l,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}attachComponentPortal(r){let t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component),n;return r.viewContainerRef?(n=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector,r.projectableNodes||void 0),this.setDisposeFn(()=>n.destroy())):(n=t.create(r.injector||this._defaultInjector||et.NULL),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=r,n}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=e.indexOf(t);n!==-1&&e.remove(n)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}};var Tm=(()=>{class i extends ti{constructor(e,t){super(e,t)}static{this.\u0275fac=function(t){return new(t||i)(c(z),c($e))}}static{this.\u0275dir=S({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[be]})}}return i})();var jn=(()=>{class i extends Ca{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new T,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=n}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);let t=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(o,t.length,e.injector||t.injector,e.projectableNodes||void 0);return t!==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);let t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(t){return new(t||i)(c(dn),c($e),c(K))}}static{this.\u0275dir=S({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[be]})}}return i})();var Bn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})();var Em=ia(),Hl=class{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Pe(-this._previousScrollPosition.left),r.style.top=Pe(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let r=this._document.documentElement,e=this._document.body,t=r.style,n=e.style,o=t.scrollBehavior||"",a=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Em&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Em&&(t.scrollBehavior=o,n.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};var Gl=class{constructor(r,e,t,n){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef,this._overlayRef=r}enable(){if(this._scrollSubscription)return;let r=this._scrollDispatcher.scrolled(0).pipe(ve(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ta=class{enable(){}disable(){}attach(){}};function $l(i,r){return r.some(e=>{let t=i.bottome.bottom,o=i.righte.right;return t||n||o||a})}function Im(i,r){return r.some(e=>{let t=i.tope.bottom,o=i.lefte.right;return t||n||o||a})}var Wl=class{constructor(r,e,t,n){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=n,this._scrollSubscription=null}attach(r){this._overlayRef,this._overlayRef=r}enable(){if(!this._scrollSubscription){let r=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(r).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();$l(e,[{width:t,height:n,bottom:n,right:t,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}},w0=(()=>{class i{constructor(e,t,n,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new Ta,this.close=a=>new Gl(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Hl(this._viewportRuler,this._document),this.reposition=a=>new Wl(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}static{this.\u0275fac=function(t){return new(t||i)(E(Vn),E(fi),E(W),E(K))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),zn=class{constructor(r){if(this.scrollStrategy=new Ta,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){let e=Object.keys(r);for(let t of e)r[t]!==void 0&&(this[t]=r[t])}}};var ql=class{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}};var Om=(()=>{class i{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(t){return new(t||i)(E(K))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),T0=(()=>{class i extends Om{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=n=>{let o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){let s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(n)):s.next(n);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)}static{this.\u0275fac=function(t){return new(t||i)(E(K),E(W,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),E0=(()=>{class i extends Om{constructor(e,t,n){super(e),this._platform=t,this._ngZone=n,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Ct(o)},this._clickListener=o=>{let a=Ct(o),s=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let p=l.length-1;p>-1;p--){let g=l[p];if(g._outsidePointerEvents.observers.length<1||!g.hasAttached())continue;if(Sm(g.overlayElement,a)||Sm(g.overlayElement,s))break;let _=g._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>_.next(o)):_.next(o)}}}add(e){if(super.add(e),!this._isAttached){let t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let 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)}static{this.\u0275fac=function(t){return new(t||i)(E(K),E(ue),E(W,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Sm(i,r){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=r;for(;t;){if(t===i)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var Fm=(()=>{class i{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||$r()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(D),this._backdropTransitionendHandler=D=>{this._disposeBackdrop(D.target)},this._keydownEvents=new P,this._outsidePointerEvents=new P,this._renders=new P,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=Nt(()=>ho(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Yt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),typeof e?.onDestroy=="function"&&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();let r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){let r=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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,r&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config=A(A({},this._config),r),this._updateElementSize()}setDirection(r){this._config=ye(A({},this._config),{direction:r}),this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){let r=this._config.direction;return r?typeof r=="string"?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let r=this._pane.style;r.width=Pe(this._config.width),r.height=Pe(this._config.height),r.minWidth=Pe(this._config.minWidth),r.minHeight=Pe(this._config.minHeight),r.maxWidth=Pe(this._config.maxWidth),r.maxHeight=Pe(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){let r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let r=this._backdropElement;if(r){if(this._animationsDisabled){this._disposeBackdrop(r);return}r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){let n=An(e||[]).filter(o=>!!o);n.length&&(t?r.classList.add(...n):r.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let r=this._renders.pipe(re(Se(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(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()),r.unsubscribe())})})}_disposeScrollStrategy(){let r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},km="cdk-overlay-connected-position-bounding-box",I0=/([A-Za-z%]+)$/,Ql=class{get positions(){return this._preferredPositions}constructor(r,e,t,n,o){this._viewportRuler=e,this._document=t,this._platform=n,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 P,this._resizeSubscription=fe.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}attach(r){this._overlayRef&&this._overlayRef,this._validatePositions(),r.hostElement.classList.add(km),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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){this.reapplyLastPosition();return}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();let r=this._originRect,e=this._overlayRect,t=this._viewportRect,n=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(r,n,s),p=this._getOverlayPoint(l,e,s),g=this._getOverlayFit(p,e,t,s);if(g.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(g,p,t)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=g,s=p)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&rn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(km),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,r.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let n;if(t.originX=="center")n=r.left+r.width/2;else{let a=this._isRtl()?r.right:r.left,s=this._isRtl()?r.left:r.right;n=t.originX=="start"?a:s}e.left<0&&(n-=e.left);let o;return t.originY=="center"?o=r.top+r.height/2:o=t.originY=="top"?r.top:r.bottom,e.top<0&&(o-=e.top),{x:n,y:o}}_getOverlayPoint(r,e,t){let n;t.overlayX=="center"?n=-e.width/2:t.overlayX==="start"?n=this._isRtl()?-e.width:0:n=this._isRtl()?0:-e.width;let o;return t.overlayY=="center"?o=-e.height/2:o=t.overlayY=="top"?0:-e.height,{x:r.x+n,y:r.y+o}}_getOverlayFit(r,e,t,n){let o=Dm(e),{x:a,y:s}=r,l=this._getOffset(n,"x"),p=this._getOffset(n,"y");l&&(a+=l),p&&(s+=p);let g=0-a,_=a+o.width-t.width,D=0-s,G=s+o.height-t.height,ie=this._subtractOverflows(o.width,g,_),ae=this._subtractOverflows(o.height,D,G),me=ie*ae;return{visibleArea:me,isCompletelyWithinViewport:o.width*o.height===me,fitsInViewportVertically:ae===o.height,fitsInViewportHorizontally:ie==o.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){let n=t.bottom-e.y,o=t.right-e.x,a=Mm(this._overlayRef.getConfig().minHeight),s=Mm(this._overlayRef.getConfig().minWidth),l=r.fitsInViewportVertically||a!=null&&a<=n,p=r.fitsInViewportHorizontally||s!=null&&s<=o;return l&&p}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};let n=Dm(e),o=this._viewportRect,a=Math.max(r.x+n.width-o.width,0),s=Math.max(r.y+n.height-o.height,0),l=Math.max(o.top-t.top-r.y,0),p=Math.max(o.left-t.left-r.x,0),g=0,_=0;return n.width<=o.width?g=p||-a:g=r.xie&&!this._isInitialRender&&!this._growAfterOpen&&(a=r.y-ie/2)}let l=e.overlayX==="start"&&!n||e.overlayX==="end"&&n,p=e.overlayX==="end"&&!n||e.overlayX==="start"&&n,g,_,D;if(p)D=t.width-r.x+this._viewportMargin*2,g=r.x-this._viewportMargin;else if(l)_=r.x,g=t.right-r.x;else{let G=Math.min(t.right-r.x+t.left,r.x),ie=this._lastBoundingBoxSize.width;g=G*2,_=r.x-G,g>ie&&!this._isInitialRender&&!this._growAfterOpen&&(_=r.x-ie/2)}return{top:a,left:_,bottom:s,right:D,width:g,height:o}}_setBoundingBoxStyles(r,e){let t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;n.height=Pe(t.height),n.top=Pe(t.top),n.bottom=Pe(t.bottom),n.width=Pe(t.width),n.left=Pe(t.left),n.right=Pe(t.right),e.overlayX==="center"?n.alignItems="center":n.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?n.justifyContent="center":n.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=Pe(o)),a&&(n.maxWidth=Pe(a))}this._lastBoundingBoxSize=t,rn(this._boundingBox.style,n)}_resetBoundingBoxStyles(){rn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){rn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){let t={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){let g=this._viewportRuler.getViewportScrollPosition();rn(t,this._getExactOverlayY(e,r,g)),rn(t,this._getExactOverlayX(e,r,g))}else t.position="static";let s="",l=this._getOffset(e,"x"),p=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),p&&(s+=`translateY(${p}px)`),t.transform=s.trim(),a.maxHeight&&(n?t.maxHeight=Pe(a.maxHeight):o&&(t.maxHeight="")),a.maxWidth&&(n?t.maxWidth=Pe(a.maxWidth):o&&(t.maxWidth="")),rn(this._pane.style,t)}_getExactOverlayY(r,e,t){let n={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,r);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),r.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;n.bottom=`${a-(o.y+this._overlayRect.height)}px`}else n.top=Pe(o.y);return n}_getExactOverlayX(r,e,t){let n={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,r);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let a;if(this._isRtl()?a=r.overlayX==="end"?"left":"right":a=r.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;n.right=`${s-(o.x+this._overlayRect.width)}px`}else n.left=Pe(o.x);return n}_getScrollVisibility(){let r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Im(r,t),isOriginOutsideView:$l(r,t),isOverlayClipped:Im(e,t),isOverlayOutsideView:$l(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,n)=>t-Math.max(n,0),r)}_getNarrowedViewportRect(){let r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return e==="x"?r.offsetX==null?this._offsetX:r.offsetX:r.offsetY==null?this._offsetY:r.offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&An(r).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){let r=this._origin;if(r instanceof F)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();let e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}};function rn(i,r){for(let e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);return i}function Mm(i){if(typeof i!="number"&&i!=null){let[r,e]=i.split(I0);return!e||e==="px"?parseFloat(r):null}return i||null}function Dm(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function S0(i,r){return i===r?!0:i.isOriginClipped===r.isOriginClipped&&i.isOriginOutsideView===r.isOriginOutsideView&&i.isOverlayClipped===r.isOverlayClipped&&i.isOverlayOutsideView===r.isOverlayOutsideView}var Am="cdk-global-overlay-wrapper",Xl=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){let e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(Am),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:a,maxHeight:s}=t,l=(n==="100%"||n==="100vw")&&(!a||a==="100%"||a==="100vw"),p=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),g=this._xPosition,_=this._xOffset,D=this._overlayRef.getConfig().direction==="rtl",G="",ie="",ae="";l?ae="flex-start":g==="center"?(ae="center",D?ie=_:G=_):D?g==="left"||g==="end"?(ae="flex-end",G=_):(g==="right"||g==="start")&&(ae="flex-start",ie=_):g==="left"||g==="start"?(ae="flex-start",G=_):(g==="right"||g==="end")&&(ae="flex-end",ie=_),r.position=this._cssPosition,r.marginLeft=l?"0":G,r.marginTop=p?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=l?"0":ie,e.justifyContent=ae,e.alignItems=p?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Am),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}},k0=(()=>{class i{constructor(e,t,n,o){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=o}global(){return new Xl}flexibleConnectedTo(e){return new Ql(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(t){return new(t||i)(E(fi),E(K),E(ue),E(Fm))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),M0=0,Ke=(()=>{class i{constructor(e,t,n,o,a,s,l,p,g,_,D,G){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=l,this._document=p,this._directionality=g,this._location=_,this._outsideClickDispatcher=D,this._animationsModuleType=G}create(e){let t=this._createHostElement(),n=this._createPaneElement(t),o=this._createPortalOutlet(n),a=new zn(e);return a.direction=a.direction||this._directionality.value,new Yl(o,t,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Pi))}position(){return this._positionBuilder}_createPaneElement(e){let t=this._document.createElement("div");return t.id=`cdk-overlay-${M0++}`,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(cr)),new wa(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(t){return new(t||i)(E(w0),E(Fm),E(dn),E(k0),E(T0),E(et),E(W),E(K),E(Fe),E(mn),E(E0),E(ke,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),D0=[{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"}],Pm=new O("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=R(Ke);return()=>i.scrollStrategies.reposition()}}),Qr=(()=>{class i{constructor(e){this.elementRef=e}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=S({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return i})(),Zl=(()=>{class i{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 disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,t,n,o,a){this._overlay=e,this._dir=a,this._backdropSubscription=fe.EMPTY,this._attachSubscription=fe.EMPTY,this._detachSubscription=fe.EMPTY,this._positionSubscription=fe.EMPTY,this._disposeOnNavigation=!1,this._ngZone=R(W),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new T,this.positionChange=new T,this.attach=new T,this.detach=new T,this.overlayKeydown=new T,this.overlayOutsideClick=new T,this._templatePortal=new ti(t,n),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=D0);let 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(t=>{this.overlayKeydown.next(t),t.keyCode===27&&!this.disableClose&&!We(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let n=this._getOriginElement(),o=Ct(t);(!n||n!==o&&!n.contains(o))&&this.overlayOutsideClick.next(t)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new zn({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(t.width=this.width),(this.height||this.height===0)&&(t.height=this.height),(this.minWidth||this.minWidth===0)&&(t.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){let t=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Qr?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Qr?this.origin.elementRef.nativeElement:this.origin instanceof F?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(ad(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)(c(Ke),c(z),c($e),c(Pm),c(Fe,8))}}static{this.\u0275dir=S({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",v],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",v],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",v],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",v],push:[2,"cdkConnectedOverlayPush","push",v],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",v]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[oe,se]})}}return i})();function A0(i){return()=>i.scrollStrategies.reposition()}var R0={provide:Pm,deps:[Ke],useFactory:A0},Un=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[Ke,R0],imports:[Si,Bn,Bl,Bl]})}}return i})();var O0=["trigger"],F0=["panel"],P0=[[["mat-select-trigger"]],"*"],N0=["mat-select-trigger","*"];function L0(i,r){if(i&1&&(h(0,"span",4),te(1),m()),i&2){let e=u();d(),ce(e.placeholder)}}function V0(i,r){i&1&&Z(0)}function j0(i,r){if(i&1&&(h(0,"span",11),te(1),m()),i&2){let e=u(2);d(),ce(e.triggerValue)}}function B0(i,r){if(i&1&&(h(0,"span",5),b(1,V0,1,0)(2,j0,2,1,"span",11),m()),i&2){let e=u();d(),C(e.customTrigger?1:2)}}function z0(i,r){if(i&1){let e=X();h(0,"div",12,1),I("@transformPanel.done",function(n){y(e);let o=u();return x(o._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){y(e);let o=u();return x(o._handleKeydown(n))}),Z(2,1),m()}if(i&2){let e=u();ji("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),f("ngClass",e.panelClass)("@transformPanel","showing"),ee("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var U0={transformPanelWrap:Dt("transformPanelWrap",[tt("* => void",$d("@transformPanel",[Gd()],{optional:!0}))]),transformPanel:Dt("transformPanel",[bt("void",Re({opacity:0,transform:"scale(1, 0.8)"})),tt("void => showing",rt("120ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:1,transform:"scale(1, 1)"}))),tt("* => void",rt("100ms linear",Re({opacity:0})))])};var Lm=0,Vm=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=R(Ke);return()=>i.scrollStrategies.reposition()}});function H0(i){return()=>i.scrollStrategies.reposition()}var G0=new O("MAT_SELECT_CONFIG"),$0={provide:Vm,deps:[Ke],useFactory:H0},W0=new O("MatSelectTrigger"),Kl=class{constructor(r,e){this.source=r,this.value=e}},jm=(()=>{class i{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let n=this.panel.nativeElement,o=Kh(e,this.options,this.optionGroups),a=t._getHostElement();e===0&&o===1?n.scrollTop=0:n.scrollTop=Jh(a.offsetTop,a.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Kl(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Zt.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=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 errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,n,o,a,s,l,p,g,_,D,G,ie,ae){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=a,this._dir=s,this._parentFormField=g,this.ngControl=_,this._liveAnnouncer=ie,this._defaultOptions=ae,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(me,Ie)=>me===Ie,this._uid=`mat-select-${Lm++}`,this._triggerAriaLabelledBy=null,this._destroy=new P,this.stateChanges=new P,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${Lm++}`,this._panelDoneAnimatingStream=new P,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new P,this.optionSelectionChanges=Zn(()=>{let me=this.options;return me?me.changes.pipe(He(me),Ye(()=>Se(...me.map(Ie=>Ie.onSelectionChange)))):this._initialized.pipe(Ye(()=>this.optionSelectionChanges))}),this.openedChange=new T,this._openedStream=this.openedChange.pipe(ve(me=>me),J(()=>{})),this._closedStream=this.openedChange.pipe(ve(me=>!me),J(()=>{})),this.selectionChange=new T,this.valueChange=new T,this._trackedModal=null,this._skipPredicate=me=>this.panelOpen?!1:me.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),ae?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=ae.typeaheadDebounceInterval),this._errorStateTracker=new Mi(o,_,p,l,this.stateChanges),this._scrollStrategyFactory=G,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(D)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Nn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ni(),re(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(re(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(re(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(He(null),re(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.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(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&pa(this._trackedModal,"aria-owns",t),xl(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;pa(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}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){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,n=t===40||t===38||t===37||t===39,o=t===13||t===32,a=this._keyManager;if(!a.isTyping()&&o&&!We(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,n=e.keyCode,o=n===40||n===38,a=t.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(n===13||n===32)&&t.activeItem&&!We(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!a&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=t.activeItemIndex;t.onKeydown(e),this._multiple&&o&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.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(qe(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(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return n.value!=null&&this._compareWith(n.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Qr?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new da(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),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(){let e=Se(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(re(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Se(...this.options.map(t=>t._stateChanges)).pipe(re(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let n=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(n=>n.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_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}static{this.\u0275fac=function(t){return new(t||i)(c(fi),c(Q),c(W),c(Pn),c(F),c(Fe,8),c(Gi,8),c(Jt,8),c(Ji,8),c(xt,10),Ge("tabindex"),c(Vm),c(Uh),c(G0,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-select"]],contentQueries:function(t,n,o){if(t&1&&(Y(o,W0,5),Y(o,_a,5),Y(o,Ol,5)),t&2){let a;k(a=M())&&(n.customTrigger=a.first),k(a=M())&&(n.options=a),k(a=M())&&(n.optionGroups=a)}},viewQuery:function(t,n){if(t&1&&(q(O0,5),q(F0,5),q(Zl,5)),t&2){let o;k(o=M())&&(n.trigger=o.first),k(o=M())&&(n.panel=o.first),k(o=M())&&(n._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,n){t&1&&I("keydown",function(a){return n._handleKeydown(a)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),t&2&&(ee("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),B("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",v],disableRipple:[2,"disableRipple","disableRipple",v],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ee(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",v],placeholder:"placeholder",required:[2,"required","required",v],multiple:[2,"multiple","multiple",v],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",v],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Ee],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[$([{provide:Ki,useExisting:i},{provide:Rl,useExisting:i}]),oe,se,H],ngContentSelectors:N0,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,n){if(t&1){let o=X();he(P0),h(0,"div",2,0),I("click",function(){return y(o),x(n.open())}),h(3,"div",3),b(4,L0,2,1,"span",4)(5,B0,3,1,"span",5),m(),h(6,"div",6)(7,"div",7),qt(),h(8,"svg",8),w(9,"path",9),m()()()(),b(10,z0,3,9,"ng-template",10),I("backdropClick",function(){return y(o),x(n.close())})("attach",function(){return y(o),x(n._onAttached())})("detach",function(){return y(o),x(n.close())})}if(t&2){let o=_e(1);d(3),ee("id",n._valueId),d(),C(n.empty?4:5),d(6),f("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[Qr,Zl,pn],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.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 .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.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}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._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:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.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}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[U0.transformPanel]},changeDetection:0})}}return i})();var Bm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[$0],imports:[Oe,Un,Fl,ge,Ln,en,Fl,ge]})}}return i})();var q0=["knob"],Y0=["valueIndicatorContainer"];function Q0(i,r){if(i&1&&(h(0,"div",2,1)(2,"div",5)(3,"span",6),te(4),m()()()),i&2){let e=u();d(4),ce(e.valueIndicatorText)}}var X0=["trackActive"],Z0=["*"];function K0(i,r){if(i&1&&w(0,"div"),i&2){let e=r.$implicit,t=r.$index,n=u(3);Qe(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),Ae("transform",n._calcTickMarkTransform(t))}}function J0(i,r){if(i&1&&Ne(0,K0,1,4,"div",8,Ed),i&2){let e=u(2);Le(e._tickMarks)}}function ey(i,r){if(i&1&&(h(0,"div",6,1),b(2,J0,2,0),m()),i&2){let e=u();d(2),C(e._cachedWidth?2:-1)}}function ty(i,r){if(i&1&&w(0,"mat-slider-visual-thumb",7),i&2){let e=u();f("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText)}}var ne=function(i){return i[i.START=1]="START",i[i.END=2]="END",i}(ne||{}),Hn=function(i){return i[i.ACTIVE=0]="ACTIVE",i[i.INACTIVE=1]="INACTIVE",i}(Hn||{}),Ea=new O("_MatSlider"),zm=new O("_MatSliderThumb"),Um=new O("_MatSliderRangeThumb"),Hm=new O("_MatSliderVisualThumb");var iy=(()=>{class i{constructor(e,t,n,o){this._cdr=e,this._ngZone=t,this._slider=o,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._platform=R(ue),this._onPointerMove=a=>{if(this._sliderInput._isFocused)return;let s=this._hostElement.getBoundingClientRect(),l=this._slider._isCursorOnSliderThumb(a,s);this._isHovered=l,l?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=a=>{a.button===0&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()},this._hostElement=n.nativeElement}ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let t=this._sliderInputEl;t.addEventListener("pointermove",this._onPointerMove),t.addEventListener("pointerdown",this._onDragStart),t.addEventListener("pointerup",this._onDragEnd),t.addEventListener("pointerleave",this._onMouseLeave),t.addEventListener("focus",this._onFocus),t.addEventListener("blur",this._onBlur)}))}ngOnDestroy(){let e=this._sliderInputEl;e&&(e.removeEventListener("pointermove",this._onPointerMove),e.removeEventListener("pointerdown",this._onDragStart),e.removeEventListener("pointerup",this._onDragEnd),e.removeEventListener("pointerleave",this._onMouseLeave),e.removeEventListener("focus",this._onFocus),e.removeEventListener("blur",this._onBlur))}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(e){return e?.state===st.FADING_IN||e?.state===st.VISIBLE}_showRipple(e,t){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===ne.START?ne.END:ne.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!t)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let t=this._getSibling();t._isShowingAnyRipple()||(this._hideValueIndicator(),t._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===ne.START?ne.END:ne.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static{this.\u0275fac=function(t){return new(t||i)(c(Q),c(W),c(F),c(Ea))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(t,n){if(t&1&&(q(Ft,5),q(q0,5),q(Y0,5)),t&2){let o;k(o=M())&&(n._ripple=o.first),k(o=M())&&(n._knob=o.first),k(o=M())&&(n._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},standalone:!0,features:[$([{provide:Hm,useExisting:i}]),H],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(t,n){t&1&&(b(0,Q0,5,1,"div",2),w(1,"div",3,0)(3,"div",4)),t&2&&(C(n.discrete?0:-1),d(3),f("matRippleDisabled",!0))},dependencies:[Ft],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}}return i})(),Gm=(()=>{class i{get disabled(){return this._disabled}set disabled(e){this._disabled=e;let t=this._getInput(ne.END),n=this._getInput(ne.START);t&&(t.disabled=this._disabled),n&&(n.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs()}get min(){return this._min}set min(e){let t=isNaN(e)?this._min:e;this._min!==t&&this._updateMin(t)}_updateMin(e){let t=this._min;this._min=e,this._isRange?this._updateMinRange({old:t,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange()}_updateMinRange(e){let t=this._getInput(ne.END),n=this._getInput(ne.START),o=t.value,a=n.value;n.min=e.new,t.min=Math.max(e.new,n.value),n.max=Math.min(t.max,t.value),n._updateWidthInactive(),t._updateWidthInactive(),e.newe.old?this._onTranslateXChangeBySideEffect(n,t):this._onTranslateXChangeBySideEffect(t,n),o!==t.value&&this._onValueChange(t),a!==n.value&&this._onValueChange(n)}_updateMaxNonRange(e){let t=this._getInput(ne.END);if(t){let n=t.value;t.max=e,t._updateThumbUIByValue(),this._updateTrackUI(t),n!==t.value&&this._onValueChange(t)}}get step(){return this._step}set step(e){let t=isNaN(e)?this._step:e;this._step!==t&&this._updateStep(t)}_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let e=this._getInput(ne.END),t=this._getInput(ne.START),n=e.value,o=t.value,a=t.value;e.min=this._min,t.max=this._max,e.step=this._step,t.step=this._step,this._platform.SAFARI&&(e.value=e.value,t.value=t.value),e.min=Math.max(this._min,t.value),t.max=Math.min(this._max,e.value),t._updateWidthInactive(),e._updateWidthInactive(),e.value`${l}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=R(ue),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations=s==="NoopAnimations",this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl"}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(ne.END),t=this._getInput(ne.START);this._isRange=!!e&&!!t,this._cdr.detectChanges();let n=this._getThumb(ne.END);this._rippleRadius=n._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,t):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue()}_initUIRange(e,t){e.initProps(),e.initUI(),t.initProps(),t.initUI(),e._updateMinMax(),t._updateMinMax(),e._updateStaticStyles(),t._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),t._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let e=this._getInput(ne.END),t=this._getInput(ne.START);e._setIsLeftThumb(),t._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),t.translateX=t._calcTranslateXByValue(),e._updateStaticStyles(),t._updateStaticStyles(),e._updateWidthInactive(),t._updateWidthInactive(),e._updateThumbUIByValue(),t._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(ne.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(ne.START)._isActive||this._getThumb(ne.END)._isActive}_getValue(e=ne.END){let t=this._getInput(e);return t?t.value:this.min}_skipUpdate(){return!!(this._getInput(ne.START)?._skipUIUpdate||this._getInput(ne.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(e){let t=this._trackActive.nativeElement.style;t.left=e.left,t.right=e.right,t.transformOrigin=e.transformOrigin,t.transform=e.transform}_calcTickMarkTransform(e){return`translateX(${e*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e))}_onTranslateXChangeBySideEffect(e,t){this._hasViewInitialized&&(e._updateThumbUIByValue(),t._updateThumbUIByValue())}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(ne.END),t=this._getInput(ne.START);e._updateThumbUIByValue(),t._updateThumbUIByValue(),e._updateStaticStyles(),t._updateStaticStyles(),e._updateMinMax(),t._updateMinMax(),e._updateWidthInactive(),t._updateWidthInactive()}else{let e=this._getInput(ne.END);e&&e._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){let e=this._getInput(ne.START),t=this._getInput(ne.END);return!e||!t?!1:t.translateX-e.translateX<20}_updateOverlappingThumbClassNames(e){let t=e.getSibling(),n=this._getThumb(e.thumbPosition);this._getThumb(t.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),n._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e))}_updateThumbUI(e){if(this._skipUpdate())return;let t=this._getThumb(e.thumbPosition===ne.END?ne.END:ne.START);t._hostElement.style.transform=`translateX(${e.translateX}px)`}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let t=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(t):e._hostElement.setAttribute("aria-valuetext",t),this.discrete){e.thumbPosition===ne.START?this.startValueIndicatorText=t:this.endValueIndicatorText=t;let n=this._getThumb(e.thumbPosition);t.length<3?n._hostElement.classList.add("mdc-slider__thumb--short-value"):n._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let e=this._getInput(ne.END),t=this._getInput(ne.START);e&&this._updateValueIndicatorUI(e),t&&this._updateValueIndicatorUI(t)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,n=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*n-6}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e))}_updateTrackUIRange(e){let t=e.getSibling();if(!t||!this._cachedWidth)return;let n=Math.abs(t.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-t.translateX}px`,transformOrigin:"right",transform:`scaleX(${n})`}):this._setTrackActiveStyles({left:`${t.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${n})`})}_updateTrackUINonRange(e){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(e){let t=this._getValue(),n=Math.max(Math.round((t-this.min)/e),0),o=Math.max(Math.round((this.max-t)/e),0);this._isRtl?n++:o++,this._tickMarks=Array(n).fill(Hn.ACTIVE).concat(Array(o).fill(Hn.INACTIVE))}_updateTickMarkUIRange(e){let t=this._getValue(),n=this._getValue(ne.START),o=Math.max(Math.round((n-this.min)/e),0),a=Math.max(Math.round((t-n)/e)+1,0),s=Math.max(Math.round((this.max-t)/e),0);this._tickMarks=Array(o).fill(Hn.INACTIVE).concat(Array(a).fill(Hn.ACTIVE),Array(s).fill(Hn.INACTIVE))}_getInput(e){if(e===ne.END&&this._input)return this._input;if(this._inputs?.length)return e===ne.START?this._inputs.first:this._inputs.last}_getThumb(e){return e===ne.END?this._thumbs?.last:this._thumbs?.first}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(e,t){let n=t.width/2,o=t.x+n,a=t.y+n,s=e.clientX-o,l=e.clientY-a;return Math.pow(s,2)+Math.pow(l,2)Ia),multi:!0},ry={provide:Ce,useExisting:le(()=>Jl),multi:!0},Ia=(()=>{class i{get value(){return Ee(this._hostElement.value,0)}set value(e){e=isNaN(e)?0:e;let t=e+"";if(!this._hasSetInitialValue){this._initialValue=t;return}this._isActive||this._setValue(t)}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e}get min(){return Ee(this._hostElement.min,0)}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges()}get max(){return Ee(this._hostElement.max,0)}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges()}get step(){return Ee(this._hostElement.step,0)}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges()}get disabled(){return v(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(e){this._isFocused=e}constructor(e,t,n,o){this._ngZone=e,this._elementRef=t,this._cdr=n,this._slider=o,this.valueChange=new T,this.dragStart=new T,this.dragEnd=new T,this.thumbPosition=ne.END,this._valuetext=yi(""),this._knobRadius=8,this._tickMarkOffset=3,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new P,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=R(ue),this._hostElement=t.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let t=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=t,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e)},0)}_fixValue(e){let t=e.clientX-this._slider._cachedLeft,n=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,a=Math.floor((this._slider.max-this._slider.min)/o),s=this._slider._isRtl?1-t/n:t/n,p=Math.round(s*a)/a*(this._slider.max-this._slider.min)+this._slider.min,g=Math.round(p/o)*o,_=this.value;if(g===_){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return}this.value=g,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation})}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(e){let t=this._tickMarkOffset,n=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,n),t)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e)}_updateThumbUIByPointerEvent(e,t){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(t)}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e)}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0}registerOnTouched(e){this._onTouchedFn=e}setDisabledState(e){this.disabled=e}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static{this.\u0275fac=function(t){return new(t||i)(c(W),c(F),c(Q),c(Ea))}}static{this.\u0275dir=S({type:i,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(t,n){t&1&&I("change",function(){return n._onChange()})("input",function(){return n._onInput()})("blur",function(){return n._onBlur()})("focus",function(){return n._onFocus()}),t&2&&ee("aria-valuetext",n._valuetext())},inputs:{value:[2,"value","value",Ee]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],standalone:!0,features:[$([ny,{provide:zm,useExisting:i}]),oe]})}}return i})(),Jl=(()=>{class i extends Ia{getSibling(){return this._sibling||(this._sibling=this._slider._getInput(this._isEndThumb?ne.START:ne.END)),this._sibling}getMinPos(){let e=this.getSibling();return!this._isLeftThumb&&e?e.translateX:this._tickMarkOffset}getMaxPos(){let e=this.getSibling();return this._isLeftThumb&&e?e.translateX:this._slider._cachedWidth-this._tickMarkOffset}_setIsLeftThumb(){this._isLeftThumb=this._isEndThumb&&this._slider._isRtl||!this._isEndThumb&&!this._slider._isRtl}constructor(e,t,n,o){super(e,n,o,t),this._cdr=o,this._isEndThumb=this._hostElement.hasAttribute("matSliderEndThumb"),this._setIsLeftThumb(),this.thumbPosition=this._isEndThumb?ne.END:ne.START}_getDefaultValue(){return this._isEndThumb&&this._slider._isRange?this.max:this.min}_onInput(){super._onInput(),this._updateSibling(),this._isActive||this._updateWidthInactive()}_onNgControlValueChange(){super._onNgControlValueChange(),this.getSibling()?._updateMinMax()}_onPointerDown(e){this.disabled||e.button!==0||(this._sibling&&(this._sibling._updateWidthActive(),this._sibling._hostElement.classList.add("mat-mdc-slider-input-no-pointer-events")),super._onPointerDown(e))}_onPointerUp(){super._onPointerUp(),this._sibling&&setTimeout(()=>{this._sibling._updateWidthInactive(),this._sibling._hostElement.classList.remove("mat-mdc-slider-input-no-pointer-events")})}_onPointerMove(e){super._onPointerMove(e),!this._slider.step&&this._isActive&&this._updateSibling()}_fixValue(e){super._fixValue(e),this._sibling?._updateMinMax()}_clamp(e){return Math.max(Math.min(e,this.getMaxPos()),this.getMinPos())}_updateMinMax(){let e=this.getSibling();e&&(this._isEndThumb?(this.min=Math.max(this._slider.min,e.value),this.max=this._slider.max):(this.min=this._slider.min,this.max=Math.min(this._slider.max,e.value)))}_updateWidthActive(){let e=this._slider._rippleRadius*2-this._slider._inputPadding*2,t=this._slider._cachedWidth+this._slider._inputPadding-e-this._tickMarkOffset*2,n=this._slider.min{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,Zi]})}}return i})();var oy=["switch"],ay=["*"];function sy(i,r){i&1&&(h(0,"span",10),qt(),h(1,"svg",12),w(2,"path",13),m(),h(3,"svg",14),w(4,"path",15),m()())}var ly=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),cy={provide:Ce,useExisting:le(()=>ka),multi:!0},Sa=class{constructor(r,e){this.source=r,this.checked=e}},dy=0,ka=(()=>{class i{_createChangeEvent(e){return new Sa(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,n,o,a,s){this._elementRef=e,this._focusMonitor=t,this._changeDetectorRef=n,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new T,this.toggleChange=new T,this.tabIndex=parseInt(o)||0,this.color=a.color||"accent",this._noopAnimations=s==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++dy}`,this.hideIcon=a.hideIcon??!1,this.disabledInteractive=a.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Sa(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(wt),c(Q),Ge("tabindex"),c(ly),c(ke,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(t,n){if(t&1&&q(oy,5),t&2){let o;k(o=M())&&(n._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(t,n){t&2&&(Mt("id",n.id),ee("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Qe(n.color?"mat-"+n.color:""),B("mat-mdc-slide-toggle-focused",n._focused)("mat-mdc-slide-toggle-checked",n.checked)("_mat-animation-noopable",n._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",v],color:"color",disabled:[2,"disabled","disabled",v],disableRipple:[2,"disableRipple","disableRipple",v],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ee(e)],checked:[2,"checked","checked",v],hideIcon:[2,"hideIcon","hideIcon",v],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[$([cy,{provide:Rt,useExisting:i,multi:!0}]),oe,se,H],ngContentSelectors:ay,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(t,n){if(t&1){let o=X();he(),h(0,"div",1)(1,"button",2,0),I("click",function(){return y(o),x(n._handleClick())}),w(3,"span",3),h(4,"span",4)(5,"span",5)(6,"span",6),w(7,"span",7),m(),h(8,"span",8),w(9,"span",9),m(),b(10,sy,5,0,"span",10),m()()(),h(11,"label",11),I("click",function(s){return y(o),x(s.stopPropagation())}),Z(12),m()()}if(t&2){let o=_e(2);f("labelPosition",n.labelPosition),d(),B("mdc-switch--selected",n.checked)("mdc-switch--unselected",!n.checked)("mdc-switch--checked",n.checked)("mdc-switch--disabled",n.disabled)("mat-mdc-slide-toggle-disabled-interactive",n.disabledInteractive),f("tabIndex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex)("disabled",n.disabled&&!n.disabledInteractive),ee("id",n.buttonId)("name",n.name)("aria-label",n.ariaLabel)("aria-labelledby",n._getAriaLabelledBy())("aria-describedby",n.ariaDescribedby)("aria-required",n.required||null)("aria-checked",n.checked)("aria-disabled",n.disabled&&n.disabledInteractive?"true":null),d(8),f("matRippleTrigger",o)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),d(),C(n.hideIcon?-1:10),d(),f("for",n.buttonId),ee("id",n._labelId)}},dependencies:[Ft,tm],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height);border-radius:var(--mdc-switch-track-shape, var(--mat-app-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color, var(--mat-app-outline))}.cdk-high-contrast-active .mdc-switch__track::before,.cdk-high-contrast-active .mdc-switch__track::after{border-color:currentColor}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-app-on-surface))}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-app-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-app-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-app-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-app-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-app-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-app-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-app-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size);margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size);margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}.cdk-high-contrast-active .mdc-switch__handle::before,.cdk-high-contrast-active .mdc-switch__handle::after{border-color:currentColor}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-app-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-app-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-app-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-app-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-app-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size);height:var(--mdc-switch-state-layer-size)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-app-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size);fill:var(--mdc-switch-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size);fill:var(--mdc-switch-selected-icon-color, var(--mat-app-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-app-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0})}}return i})();var Wm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ka,ge,ge]})}}return i})();var uy=["button"],hy=["*"];function my(i,r){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=u();f("disabled",e.disabled)}}function py(i,r){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=u();f("disabled",e.disabled)}}var qm=new O("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:fy});function fy(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var Ym=new O("MatButtonToggleGroup"),gy={provide:Ce,useExisting:le(()=>ec),multi:!0},Qm=0,Ma=class{constructor(r,e){this.source=r,this.value=e}},ec=(()=>{class i{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(t=>t.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck()}constructor(e,t,n){this._changeDetector=e,this._dir=n,this._multiple=!1,this._disabled=!1,this._disabledInteractive=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${Qm++}`,this.valueChange=new T,this.change=new T,this.appearance=t&&t.appearance?t.appearance:"standard",this.hideSingleSelectionIndicator=t?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=t?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new Nn(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex()}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_keydown(e){if(this.multiple||this.disabled)return;let n=e.target.id,o=this._buttonToggles.toArray().findIndex(s=>s.buttonId===n),a=null;switch(e.keyCode){case 32:case 13:a=this._buttonToggles.get(o)||null;break;case 38:a=this._getNextButton(o,-1);break;case 37:a=this._getNextButton(o,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(o,1);break;case 39:a=this._getNextButton(o,this.dir==="ltr"?1:-1);break;default:return}a&&(e.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(e){let t=new Ma(e,this.value);this._rawValue=t.value,this._controlValueAccessorChangeFn(t.value),this.change.emit(t)}_syncButtonToggle(e,t,n=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?t?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,n)):this._updateModelValue(e,n)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(t=>e.value!=null&&t===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;ethis._selectValue(t))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e){let t=this._buttonToggles.find(n=>n.value!=null&&n.value===e);t&&(t.checked=!0,this._selectionModel.select(t),this.multiple||(t.tabIndex=0))}_updateModelValue(e,t){t&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static{this.\u0275fac=function(t){return new(t||i)(c(Q),c(qm,8),c(Fe,8))}}static{this.\u0275dir=S({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,n,o){if(t&1&&Y(o,Da,5),t&2){let a;k(a=M())&&(n._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(t,n){t&1&&I("keydown",function(a){return n._keydown(a)}),t&2&&(ee("role",n.multiple?"group":"radiogroup")("aria-disabled",n.disabled),B("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard",n.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",v],value:"value",multiple:[2,"multiple","multiple",v],disabled:[2,"disabled","disabled",v],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",v],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",v]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[$([gy,{provide:Ym,useExisting:i}]),oe]})}}return i})(),Da=(()=>{class i{get buttonId(){return`${this.id}-button`}get tabIndex(){return this._tabIndex}set tabIndex(e){this._tabIndex=e,this._markForCheck()}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){e!==this._checked&&(this._checked=e,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=e}get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}constructor(e,t,n,o,a,s){this._changeDetectorRef=t,this._elementRef=n,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T;let l=Number(a);this.tabIndex=l||l===0?l:null,this.buttonToggleGroup=e,this.appearance=s&&s.appearance?s.appearance:"standard",this.disabledInteractive=s?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${Qm++}`,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(){let 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(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let t=this.buttonToggleGroup._buttonToggles.find(n=>n.tabIndex===0);t&&(t.tabIndex=-1),this.tabIndex=0}this.change.emit(new Ma(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static{this.\u0275fac=function(t){return new(t||i)(c(Ym,8),c(Q),c(F),c(wt),Ge("tabindex"),c(qm,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-button-toggle"]],viewQuery:function(t,n){if(t&1&&q(uy,5),t&2){let o;k(o=M())&&(n._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(t,n){t&1&&I("focus",function(){return n.focus()}),t&2&&(ee("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),B("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-disabled-interactive",n.disabledInteractive)("mat-button-toggle-appearance-standard",n.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",v],appearance:"appearance",checked:[2,"checked","checked",v],disabled:[2,"disabled","disabled",v],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[oe,H],ngContentSelectors:hy,decls:8,vars:14,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){if(t&1){let o=X();he(),h(0,"button",1,0),I("click",function(){return y(o),x(n._onButtonClick())}),h(2,"span",2),b(3,my,1,1,"mat-pseudo-checkbox",3)(4,py,1,1,"mat-pseudo-checkbox",3),Z(5),m()(),w(6,"span",4)(7,"span",5)}if(t&2){let o=_e(1);f("id",n.buttonId)("disabled",n.disabled&&!n.disabledInteractive||null),ee("role",n.isSingleSelector()?"radio":"button")("tabindex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex)("aria-pressed",n.isSingleSelector()?null:n.checked)("aria-checked",n.isSingleSelector()?n.checked:null)("name",n._getButtonName())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-disabled",n.disabled&&n.disabledInteractive?"true":null),d(3),C(n.buttonToggleGroup&&n.checked&&!n.buttonToggleGroup.multiple&&!n.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),d(),C(n.buttonToggleGroup&&n.checked&&n.buttonToggleGroup.multiple&&!n.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),d(3),f("matRippleTrigger",o)("matRippleDisabled",n.disableRipple||n.disabled)}},dependencies:[Ft,Al],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow: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)}.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:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.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;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-app-on-surface));background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-app-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-app-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-app-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-app-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-app-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-app-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-app-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.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;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;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}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-app-corner-full))}"],encapsulation:2,changeDetection:0})}}return i})(),Xm=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,Zi,Da,ge]})}}return i})();var _y=".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}";var by=["mat-icon-button",""],vy=["*"];var yy=new O("MAT_BUTTON_CONFIG");var xy=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Cy=(()=>{class i{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,t,n,o){this._elementRef=e,this._platform=t,this._ngZone=n,this._animationMode=o,this._focusMonitor=R(wt),this._rippleLoader=R(em),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=R(yy,{optional:!0}),s=e.nativeElement,l=s.classList;this.disabledInteractive=a?.disabledInteractive??!1,this.color=a?.color??null,this._rippleLoader?.configureRipple(s,{className:"mat-mdc-button-ripple"});for(let{attribute:p,mdcClasses:g}of xy)s.hasAttribute(p)&&l.add(...g)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",t){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,t):this._elementRef.nativeElement.focus(t)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(t){or()}}static{this.\u0275dir=S({type:i,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",v],disabled:[2,"disabled","disabled",v],ariaDisabled:[2,"aria-disabled","ariaDisabled",v],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v]},features:[oe]})}}return i})();var Zr=(()=>{class i extends Cy{constructor(e,t,n,o){super(e,t,n,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(ue),c(W),c(ke,8))}}static{this.\u0275cmp=L({type:i,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(t,n){t&2&&(ee("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled()),Qe(n.color?"mat-"+n.color:""),B("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[be,H],attrs:by,ngContentSelectors:vy,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(he(),w(0,"span",0),Z(1),w(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;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;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.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-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.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-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.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[hidden]{display:none}.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}',_y],encapsulation:2,changeDetection:0})}}return i})();var Aa=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,Zi,ge]})}}return i})();var rc=["*"];function wy(i,r){i&1&&Z(0)}var Ty=["tabListContainer"],Ey=["tabList"],Iy=["tabListInner"],Sy=["nextPaginator"],ky=["previousPaginator"],My=i=>({animationDuration:i}),Dy=(i,r)=>({value:i,params:r});function Ay(i,r){}var Ry=["tabBodyWrapper"],Oy=["tabHeader"];function Fy(i,r){}function Py(i,r){if(i&1&&b(0,Fy,0,0,"ng-template",12),i&2){let e=u().$implicit;f("cdkPortalOutlet",e.templateLabel)}}function Ny(i,r){if(i&1&&te(0),i&2){let e=u().$implicit;ce(e.textLabel)}}function Ly(i,r){if(i&1){let e=X();h(0,"div",7,2),I("click",function(){let n=y(e),o=n.$implicit,a=n.$index,s=u(),l=_e(1);return x(s._handleClick(o,l,a))})("cdkFocusChange",function(n){let o=y(e).$index,a=u();return x(a._tabFocusChanged(n,o))}),w(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),b(6,Py,1,1,null,12)(7,Ny,1,1),m()()()}if(i&2){let e=r.$implicit,t=r.$index,n=_e(1),o=u();Qe(e.labelClass),B("mdc-tab--active",o.selectedIndex===t),f("id",o._getTabLabelId(t))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),ee("tabIndex",o._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(t))("aria-selected",o.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),d(3),f("matRippleTrigger",n)("matRippleDisabled",e.disabled||o.disableRipple),d(3),C(e.templateLabel?6:7)}}function Vy(i,r){i&1&&Z(0)}function jy(i,r){if(i&1){let e=X();h(0,"mat-tab-body",13),I("_onCentered",function(){y(e);let n=u();return x(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){y(e);let o=u();return x(o._setTabBodyWrapperHeight(n))}),m()}if(i&2){let e=r.$implicit,t=r.$index,n=u();Qe(e.bodyClass),B("mat-mdc-tab-body-active",n.selectedIndex===t),f("id",n._getTabContentId(t))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),ee("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(t))("aria-hidden",n.selectedIndex!==t)}}var By=new O("MatTabContent"),oc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","matTabContent",""]],standalone:!0,features:[$([{provide:By,useExisting:i}])]})}}return i})(),zy=new O("MatTabLabel"),Jm=new O("MAT_TAB"),ac=(()=>{class i extends Tm{constructor(e,t,n){super(e,t),this._closestTab=n}static{this.\u0275fac=function(t){return new(t||i)(c(z),c($e),c(Jm,8))}}static{this.\u0275dir=S({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[$([{provide:zy,useExisting:i}]),be]})}}return i})(),ep=new O("MAT_TAB_GROUP"),sc=(()=>{class i{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,t){this._viewContainerRef=e,this._closestTabGroup=t,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new P,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 ti(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static{this.\u0275fac=function(t){return new(t||i)(c($e),c(ep,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-tab"]],contentQueries:function(t,n,o){if(t&1&&(Y(o,ac,5),Y(o,oc,7,z)),t&2){let a;k(a=M())&&(n.templateLabel=a.first),k(a=M())&&(n._explicitContent=a.first)}},viewQuery:function(t,n){if(t&1&&q(z,7),t&2){let o;k(o=M())&&(n._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",v],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[$([{provide:Jm,useExisting:i}]),oe,se,H],ngContentSelectors:rc,decls:1,vars:0,template:function(t,n){t&1&&(he(),b(0,wy,1,0,"ng-template"))},encapsulation:2})}}return i})(),tc="mdc-tab-indicator--active",Zm="mdc-tab-indicator--no-transition",ic=class{constructor(r){this._items=r}hide(){this._items.forEach(r=>r.deactivateInkBar())}alignToElement(r){let e=this._items.find(n=>n.elementRef.nativeElement===r),t=this._currentItem;if(e!==t&&(t?.deactivateInkBar(),e)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(n),this._currentItem=e}}},Uy=(()=>{class i{constructor(){this._elementRef=R(F),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let t=this._elementRef.nativeElement;if(!e||!t.getBoundingClientRect||!this._inkBarContentElement){t.classList.add(tc);return}let n=t.getBoundingClientRect(),o=e.width/n.width,a=e.left-n.left;t.classList.add(Zm),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),t.getBoundingClientRect(),t.classList.remove(Zm),t.classList.add(tc),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(tc)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,t=this._inkBarElement=e.createElement("span"),n=this._inkBarContentElement=e.createElement("span");t.className="mdc-tab-indicator",n.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",t.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",v]},features:[oe]})}}return i})();var tp=(()=>{class i extends Uy{constructor(e){super(),this.elementRef=e,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=S({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){t&2&&(ee("aria-disabled",!!n.disabled),B("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:[2,"disabled","disabled",v]},standalone:!0,features:[oe,be]})}}return i})(),Km=Ot({passive:!0}),Hy=650,Gy=100,$y=(()=>{class i{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let t=isNaN(e)?0:e;this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}constructor(e,t,n,o,a,s,l){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=n,this._dir=o,this._ngZone=a,this._platform=s,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new P,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new P,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new T,this.indexFocused=new T,this._sharedResizeObserver=R(na),this._injector=R(et),a.runOutsideAngular(()=>{Je(e.nativeElement,"mouseleave").pipe(re(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Je(this._previousPaginator.nativeElement,"touchstart",Km).pipe(re(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Je(this._nextPaginator.nativeElement,"touchstart",Km).pipe(re(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let e=this._dir?this._dir.change:U("ltr"),t=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(St(32),re(this._destroyed)),n=this._viewportRuler.change(150).pipe(re(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ua(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Yt(o,{injector:this._injector}),Se(e,n,t,this._items.changes,this._itemsResized()).pipe(re(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?lt:this._items.changes.pipe(He(this._items),Ye(e=>new ft(t=>this._ngZone.runOutsideAngular(()=>{let n=new ResizeObserver(o=>t.next(o));return e.forEach(o=>n.observe(o.elementRef.nativeElement)),()=>{n.disconnect()}}))),an(1),ve(e=>e.some(t=>t.contentRect.width>0&&t.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(!We(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let t=this._items.get(this.focusIndex);t&&!t.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){let 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]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let t=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?t.scrollLeft=0:t.scrollLeft=t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,t=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}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){let t=this._tabListContainer.nativeElement.offsetWidth,n=(e=="before"?-1:1)*t/3;return this._scrollTo(this._scrollDistance+n)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let t=this._items?this._items.toArray()[e]:null;if(!t)return;let n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=t.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let p=this.scrollDistance,g=this.scrollDistance+n;sg&&(this.scrollDistance+=Math.min(l-g,s-p))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,t=this._elementRef.nativeElement.offsetWidth,n=e-t>=5;n||(this.scrollDistance=0),n!==this._showPaginationControls&&(this._showPaginationControls=n,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,t=this._tabListContainer.nativeElement.offsetWidth;return e-t||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&t.button!=null&&t.button!==0||(this._stopInterval(),ed(Hy,Gy).pipe(re(Se(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:n,distance:o}=this._scrollHeader(e);(o===0||o>=n)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Q),c(fi),c(Fe,8),c(W),c(ue),c(ke,8))}}static{this.\u0275dir=S({type:i,inputs:{disablePagination:[2,"disablePagination","disablePagination",v],selectedIndex:[2,"selectedIndex","selectedIndex",Ee]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[oe]})}}return i})(),Wy=(()=>{class i extends $y{constructor(e,t,n,o,a,s,l){super(e,t,n,o,a,s,l),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new ic(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Q),c(fi),c(Fe,8),c(W),c(ue),c(ke,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-tab-header"]],contentQueries:function(t,n,o){if(t&1&&Y(o,tp,4),t&2){let a;k(a=M())&&(n._items=a)}},viewQuery:function(t,n){if(t&1&&(q(Ty,7),q(Ey,7),q(Iy,7),q(Sy,5),q(ky,5)),t&2){let o;k(o=M())&&(n._tabListContainer=o.first),k(o=M())&&(n._tabList=o.first),k(o=M())&&(n._tabListInner=o.first),k(o=M())&&(n._nextPaginator=o.first),k(o=M())&&(n._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,n){t&2&&B("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl",n._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",v]},standalone:!0,features:[oe,be,H],ngContentSelectors:rc,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(t,n){if(t&1){let o=X();he(),h(0,"div",5,0),I("click",function(){return y(o),x(n._handlePaginatorClick("before"))})("mousedown",function(s){return y(o),x(n._handlePaginatorPress("before",s))})("touchend",function(){return y(o),x(n._stopInterval())}),w(2,"div",6),m(),h(3,"div",7,1),I("keydown",function(s){return y(o),x(n._handleKeydown(s))}),h(5,"div",8,2),I("cdkObserveContent",function(){return y(o),x(n._onContentChanges())}),h(7,"div",9,3),Z(9),m()()(),h(10,"div",10,4),I("mousedown",function(s){return y(o),x(n._handlePaginatorPress("after",s))})("click",function(){return y(o),x(n._handlePaginatorClick("after"))})("touchend",function(){return y(o),x(n._stopInterval())}),w(12,"div",6),m()}t&2&&(B("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),f("matRippleDisabled",n._disableScrollBefore||n.disableRipple),d(3),B("_mat-animation-noopable",n._animationMode==="NoopAnimations"),d(2),ee("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null),d(5),B("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),f("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},dependencies:[Ft,Ah],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.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;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.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;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-app-on-surface))}.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-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color, var(--mat-app-surface-variant))}.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}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}}return i})(),qy=new O("MAT_TABS_CONFIG"),Yy={translateTab:Dt("translateTab",[bt("center, void, left-origin-center, right-origin-center",Re({transform:"none",visibility:"visible"})),bt("left",Re({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),bt("right",Re({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),tt("* => left, * => right, left => center, right => center",rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),tt("void => left-origin-center",[Re({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),tt("void => right-origin-center",[Re({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),rt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Qy=(()=>{class i extends jn{constructor(e,t,n,o){super(e,t,o),this._host=n,this._centeringSub=fe.EMPTY,this._leavingSub=fe.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(He(this._host._isCenterPosition(this._host._position))).subscribe(e=>{this._host._content&&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()}static{this.\u0275fac=function(t){return new(t||i)(c(dn),c($e),c(le(()=>ip)),c(K))}}static{this.\u0275dir=S({type:i,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[be]})}}return i})(),ip=(()=>{class i{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,t,n){this._elementRef=e,this._dir=t,this._dirChangeSubscription=fe.EMPTY,this._translateTabComplete=new P,this._onCentering=new T,this._beforeCentering=new T,this._afterLeavingCenter=new T,this._onCentered=new T(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(o=>{this._computePositionAnimationState(o),n.markForCheck()})),this._translateTabComplete.pipe(ni((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(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){let t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(e){return e=="center"||e=="left-origin-center"||e=="right-origin-center"}_computePositionAnimationState(e=this._getLayoutDirection()){this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(e){let t=this._getLayoutDirection();return t=="ltr"&&e<=0||t=="rtl"&&e>0?"left-origin-center":"right-origin-center"}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Fe,8),c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-tab-body"]],viewQuery:function(t,n){if(t&1&&q(jn,5),t&2){let o;k(o=M())&&(n._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[H],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(t,n){if(t&1){let o=X();h(0,"div",1,0),I("@translateTab.start",function(s){return y(o),x(n._onTranslateTabStarted(s))})("@translateTab.done",function(s){return y(o),x(n._translateTabComplete.next(s))}),b(2,Ay,0,0,"ng-template",2),m()}t&2&&f("@translateTab",Me(3,Dy,n._position,Xe(1,My,n.animationDuration)))},dependencies:[Qy,jl],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:[Yy.translateTab]}})}}return i})(),Xy=0,Zy=!0,np=(()=>{class i{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}get animationDuration(){return this._animationDuration}set animationDuration(e){let t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){if(!Zy)throw new Error("mat-tab-group background color must be set through the Sass theming API");let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,t,n,o){this._elementRef=e,this._changeDetectorRef=t,this._animationMode=o,this._tabs=new sn,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=fe.EMPTY,this._tabLabelSubscription=fe.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new T,this.focusChange=new T,this.animationDone=new T,this.selectedTabChange=new T(!0),this._isServer=!R(ue).isBrowser,this._groupId=Xy++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=n&&n.disablePagination!=null?n.disablePagination:!1,this.dynamicHeight=n&&n.dynamicHeight!=null?n.dynamicHeight:!1,n?.contentTabIndex!=null&&(this.contentTabIndex=n.contentTabIndex),this.preserveContent=!!n?.preserveContent,this.fitInkBarToContent=n&&n.fitInkBarToContent!=null?n.fitInkBarToContent:!1,this.stretchTabs=n&&n.stretchTabs!=null?n.stretchTabs:!0}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let t=this._selectedIndex==null;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));let n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((n,o)=>n.isActive=o===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,n)=>{t.position=n-e,this._selectedIndex!=null&&t.position==0&&!t.origin&&(t.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(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let t=this._tabs.toArray(),n;for(let o=0;o{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(He(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._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){let t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let t=new nc;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Se(...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;let t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,n){t.focusIndex=n,e.disabled||(this.selectedIndex=n)}_getTabIndex(e){let t=this._lastFocusedTabIndex??this.selectedIndex;return e===t?0:-1}_tabFocusChanged(e,t){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=t)}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Q),c(qy,8),c(ke,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-tab-group"]],contentQueries:function(t,n,o){if(t&1&&Y(o,sc,5),t&2){let a;k(a=M())&&(n._allTabs=a)}},viewQuery:function(t,n){if(t&1&&(q(Ry,5),q(Oy,5)),t&2){let o;k(o=M())&&(n._tabBodyWrapper=o.first),k(o=M())&&(n._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(t,n){t&2&&(Qe("mat-"+(n.color||"primary")),Ae("--mat-tab-animation-duration",n.animationDuration),B("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header",n.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",n.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",v],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",v],dynamicHeight:[2,"dynamicHeight","dynamicHeight",v],selectedIndex:[2,"selectedIndex","selectedIndex",Ee],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Ee],disablePagination:[2,"disablePagination","disablePagination",v],disableRipple:[2,"disableRipple","disableRipple",v],preserveContent:[2,"preserveContent","preserveContent",v],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[$([{provide:ep,useExisting:i}]),oe,H],ngContentSelectors:rc,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(t,n){if(t&1){let o=X();he(),h(0,"mat-tab-header",3,0),I("indexFocused",function(s){return y(o),x(n._focusChanged(s))})("selectFocusedIndex",function(s){return y(o),x(n.selectedIndex=s)}),Ne(2,Ly,8,17,"div",4,nt),m(),b(4,Vy,1,0),h(5,"div",5,1),Ne(7,jy,1,13,"mat-tab-body",6,nt),m()}t&2&&(f("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),d(2),Le(n._tabs),d(2),C(n._isServer?4:-1),d(),B("_mat-animation-noopable",n._animationMode==="NoopAnimations"),d(2),Le(n._tabs))},dependencies:[Wy,tp,Hh,Ft,jn,ip],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.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--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.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{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);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--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.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);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.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;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));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;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-app-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.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-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.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,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.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-tab-header-with-background-foreground-color)}.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{color:var(--mat-tab-header-with-background-foreground-color)}.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})}}return i})(),nc=class{};var rp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,ge]})}}return i})();var op=new O("CdkAccordion");var Ky=0,ap=(()=>{class i{get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(e,t,n){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=n,this._openCloseAllSubscription=fe.EMPTY,this.closed=new T,this.opened=new T,this.destroyed=new T,this.expandedChange=new T,this.id=`cdk-accordion-child-${Ky++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static{this.\u0275fac=function(t){return new(t||i)(c(op,12),c(Q),c(xa))}}static{this.\u0275dir=S({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",v],disabled:[2,"disabled","disabled",v]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[$([{provide:op,useValue:void 0}]),oe]})}}return i})(),sp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({})}}return i})();var Jy=["body"],ex=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],tx=["mat-expansion-panel-header","*","mat-action-row"];function ix(i,r){}var nx=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],rx=["mat-panel-title","mat-panel-description","*"];function ox(i,r){if(i&1&&(h(0,"span",1),qt(),h(1,"svg",2),w(2,"path",3),m()()),i&2){let e=u();f("@indicatorRotate",e._getExpandedState())}}var lp=new O("MAT_ACCORDION"),cp="225ms cubic-bezier(0.4,0.0,0.2,1)",up={indicatorRotate:Dt("indicatorRotate",[bt("collapsed, void",Re({transform:"rotate(0deg)"})),bt("expanded",Re({transform:"rotate(180deg)"})),tt("expanded <=> collapsed, void => collapsed",rt(cp))]),bodyExpansion:Dt("bodyExpansion",[bt("collapsed, void",Re({height:"0px",visibility:"hidden"})),bt("expanded",Re({height:"*",visibility:""})),tt("expanded <=> collapsed, void => collapsed",rt(cp))])},hp=new O("MAT_EXPANSION_PANEL"),lc=(()=>{class i{constructor(e,t){this._template=e,this._expansionPanel=t}static{this.\u0275fac=function(t){return new(t||i)(c(z),c(hp,8))}}static{this.\u0275dir=S({type:i,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}}return i})(),ax=0,mp=new O("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),cc=(()=>{class i extends ap{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,t,n,o,a,s,l){super(e,t,n),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new T,this.afterCollapse=new T,this._inputChanges=new P,this._headerId=`mat-expansion-panel-header-${ax++}`,this.accordion=e,this._document=a,this._animationsDisabled=s==="NoopAnimations",l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(He(null),ve(()=>this.expanded&&!this._portal),qe(1)).subscribe(()=>{this._portal=new ti(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_animationStarted(e){!dp(e)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(e){dp(e)||(e.toState==="expanded"?this.afterExpand.emit():e.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}static{this.\u0275fac=function(t){return new(t||i)(c(lp,12),c(Q),c(xa),c($e),c(K),c(ke,8),c(mp,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(t,n,o){if(t&1&&Y(o,lc,5),t&2){let a;k(a=M())&&(n._lazyContent=a.first)}},viewQuery:function(t,n){if(t&1&&q(Jy,5),t&2){let o;k(o=M())&&(n._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,n){t&2&&B("mat-expanded",n.expanded)("_mat-animation-noopable",n._animationsDisabled)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",v],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[$([{provide:lp,useValue:void 0},{provide:hp,useExisting:i}]),oe,be,se,H],ngContentSelectors:tx,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,n){if(t&1){let o=X();he(ex),Z(0),h(1,"div",1,0),I("@bodyExpansion.start",function(s){return y(o),x(n._animationStarted(s))})("@bodyExpansion.done",function(s){return y(o),x(n._animationDone(s))}),h(3,"div",2),Z(4,1),b(5,ix,0,0,"ng-template",3),m(),Z(6,2),m()}t&2&&(d(),f("@bodyExpansion",n._getExpandedState())("id",n.id),ee("aria-labelledby",n._headerId),d(4),f("cdkPortalOutlet",n._portal))},dependencies:[jn],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color, var(--mat-app-surface));color:var(--mat-expansion-container-text-color, var(--mat-app-on-surface));border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow: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-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font, var(--mat-app-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-app-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-app-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-app-body-large-tracking))}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-app-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[up.bodyExpansion]},changeDetection:0})}}return i})();function dp(i){return i.fromState==="void"}var pp=(()=>{class i{constructor(e,t,n,o,a,s,l){this.panel=e,this._element=t,this._focusMonitor=n,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=fe.EMPTY,this.tabIndex=0;let p=e.accordion?e.accordion._stateChanges.pipe(ve(g=>!!(g.hideToggle||g.togglePosition))):lt;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Se(e.opened,e.closed,p,e._inputChanges.pipe(ve(g=>!!(g.hideToggle||g.disabled||g.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(ve(()=>e._containsFocus())).subscribe(()=>n.focusVia(t,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:We(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static{this.\u0275fac=function(t){return new(t||i)(c(cc,1),c(F),c(wt),c(Q),c(mp,8),c(ke,8),Ge("tabindex"))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,n){t&1&&I("click",function(){return n._toggle()})("keydown",function(a){return n._keydown(a)}),t&2&&(ee("id",n.panel._headerId)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),Ae("height",n._getHeaderHeight()),B("mat-expanded",n._isExpanded())("mat-expansion-toggle-indicator-after",n._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",n._getTogglePosition()==="before")("_mat-animation-noopable",n._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Ee(e)]},standalone:!0,features:[oe,H],ngContentSelectors:rx,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(t,n){t&1&&(he(nx),h(0,"span",0),Z(1),Z(2,1),Z(3,2),m(),b(4,ox,3,1,"span",1)),t&2&&(B("mat-content-hide-toggle",!n._showToggle()),d(4),C(n._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font, var(--mat-app-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-app-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-app-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-app-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-app-title-medium-tracking))}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-app-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-app-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-app-on-surface-variant))}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-app-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-app-on-surface-variant));display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[up.indicatorRotate]},changeDetection:0})}}return i})();var fp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[ge,sp,Bn]})}}return i})();var sx=["tooltip"],bp=20;var vp=new O("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=R(Ke);return()=>i.scrollStrategies.reposition({scrollThrottle:bp})}});function lx(i){return()=>i.scrollStrategies.reposition({scrollThrottle:bp})}var cx={provide:vp,deps:[Ke],useFactory:lx};function dx(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var ux=new O("mat-tooltip-default-options",{providedIn:"root",factory:dx});var gp="tooltip-panel",_p=Ot({passive:!0}),hx=8,mx=8,px=24,fx=200,yp=(()=>{class i{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=ei(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=ei(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ki(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ki(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,t,n,o,a,s,l,p,g,_,D,G){this._overlay=e,this._elementRef=t,this._scrollDispatcher=n,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=l,this._focusMonitor=p,this._dir=_,this._defaultOptions=D,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=gx,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new P,this._injector=R(et),this._scrollStrategy=g,this._document=G,D&&(this._showDelay=D.showDelay,this._hideDelay=D.hideDelay,D.position&&(this.position=D.position),D.positionAtOrigin&&(this.positionAtOrigin=D.positionAtOrigin),D.touchGestures&&(this.touchGestures=D.touchGestures),D.tooltipClass&&(this.tooltipClass=D.tooltipClass)),_.change.pipe(re(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=hx}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(re(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,n])=>{e.removeEventListener(t,n,_p)}),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,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(t);this._detach(),this._portal=this._portal||new nn(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=n.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(re(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._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){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof F)return this._overlayRef;this._detach()}let t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(re(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:n,panelClass:`${this._cssClassPrefix}-${gp}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(re(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(re(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(re(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!We(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){let t=e.getConfig().positionStrategy,n=this._getOrigin(),o=this._getOverlayPosition();t.withPositions([this._addOffset(A(A({},n.main),o.main)),this._addOffset(A(A({},n.fallback),o.fallback))])}_addOffset(e){let t=mx,n=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=n?-t:t:e.originX==="end"&&(e.offsetX=n?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"||t=="below"?n={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"?n={overlayX:"center",overlayY:"bottom"}:t=="below"?n={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Yt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:n,originY:o}=e,a;if(t==="center"?this._dir&&this._dir.value==="rtl"?a=n==="end"?"left":"right":a=n==="start"?"left":"right":a=t==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${gp}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let t=e.targetTouches?.[0],n=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{let n=t.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,n])=>{this._elementRef.nativeElement.addEventListener(t,n,_p)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,n=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(e==="on"||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static{this.\u0275fac=function(t){return new(t||i)(c(Ke),c(F),c(Vn),c($e),c(W),c(ue),c(Bh),c(wt),c(vp),c(Fe),c(ux,8),c(K))}}static{this.\u0275dir=S({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,n){t&2&&B("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}}return i})(),gx=(()=>{class i{constructor(e,t,n){this._changeDetectorRef=e,this._elementRef=t,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new P,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=n==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&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(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>px&&e.width>=fx}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,n=this._showAnimation,o=this._hideAnimation;if(t.classList.remove(e?o:n),t.classList.add(e?n:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(t);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static{this.\u0275fac=function(t){return new(t||i)(c(Q),c(F),c(ke,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(t,n){if(t&1&&q(sx,7),t&2){let o;k(o=M())&&(n._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,n){t&1&&I("mouseleave",function(a){return n._handleMouseLeave(a)})},standalone:!0,features:[H],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,n){if(t&1){let o=X();h(0,"div",1,0),I("animationend",function(s){return y(o),x(n._handleAnimationEnd(s))}),h(2,"div",2),te(3),m()()}t&2&&(B("mdc-tooltip--multiline",n._isMultiline),f("ngClass",n.tooltipClass),d(3),ce(n.message))},dependencies:[pn],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-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}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.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})}}return i})();var xp=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[cx],imports:[fa,Oe,Un,ge,ge,Ln]})}}return i})();function Ue(i,r){_x(i)&&(i="100%");var e=bx(i);return i=r===360?i:Math.min(r,Math.max(0,parseFloat(i))),e&&(i=parseInt(String(i*r),10)/100),Math.abs(i-r)<1e-6?1:(r===360?i=(i<0?i%r+r:i%r)/parseFloat(String(r)):i=i%r/parseFloat(String(r)),i)}function Kr(i){return Math.min(1,Math.max(0,i))}function _x(i){return typeof i=="string"&&i.indexOf(".")!==-1&&parseFloat(i)===1}function bx(i){return typeof i=="string"&&i.indexOf("%")!==-1}function Ra(i){return i=parseFloat(i),(isNaN(i)||i<0||i>1)&&(i=1),i}function Jr(i){return i<=1?"".concat(Number(i)*100,"%"):i}function Di(i){return i.length===1?"0"+i:String(i)}function Cp(i,r,e){return{r:Ue(i,255)*255,g:Ue(r,255)*255,b:Ue(e,255)*255}}function uc(i,r,e){i=Ue(i,255),r=Ue(r,255),e=Ue(e,255);var t=Math.max(i,r,e),n=Math.min(i,r,e),o=0,a=0,s=(t+n)/2;if(t===n)a=0,o=0;else{var l=t-n;switch(a=s>.5?l/(2-t-n):l/(t+n),t){case i:o=(r-e)/l+(r1&&(e-=1),e<1/6?i+(r-i)*(6*e):e<1/2?r:e<2/3?i+(r-i)*(2/3-e)*6:i}function wp(i,r,e){var t,n,o;if(i=Ue(i,360),r=Ue(r,100),e=Ue(e,100),r===0)n=e,o=e,t=e;else{var a=e<.5?e*(1+r):e+r-e*r,s=2*e-a;t=dc(s,a,i+1/3),n=dc(s,a,i),o=dc(s,a,i-1/3)}return{r:t*255,g:n*255,b:o*255}}function hc(i,r,e){i=Ue(i,255),r=Ue(r,255),e=Ue(e,255);var t=Math.max(i,r,e),n=Math.min(i,r,e),o=0,a=t,s=t-n,l=t===0?0:s/t;if(t===n)o=0;else{switch(t){case i:o=(r-e)/s+(r>16,g:(i&65280)>>8,b:i&255}}var eo={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",cyan:"#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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Sp(i){var r={r:0,g:0,b:0},e=1,t=null,n=null,o=null,a=!1,s=!1;return typeof i=="string"&&(i=Cx(i)),typeof i=="object"&&(gi(i.r)&&gi(i.g)&&gi(i.b)?(r=Cp(i.r,i.g,i.b),a=!0,s=String(i.r).substr(-1)==="%"?"prgb":"rgb"):gi(i.h)&&gi(i.s)&&gi(i.v)?(t=Jr(i.s),n=Jr(i.v),r=Tp(i.h,t,n),a=!0,s="hsv"):gi(i.h)&&gi(i.s)&&gi(i.l)&&(t=Jr(i.s),o=Jr(i.l),r=wp(i.h,t,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(i,"a")&&(e=i.a)),e=Ra(e),{ok:a,format:i.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}var yx="[-\\+]?\\d+%?",xx="[-\\+]?\\d*\\.\\d+%?",Ai="(?:".concat(xx,")|(?:").concat(yx,")"),fc="[\\s|\\(]+(".concat(Ai,")[,|\\s]+(").concat(Ai,")[,|\\s]+(").concat(Ai,")\\s*\\)?"),gc="[\\s|\\(]+(".concat(Ai,")[,|\\s]+(").concat(Ai,")[,|\\s]+(").concat(Ai,")[,|\\s]+(").concat(Ai,")\\s*\\)?"),Ht={CSS_UNIT:new RegExp(Ai),rgb:new RegExp("rgb"+fc),rgba:new RegExp("rgba"+gc),hsl:new RegExp("hsl"+fc),hsla:new RegExp("hsla"+gc),hsv:new RegExp("hsv"+fc),hsva:new RegExp("hsva"+gc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Cx(i){if(i=i.trim().toLowerCase(),i.length===0)return!1;var r=!1;if(eo[i])i=eo[i],r=!0;else if(i==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=Ht.rgb.exec(i);return e?{r:e[1],g:e[2],b:e[3]}:(e=Ht.rgba.exec(i),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Ht.hsl.exec(i),e?{h:e[1],s:e[2],l:e[3]}:(e=Ht.hsla.exec(i),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Ht.hsv.exec(i),e?{h:e[1],s:e[2],v:e[3]}:(e=Ht.hsva.exec(i),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Ht.hex8.exec(i),e?{r:mt(e[1]),g:mt(e[2]),b:mt(e[3]),a:pc(e[4]),format:r?"name":"hex8"}:(e=Ht.hex6.exec(i),e?{r:mt(e[1]),g:mt(e[2]),b:mt(e[3]),format:r?"name":"hex"}:(e=Ht.hex4.exec(i),e?{r:mt(e[1]+e[1]),g:mt(e[2]+e[2]),b:mt(e[3]+e[3]),a:pc(e[4]+e[4]),format:r?"name":"hex8"}:(e=Ht.hex3.exec(i),e?{r:mt(e[1]+e[1]),g:mt(e[2]+e[2]),b:mt(e[3]+e[3]),format:r?"name":"hex"}:!1)))))))))}function gi(i){return!!Ht.CSS_UNIT.exec(String(i))}var Gt=function(){function i(r,e){r===void 0&&(r=""),e===void 0&&(e={});var t;if(r instanceof i)return r;typeof r=="number"&&(r=Ip(r)),this.originalInput=r;var n=Sp(r);this.originalInput=r,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(t=e.format)!==null&&t!==void 0?t:n.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return i.prototype.isDark=function(){return this.getBrightness()<128},i.prototype.isLight=function(){return!this.isDark()},i.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},i.prototype.getLuminance=function(){var r=this.toRgb(),e,t,n,o=r.r/255,a=r.g/255,s=r.b/255;return o<=.03928?e=o/12.92:e=Math.pow((o+.055)/1.055,2.4),a<=.03928?t=a/12.92:t=Math.pow((a+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},i.prototype.getAlpha=function(){return this.a},i.prototype.setAlpha=function(r){return this.a=Ra(r),this.roundA=Math.round(100*this.a)/100,this},i.prototype.isMonochrome=function(){var r=this.toHsl().s;return r===0},i.prototype.toHsv=function(){var r=hc(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},i.prototype.toHsvString=function(){var r=hc(this.r,this.g,this.b),e=Math.round(r.h*360),t=Math.round(r.s*100),n=Math.round(r.v*100);return this.a===1?"hsv(".concat(e,", ").concat(t,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(t,"%, ").concat(n,"%, ").concat(this.roundA,")")},i.prototype.toHsl=function(){var r=uc(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},i.prototype.toHslString=function(){var r=uc(this.r,this.g,this.b),e=Math.round(r.h*360),t=Math.round(r.s*100),n=Math.round(r.l*100);return this.a===1?"hsl(".concat(e,", ").concat(t,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(t,"%, ").concat(n,"%, ").concat(this.roundA,")")},i.prototype.toHex=function(r){return r===void 0&&(r=!1),mc(this.r,this.g,this.b,r)},i.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},i.prototype.toHex8=function(r){return r===void 0&&(r=!1),Ep(this.r,this.g,this.b,this.a,r)},i.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},i.prototype.toHexShortString=function(r){return r===void 0&&(r=!1),this.a===1?this.toHexString(r):this.toHex8String(r)},i.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},i.prototype.toRgbString=function(){var r=Math.round(this.r),e=Math.round(this.g),t=Math.round(this.b);return this.a===1?"rgb(".concat(r,", ").concat(e,", ").concat(t,")"):"rgba(".concat(r,", ").concat(e,", ").concat(t,", ").concat(this.roundA,")")},i.prototype.toPercentageRgb=function(){var r=function(e){return"".concat(Math.round(Ue(e,255)*100),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},i.prototype.toPercentageRgbString=function(){var r=function(e){return Math.round(Ue(e,255)*100)};return this.a===1?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},i.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+mc(this.r,this.g,this.b,!1),e=0,t=Object.entries(eo);e=0,o=!e&&n&&(r.startsWith("hex")||r==="name");return o?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(t=this.toRgbString()),r==="prgb"&&(t=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(t=this.toHexString()),r==="hex3"&&(t=this.toHexString(!0)),r==="hex4"&&(t=this.toHex8String(!0)),r==="hex8"&&(t=this.toHex8String()),r==="name"&&(t=this.toName()),r==="hsl"&&(t=this.toHslString()),r==="hsv"&&(t=this.toHsvString()),t||this.toHexString())},i.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},i.prototype.clone=function(){return new i(this.toString())},i.prototype.lighten=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.l+=r/100,e.l=Kr(e.l),new i(e)},i.prototype.brighten=function(r){r===void 0&&(r=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),new i(e)},i.prototype.darken=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.l-=r/100,e.l=Kr(e.l),new i(e)},i.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},i.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},i.prototype.desaturate=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.s-=r/100,e.s=Kr(e.s),new i(e)},i.prototype.saturate=function(r){r===void 0&&(r=10);var e=this.toHsl();return e.s+=r/100,e.s=Kr(e.s),new i(e)},i.prototype.greyscale=function(){return this.desaturate(100)},i.prototype.spin=function(r){var e=this.toHsl(),t=(e.h+r)%360;return e.h=t<0?360+t:t,new i(e)},i.prototype.mix=function(r,e){e===void 0&&(e=50);var t=this.toRgb(),n=new i(r).toRgb(),o=e/100,a={r:(n.r-t.r)*o+t.r,g:(n.g-t.g)*o+t.g,b:(n.b-t.b)*o+t.b,a:(n.a-t.a)*o+t.a};return new i(a)},i.prototype.analogous=function(r,e){r===void 0&&(r=6),e===void 0&&(e=30);var t=this.toHsl(),n=360/e,o=[this];for(t.h=(t.h-(n*r>>1)+720)%360;--r;)t.h=(t.h+n)%360,o.push(new i(t));return o},i.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new i(r)},i.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var e=this.toHsv(),t=e.h,n=e.s,o=e.v,a=[],s=1/r;r--;)a.push(new i({h:t,s:n,v:o})),o=(o+s)%1;return a},i.prototype.splitcomplement=function(){var r=this.toHsl(),e=r.h;return[this,new i({h:(e+72)%360,s:r.s,l:r.l}),new i({h:(e+216)%360,s:r.s,l:r.l})]},i.prototype.onBackground=function(r){var e=this.toRgb(),t=new i(r).toRgb(),n=e.a+t.a*(1-e.a);return new i({r:(e.r*e.a+t.r*t.a*(1-e.a))/n,g:(e.g*e.a+t.g*t.a*(1-e.a))/n,b:(e.b*e.a+t.b*t.a*(1-e.a))/n,a:n})},i.prototype.triad=function(){return this.polyad(3)},i.prototype.tetrad=function(){return this.polyad(4)},i.prototype.polyad=function(r){for(var e=this.toHsl(),t=e.h,n=[this],o=360/r,a=1;a"u")return null;let t=document.createElement("canvas");t.width=e*2,t.height=e*2;let n=t.getContext("2d");return n?(n.fillStyle=i,n.fillRect(0,0,t.width,t.height),n.fillStyle=r,n.fillRect(0,0,e,e),n.translate(e,e),n.fillRect(0,0,e,e),t.toDataURL()):null}function Ix(i,r,e){let t=`${i}-${r}-${e}`;if(_c[t])return _c[t];let n=Ex(i,r,e);return n?(_c[t]=n,n):null}var bc=(()=>{class i{white="transparent";size=8;grey="rgba(0,0,0,.08)";boxShadow;borderRadius;gridStyles;ngOnInit(){let e=Ix(this.white,this.grey,this.size);this.gridStyles={borderRadius:this.borderRadius,boxShadow:this.boxShadow,background:`url(${e}) center left`}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["color-checkboard"]],inputs:{white:"white",size:"size",grey:"grey",boxShadow:"boxShadow",borderRadius:"borderRadius"},decls:1,vars:1,consts:[[1,"grid",3,"ngStyle"]],template:function(t,n){t&1&&w(0,"div",0),t&2&&f("ngStyle",n.gridStyles)},dependencies:[gn],styles:[".grid[_ngcontent-%COMP%]{inset:0;position:absolute}"],changeDetection:0})}return i})(),vc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe]})}return i})(),yc=(()=>{class i{el;coordinatesChange=new P;mousechange=new P;mouseListening=!1;sub;mousemove(e,t,n,o=!1){this.mouseListening&&(e.preventDefault(),this.mousechange.next({$event:e,x:t,y:n,isTouch:o}))}mouseup(){this.mouseListening=!1}mousedown(e,t,n,o=!1){e.preventDefault(),this.mouseListening=!0,this.mousechange.next({$event:e,x:t,y:n,isTouch:o})}constructor(e){this.el=e}ngOnInit(){this.sub=this.mousechange.pipe(ni((e,t)=>e.x===t.x&&e.y===t.y)).subscribe(e=>this.handleChange(e.x,e.y,e.$event,e.isTouch))}ngOnDestroy(){this.sub?.unsubscribe()}handleChange(e,t,n,o){let a=this.el.nativeElement.clientWidth,s=this.el.nativeElement.clientHeight,l=e-(this.el.nativeElement.getBoundingClientRect().left+window.pageXOffset),p=t-this.el.nativeElement.getBoundingClientRect().top;o||(p=p-window.pageYOffset),this.coordinatesChange.next({x:e,y:t,top:p,left:l,containerWidth:a,containerHeight:s,$event:n})}static \u0275fac=function(t){return new(t||i)(c(F))};static \u0275dir=S({type:i,selectors:[["","ngx-color-coordinates",""]],hostBindings:function(t,n){t&1&&I("mousemove",function(a){return n.mousemove(a,a.pageX,a.pageY)},!1,nr)("touchmove",function(a){return n.mousemove(a,a.touches[0].clientX,a.touches[0].clientY,!0)},!1,nr)("mouseup",function(){return n.mouseup()},!1,nr)("touchend",function(){return n.mouseup()},!1,nr)("mousedown",function(a){return n.mousedown(a,a.pageX,a.pageY)})("touchstart",function(a){return n.mousedown(a,a.touches[0].clientX,a.touches[0].clientY,!0)})},outputs:{coordinatesChange:"coordinatesChange"}})}return i})(),xc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({})}return i})(),Mp=(()=>{class i{hsl;rgb;pointer;shadow;radius;direction="horizontal";onChange=new T;gradient;pointerLeft;pointerTop;ngOnChanges(){this.direction==="vertical"?(this.pointerLeft=0,this.pointerTop=this.rgb.a*100,this.gradient={background:`linear-gradient(to bottom, rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 0) 0%, - rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 1) 100%)`}):(this.gradient={background:`linear-gradient(to right, rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 0) 0%, - rgba(${this.rgb.r},${this.rgb.g},${this.rgb.b}, 1) 100%)`},this.pointerLeft=this.rgb.a*100)}handleChange({top:e,left:t,containerHeight:n,containerWidth:o,$event:a}){let s;if(this.direction==="vertical"){let l;e<0?l=0:e>n?l=1:l=Math.round(e*100/n)/100,this.hsl.a!==l&&(s={h:this.hsl.h,s:this.hsl.s,l:this.hsl.l,a:l,source:"rgb"})}else{let l;t<0?l=0:t>o?l=1:l=Math.round(t*100/o)/100,this.hsl.a!==l&&(s={h:this.hsl.h,s:this.hsl.s,l:this.hsl.l,a:l,source:"rgb"})}s&&this.onChange.emit({data:s,$event:a})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["color-alpha"]],inputs:{hsl:"hsl",rgb:"rgb",pointer:"pointer",shadow:"shadow",radius:"radius",direction:"direction"},outputs:{onChange:"onChange"},features:[se],decls:7,vars:15,consts:[[1,"alpha"],[1,"alpha-checkboard"],[1,"alpha-gradient",3,"ngStyle"],["ngx-color-coordinates","",3,"coordinatesChange"],[1,"alpha-pointer"],[1,"alpha-slider",3,"ngStyle"]],template:function(t,n){t&1&&(h(0,"div",0)(1,"div",1),w(2,"color-checkboard"),m(),w(3,"div",2),h(4,"div",3),I("coordinatesChange",function(a){return n.handleChange(a)}),h(5,"div",4),w(6,"div",5),m()()()),t&2&&(Ae("border-radius",n.radius),d(3),Ae("box-shadow",n.shadow)("border-radius",n.radius),f("ngStyle",n.gradient),d(),ji("alpha-container color-alpha-",n.direction,""),d(),Ae("left",n.pointerLeft,"%")("top",n.pointerTop,"%"),d(),f("ngStyle",n.pointer))},dependencies:[gn,bc,yc],styles:[".alpha[_ngcontent-%COMP%]{position:absolute;inset:0}.alpha-checkboard[_ngcontent-%COMP%]{position:absolute;inset:0;overflow:hidden}.alpha-gradient[_ngcontent-%COMP%]{position:absolute;inset:0}.alpha-container[_ngcontent-%COMP%]{position:relative;height:100%;margin:0 3px}.alpha-pointer[_ngcontent-%COMP%]{position:absolute}.alpha-slider[_ngcontent-%COMP%]{width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;margin-top:1px;transform:translate(-2px)}"],changeDetection:0})}return i})(),Dp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe,vc,xc]})}return i})();function kp(i){let r=["r","g","b","a","h","s","l","v"],e=0,t=0;return r.forEach(n=>{i[n]&&(e+=1,isNaN(i[n])||(t+=1),(n==="s"||n==="l")&&/^\d+%$/.test(i[n])&&(t+=1))}),e===t?i:!1}function Oa(i,r,e){let t=i.hex?new Gt(i.hex):new Gt(i);e&&t.setAlpha(1);let n=t.toHsl(),o=t.toHsv(),a=t.toRgb(),s=t.toHex();n.s===0&&(n.h=r||0,o.h=r||0);let l=s==="000000"&&a.a===0;return{hsl:n,hex:l?"transparent":t.toHexString(),rgb:a,hsv:o,oldHue:i.h||r||n.h,source:i.source}}function Ap(i){return new Gt(i).isValid}var Gn=function(i){return i.HEX="hex",i.HSL="hsl",i.HSV="hsv",i.RGB="rgb",i}(Gn||{}),Cc=(()=>{class i{className;mode=Gn.HEX;color={h:250,s:.5,l:.2,a:1};colorChange=new T;onChange=new T;onChangeComplete=new T;onSwatchHover=new T;oldHue;hsl;hsv;rgb;hex;source;currentColor;changes;disableAlpha;_onChangeCompleteSubscription=new fe;_onSwatchHoverSubscription=new fe;ngOnInit(){this.changes=this.onChange.pipe(St(100),we(e=>{switch(this.onChangeComplete.emit(e),this.mode){case Gn.HEX:this.colorChange.emit(e.color.hex);break;case Gn.HSL:this.colorChange.emit(e.color.hsl);break;case Gn.HSV:this.colorChange.emit(e.color.hsv);break;case Gn.RGB:this.colorChange.emit(e.color.rgb);break;default:let t=`The mode '${this.mode}' is not supported`;if(Od())throw new Error(t);console.warn(t);break}})).subscribe(),this.setState(Oa(this.color,0)),this.currentColor=this.hex}ngOnChanges(){this.setState(Oa(this.color,this.oldHue))}ngOnDestroy(){this.changes?.unsubscribe(),this._onChangeCompleteSubscription?.unsubscribe(),this._onSwatchHoverSubscription?.unsubscribe()}setState(e){this.oldHue=e.oldHue,this.hsl=e.hsl,this.hsv=e.hsv,this.rgb=e.rgb,this.hex=e.hex,this.source=e.source,this.afterValidChange()}handleChange(e,t){if(kp(e)){let o=Oa(e,e.h||this.oldHue,this.disableAlpha);this.setState(o),this.onChange.emit({color:o,$event:t}),this.afterValidChange()}}afterValidChange(){}handleSwatchHover(e,t){if(kp(e)){let o=Oa(e,e.h||this.oldHue);this.setState(o),this.onSwatchHover.emit({color:o,$event:t})}}registerOnChange(e){this._onChangeCompleteSubscription.add(this.onChangeComplete.pipe(we(t=>e(t.color.hex))).subscribe())}registerOnTouched(e){this._onSwatchHoverSubscription.add(this.onSwatchHover.pipe(we(()=>e())).subscribe())}setDisabledState(e){}writeValue(e){this.color=e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["color-wrap"]],inputs:{className:"className",mode:"mode",color:"color"},outputs:{colorChange:"colorChange",onChange:"onChange",onChangeComplete:"onChangeComplete",onSwatchHover:"onSwatchHover"},features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),se],decls:0,vars:0,template:function(t,n){},encapsulation:2})}return i})();var Sx=0,Rp=(()=>{class i{style;label;value;arrowOffset;dragLabel;dragMax;placeholder="";onChange=new T;currentValue;blurValue;wrapStyle;inputStyle;labelStyle;focus=!1;mousemove;mouseup;uniqueId=`editableInput-${++Sx}`;ngOnInit(){this.wrapStyle=this.style&&this.style.wrap?this.style.wrap:{},this.inputStyle=this.style&&this.style.input?this.style.input:{},this.labelStyle=this.style&&this.style.label?this.style.label:{},this.dragLabel&&(this.labelStyle.cursor="ew-resize")}handleFocus(e){this.focus=!0}handleFocusOut(e){this.focus=!1,this.currentValue=this.blurValue}handleKeydown(e){let t=String(e.target.value),n=t.indexOf("%")>-1,o=Number(t.replace(/%/g,""));if(isNaN(o))return;let a=this.arrowOffset||1;e.keyCode===38&&(this.label?this.onChange.emit({data:{[this.label]:o+a},$event:e}):this.onChange.emit({data:o+a,$event:e}),n?this.currentValue=`${o+a}%`:this.currentValue=o+a),e.keyCode===40&&(this.label?this.onChange.emit({data:{[this.label]:o-a},$event:e}):this.onChange.emit({data:o-a,$event:e}),n?this.currentValue=`${o-a}%`:this.currentValue=o-a)}handleKeyup(e){e.keyCode===40||e.keyCode===38||`${this.currentValue}`!==e.target.value&&(this.label?this.onChange.emit({data:{[this.label]:e.target.value},$event:e}):this.onChange.emit({data:e.target.value,$event:e}))}ngOnChanges(){this.focus?this.blurValue=String(this.value).toUpperCase():(this.currentValue=String(this.value).toUpperCase(),this.blurValue=String(this.value).toUpperCase())}ngOnDestroy(){this.unsubscribe()}subscribe(){this.mousemove=Je(document,"mousemove").subscribe(e=>this.handleDrag(e)),this.mouseup=Je(document,"mouseup").subscribe(()=>this.unsubscribe())}unsubscribe(){this.mousemove?.unsubscribe(),this.mouseup?.unsubscribe()}handleMousedown(e){this.dragLabel&&(e.preventDefault(),this.handleDrag(e),this.subscribe())}handleDrag(e){if(this.dragLabel){let t=Math.round(this.value+e.movementX);t>=0&&t<=this.dragMax&&this.onChange.emit({data:{[this.label]:t},$event:e})}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["color-editable-input"]],inputs:{style:"style",label:"label",value:"value",arrowOffset:"arrowOffset",dragLabel:"dragLabel",dragMax:"dragMax",placeholder:"placeholder"},outputs:{onChange:"onChange"},features:[se],decls:3,vars:6,consts:[[1,"wrap",3,"ngStyle"],["spellCheck","false",3,"keydown","keyup","focus","focusout","ngStyle","value","placeholder"],[3,"id","ngStyle","mousedown",4,"ngIf"],[3,"mousedown","id","ngStyle"]],template:function(t,n){t&1&&(h(0,"div",0)(1,"input",1),I("keydown",function(a){return n.handleKeydown(a)})("keyup",function(a){return n.handleKeyup(a)})("focus",function(a){return n.handleFocus(a)})("focusout",function(a){return n.handleFocusOut(a)}),m(),b(2,wx,2,3,"span",2),m()),t&2&&(f("ngStyle",n.wrapStyle),d(),f("ngStyle",n.inputStyle)("value",n.currentValue)("placeholder",n.placeholder),ee("aria-labelledby",n.uniqueId),d(),f("ngIf",n.label))},dependencies:[fn,gn],styles:["[_nghost-%COMP%]{display:flex}.wrap[_ngcontent-%COMP%]{position:relative}"],changeDetection:0})}return i})(),Op=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe]})}return i})(),Fp=(()=>{class i{hsl;pointer;radius;shadow;hidePointer=!1;direction="horizontal";onChange=new T;left="0px";top="";ngOnChanges(){this.direction==="horizontal"?this.left=`${this.hsl.h*100/360}%`:this.top=`${-(this.hsl.h*100/360)+100}%`}handleChange({top:e,left:t,containerHeight:n,containerWidth:o,$event:a}){let s;if(this.direction==="vertical"){let l;e<0?l=359:e>n?l=0:l=360*(-(e*100/n)+100)/100,this.hsl.h!==l&&(s={h:l,s:this.hsl.s,l:this.hsl.l,a:this.hsl.a,source:"rgb"})}else{let l;t<0?l=0:t>o?l=359:l=360*(t*100/o)/100,this.hsl.h!==l&&(s={h:l,s:this.hsl.s,l:this.hsl.l,a:this.hsl.a,source:"rgb"})}s&&this.onChange.emit({data:s,$event:a})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["color-hue"]],inputs:{hsl:"hsl",pointer:"pointer",radius:"radius",shadow:"shadow",hidePointer:"hidePointer",direction:"direction"},outputs:{onChange:"onChange"},features:[se],decls:3,vars:8,consts:[["ngx-color-coordinates","",1,"color-hue-container",3,"coordinatesChange"],["class","color-hue-pointer",3,"left","top",4,"ngIf"],[1,"color-hue-pointer"],[1,"color-hue-slider",3,"ngStyle"]],template:function(t,n){t&1&&(h(0,"div")(1,"div",0),I("coordinatesChange",function(a){return n.handleChange(a)}),b(2,Tx,2,5,"div",1),m()()),t&2&&(ji("color-hue color-hue-",n.direction,""),Ae("border-radius",n.radius,"px")("box-shadow",n.shadow),d(2),f("ngIf",!n.hidePointer))},dependencies:[fn,gn,yc],styles:[".color-hue[_ngcontent-%COMP%]{position:absolute;inset:0}.color-hue-container[_ngcontent-%COMP%]{margin:0 2px;position:relative;height:100%}.color-hue-pointer[_ngcontent-%COMP%]{position:absolute}.color-hue-slider[_ngcontent-%COMP%]{margin-top:1px;width:4px;border-radius:1px;height:8px;box-shadow:0 0 2px #0009;background:#fff;transform:translate(-2px)}.color-hue-horizontal[_ngcontent-%COMP%]{background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}.color-hue-vertical[_ngcontent-%COMP%]{background:linear-gradient(to top,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%)}"],changeDetection:0})}return i})(),Pp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe,xc]})}return i})();var Np=(()=>{class i{hsl;hsv;radius;pointer;circle;onChange=new T;background;pointerTop;pointerLeft;ngOnChanges(){this.background=`hsl(${this.hsl.h}, 100%, 50%)`,this.pointerTop=-(this.hsv.v*100)+1+100+"%",this.pointerLeft=this.hsv.s*100+"%"}handleChange({top:e,left:t,containerHeight:n,containerWidth:o,$event:a}){t<0?t=0:t>o?t=o:e<0?e=0:e>n&&(e=n);let s=t/o,l=-(e/n)+1;l=l>0?l:0,l=l>1?1:l;let p={h:this.hsl.h,s,v:l,a:this.hsl.a,source:"hsva"};this.onChange.emit({data:p,$event:a})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["color-saturation"]],inputs:{hsl:"hsl",hsv:"hsv",radius:"radius",pointer:"pointer",circle:"circle"},outputs:{onChange:"onChange"},features:[se],decls:5,vars:8,consts:[["ngx-color-coordinates","",1,"color-saturation",3,"coordinatesChange"],[1,"saturation-white"],[1,"saturation-black"],[1,"saturation-pointer",3,"ngStyle"],[1,"saturation-circle",3,"ngStyle"]],template:function(t,n){t&1&&(h(0,"div",0),I("coordinatesChange",function(a){return n.handleChange(a)}),h(1,"div",1),w(2,"div",2),h(3,"div",3),w(4,"div",4),m()()()),t&2&&(Ae("background",n.background),d(3),Ae("top",n.pointerTop)("left",n.pointerLeft),f("ngStyle",n.pointer),d(),f("ngStyle",n.circle))},dependencies:[gn,yc],styles:[".saturation-white[_ngcontent-%COMP%]{background:linear-gradient(to right,#fff,rgba(255,255,255,0));position:absolute;inset:0}.saturation-black[_ngcontent-%COMP%]{background:linear-gradient(to top,#000,rgba(0,0,0,0));position:absolute;inset:0}.color-saturation[_ngcontent-%COMP%]{position:absolute;inset:0}.saturation-pointer[_ngcontent-%COMP%]{position:absolute;cursor:default}.saturation-circle[_ngcontent-%COMP%]{width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;cursor:hand;transform:translate(-2px,-4px)}"],changeDetection:0})}return i})(),Lp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe,xc]})}return i})();var _i=(i,r)=>({input:i,label:r});function Mx(i,r){if(i&1){let e=X();h(0,"div",11)(1,"color-editable-input",12),I("onChange",function(n){y(e);let o=u();return x(o.handleChange(n))}),m()()}if(i&2){let e=u();d(),Qt(Me(3,_i,e.input,e.label)),f("value",e.hex)}}function Dx(i,r){if(i&1){let e=X();h(0,"color-editable-input",17),I("onChange",function(n){y(e);let o=u(2);return x(o.handleChange(n))}),m()}if(i&2){let e=u(2);Qt(Me(4,_i,e.input,e.label)),f("value",e.rgb.a)("arrowOffset",.01)}}function Ax(i,r){if(i&1){let e=X();h(0,"div",11)(1,"color-editable-input",13),I("onChange",function(n){y(e);let o=u();return x(o.handleChange(n))}),m()(),h(2,"div",11)(3,"color-editable-input",14),I("onChange",function(n){y(e);let o=u();return x(o.handleChange(n))}),m()(),h(4,"div",11)(5,"color-editable-input",15),I("onChange",function(n){y(e);let o=u();return x(o.handleChange(n))}),m()(),h(6,"div",11),b(7,Dx,1,7,"color-editable-input",16),m()}if(i&2){let e=u();d(),Qt(Me(10,_i,e.input,e.label)),f("value",e.rgb.r),d(2),Qt(Me(13,_i,e.input,e.label)),f("value",e.rgb.g),d(2),Qt(Me(16,_i,e.input,e.label)),f("value",e.rgb.b),d(2),f("ngIf",!e.disableAlpha)}}function Rx(i,r){if(i&1){let e=X();h(0,"color-editable-input",17),I("onChange",function(n){y(e);let o=u(2);return x(o.handleChange(n))}),m()}if(i&2){let e=u(2);Qt(Me(4,_i,e.input,e.label)),f("value",e.hsl.a)("arrowOffset",.01)}}function Ox(i,r){if(i&1){let e=X();h(0,"div",11)(1,"color-editable-input",18),I("onChange",function(n){y(e);let o=u();return x(o.handleChange(n))}),m()(),h(2,"div",11)(3,"color-editable-input",19),I("onChange",function(n){y(e);let o=u();return x(o.handleChange(n))}),m()(),h(4,"div",11)(5,"color-editable-input",20),I("onChange",function(n){y(e);let o=u();return x(o.handleChange(n))}),m()(),h(6,"div",11),b(7,Rx,1,7,"color-editable-input",16),m()}if(i&2){let e=u();d(),Qt(Me(10,_i,e.input,e.label)),f("value",e.round(e.hsl.h)),d(2),Qt(Me(13,_i,e.input,e.label)),f("value",e.round(e.hsl.s*100)+"%"),d(2),Qt(Me(16,_i,e.input,e.label)),f("value",e.round(e.hsl.l*100)+"%"),d(2),f("ngIf",!e.disableAlpha)}}function Fx(i,r){if(i&1){let e=X();h(0,"div",12)(1,"color-alpha",13),I("onChange",function(n){y(e);let o=u();return x(o.handleValueChange(n))}),m()()}if(i&2){let e=u();d(),f("radius",2)("rgb",e.rgb)("hsl",e.hsl)("pointer",e.pointer)}}var Px=(()=>{class i{disableAlpha;hsl;rgb;hex;onChange=new T;view="";input={fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px","text-align":"center"};label={"text-transform":"uppercase",fontSize:"11px","line-height":"11px",color:"#969696","text-align":"center",display:"block",marginTop:"12px"};ngOnInit(){this.hsl.a===1&&this.view!=="hex"?this.view="hex":this.view!=="rgb"&&this.view!=="hsl"&&(this.view="rgb")}toggleViews(){this.view==="hex"?this.view="rgb":this.view==="rgb"?this.view="hsl":this.view==="hsl"&&(this.hsl.a===1?this.view="hex":this.view="rgb")}round(e){return Math.round(e)}handleChange({data:e,$event:t}){if(e.hex){if(Ap(e.hex)){let n=new Gt(e.hex);this.onChange.emit({data:{hex:this.disableAlpha?n.toHex():n.toHex8(),source:"hex"},$event:t})}}else if(e.r||e.g||e.b)this.onChange.emit({data:{r:e.r||this.rgb.r,g:e.g||this.rgb.g,b:e.b||this.rgb.b,source:"rgb"},$event:t});else if(e.a)e.a<0?e.a=0:e.a>1&&(e.a=1),this.disableAlpha&&(e.a=1),this.onChange.emit({data:{h:this.hsl.h,s:this.hsl.s,l:this.hsl.l,a:Math.round(e.a*100)/100,source:"rgb"},$event:t});else if(e.h||e.s||e.l){let n=e.s&&e.s.replace("%",""),o=e.l&&e.l.replace("%","");this.onChange.emit({data:{h:e.h||this.hsl.h,s:Number(n||this.hsl.s),l:Number(o||this.hsl.l),source:"hsl"},$event:t})}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["color-chrome-fields"]],inputs:{disableAlpha:"disableAlpha",hsl:"hsl",rgb:"rgb",hex:"hex"},outputs:{onChange:"onChange"},decls:13,vars:3,consts:[["icon",""],["iconUp",""],["iconDown",""],[1,"chrome-wrap"],[1,"chrome-fields"],[3,"ngIf"],[1,"chrome-toggle"],[1,"chrome-icon",3,"click"],["viewBox","0 0 24 24",1,"chrome-toggle-svg"],["fill","#333","d","M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"],["fill","#333","d","M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15Z"],[1,"chrome-field"],["label","hex",3,"onChange","value"],["label","r",3,"onChange","value"],["label","g",3,"onChange","value"],["label","b",3,"onChange","value"],["label","a",3,"style","value","arrowOffset","onChange",4,"ngIf"],["label","a",3,"onChange","value","arrowOffset"],["label","h",3,"onChange","value"],["label","s",3,"onChange","value"],["label","l",3,"onChange","value"]],template:function(t,n){if(t&1){let o=X();h(0,"div",3)(1,"div",4),b(2,Mx,2,6,"ng-template",5)(3,Ax,8,19,"ng-template",5)(4,Ox,8,19,"ng-template",5),m(),h(5,"div",6)(6,"div",7,0),I("click",function(){return y(o),x(n.toggleViews())}),qt(),h(8,"svg",8),w(9,"path",9,1)(11,"path",10,2),m()()()()}t&2&&(d(2),f("ngIf",n.view==="hex"),d(),f("ngIf",n.view==="rgb"),d(),f("ngIf",n.view==="hsl"))},dependencies:[fn,Rp],styles:[".chrome-wrap[_ngcontent-%COMP%]{padding-top:16px;display:flex}.chrome-fields[_ngcontent-%COMP%]{flex:1;display:flex;margin-left:-6px}.chrome-field[_ngcontent-%COMP%]{padding-left:6px;width:100%}.chrome-toggle[_ngcontent-%COMP%]{width:32px;text-align:right;position:relative}.chrome-icon[_ngcontent-%COMP%]{margin-right:-4px;margin-top:12px;cursor:pointer;position:relative}.chrome-toggle-svg[_ngcontent-%COMP%]{width:24px;height:24px;border:1px transparent solid;border-radius:5px}.chrome-toggle-svg[_ngcontent-%COMP%]:hover{background:#eee}"],changeDetection:0})}return i})(),Vp=(()=>{class i extends Cc{disableAlpha=!1;circle={width:"12px",height:"12px",borderRadius:"6px",boxShadow:"rgb(255, 255, 255) 0px 0px 0px 1px inset",transform:"translate(-6px, -8px)"};pointer={width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -2px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"};activeBackground;constructor(){super()}afterValidChange(){let e=this.disableAlpha?1:this.rgb.a;this.activeBackground=`rgba(${this.rgb.r}, ${this.rgb.g}, ${this.rgb.b}, ${e})`}handleValueChange({data:e,$event:t}){this.handleChange(e,t)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["color-chrome"]],inputs:{disableAlpha:"disableAlpha"},features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0},{provide:Cc,useExisting:le(()=>i)}]),be],decls:14,vars:16,consts:[[1,"saturation"],[3,"onChange","hsl","hsv","circle"],[1,"chrome-body"],[1,"chrome-controls"],[1,"chrome-color"],[1,"chrome-swatch"],[1,"chrome-active"],[1,"chrome-toggles"],[1,"chrome-hue"],[3,"onChange","radius","hsl","pointer"],["class","chrome-alpha",4,"ngIf"],[3,"onChange","rgb","hsl","hex","disableAlpha"],[1,"chrome-alpha"],[3,"onChange","radius","rgb","hsl","pointer"]],template:function(t,n){t&1&&(h(0,"div")(1,"div",0)(2,"color-saturation",1),I("onChange",function(a){return n.handleValueChange(a)}),m()(),h(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),w(7,"div",6)(8,"color-checkboard"),m()(),h(9,"div",7)(10,"div",8)(11,"color-hue",9),I("onChange",function(a){return n.handleValueChange(a)}),m()(),b(12,Fx,2,4,"div",10),m()(),h(13,"color-chrome-fields",11),I("onChange",function(a){return n.handleValueChange(a)}),m()()()),t&2&&(ji("chrome-picker ",n.className,""),d(2),f("hsl",n.hsl)("hsv",n.hsv)("circle",n.circle),d(5),Ae("background",n.activeBackground),d(4),f("radius",2)("hsl",n.hsl)("pointer",n.pointer),d(),f("ngIf",!n.disableAlpha),d(),f("rgb",n.rgb)("hsl",n.hsl)("hex",n.hex)("disableAlpha",n.disableAlpha))},dependencies:()=>[fn,Mp,bc,Fp,Np,Px],styles:[".chrome-picker[_ngcontent-%COMP%]{background:#fff;border-radius:2px;box-shadow:0 0 2px #0000004d,0 4px 8px #0000004d;box-sizing:initial;width:225px;font-family:Menlo}.chrome-controls[_ngcontent-%COMP%]{display:flex}.chrome-color[_ngcontent-%COMP%]{width:42px}.chrome-body[_ngcontent-%COMP%]{padding:14px 14px 12px}.chrome-active[_ngcontent-%COMP%]{position:absolute;inset:0;border-radius:20px;box-shadow:inset 0 0 0 1px #0000001a;z-index:2}.chrome-swatch[_ngcontent-%COMP%]{width:28px;height:28px;border-radius:15px;position:relative;overflow:hidden}.saturation[_ngcontent-%COMP%]{width:100%;padding-bottom:55%;position:relative;border-radius:2px 2px 0 0;overflow:hidden}.chrome-toggles[_ngcontent-%COMP%]{flex:1}.chrome-hue[_ngcontent-%COMP%]{height:10px;position:relative;margin-bottom:8px}.chrome-alpha[_ngcontent-%COMP%]{height:10px;position:relative}"],changeDetection:0})}return i})(),wc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=j({type:i});static \u0275inj=V({imports:[Oe,Dp,vc,Op,Pp,Lp]})}return i})();function Lx(i,r){}function Vx(i,r){if(i&1&&b(0,Lx,0,0,"ng-template",0),i&2){let e=u();f("ngTemplateOutlet",e.picker.content)}}function jx(i,r){if(i&1){let e=X();h(0,"color-chrome",2),I("onChangeComplete",function(n){y(e);let o=u();return x(o.picker.select(o.getColorString(n)))}),m()}if(i&2){let e=u();f("color",e.picker.selected)}}var Bx=["button"],zx=[[["","mtxColorpickerToggleIcon",""]]],Ux=["[mtxColorpickerToggleIcon]"];function Hx(i,r){i&1&&(qt(),h(0,"svg",2),w(1,"path",3),m())}var Gx={transformPanel:Dt("transformPanel",[tt("void => enter-dropdown",rt("120ms cubic-bezier(0, 0, 0.2, 1)",Hd([Re({opacity:0,transform:"scale(1, 0.8)"}),Re({opacity:1,transform:"scale(1, 1)"})]))),tt("* => void",rt("100ms linear",Re({opacity:0})))])},$x=0,jp=new O("mtx-colorpicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=R(Ke);return()=>i.scrollStrategies.reposition()}});function Wx(i){return()=>i.scrollStrategies.reposition()}var qx={provide:jp,deps:[Ke],useFactory:Wx},Bp=(()=>{class i{constructor(e){this._changeDetectorRef=e,this._animationState="enter-dropdown",this._animationDone=new P}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._animationDone.complete()}getColorString(e){return{hex:e.color.rgb.a===1?e.color.hex:new Gt(e.color.rgb).toHex8String(),rgb:new Gt(e.color.rgb).toRgbString(),hsl:new Gt(e.color.hsl).toHslString(),hsv:new Gt(e.color.hsv).toHsvString()}[this.picker.format]}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["mtx-colorpicker-content"]],hostAttrs:[1,"mtx-colorpicker-content"],hostVars:3,hostBindings:function(t,n){t&1&&Sd("@transformPanel.done",function(){return n._animationDone.next()}),t&2&&(Id("@transformPanel",n._animationState),Qe(n.color?"mat-"+n.color:""))},inputs:{color:"color"},exportAs:["mtxColorpickerContent"],standalone:!0,features:[H],decls:2,vars:1,consts:[[3,"ngTemplateOutlet"],[3,"color"],[3,"onChangeComplete","color"]],template:function(t,n){t&1&&b(0,Vx,1,1,null,0)(1,jx,1,1,"color-chrome",1),t&2&&C(n.picker.content?0:1)},dependencies:[wc,Vp,Lt],styles:[`.mtx-colorpicker-content{display:block;border-radius:4px} -`],encapsulation:2,data:{animation:[Gx.transformPanel]},changeDetection:0})}}return i})(),zp=(()=>{class i{get disabled(){return this._disabled===void 0&&this.pickerInput?this.pickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))}get opened(){return this._opened}set opened(e){e?this.open():this.close()}get color(){return this._color||(this.pickerInput?this.pickerInput.getThemePalette():void 0)}set color(e){this._color=e}get format(){return this._format||this.pickerInput.format}set format(e){this._format=e}get selected(){return this._validSelected}set selected(e){this._validSelected=e}constructor(e,t,n,o,a){this._overlay=e,this._viewContainerRef=t,this._dir=o,this._document=a,this._inputStateChanges=fe.EMPTY,this.openedStream=new T,this.closedStream=new T,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this._opened=!1,this.id=`mtx-colorpicker-${$x++}`,this._validSelected="",this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this._disabledChange=new P,this._selectedChanged=new P,this._injector=R(et),this._scrollStrategy=n}ngOnChanges(){}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this._disabledChange.complete()}select(e){let t=this.selected;this.selected=e,this._selectedChanged.next(e)}registerInput(e){if(this.pickerInput)throw Error("A Colorpicker can only be associated with a single input.");this.pickerInput=e,this._inputStateChanges=e._valueChange.subscribe(t=>this.selected=t)}open(){if(!(this._opened||this.disabled)){if(!this.pickerInput)throw Error("Attempted to open an Colorpicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this._openOverlay(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;if(this._componentRef){let t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe(qe(1)).subscribe(()=>this._destroyOverlay())}let e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function"?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_forwardContentValues(e){e.picker=this,e.color=this.color}_openOverlay(){this._destroyOverlay();let e=this.pickerInput.getOverlayLabelId(),t=new nn(Bp,this._viewContainerRef),n=this._overlayRef=this._overlay.create(new zn({positionStrategy:this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mtx-colorpicker-popup"})),o=n.overlayElement;o.setAttribute("role","dialog"),e&&o.setAttribute("aria-labelledby",e),this._getCloseStream(n).subscribe(a=>{a&&a.preventDefault(),this.close()}),this._componentRef=n.attach(t),this._forwardContentValues(this._componentRef.instance),Yt(()=>{n.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.pickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mtx-colorpicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let t=this.xPosition==="end"?"end":"start",n=t==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:t,originY:a,overlayX:t,overlayY:o},{originX:t,originY:o,overlayX:t,overlayY:a},{originX:n,originY:a,overlayX:n,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:a}])}_getCloseStream(e){return Se(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(ve(t=>t.keyCode===27&&!We(t)||this.pickerInput&&We(t,"altKey")&&t.keyCode===38)))}static{this.\u0275fac=function(t){return new(t||i)(c(Ke),c($e),c(jp),c(Fe,8),c(K,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mtx-colorpicker"]],inputs:{content:"content",disabled:[2,"disabled","disabled",v],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",v],opened:[2,"opened","opened",v],color:"color",format:"format"},outputs:{openedStream:"opened",closedStream:"closed"},exportAs:["mtxColorpicker"],standalone:!0,features:[oe,se,H],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0})}}return i})(),$n=class{constructor(r,e){this.target=r,this.targetElement=e,this.value=this.target.value}},Yx={provide:Ce,useExisting:le(()=>Fa),multi:!0},Qx={provide:Rt,useExisting:le(()=>Fa),multi:!0},Fa=(()=>{class i{set mtxColorpicker(e){e&&(this._picker=e,this._picker.registerInput(this),this._pickerSubscription.unsubscribe(),this._pickerSubscription=this._picker._selectedChanged.subscribe(t=>{this.value=t,this._cvaOnChange(t),this._onTouched(),this.colorInput.emit(new $n(this,this._elementRef.nativeElement)),this.colorChange.emit(new $n(this,this._elementRef.nativeElement))}))}get disabled(){return!!this._disabled}set disabled(e){let t=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&this._isInitialized&&t.blur&&t.blur()}get value(){return this._value}set value(e){let t=this.value;this._value=e,this._formatValue(e),this._valueChange.emit(e)}constructor(e,t){this._elementRef=e,this._formField=t,this.format="hex",this.colorChange=new T,this.colorInput=new T,this._disabledChange=new T,this._valueChange=new T,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._pickerSubscription=fe.EMPTY,this._validator=Zt.compose([]),this._lastValueValid=!1}ngAfterViewInit(){this._isInitialized=!0}ngOnDestroy(){this._pickerSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}writeValue(e){this.value=e}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let t=e.altKey&&e.keyCode===40;this._picker&&t&&!this._elementRef.nativeElement.readOnly&&(this._picker.open(),e.preventDefault())}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_onInput(e){let t=e;this._value=t,this._cvaOnChange(t),this._valueChange.emit(t),this.colorInput.emit(new $n(this,this._elementRef.nativeElement))}_onChange(){this.colorChange.emit(new $n(this,this._elementRef.nativeElement))}getThemePalette(){return this._formField?this._formField.color:void 0}_formatValue(e){this._elementRef.nativeElement.value=e||""}static{this.\u0275fac=function(t){return new(t||i)(c(F),c(Ut,8))}}static{this.\u0275dir=S({type:i,selectors:[["input","mtxColorpicker",""]],hostAttrs:[1,"mtx-colorpicker-input"],hostVars:3,hostBindings:function(t,n){t&1&&I("input",function(a){return n._onInput(a.target.value)})("change",function(){return n._onChange()})("blur",function(){return n._onBlur()})("keydown",function(a){return n._onKeydown(a)}),t&2&&(Mt("disabled",n.disabled),ee("aria-haspopup",n._picker?"dialog":null)("aria-owns",(n._picker==null?null:n._picker.opened)&&n._picker.id||null))},inputs:{mtxColorpicker:"mtxColorpicker",disabled:[2,"disabled","disabled",v],value:"value",format:"format"},outputs:{colorChange:"colorChange",colorInput:"colorInput"},exportAs:["mtxColorpickerInput"],standalone:!0,features:[$([Yx,Qx,{provide:Nl,useExisting:i}]),oe]})}}return i})(),Xx=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=S({type:i,selectors:[["","mtxColorpickerToggleIcon",""]],standalone:!0})}}return i})(),Tc=(()=>{class i{get disabled(){return this._disabled==null&&this.picker?this.picker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,t){this._changeDetectorRef=e,this._stateChanges=fe.EMPTY;let n=Number(t);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.picker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.picker&&!this.disabled&&(this.picker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.picker?this.picker._disabledChange:U(),t=this.picker&&this.picker.pickerInput?this.picker.pickerInput._disabledChange:U(),n=this.picker?Se(this.picker.openedStream,this.picker.closedStream):U();this._stateChanges.unsubscribe(),this._stateChanges=Se(e,t,n).subscribe(()=>this._changeDetectorRef.markForCheck())}static{this.\u0275fac=function(t){return new(t||i)(c(Q),Ge("tabindex"))}}static{this.\u0275cmp=L({type:i,selectors:[["mtx-colorpicker-toggle"]],contentQueries:function(t,n,o){if(t&1&&Y(o,Xx,5),t&2){let a;k(a=M())&&(n._customIcon=a.first)}},viewQuery:function(t,n){if(t&1&&q(Bx,5),t&2){let o;k(o=M())&&(n._button=o.first)}},hostAttrs:[1,"mtx-colorpicker-toggle"],hostVars:7,hostBindings:function(t,n){t&1&&I("click",function(a){return n._open(a)}),t&2&&(ee("tabindex",null),B("mtx-colorpicker-toggle-active",n.picker&&n.picker.opened)("mat-accent",n.picker&&n.picker.color==="accent")("mat-warn",n.picker&&n.picker.color==="warn"))},inputs:{picker:[0,"for","picker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",v],disableRipple:[2,"disableRipple","disableRipple",v]},exportAs:["mtxColorpickerToggle"],standalone:!0,features:[oe,se,H],ngContentSelectors:Ux,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mtx-colorpicker-toggle-default-icon"],["d","M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z"]],template:function(t,n){t&1&&(he(zx),h(0,"button",1,0),b(2,Hx,2,0,":svg:svg",2),Z(3),m()),t&2&&(f("disabled",n.disabled)("disableRipple",n.disableRipple),ee("aria-haspopup",n.picker?"dialog":null)("aria-label",n.ariaLabel)("tabindex",n.disabled?-1:n.tabIndex),d(2),C(n._customIcon?-1:2))},dependencies:[Zr],styles:[`.mtx-colorpicker-toggle{pointer-events:auto;color:var(--mtx-colorpicker-toggle-icon-color, var(--mat-app-on-surface-variant))}.mtx-colorpicker-toggle-active{color:var(--mtx-colorpicker-toggle-active-state-icon-color, var(--mat-app-on-surface-variant))}.cdk-high-contrast-active .mtx-colorpicker-toggle-default-icon{color:CanvasText} -`],encapsulation:2,changeDetection:0})}}return i})(),Up=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[qx],imports:[Oe,Un,fa,Bn,Aa,wc,Bp,Tc]})}}return i})();var Zx=["content"],Kx=["scroll"],Jx=["padding"],$p=["*"],io=i=>({searchTerm:i});function eC(i,r){if(i&1&&(h(0,"div",3),Ja(1,6),m()),i&2){let e=u();d(),f("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",Xe(2,io,e.filterValue))}}function tC(i,r){if(i&1&&(h(0,"div",5),Ja(1,6),m()),i&2){let e=u();d(),f("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",Xe(2,io,e.filterValue))}}var iC=["searchInput"],nC=["clearButton"],rC=(i,r,e)=>({item:i,clear:r,label:e}),oC=(i,r)=>({items:i,clear:r}),aC=(i,r,e,t)=>({item:i,item$:r,index:e,searchTerm:t});function sC(i,r){if(i&1&&(h(0,"div",20),te(1),m()),i&2){let e=u(2);d(),ce(e.placeholder)}}function lC(i,r){}function cC(i,r){if(i&1&&b(0,sC,2,1,"ng-template",null,1,_t)(2,lC,0,0,"ng-template",19),i&2){let e=_e(1),t=u();d(2),f("ngTemplateOutlet",t.placeholderTemplate||e)}}function dC(i,r){if(i&1){let e=X();h(0,"span",23),I("click",function(){y(e);let n=u().$implicit,o=u(2);return x(o.unselect(n))}),te(1,"\xD7"),m(),w(2,"span",24)}if(i&2){let e=u().$implicit,t=u(2);d(2),f("ngItemLabel",e.label)("escape",t.escapeHTML)}}function uC(i,r){}function hC(i,r){if(i&1&&(h(0,"div",22),b(1,dC,3,2,"ng-template",null,2,_t)(3,uC,0,0,"ng-template",12),m()),i&2){let e=r.$implicit,t=_e(2),n=u(2);B("ng-value-disabled",e.disabled),d(3),f("ngTemplateOutlet",n.labelTemplate||t)("ngTemplateOutletContext",Pt(4,rC,e.value,n.clearItem,e.label))}}function mC(i,r){if(i&1&&Ne(0,hC,4,8,"div",21,Ka().trackByOption,!0),i&2){let e=u();Le(e.selectedItems)}}function pC(i,r){}function fC(i,r){if(i&1&&b(0,pC,0,0,"ng-template",12),i&2){let e=u();f("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",Me(2,oC,e.selectedValues,e.clearItem))}}function gC(i,r){i&1&&w(0,"div",25)}function _C(i,r){}function bC(i,r){if(i&1&&b(0,gC,1,0,"ng-template",null,3,_t)(2,_C,0,0,"ng-template",19),i&2){let e=_e(1),t=u();d(2),f("ngTemplateOutlet",t.loadingSpinnerTemplate||e)}}function vC(i,r){if(i&1&&(h(0,"span",15,4)(2,"span",26),te(3,"\xD7"),m()()),i&2){let e=u();kd("title",e.clearAllText)}}function yC(i,r){if(i&1&&w(0,"span",31),i&2){let e=u().$implicit,t=u(2);f("ngItemLabel",e.label)("escape",t.escapeHTML)}}function xC(i,r){}function CC(i,r){if(i&1){let e=X();h(0,"div",30),I("click",function(){let n=y(e).$implicit,o=u(2);return x(o.toggleItem(n))})("mouseover",function(){let n=y(e).$implicit,o=u(2);return x(o.onItemHover(n))}),b(1,yC,1,2,"ng-template",null,5,_t)(3,xC,0,0,"ng-template",12),m()}if(i&2){let e=r.$implicit,t=_e(2),n=u(2);B("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===n.itemsList.markedItem),ee("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId),d(3),f("ngTemplateOutlet",e.children?n.optgroupTemplate||t:n.optionTemplate||t)("ngTemplateOutletContext",lr(17,aC,e.value,e,e.index,n.searchTerm))}}function wC(i,r){if(i&1&&(h(0,"span")(1,"span",33),te(2),m(),te(3),m()),i&2){let e=u(3);d(2),ce(e.addTagText),d(),xi('"',e.searchTerm,'"')}}function TC(i,r){}function EC(i,r){if(i&1){let e=X();h(0,"div",32),I("mouseover",function(){y(e);let n=u(2);return x(n.itemsList.unmarkItem())})("click",function(){y(e);let n=u(2);return x(n.selectTag())}),b(1,wC,4,2,"ng-template",null,6,_t)(3,TC,0,0,"ng-template",12),m()}if(i&2){let e=_e(2),t=u(2);B("ng-option-marked",!t.itemsList.markedItem),d(3),f("ngTemplateOutlet",t.tagTemplate||e)("ngTemplateOutletContext",Xe(4,io,t.searchTerm))}}function IC(i,r){if(i&1&&(h(0,"div",34),te(1),m()),i&2){let e=u(3);d(),ce(e.notFoundText)}}function SC(i,r){}function kC(i,r){if(i&1&&b(0,IC,2,1,"ng-template",null,7,_t)(2,SC,0,0,"ng-template",12),i&2){let e=_e(1),t=u(2);d(2),f("ngTemplateOutlet",t.notFoundTemplate||e)("ngTemplateOutletContext",Xe(2,io,t.searchTerm))}}function MC(i,r){if(i&1&&(h(0,"div",34),te(1),m()),i&2){let e=u(3);d(),ce(e.typeToSearchText)}}function DC(i,r){}function AC(i,r){if(i&1&&b(0,MC,2,1,"ng-template",null,8,_t)(2,DC,0,0,"ng-template",19),i&2){let e=_e(1),t=u(2);d(2),f("ngTemplateOutlet",t.typeToSearchTemplate||e)}}function RC(i,r){if(i&1&&(h(0,"div",34),te(1),m()),i&2){let e=u(3);d(),ce(e.loadingText)}}function OC(i,r){}function FC(i,r){if(i&1&&b(0,RC,2,1,"ng-template",null,9,_t)(2,OC,0,0,"ng-template",12),i&2){let e=_e(1),t=u(2);d(2),f("ngTemplateOutlet",t.loadingTextTemplate||e)("ngTemplateOutletContext",Xe(2,io,t.searchTerm))}}function PC(i,r){if(i&1){let e=X();h(0,"ng-dropdown-panel",27),I("update",function(n){y(e);let o=u();return x(o.viewPortItems=n)})("scroll",function(n){y(e);let o=u();return x(o.scroll.emit(n))})("scrollToEnd",function(n){y(e);let o=u();return x(o.scrollToEnd.emit(n))})("outsideClick",function(){y(e);let n=u();return x(n.close())}),ar(1),Ne(2,CC,4,22,"div",28,Ka().trackByOption,!0),b(4,EC,4,6,"div",29),sr(),b(5,kC,3,4)(6,AC,3,1)(7,FC,3,4),m()}if(i&2){let e=u();B("ng-select-multiple",e.multiple),f("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId),d(2),Le(e.viewPortItems),d(2),C(e.showAddTag?4:-1),d(),C(e.showNoItemsFound()?5:-1),d(),C(e.showTypeToSearch()?6:-1),d(),C(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var Wp=/[&<>"']/g,NC=RegExp(Wp.source),LC={"&":"&","<":"<",">":">",'"':""","'":"'"};function VC(i){return i&&NC.test(i)?i.replace(Wp,r=>LC[r]):i}function De(i){return i!=null}function to(i){return typeof i=="object"&&De(i)}function jC(i){return i instanceof Promise}function Na(i){return i instanceof Function}var BC=(()=>{class i{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?VC(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=S({type:i,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[se]})}}return i})(),Sc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return i})(),kc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return i})(),Mc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return i})(),Dc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return i})(),Ac=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return i})(),Rc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return i})(),Oc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return i})(),Fc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return i})(),Pc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return i})(),Nc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return i})(),Lc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return i})(),Vc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return i})();function qp(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var zC={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function Pa(i){let r=e=>zC[e]||e;return i.replace(/[^\u0000-\u007E]/g,r)}var Ec=class{constructor(r,e){this._ngSelect=r,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let r=this.selectedItems.length-1;for(;r>=0;r--){let e=this.selectedItems[r];if(!e.disabled)return e}return null}setItems(r){this._items=r.map((e,t)=>this.mapItem(e,t)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(r){if(r.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(r,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(r)}unselect(r){r.selected&&(this._selectionModel.unselect(r,this._ngSelect.multiple),this._ngSelect.hideSelected&&De(r.index)&&this._ngSelect.multiple&&this._showSelected(r))}findItem(r){let e;return this._ngSelect.compareWith?e=t=>this._ngSelect.compareWith(t.value,r):this._ngSelect.bindValue?e=t=>!t.children&&this.resolveNested(t.value,this._ngSelect.bindValue)===r:e=t=>t.value===r||!t.children&&t.label&&t.label===this.resolveNested(r,this._ngSelect.bindLabel),this._items.find(t=>e(t))}addItem(r){let e=this.mapItem(r,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(r=!1){this._selectionModel.clear(r),this._items.forEach(e=>{e.selected=r&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(r){return r=Pa(r).toLocaleLowerCase(),this.filteredItems.find(e=>Pa(e.label).toLocaleLowerCase().substr(0,r.length)===r)}filter(r){if(!r){this.resetFilteredItems();return}this._filteredItems=[],r=this._ngSelect.searchFn?r:Pa(r).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,t=this._ngSelect.hideSelected;for(let n of Array.from(this._groups.keys())){let o=[];for(let a of this._groups.get(n)){if(t&&(a.parent&&a.parent.selected||a.selected))continue;let s=this._ngSelect.searchFn?a.value:a;e(r,s)&&o.push(a)}if(o.length>0){let[a]=o.slice(-1);if(a.parent){let s=this._items.find(l=>l===a.parent);this._filteredItems.push(s)}this._filteredItems.push(...o)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(r=>!r.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(r){this._markedIndex=this._filteredItems.indexOf(r)}markSelectedOrDefault(r){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=r?this.filteredItems.findIndex(t=>!t.disabled):-1}resolveNested(r,e){if(!to(r))return r;if(e.indexOf(".")===-1)return r[e];{let t=e.split("."),n=r;for(let o=0,a=t.length;othis.selectedItems.indexOf(e)===-1))}_showSelected(r){if(this._filteredItems.push(r),r.parent){let e=r.parent;this._filteredItems.find(n=>n===e)||this._filteredItems.push(e)}else if(r.children)for(let e of r.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,t)=>e.index-t.index)]}_hideSelected(r){this._filteredItems=this._filteredItems.filter(e=>e!==r),r.parent?r.parent.children.every(t=>t.selected)&&(this._filteredItems=this._filteredItems.filter(t=>t!==r.parent)):r.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==r))}_defaultSearchFn(r,e){return Pa(e.label).toLocaleLowerCase().indexOf(r)>-1}_getNextItemIndex(r){return r>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(r){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(r),this.markedItem.disabled&&this._stepToItem(r))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let r=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&r<0?-1:Math.max(this.markedIndex,r)}_groupBy(r,e){let t=new Map;if(r.length===0)return t;if(Array.isArray(r[0].value[e])){for(let a of r){let s=(a.value[e]||[]).map((l,p)=>this.mapItem(l,p));t.set(a,s)}return t}let n=Na(this._ngSelect.groupBy),o=a=>{let s=n?e(a.value):a.value[e];return De(s)?s:void 0};for(let a of r){let s=o(a),l=t.get(s);l?l.push(a):t.set(s,[a])}return t}_flatten(r){let e=Na(this._ngSelect.groupBy),t=[];for(let n of Array.from(r.keys())){let o=t.length;if(n===void 0){let _=r.get(void 0)||[];t.push(..._.map(D=>(D.index=o++,D)));continue}let a=to(n),s={label:a?"":String(n),children:void 0,parent:null,index:o++,disabled:!this._ngSelect.selectableGroup,htmlId:qp()},l=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,p=this._ngSelect.groupValue||(()=>a?n.value:{[l]:n}),g=r.get(n).map(_=>(_.parent=s,_.children=void 0,_.index=o++,_));s.children=g,s.value=p(n,g.map(_=>_.value)),t.push(s),t.push(...g)}return t}},ii=function(i){return i[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Esc=27]="Esc",i[i.Space=32]="Space",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowDown=40]="ArrowDown",i[i.Backspace=8]="Backspace",i}(ii||{}),Yp=(()=>{class i{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,t,n){let o=this._dimensions,a=o.itemHeight*t,l=Math.max(0,e)/a*t,p=Math.min(t,Math.ceil(l)+(o.itemsPerViewport+1)),_=Math.max(0,p-o.itemsPerViewport),D=Math.min(_,Math.floor(l)),G=o.itemHeight*Math.ceil(D)-o.itemHeight*Math.min(D,n);return G=isNaN(G)?0:G,D=isNaN(D)?-1:D,p=isNaN(p)?-1:p,D-=n,D=Math.max(0,D),p+=n,p=Math.min(t,p),{topPadding:G,scrollHeight:a,start:D,end:p}}setDimensions(e,t){let n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}getScrollTo(e,t,n){let{panelHeight:o}=this.dimensions,a=e+t,s=n,l=s+o;return o>=a&&n===e?null:a>l?s+a-l:e<=s?e:null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac})}}return i})(),Hp=["top","right","bottom","left"],UC=typeof requestAnimationFrame<"u"?Wa:$a,Gp=(()=>{class i{constructor(e,t,n,o,a){this._renderer=e,this._zone=t,this._panelService=n,this._document=a,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new T,this.scroll=new T,this.scrollToEnd=new T,this.outsideClick=new T,this._destroy$=new P,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=o.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:t}=this._panelService.dimensions,n=this.markedItem.index*e;return t>n?0:n}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,t=!1){if(!e)return;let n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let o;if(this.virtualScroll){let a=this._panelService.dimensions.itemHeight;o=this._panelService.getScrollTo(n*a,a,this._lastScrollPosition)}else{let a=this._dropdown.querySelector(`#${e.htmlId}`),s=t?a.offsetTop:this._lastScrollPosition;o=this._panelService.getScrollTo(a.offsetTop,a.clientHeight,s)}De(o)&&(this._scrollablePanel.scrollTop=o)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Hp.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Hp.forEach(n=>{let o=`ng-select-${n}`;this._renderer.removeClass(this._dropdown,o),this._renderer.removeClass(this._select,o)});let t=`ng-select-${e}`;this._renderer.addClass(this._dropdown,t),this._renderer.addClass(this._select,t)}_handleScroll(){this._zone.runOutsideAngular(()=>{Je(this.scrollElementRef.nativeElement,"scroll").pipe(re(this._destroy$),Kn(0,UC)).subscribe(e=>{let t=e.path||e.composedPath&&e.composedPath();if(!t||t.length===0&&!e.target)return;let n=!t||t.length===0?e.target.scrollTop:t[0].scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Se(Je(this._document,"touchstart",{capture:!0}),Je(this._document,"click",{capture:!0})).pipe(re(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let t=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,t),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let t=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(t.scrollHeight),this._contentPanel.style.transform=`translateY(${t.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(t.start,t.end)),this.scroll.emit({start:t.start,end:t.end})}),De(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let n=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${n*this.itemsLength}px`;let o=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(n,o),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let t=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=t.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop,o=t.top+window.pageYOffset,a=t.height,s=e.getBoundingClientRect().height;return o+a+s>n+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.left-t.left;this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;if(this._currentPosition==="top"){let o=t.bottom-e.bottom;this._dropdown.style.bottom=o+n+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let o=e.top-t.top;this._dropdown.style.top=o+n+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Je(this._dropdown,"mousedown").pipe(re(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(t){return new(t||i)(c(un),c(W),c(Yp),c(F),c(K,8))}}static{this.\u0275cmp=L({type:i,selectors:[["ng-dropdown-panel"]],viewQuery:function(t,n){if(t&1&&(q(Zx,7,F),q(Kx,7,F),q(Jx,7,F)),t&2){let o;k(o=M())&&(n.contentElementRef=o.first),k(o=M())&&(n.scrollElementRef=o.first),k(o=M())&&(n.paddingElementRef=o.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",v],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[oe,se,H],ngContentSelectors:$p,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&(he(),b(0,eC,2,4,"div",3),h(1,"div",4,0),w(3,"div",null,1),h(5,"div",null,2),Z(7),m()(),b(8,tC,2,4,"div",5)),t&2&&(C(n.headerTemplate?0:-1),d(3),B("total-padding",n.virtualScroll),d(2),B("scrollable-content",n.virtualScroll&&n.items.length),d(3),C(n.footerTemplate?8:-1))},dependencies:[Lt],encapsulation:2,changeDetection:0})}}return i})(),HC=(()=>{class i{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new P}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275cmp=L({type:i,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",v]},standalone:!0,features:[oe,se,H],ngContentSelectors:$p,decls:1,vars:0,template:function(t,n){t&1&&(he(),Z(0))},encapsulation:2,changeDetection:0})}}return i})();function Qp(){return new Ic}var Ic=class{constructor(){this._selected=[]}get value(){return this._selected}select(r,e,t){if(r.selected=!0,(!r.children||!e&&t)&&this._selected.push(r),e)if(r.parent){let n=r.parent.children.length,o=r.parent.children.filter(a=>a.selected).length;r.parent.selected=n===o}else r.children&&(this._setChildrenSelectedState(r.children,!0),this._removeChildren(r),t&&this._activeChildren(r)?this._selected=[...this._selected.filter(n=>n.parent!==r),r]:this._selected=[...this._selected,...r.children.filter(n=>!n.disabled)])}unselect(r,e){if(this._selected=this._selected.filter(t=>t!==r),r.selected=!1,e)if(r.parent&&r.parent.selected){let t=r.parent.children;this._removeParent(r.parent),this._removeChildren(r.parent),this._selected.push(...t.filter(n=>n!==r&&!n.disabled)),r.parent.selected=!1}else r.children&&(this._setChildrenSelectedState(r.children,!1),this._removeChildren(r))}clear(r){this._selected=r?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(r,e){for(let t of r)t.disabled||(t.selected=e)}_removeChildren(r){this._selected=[...this._selected.filter(e=>e.parent!==r),...r.children.filter(e=>e.parent===r&&e.disabled&&e.selected)]}_removeParent(r){this._selected=this._selected.filter(e=>e!==r)}_activeChildren(r){return r.children.every(e=>!e.disabled||e.selected)}},GC=(()=>{class i{constructor(){this.fixedPlaceholder=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),$C=(()=>{class i{warn(e){console.warn(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Xp=new O("ng-select-selection-model"),Zp=(()=>{class i{constructor(e,t,n,o,a,s,l){this.classes=e,this.autoFocus=t,this.config=n,this._cd=s,this._console=l,this.markFirst=!0,this.fixedPlaceholder=!0,this.preventToggleOnRightClick=!1,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new T,this.focusEvent=new T,this.changeEvent=new T,this.openEvent=new T,this.closeEvent=new T,this.searchEvent=new T,this.clearEvent=new T,this.addEvent=new T,this.removeEvent=new T,this.scroll=new T,this.scrollToEnd=new T,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=qp(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new P,this._keyPress$=new P,this._items=[],this.keyDownFn=p=>!0,this.clearItem=p=>{let g=this.selectedItems.find(_=>_.value===p);this.unselect(g)},this.trackByOption=(p,g)=>this.trackByFn?this.trackByFn(g.value):g,this._onChange=p=>{},this._onTouched=()=>{},this._mergeGlobalConfig(n),this.itemsList=new Ec(this,o?o():Qp()),this.element=a.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!Na(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return De(this._clearSearchOnAdd)?this._clearSearchOnAdd:De(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return De(this._deselectOnClick)?this._deselectOnClick:De(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(t=>t.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(t=>t.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=De(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),De(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(ii[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let t=e.target;this.clearButton&&this.clearButton.nativeElement===t?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case ii.ArrowDown:this._handleArrowDown(e);break;case ii.ArrowUp:this._handleArrowUp(e);break;case ii.Space:this._handleSpace(e);break;case ii.Enter:this._handleEnter(e);break;case ii.Tab:this._handleTab(e);break;case ii.Esc:this.close(),e.preventDefault();break;case ii.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case ii.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let t=e.target;if(t.tagName!=="INPUT"&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(t.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}t.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value),this._onSelectionChanged())}selectTag(){let e;Na(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let t=n=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(n,null):this.itemsList.addItem(n);jC(e)?e.then(n=>this.select(t(n))).catch(()=>{}):e&&this.select(t(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(t=>t.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=De(t)?!to(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&De(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=n=>{this.items=n.map(o=>({$ngOptionValue:o.value,$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},t=()=>{let n=Se(this.ngOptions.changes,this._destroy$);Se(...this.ngOptions.map(o=>o.stateChange$)).pipe(re(n)).subscribe(o=>{let a=this.itemsList.findItem(o.value);a.disabled=o.disabled,a.label=o.label||a.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(He(this.ngOptions),re(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),t()})}_isValidWriteValue(e){if(!De(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let t=n=>!De(this.compareWith)&&to(n)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(n)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(n=>t(n)):(this._console.warn("Multiple select ngModel should be array."),!1):t(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let t=n=>{let o=this.itemsList.findItem(n);if(o)this.itemsList.select(o);else{let a=to(n),s=!a&&!this.bindValue;a||s?this.itemsList.select(this.itemsList.mapItem(n,null)):this.bindValue&&(o={[this.bindLabel]:null,[this.bindValue]:n},this.itemsList.select(this.itemsList.mapItem(o,null)))}};this.multiple?e.forEach(n=>t(n)):t(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(re(this._destroy$),we(e=>this._pressedKeys.push(e)),St(200),ve(()=>this._pressedKeys.length>0),J(()=>this._pressedKeys.join(""))).subscribe(e=>{let t=this.itemsList.findByLabel(e);t&&(this.isOpen?(this.itemsList.markItem(t),this._scrollToMarked(),this._cd.markForCheck()):this.select(t)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,t=A({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let n of Object.keys(t))e.setAttribute(n,t[n])}_updateNgModel(){let e=[];for(let n of this.selectedItems)if(this.bindValue){let o=null;if(n.children){let a=this.groupValue?this.bindValue:this.groupBy;o=n.value[a||this.groupBy]}else o=this.itemsList.resolveNested(n.value,this.bindValue);e.push(o)}else e.push(n.value);let t=this.selectedItems.map(n=>n.value);this.multiple?(this._onChange(e),this.changeEvent.emit(t)):(this._onChange(De(e[0])?e[0]:null),this.changeEvent.emit(t[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey)this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=De(this.virtualScroll)?this.virtualScroll:De(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=De(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}static{this.\u0275fac=function(t){return new(t||i)(Ge("class"),Ge("autofocus"),c(GC),c(Xp,8),c(F),c(Q),c($C))}}static{this.\u0275cmp=L({type:i,selectors:[["ng-select"]],contentQueries:function(t,n,o){if(t&1&&(Y(o,Sc,5,z),Y(o,kc,5,z),Y(o,Mc,5,z),Y(o,Dc,5,z),Y(o,Ac,5,z),Y(o,Rc,5,z),Y(o,Oc,5,z),Y(o,Fc,5,z),Y(o,Pc,5,z),Y(o,Nc,5,z),Y(o,Lc,5,z),Y(o,Vc,5,z),Y(o,HC,5)),t&2){let a;k(a=M())&&(n.optionTemplate=a.first),k(a=M())&&(n.optgroupTemplate=a.first),k(a=M())&&(n.labelTemplate=a.first),k(a=M())&&(n.multiLabelTemplate=a.first),k(a=M())&&(n.headerTemplate=a.first),k(a=M())&&(n.footerTemplate=a.first),k(a=M())&&(n.notFoundTemplate=a.first),k(a=M())&&(n.placeholderTemplate=a.first),k(a=M())&&(n.typeToSearchTemplate=a.first),k(a=M())&&(n.loadingTextTemplate=a.first),k(a=M())&&(n.tagTemplate=a.first),k(a=M())&&(n.loadingSpinnerTemplate=a.first),k(a=M())&&(n.ngOptions=a)}},viewQuery:function(t,n){if(t&1&&(q(Gp,5),q(iC,7),q(nC,5)),t&2){let o;k(o=M())&&(n.dropdownPanel=o.first),k(o=M())&&(n.searchInput=o.first),k(o=M())&&(n.clearButton=o.first)}},hostVars:20,hostBindings:function(t,n){t&1&&I("keydown",function(a){return n.handleKeyDown(a)}),t&2&&B("ng-select-typeahead",n.typeahead)("ng-select-multiple",n.multiple)("ng-select-taggable",n.addTag)("ng-select-searchable",n.searchable)("ng-select-clearable",n.clearable)("ng-select-opened",n.isOpen)("ng-select",n.useDefaultClass)("ng-select-filtered",n.filtered)("ng-select-single",n.single)("ng-select-disabled",n.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",v],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",v],closeOnSelect:[2,"closeOnSelect","closeOnSelect",v],hideSelected:[2,"hideSelected","hideSelected",v],selectOnTab:[2,"selectOnTab","selectOnTab",v],openOnEnter:[2,"openOnEnter","openOnEnter",v],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Ee],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Ee],virtualScroll:[2,"virtualScroll","virtualScroll",v],selectableGroup:[2,"selectableGroup","selectableGroup",v],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",v],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",v],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Ee],readonly:[2,"readonly","readonly",v],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",v],minTermLength:[2,"minTermLength","minTermLength",Ee],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",v],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",v],addTag:"addTag",searchable:[2,"searchable","searchable",v],clearable:[2,"clearable","clearable",v],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0},Yp]),oe,se,H],decls:13,vars:19,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(t,n){if(t&1){let o=X();h(0,"div",10),I("mousedown",function(s){return y(o),x(n.handleMousedown(s))}),h(1,"div",11),b(2,cC,3,1)(3,mC,2,0)(4,fC,1,5,null,12),h(5,"div",13)(6,"input",14,0),I("blur",function(s){return y(o),x(n.onInputBlur(s))})("change",function(s){return y(o),x(s.stopPropagation())})("compositionend",function(){y(o);let s=_e(7);return x(n.onCompositionEnd(s.value))})("compositionstart",function(){return y(o),x(n.onCompositionStart())})("focus",function(s){return y(o),x(n.onInputFocus(s))})("input",function(){y(o);let s=_e(7);return x(n.filter(s.value))}),m()()(),b(8,bC,3,1)(9,vC,4,1,"span",15),h(10,"span",16),w(11,"span",17),m()(),b(12,PC,8,17,"ng-dropdown-panel",18)}t&2&&(B("ng-appearance-outline",n.appearance==="outline")("ng-has-value",n.hasValue),d(2),C(n.selectedItems.length===0&&!n.searchTerm||n.fixedPlaceholder===!0?2:-1),d(),C((!n.multiLabelTemplate||!n.multiple)&&n.selectedItems.length>0?3:-1),d(),C(n.multiple&&n.multiLabelTemplate&&n.selectedValues.length>0?4:-1),d(2),f("disabled",n.disabled)("readOnly",!n.searchable||n.itemsList.maxItemsSelected)("value",n.searchTerm?n.searchTerm:""),ee("aria-activedescendant",n.isOpen?n.itemsList==null||n.itemsList.markedItem==null?null:n.itemsList.markedItem.htmlId:null)("aria-controls",n.isOpen?n.dropdownId:null)("aria-expanded",n.isOpen)("aria-label",n.ariaLabel)("id",n.labelForId)("tabindex",n.tabIndex),d(2),C(n.loading?8:-1),d(),C(n.showClear()?9:-1),d(3),C(n.isOpen?12:-1))},dependencies:[Lt,BC,Gp,pn],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:unset;user-select:unset;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0} -`],encapsulation:2,changeDetection:0})}}return i})(),jc=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({providers:[{provide:Xp,useValue:Qp}]})}}return i})();var qC=["*"],YC=["ngSelect"],QC=()=>({standalone:!0}),Jp=(i,r,e,t)=>({item:i,item$:r,index:e,searchTerm:t}),XC=(i,r,e)=>({item:i,clear:r,label:e}),ZC=(i,r)=>({items:i,clear:r}),Bc=i=>({searchTerm:i});function KC(i,r){}function JC(i,r){if(i&1&&b(0,KC,0,0,"ng-template",14),i&2){let e=r.item,t=r.item$,n=r.index,o=r.searchTerm,a=u(2);f("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",lr(2,Jp,e,t,n,o))}}function ew(i,r){i&1&&b(0,JC,1,7,"ng-template",2)}function tw(i,r){}function iw(i,r){if(i&1&&b(0,tw,0,0,"ng-template",14),i&2){let e=r.item,t=r.item$,n=r.index,o=r.searchTerm,a=u(2);f("ngTemplateOutlet",a.optgroupTemplate)("ngTemplateOutletContext",lr(2,Jp,e,t,n,o))}}function nw(i,r){i&1&&b(0,iw,1,7,"ng-template",3)}function rw(i,r){}function ow(i,r){if(i&1&&b(0,rw,0,0,"ng-template",14),i&2){let e=r.item,t=r.clear,n=r.label,o=u(2);f("ngTemplateOutlet",o.labelTemplate)("ngTemplateOutletContext",Pt(2,XC,e,t,n))}}function aw(i,r){i&1&&b(0,ow,1,6,"ng-template",4)}function sw(i,r){}function lw(i,r){if(i&1&&b(0,sw,0,0,"ng-template",14),i&2){let e=r.items,t=r.clear,n=u(2);f("ngTemplateOutlet",n.multiLabelTemplate)("ngTemplateOutletContext",Me(2,ZC,e,t))}}function cw(i,r){i&1&&b(0,lw,1,5,"ng-template",5)}function dw(i,r){}function uw(i,r){if(i&1&&b(0,dw,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.headerTemplate)}}function hw(i,r){i&1&&b(0,uw,1,1,"ng-template",6)}function mw(i,r){}function pw(i,r){if(i&1&&b(0,mw,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.footerTemplate)}}function fw(i,r){i&1&&b(0,pw,1,1,"ng-template",7)}function gw(i,r){}function _w(i,r){if(i&1&&b(0,gw,0,0,"ng-template",14),i&2){let e=r.searchTerm,t=u(2);f("ngTemplateOutlet",t.notFoundTemplate)("ngTemplateOutletContext",Xe(2,Bc,e))}}function bw(i,r){i&1&&b(0,_w,1,4,"ng-template",8)}function vw(i,r){}function yw(i,r){if(i&1&&b(0,vw,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.typeToSearchTemplate)}}function xw(i,r){i&1&&b(0,yw,1,1,"ng-template",9)}function Cw(i,r){}function ww(i,r){if(i&1&&b(0,Cw,0,0,"ng-template",14),i&2){let e=r.searchTerm,t=u(2);f("ngTemplateOutlet",t.loadingTextTemplate)("ngTemplateOutletContext",Xe(2,Bc,e))}}function Tw(i,r){i&1&&b(0,ww,1,4,"ng-template",10)}function Ew(i,r){}function Iw(i,r){if(i&1&&b(0,Ew,0,0,"ng-template",14),i&2){let e=r.searchTerm,t=u(2);f("ngTemplateOutlet",t.tagTemplate)("ngTemplateOutletContext",Xe(2,Bc,e))}}function Sw(i,r){i&1&&b(0,Iw,1,4,"ng-template",11)}function kw(i,r){}function Mw(i,r){if(i&1&&b(0,kw,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.loadingSpinnerTemplate)}}function Dw(i,r){i&1&&b(0,Mw,1,1,"ng-template",12)}function Aw(i,r){}function Rw(i,r){if(i&1&&b(0,Aw,0,0,"ng-template",15),i&2){let e=u(2);f("ngTemplateOutlet",e.placeholderTemplate)}}function Ow(i,r){i&1&&b(0,Rw,1,1,"ng-template",13)}var Fw=(()=>{class i{get label(){return(this.elementRef.nativeElement.textContent||"").trim()}constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new P}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275cmp=L({type:i,selectors:[["mtx-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",v]},exportAs:["mtxOption"],standalone:!0,features:[oe,se,H],ngContentSelectors:qC,decls:1,vars:0,template:function(t,n){t&1&&(he(),Z(0))},encapsulation:2,changeDetection:0})}}return i})(),zc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return i})(),Pw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return i})(),Uc=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return i})(),Nw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return i})(),Lw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return i})(),Vw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return i})(),jw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return i})(),Bw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return i})(),zw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return i})(),Uw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return i})(),Hw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return i})(),Gw=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(c(z))}}static{this.\u0275dir=S({type:i,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return i})(),$w=new O("mtx-select-default-options"),Kp=0,La=(()=>{class i{get clearSearchOnAdd(){return this._clearSearchOnAdd??this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._focused}get empty(){return this.value==null||Array.isArray(this.value)&&this.value.length===0}get shouldLabelFloat(){return this.focused||!this.empty}get required(){return this._required??this.ngControl?.control?.hasValidator(Zt.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get panelOpen(){return!!this.ngSelect.isOpen}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,n,o,a,s,l,p,g){this._changeDetectorRef=e,this._elementRef=t,this._focusMonitor=n,this.ngControl=l,this._parentFormField=p,this._defaultOptions=g,this.addTag=!1,this.addTagText=this._defaultOptions?.addTagText??"Add item",this.appearance="underline",this.appendTo=this._defaultOptions?.appendTo??"body",this.bindLabel=this._defaultOptions?.bindLabel,this.bindValue=this._defaultOptions?.bindValue,this.closeOnSelect=!0,this.clearAllText=this._defaultOptions?.clearAllText??"Clear all",this.clearable=!0,this.clearOnBackspace=!0,this.dropdownPosition="auto",this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.hideSelected=!1,this.loading=!1,this.loadingText=this._defaultOptions?.loadingText??"Loading...",this.labelForId=null,this.markFirst=!0,this.multiple=!1,this.notFoundText=this._defaultOptions?.notFoundText??"No items found",this.searchable=!0,this.readonly=!1,this.searchFn=null,this.searchWhileComposing=!0,this.selectOnTab=!1,this.trackByFn=null,this.inputAttrs={},this.openOnEnter=this._defaultOptions?.openOnEnter??!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=_=>!0,this.virtualScroll=!1,this.typeToSearchText=this._defaultOptions?.typeToSearchText??"Type to search",this.blurEvent=new T,this.focusEvent=new T,this.changeEvent=new T,this.openEvent=new T,this.closeEvent=new T,this.searchEvent=new T,this.clearEvent=new T,this.addEvent=new T,this.removeEvent=new T,this.scroll=new T,this.scrollToEnd=new T,this._clearSearchOnAdd=this._defaultOptions?.clearSearchOnAdd,this._items=[],this._itemsAreUsed=!1,this._destroy$=new P,this._value=null,this.stateChanges=new P,this._uid=`mtx-select-${Kp++}`,this._placeholder=this._defaultOptions?.placeholder,this._focused=!1,this.disabled=!1,this.ariaLabel="",this.ariaLabelledby=null,this._ariaDescribedby=null,this.controlType="mtx-select",this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mtx-select-value-${Kp++}`,n.monitor(this._elementRef,!0).subscribe(_=>{this._focused&&!_&&this._onTouched(),this._focused=!!_,this.stateChanges.next()}),this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new Mi(o,l,s,a,this.stateChanges),this.id=this.id}ngOnInit(){this.compareWith&&(this.ngSelect.compareWith=this.compareWith)}ngAfterViewInit(){this._itemsAreUsed||(this.ngSelect.escapeHTML=!1,this._setItemsFromMtxOptions())}ngDoCheck(){let e=this.ngControl;this.ngControl&&(this._previousControl!==e.control&&(this._previousControl!==void 0&&e.disabled!==null&&e.disabled!==this.disabled&&(this.disabled=e.disabled),this._previousControl=e.control),this.updateErrorState())}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this.stateChanges.complete(),this._focusMonitor.stopMonitoring(this._elementRef)}_getAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}setDescribedByIds(e){this._ariaDescribedby=e.length?e.join(" "):null}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}onContainerClick(e){let t=e.target;/mat-mdc-form-field|mtx-select/g.test(t.parentElement?.classList[0]||"")&&(this.focus(),this.open())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}updateErrorState(){this._errorStateTracker.updateErrorState()}_assignValue(e){return e!==this._value||this.multiple&&Array.isArray(e)?(this._value=e,this._changeDetectorRef.markForCheck(),!0):!1}_setItemsFromMtxOptions(){let e=n=>{this.items=n.map(o=>({$ngOptionValue:o.value,$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled})),this.ngSelect.itemsList.setItems(this.items),this.ngSelect.hasValue&&this.ngSelect.itemsList.mapSelectedItems(),this.ngSelect.detectChanges()},t=()=>{let n=Se(this.mtxOptions.changes,this._destroy$);Se(...this.mtxOptions.map(o=>o.stateChange$)).pipe(re(n)).subscribe(o=>{let a=this.ngSelect.itemsList.findItem(o.value);a.disabled=o.disabled,a.label=o.label||a.label,this.ngSelect.detectChanges()})};this.mtxOptions.changes.pipe(He(this.mtxOptions),re(this._destroy$)).subscribe(n=>{e(n),t()})}open(){this.ngSelect.open()}close(){this.ngSelect.close()}focus(){this.ngSelect.focus()}blur(){this.ngSelect.blur()}openChange(){this.openEvent.emit(),setTimeout(()=>{document.getElementById(this.ngSelect.dropdownId)?.classList.add("mat-"+this._parentFormField?.color)})}static{this.\u0275fac=function(t){return new(t||i)(c(Q),c(F),c(wt),c(Pn),c(Gi,8),c(Jt,8),c(xt,10),c(Ji,8),c($w,8))}}static{this.\u0275cmp=L({type:i,selectors:[["mtx-select"]],contentQueries:function(t,n,o){if(t&1&&(Y(o,zc,5,z),Y(o,Pw,5,z),Y(o,Uc,5,z),Y(o,Nw,5,z),Y(o,Lw,5,z),Y(o,Vw,5,z),Y(o,jw,5,z),Y(o,Bw,5,z),Y(o,zw,5,z),Y(o,Uw,5,z),Y(o,Hw,5,z),Y(o,Gw,5,z),Y(o,Fw,5)),t&2){let a;k(a=M())&&(n.optionTemplate=a.first),k(a=M())&&(n.optgroupTemplate=a.first),k(a=M())&&(n.labelTemplate=a.first),k(a=M())&&(n.multiLabelTemplate=a.first),k(a=M())&&(n.headerTemplate=a.first),k(a=M())&&(n.footerTemplate=a.first),k(a=M())&&(n.notFoundTemplate=a.first),k(a=M())&&(n.typeToSearchTemplate=a.first),k(a=M())&&(n.loadingTextTemplate=a.first),k(a=M())&&(n.tagTemplate=a.first),k(a=M())&&(n.loadingSpinnerTemplate=a.first),k(a=M())&&(n.placeholderTemplate=a.first),k(a=M())&&(n.mtxOptions=a)}},viewQuery:function(t,n){if(t&1&&q(YC,7),t&2){let o;k(o=M())&&(n.ngSelect=o.first)}},hostAttrs:["role","combobox","aria-autocomplete","none",1,"mtx-select"],hostVars:20,hostBindings:function(t,n){t&2&&(ee("id",n.id)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-labelledby",n._getAriaLabelledby())("aria-describedby",n._ariaDescribedby||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState),B("mtx-select-floating",n.shouldLabelFloat)("mtx-select-disabled",n.disabled)("mtx-select-invalid",n.errorState)("mtx-select-required",n.required)("mtx-select-empty",n.empty)("mtx-select-multiple",n.multiple))},inputs:{addTag:"addTag",addTagText:"addTagText",appearance:"appearance",appendTo:"appendTo",bindLabel:"bindLabel",bindValue:"bindValue",closeOnSelect:[2,"closeOnSelect","closeOnSelect",v],clearAllText:"clearAllText",clearable:[2,"clearable","clearable",v],clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",v],compareWith:"compareWith",dropdownPosition:"dropdownPosition",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",selectableGroup:[2,"selectableGroup","selectableGroup",v],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",v],hideSelected:[2,"hideSelected","hideSelected",v],loading:[2,"loading","loading",v],loadingText:"loadingText",labelForId:"labelForId",markFirst:[2,"markFirst","markFirst",v],maxSelectedItems:"maxSelectedItems",multiple:[2,"multiple","multiple",v],notFoundText:"notFoundText",searchable:[2,"searchable","searchable",v],readonly:[2,"readonly","readonly",v],searchFn:"searchFn",searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",v],selectOnTab:[2,"selectOnTab","selectOnTab",v],trackByFn:"trackByFn",inputAttrs:"inputAttrs",tabIndex:"tabIndex",openOnEnter:[2,"openOnEnter","openOnEnter",v],minTermLength:"minTermLength",editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",v],keyDownFn:"keyDownFn",virtualScroll:[2,"virtualScroll","virtualScroll",v],typeToSearchText:"typeToSearchText",typeahead:"typeahead",isOpen:"isOpen",clearSearchOnAdd:"clearSearchOnAdd",items:"items",value:"value",id:"id",placeholder:"placeholder",disabled:[2,"disabled","disabled",v],required:[2,"required","required",v],errorStateMatcher:"errorStateMatcher",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},exportAs:["mtxSelect"],standalone:!0,features:[$([{provide:Ki,useExisting:i}]),oe,H],decls:14,vars:60,consts:[["ngSelect",""],[3,"ngModelChange","blur","focus","change","open","close","search","clear","add","remove","scroll","scrollToEnd","ngModel","ngModelOptions","placeholder","items","addTag","addTagText","appendTo","appearance","bindLabel","bindValue","closeOnSelect","clearAllText","clearable","clearOnBackspace","dropdownPosition","groupBy","groupValue","bufferAmount","hideSelected","isOpen","inputAttrs","loading","loadingText","labelForId","markFirst","maxSelectedItems","multiple","notFoundText","readonly","typeahead","typeToSearchText","trackByFn","searchable","searchFn","searchWhileComposing","clearSearchOnAdd","selectableGroup","selectableGroupAsModel","selectOnTab","tabIndex","openOnEnter","minTermLength","editableSearchTerm","keyDownFn","virtualScroll"],["ng-option-tmp",""],["ng-optgroup-tmp",""],["ng-label-tmp",""],["ng-multi-label-tmp",""],["ng-header-tmp",""],["ng-footer-tmp",""],["ng-notfound-tmp",""],["ng-typetosearch-tmp",""],["ng-loadingtext-tmp",""],["ng-tag-tmp",""],["ng-loadingspinner-tmp",""],["ng-placeholder-tmp",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1){let o=X();h(0,"ng-select",1,0),Be("ngModelChange",function(s){return y(o),je(n.value,s)||(n.value=s),x(s)}),I("blur",function(s){return y(o),x(n.blurEvent.emit(s))})("focus",function(s){return y(o),x(n.focusEvent.emit(s))})("change",function(s){return y(o),x(n.changeEvent.emit(s))})("open",function(){return y(o),x(n.openChange())})("close",function(){return y(o),x(n.closeEvent.emit())})("search",function(s){return y(o),x(n.searchEvent.emit(s))})("clear",function(s){return y(o),x(n.clearEvent.emit(s))})("add",function(s){return y(o),x(n.addEvent.emit(s))})("remove",function(s){return y(o),x(n.removeEvent.emit(s))})("scroll",function(s){return y(o),x(n.scroll.emit(s))})("scrollToEnd",function(){return y(o),x(n.scrollToEnd.emit())}),b(2,ew,1,0,null,2)(3,nw,1,0,null,3)(4,aw,1,0,null,4)(5,cw,1,0,null,5)(6,hw,1,0,null,6)(7,fw,1,0,null,7)(8,bw,1,0,null,8)(9,xw,1,0,null,9)(10,Tw,1,0,null,10)(11,Sw,1,0,null,11)(12,Dw,1,0,null,12)(13,Ow,1,0,null,13),m()}t&2&&(B("ng-select-invalid",n.errorState),Ve("ngModel",n.value),f("ngModelOptions",mo(59,QC))("placeholder",n.placeholder)("items",n.items)("addTag",n.addTag)("addTagText",n.addTagText)("appendTo",n.appendTo)("appearance",n.appearance)("bindLabel",n.bindLabel)("bindValue",n.bindValue)("closeOnSelect",n.closeOnSelect)("clearAllText",n.clearAllText)("clearable",n.clearable)("clearOnBackspace",n.clearOnBackspace)("dropdownPosition",n.dropdownPosition)("groupBy",n.groupBy)("groupValue",n.groupValue)("bufferAmount",n.bufferAmount)("hideSelected",n.hideSelected)("isOpen",n.isOpen)("inputAttrs",n.inputAttrs)("loading",n.loading)("loadingText",n.loadingText)("labelForId",n.labelForId)("markFirst",n.markFirst)("maxSelectedItems",n.maxSelectedItems)("multiple",n.multiple)("notFoundText",n.notFoundText)("readonly",n.readonly||n.disabled)("typeahead",n.typeahead)("typeToSearchText",n.typeToSearchText)("trackByFn",n.trackByFn)("searchable",n.searchable)("searchFn",n.searchFn)("searchWhileComposing",n.searchWhileComposing)("clearSearchOnAdd",n.clearSearchOnAdd)("selectableGroup",n.selectableGroup)("selectableGroupAsModel",n.selectableGroupAsModel)("selectOnTab",n.selectOnTab)("tabIndex",n.tabIndex)("openOnEnter",n.openOnEnter)("minTermLength",n.minTermLength)("editableSearchTerm",n.editableSearchTerm)("keyDownFn",n.keyDownFn)("virtualScroll",n.virtualScroll),d(2),C(n.optionTemplate?2:-1),d(),C(n.optgroupTemplate?3:-1),d(),C(n.labelTemplate?4:-1),d(),C(n.multiLabelTemplate?5:-1),d(),C(n.headerTemplate?6:-1),d(),C(n.footerTemplate?7:-1),d(),C(n.notFoundTemplate?8:-1),d(),C(n.typeToSearchTemplate?9:-1),d(),C(n.loadingTextTemplate?10:-1),d(),C(n.tagTemplate?11:-1),d(),C(n.loadingSpinnerTemplate?12:-1),d(),C(n.placeholderTemplate?13:-1))},dependencies:[jc,Zp,kc,Sc,Mc,Dc,Ac,Rc,Fc,Oc,Pc,Nc,Lc,Vc,at,dt,ut,Lt],styles:[`.ng-select{padding:var(--mat-form-field-filled-with-label-container-padding-top) 16px var(--mat-form-field-filled-with-label-container-padding-bottom);margin:calc(var(--mat-form-field-filled-with-label-container-padding-top) * -1) -16px calc(var(--mat-form-field-filled-with-label-container-padding-bottom) * -1)}.mdc-text-field--outlined .ng-select,.mdc-text-field--no-label .ng-select{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding);margin-top:calc(var(--mat-form-field-container-vertical-padding) * -1);margin-bottom:calc(var(--mat-form-field-container-vertical-padding) * -1)}.ng-select .ng-select-container{align-items:center;color:var(--mtx-select-container-text-color, var(--mat-app-on-surface))}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-input>input{padding:0;color:inherit;font:inherit}.ng-select .ng-select-container .ng-clear-wrapper{width:24px;text-align:center}.ng-select .ng-placeholder{transition:opacity .2s;opacity:1;color:var(--mtx-select-placeholder-text-color)}.mat-form-field-hide-placeholder .ng-select .ng-placeholder{opacity:0}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-clear-wrapper{color:var(--mtx-select-clear-icon-color, var(--mat-app-on-surface))}.ng-select .ng-clear-wrapper:hover .ng-clear{color:var(--mtx-select-clear-icon-hover-color, var(--mat-app-error))}.ng-select.ng-select-disabled .ng-value{color:var(--mtx-select-disabled-text-color)}.ng-select.ng-select-opened .ng-arrow-wrapper .ng-arrow{top:-2px;border-width:0 5px 5px}.ng-select.ng-select-single.ng-select-filtered .ng-placeholder{display:initial;visibility:hidden}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin:2px 4px 2px 0;border-radius:16px;font-size:.875em;line-height:18px;background-color:var(--mtx-select-multiple-value-background-color);border:1px solid var(--mtx-select-multiple-value-outline-color, var(--mat-app-outline))}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:auto;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{opacity:.4}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;margin:0 8px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;width:18px;height:18px;border-radius:100%;text-align:center}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{margin-right:-4px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{margin-left:-4px;margin-right:auto}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{margin-left:-4px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{margin-right:-4px;margin-left:auto}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:var(--mtx-select-multiple-value-icon-hover-background-color, var(--mat-app-outline-variant))}.ng-select .ng-arrow-wrapper{width:10px}.ng-select .ng-arrow{border-width:5px 5px 2px;border-style:solid;border-color:var(--mtx-select-enabled-arrow-color, var(--mat-app-on-surface)) transparent transparent}.ng-select.ng-select-disabled .ng-arrow{border-color:var(--mtx-select-disabled-arrow-color) transparent transparent}.ng-select.ng-select-invalid .ng-arrow{border-color:var(--mtx-select-invalid-arrow-color, var(--mat-app-error)) transparent transparent}.ng-select.ng-select-opened .ng-arrow{border-color:transparent transparent var(--mtx-select-enabled-arrow-color, var(--mat-app-on-surface))}.ng-select.ng-select-opened.ng-select-invalid .ng-arrow{border-color:transparent transparent var(--mtx-select-invalid-arrow-color, var(--mat-app-error))}.ng-dropdown-panel{background-color:var(--mtx-select-panel-background-color, var(--mat-app-surface-container))}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-left-radius:var(--mtx-select-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mtx-select-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow)}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-left-radius:var(--mtx-select-container-shape, var(--mat-app-corner-extra-small));border-top-right-radius:var(--mtx-select-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mtx-select-container-elevation-shadow)}.ng-dropdown-panel .ng-dropdown-header,.ng-dropdown-panel .ng-dropdown-footer{padding:14px 16px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid var(--mtx-select-panel-divider-color, var(--mat-app-outline))}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid var(--mtx-select-panel-divider-color, var(--mat-app-outline))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{padding:14px 16px;font-weight:500;-webkit-user-select:none;user-select:none;cursor:pointer;color:var(--mtx-select-optgroup-label-text-color, var(--mat-app-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-app-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-app-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{position:relative;padding:14px 16px;text-overflow:ellipsis;text-decoration:none;text-align:left;white-space:nowrap;overflow:hidden;color:var(--mtx-select-option-label-text-color, var(--mat-app-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:var(--mtx-select-option-hover-state-background-color)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:var(--mtx-select-option-selected-state-background-color, var(--mat-app-secondary-container));color:var(--mtx-select-option-selected-state-text-color, var(--mat-app-on-surface))}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:var(--mtx-select-option-disabled-state-text-color)}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option{text-align:right}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:32px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:32px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-right:6px;font-size:80%}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{margin-left:6px;margin-right:0} -`],encapsulation:2,changeDetection:0})}}return i})(),ef=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Oe,at,Hr,jc,La]})}}return i})();function Ww(i,r){if(i&1&&(h(0,"span"),te(1),m()),i&2){let e=u();d(),ce(e.title)}}function qw(i,r){if(i&1&&(h(0,"span",1),te(1),m()),i&2){let e=u();B("gui-field-label-with-description",e.config.description),f("matTooltip",e.config.description),d(),ce(e.title)}}function Yw(i,r){if(i&1&&w(0,"img",0),i&2){let e=u();f("src",e.src,Vi)}}function Qw(i,r){if(i&1&&w(0,"i"),i&2){let e=u();Qe(e.src)}}function Xw(i,r){if(i&1&&w(0,"gui-icon",3),i&2){let e=u().$implicit;f("src",e.src)}}function Zw(i,r){if(i&1&&te(0),i&2){let e=u().$implicit;xi(" ",e.label," ")}}function Kw(i,r){if(i&1&&(h(0,"mat-button-toggle",2),b(1,Xw,1,1,"gui-icon",3)(2,Zw,1,1),m()),i&2){let e=r.$implicit,t=u();B("gui-icon-toggle",t.config.useIcon),f("flex",e.col)("value",e.value)("disabled",e.disabled)("title",t.config.useIcon?e.label:""),d(),C(t.config.useIcon?1:2)}}function Jw(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",4),m()),i&2){let e=u();d(),f("config",e.config)}}var Hc=["*"];function e1(i,r){if(i&1&&w(0,"gui-field-label",0),i&2){let e=u();f("config",e.config)("index",e.config.index)}}var t1=["fileInput"];function i1(i,r){if(i&1){let e=X();h(0,"gui-icon-button-wrapper",4)(1,"button",8),I("click",function(){y(e);let n=u();return x(n.onClear())}),w(2,"mat-icon",9),m()()}if(i&2){let e=u();d(),f("disabled",e.disabled)}}function n1(i,r){if(i&1&&w(0,"img",10),i&2){let e=u(2);f("src",e.url,Vi)}}function r1(i,r){if(i&1&&w(0,"video",10),i&2){let e=u(2);f("src",e.url,Vi)}}function o1(i,r){if(i&1&&w(0,"audio",11),i&2){let e=u(2);f("src",e.url,Vi)}}function a1(i,r){i&1&&w(0,"mat-icon",12)}function s1(i,r){if(i&1&&b(0,n1,1,1,"img",10)(1,r1,1,1,"video",10)(2,o1,1,1,"audio",11)(3,a1,1,0,"mat-icon",12),i&2){let e,t=u();C((e=t.type)==="image"?0:e==="video"?1:e==="audio"?2:3)}}function l1(i,r){i&1&&(h(0,"div",6),w(1,"mat-icon",13),m())}function c1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",14),m()),i&2){let e=u();d(),f("config",e.config)}}function d1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",7),m()),i&2){let e=u();d(),f("config",e.config)}}var u1=()=>[];function h1(i,r){if(i&1&&(h(0,"span",0),te(1),m()),i&2){let e=u();d(),ce(e.config.prefix)}}function m1(i,r){if(i&1&&(w(0,"img",5),h(1,"span"),te(2),m()),i&2){let e=r.item;f("src",e.src,Vi)("alt",e.label),d(2),ce(e.label)}}function p1(i,r){if(i&1&&(w(0,"img",5),h(1,"span"),te(2),m()),i&2){let e=r.item;f("src",e.src,Vi)("alt",e.label),d(2),ce(e.label)}}function f1(i,r){if(i&1&&(h(0,"span",4),te(1),m()),i&2){let e=u();d(),ce(e.config.suffix)}}function g1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",6),m()),i&2){let e=u();d(),f("config",e.config)}}function _1(i,r){if(i&1&&w(0,"gui-field-label",0),i&2){let e=u();f("config",e.config)}}function b1(i,r){if(i&1&&(h(0,"span",0),te(1),m()),i&2){let e=u();d(),ce(e.config.prefix)}}function v1(i,r){if(i&1&&(h(0,"span",2),te(1),m()),i&2){let e=u();d(),ce(e.config.suffix)}}function y1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",3),m()),i&2){let e=u();d(),f("config",e.config)}}function x1(i,r){if(i&1&&(h(0,"span",0),te(1),m()),i&2){let e=u();d(),ce(e.config.prefix)}}function C1(i,r){if(i&1&&(h(0,"span",2),te(1),m()),i&2){let e=u();d(),ce(e.config.suffix)}}function w1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",3),m()),i&2){let e=u();d(),f("config",e.config)}}function T1(i,r){if(i&1&&(h(0,"span",0),te(1),m()),i&2){let e=u();d(),ce(e.config.prefix)}}function E1(i,r){if(i&1&&(h(0,"mat-option",2)(1,"span"),te(2),m()()),i&2){let e=r.$implicit,t=u();f("value",e.value)("disabled",e.disabled),d(),Ae("font-family",t.config.useFont?e.value:""),d(),ce(e.label)}}function I1(i,r){if(i&1&&(h(0,"span",3),te(1),m()),i&2){let e=u();d(),ce(e.config.suffix)}}function S1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",4),m()),i&2){let e=u();d(),f("config",e.config)}}function k1(i,r){if(i&1&&(h(0,"span",2),te(1),m()),i&2){let e=u(2);d(),ce(e.config.prefix)}}function M1(i,r){if(i&1&&(h(0,"span",4),te(1),m()),i&2){let e=u(2);d(),ce(e.config.suffix)}}function D1(i,r){if(i&1){let e=X();h(0,"mat-slider",0)(1,"input",1),Be("ngModelChange",function(n){y(e);let o=u();return je(o.value,n)||(o.value=n),x(n)}),I("valueChange",function(){y(e);let n=u();return x(n.onValueChange())}),m()(),h(2,"mat-form-field"),b(3,k1,2,1,"span",2),h(4,"input",3),Be("ngModelChange",function(n){y(e);let o=u();return je(o.value,n)||(o.value=n),x(n)}),I("change",function(){y(e);let n=u();return x(n.onValueChange())}),m(),b(5,M1,2,1,"span",4),m()}if(i&2){let e=u();f("disabled",e.disabled)("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),Ve("ngModel",e.value),d(2),C(e.config.prefix?3:-1),d(),Ve("ngModel",e.value),f("disabled",e.disabled)("placeholder",e.config.placeholder||"")("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),C(e.config.suffix?5:-1)}}function A1(i,r){if(i&1&&(h(0,"span",2),te(1),m()),i&2){let e=u(2);d(),ce(e.config.prefix)}}function R1(i,r){if(i&1&&(h(0,"span",4),te(1),m()),i&2){let e=u(2);d(),ce(e.config.suffix)}}function O1(i,r){if(i&1&&(h(0,"span",2),te(1),m()),i&2){let e=u(2);d(),ce(e.config.prefix)}}function F1(i,r){if(i&1&&(h(0,"span",4),te(1),m()),i&2){let e=u(2);d(),ce(e.config.suffix)}}function P1(i,r){if(i&1){let e=X();h(0,"mat-slider",0)(1,"input",5),Be("ngModelChange",function(n){y(e);let o=u();return je(o.minValue,n)||(o.minValue=n),x(n)}),I("valueChange",function(){y(e);let n=u();return x(n.onRangeInputChange())}),m(),h(2,"input",6),Be("ngModelChange",function(n){y(e);let o=u();return je(o.maxValue,n)||(o.maxValue=n),x(n)}),I("valueChange",function(){y(e);let n=u();return x(n.onRangeInputChange())}),m()(),h(3,"mat-form-field"),b(4,A1,2,1,"span",2),h(5,"input",3),Be("ngModelChange",function(n){y(e);let o=u();return je(o.minValue,n)||(o.minValue=n),x(n)}),I("change",function(){y(e);let n=u();return x(n.onRangeInputChange())}),m(),b(6,R1,2,1,"span",4),m(),h(7,"mat-form-field"),b(8,O1,2,1,"span",2),h(9,"input",3),Be("ngModelChange",function(n){y(e);let o=u();return je(o.maxValue,n)||(o.maxValue=n),x(n)}),I("change",function(){y(e);let n=u();return x(n.onRangeInputChange())}),m(),b(10,F1,2,1,"span",4),m()}if(i&2){let e=u();f("disabled",e.disabled)("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),Ve("ngModel",e.minValue),d(),Ve("ngModel",e.maxValue),d(2),C(e.config.prefix?4:-1),d(),Ve("ngModel",e.minValue),f("disabled",e.disabled)("placeholder",e.config.placeholder||"")("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),C(e.config.suffix?6:-1),d(2),C(e.config.prefix?8:-1),d(),Ve("ngModel",e.maxValue),f("disabled",e.disabled)("placeholder",e.config.placeholder||"")("step",e.config.step)("min",e.config.min)("max",e.config.max),d(),C(e.config.suffix?10:-1)}}function N1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",7),m()),i&2){let e=u();d(),f("config",e.config)}}function L1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",1),m()),i&2){let e=u();d(),f("config",e.config)}}function V1(i,r){if(i&1&&(h(0,"span",0),te(1),m()),i&2){let e=u();d(),ce(e.config.prefix)}}function j1(i,r){if(i&1&&(h(0,"span",2),te(1),m()),i&2){let e=u();d(),ce(e.config.suffix)}}function B1(i,r){if(i&1&&(h(0,"mat-hint"),w(1,"gui-field-label",3),m()),i&2){let e=u();d(),f("config",e.config)}}var Gc=(i,r)=>({$implicit:i,formGroup:r}),Wn=(i,r,e)=>({$implicit:i,parent:r,formGroup:e}),nf=i=>({i}),rf=i=>[i],$c=(i,r)=>[i,r];function z1(i,r){}function U1(i,r){if(i&1&&(h(0,"div"),b(1,z1,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(),n=_e(4);d(),f("ngTemplateOutlet",n)("ngTemplateOutletContext",Me(2,Gc,e,t.form))}}function H1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-input-text",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function G1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-input-number",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function $1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-select",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function W1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-switch",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function q1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-slider",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function Y1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-button-toggle",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function Q1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-fill",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function X1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-file-uploader",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function Z1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-file-uploader",10),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function K1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-file-uploader",11),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function J1(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-file-uploader",12),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function eT(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-image-select",13),m()),i&2){let e=u(2).$implicit,t=u();f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)("appendTo","#"+t.uid)}}function tT(i,r){if(i&1&&(h(0,"gui-field-group",3),w(1,"gui-textarea",9),m()),i&2){let e=u(2).$implicit;f("config",e)("flex",e.col),d(),f("formControlName",e.key)("config",e)}}function iT(i,r){if(i&1&&w(0,"input",4),i&2){let e=u(2).$implicit;f("formControlName",e.key)}}function nT(i,r){}function rT(i,r){if(i&1&&b(0,nT,0,0,"ng-template",2),i&2){let e=r.$implicit,t=u(3),n=t.$implicit,o=t.formGroup;u();let a=_e(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",Pt(2,Wn,e,n,o.get(n.key)))}}function oT(i,r){if(i&1&&(h(0,"gui-inline-group",5),Ne(1,rT,1,6,null,2,nt),m()),i&2){let e=u(2).$implicit;f("config",e)("formGroupName",e.key),d(),Le(e.children)}}function aT(i,r){}function sT(i,r){if(i&1&&(h(0,"div"),b(1,aT,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(4),n=t.$implicit,o=t.formGroup;u();let a=_e(4);d(),f("ngTemplateOutlet",a)("ngTemplateOutletContext",Pt(2,Wn,e,n,o.get(n.key)))}}function lT(i,r){if(i&1&&Ne(0,sT,2,6,"div",null,nt),i&2){let e=u(3).$implicit;Le(e.children)}}function cT(i,r){if(i&1){let e=X();h(0,"mat-expansion-panel",14),Be("expandedChange",function(n){y(e);let o=u(2).$implicit;return je(o.expanded,n)||(o.expanded=n),x(n)}),h(1,"mat-expansion-panel-header"),w(2,"gui-field-label",15),m(),b(3,lT,2,0,"ng-template",16),m()}if(i&2){let e=u(2).$implicit;f("formGroupName",e.key),Ve("expanded",e.expanded),f("disabled",e.disabled),d(2),f("config",e)}}function dT(i,r){if(i&1){let e=X();h(0,"button",21),I("click",function(n){y(e);let o=u(4),a=o.$implicit,s=o.formGroup,l=u();return x(l.addTab(n,s.get(a.key),a,!0))}),w(1,"mat-icon",22),m(),h(2,"button",21),I("click",function(n){y(e);let o=u(4),a=o.$implicit,s=o.formGroup,l=u();return x(l.addTab(n,s.get(a.key),a))}),w(3,"mat-icon",23),m(),h(4,"button",21),I("click",function(n){y(e);let o=u(4),a=o.$implicit,s=o.formGroup,l=u();return x(l.removeTab(n,s.get(a.key),a))}),w(5,"mat-icon",24),m()}if(i&2){let e=u(4).$implicit;f("disabled",e.disabled),d(2),f("disabled",e.disabled),d(2),f("disabled",e.disabled)}}function uT(i,r){if(i&1){let e=X();h(0,"gui-icon-button-wrapper")(1,"button",18),I("click",function(n){y(e);let o=u(3).$implicit,a=u();return x(a.changeTabsMode(n,o,"normal"))}),w(2,"mat-icon",19),m(),h(3,"button",18),I("click",function(n){y(e);let o=u(3).$implicit,a=u();return x(a.changeTabsMode(n,o,"list"))}),w(4,"mat-icon",20),m(),b(5,dT,6,3),m()}if(i&2){let e=u(3).$implicit;d(),f("color",e.mode!=="list"?"primary":""),d(2),f("color",e.mode==="list"?"primary":""),d(2),C(e.template&&(e.addable||e.addable===void 0)?5:-1)}}function hT(i,r){if(i&1&&(h(0,"div"),te(1),es(2,"ejs"),m()),i&2){let e=u(),t=e.$implicit,n=e.$index;d(),ce(ts(2,1,t.name,Xe(4,nf,n)))}}function mT(i,r){}function pT(i,r){if(i&1&&b(0,mT,0,0,"ng-template",2),i&2){let e=u().$implicit,t=u(5),n=t.$implicit,o=t.formGroup;u();let a=_e(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",Pt(4,Wn,e,n,o.get(Xe(2,rf,n.key))))}}function fT(i,r){}function gT(i,r){if(i&1&&(h(0,"div"),b(1,fT,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(2).$index,n=u(5),o=n.$implicit,a=n.formGroup;u();let s=_e(4);d(),f("ngTemplateOutlet",s)("ngTemplateOutletContext",Pt(5,Wn,e,o,a.get(Me(2,$c,o.key,t))))}}function _T(i,r){if(i&1&&Ne(0,gT,2,9,"div",null,nt),i&2){let e=u().$implicit;Le(e.children)}}function bT(i,r){if(i&1&&(h(0,"mat-tab",28),b(1,hT,3,6,"ng-template",29)(2,pT,1,8,null,2)(3,_T,2,0),m()),i&2){let e=r.$implicit;f("disabled",e.disabled),d(2),C(!e.children||e.children.length===0||e.type==="tabs"?2:-1),d(),C((e.children==null?null:e.children.length)>0&&e.type!=="tabs"?3:-1)}}function vT(i,r){if(i&1){let e=X();h(0,"mat-tab-group",27),Be("selectedIndexChange",function(n){y(e);let o=u(4).$implicit;return je(o.selectedIndex,n)||(o.selectedIndex=n),x(n)}),Ne(1,bT,4,3,"mat-tab",28,nt),m()}if(i&2){let e=u(4).$implicit;f("mat-stretch-tabs",!1),Ve("selectedIndex",e.selectedIndex),d(),Le(e.children)}}function yT(i,r){if(i&1){let e=X();h(0,"gui-icon-button-wrapper")(1,"button",21),I("click",function(n){y(e);let o=u().$index,a=u(5),s=a.$implicit,l=a.formGroup,p=u();return x(p.addTab(n,l.get(s.key),s,!0,o))}),w(2,"mat-icon",22),m(),h(3,"button",21),I("click",function(n){y(e);let o=u().$index,a=u(5),s=a.$implicit,l=a.formGroup,p=u();return x(p.addTab(n,l.get(s.key),s,!1,o))}),w(4,"mat-icon",23),m(),h(5,"button",21),I("click",function(n){y(e);let o=u().$index,a=u(5),s=a.$implicit,l=a.formGroup,p=u();return x(p.removeTab(n,l.get(s.key),s,o))}),w(6,"mat-icon",24),m()()}if(i&2){let e=u(6).$implicit;d(),f("disabled",e.disabled),d(2),f("disabled",e.disabled),d(2),f("disabled",e.disabled)}}function xT(i,r){}function CT(i,r){if(i&1&&b(0,xT,0,0,"ng-template",2),i&2){let e=u().$implicit,t=u(5),n=t.$implicit,o=t.formGroup;u();let a=_e(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",Pt(4,Wn,e,n,o.get(Xe(2,rf,n.key))))}}function wT(i,r){}function TT(i,r){if(i&1&&(h(0,"div"),b(1,wT,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(2).$index,n=u(5),o=n.$implicit,a=n.formGroup;u();let s=_e(4);d(),f("ngTemplateOutlet",s)("ngTemplateOutletContext",Pt(5,Wn,e,o,a.get(Me(2,$c,o.key,t))))}}function ET(i,r){if(i&1&&Ne(0,TT,2,9,"div",null,nt),i&2){let e=u().$implicit;Le(e.children)}}function IT(i,r){if(i&1){let e=X();h(0,"div",31)(1,"div",32)(2,"span",33),I("click",function(){let n=y(e).$index,o=u(5).$implicit;return x(o.selectedIndex=n)}),te(3),es(4,"ejs"),m(),b(5,yT,7,3,"gui-icon-button-wrapper"),m(),h(6,"div",34),b(7,CT,1,8,null,2)(8,ET,2,0),m()()}if(i&2){let e=r.$implicit,t=r.$index,n=u(5).$implicit;B("gui-list-item-active",n.selectedIndex===t),d(3),ce(ts(4,6,e.name,Xe(9,nf,t))),d(2),C(n.template&&(n.addable||n.addable===void 0)?5:-1),d(2),C(!e.children||e.children.length===0||e.type==="tabs"?7:-1),d(),C((e.children==null?null:e.children.length)>0&&e.type!=="tabs"?8:-1)}}function ST(i,r){if(i&1&&(h(0,"div",26),Ne(1,IT,9,11,"div",30,nt),m()),i&2){let e=u(4).$implicit;d(),Le(e.children)}}function kT(i,r){if(i&1&&b(0,vT,3,2,"mat-tab-group",25)(1,ST,3,0,"div",26),i&2){let e=u(3).$implicit;C(e.mode!=="list"?0:1)}}function MT(i,r){if(i&1){let e=X();h(0,"mat-expansion-panel",17),Be("expandedChange",function(n){y(e);let o=u(2).$implicit;return je(o.expanded,n)||(o.expanded=n),x(n)}),h(1,"mat-expansion-panel-header"),w(2,"gui-field-label",15),b(3,uT,6,3,"gui-icon-button-wrapper"),m(),b(4,kT,2,1,"ng-template",16),m()}if(i&2){let e=u(2).$implicit;f("formArrayName",e.key),Ve("expanded",e.expanded),f("disabled",e.disabled),d(2),f("config",e),d(),C(e.expanded?3:-1)}}function DT(i,r){}function AT(i,r){if(i&1&&(h(0,"div",37),b(1,DT,0,0,"ng-template",2),m()),i&2){let e=r.$implicit,t=u(3).$implicit,n=u(3),o=n.$implicit,a=n.formGroup;u();let s=_e(4);f("formGroupName",t.key),d(),f("ngTemplateOutlet",s)("ngTemplateOutletContext",Me(6,Gc,e,a.get(Me(3,$c,o.key,t.key))))}}function RT(i,r){if(i&1&&Ne(0,AT,2,9,"div",37,nt),i&2){let e=u(2).$implicit;Le(e.children)}}function OT(i,r){}function FT(i,r){if(i&1&&b(0,OT,0,0,"ng-template",2),i&2){let e=u(2).$implicit,t=u(3),n=t.$implicit,o=t.formGroup;u();let a=_e(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",Me(2,Gc,e,o.get(n.key)))}}function PT(i,r){if(i&1&&b(0,RT,2,0)(1,FT,1,5,null,2),i&2){let e=u().$implicit;C(e.type==="menuItem"?0:-1),d(),C(e.type==="menu"?1:-1)}}function NT(i,r){if(i&1&&(h(0,"mat-tab",35),b(1,PT,2,2,"ng-template",36),m()),i&2){let e=r.$implicit;f("label",e.name)("disabled",e.disabled)}}function LT(i,r){if(i&1&&(h(0,"mat-tab-group",8),Ne(1,NT,2,2,"mat-tab",35,nt),m()),i&2){let e=u(2).$implicit;f("formGroupName",e.key),d(),Le(e.children)}}function VT(i,r){if(i&1&&(ar(0,1),b(1,H1,2,4,"gui-field-group",3)(2,G1,2,4,"gui-field-group",3)(3,$1,2,4,"gui-field-group",3)(4,W1,2,4,"gui-field-group",3)(5,q1,2,4,"gui-field-group",3)(6,Y1,2,4,"gui-field-group",3)(7,Q1,2,4,"gui-field-group",3)(8,X1,2,4,"gui-field-group",3)(9,Z1,2,4,"gui-field-group",3)(10,K1,2,4,"gui-field-group",3)(11,J1,2,4,"gui-field-group",3)(12,eT,2,5,"gui-field-group",3)(13,tT,2,4,"gui-field-group",3)(14,iT,1,1,"input",4)(15,oT,3,2,"gui-inline-group",5)(16,cT,4,4,"mat-expansion-panel",6)(17,MT,5,5,"mat-expansion-panel",7)(18,LT,3,1,"mat-tab-group",8),sr()),i&2){let e,t=u(),n=t.$implicit,o=t.formGroup;f("formGroup",o),d(),C((e=n.type)==="text"?1:e==="number"?2:e==="select"?3:e==="switch"?4:e==="slider"?5:e==="buttonToggle"?6:e==="fill"?7:e==="file"?8:e==="image"?9:e==="video"?10:e==="audio"?11:e==="imageSelect"?12:e==="textarea"?13:e==="hidden"?14:e==="inline"?15:e==="group"?16:e==="tabs"?17:e==="menu"?18:-1)}}function jT(i,r){if(i&1&&b(0,VT,19,2,"ng-container",1),i&2){let e=r.$implicit;C(e.show?0:-1)}}function of(i,r){let e=new Function("obj",'var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push("'+i.replace(/[\r\t\n]/g," ").split("<%").join(" ").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,'",$1,"').split(" ").join('");').split("%>").join('p.push("').split("\r").join('"')+'");}return p.join("");');return r?e(r):e}var BT=(()=>{class i{transform(e,t={}){return of(e,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275pipe=ld({name:"ejs",type:i,pure:!0,standalone:!0})}}return i})(),af=(()=>{class i{constructor(e){this.el=e,this.flex=100}ngOnInit(){this.el.nativeElement.style.flex=`1 1 ${this.flex}%`,this.el.nativeElement.style.maxWidth=`${this.flex}%`}static{this.\u0275fac=function(t){return new(t||i)(c(F))}}static{this.\u0275dir=S({type:i,selectors:[["","flex",""]],inputs:{flex:"flex"},standalone:!0})}}return i})();function tf(i,r,e){switch(e){case"$eq":return i===r;case"$ne":return i!==r;case"$gt":return(i??0)>(r??0);case"$lt":return(i??0)<(r??0);case"$gte":return(i??0)>=(r??0);case"$lte":return(i??0)<=(r??0);case"$in":return Array.isArray(r)&&r.includes(i);case"$nin":return Array.isArray(r)&&!r.includes(i);default:return!1}}function Va(i,r){return r.split(".").reduce((e,t)=>e?.children?.[t]?e.children[t]:e?.[t],i)}var Et=(()=>{class i{constructor(){this.config={},this.title="",this.styless=!1}ngOnChanges(){let{index:e,name:t,parentType:n,type:o}=this.config;this.title=e!=null&&!isNaN(e)?of(t||"",{i:e}):t,this.styless=n==="inline"&&o!=="inline"||o==="group"||o==="tabs"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=L({type:i,selectors:[["gui-field-label"]],hostVars:3,hostBindings:function(t,n){t&2&&(Mt("title",n.title),B("gui-field-label",!n.styless))},inputs:{config:"config",index:"index"},standalone:!0,features:[se,H],decls:2,vars:1,consts:[["matTooltipPosition","above","matTooltipClass","gui-field-label-tooltip",3,"gui-field-label-with-description","matTooltip"],["matTooltipPosition","above","matTooltipClass","gui-field-label-tooltip",3,"matTooltip"]],template:function(t,n){t&1&&b(0,Ww,2,1,"span")(1,qw,2,4,"span",0),t&2&&C(n.config.description?1:0)},dependencies:[yp],styles:[`.gui-field-label{display:inline-block;width:4rem;height:1.5rem;padding:0 .25rem;line-height:1.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gui-field-label-with-description{text-decoration:underline dotted;cursor:help} -`],encapsulation:2,changeDetection:0})}}return i})(),zT=(()=>{class i{constructor(){this.src=""}isUrl(){return/^(https?:\/\/|\.?\/)\w+/.test(this.src)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=L({type:i,selectors:[["gui-icon"]],hostAttrs:[1,"gui-icon"],inputs:{src:"src"},standalone:!0,features:[H],decls:2,vars:1,consts:[[3,"src"],[3,"class"]],template:function(t,n){t&1&&b(0,Yw,1,1,"img",0)(1,Qw,1,2,"i",1),t&2&&C(n.isUrl()?0:1)},styles:[`.gui-icon{display:inline-flex}.gui-icon img,.gui-icon i{display:block;width:var(--mat-standard-button-toggle-height);height:var(--mat-standard-button-toggle-height);line-height:var(--mat-standard-button-toggle-height)} -`],encapsulation:2,changeDetection:0})}}return i})(),sf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-button-toggle"]],hostAttrs:[1,"gui-field","gui-button-toggle"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:4,vars:4,consts:[["hideSingleSelectionIndicator","","hideMultipleSelectionIndicator","",3,"ngModelChange","change","ngModel","disabled","multiple"],["disableRipple","",3,"gui-icon-toggle","flex","value","disabled","title"],["disableRipple","",3,"flex","value","disabled","title"],[3,"src"],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-button-toggle-group",0),Be("ngModelChange",function(a){return je(n.value,a)||(n.value=a),a}),I("change",function(){return n.onValueChange()}),Ne(1,Kw,3,7,"mat-button-toggle",1,nt),m(),b(3,Jw,2,1,"mat-hint")),t&2&&(Ve("ngModel",n.value),f("disabled",n.disabled)("multiple",n.config.multiple),d(),Le(n.config.options),d(2),C(n.config.parentType==="inline"?3:-1))},dependencies:[at,dt,ut,ec,Da,Tt,af,zT,Et],styles:[`.gui-button-toggle{--mat-standard-button-toggle-shape: .25rem;--mat-standard-button-toggle-height: 1.5rem;--mat-standard-button-toggle-label-text-size: .75rem;--mat-standard-button-toggle-label-text-weight: 400;--mat-standard-button-toggle-label-text-line-height: var(--mat-standard-button-toggle-height)}.gui-button-toggle .mat-button-toggle-group{flex-wrap:wrap;border-width:0}.gui-button-toggle .mat-button-toggle-appearance-standard{border-width:0!important;background-color:var(--mdc-filled-text-field-container-color)}.gui-icon-toggle.mat-button-toggle .mat-button-toggle-label-content{padding:0;line-height:normal}.gui-icon-toggle.mat-button-toggle-checked img{opacity:.64} -`],encapsulation:2,changeDetection:0})}}return i})(),UT=(()=>{class i{constructor(e,t){this.differs=e,this.cdr=t,this.config={}}ngOnInit(){this.configDiffer=this.differs.find(this.config).create()}ngDoCheck(){this.configDiffer?.diff(this.config)?.forEachChangedItem(t=>{this.cdr.markForCheck()})}static{this.\u0275fac=function(t){return new(t||i)(c(Fd),c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-field-group"]],hostAttrs:[1,"gui-field-group"],inputs:{config:"config"},standalone:!0,features:[H],ngContentSelectors:Hc,decls:2,vars:1,consts:[[3,"config","index"]],template:function(t,n){t&1&&(he(),b(0,e1,1,2,"gui-field-label",0),Z(1)),t&2&&C(n.config.parentType!=="inline"&&n.config.name?0:-1)},dependencies:[Et],styles:[`.gui-field-group{display:flex;padding:.25rem .5rem}.gui-field{--mat-form-field-container-text-size: .75rem;display:inline-flex;flex:1;flex-wrap:wrap}.gui-field>.mat-mdc-form-field{flex:1;width:0;max-width:100%}.gui-field .mat-mdc-text-field-wrapper,.gui-field .mat-mdc-form-field-hint-wrapper{position:relative;padding:0 .5rem;border-radius:var(--mdc-filled-text-field-container-shape)}[dir=rtl] .gui-field .mat-mdc-text-field-wrapper,[dir=rtl] .gui-field .mat-mdc-form-field-hint-wrapper{padding:0 .5rem}.gui-field .mat-mdc-form-field-infix{min-height:auto;padding:0!important}.gui-field .mat-mdc-form-field-hint-spacer,.gui-field .mat-mdc-form-field-bottom-align:before,.gui-field .mdc-line-ripple{display:none} -`],encapsulation:2,changeDetection:0})}}return i})(),Wc=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=L({type:i,selectors:[["gui-icon-button-wrapper"]],hostAttrs:[1,"gui-icon-button-wrapper"],standalone:!0,features:[H],ngContentSelectors:Hc,decls:1,vars:0,template:function(t,n){t&1&&(he(),Z(0))},styles:[`.gui-icon-button-wrapper .mat-mdc-icon-button{--mdc-icon-button-state-layer-size: 1.5rem;--mdc-icon-button-icon-size: .875rem;padding:0}.gui-icon-button-wrapper .mat-mdc-icon-button .mat-mdc-button-touch-target{width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size)}.gui-icon-button-wrapper .mat-icon{display:inline-flex;justify-content:center;align-items:center;width:1.5rem;height:1.5rem}.gui-icon-button-wrapper .mat-icon svg{width:.875rem;height:.875rem} -`],encapsulation:2,changeDetection:0})}}return i})(),HT=(()=>{class i{constructor(e){this.http=e,this.url="",this.params={}}upload(e){return this.http.post(this.url,e,{reportProgress:!0,observe:"events",params:this.params})}static{this.\u0275fac=function(t){return new(t||i)(E(_o))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),GT={horizontal:` - - - - `,vertical:` - - - - `,add:` - - - - `,delete:` - - - - `,copy:` - - - - `,link:` - - - - `,clear:` - - - - `,file:` - - - - `,upload:` - - - - `},$T=new O("gui-icons-config"),lf=(()=>{class i{constructor(e,t,n){this._iconRegistry=e,this._sanitizer=t,this._defaultIcons=n}add(...e){let t=Object.assign(GT,this._defaultIcons);e.forEach(n=>{this._iconRegistry.addSvgIconLiteral(n,this._sanitizer.bypassSecurityTrustHtml(t[n]))})}static{this.\u0275fac=function(t){return new(t||i)(E(Ll),E(fr),E($T,8))}}static{this.\u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),cf=(()=>{class i{constructor(e,t,n){this.fileUploaderCfg=e,this.cdr=t,this.config={},this.disabled=!1,this.type="*",this.name="",this.accept="",this.fileChange=new T,this.url="",this.onChange=()=>{},this.onTouched=()=>{},n.add("link","clear","file","upload")}ngOnChanges(e){e.type&&(this.accept=this.type+"/*")}writeValue(e){this.url=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}upload(e){let t=new FormData;t.append("file",e.data||""),e.inProgress=!0,this.fileUploaderCfg.upload(t).pipe(Wt(n=>(e.inProgress=!1,U(`${e.data?.name||"File"} upload failed.`))),ri(()=>{})).subscribe(n=>{n instanceof ur&&n.body&&(this.url=n.body.data,this.onChange(this.url),this.onTouched(),this.fileChange.emit(this.url)),this.cdr.detectChanges()})}onUrlChange(e){this.url=e.target.value,this.onChange(this.url),this.fileChange.emit(this.url)}onFileChange(e){this.file={data:e.target.files[0],inProgress:!1,progress:0},this.upload(this.file),e.target.value=""}onBlur(){this.onTouched()}onClear(){this.url="",this.onChange(this.url),this.onTouched(),this.fileChange.emit(this.url)}static{this.\u0275fac=function(t){return new(t||i)(c(HT),c(Q),c(lf))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-file-uploader"]],viewQuery:function(t,n){if(t&1&&q(t1,5),t&2){let o;k(o=M())&&(n.fileInput=o.first)}},hostAttrs:[1,"gui-field","gui-file-uploader"],inputs:{config:"config",disabled:"disabled",type:"type",name:"name",accept:"accept"},outputs:{fileChange:"fileChange"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),se,H],decls:11,vars:9,consts:[["fileInput",""],["matPrefix",""],["svgIcon","link"],["matInput","","type","text",3,"change","blur","ngModel","disabled","placeholder"],["matSuffix",""],[1,"gui-file-content"],[1,"gui-file-placeholder"],["type","file",3,"change","accept","name","disabled"],["mat-icon-button","","color","warn",3,"click","disabled"],["svgIcon","clear"],[3,"src"],["controls","",3,"src"],["svgIcon","file"],["svgIcon","upload"],[3,"config"]],template:function(t,n){if(t&1){let o=X();h(0,"mat-form-field")(1,"gui-icon-button-wrapper",1),w(2,"mat-icon",2),m(),h(3,"input",3),I("change",function(s){return y(o),x(n.onUrlChange(s))})("blur",function(){return y(o),x(n.onBlur())}),m(),b(4,i1,3,1,"gui-icon-button-wrapper",4),m(),h(5,"figure",5),b(6,s1,4,1)(7,l1,2,0,"div",6),h(8,"input",7,0),I("change",function(s){return y(o),x(n.onFileChange(s))}),m()(),b(10,c1,2,1,"mat-hint")}t&2&&(d(3),f("ngModel",n.url)("disabled",n.disabled)("placeholder",n.config.placeholder||""),d(),C(n.url?4:-1),d(2),C(n.url?6:7),d(2),f("accept",n.accept)("name",n.name)("disabled",n.disabled),d(2),C(n.config.parentType==="inline"?10:-1))},dependencies:[at,Kt,dt,ut,Ut,Vl,hi,tn,Zr,mi,Tt,Et,Wc],styles:[`.gui-file-uploader{display:block;overflow:auto}.gui-file-uploader .mat-mdc-form-field{width:100%}.gui-file-uploader .gui-file-content{position:relative;display:flex;align-items:center;justify-content:center;height:7.5rem;margin:.25rem 0 0;padding:.25rem;background-color:var(--mdc-filled-text-field-container-color);border:1px solid transparent;border-radius:.25rem}.gui-file-uploader .gui-file-content:hover,.gui-file-uploader .gui-file-content:focus-within{border-color:currentColor}.gui-file-uploader .gui-file-content img,.gui-file-uploader .gui-file-content video{width:100%;height:100%;object-fit:contain}.gui-file-uploader .gui-file-content input[type=file]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.gui-file-uploader .gui-file-content .mat-icon svg{width:1.5rem;height:1.5rem} -`],encapsulation:2,changeDetection:0})}}return i})(),df=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-fill"]],hostAttrs:[1,"gui-field","gui-fill"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:10,vars:8,consts:[["cp",""],["matPrefix",""],[1,"gui-color-block-empty"],[1,"gui-color-block"],["matInput","",3,"ngModelChange","colorChange","ngModel","disabled","placeholder","mtxColorpicker"],["matSuffix",""],[3,"for"],[3,"config"]],template:function(t,n){if(t&1){let o=X();h(0,"mat-form-field"),ar(1,1),w(2,"span",2)(3,"span",3),sr(),h(4,"input",4),Be("ngModelChange",function(s){return y(o),je(n.value,s)||(n.value=s),x(s)}),I("colorChange",function(){return y(o),x(n.onValueChange())}),m(),w(5,"mtx-colorpicker",null,0),h(7,"gui-icon-button-wrapper",5),w(8,"mtx-colorpicker-toggle",6),m(),b(9,d1,2,1,"mat-hint"),m()}if(t&2){let o=_e(6);d(3),Ae("background",n.value),d(),Ve("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||"")("mtxColorpicker",o),d(4),f("for",o),d(),C(n.config.parentType==="inline"?9:-1)}},dependencies:[at,Kt,dt,ut,Ut,hi,tn,mi,Tt,Fa,zp,Tc,Et,Wc],styles:[`.gui-color-block,.gui-color-block-empty{position:relative;display:inline-block;width:1.5rem;height:1.5rem}.gui-color-block-empty{position:absolute;background-color:#fff;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-position:0 0,0 .25rem,.25rem -.25rem,-.25rem 0;background-size:.5rem .5rem}.gui-color-block:after{display:inline-block;width:100%;height:100%;border:1px solid currentColor;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-bottom-left-radius:var(--mdc-filled-text-field-container-shape);opacity:.12;content:""}[dir=rtl] .gui-color-block:after{border-radius:0;border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:var(--mdc-filled-text-field-container-shape)}.gui-fill .mat-mdc-icon-button{display:inline-flex;justify-content:center;align-items:center} -`],encapsulation:2,changeDetection:0})}}return i})(),uf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.appendTo="body",this.onChange=()=>{},this.onTouched=()=>{}}ngAfterViewInit(){let{ngSelect:e}=this.mtxSelect;e.classes=(e.classes||"")+" gui-image-select"}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-image-select"]],viewQuery:function(t,n){if(t&1&&q(La,5),t&2){let o;k(o=M())&&(n.mtxSelect=o.first)}},hostAttrs:[1,"gui-field","gui-image-select"],inputs:{config:"config",disabled:"disabled",appendTo:"appendTo"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:7,vars:9,consts:[["matPrefix",""],["bindValue","value",3,"ngModelChange","change","items","appendTo","ngModel","disabled","placeholder"],["ng-label-tmp",""],["ng-option-tmp",""],["matSuffix",""],[3,"src","alt"],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,h1,2,1,"span",0),h(2,"mtx-select",1),Be("ngModelChange",function(a){return je(n.value,a)||(n.value=a),a}),I("change",function(){return n.onValueChange()}),b(3,m1,3,3,"ng-template",2)(4,p1,3,3,"ng-template",3),m(),b(5,f1,2,1,"span",4)(6,g1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),f("items",n.config.options||mo(8,u1))("appendTo",n.appendTo),Ve("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||""),d(3),C(n.config.suffix?5:-1),d(),C(n.config.parentType==="inline"?6:-1))},dependencies:[at,dt,ut,Ut,hi,mi,Tt,La,Uc,zc,Et],styles:[`.gui-image-select.ng-dropdown-panel .ng-dropdown-panel-items .ng-option img,.gui-image-select .ng-select .ng-value img{height:100%;max-width:7.5rem;object-fit:contain;border-radius:.25rem;background-color:var(--mat-option-hover-state-layer-color)}.gui-image-select{--mat-form-field-container-vertical-padding: 0}.gui-image-select .ng-select{padding:0 .5rem;margin:0 -.5rem}.gui-image-select .ng-select .ng-value-container{height:4rem}.gui-image-select .ng-select .ng-value{display:inline-flex;align-items:center;gap:.5rem;height:100%;padding:.5rem 0}.gui-image-select.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;gap:.5rem;height:4rem;padding:.5rem} -`],encapsulation:2,changeDetection:0})}}return i})(),WT=(()=>{class i{constructor(){this.config={}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=L({type:i,selectors:[["gui-inline-group"]],hostAttrs:[1,"gui-inline-group"],inputs:{config:"config"},standalone:!0,features:[H],ngContentSelectors:Hc,decls:3,vars:1,consts:[[3,"config"],[1,"gui-inline-group-content"]],template:function(t,n){t&1&&(he(),b(0,_1,1,1,"gui-field-label",0),h(1,"div",1),Z(2),m()),t&2&&C(n.config.name?0:-1)},dependencies:[Et],styles:[`.gui-inline-group{display:flex;padding:.25rem .5rem}.gui-inline-group mat-hint{width:100%;line-height:var(--mat-form-field-subscript-text-line-height);-webkit-font-smoothing:antialiased}.gui-inline-group-content{display:inline-flex;flex:1;flex-flow:row wrap;margin:0 -.25rem}.gui-inline-group-content>.gui-field-group,.gui-inline-group-content>.gui-inline-group,.gui-inline-group-content>.mat-expansion-panel,.gui-inline-group-content>.gui-menu{width:100%;padding:0 .25rem} -`],encapsulation:2,changeDetection:0})}}return i})(),hf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-input-number"]],hostAttrs:[1,"gui-field","gui-input-number"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:5,vars:9,consts:[["matPrefix",""],["matInput","","type","number",3,"ngModelChange","change","ngModel","disabled","placeholder","step","min","max"],["matSuffix",""],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,b1,2,1,"span",0),h(2,"input",1),Be("ngModelChange",function(a){return je(n.value,a)||(n.value=a),a}),I("change",function(){return n.onValueChange()}),m(),b(3,v1,2,1,"span",2)(4,y1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),Ve("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||"")("step",n.config.step)("min",n.config.min)("max",n.config.max),d(),C(n.config.suffix?3:-1),d(),C(n.config.parentType==="inline"?4:-1))},dependencies:[at,Kt,Qo,dt,Jo,Ko,ut,Ut,hi,tn,mi,Tt,Et],styles:[`.gui-input-number .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .gui-input-number .mat-mdc-text-field-wrapper{padding-left:0} -`],encapsulation:2,changeDetection:0})}}return i})(),mf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-input-text"]],hostAttrs:[1,"gui-field","gui-input-text"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:5,vars:6,consts:[["matPrefix",""],["matInput","","type","text",3,"ngModelChange","change","ngModel","disabled","placeholder"],["matSuffix",""],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,x1,2,1,"span",0),h(2,"input",1),Be("ngModelChange",function(a){return je(n.value,a)||(n.value=a),a}),I("change",function(){return n.onValueChange()}),m(),b(3,C1,2,1,"span",2)(4,w1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),Ve("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||""),d(),C(n.config.suffix?3:-1),d(),C(n.config.parentType==="inline"?4:-1))},dependencies:[at,Kt,dt,ut,Ut,hi,tn,mi,Tt,Et],encapsulation:2,changeDetection:0})}}return i})(),pf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-select"]],hostAttrs:[1,"gui-field","gui-select"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:7,vars:7,consts:[["matPrefix",""],["panelClass","gui-select","hideSingleSelectionIndicator","","disableRipple","",3,"ngModelChange","selectionChange","ngModel","disabled","placeholder","multiple"],[3,"value","disabled"],["matSuffix",""],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,T1,2,1,"span",0),h(2,"mat-select",1),Be("ngModelChange",function(a){return je(n.value,a)||(n.value=a),a}),I("selectionChange",function(){return n.onValueChange()}),Ne(3,E1,3,5,"mat-option",2,nt),m(),b(5,I1,2,1,"span",3)(6,S1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),Ve("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||"")("multiple",n.config.multiple||!1),d(),Le(n.config.options),d(2),C(n.config.suffix?5:-1),d(),C(n.config.parentType==="inline"?6:-1))},dependencies:[at,dt,ut,Ut,hi,jm,_a,mi,Tt,Et],styles:[`.gui-select{--mat-select-trigger-text-size: .75rem;--mat-option-label-text-size: .75rem}.gui-select .mat-mdc-option{min-height:var(--mat-option-label-text-line-height);padding:0 .5rem!important}.gui-select .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:.5rem}[dir=rtl] .gui-select .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:.5rem}.gui-select .mat-pseudo-checkbox{width:1rem;height:1rem;border-width:1px} -`],encapsulation:2,changeDetection:0})}}return i})(),ff=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.setInputValue(),this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}onRangeSliderChange(){this.setInputValue(),this.onValueChange()}onRangeInputChange(){this.value=[this.minValue,this.maxValue],this.onValueChange()}setInputValue(){Array.isArray(this.value)&&(this.minValue=this.value[0],this.maxValue=this.value[1])}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-slider"]],hostAttrs:[1,"gui-field","gui-slider"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:3,vars:2,consts:[[3,"disabled","step","min","max"],["matSliderThumb","",3,"ngModelChange","valueChange","ngModel"],["matPrefix",""],["matInput","","type","number",3,"ngModelChange","change","ngModel","disabled","placeholder","step","min","max"],["matSuffix",""],["matSliderStartThumb","",3,"ngModelChange","valueChange","ngModel"],["matSliderEndThumb","",3,"ngModelChange","valueChange","ngModel"],[3,"config"]],template:function(t,n){t&1&&b(0,D1,6,13)(1,P1,11,22)(2,N1,2,1,"mat-hint"),t&2&&(C(n.config.mode!=="range"?0:1),d(2),C(n.config.parentType==="inline"?2:-1))},dependencies:[at,Kt,Qo,dt,Jo,Ko,ut,Gm,Ia,Ut,hi,tn,mi,Jl,Tt,Et],styles:[`.gui-slider .mat-mdc-slider{--mdc-slider-handle-width: .75rem;--mdc-slider-handle-height: .75rem;--mdc-slider-inactive-track-height: .125rem;--mdc-slider-active-track-height: .125rem;flex:3;min-width:auto;height:calc(var(--mdc-slider-handle-width) * 2);margin:0 calc(var(--mdc-slider-handle-width) / 2)}.gui-slider .mat-mdc-slider+.mat-mdc-form-field{flex:2}.gui-slider .mat-mdc-slider.mdc-slider--range+.mat-mdc-form-field,.gui-slider .mat-mdc-slider.mdc-slider--range+.mat-mdc-form-field+.mat-mdc-form-field{flex:1.5}.gui-slider .mat-mdc-slider .mdc-slider__input{top:0;height:calc(var(--mdc-slider-handle-width) * 2)}.gui-slider .mat-mdc-slider .mdc-slider__thumb{left:calc(var(--mdc-slider-handle-width) * -1);width:calc(var(--mdc-slider-handle-width) * 2);height:calc(var(--mdc-slider-handle-width) * 2);border-radius:50%;overflow:hidden}.gui-slider .mat-mdc-form-field{margin-left:.375rem}[dir=rtl] .gui-slider .mat-mdc-form-field{margin-left:0;margin-right:.375rem}.gui-slider .mat-mdc-form-field input::-webkit-outer-spin-button,.gui-slider .mat-mdc-form-field input::-webkit-inner-spin-button{appearance:none} -`],encapsulation:2,changeDetection:0})}}return i})(),gf=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value=!1,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-switch"]],hostAttrs:[1,"gui-field","gui-switch"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:2,vars:3,consts:[["hideIcon","",3,"ngModelChange","change","ngModel","disabled"],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-slide-toggle",0),Be("ngModelChange",function(a){return je(n.value,a)||(n.value=a),a}),I("change",function(){return n.onValueChange()}),m(),b(1,L1,2,1,"mat-hint")),t&2&&(Ve("ngModel",n.value),f("disabled",n.disabled),d(),C(n.config.parentType==="inline"?1:-1))},dependencies:[at,dt,ut,ka,Tt,Et],styles:[`.gui-switch .mat-mdc-slide-toggle{--mat-switch-unselected-handle-size: .75rem;--mat-switch-selected-handle-size: .75rem;--mat-switch-pressed-handle-size: .75rem;--mat-switch-selected-handle-horizontal-margin: 0;--mat-switch-selected-pressed-handle-horizontal-margin: 0;--mat-switch-unselected-handle-horizontal-margin: 0 .125rem;--mat-switch-unselected-pressed-handle-horizontal-margin: 0 .125rem;--mat-switch-track-outline-width: 1px;--mdc-switch-track-width: 1.75rem;--mdc-switch-track-height: 1rem;--mdc-switch-track-shape: .5rem;--mdc-switch-handle-width: .875rem;--mdc-switch-state-layer-size: 1.5rem;line-height:var(--mdc-switch-state-layer-size)} -`],encapsulation:2,changeDetection:0})}}return i})(),_f=(()=>{class i{constructor(e){this.cdr=e,this.config={},this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.value=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cdr.markForCheck()}onValueChange(){this.onChange(this.value)}static{this.\u0275fac=function(t){return new(t||i)(c(Q))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-textarea"]],hostAttrs:[1,"gui-field","gui-textarea"],inputs:{config:"config",disabled:"disabled"},standalone:!0,features:[$([{provide:Ce,useExisting:le(()=>i),multi:!0}]),H],decls:5,vars:7,consts:[["matPrefix",""],["matInput","",3,"ngModelChange","change","ngModel","disabled","placeholder","rows"],["matSuffix",""],[3,"config"]],template:function(t,n){t&1&&(h(0,"mat-form-field"),b(1,V1,2,1,"span",0),h(2,"textarea",1),Be("ngModelChange",function(a){return je(n.value,a)||(n.value=a),a}),I("change",function(){return n.onValueChange()}),m(),b(3,j1,2,1,"span",2)(4,B1,2,1,"mat-hint"),m()),t&2&&(d(),C(n.config.prefix?1:-1),d(),Ve("ngModel",n.value),f("disabled",n.disabled)("placeholder",n.config.placeholder||"")("rows",n.config.rows),d(),C(n.config.suffix?3:-1),d(),C(n.config.parentType==="inline"?4:-1))},dependencies:[at,Kt,dt,ut,Ut,hi,tn,mi,Tt,Et],styles:[`.gui-textarea .mat-mdc-text-field-wrapper{padding:0}.gui-textarea .mat-mdc-form-field-textarea-control{padding:0 .5rem} -`],encapsulation:2,changeDetection:0})}}return i})(),qT=0,qc=(()=>{class i{constructor(e){this.form=new jt({}),this.config={},this.model={},this.modelChange=new T,this.formFields=[],this.formSubscription=fe.EMPTY,this.controlSubscriptions=[],this.uid=`gui-form-${qT++}`,e.add("horizontal","vertical","copy","add","delete")}ngOnChanges(e){e.config&&(this.form.controls={},this.formFields=this.getFormFieldArray(this.form,this.config,this.model)),e.model&&this.model&&Object.keys(this.model).length>0&&this.form.patchValue(this.model)}ngOnInit(){this.formSubscription=this.form.valueChanges.subscribe(e=>{Object.assign(this.model,e),this.modelChange.emit(e)})}ngOnDestroy(){this.formSubscription.unsubscribe(),this.controlSubscriptions.forEach(e=>e.unsubscribe())}getFormFieldArray(e,t={},n={},o=null,a="group"){let s=[];for(let l of Object.keys(t)){let p=t[l].template?[]:t[l].children,g=p?Array.isArray(p)?"array":"group":"control",_=A({_type:g,key:l,parentType:a,model:n[l],default:o?.[l],index:Number(l),show:!0},t[l]);if(_.children&&n[l]==null&&_.default==null&&(_.model=n[l]=_._type==="array"?[]:{}),typeof n=="object"&&n[l]==null&&(n[l]=_.default),_.template&&(Array.isArray(_.model)&&_.model.length>0&&(_.default=_.model),_.default?.length?_.children=_.default.map(D=>(Object.assign(D,_.template?.default),A({default:D},_.template))):_.children=[]),_.showIf){let D=G=>{_.showIf.logicalType==="$or"?_.show=_.showIf.conditions.some(ie=>G(ie)):_.show=_.showIf.conditions.every(ie=>G(ie))};D(G=>{let ie=Va(t,G[0])??Va(this.config,G[0]),ae=Va(n,G[0])??Va(this.model,G[0]);return tf(ie?.default??ae,G[2],G[1])}),setTimeout(()=>{let G=Ie=>e.get(Ie)||this.form.get(Ie),ae=_.showIf.conditions.map(Ie=>G(Ie[0])).map(Ie=>Ie?.valueChanges||U()),me=U().pipe(nd(ae)).subscribe(()=>{D(Ie=>tf(G(Ie[0])?.value,Ie[2],Ie[1]))});this.controlSubscriptions.push(me)})}if(_._type==="control"){let D={value:_.default,disabled:_.disabled};e instanceof jt?e.registerControl(_.key,new Ur(D)):e instanceof Ii&&e.insert(_.index||e.length,new Ur(D),{emitEvent:!1})}else if(_._type==="array"){let D=new Ii([]);e instanceof jt?D=e.registerControl(_.key,new Ii([])):e instanceof Ii&&e.insert(_.index||e.length,D,{emitEvent:!1}),_.children=this.getFormFieldArray(D,_.children,_.model,_.default,_.type),_.selectedIndex=0}else if(_._type==="group"){let D=new jt({});e instanceof jt?D=e.registerControl(_.key,new jt({})):e instanceof Ii&&e.insert(_.index||e.length,D,{emitEvent:!1}),_.children=this.getFormFieldArray(D,_.children,_.model,_.default,_.type)}s.push(_)}return s}addTab(e,t,n,o,a){e.stopPropagation();let s=a!==void 0?a+1:o?n.selectedIndex+1:n.children.length;n.template.index=s,n.children.forEach((g,_)=>{_>=s&&(g.index+=1,g.key=g.index+"")});let l=t.get(s-1+"")?.value,p=this.getFormFieldArray(t,{[s]:n.template},o?{[s]:l}:{},o?{[s]:l}:null,"tabs");n.children.splice(s,0,p[0]),t.patchValue(t.value)}removeTab(e,t,n,o){e.stopPropagation();let a=o===void 0?n.selectedIndex:o;n.children.forEach((s,l)=>{l>a&&(s.index-=1,s.key=s.index+"")}),n.children.splice(a,1),t.removeAt(a)}changeTabsMode(e,t,n){e.stopPropagation(),t.mode=n}static{this.\u0275fac=function(t){return new(t||i)(c(lf))}}static{this.\u0275cmp=L({type:i,selectors:[["gui-form"]],hostAttrs:[1,"gui-form"],hostVars:1,hostBindings:function(t,n){t&2&&ee("id",n.uid)},inputs:{form:"form",config:"config",model:"model"},outputs:{modelChange:"modelChange"},standalone:!0,features:[se,H],decls:5,vars:1,consts:[["controlType",""],[3,"formGroup"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"config","flex"],["type","hidden",3,"formControlName"],[3,"config","formGroupName"],[3,"formGroupName","expanded","disabled"],[3,"formArrayName","expanded","disabled"],["disableRipple","",1,"gui-menu",3,"formGroupName"],[3,"formControlName","config"],["type","image",3,"formControlName","config"],["type","video",3,"formControlName","config"],["type","audio",3,"formControlName","config"],[3,"formControlName","config","appendTo"],[3,"expandedChange","formGroupName","expanded","disabled"],[3,"config"],["matExpansionPanelContent",""],[3,"expandedChange","formArrayName","expanded","disabled"],["mat-icon-button","","type","button",3,"click","color"],["svgIcon","horizontal"],["svgIcon","vertical"],["mat-icon-button","","type","button",3,"click","disabled"],["svgIcon","copy"],["svgIcon","add"],["svgIcon","delete"],["disableRipple","",1,"gui-tabs",3,"mat-stretch-tabs","selectedIndex"],[1,"gui-list"],["disableRipple","",1,"gui-tabs",3,"selectedIndexChange","mat-stretch-tabs","selectedIndex"],[3,"disabled"],["mat-tab-label",""],[1,"gui-list-item",3,"gui-list-item-active"],[1,"gui-list-item"],[1,"gui-list-item-heading"],[1,"gui-list-item-title",3,"click"],[1,"gui-list-item-content"],[3,"label","disabled"],["matTabContent",""],[3,"formGroupName"]],template:function(t,n){t&1&&(h(0,"form",1),Ne(1,U1,2,5,"div",null,nt),m(),b(3,jT,1,1,"ng-template",null,0,_t)),t&2&&(f("formGroup",n.form),d(),Le(n.formFields))},dependencies:[Hr,Ch,Kt,dt,ph,Jt,ul,Xo,Zo,Lt,cc,pp,lc,Zr,Vl,np,sc,ac,oc,UT,af,mf,hf,pf,gf,ff,sf,df,cf,uf,_f,WT,Et,Wc,BT],styles:[`.gui-form{--mat-expansion-header-text-size: .75rem;--mat-expansion-header-collapsed-state-height: 2rem;--mat-expansion-header-expanded-state-height: 2rem;--mat-expansion-container-text-size: .75rem;--mat-expansion-container-shape: 0;position:relative;display:block;font-size:.75rem}.gui-form .mat-expansion-panel{box-shadow:none!important}.gui-form .mat-expansion-panel-body{padding:0}.gui-form .mat-expansion-panel-header{padding:0 .75rem}.gui-form .mat-expansion-panel-header .mat-content{align-items:center;padding-right:.5rem}[dir=rtl] .gui-form .mat-expansion-panel-header .mat-content{padding-right:0;padding-left:.5rem}.gui-form .mat-expansion-panel-header .mat-content gui-field-label{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gui-form .mat-expansion-indicator svg{width:1.5rem;height:1.5rem;margin:0 -.5rem}.gui-form .mat-expansion-indicator:after{vertical-align:.125rem}.gui-form .mat-mdc-tab-header{--mat-tab-header-label-text-size: .75rem;--mdc-secondary-navigation-tab-container-height: 1.5rem}.gui-form .mat-mdc-tab-header-pagination{min-width:var(--mdc-secondary-navigation-tab-container-height)}.gui-form .mat-mdc-tab{min-width:auto;padding:0 .75rem}.gui-list-item-heading{display:flex;align-items:center;position:relative;padding:0 .75rem;line-height:1.5rem}.gui-list-item-heading:before{position:absolute;left:0;width:.125rem;height:1rem;background-color:var(--mat-expansion-header-text-color);content:""}[dir=rtl] .gui-list-item-heading:before{left:auto;right:0}.gui-list-item-title{flex:1;cursor:pointer}.gui-list-item-active .gui-list-item-title{font-weight:700}.gui-menu .mat-mdc-tab-header{--mdc-tab-indicator-active-indicator-shape: .25rem;padding:.25rem;background-color:var(--mdc-filled-text-field-container-color)}.gui-menu .mat-mdc-tab-header .mdc-tab__ripple:before{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.gui-menu .mat-mdc-tab-labels{gap:.25rem}.gui-menu .mdc-tab-indicator .mdc-tab-indicator__content{height:100%;background-color:var(--mdc-tab-indicator-active-indicator-color)}.gui-menu .mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:.24} -`],encapsulation:2,changeDetection:0})}}return i})(),bf=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=j({type:i})}static{this.\u0275inj=V({imports:[Oe,Hr,at,en,gm,Bm,$m,Wm,Xm,Cm,Aa,rp,fp,xp,Up,ef,qc,mf,hf,pf,gf,ff,sf,df,uf,_f,cf]})}}return i})();var qn="data-watermark-tag",Yc={childList:!0,subtree:!0,attributeFilter:["style","class",qn]};function vf(i){return i.split("-").slice(1).reduce((r,e,t)=>t===0?e:`${r}${e[0].toUpperCase()+e.slice(1)}`)}var no=i=>{let r="";return Object.keys(i).forEach(e=>{let t=e.replace(/([A-Z])/g,"-$1").toLowerCase();i[e]!==""&&i[e]!=null&&(r+=`${t}:${i[e]};`)}),r},QT=i=>window.btoa(decodeURI(encodeURIComponent(i))),yf=(i="")=>`${QT(i)}-${new Date().getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`,xf=i=>{let r;if(typeof i=="string"){if(r=document.querySelector(i),!r)throw new Error(`The watermark container element '${i}' not found!`)}else r=i??document.body;return r};var Cf=i=>{let r=document.createElement("div"),e={display:"block !important",position:"static !important",opacity:"1 !important",visibility:"visible !important",transform:"none !important","clip-path":"none !important"};return r.setAttribute("style",no(e)),r.setAttribute(qn,i),r};function wf(i){let{text:r,gapX:e,gapY:t,offsetY:n,offsetX:o,width:a,height:s,rotate:l,opacity:p,fontSize:g,fontStyle:_,fontVariant:D,fontWeight:G,fontFamily:ie,fontColor:ae,textAlign:me,textBaseline:Ie,image:bi,blindText:$t,blindFontSize:If,blindOpacity:Sf}=i;return new Promise((Qc,kf)=>{let Ba=document.createElement("canvas"),ze=Ba.getContext("2d"),Ri=1,za=(Number(e)+Number(a))*Ri,Ua=(Number(t)+Number(s))*Ri,Mf=Number(o)||Number(e)/2,Df=Number(n)||Number(t)/2;if(Ba.setAttribute("width",`${za}px`),Ba.setAttribute("height",`${Ua}px`),ze){let on=a*Ri,ro=s*Ri;if(ze.translate(Mf*Ri,Df*Ri),ze.translate(on/2,ro/2),ze.rotate(Math.PI/180*Number(l)),ze.translate(-on/2,-ro/2),$t&&(ze.globalAlpha=Sf,ze.font=`${If}px normal`,ze.fillText($t,0,0)),ze.globalAlpha=p,bi){let pt=new Image;pt.crossOrigin="anonymous",pt.referrerPolicy="no-referrer",pt.src=bi,pt.onload=()=>{ze.drawImage(pt,0,0,on,ro),Qc({url:ze.canvas.toDataURL(),width:za,height:Ua})};return}let Yn=Array.isArray(r)?r:[r],Af=Yn.map(pt=>ze.measureText(pt).width),Rf=Math.max(...Af),Ha=Number(g)*Ri;ze.textAlign=me,ze.textBaseline=Ie,ze.fillStyle=ae,ze.font=Xc(`${Ha}px`),Rf>a&&(ze.font=Xc(`${Ha/2}px`));let Zc=4,Of=Ha,oo=(ro-(g+4)*Yn.length-Zc*(Yn.length-1))/2;oo=oo<0?0:oo;for(let pt=0;pt!!(r.type==="attributes"&&(r.attributeName===qn||this.watermarkTag===this._getNodeRandomId(r.target))||r.removedNodes.length&&this.watermarkTag===this._getNodeRandomId(r.removedNodes[0]));_getNodeRandomId=r=>r?.dataset?.[vf(qn)];_destroyMutationObserver=()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)};_getWatermarkDom=()=>ao(this,null,function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div"));let r=yield wf(this.options);if(r?.url){let e=r.url;if(this.style.zIndex=this.options.zIndex,this.options.repeat==="multiply"?(this.style.backgroundImage=`url(${e}), url(${e})`,this.style.backgroundRepeat="repeat",this.style.backgroundPosition=`${r.width/2}px ${r.height/2}px, 0 0`):(this.style.backgroundImage=`url(${e})`,this.style.backgroundRepeat="repeat",this.style.backgroundPosition="",this.options.repeat==="none"&&(this.style.backgroundRepeat="no-repeat",this.style.backgroundPosition=this.options.position||"center")),this.options.container||(this.style.position="fixed"),this.options.scrollHeight){let t=this.options.scrollHeight;this.style.height=typeof t=="string"?t:t+"px"}this.watermarkDom.setAttribute("style",no(this.style))}return this.watermarkDom.setAttribute(qn,this.watermarkTag),this.watermarkDom});_render(){return ao(this,null,function*(){this._destroyMutationObserver(),this.container=xf(this.options.container),this.watermarkHost||(this.watermarkHost=Cf(this.watermarkTag),this.container.append(this.watermarkHost)),this.watermarkDom=yield this._getWatermarkDom(),this.watermarkHost&&(this.watermarkHost.childNodes||[]).forEach(e=>{this.watermarkHost.removeChild(e)}),typeof this.watermarkHost.attachShadow=="function"?this.shadowRoot||(this.shadowRoot=this.watermarkHost.attachShadow({mode:"open"})):this.shadowRoot=this.watermarkHost,this.shadowRoot.append(this.watermarkDom),MutationObserver&&this.options.secure&&(this.mutationObserver=new MutationObserver(r=>{r.forEach(e=>{if(this._shouldRerender(e)){this.destroy(),this._render();return}})}),this.mutationObserver.observe(this.container,Yc),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Yc))})}};var Tf=(()=>{class i{options={};_elementRef=R(F);_ngZone=R(W);_watermark;ngOnInit(){let e=this._elementRef.nativeElement;this._watermark=this._ngZone.runOutsideAngular(()=>new ja(ye(A({},this.options),{container:this.options.container||(e.childNodes.length>0?e:null)})))}ngOnChanges(){this.update(this.options)}ngOnDestroy(){this.destroy()}update(e){this._watermark?.update(e)}show(){this._watermark?.show()}hide(){this._watermark?.hide()}destroy(){this._watermark?.destroy()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=S({type:i,selectors:[["","watermark",""]],hostVars:2,hostBindings:function(t,n){t&2&&Ae("position","relative")},inputs:{options:[0,"watermarkOptions","options"]},exportAs:["watermark"],standalone:!0,features:[se]})}return i})();var Ef=(()=>{class i{options={text:"abc123"};config={secure:{type:"switch",name:"secure",default:!0},image:{type:"text",name:"image"},text:{type:"text",name:"text",default:"abc123"},repeat:{type:"buttonToggle",name:"repeat",options:[{label:"multiply",value:"multiply"},{label:"normal",value:"normal"},{label:"none",value:"none"}],default:"multiply"},position:{type:"text",name:"position"},width:{type:"number",name:"width",min:0,default:120,suffix:"px"},height:{type:"number",name:"height",min:0,default:60,suffix:"px"},gapX:{type:"number",name:"gapX",min:0,default:100,suffix:"px"},gapY:{type:"number",name:"gapY",min:0,default:100,suffix:"px"},offsetX:{type:"number",name:"offsetX",default:0,suffix:"px"},offsetY:{type:"number",name:"offsetY",default:0,suffix:"px"},opacity:{type:"slider",name:"opacity",min:0,max:1,step:.05,default:.15},rotate:{type:"slider",name:"rotate",min:-360,max:360,default:-24},fontSize:{type:"number",name:"fontSize",suffix:"px",default:16},fontWeight:{type:"select",name:"fontWeight",options:[{label:"100",value:100},{label:"200",value:200},{label:"300",value:300},{label:"400",value:400},{label:"500",value:500},{label:"600",value:600},{label:"700",value:700},{label:"800",value:800},{label:"900",value:900}],default:400},fontStyle:{type:"buttonToggle",name:"fontStyle",options:[{label:"normal",value:"normal"},{label:"italic",value:"italic"}],default:"normal"},fontVariant:{type:"buttonToggle",name:"fontVariant",options:[{label:"normal",value:"normal"},{label:"small-caps",value:"small-caps"}],default:"normal"},fontColor:{type:"fill",name:"fontColor",default:"#000"},fontFamily:{type:"select",name:"fontFamily",options:[{label:"sans-serif",value:"sans-serif"},{label:"serif",value:"serif"},{label:"monospace",value:"monospace"},{label:"Arial",value:"Arial"},{label:"Courier New",value:"Courier New"},{label:"Microsoft YaHei",value:"Microsoft YaHei"}],useFont:!0,default:"sans-serif"}};ngOnInit(){}onModelChange(e){this.options=e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=L({type:i,selectors:[["app-root"]],standalone:!0,features:[H],decls:6,vars:2,consts:[[1,"container"],[3,"modelChange","config"],["watermark","",3,"watermarkOptions"]],template:function(t,n){t&1&&(h(0,"div",0)(1,"div")(2,"gui-form",1),I("modelChange",function(a){return n.onModelChange(a)}),m()(),h(3,"div",2)(4,"p"),te(5," Add watermark to your page. "),m()()()),t&2&&(d(2),f("config",n.config),d(),f("watermarkOptions",n.options))},dependencies:[Tf,bf,qc],styles:[".container[_ngcontent-%COMP%]{display:grid;grid-template-columns:320px 1fr;height:100%;padding:16px}[watermark][_ngcontent-%COMP%]{padding:0 16px;border:1px solid var(--mat-divider-color)}"]})}return i})();ou(Ef,Wu).catch(i=>console.error(i));