/**
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

var wS=Object.defineProperty,pS=Object.defineProperties;var yS=Object.getOwnPropertyDescriptors;var Ta=Object.getOwnPropertySymbols;var Pm=Object.prototype.hasOwnProperty,Zm=Object.prototype.propertyIsEnumerable;var Om=(t,e,A)=>e in t?wS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,R=(t,e)=>{for(var A in e||={})Pm.call(e,A)&&Om(t,A,e[A]);if(Ta)for(var A of Ta(e))Zm.call(e,A)&&Om(t,A,e[A]);return t},hA=(t,e)=>pS(t,yS(e));var mc=(t,e)=>{var A={};for(var i in t)Pm.call(t,i)&&e.indexOf(i)<0&&(A[i]=t[i]);if(t!=null&&Ta)for(var i of Ta(t))e.indexOf(i)<0&&Zm.call(t,i)&&(A[i]=t[i]);return A};var qe=(t,e,A)=>new Promise((i,o)=>{var g=r=>{try{s(A.next(r))}catch(I){o(I)}},n=r=>{try{s(A.throw(r))}catch(I){o(I)}},s=r=>r.done?i(r.value):Promise.resolve(r.value).then(g,n);s((A=A.apply(t,e)).next())});function yc(t,e){return Object.is(t,e)}var _e=null,Oa=!1,Mc=1,Et=Symbol("SIGNAL");function OA(t){let e=_e;return _e=t,e}function Rc(){return _e}var _n={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,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pr(t){if(Oa)throw new Error("");if(_e===null)return;_e.consumerOnSignalRead(t);let e=_e.nextProducerIndex++;if(Wa(_e),e<_e.producerNode.length&&_e.producerNode[e]!==t&&wr(_e)){let A=_e.producerNode[e];Va(A,_e.producerIndexOfThis[e])}_e.producerNode[e]!==t&&(_e.producerNode[e]=t,_e.producerIndexOfThis[e]=wr(_e)?Vm(t,_e,e):0),_e.producerLastReadVersion[e]=t.version}function qm(){Mc++}function kc(t){if(!(wr(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Mc)){if(!t.producerMustRecompute(t)&&!qa(t)){pc(t);return}t.producerRecomputeValue(t),pc(t)}}function Fc(t){if(t.liveConsumerNode===void 0)return;let e=Oa;Oa=!0;try{for(let A of t.liveConsumerNode)A.dirty||MS(A)}finally{Oa=e}}function bc(){return _e?.consumerAllowSignalWrites!==!1}function MS(t){t.dirty=!0,Fc(t),t.consumerMarkedDirty?.(t)}function pc(t){t.dirty=!1,t.lastCleanEpoch=Mc}function yr(t){return t&&(t.nextProducerIndex=0),OA(t)}function Za(t,e){if(OA(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(wr(t))for(let A=t.nextProducerIndex;A<t.producerNode.length;A++)Va(t.producerNode[A],t.producerIndexOfThis[A]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function qa(t){Wa(t);for(let e=0;e<t.producerNode.length;e++){let A=t.producerNode[e],i=t.producerLastReadVersion[e];if(i!==A.version||(kc(A),i!==A.version))return!0}return!1}function Mr(t){if(Wa(t),wr(t))for(let e=0;e<t.producerNode.length;e++)Va(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Vm(t,e,A){if(Wm(t),t.liveConsumerNode.length===0&&zm(t))for(let i=0;i<t.producerNode.length;i++)t.producerIndexOfThis[i]=Vm(t.producerNode[i],t,i);return t.liveConsumerIndexOfThis.push(A),t.liveConsumerNode.push(e)-1}function Va(t,e){if(Wm(t),t.liveConsumerNode.length===1&&zm(t))for(let i=0;i<t.producerNode.length;i++)Va(t.producerNode[i],t.producerIndexOfThis[i]);let A=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[A],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[A],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let i=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];Wa(o),o.producerIndexOfThis[i]=e}}function wr(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Wa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Wm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function zm(t){return t.producerNode!==void 0}function za(t,e){let A=Object.create(RS);A.computation=t,e!==void 0&&(A.equal=e);let i=()=>{if(kc(A),pr(A),A.value===Pa)throw A.error;return A.value};return i[Et]=A,i}var fc=Symbol("UNSET"),wc=Symbol("COMPUTING"),Pa=Symbol("ERRORED"),RS=hA(R({},_n),{value:fc,dirty:!0,error:null,equal:yc,kind:"computed",producerMustRecompute(t){return t.value===fc||t.value===wc},producerRecomputeValue(t){if(t.value===wc)throw new Error("Detected cycle in computations.");let e=t.value;t.value=wc;let A=yr(t),i,o=!1;try{i=t.computation(),OA(null),o=e!==fc&&e!==Pa&&i!==Pa&&t.equal(e,i)}catch(g){i=Pa,t.error=g}finally{Za(t,A)}if(o){t.value=e;return}t.value=i,t.version++}});function kS(){throw new Error}var jm=kS;function Xm(t){jm(t)}function Sc(t){jm=t}var FS=null;function Nc(t,e){let A=Object.create(ja);A.value=t,e!==void 0&&(A.equal=e);let i=()=>(pr(A),A.value);return i[Et]=A,i}function Rr(t,e){bc()||Xm(t),t.equal(t.value,e)||(t.value=e,bS(t))}function Gc(t,e){bc()||Xm(t),Rr(t,e(t.value))}var ja=hA(R({},_n),{equal:yc,value:void 0,kind:"signal"});function bS(t){t.version++,qm(),Fc(t),FS?.()}function vc(t){let e=OA(null);try{return t()}finally{OA(e)}}var Lc;function kr(){return Lc}function wo(t){let e=Lc;return Lc=t,e}var Xa=Symbol("NotFound");function pA(t){return typeof t=="function"}function xn(t){let A=t(i=>{Error.call(i),i.stack=new Error().stack});return A.prototype=Object.create(Error.prototype),A.prototype.constructor=A,A}var $a=xn(t=>function(A){t(this),this.message=A?`${A.length} errors occurred during unsubscription:
${A.map((i,o)=>`${o+1}) ${i.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=A});function Ng(t,e){if(t){let A=t.indexOf(e);0<=A&&t.splice(A,1)}}var NA=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:A}=this;if(A)if(this._parentage=null,Array.isArray(A))for(let g of A)g.remove(this);else A.remove(this);let{initialTeardown:i}=this;if(pA(i))try{i()}catch(g){e=g instanceof $a?g.errors:[g]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let g of o)try{$m(g)}catch(n){e=e??[],n instanceof $a?e=[...e,...n.errors]:e.push(n)}}if(e)throw new $a(e)}}add(e){var A;if(e&&e!==this)if(this.closed)$m(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(A=this._finalizers)!==null&&A!==void 0?A:[]).push(e)}}_hasParent(e){let{_parentage:A}=this;return A===e||Array.isArray(A)&&A.includes(e)}_addParent(e){let{_parentage:A}=this;this._parentage=Array.isArray(A)?(A.push(e),A):A?[A,e]:e}_removeParent(e){let{_parentage:A}=this;A===e?this._parentage=null:Array.isArray(A)&&Ng(A,e)}remove(e){let{_finalizers:A}=this;A&&Ng(A,e),e instanceof t&&e._removeParent(this)}};NA.EMPTY=(()=>{let t=new NA;return t.closed=!0,t})();var Kc=NA.EMPTY;function AC(t){return t instanceof NA||t&&"closed"in t&&pA(t.remove)&&pA(t.add)&&pA(t.unsubscribe)}function $m(t){pA(t)?t():t.unsubscribe()}var ri={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Yn={setTimeout(t,e,...A){let{delegate:i}=Yn;return i?.setTimeout?i.setTimeout(t,e,...A):setTimeout(t,e,...A)},clearTimeout(t){let{delegate:e}=Yn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function eC(t){Yn.setTimeout(()=>{let{onUnhandledError:e}=ri;if(e)e(t);else throw t})}function Fr(){}var Af=Uc("C",void 0,void 0);function ef(t){return Uc("E",void 0,t)}function tf(t){return Uc("N",t,void 0)}function Uc(t,e,A){return{kind:t,value:e,error:A}}var Gg=null;function Jn(t){if(ri.useDeprecatedSynchronousErrorHandling){let e=!Gg;if(e&&(Gg={errorThrown:!1,error:null}),t(),e){let{errorThrown:A,error:i}=Gg;if(Gg=null,A)throw i}}else t()}function of(t){ri.useDeprecatedSynchronousErrorHandling&&Gg&&(Gg.errorThrown=!0,Gg.error=t)}var po=class extends NA{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,AC(e)&&e.add(this)):this.destination=KS}static create(e,A,i){return new yo(e,A,i)}next(e){this.isStopped?xc(tf(e),this):this._next(e)}error(e){this.isStopped?xc(ef(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?xc(Af,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},vS=Function.prototype.bind;function _c(t,e){return vS.call(t,e)}var Yc=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:A}=this;if(A.next)try{A.next(e)}catch(i){tC(i)}}error(e){let{partialObserver:A}=this;if(A.error)try{A.error(e)}catch(i){tC(i)}else tC(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(A){tC(A)}}},yo=class extends po{constructor(e,A,i){super();let o;if(pA(e)||!e)o={next:e??void 0,error:A??void 0,complete:i??void 0};else{let g;this&&ri.useDeprecatedNextContext?(g=Object.create(e),g.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&_c(e.next,g),error:e.error&&_c(e.error,g),complete:e.complete&&_c(e.complete,g)}):o=e}this.destination=new Yc(o)}};function tC(t){ri.useDeprecatedSynchronousErrorHandling?of(t):eC(t)}function LS(t){throw t}function xc(t,e){let{onStoppedNotification:A}=ri;A&&Yn.setTimeout(()=>A(t,e))}var KS={closed:!0,next:Fr,error:LS,complete:Fr};var Hn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function rt(t){return t}function Jc(...t){return Hc(t)}function Hc(t){return t.length===0?rt:t.length===1?t[0]:function(A){return t.reduce((i,o)=>o(i),A)}}var QA=(()=>{class t{constructor(A){A&&(this._subscribe=A)}lift(A){let i=new t;return i.source=this,i.operator=A,i}subscribe(A,i,o){let g=_S(A)?A:new yo(A,i,o);return Jn(()=>{let{operator:n,source:s}=this;g.add(n?n.call(g,s):s?this._subscribe(g):this._trySubscribe(g))}),g}_trySubscribe(A){try{return this._subscribe(A)}catch(i){A.error(i)}}forEach(A,i){return i=gf(i),new i((o,g)=>{let n=new yo({next:s=>{try{A(s)}catch(r){g(r),n.unsubscribe()}},error:g,complete:o});this.subscribe(n)})}_subscribe(A){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(A)}[Hn](){return this}pipe(...A){return Hc(A)(this)}toPromise(A){return A=gf(A),new A((i,o)=>{let g;this.subscribe(n=>g=n,n=>o(n),()=>i(g))})}}return t.create=e=>new t(e),t})();function gf(t){var e;return(e=t??ri.Promise)!==null&&e!==void 0?e:Promise}function US(t){return t&&pA(t.next)&&pA(t.error)&&pA(t.complete)}function _S(t){return t&&t instanceof po||US(t)&&AC(t)}function Tc(t){return pA(t?.lift)}function GA(t){return e=>{if(Tc(e))return e.lift(function(A){try{return t(A,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function bA(t,e,A,i,o){return new Oc(t,e,A,i,o)}var Oc=class extends po{constructor(e,A,i,o,g,n){super(e),this.onFinalize=g,this.shouldUnsubscribe=n,this._next=A?function(s){try{A(s)}catch(r){e.error(r)}}:super._next,this._error=o?function(s){try{o(s)}catch(r){e.error(r)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:A}=this;super.unsubscribe(),!A&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Tn(){return GA((t,e)=>{let A=null;t._refCount++;let i=bA(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){A=null;return}let o=t._connection,g=A;A=null,o&&(!g||o===g)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(i),i.closed||(A=t.connect())})}var qo=class extends QA{constructor(e,A){super(),this.source=e,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,Tc(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new NA;let A=this.getSubject();e.add(this.source.subscribe(bA(A,void 0,()=>{this._teardown(),A.complete()},i=>{this._teardown(),A.error(i)},()=>this._teardown()))),e.closed&&(this._connection=null,e=NA.EMPTY)}return e}refCount(){return Tn()(this)}};var nf=xn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var K=(()=>{class t extends QA{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(A){let i=new On(this,this);return i.operator=A,i}_throwIfClosed(){if(this.closed)throw new nf}next(A){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(A)}})}error(A){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=A;let{observers:i}=this;for(;i.length;)i.shift().error(A)}})}complete(){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:A}=this;for(;A.length;)A.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var A;return((A=this.observers)===null||A===void 0?void 0:A.length)>0}_trySubscribe(A){return this._throwIfClosed(),super._trySubscribe(A)}_subscribe(A){return this._throwIfClosed(),this._checkFinalizedStatuses(A),this._innerSubscribe(A)}_innerSubscribe(A){let{hasError:i,isStopped:o,observers:g}=this;return i||o?Kc:(this.currentObservers=null,g.push(A),new NA(()=>{this.currentObservers=null,Ng(g,A)}))}_checkFinalizedStatuses(A){let{hasError:i,thrownError:o,isStopped:g}=this;i?A.error(o):g&&A.complete()}asObservable(){let A=new QA;return A.source=this,A}}return t.create=(e,A)=>new On(e,A),t})(),On=class extends K{constructor(e,A){super(),this.destination=e,this.source=A}next(e){var A,i;(i=(A=this.destination)===null||A===void 0?void 0:A.next)===null||i===void 0||i.call(A,e)}error(e){var A,i;(i=(A=this.destination)===null||A===void 0?void 0:A.error)===null||i===void 0||i.call(A,e)}complete(){var e,A;(A=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||A===void 0||A.call(e)}_subscribe(e){var A,i;return(i=(A=this.source)===null||A===void 0?void 0:A.subscribe(e))!==null&&i!==void 0?i:Kc}};var Ae=class extends K{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let A=super._subscribe(e);return!A.closed&&e.next(this._value),A}getValue(){let{hasError:e,thrownError:A,_value:i}=this;if(e)throw A;return this._throwIfClosed(),i}next(e){super.next(this._value=e)}};var br={now(){return(br.delegate||Date).now()},delegate:void 0};var Ii=class extends K{constructor(e=1/0,A=1/0,i=br){super(),this._bufferSize=e,this._windowTime=A,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=A===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,A)}next(e){let{isStopped:A,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:g,_windowTime:n}=this;A||(i.push(e),!o&&i.push(g.now()+n)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let A=this._innerSubscribe(e),{_infiniteTimeWindow:i,_buffer:o}=this,g=o.slice();for(let n=0;n<g.length&&!e.closed;n+=i?1:2)e.next(g[n]);return this._checkFinalizedStatuses(e),A}_trimBuffer(){let{_bufferSize:e,_timestampProvider:A,_buffer:i,_infiniteTimeWindow:o}=this,g=(o?1:2)*e;if(e<1/0&&g<i.length&&i.splice(0,i.length-g),!o){let n=A.now(),s=0;for(let r=1;r<i.length&&i[r]<=n;r+=2)s=r;s&&i.splice(0,s+1)}}};var iC=class extends NA{constructor(e,A){super()}schedule(e,A=0){return this}};var Sr={setInterval(t,e,...A){let{delegate:i}=Sr;return i?.setInterval?i.setInterval(t,e,...A):setInterval(t,e,...A)},clearInterval(t){let{delegate:e}=Sr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var oC=class extends iC{constructor(e,A){super(e,A),this.scheduler=e,this.work=A,this.pending=!1}schedule(e,A=0){var i;if(this.closed)return this;this.state=e;let o=this.id,g=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(g,o,A)),this.pending=!0,this.delay=A,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(g,this.id,A),this}requestAsyncId(e,A,i=0){return Sr.setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,A,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return A;A!=null&&Sr.clearInterval(A)}execute(e,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(e,A);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,A){let i=!1,o;try{this.work(e)}catch(g){i=!0,o=g||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:A}=this,{actions:i}=A;this.work=this.state=this.scheduler=null,this.pending=!1,Ng(i,this),e!=null&&(this.id=this.recycleAsyncId(A,e,null)),this.delay=null,super.unsubscribe()}}};var Pn=class t{constructor(e,A=t.now){this.schedulerActionCtor=e,this.now=A}schedule(e,A=0,i){return new this.schedulerActionCtor(this,e).schedule(i,A)}};Pn.now=br.now;var gC=class extends Pn{constructor(e,A=Pn.now){super(e,A),this.actions=[],this._active=!1}flush(e){let{actions:A}=this;if(this._active){A.push(e);return}let i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=A.shift());if(this._active=!1,i){for(;e=A.shift();)e.unsubscribe();throw i}}};var Nr=new gC(oC),sf=Nr;var ve=new QA(t=>t.complete());function nC(t){return t&&pA(t.schedule)}function Pc(t){return t[t.length-1]}function sC(t){return pA(Pc(t))?t.pop():void 0}function xi(t){return nC(Pc(t))?t.pop():void 0}function rf(t,e){return typeof Pc(t)=="number"?t.pop():e}function af(t,e,A,i){function o(g){return g instanceof A?g:new A(function(n){n(g)})}return new(A||(A=Promise))(function(g,n){function s(B){try{I(i.next(B))}catch(c){n(c)}}function r(B){try{I(i.throw(B))}catch(c){n(c)}}function I(B){B.done?g(B.value):o(B.value).then(s,r)}I((i=i.apply(t,e||[])).next())})}function If(t){var e=typeof Symbol=="function"&&Symbol.iterator,A=e&&t[e],i=0;if(A)return A.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function vg(t){return this instanceof vg?(this.v=t,this):new vg(t)}function Cf(t,e,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=A.apply(t,e||[]),o,g=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",n),o[Symbol.asyncIterator]=function(){return this},o;function n(h){return function(p){return Promise.resolve(p).then(h,c)}}function s(h,p){i[h]&&(o[h]=function(y){return new Promise(function(L,P){g.push([h,y,L,P])>1||r(h,y)})},p&&(o[h]=p(o[h])))}function r(h,p){try{I(i[h](p))}catch(y){D(g[0][3],y)}}function I(h){h.value instanceof vg?Promise.resolve(h.value.v).then(B,c):D(g[0][2],h)}function B(h){r("next",h)}function c(h){r("throw",h)}function D(h,p){h(p),g.shift(),g.length&&r(g[0][0],g[0][1])}}function Bf(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],A;return e?e.call(t):(t=typeof If=="function"?If(t):t[Symbol.iterator](),A={},i("next"),i("throw"),i("return"),A[Symbol.asyncIterator]=function(){return this},A);function i(g){A[g]=t[g]&&function(n){return new Promise(function(s,r){n=t[g](n),o(s,r,n.done,n.value)})}}function o(g,n,s,r){Promise.resolve(r).then(function(I){g({value:I,done:s})},n)}}var Zn=t=>t&&typeof t.length=="number"&&typeof t!="function";function rC(t){return pA(t?.then)}function IC(t){return pA(t[Hn])}function aC(t){return Symbol.asyncIterator&&pA(t?.[Symbol.asyncIterator])}function CC(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function xS(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var BC=xS();function QC(t){return pA(t?.[BC])}function EC(t){return Cf(this,arguments,function*(){let A=t.getReader();try{for(;;){let{value:i,done:o}=yield vg(A.read());if(o)return yield vg(void 0);yield yield vg(i)}}finally{A.releaseLock()}})}function cC(t){return pA(t?.getReader)}function ge(t){if(t instanceof QA)return t;if(t!=null){if(IC(t))return YS(t);if(Zn(t))return JS(t);if(rC(t))return HS(t);if(aC(t))return Qf(t);if(QC(t))return TS(t);if(cC(t))return OS(t)}throw CC(t)}function YS(t){return new QA(e=>{let A=t[Hn]();if(pA(A.subscribe))return A.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function JS(t){return new QA(e=>{for(let A=0;A<t.length&&!e.closed;A++)e.next(t[A]);e.complete()})}function HS(t){return new QA(e=>{t.then(A=>{e.closed||(e.next(A),e.complete())},A=>e.error(A)).then(null,eC)})}function TS(t){return new QA(e=>{for(let A of t)if(e.next(A),e.closed)return;e.complete()})}function Qf(t){return new QA(e=>{PS(t,e).catch(A=>e.error(A))})}function OS(t){return Qf(EC(t))}function PS(t,e){var A,i,o,g;return af(this,void 0,void 0,function*(){try{for(A=Bf(t);i=yield A.next(),!i.done;){let n=i.value;if(e.next(n),e.closed)return}}catch(n){o={error:n}}finally{try{i&&!i.done&&(g=A.return)&&(yield g.call(A))}finally{if(o)throw o.error}}e.complete()})}function ct(t,e,A,i=0,o=!1){let g=e.schedule(function(){A(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(g),!o)return g}function lC(t,e=0){return GA((A,i)=>{A.subscribe(bA(i,o=>ct(i,t,()=>i.next(o),e),()=>ct(i,t,()=>i.complete(),e),o=>ct(i,t,()=>i.error(o),e)))})}function dC(t,e=0){return GA((A,i)=>{i.add(t.schedule(()=>A.subscribe(i),e))})}function Ef(t,e){return ge(t).pipe(dC(e),lC(e))}function cf(t,e){return ge(t).pipe(dC(e),lC(e))}function lf(t,e){return new QA(A=>{let i=0;return e.schedule(function(){i===t.length?A.complete():(A.next(t[i++]),A.closed||this.schedule())})})}function df(t,e){return new QA(A=>{let i;return ct(A,e,()=>{i=t[BC](),ct(A,e,()=>{let o,g;try{({value:o,done:g}=i.next())}catch(n){A.error(n);return}g?A.complete():A.next(o)},0,!0)}),()=>pA(i?.return)&&i.return()})}function hC(t,e){if(!t)throw new Error("Iterable cannot be null");return new QA(A=>{ct(A,e,()=>{let i=t[Symbol.asyncIterator]();ct(A,e,()=>{i.next().then(o=>{o.done?A.complete():A.next(o.value)})},0,!0)})})}function hf(t,e){return hC(EC(t),e)}function uf(t,e){if(t!=null){if(IC(t))return Ef(t,e);if(Zn(t))return lf(t,e);if(rC(t))return cf(t,e);if(aC(t))return hC(t,e);if(QC(t))return df(t,e);if(cC(t))return hf(t,e)}throw CC(t)}function se(t,e){return e?uf(t,e):ge(t)}function tA(...t){let e=xi(t);return se(t,e)}function Vo(t,e){let A=pA(t)?t:()=>t,i=o=>o.error(A());return new QA(e?o=>e.schedule(i,0,o):i)}function Wo(t){return!!t&&(t instanceof QA||pA(t.lift)&&pA(t.subscribe))}var Mo=xn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Df(t){return t instanceof Date&&!isNaN(t)}function oA(t,e){return GA((A,i)=>{let o=0;A.subscribe(bA(i,g=>{i.next(t.call(e,g,o++))}))})}var{isArray:ZS}=Array;function qS(t,e){return ZS(e)?t(...e):t(e)}function qn(t){return oA(e=>qS(t,e))}var{isArray:VS}=Array,{getPrototypeOf:WS,prototype:zS,keys:jS}=Object;function uC(t){if(t.length===1){let e=t[0];if(VS(e))return{args:e,keys:null};if(XS(e)){let A=jS(e);return{args:A.map(i=>e[i]),keys:A}}}return{args:t,keys:null}}function XS(t){return t&&typeof t=="object"&&WS(t)===zS}function DC(t,e){return t.reduce((A,i,o)=>(A[i]=e[o],A),{})}function ai(...t){let e=xi(t),A=sC(t),{args:i,keys:o}=uC(t);if(i.length===0)return se([],e);let g=new QA($S(i,e,o?n=>DC(o,n):rt));return A?g.pipe(qn(A)):g}function $S(t,e,A=rt){return i=>{mf(e,()=>{let{length:o}=t,g=new Array(o),n=o,s=o;for(let r=0;r<o;r++)mf(e,()=>{let I=se(t[r],e),B=!1;I.subscribe(bA(i,c=>{g[r]=c,B||(B=!0,s--),s||i.next(A(g.slice()))},()=>{--n||i.complete()}))},i)},i)}}function mf(t,e,A){t?ct(A,t,e):e()}function ff(t,e,A,i,o,g,n,s){let r=[],I=0,B=0,c=!1,D=()=>{c&&!r.length&&!I&&e.complete()},h=y=>I<i?p(y):r.push(y),p=y=>{g&&e.next(y),I++;let L=!1;ge(A(y,B++)).subscribe(bA(e,P=>{o?.(P),g?h(P):e.next(P)},()=>{L=!0},void 0,()=>{if(L)try{for(I--;r.length&&I<i;){let P=r.shift();n?ct(e,n,()=>p(P)):p(P)}D()}catch(P){e.error(P)}}))};return t.subscribe(bA(e,h,()=>{c=!0,D()})),()=>{s?.()}}function ye(t,e,A=1/0){return pA(e)?ye((i,o)=>oA((g,n)=>e(i,g,o,n))(ge(t(i,o))),A):(typeof e=="number"&&(A=e),GA((i,o)=>ff(i,o,t,A)))}function zo(t=1/0){return ye(rt,t)}function wf(){return zo(1)}function jo(...t){return wf()(se(t,xi(t)))}function Yi(t){return new QA(e=>{ge(t()).subscribe(e)})}function Gr(...t){let e=sC(t),{args:A,keys:i}=uC(t),o=new QA(g=>{let{length:n}=A;if(!n){g.complete();return}let s=new Array(n),r=n,I=n;for(let B=0;B<n;B++){let c=!1;ge(A[B]).subscribe(bA(g,D=>{c||(c=!0,I--),s[B]=D},()=>r--,void 0,()=>{(!r||!c)&&(I||g.next(i?DC(i,s):s),g.complete())}))}});return e?o.pipe(qn(e)):o}var AN=["addListener","removeListener"],eN=["addEventListener","removeEventListener"],tN=["on","off"];function vr(t,e,A,i){if(pA(A)&&(i=A,A=void 0),i)return vr(t,e,A).pipe(qn(i));let[o,g]=gN(t)?eN.map(n=>s=>t[n](e,s,A)):iN(t)?AN.map(pf(t,e)):oN(t)?tN.map(pf(t,e)):[];if(!o&&Zn(t))return ye(n=>vr(n,e,A))(ge(t));if(!o)throw new TypeError("Invalid event target");return new QA(n=>{let s=(...r)=>n.next(1<r.length?r:r[0]);return o(s),()=>g(s)})}function pf(t,e){return A=>i=>t[A](e,i)}function iN(t){return pA(t.addListener)&&pA(t.removeListener)}function oN(t){return pA(t.on)&&pA(t.off)}function gN(t){return pA(t.addEventListener)&&pA(t.removeEventListener)}function Lg(t=0,e,A=sf){let i=-1;return e!=null&&(nC(e)?A=e:i=e),new QA(o=>{let g=Df(t)?+t-A.now():t;g<0&&(g=0);let n=0;return A.schedule(function(){o.closed||(o.next(n++),0<=i?this.schedule(void 0,i):o.complete())},g)})}function De(...t){let e=xi(t),A=rf(t,1/0),i=t;return i.length?i.length===1?ge(i[0]):zo(A)(se(i,e)):ve}function RA(t,e){return GA((A,i)=>{let o=0;A.subscribe(bA(i,g=>t.call(e,g,o++)&&i.next(g)))})}function yf(t){return GA((e,A)=>{let i=!1,o=null,g=null,n=!1,s=()=>{if(g?.unsubscribe(),g=null,i){i=!1;let I=o;o=null,A.next(I)}n&&A.complete()},r=()=>{g=null,n&&A.complete()};e.subscribe(bA(A,I=>{i=!0,o=I,g||ge(t(I)).subscribe(g=bA(A,s,r))},()=>{n=!0,(!i||!g||g.closed)&&A.complete()}))})}function mC(t,e=Nr){return yf(()=>Lg(t,e))}function lt(t){return GA((e,A)=>{let i=null,o=!1,g;i=e.subscribe(bA(A,void 0,void 0,n=>{g=ge(t(n,lt(t)(e))),i?(i.unsubscribe(),i=null,g.subscribe(A)):o=!0})),o&&(i.unsubscribe(),i=null,g.subscribe(A))})}function Mf(t,e,A,i,o){return(g,n)=>{let s=A,r=e,I=0;g.subscribe(bA(n,B=>{let c=I++;r=s?t(r,B,c):(s=!0,B),i&&n.next(r)},o&&(()=>{s&&n.next(r),n.complete()})))}}function Ji(t,e){return pA(e)?ye(t,e,1):ye(t,1)}function Ci(t,e=Nr){return GA((A,i)=>{let o=null,g=null,n=null,s=()=>{if(o){o.unsubscribe(),o=null;let I=g;g=null,i.next(I)}};function r(){let I=n+t,B=e.now();if(B<I){o=this.schedule(void 0,I-B),i.add(o);return}s()}A.subscribe(bA(i,I=>{g=I,n=e.now(),o||(o=e.schedule(r,t),i.add(o))},()=>{s(),i.complete()},void 0,()=>{g=o=null}))})}function Xo(t){return GA((e,A)=>{let i=!1;e.subscribe(bA(A,o=>{i=!0,A.next(o)},()=>{i||A.next(t),A.complete()}))})}function de(t){return t<=0?()=>ve:GA((e,A)=>{let i=0;e.subscribe(bA(A,o=>{++i<=t&&(A.next(o),t<=i&&A.complete())}))})}function Vn(t){return oA(()=>t)}function Bi(t,e=rt){return t=t??nN,GA((A,i)=>{let o,g=!0;A.subscribe(bA(i,n=>{let s=e(n);(g||!t(o,s))&&(g=!1,o=s,i.next(n))}))})}function nN(t,e){return t===e}function fC(t=sN){return GA((e,A)=>{let i=!1;e.subscribe(bA(A,o=>{i=!0,A.next(o)},()=>i?A.complete():A.error(t())))})}function sN(){return new Mo}function Hi(t){return GA((e,A)=>{try{e.subscribe(A)}finally{A.add(t)}})}function Ti(t,e){let A=arguments.length>=2;return i=>i.pipe(t?RA((o,g)=>t(o,g,i)):rt,de(1),A?Xo(e):fC(()=>new Mo))}function Wn(t){return t<=0?()=>ve:GA((e,A)=>{let i=[];e.subscribe(bA(A,o=>{i.push(o),t<i.length&&i.shift()},()=>{for(let o of i)A.next(o);A.complete()},void 0,()=>{i=null}))})}function Zc(t,e){let A=arguments.length>=2;return i=>i.pipe(t?RA((o,g)=>t(o,g,i)):rt,Wn(1),A?Xo(e):fC(()=>new Mo))}function wC(){return GA((t,e)=>{let A,i=!1;t.subscribe(bA(e,o=>{let g=A;A=o,i&&e.next([g,o]),i=!0}))})}function qc(t,e){return GA(Mf(t,e,arguments.length>=2,!0))}function Lr(t={}){let{connector:e=()=>new K,resetOnError:A=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return g=>{let n,s,r,I=0,B=!1,c=!1,D=()=>{s?.unsubscribe(),s=void 0},h=()=>{D(),n=r=void 0,B=c=!1},p=()=>{let y=n;h(),y?.unsubscribe()};return GA((y,L)=>{I++,!c&&!B&&D();let P=r=r??e();L.add(()=>{I--,I===0&&!c&&!B&&(s=Vc(p,o))}),P.subscribe(L),!n&&I>0&&(n=new yo({next:mA=>P.next(mA),error:mA=>{c=!0,D(),s=Vc(h,A,mA),P.error(mA)},complete:()=>{B=!0,D(),s=Vc(h,i),P.complete()}}),ge(y).subscribe(n))})(g)}}function Vc(t,e,...A){if(e===!0){t();return}if(e===!1)return;let i=new yo({next:()=>{i.unsubscribe(),t()}});return ge(e(...A)).subscribe(i)}function Ro(t,e,A){let i,o=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:A}=t:i=t??1/0,Lr({connector:()=>new Ii(i,e,A),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Kg(t){return RA((e,A)=>t<=A)}function me(...t){let e=xi(t);return GA((A,i)=>{(e?jo(t,A,e):jo(t,A)).subscribe(i)})}function re(t,e){return GA((A,i)=>{let o=null,g=0,n=!1,s=()=>n&&!o&&i.complete();A.subscribe(bA(i,r=>{o?.unsubscribe();let I=0,B=g++;ge(t(r,B)).subscribe(o=bA(i,c=>i.next(e?e(r,c,B,I++):c),()=>{o=null,s()}))},()=>{n=!0,s()}))})}function DA(t){return GA((e,A)=>{ge(t).subscribe(bA(A,()=>A.complete(),Fr)),!A.closed&&e.subscribe(A)})}function Wc(t,e=!1){return GA((A,i)=>{let o=0;A.subscribe(bA(i,g=>{let n=t(g,o++);(n||e)&&i.next(g),!n&&i.complete()}))})}function Ie(t,e,A){let i=pA(t)||e||A?{next:t,error:e,complete:A}:t;return i?GA((o,g)=>{var n;(n=i.subscribe)===null||n===void 0||n.call(i);let s=!0;o.subscribe(bA(g,r=>{var I;(I=i.next)===null||I===void 0||I.call(i,r),g.next(r)},()=>{var r;s=!1,(r=i.complete)===null||r===void 0||r.call(i),g.complete()},r=>{var I;s=!1,(I=i.error)===null||I===void 0||I.call(i,r),g.error(r)},()=>{var r,I;s&&((r=i.unsubscribe)===null||r===void 0||r.call(i)),(I=i.finalize)===null||I===void 0||I.call(i)}))}):rt}var uw="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",U=class extends Error{code;constructor(e,A){super(ud(e,A)),this.code=e}};function rN(t){return`NG0${Math.abs(t)}`}function ud(t,e){return`${rN(t)}${e?": "+e:""}`}var Dw=Symbol("InputSignalNode#UNSET"),IN=hA(R({},ja),{transformFn:void 0,applyValueToInputSignal(t,e){Rr(t,e)}});function mw(t,e){let A=Object.create(IN);A.value=t,A.transformFn=e?.transform;function i(){if(pr(A),A.value===Dw){let o=null;throw new U(-950,o)}return A.value}return i[Et]=A,i}function Vr(t){return{toString:t}.toString()}var pC="__parameters__";function aN(t){return function(...A){if(t){let i=t(...A);for(let o in i)this[o]=i[o]}}}function fw(t,e,A){return Vr(()=>{let i=aN(e);function o(...g){if(this instanceof o)return i.apply(this,g),this;let n=new o(...g);return s.annotation=n,s;function s(r,I,B){let c=r.hasOwnProperty(pC)?r[pC]:Object.defineProperty(r,pC,{value:[]})[pC];for(;c.length<=B;)c.push(null);return(c[B]=c[B]||[]).push(n),r}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var ut=globalThis;function ae(t){for(let e in t)if(t[e]===ae)return e;throw Error("Could not find renamed property on target object.")}function CN(t,e){for(let A in e)e.hasOwnProperty(A)&&!t.hasOwnProperty(A)&&(t[A]=e[A])}function ht(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(ht).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let A=t.toString();if(A==null)return""+A;let i=A.indexOf(`
`);return i>=0?A.slice(0,i):A}function al(t,e){return t?e?`${t} ${e}`:t:e||""}var BN=ae({__forward_ref__:ae});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return ht(this())},t}function ze(t){return ww(t)?t():t}function ww(t){return typeof t=="function"&&t.hasOwnProperty(BN)&&t.__forward_ref__===ft}function N(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function q(t){return{providers:t.providers||[],imports:t.imports||[]}}function CB(t){return Rf(t,yw)||Rf(t,Mw)}function pw(t){return CB(t)!==null}function Rf(t,e){return t.hasOwnProperty(e)?t[e]:null}function QN(t){let e=t&&(t[yw]||t[Mw]);return e||null}function kf(t){return t&&(t.hasOwnProperty(Ff)||t.hasOwnProperty(EN))?t[Ff]:null}var yw=ae({\u0275prov:ae}),Ff=ae({\u0275inj:ae}),Mw=ae({ngInjectableDef:ae}),EN=ae({ngInjectorDef:ae}),k=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,A){this._desc=e,this.\u0275prov=void 0,typeof A=="number"?this.__NG_ELEMENT_ID__=A:A!==void 0&&(this.\u0275prov=N({token:this,providedIn:A.providedIn||"root",factory:A.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Rw(t){return t&&!!t.\u0275providers}var cN=ae({\u0275cmp:ae}),lN=ae({\u0275dir:ae}),dN=ae({\u0275pipe:ae}),hN=ae({\u0275mod:ae}),LC=ae({\u0275fac:ae}),xr=ae({__NG_ELEMENT_ID__:ae}),bf=ae({__NG_ENV_ID__:ae});function Wr(t){return typeof t=="string"?t:t==null?"":String(t)}function uN(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Wr(t)}function kw(t,e){throw new U(-200,t)}function Dd(t,e){throw new U(-201,!1)}var ZA=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(ZA||{}),Cl;function Fw(){return Cl}function dt(t){let e=Cl;return Cl=t,e}function bw(t,e,A){let i=CB(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(A&ZA.Optional)return null;if(e!==void 0)return e;Dd(t,"Injector")}var DN={},Ug=DN,Bl="__NG_DI_FLAG__",KC=class{injector;constructor(e){this.injector=e}retrieve(e,A){let i=A;return this.injector.get(e,i.optional?Xa:Ug,i)}},UC="ngTempTokenPath",mN="ngTokenPath",fN=/\n/gm,wN="\u0275",Sf="__source";function pN(t,e=ZA.Default){if(kr()===void 0)throw new U(-203,!1);if(kr()===null)return bw(t,void 0,e);{let A=kr(),i;return A instanceof KC?i=A.injector:i=A,i.get(t,e&ZA.Optional?null:void 0,e)}}function J(t,e=ZA.Default){return(Fw()||pN)(ze(t),e)}function Q(t,e=ZA.Default){return J(t,BB(e))}function BB(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ql(t){let e=[];for(let A=0;A<t.length;A++){let i=ze(t[A]);if(Array.isArray(i)){if(i.length===0)throw new U(900,!1);let o,g=ZA.Default;for(let n=0;n<i.length;n++){let s=i[n],r=yN(s);typeof r=="number"?r===-1?o=s.token:g|=r:o=s}e.push(J(o,g))}else e.push(J(i))}return e}function Sw(t,e){return t[Bl]=e,t.prototype[Bl]=e,t}function yN(t){return t[Bl]}function MN(t,e,A,i){let o=t[UC];throw e[Sf]&&o.unshift(e[Sf]),t.message=RN(`
`+t.message,o,A,i),t[mN]=o,t[UC]=null,t}function RN(t,e,A,i=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==wN?t.slice(2):t;let o=ht(e);if(Array.isArray(e))o=e.map(ht).join(" -> ");else if(typeof e=="object"){let g=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];g.push(n+":"+(typeof s=="string"?JSON.stringify(s):ht(s)))}o=`{${g.join(", ")}}`}return`${A}${i?"("+i+")":""}[${o}]: ${t.replace(fN,`
  `)}`}var zg=Sw(fw("Optional"),8);var zr=Sw(fw("SkipSelf"),4);function xg(t,e){let A=t.hasOwnProperty(LC);return A?t[LC]:null}function kN(t,e,A){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let o=t[i],g=e[i];if(A&&(o=A(o),g=A(g)),g!==o)return!1}return!0}function FN(t){return t.flat(Number.POSITIVE_INFINITY)}function md(t,e){t.forEach(A=>Array.isArray(A)?md(A,e):e(A))}function Nw(t,e,A){e>=t.length?t.push(A):t.splice(e,0,A)}function _C(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function bN(t,e){let A=[];for(let i=0;i<t;i++)A.push(e);return A}function SN(t,e,A,i){let o=t.length;if(o==e)t.push(A,i);else if(o===1)t.push(i,t[0]),t[0]=A;else{for(o--,t.push(t[o-1],t[o]);o>e;){let g=o-2;t[o]=t[g],o--}t[e]=A,t[e+1]=i}}function QB(t,e,A){let i=jr(t,e);return i>=0?t[i|1]=A:(i=~i,SN(t,i,e,A)),i}function zc(t,e){let A=jr(t,e);if(A>=0)return t[A|1]}function jr(t,e){return NN(t,e,1)}function NN(t,e,A){let i=0,o=t.length>>A;for(;o!==i;){let g=i+(o-i>>1),n=t[g<<A];if(e===n)return g<<A;n>e?o=g:i=g+1}return~(o<<A)}var Pi={},It=[],ts=new k(""),Gw=new k("",-1),vw=new k(""),xC=class{get(e,A=Ug){if(A===Ug){let i=new Error(`NullInjectorError: No provider for ${ht(e)}!`);throw i.name="NullInjectorError",i}return A}};function Lw(t,e){let A=t[hN]||null;if(!A&&e===!0)throw new Error(`Type ${ht(t)} does not have '\u0275mod' property.`);return A}function eg(t){return t[cN]||null}function Kw(t){return t[lN]||null}function GN(t){return t[dN]||null}function EB(t){return{\u0275providers:t}}function vN(...t){return{\u0275providers:Uw(!0,t),\u0275fromNgModule:!0}}function Uw(t,...e){let A=[],i=new Set,o,g=n=>{A.push(n)};return md(e,n=>{let s=n;El(s,g,[],i)&&(o||=[],o.push(s))}),o!==void 0&&_w(o,g),A}function _w(t,e){for(let A=0;A<t.length;A++){let{ngModule:i,providers:o}=t[A];fd(o,g=>{e(g,i)})}}function El(t,e,A,i){if(t=ze(t),!t)return!1;let o=null,g=kf(t),n=!g&&eg(t);if(!g&&!n){let r=t.ngModule;if(g=kf(r),g)o=r;else return!1}else{if(n&&!n.standalone)return!1;o=t}let s=i.has(o);if(n){if(s)return!1;if(i.add(o),n.dependencies){let r=typeof n.dependencies=="function"?n.dependencies():n.dependencies;for(let I of r)El(I,e,A,i)}}else if(g){if(g.imports!=null&&!s){i.add(o);let I;try{md(g.imports,B=>{El(B,e,A,i)&&(I||=[],I.push(B))})}finally{}I!==void 0&&_w(I,e)}if(!s){let I=xg(o)||(()=>new o);e({provide:o,useFactory:I,deps:It},o),e({provide:vw,useValue:o,multi:!0},o),e({provide:ts,useValue:()=>J(o),multi:!0},o)}let r=g.providers;if(r!=null&&!s){let I=t;fd(r,B=>{e(B,I)})}}else return!1;return o!==t&&t.providers!==void 0}function fd(t,e){for(let A of t)Rw(A)&&(A=A.\u0275providers),Array.isArray(A)?fd(A,e):e(A)}var LN=ae({provide:String,useValue:ae});function xw(t){return t!==null&&typeof t=="object"&&LN in t}function KN(t){return!!(t&&t.useExisting)}function UN(t){return!!(t&&t.useFactory)}function is(t){return typeof t=="function"}function _N(t){return!!t.useClass}var cB=new k(""),bC={},Nf={},jc;function lB(){return jc===void 0&&(jc=new xC),jc}var Le=class{},Jr=class extends Le{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,A,i,o){super(),this.parent=A,this.source=i,this.scopes=o,ll(e,n=>this.processProvider(n)),this.records.set(Gw,zn(void 0,this)),o.has("environment")&&this.records.set(Le,zn(void 0,this));let g=this.records.get(cB);g!=null&&typeof g.value=="string"&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(vw,It,ZA.Self))}retrieve(e,A){let i=A;return this.get(e,i.optional?Xa:Ug,i)}destroy(){Ur(this),this._destroyed=!0;let e=OA(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let A=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of A)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),OA(e)}}onDestroy(e){return Ur(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Ur(this);let A=wo(this),i=dt(void 0),o;try{return e()}finally{wo(A),dt(i)}}get(e,A=Ug,i=ZA.Default){if(Ur(this),e.hasOwnProperty(bf))return e[bf](this);i=BB(i);let o,g=wo(this),n=dt(void 0);try{if(!(i&ZA.SkipSelf)){let r=this.records.get(e);if(r===void 0){let I=TN(e)&&CB(e);I&&this.injectableDefInScope(I)?r=zn(cl(e),bC):r=null,this.records.set(e,r)}if(r!=null)return this.hydrate(e,r)}let s=i&ZA.Self?lB():this.parent;return A=i&ZA.Optional&&A===Ug?null:A,s.get(e,A)}catch(s){if(s.name==="NullInjectorError"){if((s[UC]=s[UC]||[]).unshift(ht(e)),g)throw s;return MN(s,e,"R3InjectorError",this.source)}else throw s}finally{dt(n),wo(g)}}resolveInjectorInitializers(){let e=OA(null),A=wo(this),i=dt(void 0),o;try{let g=this.get(ts,It,ZA.Self);for(let n of g)n()}finally{wo(A),dt(i),OA(e)}}toString(){let e=[],A=this.records;for(let i of A.keys())e.push(ht(i));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=ze(e);let A=is(e)?e:ze(e&&e.provide),i=YN(e);if(!is(e)&&e.multi===!0){let o=this.records.get(A);o||(o=zn(void 0,bC,!0),o.factory=()=>Ql(o.multi),this.records.set(A,o)),A=e,o.multi.push(e)}this.records.set(A,i)}hydrate(e,A){let i=OA(null);try{return A.value===Nf?kw(ht(e)):A.value===bC&&(A.value=Nf,A.value=A.factory()),typeof A.value=="object"&&A.value&&HN(A.value)&&this._ngOnDestroyHooks.add(A.value),A.value}finally{OA(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let A=ze(e.providedIn);return typeof A=="string"?A==="any"||this.scopes.has(A):this.injectorDefTypes.has(A)}removeOnDestroy(e){let A=this._onDestroyHooks.indexOf(e);A!==-1&&this._onDestroyHooks.splice(A,1)}};function cl(t){let e=CB(t),A=e!==null?e.factory:xg(t);if(A!==null)return A;if(t instanceof k)throw new U(204,!1);if(t instanceof Function)return xN(t);throw new U(204,!1)}function xN(t){if(t.length>0)throw new U(204,!1);let A=QN(t);return A!==null?()=>A.factory(t):()=>new t}function YN(t){if(xw(t))return zn(void 0,t.useValue);{let e=Yw(t);return zn(e,bC)}}function Yw(t,e,A){let i;if(is(t)){let o=ze(t);return xg(o)||cl(o)}else if(xw(t))i=()=>ze(t.useValue);else if(UN(t))i=()=>t.useFactory(...Ql(t.deps||[]));else if(KN(t))i=()=>J(ze(t.useExisting));else{let o=ze(t&&(t.useClass||t.provide));if(JN(t))i=()=>new o(...Ql(t.deps));else return xg(o)||cl(o)}return i}function Ur(t){if(t.destroyed)throw new U(205,!1)}function zn(t,e,A=!1){return{factory:t,value:e,multi:A?[]:void 0}}function JN(t){return!!t.deps}function HN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function TN(t){return typeof t=="function"||typeof t=="object"&&t instanceof k}function ll(t,e){for(let A of t)Array.isArray(A)?ll(A,e):A&&Rw(A)?ll(A.\u0275providers,e):e(A)}function wt(t,e){let A;t instanceof Jr?(Ur(t),A=t):A=new KC(t);let i,o=wo(A),g=dt(void 0);try{return e()}finally{wo(o),dt(g)}}function Jw(){return Fw()!==void 0||kr()!=null}function wd(t){if(!Jw())throw new U(-203,!1)}function ON(t){let e=ut.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function PN(t){return typeof t=="function"}var ji=0,xA=1,vA=2,et=3,ci=4,pt=5,os=6,YC=7,xe=8,gs=9,ko=10,fe=11,Hr=12,Gf=13,Cs=14,Lt=15,Yg=16,jn=17,Fo=18,dB=19,Hw=20,$o=21,Xc=22,Jg=23,zt=24,As=25,Ye=26,pd=1;var Hg=7,JC=8,ns=9,At=10;function Ag(t){return Array.isArray(t)&&typeof t[pd]=="object"}function No(t){return Array.isArray(t)&&t[pd]===!0}function yd(t){return(t.flags&4)!==0}function Bs(t){return t.componentOffset>-1}function hB(t){return(t.flags&1)===1}function li(t){return!!t.template}function HC(t){return(t[vA]&512)!==0}function Xr(t){return(t[vA]&256)===256}var dl=class{previousValue;currentValue;firstChange;constructor(e,A,i){this.previousValue=e,this.currentValue=A,this.firstChange=i}isFirstChange(){return this.firstChange}};function Tw(t,e,A,i){e!==null?e.applyValueToInputSignal(e,i):t[A]=i}var VA=(()=>{let t=()=>Ow;return t.ngInherit=!0,t})();function Ow(t){return t.type.prototype.ngOnChanges&&(t.setInput=qN),ZN}function ZN(){let t=Zw(this),e=t?.current;if(e){let A=t.previous;if(A===Pi)t.previous=e;else for(let i in e)A[i]=e[i];t.current=null,this.ngOnChanges(e)}}function qN(t,e,A,i,o){let g=this.declaredInputs[i],n=Zw(t)||VN(t,{previous:Pi,current:null}),s=n.current||(n.current={}),r=n.previous,I=r[g];s[g]=new dl(I&&I.currentValue,A,r===Pi),Tw(t,e,o,A)}var Pw="__ngSimpleChanges__";function Zw(t){return t[Pw]||null}function VN(t,e){return t[Pw]=e}var vf=null;var Ee=function(t,e=null,A){vf?.(t,e,A)},qw="svg",WN="math";function Zi(t){for(;Array.isArray(t);)t=t[ji];return t}function zN(t){for(;Array.isArray(t);){if(typeof t[pd]=="object")return t;t=t[ji]}return null}function Vw(t,e){return Zi(e[t])}function Xi(t,e){return Zi(e[t.index])}function Md(t,e){return t.data[e]}function Rd(t,e){return t[e]}function qi(t,e){let A=e[t];return Ag(A)?A:A[ji]}function jN(t){return(t[vA]&4)===4}function kd(t){return(t[vA]&128)===128}function XN(t){return No(t[et])}function tg(t,e){return e==null?null:t[e]}function Ww(t){t[jn]=0}function zw(t){t[vA]&1024||(t[vA]|=1024,kd(t)&&Qs(t))}function $N(t,e){for(;t>0;)e=e[Cs],t--;return e}function uB(t){return!!(t[vA]&9216||t[zt]?.dirty)}function hl(t){t[ko].changeDetectionScheduler?.notify(8),t[vA]&64&&(t[vA]|=1024),uB(t)&&Qs(t)}function Qs(t){t[ko].changeDetectionScheduler?.notify(0);let e=Tg(t);for(;e!==null&&!(e[vA]&8192||(e[vA]|=8192,!kd(e)));)e=Tg(e)}function jw(t,e){if(Xr(t))throw new U(911,!1);t[$o]===null&&(t[$o]=[]),t[$o].push(e)}function AG(t,e){if(t[$o]===null)return;let A=t[$o].indexOf(e);A!==-1&&t[$o].splice(A,1)}function Tg(t){let e=t[et];return No(e)?e[et]:e}function Fd(t){return t[YC]??=[]}function bd(t){return t.cleanup??=[]}function eG(t,e,A,i){let o=Fd(e);o.push(A),t.firstCreatePass&&bd(t).push(i,o.length-1)}var JA={lFrame:op(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ul=!1;function tG(){return JA.lFrame.elementDepthCount}function iG(){JA.lFrame.elementDepthCount++}function oG(){JA.lFrame.elementDepthCount--}function Sd(){return JA.bindingsEnabled}function Xw(){return JA.skipHydrationRootTNode!==null}function gG(t){return JA.skipHydrationRootTNode===t}function nG(){JA.skipHydrationRootTNode=null}function kA(){return JA.lFrame.lView}function he(){return JA.lFrame.tView}function H(t){return JA.lFrame.contextLView=t,t[xe]}function T(t){return JA.lFrame.contextLView=null,t}function je(){let t=$w();for(;t!==null&&t.type===64;)t=t.parent;return t}function $w(){return JA.lFrame.currentTNode}function sG(){let t=JA.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function jg(t,e){let A=JA.lFrame;A.currentTNode=t,A.isParent=e}function Nd(){return JA.lFrame.isParent}function Gd(){JA.lFrame.isParent=!1}function rG(){return JA.lFrame.contextLView}function Ap(){return ul}function TC(t){let e=ul;return ul=t,e}function $r(){let t=JA.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function IG(t){return JA.lFrame.bindingIndex=t}function ig(){return JA.lFrame.bindingIndex++}function ep(t){let e=JA.lFrame,A=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,A}function aG(){return JA.lFrame.inI18n}function CG(t,e){let A=JA.lFrame;A.bindingIndex=A.bindingRootIndex=t,Dl(e)}function BG(){return JA.lFrame.currentDirectiveIndex}function Dl(t){JA.lFrame.currentDirectiveIndex=t}function vd(t){let e=JA.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Ld(){return JA.lFrame.currentQueryIndex}function DB(t){JA.lFrame.currentQueryIndex=t}function QG(t){let e=t[xA];return e.type===2?e.declTNode:e.type===1?t[pt]:null}function tp(t,e,A){if(A&ZA.SkipSelf){let o=e,g=t;for(;o=o.parent,o===null&&!(A&ZA.Host);)if(o=QG(g),o===null||(g=g[Cs],o.type&10))break;if(o===null)return!1;e=o,t=g}let i=JA.lFrame=ip();return i.currentTNode=e,i.lView=t,!0}function Kd(t){let e=ip(),A=t[xA];JA.lFrame=e,e.currentTNode=A.firstChild,e.lView=t,e.tView=A,e.contextLView=t,e.bindingIndex=A.bindingStartIndex,e.inI18n=!1}function ip(){let t=JA.lFrame,e=t===null?null:t.child;return e===null?op(t):e}function op(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function gp(){let t=JA.lFrame;return JA.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var np=gp;function Ud(){let t=gp();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function EG(t){return(JA.lFrame.contextLView=$N(t,JA.lFrame.contextLView))[xe]}function og(){return JA.lFrame.selectedIndex}function Og(t){JA.lFrame.selectedIndex=t}function AI(){let t=JA.lFrame;return Md(t.tView,t.selectedIndex)}function at(){JA.lFrame.currentNamespace=qw}function Xg(){cG()}function cG(){JA.lFrame.currentNamespace=null}function lG(){return JA.lFrame.currentNamespace}var sp=!0;function mB(){return sp}function fB(t){sp=t}function dG(t,e,A){let{ngOnChanges:i,ngOnInit:o,ngDoCheck:g}=e.type.prototype;if(i){let n=Ow(e);(A.preOrderHooks??=[]).push(t,n),(A.preOrderCheckHooks??=[]).push(t,n)}o&&(A.preOrderHooks??=[]).push(0-t,o),g&&((A.preOrderHooks??=[]).push(t,g),(A.preOrderCheckHooks??=[]).push(t,g))}function _d(t,e){for(let A=e.directiveStart,i=e.directiveEnd;A<i;A++){let g=t.data[A].type.prototype,{ngAfterContentInit:n,ngAfterContentChecked:s,ngAfterViewInit:r,ngAfterViewChecked:I,ngOnDestroy:B}=g;n&&(t.contentHooks??=[]).push(-A,n),s&&((t.contentHooks??=[]).push(A,s),(t.contentCheckHooks??=[]).push(A,s)),r&&(t.viewHooks??=[]).push(-A,r),I&&((t.viewHooks??=[]).push(A,I),(t.viewCheckHooks??=[]).push(A,I)),B!=null&&(t.destroyHooks??=[]).push(A,B)}}function SC(t,e,A){rp(t,e,3,A)}function NC(t,e,A,i){(t[vA]&3)===A&&rp(t,e,A,i)}function $c(t,e){let A=t[vA];(A&3)===e&&(A&=16383,A+=1,t[vA]=A)}function rp(t,e,A,i){let o=i!==void 0?t[jn]&65535:0,g=i??-1,n=e.length-1,s=0;for(let r=o;r<n;r++)if(typeof e[r+1]=="number"){if(s=e[r],i!=null&&s>=i)break}else e[r]<0&&(t[jn]+=65536),(s<g||g==-1)&&(hG(t,A,e,r),t[jn]=(t[jn]&4294901760)+r+2),r++}function Lf(t,e){Ee(4,t,e);let A=OA(null);try{e.call(t)}finally{OA(A),Ee(5,t,e)}}function hG(t,e,A,i){let o=A[i]<0,g=A[i+1],n=o?-A[i]:A[i],s=t[n];o?t[vA]>>14<t[jn]>>16&&(t[vA]&3)===e&&(t[vA]+=16384,Lf(s,g)):Lf(s,g)}var es=-1,Pg=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,A,i){this.factory=e,this.canSeeViewProviders=A,this.injectImpl=i}};function uG(t){return(t.flags&8)!==0}function DG(t){return(t.flags&16)!==0}function mG(t,e,A){let i=0;for(;i<A.length;){let o=A[i];if(typeof o=="number"){if(o!==0)break;i++;let g=A[i++],n=A[i++],s=A[i++];t.setAttribute(e,n,s,g)}else{let g=o,n=A[++i];fG(g)?t.setProperty(e,g,n):t.setAttribute(e,g,n),i++}}return i}function Ip(t){return t===3||t===4||t===6}function fG(t){return t.charCodeAt(0)===64}function ss(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let A=-1;for(let i=0;i<e.length;i++){let o=e[i];typeof o=="number"?A=o:A===0||(A===-1||A===2?Kf(t,A,o,null,e[++i]):Kf(t,A,o,null,null))}}return t}function Kf(t,e,A,i,o){let g=0,n=t.length;if(e===-1)n=-1;else for(;g<t.length;){let s=t[g++];if(typeof s=="number"){if(s===e){n=-1;break}else if(s>e){n=g-1;break}}}for(;g<t.length;){let s=t[g];if(typeof s=="number")break;if(s===A){o!==null&&(t[g+1]=o);return}g++,o!==null&&g++}n!==-1&&(t.splice(n,0,e),g=n+1),t.splice(g++,0,A),o!==null&&t.splice(g++,0,o)}function ap(t){return t!==es}function OC(t){return t&32767}function wG(t){return t>>16}function PC(t,e){let A=wG(t),i=e;for(;A>0;)i=i[Cs],A--;return i}var ml=!0;function ZC(t){let e=ml;return ml=t,e}var pG=256,Cp=pG-1,Bp=5,yG=0,Oi={};function MG(t,e,A){let i;typeof A=="string"?i=A.charCodeAt(0)||0:A.hasOwnProperty(xr)&&(i=A[xr]),i==null&&(i=A[xr]=yG++);let o=i&Cp,g=1<<o;e.data[t+(o>>Bp)]|=g}function qC(t,e){let A=Qp(t,e);if(A!==-1)return A;let i=e[xA];i.firstCreatePass&&(t.injectorIndex=e.length,Al(i.data,t),Al(e,null),Al(i.blueprint,null));let o=xd(t,e),g=t.injectorIndex;if(ap(o)){let n=OC(o),s=PC(o,e),r=s[xA].data;for(let I=0;I<8;I++)e[g+I]=s[n+I]|r[n+I]}return e[g+8]=o,g}function Al(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Qp(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function xd(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let A=0,i=null,o=e;for(;o!==null;){if(i=hp(o),i===null)return es;if(A++,o=o[Cs],i.injectorIndex!==-1)return i.injectorIndex|A<<16}return es}function fl(t,e,A){MG(t,e,A)}function RG(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let A=t.attrs;if(A){let i=A.length,o=0;for(;o<i;){let g=A[o];if(Ip(g))break;if(g===0)o=o+2;else if(typeof g=="number")for(o++;o<i&&typeof A[o]=="string";)o++;else{if(g===e)return A[o+1];o=o+2}}}return null}function Ep(t,e,A){if(A&ZA.Optional||t!==void 0)return t;Dd(e,"NodeInjector")}function cp(t,e,A,i){if(A&ZA.Optional&&i===void 0&&(i=null),(A&(ZA.Self|ZA.Host))===0){let o=t[gs],g=dt(void 0);try{return o?o.get(e,i,A&ZA.Optional):bw(e,i,A&ZA.Optional)}finally{dt(g)}}return Ep(i,e,A)}function lp(t,e,A,i=ZA.Default,o){if(t!==null){if(e[vA]&2048&&!(i&ZA.Self)){let n=SG(t,e,A,i,Oi);if(n!==Oi)return n}let g=dp(t,e,A,i,Oi);if(g!==Oi)return g}return cp(e,A,i,o)}function dp(t,e,A,i,o){let g=FG(A);if(typeof g=="function"){if(!tp(e,t,i))return i&ZA.Host?Ep(o,A,i):cp(e,A,i,o);try{let n;if(n=g(i),n==null&&!(i&ZA.Optional))Dd(A);else return n}finally{np()}}else if(typeof g=="number"){let n=null,s=Qp(t,e),r=es,I=i&ZA.Host?e[Lt][pt]:null;for((s===-1||i&ZA.SkipSelf)&&(r=s===-1?xd(t,e):e[s+8],r===es||!_f(i,!1)?s=-1:(n=e[xA],s=OC(r),e=PC(r,e)));s!==-1;){let B=e[xA];if(Uf(g,s,B.data)){let c=kG(s,e,A,n,i,I);if(c!==Oi)return c}r=e[s+8],r!==es&&_f(i,e[xA].data[s+8]===I)&&Uf(g,s,e)?(n=B,s=OC(r),e=PC(r,e)):s=-1}}return o}function kG(t,e,A,i,o,g){let n=e[xA],s=n.data[t+8],r=i==null?Bs(s)&&ml:i!=n&&(s.type&3)!==0,I=o&ZA.Host&&g===s,B=GC(s,n,A,r,I);return B!==null?Tr(e,n,B,s):Oi}function GC(t,e,A,i,o){let g=t.providerIndexes,n=e.data,s=g&1048575,r=t.directiveStart,I=t.directiveEnd,B=g>>20,c=i?s:s+B,D=o?s+B:I;for(let h=c;h<D;h++){let p=n[h];if(h<r&&A===p||h>=r&&p.type===A)return h}if(o){let h=n[r];if(h&&li(h)&&h.type===A)return r}return null}function Tr(t,e,A,i){let o=t[A],g=e.data;if(o instanceof Pg){let n=o;n.resolving&&kw(uN(g[A]));let s=ZC(n.canSeeViewProviders);n.resolving=!0;let r,I=n.injectImpl?dt(n.injectImpl):null,B=tp(t,i,ZA.Default);try{o=t[A]=n.factory(void 0,g,t,i),e.firstCreatePass&&A>=i.directiveStart&&dG(A,g[A],e)}finally{I!==null&&dt(I),ZC(s),n.resolving=!1,np()}}return o}function FG(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(xr)?t[xr]:void 0;return typeof e=="number"?e>=0?e&Cp:bG:e}function Uf(t,e,A){let i=1<<t;return!!(A[e+(t>>Bp)]&i)}function _f(t,e){return!(t&ZA.Self)&&!(t&ZA.Host&&e)}var _g=class{_tNode;_lView;constructor(e,A){this._tNode=e,this._lView=A}get(e,A,i){return lp(this._tNode,this._lView,e,BB(i),A)}};function bG(){return new _g(je(),kA())}function WA(t){return Vr(()=>{let e=t.prototype.constructor,A=e[LC]||wl(e),i=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){let g=o[LC]||wl(o);if(g&&g!==A)return g;o=Object.getPrototypeOf(o)}return g=>new g})}function wl(t){return ww(t)?()=>{let e=wl(ze(t));return e&&e()}:xg(t)}function SG(t,e,A,i,o){let g=t,n=e;for(;g!==null&&n!==null&&n[vA]&2048&&!HC(n);){let s=dp(g,n,A,i|ZA.Self,Oi);if(s!==Oi)return s;let r=g.parent;if(!r){let I=n[Hw];if(I){let B=I.get(A,Oi,i);if(B!==Oi)return B}r=hp(n),n=n[Cs]}g=r}return o}function hp(t){let e=t[xA],A=e.type;return A===2?e.declTNode:A===1?t[pt]:null}function Yd(t){return RG(je(),t)}function xf(t,e=null,A=null,i){let o=up(t,e,A,i);return o.resolveInjectorInitializers(),o}function up(t,e=null,A=null,i,o=new Set){let g=[A||It,vN(t)];return i=i||(typeof t=="object"?void 0:ht(t)),new Jr(g,e||lB(),i||null,o)}var yA=class t{static THROW_IF_NOT_FOUND=Ug;static NULL=new xC;static create(e,A){if(Array.isArray(e))return xf({name:""},A,e,"");{let i=e.name??"";return xf({name:i},e.parent,e.providers,i)}}static \u0275prov=N({token:t,providedIn:"any",factory:()=>J(Gw)});static __NG_ELEMENT_ID__=-1};var Dt=class{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>Yd(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},NG=new k("");NG.__NG_ELEMENT_ID__=t=>{let e=je();if(e===null)throw new U(204,!1);if(e.type&2)return e.value;if(t&ZA.Optional)return null;throw new U(204,!1)};var Dp=!1,Es=(()=>{class t{static __NG_ELEMENT_ID__=GG;static __NG_ENV_ID__=A=>A}return t})(),VC=class extends Es{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return jw(this._lView,e),()=>AG(this._lView,e)}};function GG(){return new VC(kA())}var Zg=class{},Jd=new k("",{providedIn:"root",factory:()=>!1});var mp=new k(""),fp=new k(""),Go=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Ae(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let A=this.taskId++;return this.pendingTasks.add(A),A}has(A){return this.pendingTasks.has(A)}remove(A){this.pendingTasks.delete(A),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})();var pl=class extends K{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Jw()&&(this.destroyRef=Q(Es,{optional:!0})??void 0,this.pendingTasks=Q(Go,{optional:!0})??void 0)}emit(e){let A=OA(null);try{super.next(e)}finally{OA(A)}}subscribe(e,A,i){let o=e,g=A||(()=>null),n=i;if(e&&typeof e=="object"){let r=e;o=r.next?.bind(r),g=r.error?.bind(r),n=r.complete?.bind(r)}this.__isAsync&&(g=this.wrapInTimeout(g),o&&(o=this.wrapInTimeout(o)),n&&(n=this.wrapInTimeout(n)));let s=super.subscribe({next:o,error:g,complete:n});return e instanceof NA&&e.add(s),s}wrapInTimeout(e){return A=>{let i=this.pendingTasks?.add();setTimeout(()=>{e(A),i!==void 0&&this.pendingTasks?.remove(i)})}}},$=pl;function Or(...t){}function wp(t){let e,A;function i(){t=Or;try{A!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(A),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(A=requestAnimationFrame(()=>{t(),i()})),()=>i()}function Yf(t){return queueMicrotask(()=>t()),()=>{t=Or}}var Hd="isAngularZone",WC=Hd+"_ID",vG=0,X=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new $(!1);onMicrotaskEmpty=new $(!1);onStable=new $(!1);onError=new $(!1);constructor(e){let{enableLongStackTrace:A=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:g=Dp}=e;if(typeof Zone>"u")throw new U(908,!1);Zone.assertZonePatched();let n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),A&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=!o&&i,n.shouldCoalesceRunChangeDetection=o,n.callbackScheduled=!1,n.scheduleInRootZone=g,UG(n)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Hd)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new U(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new U(909,!1)}run(e,A,i){return this._inner.run(e,A,i)}runTask(e,A,i,o){let g=this._inner,n=g.scheduleEventTask("NgZoneEvent: "+o,e,LG,Or,Or);try{return g.runTask(n,A,i)}finally{g.cancelTask(n)}}runGuarded(e,A,i){return this._inner.runGuarded(e,A,i)}runOutsideAngular(e){return this._outer.run(e)}},LG={};function Td(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function KG(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){wp(()=>{t.callbackScheduled=!1,yl(t),t.isCheckStableRunning=!0,Td(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),yl(t)}function UG(t){let e=()=>{KG(t)},A=vG++;t._inner=t._inner.fork({name:"angular",properties:{[Hd]:!0,[WC]:A,[WC+A]:!0},onInvokeTask:(i,o,g,n,s,r)=>{if(_G(r))return i.invokeTask(g,n,s,r);try{return Jf(t),i.invokeTask(g,n,s,r)}finally{(t.shouldCoalesceEventChangeDetection&&n.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Hf(t)}},onInvoke:(i,o,g,n,s,r,I)=>{try{return Jf(t),i.invoke(g,n,s,r,I)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!xG(r)&&e(),Hf(t)}},onHasTask:(i,o,g,n)=>{i.hasTask(g,n),o===g&&(n.change=="microTask"?(t._hasPendingMicrotasks=n.microTask,yl(t),Td(t)):n.change=="macroTask"&&(t.hasPendingMacrotasks=n.macroTask))},onHandleError:(i,o,g,n)=>(i.handleError(g,n),t.runOutsideAngular(()=>t.onError.emit(n)),!1)})}function yl(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Jf(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Hf(t){t._nesting--,Td(t)}var zC=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new $;onMicrotaskEmpty=new $;onStable=new $;onError=new $;run(e,A,i){return e.apply(A,i)}runGuarded(e,A,i){return e.apply(A,i)}runOutsideAngular(e){return e()}runTask(e,A,i,o){return e.apply(A,i)}};function _G(t){return pp(t,"__ignore_ng_zone__")}function xG(t){return pp(t,"__scheduler_tick__")}function pp(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function YG(t="zone.js",e){return t==="noop"?new zC:t==="zone.js"?new X(e):t}var mt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},JG=new k("",{providedIn:"root",factory:()=>{let t=Q(X),e=Q(mt);return A=>t.runOutsideAngular(()=>e.handleError(A))}});function Tf(t,e){return mw(t,e)}function HG(t){return mw(Dw,t)}var yp=(Tf.required=HG,Tf);function TG(){return cs(je(),kA())}function cs(t,e){return new Z(Xi(t,e))}var Z=(()=>{class t{nativeElement;constructor(A){this.nativeElement=A}static __NG_ELEMENT_ID__=TG}return t})();function Mp(t){return t instanceof Z?t.nativeElement:t}function gg(t){return typeof t=="function"&&t[Et]!==void 0}function _t(t,e){let A=Nc(t,e?.equal),i=A[Et];return A.set=o=>Rr(i,o),A.update=o=>Gc(i,o),A.asReadonly=OG.bind(A),A}function OG(){let t=this[Et];if(t.readonlyFn===void 0){let e=()=>this();e[Et]=t,t.readonlyFn=e}return t.readonlyFn}function Rp(t){return gg(t)&&typeof t.set=="function"}function PG(){return this._results[Symbol.iterator]()}var Vi=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new K}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,A){return this._results.reduce(e,A)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,A){this.dirty=!1;let i=FN(e);(this._changesDetected=!kN(this._results,i,A))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=PG};function kp(t){return(t.flags&128)===128}var Fp=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Fp||{}),bp=new Map,ZG=0;function qG(){return ZG++}function VG(t){bp.set(t[dB],t)}function Ml(t){bp.delete(t[dB])}var Of="__ngContext__";function ls(t,e){Ag(e)?(t[Of]=e[dB],VG(e)):t[Of]=e}function Sp(t){return Gp(t[Hr])}function Np(t){return Gp(t[ci])}function Gp(t){for(;t!==null&&!No(t);)t=t[ci];return t}var Rl;function vp(t){Rl=t}function Lp(){if(Rl!==void 0)return Rl;if(typeof document<"u")return document;throw new U(210,!1)}var ds=new k("",{providedIn:"root",factory:()=>WG}),WG="ng",Od=new k(""),jt=new k("",{providedIn:"platform",factory:()=>"unknown"});var ee=new k(""),eI=new k("",{providedIn:"root",factory:()=>Lp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var zG="h",jG="b";var Kp=!1,XG=new k("",{providedIn:"root",factory:()=>Kp});var Pd=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(Pd||{}),hs=new k(""),Pf=new Set;function $g(t){Pf.has(t)||(Pf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Zd=(()=>{class t{view;node;constructor(A,i){this.view=A,this.node=i}static __NG_ELEMENT_ID__=$G}return t})();function $G(){return new Zd(kA(),je())}var Xn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Xn||{}),Up=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),Av=[Xn.EarlyRead,Xn.Write,Xn.MixedReadWrite,Xn.Read],ev=(()=>{class t{ngZone=Q(X);scheduler=Q(Zg);errorHandler=Q(mt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){Q(hs,{optional:!0})}execute(){let A=this.sequences.size>0;A&&Ee(16),this.executing=!0;for(let i of Av)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[i]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let g=o.hooks[i];return g(o.pipelinedValue)},o.snapshot))}catch(g){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(g)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),A&&Ee(17)}register(A){let{view:i}=A;i!==void 0?((i[As]??=[]).push(A),Qs(i),i[vA]|=8192):this.executing?this.deferredRegistrations.add(A):this.addSequence(A)}addSequence(A){this.sequences.add(A),this.scheduler.notify(7)}unregister(A){this.executing&&this.sequences.has(A)?(A.erroredOrDestroyed=!0,A.pipelinedValue=void 0,A.once=!0):(this.sequences.delete(A),this.deferredRegistrations.delete(A))}maybeTrace(A,i){return i?i.run(Pd.AFTER_NEXT_RENDER,A):A()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),kl=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,A,i,o,g,n=null){this.impl=e,this.hooks=A,this.view=i,this.once=o,this.snapshot=n,this.unregisterOnDestroy=g?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[As];e&&(this.view[As]=e.filter(A=>A!==this))}};function tI(t,e){!e?.injector&&wd(tI);let A=e?.injector??Q(yA);return $g("NgAfterRender"),_p(t,A,e,!1)}function Ke(t,e){!e?.injector&&wd(Ke);let A=e?.injector??Q(yA);return $g("NgAfterNextRender"),_p(t,A,e,!0)}function tv(t,e){if(t instanceof Function){let A=[void 0,void 0,void 0,void 0];return A[e]=t,A}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function _p(t,e,A,i){let o=e.get(Up);o.impl??=e.get(ev);let g=e.get(hs,null,{optional:!0}),n=A?.phase??Xn.MixedReadWrite,s=A?.manualCleanup!==!0?e.get(Es):null,r=e.get(Zd,null,{optional:!0}),I=new kl(o.impl,tv(t,n),r?.view,i,s,g?.snapshot(null));return o.impl.register(I),I}var iv=()=>null;function xp(t,e,A=!1){return iv(t,e,A)}function Yp(t,e){let A=t.contentQueries;if(A!==null){let i=OA(null);try{for(let o=0;o<A.length;o+=2){let g=A[o],n=A[o+1];if(n!==-1){let s=t.data[n];DB(g),s.contentQueries(2,e[n],n)}}}finally{OA(i)}}}function Fl(t,e,A){DB(0);let i=OA(null);try{e(t,A)}finally{OA(i)}}function qd(t,e,A){if(yd(e)){let i=OA(null);try{let o=e.directiveStart,g=e.directiveEnd;for(let n=o;n<g;n++){let s=t.data[n];if(s.contentQueries){let r=A[n];s.contentQueries(1,r,n)}}}finally{OA(i)}}}var Wi=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Wi||{}),yC;function ov(){if(yC===void 0&&(yC=null,ut.trustedTypes))try{yC=ut.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return yC}function wB(t){return ov()?.createHTML(t)||t}var MC;function gv(){if(MC===void 0&&(MC=null,ut.trustedTypes))try{MC=ut.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return MC}function Zf(t){return gv()?.createHTML(t)||t}var bo=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${uw})`}},bl=class extends bo{getTypeName(){return"HTML"}},Sl=class extends bo{getTypeName(){return"Style"}},Nl=class extends bo{getTypeName(){return"Script"}},Gl=class extends bo{getTypeName(){return"URL"}},vl=class extends bo{getTypeName(){return"ResourceURL"}};function di(t){return t instanceof bo?t.changingThisBreaksApplicationSecurity:t}function ng(t,e){let A=nv(t);if(A!=null&&A!==e){if(A==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${A} (see ${uw})`)}return A===e}function nv(t){return t instanceof bo&&t.getTypeName()||null}function Jp(t){return new bl(t)}function Hp(t){return new Sl(t)}function Tp(t){return new Nl(t)}function Op(t){return new Gl(t)}function Pp(t){return new vl(t)}function sv(t){let e=new Kl(t);return rv()?new Ll(e):e}var Ll=class{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let A=new window.DOMParser().parseFromString(wB(e),"text/html").body;return A===null?this.inertDocumentHelper.getInertBodyElement(e):(A.firstChild?.remove(),A)}catch{return null}}},Kl=class{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let A=this.inertDocument.createElement("template");return A.innerHTML=wB(e),A}};function rv(){try{return!!new window.DOMParser().parseFromString(wB(""),"text/html")}catch{return!1}}var Iv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function pB(t){return t=String(t),t.match(Iv)?t:"unsafe:"+t}function vo(t){let e={};for(let A of t.split(","))e[A]=!0;return e}function iI(...t){let e={};for(let A of t)for(let i in A)A.hasOwnProperty(i)&&(e[i]=!0);return e}var Zp=vo("area,br,col,hr,img,wbr"),qp=vo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vp=vo("rp,rt"),av=iI(Vp,qp),Cv=iI(qp,vo("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")),Bv=iI(Vp,vo("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")),qf=iI(Zp,Cv,Bv,av),Wp=vo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Qv=vo("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"),Ev=vo("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"),cv=iI(Wp,Qv,Ev),lv=vo("script,style,template"),Ul=class{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let A=e.firstChild,i=!0,o=[];for(;A;){if(A.nodeType===Node.ELEMENT_NODE?i=this.startElement(A):A.nodeType===Node.TEXT_NODE?this.chars(A.nodeValue):this.sanitizedSomething=!0,i&&A.firstChild){o.push(A),A=uv(A);continue}for(;A;){A.nodeType===Node.ELEMENT_NODE&&this.endElement(A);let g=hv(A);if(g){A=g;break}A=o.pop()}}return this.buf.join("")}startElement(e){let A=Vf(e).toLowerCase();if(!qf.hasOwnProperty(A))return this.sanitizedSomething=!0,!lv.hasOwnProperty(A);this.buf.push("<"),this.buf.push(A);let i=e.attributes;for(let o=0;o<i.length;o++){let g=i.item(o),n=g.name,s=n.toLowerCase();if(!cv.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let r=g.value;Wp[s]&&(r=pB(r)),this.buf.push(" ",n,'="',Wf(r),'"')}return this.buf.push(">"),!0}endElement(e){let A=Vf(e).toLowerCase();qf.hasOwnProperty(A)&&!Zp.hasOwnProperty(A)&&(this.buf.push("</"),this.buf.push(A),this.buf.push(">"))}chars(e){this.buf.push(Wf(e))}};function dv(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function hv(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw zp(e);return e}function uv(t){let e=t.firstChild;if(e&&dv(t,e))throw zp(e);return e}function Vf(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function zp(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Dv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mv=/([^\#-~ |!])/g;function Wf(t){return t.replace(/&/g,"&amp;").replace(Dv,function(e){let A=e.charCodeAt(0),i=e.charCodeAt(1);return"&#"+((A-55296)*1024+(i-56320)+65536)+";"}).replace(mv,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var RC;function Vd(t,e){let A=null;try{RC=RC||sv(t);let i=e?String(e):"";A=RC.getInertBodyElement(i);let o=5,g=i;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,i=g,g=A.innerHTML,A=RC.getInertBodyElement(i)}while(i!==g);let s=new Ul().sanitizeChildren(zf(A)||A);return wB(s)}finally{if(A){let i=zf(A)||A;for(;i.firstChild;)i.firstChild.remove()}}}function zf(t){return"content"in t&&fv(t)?t.content:null}function fv(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ve=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ve||{});function jp(t){let e=Xp();return e?Zf(e.sanitize(Ve.HTML,t)||""):ng(t,"HTML")?Zf(di(t)):Vd(Lp(),Wr(t))}function An(t){let e=Xp();return e?e.sanitize(Ve.URL,t)||"":ng(t,"URL")?di(t):pB(Wr(t))}function Xp(){let t=kA();return t&&t[ko].sanitizer}var wv=/^>|^->|<!--|-->|--!>|<!-$/g,pv=/(<|>)/g,yv="\u200B$1\u200B";function Mv(t){return t.replace(wv,e=>e.replace(pv,yv))}function $p(t){return t instanceof Function?t():t}function Rv(t,e,A){let i=t.length;for(;;){let o=t.indexOf(e,A);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let g=e.length;if(o+g===i||t.charCodeAt(o+g)<=32)return o}A=o+1}}var Ay="ng-template";function kv(t,e,A,i){let o=0;if(i){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&Rv(e[o+1].toLowerCase(),A,0)!==-1)return!0}else if(Wd(t))return!1;if(o=e.indexOf(1,o),o>-1){let g;for(;++o<e.length&&typeof(g=e[o])=="string";)if(g.toLowerCase()===A)return!0}return!1}function Wd(t){return t.type===4&&t.value!==Ay}function Fv(t,e,A){let i=t.type===4&&!A?Ay:t.value;return e===i}function bv(t,e,A){let i=4,o=t.attrs,g=o!==null?Gv(o):0,n=!1;for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number"){if(!n&&!Qi(i)&&!Qi(r))return!1;if(n&&Qi(r))continue;n=!1,i=r|i&1;continue}if(!n)if(i&4){if(i=2|i&1,r!==""&&!Fv(t,r,A)||r===""&&e.length===1){if(Qi(i))return!1;n=!0}}else if(i&8){if(o===null||!kv(t,o,r,A)){if(Qi(i))return!1;n=!0}}else{let I=e[++s],B=Sv(r,o,Wd(t),A);if(B===-1){if(Qi(i))return!1;n=!0;continue}if(I!==""){let c;if(B>g?c="":c=o[B+1].toLowerCase(),i&2&&I!==c){if(Qi(i))return!1;n=!0}}}}return Qi(i)||n}function Qi(t){return(t&1)===0}function Sv(t,e,A,i){if(e===null)return-1;let o=0;if(i||!A){let g=!1;for(;o<e.length;){let n=e[o];if(n===t)return o;if(n===3||n===6)g=!0;else if(n===1||n===2){let s=e[++o];for(;typeof s=="string";)s=e[++o];continue}else{if(n===4)break;if(n===0){o+=4;continue}}o+=g?1:2}return-1}else return vv(e,t)}function ey(t,e,A=!1){for(let i=0;i<e.length;i++)if(bv(t,e[i],A))return!0;return!1}function Nv(t){let e=t.attrs;if(e!=null){let A=e.indexOf(5);if((A&1)===0)return e[A+1]}return null}function Gv(t){for(let e=0;e<t.length;e++){let A=t[e];if(Ip(A))return e}return t.length}function vv(t,e){let A=t.indexOf(4);if(A>-1)for(A++;A<t.length;){let i=t[A];if(typeof i=="number")return-1;if(i===e)return A;A++}return-1}function Lv(t,e){A:for(let A=0;A<e.length;A++){let i=e[A];if(t.length===i.length){for(let o=0;o<t.length;o++)if(t[o]!==i[o])continue A;return!0}}return!1}function jf(t,e){return t?":not("+e.trim()+")":e}function Kv(t){let e=t[0],A=1,i=2,o="",g=!1;for(;A<t.length;){let n=t[A];if(typeof n=="string")if(i&2){let s=t[++A];o+="["+n+(s.length>0?'="'+s+'"':"")+"]"}else i&8?o+="."+n:i&4&&(o+=" "+n);else o!==""&&!Qi(n)&&(e+=jf(g,o),o=""),i=n,g=g||!Qi(i);A++}return o!==""&&(e+=jf(g,o)),e}function Uv(t){return t.map(Kv).join(",")}function _v(t){let e=[],A=[],i=1,o=2;for(;i<t.length;){let g=t[i];if(typeof g=="string")o===2?g!==""&&e.push(g,t[++i]):o===8&&A.push(g);else{if(!Qi(o))break;o=g}i++}return A.length&&e.push(1,...A),e}var hi={};function xv(t,e){return t.createText(e)}function Yv(t,e,A){t.setValue(e,A)}function Jv(t,e){return t.createComment(Mv(e))}function ty(t,e,A){return t.createElement(e,A)}function jC(t,e,A,i,o){t.insertBefore(e,A,i,o)}function iy(t,e,A){t.appendChild(e,A)}function Xf(t,e,A,i,o){i!==null?jC(t,e,A,i,o):iy(t,e,A)}function Hv(t,e,A){t.removeChild(null,e,A)}function Tv(t,e,A){t.setAttribute(e,"style",A)}function Ov(t,e,A){A===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",A)}function oy(t,e,A){let{mergedAttrs:i,classes:o,styles:g}=A;i!==null&&mG(t,e,i),o!==null&&Ov(t,e,o),g!==null&&Tv(t,e,g)}function zd(t,e,A,i,o,g,n,s,r,I,B){let c=Ye+i,D=c+o,h=Pv(c,D),p=typeof I=="function"?I():I;return h[xA]={type:t,blueprint:h,template:A,queries:null,viewQuery:s,declTNode:e,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:D,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof g=="function"?g():g,pipeRegistry:typeof n=="function"?n():n,firstChild:null,schemas:r,consts:p,incompleteFirstPass:!1,ssrId:B}}function Pv(t,e){let A=[];for(let i=0;i<e;i++)A.push(i<t?null:hi);return A}function Zv(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=zd(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function jd(t,e,A,i,o,g,n,s,r,I,B){let c=e.blueprint.slice();return c[ji]=o,c[vA]=i|4|128|8|64|1024,(I!==null||t&&t[vA]&2048)&&(c[vA]|=2048),Ww(c),c[et]=c[Cs]=t,c[xe]=A,c[ko]=n||t&&t[ko],c[fe]=s||t&&t[fe],c[gs]=r||t&&t[gs]||null,c[pt]=g,c[dB]=qG(),c[os]=B,c[Hw]=I,c[Lt]=e.type==2?t[Lt]:c,c}function qv(t,e,A){let i=Xi(e,t),o=Zv(A),g=t[ko].rendererFactory,n=Xd(t,jd(t,o,null,gy(A),i,e,null,g.createRenderer(i,A),null,null,null));return t[e.index]=n}function gy(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function ny(t,e,A,i){if(A===0)return-1;let o=e.length;for(let g=0;g<A;g++)e.push(i),t.blueprint.push(i),t.data.push(null);return o}function Xd(t,e){return t[Hr]?t[Gf][ci]=e:t[Hr]=e,t[Gf]=e,e}function f(t=1){sy(he(),kA(),og()+t,!1)}function sy(t,e,A,i){if(!i)if((e[vA]&3)===3){let g=t.preOrderCheckHooks;g!==null&&SC(e,g,A)}else{let g=t.preOrderHooks;g!==null&&NC(e,g,0,A)}Og(A)}var yB=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(yB||{});function _l(t,e,A,i){let o=OA(null);try{let[g,n,s]=t.inputs[A],r=null;(n&yB.SignalBased)!==0&&(r=e[g][Et]),r!==null&&r.transformFn!==void 0?i=r.transformFn(i):s!==null&&(i=s.call(e,i)),t.setInput!==null?t.setInput(e,r,i,A,g):Tw(e,r,g,i)}finally{OA(o)}}function ry(t,e,A,i,o){let g=og(),n=i&2;try{Og(-1),n&&e.length>Ye&&sy(t,e,Ye,!1),Ee(n?2:0,o),A(i,o)}finally{Og(g),Ee(n?3:1,o)}}function MB(t,e,A){$v(t,e,A),(A.flags&64)===64&&AL(t,e,A)}function $d(t,e,A=Xi){let i=e.localNames;if(i!==null){let o=e.index+1;for(let g=0;g<i.length;g+=2){let n=i[g+1],s=n===-1?A(e,t):t[n];t[o++]=s}}}function Vv(t,e,A,i){let g=i.get(XG,Kp)||A===Wi.ShadowDom,n=t.selectRootElement(e,g);return Wv(n),n}function Wv(t){zv(t)}var zv=()=>null;function jv(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function RB(t,e,A,i,o,g,n,s){if(!s&&eh(e,t,A,i,o)){Bs(e)&&Xv(A,e.index);return}if(e.type&3){let r=Xi(e,A);i=jv(i),o=n!=null?n(o,e.value||"",i):o,g.setProperty(r,i,o)}else e.type&12}function Xv(t,e){let A=qi(e,t);A[vA]&16||(A[vA]|=64)}function $v(t,e,A){let i=A.directiveStart,o=A.directiveEnd;Bs(A)&&qv(e,A,t.data[i+A.componentOffset]),t.firstCreatePass||qC(A,e);let g=A.initialInputs;for(let n=i;n<o;n++){let s=t.data[n],r=Tr(e,t,n,A);if(ls(r,e),g!==null&&oL(e,n-i,r,s,A,g),li(s)){let I=qi(A.index,e);I[xe]=Tr(e,t,n,A)}}}function AL(t,e,A){let i=A.directiveStart,o=A.directiveEnd,g=A.index,n=BG();try{Og(g);for(let s=i;s<o;s++){let r=t.data[s],I=e[s];Dl(s),(r.hostBindings!==null||r.hostVars!==0||r.hostAttrs!==null)&&eL(r,I)}}finally{Og(-1),Dl(n)}}function eL(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function Ah(t,e){let A=t.directiveRegistry,i=null;if(A)for(let o=0;o<A.length;o++){let g=A[o];ey(e,g.selectors,!1)&&(i??=[],li(g)?i.unshift(g):i.push(g))}return i}function tL(t,e,A,i,o,g){let n=Xi(t,e);iL(e[fe],n,g,t.value,A,i,o)}function iL(t,e,A,i,o,g,n){if(g==null)t.removeAttribute(e,o,A);else{let s=n==null?Wr(g):n(g,i||"",o);t.setAttribute(e,o,s,A)}}function oL(t,e,A,i,o,g){let n=g[e];if(n!==null)for(let s=0;s<n.length;s+=2){let r=n[s],I=n[s+1];_l(i,A,r,I)}}function Iy(t,e,A){return(t===null||li(t))&&(A=zN(A[e.index])),A[fe]}function gL(t,e){let A=t[gs],i=A?A.get(mt,null):null;i&&i.handleError(e)}function eh(t,e,A,i,o){let g=t.inputs?.[i],n=t.hostDirectiveInputs?.[i],s=!1;if(n)for(let r=0;r<n.length;r+=2){let I=n[r],B=n[r+1],c=e.data[I];_l(c,A[I],B,o),s=!0}if(g)for(let r of g){let I=A[r],B=e.data[r];_l(B,I,i,o),s=!0}return s}function nL(t,e){let A=qi(e,t),i=A[xA];sL(i,A);let o=A[ji];o!==null&&A[os]===null&&(A[os]=xp(o,A[gs])),Ee(18),th(i,A,A[xe]),Ee(19,A[xe])}function sL(t,e){for(let A=e.length;A<t.blueprint.length;A++)e.push(t.blueprint[A])}function th(t,e,A){Kd(e);try{let i=t.viewQuery;i!==null&&Fl(1,i,A);let o=t.template;o!==null&&ry(t,e,o,1,A),t.firstCreatePass&&(t.firstCreatePass=!1),e[Fo]?.finishViewCreation(t),t.staticContentQueries&&Yp(t,e),t.staticViewQueries&&Fl(2,t.viewQuery,A);let g=t.components;g!==null&&rL(e,g)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{e[vA]&=-5,Ud()}}function rL(t,e){for(let A=0;A<e.length;A++)nL(t,e[A])}function oI(t,e,A,i){let o=OA(null);try{let g=e.tView,s=t[vA]&4096?4096:16,r=jd(t,g,A,s,null,e,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),I=t[e.index];r[Yg]=I;let B=t[Fo];return B!==null&&(r[Fo]=B.createEmbeddedView(g)),th(g,r,A),r}finally{OA(o)}}function rs(t,e){return!e||e.firstChild===null||kp(t)}var IL;function ih(t,e){return IL(t,e)}var zi=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(zi||{});function oh(t){return(t.flags&32)===32}function $n(t,e,A,i,o){if(i!=null){let g,n=!1;No(i)?g=i:Ag(i)&&(n=!0,i=i[ji]);let s=Zi(i);t===0&&A!==null?o==null?iy(e,A,s):jC(e,A,s,o||null,!0):t===1&&A!==null?jC(e,A,s,o||null,!0):t===2?Hv(e,s,n):t===3&&e.destroyNode(s),g!=null&&uL(e,t,g,A,o)}}function aL(t,e){ay(t,e),e[ji]=null,e[pt]=null}function CL(t,e,A,i,o,g){i[ji]=o,i[pt]=e,bB(t,i,A,1,o,g)}function ay(t,e){e[ko].changeDetectionScheduler?.notify(9),bB(t,e,e[fe],2,null,null)}function BL(t){let e=t[Hr];if(!e)return el(t[xA],t);for(;e;){let A=null;if(Ag(e))A=e[Hr];else{let i=e[At];i&&(A=i)}if(!A){for(;e&&!e[ci]&&e!==t;)Ag(e)&&el(e[xA],e),e=e[et];e===null&&(e=t),Ag(e)&&el(e[xA],e),A=e&&e[ci]}e=A}}function gh(t,e){let A=t[ns],i=A.indexOf(e);A.splice(i,1)}function kB(t,e){if(Xr(e))return;let A=e[fe];A.destroyNode&&bB(t,e,A,3,null,null),BL(e)}function el(t,e){if(Xr(e))return;let A=OA(null);try{e[vA]&=-129,e[vA]|=256,e[zt]&&Mr(e[zt]),EL(t,e),QL(t,e),e[xA].type===1&&e[fe].destroy();let i=e[Yg];if(i!==null&&No(e[et])){i!==e[et]&&gh(i,e);let o=e[Fo];o!==null&&o.detachView(t)}Ml(e)}finally{OA(A)}}function QL(t,e){let A=t.cleanup,i=e[YC];if(A!==null)for(let n=0;n<A.length-1;n+=2)if(typeof A[n]=="string"){let s=A[n+3];s>=0?i[s]():i[-s].unsubscribe(),n+=2}else{let s=i[A[n+1]];A[n].call(s)}i!==null&&(e[YC]=null);let o=e[$o];if(o!==null){e[$o]=null;for(let n=0;n<o.length;n++){let s=o[n];s()}}let g=e[Jg];if(g!==null){e[Jg]=null;for(let n of g)n.destroy()}}function EL(t,e){let A;if(t!=null&&(A=t.destroyHooks)!=null)for(let i=0;i<A.length;i+=2){let o=e[A[i]];if(!(o instanceof Pg)){let g=A[i+1];if(Array.isArray(g))for(let n=0;n<g.length;n+=2){let s=o[g[n]],r=g[n+1];Ee(4,s,r);try{r.call(s)}finally{Ee(5,s,r)}}else{Ee(4,o,g);try{g.call(o)}finally{Ee(5,o,g)}}}}}function Cy(t,e,A){return cL(t,e.parent,A)}function cL(t,e,A){let i=e;for(;i!==null&&i.type&168;)e=i,i=e.parent;if(i===null)return A[ji];if(Bs(i)){let{encapsulation:o}=t.data[i.directiveStart+i.componentOffset];if(o===Wi.None||o===Wi.Emulated)return null}return Xi(i,A)}function By(t,e,A){return dL(t,e,A)}function lL(t,e,A){return t.type&40?Xi(t,A):null}var dL=lL,$f;function FB(t,e,A,i){let o=Cy(t,i,e),g=e[fe],n=i.parent||e[pt],s=By(n,i,e);if(o!=null)if(Array.isArray(A))for(let r=0;r<A.length;r++)Xf(g,o,A[r],s,!1);else Xf(g,o,A,s,!1);$f!==void 0&&$f(g,i,e,A,o)}function _r(t,e){if(e!==null){let A=e.type;if(A&3)return Xi(e,t);if(A&4)return xl(-1,t[e.index]);if(A&8){let i=e.child;if(i!==null)return _r(t,i);{let o=t[e.index];return No(o)?xl(-1,o):Zi(o)}}else{if(A&128)return _r(t,e.next);if(A&32)return ih(e,t)()||Zi(t[e.index]);{let i=Qy(t,e);if(i!==null){if(Array.isArray(i))return i[0];let o=Tg(t[Lt]);return _r(o,i)}else return _r(t,e.next)}}}return null}function Qy(t,e){if(e!==null){let i=t[Lt][pt],o=e.projection;return i.projection[o]}return null}function xl(t,e){let A=At+t+1;if(A<e.length){let i=e[A],o=i[xA].firstChild;if(o!==null)return _r(i,o)}return e[Hg]}function nh(t,e,A,i,o,g,n){for(;A!=null;){if(A.type===128){A=A.next;continue}let s=i[A.index],r=A.type;if(n&&e===0&&(s&&ls(Zi(s),i),A.flags|=2),!oh(A))if(r&8)nh(t,e,A.child,i,o,g,!1),$n(e,t,o,s,g);else if(r&32){let I=ih(A,i),B;for(;B=I();)$n(e,t,o,B,g);$n(e,t,o,s,g)}else r&16?Ey(t,e,i,A,o,g):$n(e,t,o,s,g);A=n?A.projectionNext:A.next}}function bB(t,e,A,i,o,g){nh(A,i,t.firstChild,e,o,g,!1)}function hL(t,e,A){let i=e[fe],o=Cy(t,A,e),g=A.parent||e[pt],n=By(g,A,e);Ey(i,0,e,A,o,n)}function Ey(t,e,A,i,o,g){let n=A[Lt],r=n[pt].projection[i.projection];if(Array.isArray(r))for(let I=0;I<r.length;I++){let B=r[I];$n(e,t,o,B,g)}else{let I=r,B=n[et];kp(i)&&(I.flags|=128),nh(t,e,I,B,o,g,!0)}}function uL(t,e,A,i,o){let g=A[Hg],n=Zi(A);g!==n&&$n(e,t,i,g,o);for(let s=At;s<A.length;s++){let r=A[s];bB(r[xA],r,t,e,i,g)}}function DL(t,e,A,i,o){if(e)o?t.addClass(A,i):t.removeClass(A,i);else{let g=i.indexOf("-")===-1?void 0:zi.DashCase;o==null?t.removeStyle(A,i,g):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),g|=zi.Important),t.setStyle(A,i,o,g))}}function XC(t,e,A,i,o=!1){for(;A!==null;){if(A.type===128){A=o?A.projectionNext:A.next;continue}let g=e[A.index];g!==null&&i.push(Zi(g)),No(g)&&mL(g,i);let n=A.type;if(n&8)XC(t,e,A.child,i);else if(n&32){let s=ih(A,e),r;for(;r=s();)i.push(r)}else if(n&16){let s=Qy(e,A);if(Array.isArray(s))i.push(...s);else{let r=Tg(e[Lt]);XC(r[xA],r,s,i,!0)}}A=o?A.projectionNext:A.next}return i}function mL(t,e){for(let A=At;A<t.length;A++){let i=t[A],o=i[xA].firstChild;o!==null&&XC(i[xA],i,o,e)}t[Hg]!==t[ji]&&e.push(t[Hg])}function cy(t){if(t[As]!==null){for(let e of t[As])e.impl.addSequence(e);t[As].length=0}}var ly=[];function fL(t){return t[zt]??wL(t)}function wL(t){let e=ly.pop()??Object.create(yL);return e.lView=t,e}function pL(t){t.lView[zt]!==t&&(t.lView=null,ly.push(t))}var yL=hA(R({},_n),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Qs(t.lView)},consumerOnSignalRead(){this.lView[zt]=this}});function ML(t){let e=t[zt]??Object.create(RL);return e.lView=t,e}var RL=hA(R({},_n),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=Tg(t.lView);for(;e&&!dy(e[xA]);)e=Tg(e);e&&zw(e)},consumerOnSignalRead(){this.lView[zt]=this}});function dy(t){return t.type!==2}function hy(t){if(t[Jg]===null)return;let e=!0;for(;e;){let A=!1;for(let i of t[Jg])i.dirty&&(A=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));e=A&&!!(t[vA]&8192)}}var kL=100;function uy(t,e=!0,A=0){let o=t[ko].rendererFactory,g=!1;g||o.begin?.();try{FL(t,A)}catch(n){throw e&&gL(t,n),n}finally{g||o.end?.()}}function FL(t,e){let A=Ap();try{TC(!0),Yl(t,e);let i=0;for(;uB(t);){if(i===kL)throw new U(103,!1);i++,Yl(t,1)}}finally{TC(A)}}function bL(t,e,A,i){if(Xr(e))return;let o=e[vA],g=!1,n=!1;Kd(e);let s=!0,r=null,I=null;g||(dy(t)?(I=fL(e),r=yr(I)):Rc()===null?(s=!1,I=ML(e),r=yr(I)):e[zt]&&(Mr(e[zt]),e[zt]=null));try{Ww(e),IG(t.bindingStartIndex),A!==null&&ry(t,e,A,2,i);let B=(o&3)===3;if(!g)if(B){let h=t.preOrderCheckHooks;h!==null&&SC(e,h,null)}else{let h=t.preOrderHooks;h!==null&&NC(e,h,0,null),$c(e,0)}if(n||SL(e),hy(e),Dy(e,0),t.contentQueries!==null&&Yp(t,e),!g)if(B){let h=t.contentCheckHooks;h!==null&&SC(e,h)}else{let h=t.contentHooks;h!==null&&NC(e,h,1),$c(e,1)}GL(t,e);let c=t.components;c!==null&&fy(e,c,0);let D=t.viewQuery;if(D!==null&&Fl(2,D,i),!g)if(B){let h=t.viewCheckHooks;h!==null&&SC(e,h)}else{let h=t.viewHooks;h!==null&&NC(e,h,2),$c(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Xc]){for(let h of e[Xc])h();e[Xc]=null}g||(cy(e),e[vA]&=-73)}catch(B){throw g||Qs(e),B}finally{I!==null&&(Za(I,r),s&&pL(I)),Ud()}}function Dy(t,e){for(let A=Sp(t);A!==null;A=Np(A))for(let i=At;i<A.length;i++){let o=A[i];my(o,e)}}function SL(t){for(let e=Sp(t);e!==null;e=Np(e)){if(!(e[vA]&2))continue;let A=e[ns];for(let i=0;i<A.length;i++){let o=A[i];zw(o)}}}function NL(t,e,A){Ee(18);let i=qi(e,t);my(i,A),Ee(19,i[xe])}function my(t,e){kd(t)&&Yl(t,e)}function Yl(t,e){let i=t[xA],o=t[vA],g=t[zt],n=!!(e===0&&o&16);if(n||=!!(o&64&&e===0),n||=!!(o&1024),n||=!!(g?.dirty&&qa(g)),n||=!1,g&&(g.dirty=!1),t[vA]&=-9217,n)bL(i,t,i.template,t[xe]);else if(o&8192){hy(t),Dy(t,1);let s=i.components;s!==null&&fy(t,s,1),cy(t)}}function fy(t,e,A){for(let i=0;i<e.length;i++)NL(t,e[i],A)}function GL(t,e){let A=t.hostBindingOpCodes;if(A!==null)try{for(let i=0;i<A.length;i++){let o=A[i];if(o<0)Og(~o);else{let g=o,n=A[++i],s=A[++i];CG(n,g);let r=e[g];Ee(24,r),s(2,r),Ee(25,r)}}}finally{Og(-1)}}function sh(t,e){let A=Ap()?64:1088;for(t[ko].changeDetectionScheduler?.notify(e);t;){t[vA]|=A;let i=Tg(t);if(HC(t)&&!i)return t;t=i}return null}function wy(t,e,A,i){return[t,!0,0,e,null,i,null,A,null,null]}function py(t,e){let A=At+e;if(A<t.length)return t[A]}function gI(t,e,A,i=!0){let o=e[xA];if(vL(o,e,t,A),i){let n=xl(A,t),s=e[fe],r=s.parentNode(t[Hg]);r!==null&&CL(o,t[pt],s,e,r,n)}let g=e[os];g!==null&&g.firstChild!==null&&(g.firstChild=null)}function yy(t,e){let A=Pr(t,e);return A!==void 0&&kB(A[xA],A),A}function Pr(t,e){if(t.length<=At)return;let A=At+e,i=t[A];if(i){let o=i[Yg];o!==null&&o!==t&&gh(o,i),e>0&&(t[A-1][ci]=i[ci]);let g=_C(t,At+e);aL(i[xA],i);let n=g[Fo];n!==null&&n.detachView(g[xA]),i[et]=null,i[ci]=null,i[vA]&=-129}return i}function vL(t,e,A,i){let o=At+i,g=A.length;i>0&&(A[o-1][ci]=e),i<g-At?(e[ci]=A[o],Nw(A,At+i,e)):(A.push(e),e[ci]=null),e[et]=A;let n=e[Yg];n!==null&&A!==n&&My(n,e);let s=e[Fo];s!==null&&s.insertView(t),hl(e),e[vA]|=128}function My(t,e){let A=t[ns],i=e[et];if(Ag(i))t[vA]|=2;else{let o=i[et][Lt];e[Lt]!==o&&(t[vA]|=2)}A===null?t[ns]=[e]:A.push(e)}var Zr=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,A=e[xA];return XC(A,e,A.firstChild,[])}constructor(e,A,i=!0){this._lView=e,this._cdRefInjectingView=A,this.notifyErrorHandler=i}get context(){return this._lView[xe]}set context(e){this._lView[xe]=e}get destroyed(){return Xr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[et];if(No(e)){let A=e[JC],i=A?A.indexOf(this):-1;i>-1&&(Pr(e,i),_C(A,i))}this._attachedToViewContainer=!1}kB(this._lView[xA],this._lView)}onDestroy(e){jw(this._lView,e)}markForCheck(){sh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[vA]&=-129}reattach(){hl(this._lView),this._lView[vA]|=128}detectChanges(){this._lView[vA]|=1024,uy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new U(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=HC(this._lView),A=this._lView[Yg];A!==null&&!e&&gh(A,this._lView),ay(this._lView[xA],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new U(902,!1);this._appRef=e;let A=HC(this._lView),i=this._lView[Yg];i!==null&&!A&&My(i,this._lView),hl(this._lView)}};var ne=(()=>{class t{static __NG_ELEMENT_ID__=UL}return t})(),LL=ne,KL=class extends LL{_declarationLView;_declarationTContainer;elementRef;constructor(e,A,i){super(),this._declarationLView=e,this._declarationTContainer=A,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,A){return this.createEmbeddedViewImpl(e,A)}createEmbeddedViewImpl(e,A,i){let o=oI(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:A,dehydratedView:i});return new Zr(o)}};function UL(){return SB(je(),kA())}function SB(t,e){return t.type&4?new KL(e,t,cs(t,e)):null}function nI(t,e,A,i,o){let g=t.data[e];if(g===null)g=_L(t,e,A,i,o),aG()&&(g.flags|=32);else if(g.type&64){g.type=A,g.value=i,g.attrs=o;let n=sG();g.injectorIndex=n===null?-1:n.injectorIndex}return jg(g,!0),g}function _L(t,e,A,i,o){let g=$w(),n=Nd(),s=n?g:g&&g.parent,r=t.data[e]=YL(t,s,A,e,i,o);return xL(t,r,g,n),r}function xL(t,e,A,i){t.firstChild===null&&(t.firstChild=e),A!==null&&(i?A.child==null&&e.parent!==null&&(A.child=e):A.next===null&&(A.next=e,e.prev=A))}function YL(t,e,A,i,o,g){let n=e?e.injectorIndex:-1,s=0;return Xw()&&(s|=128),{type:A,index:i,insertBeforeIndex:null,injectorIndex:n,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,attrs:g,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var j5=new RegExp(`^(\\d+)*(${jG}|${zG})*(.*)`);var JL=()=>null;function Is(t,e){return JL(t,e)}var HL=class{},Ry=class{},Jl=class{resolveComponentFactory(e){throw Error(`No component factory found for ${ht(e)}.`)}},NB=class{static NULL=new Jl},tt=class{},Me=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>TL()}return t})();function TL(){let t=kA(),e=je(),A=qi(e.index,t);return(Ag(A)?A:t)[fe]}var OL=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>null})}return t})();var tl={},Hl=class{injector;parentInjector;constructor(e,A){this.injector=e,this.parentInjector=A}get(e,A,i){i=BB(i);let o=this.injector.get(e,tl,i);return o!==tl||A===tl?o:this.parentInjector.get(e,A,i)}};function Tl(t,e,A){let i=A?t.styles:null,o=A?t.classes:null,g=0;if(e!==null)for(let n=0;n<e.length;n++){let s=e[n];if(typeof s=="number")g=s;else if(g==1)o=al(o,s);else if(g==2){let r=s,I=e[++n];i=al(i,r+": "+I+";")}}A?t.styles=i:t.stylesWithoutHost=i,A?t.classes=o:t.classesWithoutHost=o}function AA(t,e=ZA.Default){let A=kA();if(A===null)return J(t,e);let i=je();return lp(i,A,ze(t),e)}function ky(){let t="invalid";throw new Error(t)}function rh(t,e,A,i,o){let g=i===null?null:{"":-1},n=o(t,A);if(n!==null){let s,r=null,I=null,B=ZL(n);B===null?s=n:[s,r,I]=B,WL(t,e,A,s,g,r,I)}g!==null&&i!==null&&PL(A,i,g)}function PL(t,e,A){let i=t.localNames=[];for(let o=0;o<e.length;o+=2){let g=A[e[o+1]];if(g==null)throw new U(-301,!1);i.push(e[o],g)}}function ZL(t){let e=null,A=!1;for(let n=0;n<t.length;n++){let s=t[n];if(n===0&&li(s)&&(e=s),s.findHostDirectiveDefs!==null){A=!0;break}}if(!A)return null;let i=null,o=null,g=null;for(let n of t)n.findHostDirectiveDefs!==null&&(i??=[],o??=new Map,g??=new Map,qL(n,i,g,o)),n===e&&(i??=[],i.push(n));return i!==null?(i.push(...e===null?t:t.slice(1)),[i,o,g]):null}function qL(t,e,A,i){let o=e.length;t.findHostDirectiveDefs(t,e,i),A.set(t,[o,e.length-1])}function VL(t,e,A){e.componentOffset=A,(t.components??=[]).push(e.index)}function WL(t,e,A,i,o,g,n){let s=i.length,r=!1;for(let D=0;D<s;D++){let h=i[D];!r&&li(h)&&(r=!0,VL(t,A,D)),fl(qC(A,e),t,h.type)}eK(A,t.data.length,s);for(let D=0;D<s;D++){let h=i[D];h.providersResolver&&h.providersResolver(h)}let I=!1,B=!1,c=ny(t,e,s,null);s>0&&(A.directiveToIndex=new Map);for(let D=0;D<s;D++){let h=i[D];if(A.mergedAttrs=ss(A.mergedAttrs,h.hostAttrs),jL(t,A,e,c,h),AK(c,h,o),n!==null&&n.has(h)){let[y,L]=n.get(h);A.directiveToIndex.set(h.type,[c,y+A.directiveStart,L+A.directiveStart])}else(g===null||!g.has(h))&&A.directiveToIndex.set(h.type,c);h.contentQueries!==null&&(A.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(A.flags|=64);let p=h.type.prototype;!I&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((t.preOrderHooks??=[]).push(A.index),I=!0),!B&&(p.ngOnChanges||p.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(A.index),B=!0),c++}zL(t,A,g)}function zL(t,e,A){for(let i=e.directiveStart;i<e.directiveEnd;i++){let o=t.data[i];if(A===null||!A.has(o))Aw(0,e,o,i),Aw(1,e,o,i),tw(e,i,!1);else{let g=A.get(o);ew(0,e,g,i),ew(1,e,g,i),tw(e,i,!0)}}}function Aw(t,e,A,i){let o=t===0?A.inputs:A.outputs;for(let g in o)if(o.hasOwnProperty(g)){let n;t===0?n=e.inputs??={}:n=e.outputs??={},n[g]??=[],n[g].push(i),Fy(e,g)}}function ew(t,e,A,i){let o=t===0?A.inputs:A.outputs;for(let g in o)if(o.hasOwnProperty(g)){let n=o[g],s;t===0?s=e.hostDirectiveInputs??={}:s=e.hostDirectiveOutputs??={},s[n]??=[],s[n].push(i,g),Fy(e,n)}}function Fy(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function tw(t,e,A){let{attrs:i,inputs:o,hostDirectiveInputs:g}=t;if(i===null||!A&&o===null||A&&g===null||Wd(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let n=null,s=0;for(;s<i.length;){let r=i[s];if(r===0){s+=4;continue}else if(r===5){s+=2;continue}else if(typeof r=="number")break;if(!A&&o.hasOwnProperty(r)){let I=o[r];for(let B of I)if(B===e){n??=[],n.push(r,i[s+1]);break}}else if(A&&g.hasOwnProperty(r)){let I=g[r];for(let B=0;B<I.length;B+=2)if(I[B]===e){n??=[],n.push(I[B+1],i[s+1]);break}}s+=2}t.initialInputs??=[],t.initialInputs.push(n)}function jL(t,e,A,i,o){t.data[i]=o;let g=o.factory||(o.factory=xg(o.type,!0)),n=new Pg(g,li(o),AA);t.blueprint[i]=n,A[i]=n,XL(t,e,i,ny(t,A,o.hostVars,hi),o)}function XL(t,e,A,i,o){let g=o.hostBindings;if(g){let n=t.hostBindingOpCodes;n===null&&(n=t.hostBindingOpCodes=[]);let s=~e.index;$L(n)!=s&&n.push(s),n.push(A,i,g)}}function $L(t){let e=t.length;for(;e>0;){let A=t[--e];if(typeof A=="number"&&A<0)return A}return 0}function AK(t,e,A){if(A){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)A[e.exportAs[i]]=t;li(e)&&(A[""]=t)}}function eK(t,e,A){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+A,t.providerIndexes=e}function by(t,e,A,i,o,g,n,s){let r=e.consts,I=tg(r,n),B=nI(e,t,2,i,I);return g&&rh(e,A,B,tg(r,s),o),B.mergedAttrs=ss(B.mergedAttrs,B.attrs),B.attrs!==null&&Tl(B,B.attrs,!1),B.mergedAttrs!==null&&Tl(B,B.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,B),B}function Sy(t,e){_d(t,e),yd(e)&&t.queries.elementEnd(e)}var $C=class extends NB{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let A=eg(e);return new qg(A,this.ngModule)}};function tK(t){return Object.keys(t).map(e=>{let[A,i,o]=t[e],g={propName:A,templateName:e,isSignal:(i&yB.SignalBased)!==0};return o&&(g.transform=o),g})}function iK(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function oK(t,e,A){let i=e instanceof Le?e:e?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new Hl(A,i):A}function gK(t){let e=t.get(tt,null);if(e===null)throw new U(407,!1);let A=t.get(OL,null),i=t.get(Zg,null);return{rendererFactory:e,sanitizer:A,changeDetectionScheduler:i}}function nK(t,e){let A=(t.selectors[0][0]||"div").toLowerCase();return ty(e,A,A==="svg"?qw:A==="math"?WN:null)}var qg=class extends Ry{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=tK(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=iK(this.componentDef.outputs),this.cachedOutputs}constructor(e,A){super(),this.componentDef=e,this.ngModule=A,this.componentType=e.type,this.selector=Uv(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!A}create(e,A,i,o){Ee(22);let g=OA(null);try{let n=this.componentDef,s=i?["ng-version","19.2.5"]:_v(this.componentDef.selectors[0]),r=zd(0,null,null,1,0,null,null,null,null,[s],null),I=oK(n,o||this.ngModule,e),B=gK(I),c=B.rendererFactory.createRenderer(null,n),D=i?Vv(c,i,n.encapsulation,I):nK(n,c),h=jd(null,r,null,512|gy(n),null,null,B,c,I,null,xp(D,I,!0));h[Ye]=D,Kd(h);let p=null;try{let y=by(Ye,r,h,"#host",()=>[this.componentDef],!0,0);D&&(oy(c,D,y),ls(D,h)),MB(r,h,y),qd(r,y,h),Sy(r,y),A!==void 0&&sK(y,this.ngContentSelectors,A),p=qi(y.index,h),h[xe]=p[xe],th(r,h,null)}catch(y){throw p!==null&&Ml(p),Ml(h),y}finally{Ee(23),Ud()}return new Ol(this.componentType,h)}finally{OA(g)}}},Ol=class extends HL{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,A){super(),this._rootLView=A,this._tNode=Md(A[xA],Ye),this.location=cs(this._tNode,A),this.instance=qi(this._tNode.index,A)[xe],this.hostView=this.changeDetectorRef=new Zr(A,void 0,!1),this.componentType=e}setInput(e,A){let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),A))return;let o=this._rootLView,g=eh(i,o[xA],o,e,A);this.previousInputValues.set(e,A);let n=qi(i.index,o);sh(n,1)}get injector(){return new _g(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function sK(t,e,A){let i=t.projection=[];for(let o=0;o<e.length;o++){let g=A[o];i.push(g!=null&&g.length?Array.from(g):null)}}var Ce=(()=>{class t{static __NG_ELEMENT_ID__=rK}return t})();function rK(){let t=je();return Gy(t,kA())}var IK=Ce,Ny=class extends IK{_lContainer;_hostTNode;_hostLView;constructor(e,A,i){super(),this._lContainer=e,this._hostTNode=A,this._hostLView=i}get element(){return cs(this._hostTNode,this._hostLView)}get injector(){return new _g(this._hostTNode,this._hostLView)}get parentInjector(){let e=xd(this._hostTNode,this._hostLView);if(ap(e)){let A=PC(e,this._hostLView),i=OC(e),o=A[xA].data[i+8];return new _g(o,A)}else return new _g(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let A=iw(this._lContainer);return A!==null&&A[e]||null}get length(){return this._lContainer.length-At}createEmbeddedView(e,A,i){let o,g;typeof i=="number"?o=i:i!=null&&(o=i.index,g=i.injector);let n=Is(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(A||{},g,n);return this.insertImpl(s,o,rs(this._hostTNode,n)),s}createComponent(e,A,i,o,g){let n=e&&!PN(e),s;if(n)s=A;else{let p=A||{};s=p.index,i=p.injector,o=p.projectableNodes,g=p.environmentInjector||p.ngModuleRef}let r=n?e:new qg(eg(e)),I=i||this.parentInjector;if(!g&&r.ngModule==null){let y=(n?I:this.parentInjector).get(Le,null);y&&(g=y)}let B=eg(r.componentType??{}),c=Is(this._lContainer,B?.id??null),D=c?.firstChild??null,h=r.create(I,o,D,g);return this.insertImpl(h.hostView,s,rs(this._hostTNode,c)),h}insert(e,A){return this.insertImpl(e,A,!0)}insertImpl(e,A,i){let o=e._lView;if(XN(o)){let s=this.indexOf(e);if(s!==-1)this.detach(s);else{let r=o[et],I=new Ny(r,r[pt],r[et]);I.detach(I.indexOf(e))}}let g=this._adjustIndex(A),n=this._lContainer;return gI(n,o,g,i),e.attachToViewContainerRef(),Nw(il(n),g,e),e}move(e,A){return this.insert(e,A)}indexOf(e){let A=iw(this._lContainer);return A!==null?A.indexOf(e):-1}remove(e){let A=this._adjustIndex(e,-1),i=Pr(this._lContainer,A);i&&(_C(il(this._lContainer),A),kB(i[xA],i))}detach(e){let A=this._adjustIndex(e,-1),i=Pr(this._lContainer,A);return i&&_C(il(this._lContainer),A)!=null?new Zr(i):null}_adjustIndex(e,A=0){return e??this.length+A}};function iw(t){return t[JC]}function il(t){return t[JC]||(t[JC]=[])}function Gy(t,e){let A,i=e[t.index];return No(i)?A=i:(A=wy(i,e,null,t),e[t.index]=A,Xd(e,A)),CK(A,e,t,i),new Ny(A,t,e)}function aK(t,e){let A=t[fe],i=A.createComment(""),o=Xi(e,t),g=A.parentNode(o);return jC(A,g,i,A.nextSibling(o),!1),i}var CK=EK,BK=()=>!1;function QK(t,e,A){return BK(t,e,A)}function EK(t,e,A,i){if(t[Hg])return;let o;A.type&8?o=Zi(i):o=aK(e,A),t[Hg]=o}var Pl=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Zl=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let A=e.queries;if(A!==null){let i=e.contentQueries!==null?e.contentQueries[0]:A.length,o=[];for(let g=0;g<i;g++){let n=A.getByIndex(g),s=this.queries[n.indexInDeclarationView];o.push(s.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let A=0;A<this.queries.length;A++)ah(e,A).matches!==null&&this.queries[A].setDirty()}},AB=class{flags;read;predicate;constructor(e,A,i=null){this.flags=A,this.read=i,typeof e=="string"?this.predicate=DK(e):this.predicate=e}},ql=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,A){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,A)}elementEnd(e){for(let A=0;A<this.queries.length;A++)this.queries[A].elementEnd(e)}embeddedTView(e){let A=null;for(let i=0;i<this.length;i++){let o=A!==null?A.length:0,g=this.getByIndex(i).embeddedTView(e,o);g&&(g.indexInDeclarationView=i,A!==null?A.push(g):A=[g])}return A!==null?new t(A):null}template(e,A){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,A)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Vl=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,A=-1){this.metadata=e,this._declarationNodeIndex=A}elementStart(e,A){this.isApplyingToNode(A)&&this.matchTNode(e,A)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,A){this.elementStart(e,A)}embeddedTView(e,A){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,A),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let A=this._declarationNodeIndex,i=e.parent;for(;i!==null&&i.type&8&&i.index!==A;)i=i.parent;return A===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(e,A){let i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){let g=i[o];this.matchTNodeWithReadOption(e,A,cK(A,g)),this.matchTNodeWithReadOption(e,A,GC(A,e,g,!1,!1))}else i===ne?A.type&4&&this.matchTNodeWithReadOption(e,A,-1):this.matchTNodeWithReadOption(e,A,GC(A,e,i,!1,!1))}matchTNodeWithReadOption(e,A,i){if(i!==null){let o=this.metadata.read;if(o!==null)if(o===Z||o===Ce||o===ne&&A.type&4)this.addMatch(A.index,-2);else{let g=GC(A,e,o,!1,!1);g!==null&&this.addMatch(A.index,g)}else this.addMatch(A.index,i)}}addMatch(e,A){this.matches===null?this.matches=[e,A]:this.matches.push(e,A)}};function cK(t,e){let A=t.localNames;if(A!==null){for(let i=0;i<A.length;i+=2)if(A[i]===e)return A[i+1]}return null}function lK(t,e){return t.type&11?cs(t,e):t.type&4?SB(t,e):null}function dK(t,e,A,i){return A===-1?lK(e,t):A===-2?hK(t,e,i):Tr(t,t[xA],A,e)}function hK(t,e,A){if(A===Z)return cs(e,t);if(A===ne)return SB(e,t);if(A===Ce)return Gy(e,t)}function vy(t,e,A,i){let o=e[Fo].queries[i];if(o.matches===null){let g=t.data,n=A.matches,s=[];for(let r=0;n!==null&&r<n.length;r+=2){let I=n[r];if(I<0)s.push(null);else{let B=g[I];s.push(dK(e,B,n[r+1],A.metadata.read))}}o.matches=s}return o.matches}function Wl(t,e,A,i){let o=t.queries.getByIndex(A),g=o.matches;if(g!==null){let n=vy(t,e,o,A);for(let s=0;s<g.length;s+=2){let r=g[s];if(r>0)i.push(n[s/2]);else{let I=g[s+1],B=e[-r];for(let c=At;c<B.length;c++){let D=B[c];D[Yg]===D[et]&&Wl(D[xA],D,I,i)}if(B[ns]!==null){let c=B[ns];for(let D=0;D<c.length;D++){let h=c[D];Wl(h[xA],h,I,i)}}}}}return i}function Ih(t,e){return t[Fo].queries[e].queryList}function Ly(t,e,A){let i=new Vi((A&4)===4);return eG(t,e,i,i.destroy),(e[Fo]??=new Zl).queries.push(new Pl(i))-1}function uK(t,e,A){let i=he();return i.firstCreatePass&&(Uy(i,new AB(t,e,A),-1),(e&2)===2&&(i.staticViewQueries=!0)),Ly(i,kA(),e)}function Ky(t,e,A,i){let o=he();if(o.firstCreatePass){let g=je();Uy(o,new AB(e,A,i),g.index),mK(o,t),(A&2)===2&&(o.staticContentQueries=!0)}return Ly(o,kA(),A)}function DK(t){return t.split(",").map(e=>e.trim())}function Uy(t,e,A){t.queries===null&&(t.queries=new ql),t.queries.track(new Vl(e,A))}function mK(t,e){let A=t.contentQueries||(t.contentQueries=[]),i=A.length?A[A.length-1]:-1;e!==i&&A.push(t.queries.length-1,e)}function ah(t,e){return t.queries.getByIndex(e)}function _y(t,e){let A=t[xA],i=ah(A,e);return i.crossesNgTemplate?Wl(A,t,e,[]):vy(A,t,i,e)}function xy(t,e,A){let i,o=za(()=>{i._dirtyCounter();let g=yK(i,t);if(e&&g===void 0)throw new U(-951,!1);return g});return i=o[Et],i._dirtyCounter=_t(0),i._flatValue=void 0,o}function fK(t){return xy(!0,!1,t)}function wK(t){return xy(!0,!0,t)}function pK(t,e){let A=t[Et];A._lView=kA(),A._queryIndex=e,A._queryList=Ih(A._lView,e),A._queryList.onDirty(()=>A._dirtyCounter.update(i=>i+1))}function yK(t,e){let A=t._lView,i=t._queryIndex;if(A===void 0||i===void 0||A[vA]&4)return e?void 0:It;let o=Ih(A,i),g=_y(A,i);return o.reset(g,Mp),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function ow(t,e){return fK(e)}function MK(t,e){return wK(e)}var Yy=(ow.required=MK,ow);function RK(t){let e=[],A=new Map;function i(o){let g=A.get(o);if(!g){let n=t(o);A.set(o,g=n.then(SK))}return g}return eB.forEach((o,g)=>{let n=[];o.templateUrl&&n.push(i(o.templateUrl).then(I=>{o.template=I}));let s=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=s,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let I=o.styles.length,B=o.styleUrls;o.styleUrls.forEach((c,D)=>{s.push(""),n.push(i(c).then(h=>{s[I+D]=h,B.splice(B.indexOf(c),1),B.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&n.push(i(o.styleUrl).then(I=>{s.push(I),o.styleUrl=void 0}));let r=Promise.all(n).then(()=>NK(g));e.push(r)}),FK(),Promise.all(e).then(()=>{})}var eB=new Map,kK=new Set;function FK(){let t=eB;return eB=new Map,t}function bK(){return eB.size===0}function SK(t){return typeof t=="string"?t:t.text()}function NK(t){kK.delete(t)}var So=class{},Ch=class{};var tB=class extends So{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new $C(this);constructor(e,A,i,o=!0){super(),this.ngModuleType=e,this._parent=A;let g=Lw(e);this._bootstrapComponents=$p(g.bootstrap),this._r3Injector=up(e,A,[{provide:So,useValue:this},{provide:NB,useValue:this.componentFactoryResolver},...i],ht(e),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(A=>A()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},iB=class extends Ch{moduleType;constructor(e){super(),this.moduleType=e}create(e){return new tB(this.moduleType,e,[])}};function GK(t,e,A){return new tB(t,e,A,!1)}var zl=class extends So{injector;componentFactoryResolver=new $C(this);instance=null;constructor(e){super();let A=new Jr([...e.providers,{provide:So,useValue:this},{provide:NB,useValue:this.componentFactoryResolver}],e.parent||lB(),e.debugName,new Set(["environment"]));this.injector=A,e.runEnvironmentInitializers&&A.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function sI(t,e,A=null){return new zl({providers:t,parent:e,debugName:A,runEnvironmentInitializers:!0}).injector}var vK=(()=>{class t{_injector;cachedInjectors=new Map;constructor(A){this._injector=A}getOrCreateStandaloneInjector(A){if(!A.standalone)return null;if(!this.cachedInjectors.has(A)){let i=Uw(!1,A.type),o=i.length>0?sI([i],this._injector,`Standalone[${A.type.name}]`):null;this.cachedInjectors.set(A,o)}return this.cachedInjectors.get(A)}ngOnDestroy(){try{for(let A of this.cachedInjectors.values())A!==null&&A.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=N({token:t,providedIn:"environment",factory:()=>new t(J(Le))})}return t})();function O(t){return Vr(()=>{let e=Jy(t),A=hA(R({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Fp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(vK).getOrCreateStandaloneInjector(A):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Wi.Emulated,styles:t.styles||It,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&$g("NgStandalone"),Hy(A);let i=t.dependencies;return A.directiveDefs=gw(i,!1),A.pipeDefs=gw(i,!0),A.id=xK(A),A})}function LK(t){return eg(t)||Kw(t)}function KK(t){return t!==null}function V(t){return Vr(()=>({type:t.type,bootstrap:t.bootstrap||It,declarations:t.declarations||It,imports:t.imports||It,exports:t.exports||It,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function UK(t,e){if(t==null)return Pi;let A={};for(let i in t)if(t.hasOwnProperty(i)){let o=t[i],g,n,s,r;Array.isArray(o)?(s=o[0],g=o[1],n=o[2]??g,r=o[3]||null):(g=o,n=o,s=yB.None,r=null),A[g]=[i,s,r],e[g]=n}return A}function _K(t){if(t==null)return Pi;let e={};for(let A in t)t.hasOwnProperty(A)&&(e[t[A]]=A);return e}function Y(t){return Vr(()=>{let e=Jy(t);return Hy(e),e})}function GB(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Jy(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Pi,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||It,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:UK(t.inputs,e),outputs:_K(t.outputs),debugInfo:null}}function Hy(t){t.features?.forEach(e=>e(t))}function gw(t,e){if(!t)return null;let A=e?GN:LK;return()=>(typeof t=="function"?t():t).map(i=>A(i)).filter(KK)}function xK(t){let e=0,A=typeof t.consts=="function"?"":t.consts,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,A,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let g of i.join("|"))e=Math.imul(31,e)+g.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function YK(t){return Object.getPrototypeOf(t.prototype).constructor}function EA(t){let e=YK(t.type),A=!0,i=[t];for(;e;){let o;if(li(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new U(903,!1);o=e.\u0275dir}if(o){if(A){i.push(o);let n=t;n.inputs=ol(t.inputs),n.declaredInputs=ol(t.declaredInputs),n.outputs=ol(t.outputs);let s=o.hostBindings;s&&PK(t,s);let r=o.viewQuery,I=o.contentQueries;if(r&&TK(t,r),I&&OK(t,I),JK(t,o),CN(t.outputs,o.outputs),li(o)&&o.data.animation){let B=t.data;B.animation=(B.animation||[]).concat(o.data.animation)}}let g=o.features;if(g)for(let n=0;n<g.length;n++){let s=g[n];s&&s.ngInherit&&s(t),s===EA&&(A=!1)}}e=Object.getPrototypeOf(e)}HK(i)}function JK(t,e){for(let A in e.inputs){if(!e.inputs.hasOwnProperty(A)||t.inputs.hasOwnProperty(A))continue;let i=e.inputs[A];i!==void 0&&(t.inputs[A]=i,t.declaredInputs[A]=e.declaredInputs[A])}}function HK(t){let e=0,A=null;for(let i=t.length-1;i>=0;i--){let o=t[i];o.hostVars=e+=o.hostVars,o.hostAttrs=ss(o.hostAttrs,A=ss(A,o.hostAttrs))}}function ol(t){return t===Pi?{}:t===It?[]:t}function TK(t,e){let A=t.viewQuery;A?t.viewQuery=(i,o)=>{e(i,o),A(i,o)}:t.viewQuery=e}function OK(t,e){let A=t.contentQueries;A?t.contentQueries=(i,o,g)=>{e(i,o,g),A(i,o,g)}:t.contentQueries=e}function PK(t,e){let A=t.hostBindings;A?t.hostBindings=(i,o)=>{e(i,o),A(i,o)}:t.hostBindings=e}function Ty(t){let e=A=>{let i=Array.isArray(t);A.hostDirectives===null?(A.findHostDirectiveDefs=Oy,A.hostDirectives=i?t.map(jl):[t]):i?A.hostDirectives.unshift(...t.map(jl)):A.hostDirectives.unshift(t)};return e.ngInherit=!0,e}function Oy(t,e,A){if(t.hostDirectives!==null)for(let i of t.hostDirectives)if(typeof i=="function"){let o=i();for(let g of o)nw(jl(g),e,A)}else nw(i,e,A)}function nw(t,e,A){let i=Kw(t.directive);ZK(i.declaredInputs,t.inputs),Oy(i,e,A),A.set(i,t),e.push(i)}function jl(t){return typeof t=="function"?{directive:ze(t),inputs:Pi,outputs:Pi}:{directive:ze(t.directive),inputs:sw(t.inputs),outputs:sw(t.outputs)}}function sw(t){if(t===void 0||t.length===0)return Pi;let e={};for(let A=0;A<t.length;A+=2)e[t[A]]=t[A+1];return e}function ZK(t,e){for(let A in e)if(e.hasOwnProperty(A)){let i=e[A],o=t[A];t[i]=o}}function Py(t){return Bh(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function qK(t,e){if(Array.isArray(t))for(let A=0;A<t.length;A++)e(t[A]);else{let A=t[Symbol.iterator](),i;for(;!(i=A.next()).done;)e(i.value)}}function Bh(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Qh(t,e,A){return t[e]=A}function VK(t,e){return t[e]}function Kt(t,e,A){let i=t[e];return Object.is(i,A)?!1:(t[e]=A,!0)}function WK(t,e,A,i){let o=Kt(t,e,A);return Kt(t,e+1,i)||o}function zK(t,e,A,i,o,g,n,s,r){let I=e.consts,B=nI(e,t,4,n||null,s||null);Sd()&&rh(e,A,B,tg(I,r),Ah),B.mergedAttrs=ss(B.mergedAttrs,B.attrs),_d(e,B);let c=B.tView=zd(2,B,i,o,g,e.directiveRegistry,e.pipeRegistry,null,e.schemas,I,null);return e.queries!==null&&(e.queries.template(e,B),c.queries=e.queries.embeddedTView(B)),B}function oB(t,e,A,i,o,g,n,s,r,I){let B=A+Ye,c=e.firstCreatePass?zK(B,e,t,i,o,g,n,s,r):e.data[B];jg(c,!1);let D=jK(e,t,c,A);mB()&&FB(e,t,D,c),ls(D,t);let h=wy(D,t,D,c);return t[B]=h,Xd(t,h),QK(h,c,t),hB(c)&&MB(e,t,c),r!=null&&$d(t,c,I),c}function _(t,e,A,i,o,g,n,s){let r=kA(),I=he(),B=tg(I.consts,g);return oB(r,I,t,e,A,i,o,B,n,s),_}var jK=XK;function XK(t,e,A,i){return fB(!0),e[fe].createComment("")}var Eh=(()=>{class t{log(A){console.log(A)}warn(A){console.warn(A)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var ch=new k(""),rI=new k(""),vB=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(A,i,o){this._ngZone=A,this.registry=i,lh||($K(o),o.addToWindow(i)),this._watchAngularEvents(),A.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let A=this._callbacks.pop();clearTimeout(A.timeoutId),A.doneCb()}});else{let A=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(A)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(A=>({source:A.source,creationLocation:A.creationLocation,data:A.data})):[]}addCallback(A,i,o){let g=-1;i&&i>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(n=>n.timeoutId!==g),A()},i)),this._callbacks.push({doneCb:A,timeoutId:g,updateCb:o})}whenStable(A,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(A,i,o),this._runCallbacksIfReady()}registerApplication(A){this.registry.registerApplication(A,this)}unregisterApplication(A){this.registry.unregisterApplication(A)}findProviders(A,i,o){return[]}static \u0275fac=function(i){return new(i||t)(J(X),J(LB),J(rI))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),LB=(()=>{class t{_applications=new Map;registerApplication(A,i){this._applications.set(A,i)}unregisterApplication(A){this._applications.delete(A)}unregisterAllApplications(){this._applications.clear()}getTestability(A){return this._applications.get(A)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(A,i=!0){return lh?.findTestabilityInTree(this,A,i)??null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function $K(t){lh=t}var lh,Zy=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>new Xl})}return t})(),Xl=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let A=e.zone,i=this.queues.get(A);i.has(e)&&(i.delete(e),this.queuedEffectCount--)}enqueue(e){let A=e.zone;this.queues.has(A)||this.queues.set(A,new Set);let i=this.queues.get(A);i.has(e)||(this.queuedEffectCount++,i.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,A]of this.queues)e===null?this.flushQueue(A):e.run(()=>this.flushQueue(A))}flushQueue(e){for(let A of e)e.delete(A),this.queuedEffectCount--,A.run()}};function sg(t){return!!t&&typeof t.then=="function"}function dh(t){return!!t&&typeof t.subscribe=="function"}var KB=new k("");var qy=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((A,i)=>{this.resolve=A,this.reject=i});appInits=Q(KB,{optional:!0})??[];injector=Q(yA);constructor(){}runInitializers(){if(this.initialized)return;let A=[];for(let o of this.appInits){let g=wt(this.injector,o);if(sg(g))A.push(g);else if(dh(g)){let n=new Promise((s,r)=>{g.subscribe({complete:s,error:r})});A.push(n)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(A).then(()=>{i()}).catch(o=>{this.reject(o)}),A.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hh=new k("");function AU(){Sc(()=>{throw new U(600,!1)})}function eU(t){return t.isBoundToModule}var tU=10;function Vy(t,e){return Array.isArray(e)?e.reduce(Vy,t):R(R({},t),e)}var Ut=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=Q(JG);afterRenderManager=Q(Up);zonelessEnabled=Q(Jd);rootEffectScheduler=Q(Zy);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new K;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=Q(Go).hasPendingTasks.pipe(oA(A=>!A));constructor(){Q(hs,{optional:!0})}whenStable(){let A;return new Promise(i=>{A=this.isStable.subscribe({next:o=>{o&&i()}})}).finally(()=>{A.unsubscribe()})}_injector=Q(Le);_rendererFactory=null;get injector(){return this._injector}bootstrap(A,i){Ee(10);let o=A instanceof Ry;if(!this._injector.get(qy).done){let D="";throw new U(405,D)}let n;o?n=A:n=this._injector.get(NB).resolveComponentFactory(A),this.componentTypes.push(n.componentType);let s=eU(n)?void 0:this._injector.get(So),r=i||n.selector,I=n.create(yA.NULL,[],r,s),B=I.location.nativeElement,c=I.injector.get(ch,null);return c?.registerApplication(B),I.onDestroy(()=>{this.detachView(I.hostView),vC(this.components,I),c?.unregisterApplication(B)}),this._loadComponent(I),Ee(11,I),I}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Ee(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Pd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new U(101,!1);let A=OA(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,OA(A),this.afterTick.next(),Ee(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(tt,null,{optional:!0}));let A=0;for(;this.dirtyFlags!==0&&A++<tU;)Ee(14),this.synchronizeOnce(),Ee(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let A=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i,notifyErrorHandler:o}of this.allViews)iU(i,o,A,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:A})=>uB(A))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(A){let i=A;this._views.push(i),i.attachToAppRef(this)}detachView(A){let i=A;vC(this._views,i),i.detachFromAppRef()}_loadComponent(A){this.attachView(A.hostView),this.tick(),this.components.push(A),this._injector.get(hh,[]).forEach(o=>o(A))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(A=>A()),this._views.slice().forEach(A=>A.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(A){return this._destroyListeners.push(A),()=>vC(this._destroyListeners,A)}destroy(){if(this._destroyed)throw new U(406,!1);let A=this._injector;A.destroy&&!A.destroyed&&A.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vC(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}function iU(t,e,A,i){if(!A&&!uB(t))return;uy(t,e,A&&!i?0:1)}function IA(t,e,A,i){let o=kA(),g=ig();if(Kt(o,g,e)){let n=he(),s=AI();tL(s,o,t,e,A,i)}return IA}function Wy(t,e,A,i){return Kt(t,ig(),A)?e+Wr(A)+i:hi}function kC(t,e){return t<<17|e<<2}function Vg(t){return t>>17&32767}function oU(t){return(t&2)==2}function gU(t,e){return t&131071|e<<17}function $l(t){return t|2}function as(t){return(t&131068)>>2}function gl(t,e){return t&-131069|e<<2}function nU(t){return(t&1)===1}function Ad(t){return t|1}function sU(t,e,A,i,o,g){let n=g?e.classBindings:e.styleBindings,s=Vg(n),r=as(n);t[i]=A;let I=!1,B;if(Array.isArray(A)){let c=A;B=c[1],(B===null||jr(c,B)>0)&&(I=!0)}else B=A;if(o)if(r!==0){let D=Vg(t[s+1]);t[i+1]=kC(D,s),D!==0&&(t[D+1]=gl(t[D+1],i)),t[s+1]=gU(t[s+1],i)}else t[i+1]=kC(s,0),s!==0&&(t[s+1]=gl(t[s+1],i)),s=i;else t[i+1]=kC(r,0),s===0?s=i:t[r+1]=gl(t[r+1],i),r=i;I&&(t[i+1]=$l(t[i+1])),rw(t,B,i,!0),rw(t,B,i,!1),rU(e,B,t,i,g),n=kC(s,r),g?e.classBindings=n:e.styleBindings=n}function rU(t,e,A,i,o){let g=o?t.residualClasses:t.residualStyles;g!=null&&typeof e=="string"&&jr(g,e)>=0&&(A[i+1]=Ad(A[i+1]))}function rw(t,e,A,i){let o=t[A+1],g=e===null,n=i?Vg(o):as(o),s=!1;for(;n!==0&&(s===!1||g);){let r=t[n],I=t[n+1];IU(r,e)&&(s=!0,t[n+1]=i?Ad(I):$l(I)),n=i?Vg(I):as(I)}s&&(t[A+1]=i?$l(o):Ad(o))}function IU(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?jr(t,e)>=0:!1}var Ei={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aU(t){return t.substring(Ei.key,Ei.keyEnd)}function CU(t){return BU(t),zy(t,jy(t,0,Ei.textEnd))}function zy(t,e){let A=Ei.textEnd;return A===e?-1:(e=Ei.keyEnd=QU(t,Ei.key=e,A),jy(t,e,A))}function BU(t){Ei.key=0,Ei.keyEnd=0,Ei.value=0,Ei.valueEnd=0,Ei.textEnd=t.length}function jy(t,e,A){for(;e<A&&t.charCodeAt(e)<=32;)e++;return e}function QU(t,e,A){for(;e<A&&t.charCodeAt(e)>32;)e++;return e}function F(t,e,A){let i=kA(),o=ig();if(Kt(i,o,e)){let g=he(),n=AI();RB(g,n,i,t,e,i[fe],A,!1)}return F}function ed(t,e,A,i,o){eh(e,t,A,o?"class":"style",i)}function Ct(t,e,A){return $y(t,e,A,!1),Ct}function gA(t,e){return $y(t,e,null,!0),gA}function Xe(t){A0(uU,Xy,t,!0)}function Xy(t,e){for(let A=CU(e);A>=0;A=zy(e,A))QB(t,aU(e),!0)}function $y(t,e,A,i){let o=kA(),g=he(),n=ep(2);if(g.firstUpdatePass&&t0(g,t,n,i),e!==hi&&Kt(o,n,e)){let s=g.data[og()];i0(g,s,o,o[fe],t,o[n+1]=mU(e,A),i,n)}}function A0(t,e,A,i){let o=he(),g=ep(2);o.firstUpdatePass&&t0(o,null,g,i);let n=kA();if(A!==hi&&Kt(n,g,A)){let s=o.data[og()];if(o0(s,i)&&!e0(o,g)){let r=i?s.classesWithoutHost:s.stylesWithoutHost;r!==null&&(A=al(r,A||"")),ed(o,s,n,A,i)}else DU(o,s,n,n[fe],n[g+1],n[g+1]=hU(t,e,A),i,g)}}function e0(t,e){return e>=t.expandoStartIndex}function t0(t,e,A,i){let o=t.data;if(o[A+1]===null){let g=o[og()],n=e0(t,A);o0(g,i)&&e===null&&!n&&(e=!1),e=EU(o,g,e,i),sU(o,g,e,A,n,i)}}function EU(t,e,A,i){let o=vd(t),g=i?e.residualClasses:e.residualStyles;if(o===null)(i?e.classBindings:e.styleBindings)===0&&(A=nl(null,t,e,A,i),A=qr(A,e.attrs,i),g=null);else{let n=e.directiveStylingLast;if(n===-1||t[n]!==o)if(A=nl(o,t,e,A,i),g===null){let r=cU(t,e,i);r!==void 0&&Array.isArray(r)&&(r=nl(null,t,e,r[1],i),r=qr(r,e.attrs,i),lU(t,e,i,r))}else g=dU(t,e,i)}return g!==void 0&&(i?e.residualClasses=g:e.residualStyles=g),A}function cU(t,e,A){let i=A?e.classBindings:e.styleBindings;if(as(i)!==0)return t[Vg(i)]}function lU(t,e,A,i){let o=A?e.classBindings:e.styleBindings;t[Vg(o)]=i}function dU(t,e,A){let i,o=e.directiveEnd;for(let g=1+e.directiveStylingLast;g<o;g++){let n=t[g].hostAttrs;i=qr(i,n,A)}return qr(i,e.attrs,A)}function nl(t,e,A,i,o){let g=null,n=A.directiveEnd,s=A.directiveStylingLast;for(s===-1?s=A.directiveStart:s++;s<n&&(g=e[s],i=qr(i,g.hostAttrs,o),g!==t);)s++;return t!==null&&(A.directiveStylingLast=s),i}function qr(t,e,A){let i=A?1:2,o=-1;if(e!==null)for(let g=0;g<e.length;g++){let n=e[g];typeof n=="number"?o=n:o===i&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),QB(t,n,A?!0:e[++g]))}return t===void 0?null:t}function hU(t,e,A){if(A==null||A==="")return It;let i=[],o=di(A);if(Array.isArray(o))for(let g=0;g<o.length;g++)t(i,o[g],!0);else if(typeof o=="object")for(let g in o)o.hasOwnProperty(g)&&t(i,g,o[g]);else typeof o=="string"&&e(i,o);return i}function uU(t,e,A){let i=String(e);i!==""&&!i.includes(" ")&&QB(t,i,A)}function DU(t,e,A,i,o,g,n,s){o===hi&&(o=It);let r=0,I=0,B=0<o.length?o[0]:null,c=0<g.length?g[0]:null;for(;B!==null||c!==null;){let D=r<o.length?o[r+1]:void 0,h=I<g.length?g[I+1]:void 0,p=null,y;B===c?(r+=2,I+=2,D!==h&&(p=c,y=h)):c===null||B!==null&&B<c?(r+=2,p=B):(I+=2,p=c,y=h),p!==null&&i0(t,e,A,i,p,y,n,s),B=r<o.length?o[r]:null,c=I<g.length?g[I]:null}}function i0(t,e,A,i,o,g,n,s){if(!(e.type&3))return;let r=t.data,I=r[s+1],B=nU(I)?Iw(r,e,A,o,as(I),n):void 0;if(!gB(B)){gB(g)||oU(I)&&(g=Iw(r,null,A,o,s,n));let c=Vw(og(),A);DL(i,n,c,o,g)}}function Iw(t,e,A,i,o,g){let n=e===null,s;for(;o>0;){let r=t[o],I=Array.isArray(r),B=I?r[1]:r,c=B===null,D=A[o+1];D===hi&&(D=c?It:void 0);let h=c?zc(D,i):B===i?D:void 0;if(I&&!gB(h)&&(h=zc(r,i)),gB(h)&&(s=h,n))return s;let p=t[o+1];o=n?Vg(p):as(p)}if(e!==null){let r=g?e.residualClasses:e.residualStyles;r!=null&&(s=zc(r,i))}return s}function gB(t){return t!==void 0}function mU(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ht(di(t)))),t}function o0(t,e){return(t.flags&(e?8:16))!==0}function g0(t,e,A){let i=kA(),o=Wy(i,t,e,A);A0(QB,Xy,o,!0)}var td=class{destroy(e){}updateValue(e,A){}swap(e,A){let i=Math.min(e,A),o=Math.max(e,A),g=this.detach(o);if(o-i>1){let n=this.detach(i);this.attach(i,g),this.attach(o,n)}else this.attach(i,g)}move(e,A){this.attach(A,this.detach(e))}};function sl(t,e,A,i,o){return t===A&&Object.is(e,i)?1:Object.is(o(t,e),o(A,i))?-1:0}function fU(t,e,A){let i,o,g=0,n=t.length-1,s=void 0;if(Array.isArray(e)){let r=e.length-1;for(;g<=n&&g<=r;){let I=t.at(g),B=e[g],c=sl(g,I,g,B,A);if(c!==0){c<0&&t.updateValue(g,B),g++;continue}let D=t.at(n),h=e[r],p=sl(n,D,r,h,A);if(p!==0){p<0&&t.updateValue(n,h),n--,r--;continue}let y=A(g,I),L=A(n,D),P=A(g,B);if(Object.is(P,L)){let mA=A(r,h);Object.is(mA,y)?(t.swap(g,n),t.updateValue(n,h),r--,n--):t.move(n,g),t.updateValue(g,B),g++;continue}if(i??=new nB,o??=Cw(t,g,n,A),id(t,i,g,P))t.updateValue(g,B),g++,n++;else if(o.has(P))i.set(y,t.detach(g)),n--;else{let mA=t.create(g,e[g]);t.attach(g,mA),g++,n++}}for(;g<=r;)aw(t,i,A,g,e[g]),g++}else if(e!=null){let r=e[Symbol.iterator](),I=r.next();for(;!I.done&&g<=n;){let B=t.at(g),c=I.value,D=sl(g,B,g,c,A);if(D!==0)D<0&&t.updateValue(g,c),g++,I=r.next();else{i??=new nB,o??=Cw(t,g,n,A);let h=A(g,c);if(id(t,i,g,h))t.updateValue(g,c),g++,n++,I=r.next();else if(!o.has(h))t.attach(g,t.create(g,c)),g++,n++,I=r.next();else{let p=A(g,B);i.set(p,t.detach(g)),n--}}}for(;!I.done;)aw(t,i,A,t.length,I.value),I=r.next()}for(;g<=n;)t.destroy(t.detach(n--));i?.forEach(r=>{t.destroy(r)})}function id(t,e,A,i){return e!==void 0&&e.has(i)?(t.attach(A,e.get(i)),e.delete(i),!0):!1}function aw(t,e,A,i,o){if(id(t,e,i,A(i,o)))t.updateValue(i,o);else{let g=t.create(i,o);t.attach(i,g)}}function Cw(t,e,A,i){let o=new Set;for(let g=e;g<=A;g++)o.add(i(g,t.at(g)));return o}var nB=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let A=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(A)?(this.kvMap.set(e,this._vMap.get(A)),this._vMap.delete(A)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,A){if(this.kvMap.has(e)){let i=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(i);)i=o.get(i);o.set(i,A)}else this.kvMap.set(e,A)}forEach(e){for(let[A,i]of this.kvMap)if(e(i,A),this._vMap!==void 0){let o=this._vMap;for(;o.has(i);)i=o.get(i),e(i,A)}}};function wA(t,e){$g("NgControlFlow");let A=kA(),i=ig(),o=A[i]!==hi?A[i]:-1,g=o!==-1?sB(A,Ye+o):void 0,n=0;if(Kt(A,i,t)){let s=OA(null);try{if(g!==void 0&&yy(g,n),t!==-1){let r=Ye+t,I=sB(A,r),B=sd(A[xA],r),c=Is(I,B.tView.ssrId),D=oI(A,B,e,{dehydratedView:c});gI(I,D,n,rs(B,c))}}finally{OA(s)}}else if(g!==void 0){let s=py(g,n);s!==void 0&&(s[xe]=e)}}var od=class{lContainer;$implicit;$index;constructor(e,A,i){this.lContainer=e,this.$implicit=A,this.$index=i}get $count(){return this.lContainer.length-At}};function en(t,e){return e}var gd=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,A,i){this.hasEmptyBlock=e,this.trackByFn=A,this.liveCollection=i}};function tn(t,e,A,i,o,g,n,s,r,I,B,c,D){$g("NgControlFlow");let h=kA(),p=he(),y=r!==void 0,L=kA(),P=s?n.bind(L[Lt][xe]):n,mA=new gd(y,P);L[Ye+t]=mA,oB(h,p,t+1,e,A,i,o,tg(p.consts,g)),y&&oB(h,p,t+2,r,I,B,c,tg(p.consts,D))}var nd=class extends td{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,A,i){super(),this.lContainer=e,this.hostLView=A,this.templateTNode=i}get length(){return this.lContainer.length-At}at(e){return this.getLView(e)[xe].$implicit}attach(e,A){let i=A[os];this.needsIndexUpdate||=e!==this.length,gI(this.lContainer,A,e,rs(this.templateTNode,i))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,wU(this.lContainer,e)}create(e,A){let i=Is(this.lContainer,this.templateTNode.tView.ssrId),o=oI(this.hostLView,this.templateTNode,new od(this.lContainer,A,e),{dehydratedView:i});return this.operationsCounter?.recordCreate(),o}destroy(e){kB(e[xA],e),this.operationsCounter?.recordDestroy()}updateValue(e,A){this.getLView(e)[xe].$implicit=A}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[xe].$index=e}getLView(e){return pU(this.lContainer,e)}};function on(t){let e=OA(null),A=og();try{let i=kA(),o=i[xA],g=i[A],n=A+1,s=sB(i,n);if(g.liveCollection===void 0){let I=sd(o,n);g.liveCollection=new nd(s,i,I)}else g.liveCollection.reset();let r=g.liveCollection;if(fU(r,t,g.trackByFn),r.updateIndexes(),g.hasEmptyBlock){let I=ig(),B=r.length===0;if(Kt(i,I,B)){let c=A+2,D=sB(i,c);if(B){let h=sd(o,c),p=Is(D,h.tView.ssrId),y=oI(i,h,void 0,{dehydratedView:p});gI(D,y,0,rs(h,p))}else yy(D,0)}}}finally{OA(e)}}function sB(t,e){return t[e]}function wU(t,e){return Pr(t,e)}function pU(t,e){return py(t,e)}function sd(t,e){return Md(t,e)}function u(t,e,A,i){let o=kA(),g=he(),n=Ye+t,s=o[fe],r=g.firstCreatePass?by(n,g,o,e,Ah,Sd(),A,i):g.data[n],I=yU(g,o,r,s,e,t);o[n]=I;let B=hB(r);return jg(r,!0),oy(s,I,r),!oh(r)&&mB()&&FB(g,o,I,r),(tG()===0||B)&&ls(I,o),iG(),B&&(MB(g,o,r),qd(g,r,o)),i!==null&&$d(o,r),u}function m(){let t=je();Nd()?Gd():(t=t.parent,jg(t,!1));let e=t;gG(e)&&nG(),oG();let A=he();return A.firstCreatePass&&Sy(A,e),e.classesWithoutHost!=null&&uG(e)&&ed(A,e,kA(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&DG(e)&&ed(A,e,kA(),e.stylesWithoutHost,!1),m}function W(t,e,A,i){return u(t,e,A,i),m(),W}var yU=(t,e,A,i,o,g)=>(fB(!0),ty(i,o,lG()));function MU(t,e,A,i,o){let g=e.consts,n=tg(g,i),s=nI(e,t,8,"ng-container",n);n!==null&&Tl(s,n,!0);let r=tg(g,o);return Sd()&&rh(e,A,s,r,Ah),s.mergedAttrs=ss(s.mergedAttrs,s.attrs),e.queries!==null&&e.queries.elementStart(e,s),s}function ui(t,e,A){let i=kA(),o=he(),g=t+Ye,n=o.firstCreatePass?MU(g,o,i,e,A):o.data[g];jg(n,!0);let s=RU(o,i,n,t);return i[g]=s,mB()&&FB(o,i,s,n),ls(s,i),hB(n)&&(MB(o,i,n),qd(o,n,i)),A!=null&&$d(i,n),ui}function Di(){let t=je(),e=he();return Nd()?Gd():(t=t.parent,jg(t,!1)),e.firstCreatePass&&(_d(e,t),yd(t)&&e.queries.elementEnd(t)),Di}function Je(t,e,A){return ui(t,e,A),Di(),Je}var RU=(t,e,A,i)=>(fB(!0),Jv(e[fe],""));function aA(){return kA()}function yt(t,e,A){let i=kA(),o=ig();if(Kt(i,o,e)){let g=he(),n=AI();RB(g,n,i,t,e,i[fe],A,!0)}return yt}function uh(t,e,A){let i=kA(),o=ig();if(Kt(i,o,e)){let g=he(),n=AI(),s=vd(g.data),r=Iy(s,n,i);RB(g,n,i,t,e,r,A,!0)}return uh}var rB="en-US";var kU=rB;function FU(t){typeof t=="string"&&(kU=t.toLowerCase().replace(/_/g,"-"))}function Bw(t,e,A){return function i(o){if(o===Function)return A;let g=Bs(t)?qi(t.index,e):e;sh(g,5);let n=e[xe],s=Qw(e,n,A,o),r=i.__ngNextListenerFn__;for(;r;)s=Qw(e,n,r,o)&&s,r=r.__ngNextListenerFn__;return s}}function Qw(t,e,A,i){let o=OA(null);try{return Ee(6,e,A),A(i)!==!1}catch(g){return bU(t,g),!1}finally{Ee(7,e,A),OA(o)}}function bU(t,e){let A=t[gs],i=A?A.get(mt,null):null;i&&i.handleError(e)}function Ew(t,e,A,i,o,g){let n=e[A],s=e[xA],I=s.data[A].outputs[i],B=n[I],c=s.firstCreatePass?bd(s):null,D=Fd(e),h=B.subscribe(g),p=D.length;D.push(g,h),c&&c.push(o,t.index,p,-(p+1))}var SU=(t,e,A)=>{};function x(t,e,A,i){let o=kA(),g=he(),n=je();return mh(g,o,o[fe],n,t,e,i),x}function Dh(t,e){let A=je(),i=kA(),o=he(),g=vd(o.data),n=Iy(g,A,i);return mh(o,i,n,A,t,e),Dh}function NU(t,e,A,i){let o=t.cleanup;if(o!=null)for(let g=0;g<o.length-1;g+=2){let n=o[g];if(n===A&&o[g+1]===i){let s=e[YC],r=o[g+2];return s.length>r?s[r]:null}typeof n=="string"&&(g+=2)}return null}function mh(t,e,A,i,o,g,n){let s=hB(i),I=t.firstCreatePass?bd(t):null,B=Fd(e),c=!0;if(i.type&3||n){let D=Xi(i,e),h=n?n(D):D,p=B.length,y=n?P=>n(Zi(P[i.index])):i.index,L=null;if(!n&&s&&(L=NU(t,e,o,i.index)),L!==null){let P=L.__ngLastListenerFn__||L;P.__ngNextListenerFn__=g,L.__ngLastListenerFn__=g,c=!1}else{g=Bw(i,e,g),SU(h,o,g);let P=A.listen(h,o,g);B.push(g,P),I&&I.push(o,y,p,p+1)}}else g=Bw(i,e,g);if(c){let D=i.outputs?.[o],h=i.hostDirectiveOutputs?.[o];if(h&&h.length)for(let p=0;p<h.length;p+=2){let y=h[p],L=h[p+1];Ew(i,e,y,L,o,g)}if(D&&D.length)for(let p of D)Ew(i,e,p,o,o,g)}}function b(t=1){return EG(t)}function GU(t,e){let A=null,i=Nv(t);for(let o=0;o<e.length;o++){let g=e[o];if(g==="*"){A=o;continue}if(i===null?ey(t,g,!0):Lv(i,g))return o}return A}function qA(t){let e=kA()[Lt][pt];if(!e.projection){let A=t?t.length:1,i=e.projection=bN(A,null),o=i.slice(),g=e.child;for(;g!==null;){if(g.type!==128){let n=t?GU(g,t):0;n!==null&&(o[n]?o[n].projectionNext=g:i[n]=g,o[n]=g)}g=g.next}}}function rA(t,e=0,A,i,o,g){let n=kA(),s=he(),r=i?t+1:null;r!==null&&oB(n,s,r,i,o,g,null,A);let I=nI(s,Ye+t,16,null,A||null);I.projection===null&&(I.projection=e),Gd();let c=!n[os]||Xw();n[Lt][pt].projection[I.projection]===null&&r!==null?vU(n,s,r):c&&!oh(I)&&hL(s,n,I)}function vU(t,e,A){let i=Ye+A,o=e.data[i],g=t[i],n=Is(g,o.tView.ssrId),s=oI(t,o,void 0,{dehydratedView:n});gI(g,s,0,rs(o,n))}function jA(t,e,A,i){Ky(t,e,A,i)}function cA(t,e,A){uK(t,e,A)}function z(t){let e=kA(),A=he(),i=Ld();DB(i+1);let o=ah(A,i);if(t.dirty&&jN(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let g=_y(e,i);t.reset(g,Mp),t.notifyOnChanges()}return!0}return!1}function j(){return Ih(kA(),Ld())}function n0(t,e,A,i,o){pK(e,Ky(t,A,i,o))}function s0(t=1){DB(Ld()+t)}function LU(t,e,A,i){A>=t.data.length&&(t.data[A]=null,t.blueprint[A]=null),e[A]=i}function He(t){let e=rG();return Rd(e,Ye+t)}function v(t,e=""){let A=kA(),i=he(),o=t+Ye,g=i.firstCreatePass?nI(i,o,1,e,null):i.data[o],n=KU(i,A,g,e,t);A[o]=n,mB()&&FB(i,A,n,g),jg(g,!1)}var KU=(t,e,A,i,o)=>(fB(!0),xv(e[fe],i));function PA(t){return te("",t,""),PA}function te(t,e,A){let i=kA(),o=Wy(i,t,e,A);return o!==hi&&UU(i,og(),o),te}function UU(t,e,A){let i=Vw(e,t);Yv(t[fe],i,A)}function mi(t,e,A){Rp(e)&&(e=e());let i=kA(),o=ig();if(Kt(i,o,e)){let g=he(),n=AI();RB(g,n,i,t,e,i[fe],A,!1)}return mi}function $i(t,e){let A=Rp(t);return A&&t.set(e),A}function fi(t,e){let A=kA(),i=he(),o=je();return mh(i,A,A[fe],o,t,e),fi}function _U(t,e,A){let i=he();if(i.firstCreatePass){let o=li(t);rd(A,i.data,i.blueprint,o,!0),rd(e,i.data,i.blueprint,o,!1)}}function rd(t,e,A,i,o){if(t=ze(t),Array.isArray(t))for(let g=0;g<t.length;g++)rd(t[g],e,A,i,o);else{let g=he(),n=kA(),s=je(),r=is(t)?t:ze(t.provide),I=Yw(t),B=s.providerIndexes&1048575,c=s.directiveStart,D=s.providerIndexes>>20;if(is(t)||!t.multi){let h=new Pg(I,o,AA),p=Il(r,e,o?B:B+D,c);p===-1?(fl(qC(s,n),g,r),rl(g,t,e.length),e.push(r),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),A.push(h),n.push(h)):(A[p]=h,n[p]=h)}else{let h=Il(r,e,B+D,c),p=Il(r,e,B,B+D),y=h>=0&&A[h],L=p>=0&&A[p];if(o&&!L||!o&&!y){fl(qC(s,n),g,r);let P=JU(o?YU:xU,A.length,o,i,I);!o&&L&&(A[p].providerFactory=P),rl(g,t,e.length,0),e.push(r),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),A.push(P),n.push(P)}else{let P=r0(A[o?p:h],I,!o&&i);rl(g,t,h>-1?h:p,P)}!o&&i&&L&&A[p].componentProviders++}}}function rl(t,e,A,i){let o=is(e),g=_N(e);if(o||g){let r=(g?ze(e.useClass):e).prototype.ngOnDestroy;if(r){let I=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let B=I.indexOf(A);B===-1?I.push(A,[i,r]):I[B+1].push(i,r)}else I.push(A,r)}}}function r0(t,e,A){return A&&t.componentProviders++,t.multi.push(e)-1}function Il(t,e,A,i){for(let o=A;o<i;o++)if(e[o]===t)return o;return-1}function xU(t,e,A,i){return Id(this.multi,[])}function YU(t,e,A,i){let o=this.multi,g;if(this.providerFactory){let n=this.providerFactory.componentProviders,s=Tr(A,A[xA],this.providerFactory.index,i);g=s.slice(0,n),Id(o,g);for(let r=n;r<s.length;r++)g.push(s[r])}else g=[],Id(o,g);return g}function Id(t,e){for(let A=0;A<t.length;A++){let i=t[A];e.push(i())}return e}function JU(t,e,A,i,o){let g=new Pg(t,A,AA);return g.multi=[],g.index=e,g.componentProviders=0,r0(g,o,i&&!A),g}function KA(t,e=[]){return A=>{A.providersResolver=(i,o)=>_U(i,o?o(t):t,e)}}function I0(t,e,A){let i=$r()+t,o=kA();return o[i]===hi?Qh(o,i,A?e.call(A):e()):VK(o,i)}function gn(t,e,A,i){return C0(kA(),$r(),t,e,A,i)}function us(t,e,A,i,o){return B0(kA(),$r(),t,e,A,i,o)}function a0(t,e){let A=t[e];return A===hi?void 0:A}function C0(t,e,A,i,o,g){let n=e+A;return Kt(t,n,o)?Qh(t,n+1,g?i.call(g,o):i(o)):a0(t,n+1)}function B0(t,e,A,i,o,g,n){let s=e+A;return WK(t,s,o,g)?Qh(t,s+2,n?i.call(n,o,g):i(o,g)):a0(t,s+2)}function rg(t,e){let A=he(),i,o=t+Ye;A.firstCreatePass?(i=HU(e,A.pipeRegistry),A.data[o]=i,i.onDestroy&&(A.destroyHooks??=[]).push(o,i.onDestroy)):i=A.data[o];let g=i.factory||(i.factory=xg(i.type,!0)),n,s=dt(AA);try{let r=ZC(!1),I=g();return ZC(r),LU(A,kA(),o,I),I}finally{dt(s)}}function HU(t,e){if(e)for(let A=e.length-1;A>=0;A--){let i=e[A];if(t===i.name)return i}}function Ds(t,e,A){let i=t+Ye,o=kA(),g=Rd(o,i);return E0(o,i)?C0(o,$r(),e,g.transform,A,g):g.transform(A)}function Q0(t,e,A,i){let o=t+Ye,g=kA(),n=Rd(g,o);return E0(g,o)?B0(g,$r(),e,n.transform,A,i,n):n.transform(A,i)}function E0(t,e){return t[xA].data[e].pure}function II(t,e){return SB(t,e)}var FC=null;function TU(t){FC!==null&&(t.defaultEncapsulation!==FC.defaultEncapsulation||t.preserveWhitespaces!==FC.preserveWhitespaces)||(FC=t)}var Wg=class{full;major;minor;patch;constructor(e){this.full=e;let A=e.split(".");this.major=A[0],this.minor=A[1],this.patch=A.slice(2).join(".")}},fh=new Wg("19.2.5"),ad=class{ngModuleFactory;componentFactories;constructor(e,A){this.ngModuleFactory=e,this.componentFactories=A}},UB=(()=>{class t{compileModuleSync(A){return new iB(A)}compileModuleAsync(A){return Promise.resolve(this.compileModuleSync(A))}compileModuleAndAllComponentsSync(A){let i=this.compileModuleSync(A),o=Lw(A),g=$p(o.declarations).reduce((n,s)=>{let r=eg(s);return r&&n.push(new qg(r)),n},[]);return new ad(i,g)}compileModuleAndAllComponentsAsync(A){return Promise.resolve(this.compileModuleAndAllComponentsSync(A))}clearCache(){}clearCacheFor(A){}getModuleId(A){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),OU=new k("");function PU(t,e,A){let i=new iB(A);return Promise.resolve(i)}function cw(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var ZU=(()=>{class t{zone=Q(X);changeDetectionScheduler=Q(Zg);applicationRef=Q(Ut);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qU({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:A}){return t??=()=>new X(hA(R({},c0()),{scheduleInRootZone:A})),[{provide:X,useFactory:t},{provide:ts,multi:!0,useFactory:()=>{let i=Q(ZU,{optional:!0});return()=>i.initialize()}},{provide:ts,multi:!0,useFactory:()=>{let i=Q(VU);return()=>{i.initialize()}}},e===!0?{provide:mp,useValue:!0}:[],{provide:fp,useValue:A??Dp}]}function c0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var VU=(()=>{class t{subscription=new NA;initialized=!1;zone=Q(X);pendingTasks=Q(Go);initialize(){if(this.initialized)return;this.initialized=!0;let A=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(A=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{A!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(A),A=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{X.assertInAngularZone(),A??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var WU=(()=>{class t{appRef=Q(Ut);taskService=Q(Go);ngZone=Q(X);zonelessEnabled=Q(Jd);tracing=Q(hs,{optional:!0});disableScheduling=Q(mp,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new NA;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(WC):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Q(fp,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 zC||!this.zoneIsDefined)}notify(A){if(!this.zonelessEnabled&&A===5)return;let i=!1;switch(A){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let o=this.useMicrotaskScheduler?Yf:wp;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(A){return!(this.disableScheduling&&!A||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(WC+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let A=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(A),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Yf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(A)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let A=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(A)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function zU(){return typeof $localize<"u"&&$localize.locale||rB}var _B=new k("",{providedIn:"root",factory:()=>Q(_B,ZA.Optional|ZA.SkipSelf)||zU()});var IB=new k(""),jU=new k("");function Kr(t){return!t.moduleRef}function XU(t){let e=Kr(t)?t.r3Injector:t.moduleRef.injector,A=e.get(X);return A.run(()=>{Kr(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=e.get(mt,null),o;if(A.runOutsideAngular(()=>{o=A.onError.subscribe({next:g=>{i.handleError(g)}})}),Kr(t)){let g=()=>e.destroy(),n=t.platformInjector.get(IB);n.add(g),e.onDestroy(()=>{o.unsubscribe(),n.delete(g)})}else{let g=()=>t.moduleRef.destroy(),n=t.platformInjector.get(IB);n.add(g),t.moduleRef.onDestroy(()=>{vC(t.allPlatformModules,t.moduleRef),o.unsubscribe(),n.delete(g)})}return A_(i,A,()=>{let g=e.get(qy);return g.runInitializers(),g.donePromise.then(()=>{let n=e.get(_B,rB);if(FU(n||rB),!e.get(jU,!0))return Kr(t)?e.get(Ut):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Kr(t)){let r=e.get(Ut);return t.rootComponent!==void 0&&r.bootstrap(t.rootComponent),r}else return $U(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function $U(t,e){let A=t.injector.get(Ut);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>A.bootstrap(i));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(A);else throw new U(-403,!1);e.push(t)}function A_(t,e,A){try{let i=A();return sg(i)?i.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}var l0=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(A){this._injector=A}bootstrapModuleFactory(A,i){let o=i?.scheduleInRootZone,g=()=>YG(i?.ngZone,hA(R({},c0({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),n=i?.ignoreChangesOutsideZone,s=[qU({ngZoneFactory:g,ignoreChangesOutsideZone:n}),{provide:Zg,useExisting:WU}],r=GK(A.moduleType,this.injector,s);return XU({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(A,i=[]){let o=Vy({},i);return PU(this.injector,o,A).then(g=>this.bootstrapModuleFactory(g,o))}onDestroy(A){this._destroyListeners.push(A)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new U(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let A=this._injector.get(IB,null);A&&(A.forEach(i=>i()),A.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(i){return new(i||t)(J(yA))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Yr=null,d0=new k("");function e_(t){if(Yr&&!Yr.get(d0,!1))throw new U(400,!1);AU(),Yr=t;let e=t.get(l0);return o_(t),e}function wh(t,e,A=[]){let i=`Platform: ${e}`,o=new k(i);return(g=[])=>{let n=h0();if(!n||n.injector.get(d0,!1)){let s=[...A,...g,{provide:o,useValue:!0}];t?t(s):e_(t_(s,i))}return i_(o)}}function t_(t=[],e){return yA.create({name:e,providers:[{provide:cB,useValue:"platform"},{provide:IB,useValue:new Set([()=>Yr=null])},...t]})}function i_(t){let e=h0();if(!e)throw new U(401,!1);return e}function h0(){return Yr?.get(l0)??null}function o_(t){let e=t.get(Od,null);wt(t,()=>{e?.forEach(A=>A())})}var zA=(()=>{class t{static __NG_ELEMENT_ID__=g_}return t})();function g_(t){return n_(je(),kA(),(t&16)===16)}function n_(t,e,A){if(Bs(t)&&!A){let i=qi(t.index,e);return new Zr(i,i)}else if(t.type&175){let i=e[Lt];return new Zr(i,e)}return null}var Cd=class{constructor(){}supports(e){return Py(e)}create(e){return new Bd(e)}},s_=(t,e)=>e,Bd=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||s_}forEachItem(e){let A;for(A=this._itHead;A!==null;A=A._next)e(A)}forEachOperation(e){let A=this._itHead,i=this._removalsHead,o=0,g=null;for(;A||i;){let n=!i||A&&A.currentIndex<lw(i,o,g)?A:i,s=lw(n,o,g),r=n.currentIndex;if(n===i)o--,i=i._nextRemoved;else if(A=A._next,n.previousIndex==null)o++;else{g||(g=[]);let I=s-o,B=r-o;if(I!=B){for(let D=0;D<I;D++){let h=D<g.length?g[D]:g[D]=0,p=h+D;B<=p&&p<I&&(g[D]=h+1)}let c=n.previousIndex;g[c]=B-I}}s!==r&&e(n,s,r)}}forEachPreviousItem(e){let A;for(A=this._previousItHead;A!==null;A=A._nextPrevious)e(A)}forEachAddedItem(e){let A;for(A=this._additionsHead;A!==null;A=A._nextAdded)e(A)}forEachMovedItem(e){let A;for(A=this._movesHead;A!==null;A=A._nextMoved)e(A)}forEachRemovedItem(e){let A;for(A=this._removalsHead;A!==null;A=A._nextRemoved)e(A)}forEachIdentityChange(e){let A;for(A=this._identityChangesHead;A!==null;A=A._nextIdentityChange)e(A)}diff(e){if(e==null&&(e=[]),!Py(e))throw new U(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let A=this._itHead,i=!1,o,g,n;if(Array.isArray(e)){this.length=e.length;for(let s=0;s<this.length;s++)g=e[s],n=this._trackByFn(s,g),A===null||!Object.is(A.trackById,n)?(A=this._mismatch(A,g,n,s),i=!0):(i&&(A=this._verifyReinsertion(A,g,n,s)),Object.is(A.item,g)||this._addIdentityChange(A,g)),A=A._next}else o=0,qK(e,s=>{n=this._trackByFn(o,s),A===null||!Object.is(A.trackById,n)?(A=this._mismatch(A,s,n,o),i=!0):(i&&(A=this._verifyReinsertion(A,s,n,o)),Object.is(A.item,s)||this._addIdentityChange(A,s)),A=A._next,o++}),this.length=o;return this._truncate(A),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,A,i,o){let g;return e===null?g=this._itTail:(g=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),e!==null?(Object.is(e.item,A)||this._addIdentityChange(e,A),this._reinsertAfter(e,g,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(i,o),e!==null?(Object.is(e.item,A)||this._addIdentityChange(e,A),this._moveAfter(e,g,o)):e=this._addAfter(new Qd(A,i),g,o)),e}_verifyReinsertion(e,A,i,o){let g=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return g!==null?e=this._reinsertAfter(g,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let A=e._next;this._addToRemovals(this._unlink(e)),e=A}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,A,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,g=e._nextRemoved;return o===null?this._removalsHead=g:o._nextRemoved=g,g===null?this._removalsTail=o:g._prevRemoved=o,this._insertAfter(e,A,i),this._addToMoves(e,i),e}_moveAfter(e,A,i){return this._unlink(e),this._insertAfter(e,A,i),this._addToMoves(e,i),e}_addAfter(e,A,i){return this._insertAfter(e,A,i),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,A,i){let o=A===null?this._itHead:A._next;return e._next=o,e._prev=A,o===null?this._itTail=e:o._prev=e,A===null?this._itHead=e:A._next=e,this._linkedRecords===null&&(this._linkedRecords=new aB),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let A=e._prev,i=e._next;return A===null?this._itHead=i:A._next=i,i===null?this._itTail=A:i._prev=A,e}_addToMoves(e,A){return e.previousIndex===A||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new aB),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,A){return e.item=A,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Qd=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,A){this.item=e,this.trackById=A}},Ed=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,A){let i;for(i=this._head;i!==null;i=i._nextDup)if((A===null||A<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){let A=e._prevDup,i=e._nextDup;return A===null?this._head=i:A._nextDup=i,i===null?this._tail=A:i._prevDup=A,this._head===null}},aB=class{map=new Map;put(e){let A=e.trackById,i=this.map.get(A);i||(i=new Ed,this.map.set(A,i)),i.add(e)}get(e,A){let i=e,o=this.map.get(i);return o?o.get(e,A):null}remove(e){let A=e.trackById;return this.map.get(A).remove(e)&&this.map.delete(A),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function lw(t,e,A){let i=t.previousIndex;if(i===null)return i;let o=0;return A&&i<A.length&&(o=A[i]),i+e+o}var cd=class{constructor(){}supports(e){return e instanceof Map||Bh(e)}create(){return new ld}},ld=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let A;for(A=this._mapHead;A!==null;A=A._next)e(A)}forEachPreviousItem(e){let A;for(A=this._previousMapHead;A!==null;A=A._nextPrevious)e(A)}forEachChangedItem(e){let A;for(A=this._changesHead;A!==null;A=A._nextChanged)e(A)}forEachAddedItem(e){let A;for(A=this._additionsHead;A!==null;A=A._nextAdded)e(A)}forEachRemovedItem(e){let A;for(A=this._removalsHead;A!==null;A=A._nextRemoved)e(A)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||Bh(e)))throw new U(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let A=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,o)=>{if(A&&A.key===o)this._maybeAddToChanges(A,i),this._appendAfter=A,A=A._next;else{let g=this._getOrCreateRecordForKey(o,i);A=this._insertBeforeOrAppend(A,g)}}),A){A._prev&&(A._prev._next=null),this._removalsHead=A;for(let i=A;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,A){if(e){let i=e._prev;return A._next=e,A._prev=i,e._prev=A,i&&(i._next=A),e===this._mapHead&&(this._mapHead=A),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=A,A._prev=this._appendAfter):this._mapHead=A,this._appendAfter=A,null}_getOrCreateRecordForKey(e,A){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,A);let g=o._prev,n=o._next;return g&&(g._next=n),n&&(n._prev=g),o._next=null,o._prev=null,o}let i=new dd(e);return this._records.set(e,i),i.currentValue=A,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,A){Object.is(A,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=A,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,A){e instanceof Map?e.forEach(A):Object.keys(e).forEach(i=>A(e[i],i))}},dd=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function dw(){return new Ao([new Cd])}var Ao=(()=>{class t{factories;static \u0275prov=N({token:t,providedIn:"root",factory:dw});constructor(A){this.factories=A}static create(A,i){if(i!=null){let o=i.factories.slice();A=A.concat(o)}return new t(A)}static extend(A){return{provide:t,useFactory:i=>t.create(A,i||dw()),deps:[[t,new zr,new zg]]}}find(A){let i=this.factories.find(o=>o.supports(A));if(i!=null)return i;throw new U(901,!1)}}return t})();function hw(){return new xB([new cd])}var xB=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:hw});factories;constructor(A){this.factories=A}static create(A,i){if(i){let o=i.factories.slice();A=A.concat(o)}return new t(A)}static extend(A){return{provide:t,useFactory:i=>t.create(A,i||hw()),deps:[[t,new zr,new zg]]}}find(A){let i=this.factories.find(o=>o.supports(A));if(i)return i;throw new U(901,!1)}}return t})();var u0=wh(null,"core",[]),D0=(()=>{class t{constructor(A){}static \u0275fac=function(i){return new(i||t)(J(Ut))};static \u0275mod=V({type:t});static \u0275inj=q({})}return t})();function iA(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Fe(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Mt(t){return vc(t)}function Lo(t,e){return za(t,e?.equal)}var hd=class{[Et];constructor(e){this[Et]=e}destroy(){this[Et].destroy()}};function aI(t,e){!e?.injector&&wd(aI);let A=e?.injector??Q(yA),i=e?.manualCleanup!==!0?A.get(Es):null,o,g=A.get(Zd,null,{optional:!0}),n=A.get(Zg);return g!==null&&!e?.forceRoot?(o=a_(g.view,n,t),i instanceof VC&&i._lView===g.view&&(i=null)):o=C_(t,A.get(Zy),n),o.injector=A,i!==null&&(o.onDestroyFn=i.onDestroy(()=>o.destroy())),new hd(o)}var m0=hA(R({},_n),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Or,run(){if(this.dirty=!1,this.hasRun&&!qa(this))return;this.hasRun=!0;let t=i=>(this.cleanupFns??=[]).push(i),e=yr(this),A=TC(!1);try{this.maybeCleanup(),this.fn(t)}finally{TC(A),Za(this,e)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),r_=hA(R({},m0),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Mr(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),I_=hA(R({},m0),{consumerMarkedDirty(){this.view[vA]|=8192,Qs(this.view),this.notifier.notify(13)},destroy(){Mr(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Jg]?.delete(this)}});function a_(t,e,A){let i=Object.create(I_);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=e,i.fn=A,t[Jg]??=new Set,t[Jg].add(i),i.consumerMarkedDirty(i),i}function C_(t,e,A){let i=Object.create(r_);return i.fn=t,i.scheduler=e,i.notifier=A,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.schedule(i),i.notifier.notify(12),i}function YB(t,e){let A=eg(t),i=e.elementInjector||lB();return new qg(A).create(i,e.projectableNodes,e.hostElement,e.environmentInjector)}function f0(t){let e=eg(t);if(!e)return null;let A=new qg(e);return{get selector(){return A.selector},get type(){return A.componentType},get inputs(){return A.inputs},get outputs(){return A.outputs},get ngContentSelectors(){return A.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var lA=new k("");var y0=null;function xt(){return y0}function ph(t){y0??=t}var CI=class{},BI=(()=>{class t{historyGo(A){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:()=>Q(M0),providedIn:"platform"})}return t})(),yh=new k(""),M0=(()=>{class t extends BI{_location;_history;_doc=Q(lA);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return xt().getBaseHref(this._doc)}onPopState(A){let i=xt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",A,!1),()=>i.removeEventListener("popstate",A)}onHashChange(A){let i=xt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",A,!1),()=>i.removeEventListener("hashchange",A)}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(A){this._location.pathname=A}pushState(A,i,o){this._history.pushState(A,i,o)}replaceState(A,i,o){this._history.replaceState(A,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(A=0){this._history.go(A)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function JB(t,e){return t?e?t.endsWith("/")?e.startsWith("/")?t+e.slice(1):t+e:e.startsWith("/")?t+e:`${t}/${e}`:t:e}function w0(t){let e=t.search(/#|\?|$/);return t[e-1]==="/"?t.slice(0,e-1)+t.slice(e):t}function wi(t){return t&&t[0]!=="?"?`?${t}`:t}var Ko=(()=>{class t{historyGo(A){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:()=>Q(TB),providedIn:"root"})}return t})(),HB=new k(""),TB=(()=>{class t extends Ko{_platformLocation;_baseHref;_removeListenerFns=[];constructor(A,i){super(),this._platformLocation=A,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Q(lA).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(A){this._removeListenerFns.push(this._platformLocation.onPopState(A),this._platformLocation.onHashChange(A))}getBaseHref(){return this._baseHref}prepareExternalUrl(A){return JB(this._baseHref,A)}path(A=!1){let i=this._platformLocation.pathname+wi(this._platformLocation.search),o=this._platformLocation.hash;return o&&A?`${i}${o}`:i}pushState(A,i,o,g){let n=this.prepareExternalUrl(o+wi(g));this._platformLocation.pushState(A,i,n)}replaceState(A,i,o,g){let n=this.prepareExternalUrl(o+wi(g));this._platformLocation.replaceState(A,i,n)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(A=0){this._platformLocation.historyGo?.(A)}static \u0275fac=function(i){return new(i||t)(J(BI),J(HB,8))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eo=(()=>{class t{_subject=new K;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(A){this._locationStrategy=A;let i=this._locationStrategy.getBaseHref();this._basePath=E_(w0(p0(i))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(A=!1){return this.normalize(this._locationStrategy.path(A))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(A,i=""){return this.path()==this.normalize(A+wi(i))}normalize(A){return t.stripTrailingSlash(Q_(this._basePath,p0(A)))}prepareExternalUrl(A){return A&&A[0]!=="/"&&(A="/"+A),this._locationStrategy.prepareExternalUrl(A)}go(A,i="",o=null){this._locationStrategy.pushState(o,"",A,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(A+wi(i)),o)}replaceState(A,i="",o=null){this._locationStrategy.replaceState(o,"",A,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(A+wi(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(A=0){this._locationStrategy.historyGo?.(A)}onUrlChange(A){return this._urlChangeListeners.push(A),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(A);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(A="",i){this._urlChangeListeners.forEach(o=>o(A,i))}subscribe(A,i,o){return this._subject.subscribe({next:A,error:i??void 0,complete:o??void 0})}static normalizeQueryParams=wi;static joinWithSlash=JB;static stripTrailingSlash=w0;static \u0275fac=function(i){return new(i||t)(J(Ko))};static \u0275prov=N({token:t,factory:()=>B_(),providedIn:"root"})}return t})();function B_(){return new eo(J(Ko))}function Q_(t,e){if(!t||!e.startsWith(t))return e;let A=e.substring(t.length);return A===""||["/",";","?","#"].includes(A[0])?A:e}function p0(t){return t.replace(/\/index.html$/,"")}function E_(t){if(new RegExp("^(https?:)?//").test(t)){let[,A]=t.split(/\/\/[^\/]+/);return A}return t}var Fh=(()=>{class t extends Ko{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(A,i){super(),this._platformLocation=A,i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(A){this._removeListenerFns.push(this._platformLocation.onPopState(A),this._platformLocation.onHashChange(A))}getBaseHref(){return this._baseHref}path(A=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(A){let i=JB(this._baseHref,A);return i.length>0?"#"+i:i}pushState(A,i,o,g){let n=this.prepareExternalUrl(o+wi(g))||this._platformLocation.pathname;this._platformLocation.pushState(A,i,n)}replaceState(A,i,o,g){let n=this.prepareExternalUrl(o+wi(g))||this._platformLocation.pathname;this._platformLocation.replaceState(A,i,n)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(A=0){this._platformLocation.historyGo?.(A)}static \u0275fac=function(i){return new(i||t)(J(BI),J(HB,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Mh=/\s+/,R0=[],Yt=(()=>{class t{_ngEl;_renderer;initialClasses=R0;rawClass;stateMap=new Map;constructor(A,i){this._ngEl=A,this._renderer=i}set klass(A){this.initialClasses=A!=null?A.trim().split(Mh):R0}set ngClass(A){this.rawClass=typeof A=="string"?A.trim().split(Mh):A}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let A=this.rawClass;if(Array.isArray(A)||A instanceof Set)for(let i of A)this._updateState(i,!0);else if(A!=null)for(let i of Object.keys(A))this._updateState(i,!!A[i]);this._applyStateDiff()}_updateState(A,i){let o=this.stateMap.get(A);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(A,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let A of this.stateMap){let i=A[0],o=A[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(A,i){A=A.trim(),A.length>0&&A.split(Mh).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(i){return new(i||t)(AA(Z),AA(Me))};static \u0275dir=Y({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var OB=class{$implicit;ngForOf;index;count;constructor(e,A,i,o){this.$implicit=e,this.ngForOf=A,this.index=i,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Rt=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(A){this._ngForOf=A,this._ngForOfDirty=!0}set ngForTrackBy(A){this._trackByFn=A}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(A,i,o){this._viewContainer=A,this._template=i,this._differs=o}set ngForTemplate(A){A&&(this._template=A)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let A=this._ngForOf;!this._differ&&A&&(this._differ=this._differs.find(A).create(this.ngForTrackBy))}if(this._differ){let A=this._differ.diff(this._ngForOf);A&&this._applyChanges(A)}}_applyChanges(A){let i=this._viewContainer;A.forEachOperation((o,g,n)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new OB(o.item,this._ngForOf,-1,-1),n===null?void 0:n);else if(n==null)i.remove(g===null?void 0:g);else if(g!==null){let s=i.get(g);i.move(s,n),k0(s,o)}});for(let o=0,g=i.length;o<g;o++){let s=i.get(o).context;s.index=o,s.count=g,s.ngForOf=this._ngForOf}A.forEachIdentityChange(o=>{let g=i.get(o.currentIndex);k0(g,o)})}static ngTemplateContextGuard(A,i){return!0}static \u0275fac=function(i){return new(i||t)(AA(Ce),AA(ne),AA(Ao))};static \u0275dir=Y({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function k0(t,e){t.context.$implicit=e.item}var Jt=(()=>{class t{_viewContainer;_context=new PB;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(A,i){this._viewContainer=A,this._thenTemplateRef=i}set ngIf(A){this._context.$implicit=this._context.ngIf=A,this._updateView()}set ngIfThen(A){F0(A,!1),this._thenTemplateRef=A,this._thenViewRef=null,this._updateView()}set ngIfElse(A){F0(A,!1),this._elseTemplateRef=A,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(A,i){return!0}static \u0275fac=function(i){return new(i||t)(AA(Ce),AA(ne))};static \u0275dir=Y({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),PB=class{$implicit=null;ngIf=null};function F0(t,e){if(t&&!t.createEmbeddedView)throw new U(2020,!1)}var bh=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(A,i,o){this._ngEl=A,this._differs=i,this._renderer=o}set ngStyle(A){this._ngStyle=A,!this._differ&&A&&(this._differ=this._differs.find(A).create())}ngDoCheck(){if(this._differ){let A=this._differ.diff(this._ngStyle);A&&this._applyChanges(A)}}_setStyle(A,i){let[o,g]=A.split("."),n=o.indexOf("-")===-1?void 0:zi.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,g?`${i}${g}`:i,n):this._renderer.removeStyle(this._ngEl.nativeElement,o,n)}_applyChanges(A){A.forEachRemovedItem(i=>this._setStyle(i.key,null)),A.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),A.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static \u0275fac=function(i){return new(i||t)(AA(Z),AA(xB),AA(Me))};static \u0275dir=Y({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),QI=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(A){this._viewContainerRef=A}ngOnChanges(A){if(this._shouldRecreateView(A)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(A){return!!A.ngTemplateOutlet||!!A.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(A,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(A,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static \u0275fac=function(i){return new(i||t)(AA(Ce))};static \u0275dir=Y({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[VA]})}return t})();function c_(t,e){return new U(2100,!1)}var Rh=class{createSubscription(e,A){return Mt(()=>e.subscribe({next:A,error:i=>{throw i}}))}dispose(e){Mt(()=>e.unsubscribe())}},kh=class{createSubscription(e,A){return e.then(A,i=>{throw i})}dispose(e){}},l_=new kh,d_=new Rh,EI=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(A){this._ref=A}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(A){if(!this._obj){if(A)try{this.markForCheckOnValueUpdate=!1,this._subscribe(A)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return A!==this._obj?(this._dispose(),this.transform(A)):this._latestValue}_subscribe(A){this._obj=A,this._strategy=this._selectStrategy(A),this._subscription=this._strategy.createSubscription(A,i=>this._updateLatestValue(A,i))}_selectStrategy(A){if(sg(A))return l_;if(dh(A))return d_;throw c_(t,A)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(A,i){A===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(AA(zA,16))};static \u0275pipe=GB({name:"async",type:t,pure:!1})}return t})();function h_(t,e){return{key:t,value:e}}var Sh=(()=>{class t{differs;constructor(A){this.differs=A}differ;keyValues=[];compareFn=b0;transform(A,i=b0){if(!A||!(A instanceof Map)&&typeof A!="object")return null;this.differ??=this.differs.find(A).create();let o=this.differ.diff(A),g=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(n=>{this.keyValues.push(h_(n.key,n.currentValue))})),(o||g)&&(i&&this.keyValues.sort(i),this.compareFn=i),this.keyValues}static \u0275fac=function(i){return new(i||t)(AA(xB,16))};static \u0275pipe=GB({name:"keyvalue",type:t,pure:!1})}return t})();function b0(t,e){let A=t.key,i=e.key;if(A===i)return 0;if(A==null)return 1;if(i==null)return-1;if(typeof A=="string"&&typeof i=="string")return A<i?-1:1;if(typeof A=="number"&&typeof i=="number")return A-i;if(typeof A=="boolean"&&typeof i=="boolean")return A<i?-1:1;let o=String(A),g=String(i);return o==g?0:o<g?-1:1}var Uo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({})}return t})();function cI(t,e){e=encodeURIComponent(e);for(let A of t.split(";")){let i=A.indexOf("="),[o,g]=i==-1?[A,""]:[A.slice(0,i),A.slice(i+1)];if(o.trim()===e)return decodeURIComponent(g)}return null}var ZB="browser",S0="server";function to(t){return t===ZB}function qB(t){return t===S0}var nn=class{};var N0=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>new Nh(Q(lA),window)})}return t})(),Nh=class{document;window;offset=()=>[0,0];constructor(e,A){this.document=e,this.window=A}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let A=u_(this.document,e);A&&(this.scrollToElement(A),A.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let A=e.getBoundingClientRect(),i=A.left+this.window.pageXOffset,o=A.top+this.window.pageYOffset,g=this.offset();this.window.scrollTo(i-g[0],o-g[1])}};function u_(t,e){let A=t.getElementById(e)||t.getElementsByName(e)[0];if(A)return A;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=i.currentNode;for(;o;){let g=o.shadowRoot;if(g){let n=g.getElementById(e)||g.querySelector(`[name="${e}"]`);if(n)return n}o=i.nextNode()}}return null}var zB=new k(""),Kh=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(A,i){this._zone=i,A.forEach(o=>{o.manager=this}),this._plugins=A.slice().reverse()}addEventListener(A,i,o,g){return this._findPluginFor(i).addEventListener(A,i,o,g)}getZone(){return this._zone}_findPluginFor(A){let i=this._eventNameToPlugin.get(A);if(i)return i;if(i=this._plugins.find(g=>g.supports(A)),!i)throw new U(5101,!1);return this._eventNameToPlugin.set(A,i),i}static \u0275fac=function(i){return new(i||t)(J(zB),J(X))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),lI=class{_doc;constructor(e){this._doc=e}manager},VB="ng-app-id";function G0(t){for(let e of t)e.remove()}function v0(t,e){let A=e.createElement("style");return A.textContent=t,A}function D_(t,e,A,i){let o=t.head?.querySelectorAll(`style[${VB}="${e}"],link[${VB}="${e}"]`);if(o)for(let g of o)g.removeAttribute(VB),g instanceof HTMLLinkElement?i.set(g.href.slice(g.href.lastIndexOf("/")+1),{usage:0,elements:[g]}):g.textContent&&A.set(g.textContent,{usage:0,elements:[g]})}function vh(t,e){let A=e.createElement("link");return A.setAttribute("rel","stylesheet"),A.setAttribute("href",t),A}var Uh=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(A,i,o,g={}){this.doc=A,this.appId=i,this.nonce=o,this.isServer=qB(g),D_(A,i,this.inline,this.external),this.hosts.add(A.head)}addStyles(A,i){for(let o of A)this.addUsage(o,this.inline,v0);i?.forEach(o=>this.addUsage(o,this.external,vh))}removeStyles(A,i){for(let o of A)this.removeUsage(o,this.inline);i?.forEach(o=>this.removeUsage(o,this.external))}addUsage(A,i,o){let g=i.get(A);g?g.usage++:i.set(A,{usage:1,elements:[...this.hosts].map(n=>this.addElement(n,o(A,this.doc)))})}removeUsage(A,i){let o=i.get(A);o&&(o.usage--,o.usage<=0&&(G0(o.elements),i.delete(A)))}ngOnDestroy(){for(let[,{elements:A}]of[...this.inline,...this.external])G0(A);this.hosts.clear()}addHost(A){this.hosts.add(A);for(let[i,{elements:o}]of this.inline)o.push(this.addElement(A,v0(i,this.doc)));for(let[i,{elements:o}]of this.external)o.push(this.addElement(A,vh(i,this.doc)))}removeHost(A){this.hosts.delete(A)}addElement(A,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(VB,this.appId),A.appendChild(i)}static \u0275fac=function(i){return new(i||t)(J(lA),J(ds),J(eI,8),J(jt))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Gh={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"},_h=/%COMP%/g;var K0="%COMP%",m_=`_nghost-${K0}`,f_=`_ngcontent-${K0}`,w_=!0,p_=new k("",{providedIn:"root",factory:()=>w_});function y_(t){return f_.replace(_h,t)}function M_(t){return m_.replace(_h,t)}function U0(t,e){return e.map(A=>A.replace(_h,t))}var uI=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(A,i,o,g,n,s,r,I=null,B=null){this.eventManager=A,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=g,this.doc=n,this.platformId=s,this.ngZone=r,this.nonce=I,this.tracingService=B,this.platformIsServer=qB(s),this.defaultRenderer=new dI(A,n,r,this.platformIsServer,this.tracingService)}createRenderer(A,i){if(!A||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Wi.ShadowDom&&(i=hA(R({},i),{encapsulation:Wi.Emulated}));let o=this.getOrCreateRenderer(A,i);return o instanceof WB?o.applyToHost(A):o instanceof hI&&o.applyStyles(),o}getOrCreateRenderer(A,i){let o=this.rendererByCompId,g=o.get(i.id);if(!g){let n=this.doc,s=this.ngZone,r=this.eventManager,I=this.sharedStylesHost,B=this.removeStylesOnCompDestroy,c=this.platformIsServer,D=this.tracingService;switch(i.encapsulation){case Wi.Emulated:g=new WB(r,I,i,this.appId,B,n,s,c,D);break;case Wi.ShadowDom:return new Lh(r,I,A,i,n,s,this.nonce,c,D);default:g=new hI(r,I,i,B,n,s,c,D);break}o.set(i.id,g)}return g}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(A){this.rendererByCompId.delete(A)}static \u0275fac=function(i){return new(i||t)(J(Kh),J(Uh),J(ds),J(p_),J(lA),J(jt),J(X),J(eI),J(hs,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),dI=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,A,i,o,g){this.eventManager=e,this.doc=A,this.ngZone=i,this.platformIsServer=o,this.tracingService=g}destroy(){}destroyNode=null;createElement(e,A){return A?this.doc.createElementNS(Gh[A]||A,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,A){(L0(e)?e.content:e).appendChild(A)}insertBefore(e,A,i){e&&(L0(e)?e.content:e).insertBefore(A,i)}removeChild(e,A){A.remove()}selectRootElement(e,A){let i=typeof e=="string"?this.doc.querySelector(e):e;if(!i)throw new U(-5104,!1);return A||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,A,i,o){if(o){A=o+":"+A;let g=Gh[o];g?e.setAttributeNS(g,A,i):e.setAttribute(A,i)}else e.setAttribute(A,i)}removeAttribute(e,A,i){if(i){let o=Gh[i];o?e.removeAttributeNS(o,A):e.removeAttribute(`${i}:${A}`)}else e.removeAttribute(A)}addClass(e,A){e.classList.add(A)}removeClass(e,A){e.classList.remove(A)}setStyle(e,A,i,o){o&(zi.DashCase|zi.Important)?e.style.setProperty(A,i,o&zi.Important?"important":""):e.style[A]=i}removeStyle(e,A,i){i&zi.DashCase?e.style.removeProperty(A):e.style[A]=""}setProperty(e,A,i){e!=null&&(e[A]=i)}setValue(e,A){e.nodeValue=A}listen(e,A,i,o){if(typeof e=="string"&&(e=xt().getGlobalEventTarget(this.doc,e),!e))throw new U(5102,!1);let g=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(g=this.tracingService.wrapEventListener(e,A,g)),this.eventManager.addEventListener(e,A,g,o)}decoratePreventDefault(e){return A=>{if(A==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(A)):e(A))===!1&&A.preventDefault()}}};function L0(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Lh=class extends dI{sharedStylesHost;hostEl;shadowRoot;constructor(e,A,i,o,g,n,s,r,I){super(e,g,n,r,I),this.sharedStylesHost=A,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let B=o.styles;B=U0(o.id,B);for(let D of B){let h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=D,this.shadowRoot.appendChild(h)}let c=o.getExternalStyles?.();if(c)for(let D of c){let h=vh(D,g);s&&h.setAttribute("nonce",s),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,A){return super.appendChild(this.nodeOrShadowRoot(e),A)}insertBefore(e,A,i){return super.insertBefore(this.nodeOrShadowRoot(e),A,i)}removeChild(e,A){return super.removeChild(null,A)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},hI=class extends dI{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,A,i,o,g,n,s,r,I){super(e,g,n,s,r),this.sharedStylesHost=A,this.removeStylesOnCompDestroy=o;let B=i.styles;this.styles=I?U0(I,B):B,this.styleUrls=i.getExternalStyles?.(I)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},WB=class extends hI{contentAttr;hostAttr;constructor(e,A,i,o,g,n,s,r,I){let B=o+"-"+i.id;super(e,A,i,g,n,s,r,I,B),this.contentAttr=y_(B),this.hostAttr=M_(B)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,A){let i=super.createElement(e,A);return super.setAttribute(i,this.contentAttr,""),i}};var xh=class extends CI{supportsDOMEvents=!0},jB=class t extends xh{static makeCurrent(){ph(new t)}onAndCancel(e,A,i,o){return e.addEventListener(A,i,o),()=>{e.removeEventListener(A,i,o)}}dispatchEvent(e,A){e.dispatchEvent(A)}remove(e){e.remove()}createElement(e,A){return A=A||this.getDefaultDocument(),A.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,A){return A==="window"?window:A==="document"?e:A==="body"?e.body:null}getBaseHref(e){let A=R_();return A==null?null:k_(A)}resetBaseElement(){DI=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return cI(document.cookie,e)}},DI=null;function R_(){return DI=DI||document.querySelector("base"),DI?DI.getAttribute("href"):null}function k_(t){return new URL(t,document.baseURI).pathname}var XB=class{addToWindow(e){ut.getAngularTestability=(i,o=!0)=>{let g=e.findTestabilityInTree(i,o);if(g==null)throw new U(5103,!1);return g},ut.getAllAngularTestabilities=()=>e.getAllTestabilities(),ut.getAllAngularRootElements=()=>e.getAllRootElements();let A=i=>{let o=ut.getAllAngularTestabilities(),g=o.length,n=function(){g--,g==0&&i()};o.forEach(s=>{s.whenStable(n)})};ut.frameworkStabilizers||(ut.frameworkStabilizers=[]),ut.frameworkStabilizers.push(A)}findTestabilityInTree(e,A,i){if(A==null)return null;let o=e.getTestability(A);return o??(i?xt().isShadowRoot(A)?this.findTestabilityInTree(e,A.host,!0):this.findTestabilityInTree(e,A.parentElement,!0):null)}},F_=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),x0=(()=>{class t extends lI{constructor(A){super(A)}supports(A){return!0}addEventListener(A,i,o,g){return A.addEventListener(i,o,g),()=>this.removeEventListener(A,i,o,g)}removeEventListener(A,i,o,g){return A.removeEventListener(i,o,g)}static \u0275fac=function(i){return new(i||t)(J(lA))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),_0=["alt","control","meta","shift"],b_={"\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"},S_={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Y0=(()=>{class t extends lI{constructor(A){super(A)}supports(A){return t.parseEventName(A)!=null}addEventListener(A,i,o,g){let n=t.parseEventName(i),s=t.eventCallback(n.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xt().onAndCancel(A,n.domEventName,s,g))}static parseEventName(A){let i=A.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let g=t._normalizeKey(i.pop()),n="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),n="code."),_0.forEach(I=>{let B=i.indexOf(I);B>-1&&(i.splice(B,1),n+=I+".")}),n+=g,i.length!=0||g.length===0)return null;let r={};return r.domEventName=o,r.fullKey=n,r}static matchEventFullKeyCode(A,i){let o=b_[A.key]||A.key,g="";return i.indexOf("code.")>-1&&(o=A.code,g="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),_0.forEach(n=>{if(n!==o){let s=S_[n];s(A)&&(g+=n+".")}}),g+=o,g===i)}static eventCallback(A,i,o){return g=>{t.matchEventFullKeyCode(g,A)&&o.runGuarded(()=>i(g))}}static _normalizeKey(A){return A==="esc"?"escape":A}static \u0275fac=function(i){return new(i||t)(J(lA))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function N_(){jB.makeCurrent()}function G_(){return new mt}function v_(){return vp(document),document}var L_=[{provide:jt,useValue:ZB},{provide:Od,useValue:N_,multi:!0},{provide:lA,useFactory:v_}],$B=wh(u0,"browser",L_);var K_=[{provide:rI,useClass:XB},{provide:ch,useClass:vB,deps:[X,LB,rI]},{provide:vB,useClass:vB,deps:[X,LB,rI]}],U_=[{provide:cB,useValue:"root"},{provide:mt,useFactory:G_},{provide:zB,useClass:x0,multi:!0,deps:[lA]},{provide:zB,useClass:Y0,multi:!0,deps:[lA]},uI,Uh,Kh,{provide:tt,useExisting:uI},{provide:nn,useClass:F_},[]],mI=(()=>{class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({providers:[...U_,...K_],imports:[Uo,D0]})}return t})();var fs=class{},fI=class{},Ig=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(A=>{let i=A.indexOf(":");if(i>0){let o=A.slice(0,i),g=A.slice(i+1).trim();this.addHeaderEntry(o,g)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((A,i)=>{this.addHeaderEntry(i,A)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([A,i])=>{this.setHeaderEntries(A,i)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let A=this.headers.get(e.toLowerCase());return A&&A.length>0?A[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,A){return this.clone({name:e,value:A,op:"a"})}set(e,A){return this.clone({name:e,value:A,op:"s"})}delete(e,A){return this.clone({name:e,value:A,op:"d"})}maybeSetNormalizedName(e,A){this.normalizedNames.has(A)||this.normalizedNames.set(A,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(A=>{this.headers.set(A,e.headers.get(A)),this.normalizedNames.set(A,e.normalizedNames.get(A))})}clone(e){let A=new t;return A.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,A.lazyUpdate=(this.lazyUpdate||[]).concat([e]),A}applyUpdate(e){let A=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(e.name,A);let o=(e.op==="a"?this.headers.get(A):void 0)||[];o.push(...i),this.headers.set(A,o);break;case"d":let g=e.value;if(!g)this.headers.delete(A),this.normalizedNames.delete(A);else{let n=this.headers.get(A);if(!n)return;n=n.filter(s=>g.indexOf(s)===-1),n.length===0?(this.headers.delete(A),this.normalizedNames.delete(A)):this.headers.set(A,n)}break}}addHeaderEntry(e,A){let i=e.toLowerCase();this.maybeSetNormalizedName(e,i),this.headers.has(i)?this.headers.get(i).push(A):this.headers.set(i,[A])}setHeaderEntries(e,A){let i=(Array.isArray(A)?A:[A]).map(g=>g.toString()),o=e.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(A=>e(this.normalizedNames.get(A),this.headers.get(A)))}};var eQ=class{encodeKey(e){return J0(e)}encodeValue(e){return J0(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function __(t,e){let A=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let g=o.indexOf("="),[n,s]=g==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,g)),e.decodeValue(o.slice(g+1))],r=A.get(n)||[];r.push(s),A.set(n,r)}),A}var x_=/%(\d[a-f0-9])/gi,Y_={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function J0(t){return encodeURIComponent(t).replace(x_,(e,A)=>Y_[A]??e)}function AQ(t){return`${t}`}var _o=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new eQ,e.fromString){if(e.fromObject)throw new U(2805,!1);this.map=__(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(A=>{let i=e.fromObject[A],o=Array.isArray(i)?i.map(AQ):[AQ(i)];this.map.set(A,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let A=this.map.get(e);return A?A[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,A){return this.clone({param:e,value:A,op:"a"})}appendAll(e){let A=[];return Object.keys(e).forEach(i=>{let o=e[i];Array.isArray(o)?o.forEach(g=>{A.push({param:i,value:g,op:"a"})}):A.push({param:i,value:o,op:"a"})}),this.clone(A)}set(e,A){return this.clone({param:e,value:A,op:"s"})}delete(e,A){return this.clone({param:e,value:A,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let A=this.encoder.encodeKey(e);return this.map.get(e).map(i=>A+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let A=new t({encoder:this.encoder});return A.cloneFrom=this.cloneFrom||this,A.updates=(this.updates||[]).concat(e),A}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let A=(e.op==="a"?this.map.get(e.param):void 0)||[];A.push(AQ(e.value)),this.map.set(e.param,A);break;case"d":if(e.value!==void 0){let i=this.map.get(e.param)||[],o=i.indexOf(AQ(e.value));o!==-1&&i.splice(o,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var tQ=class{map=new Map;set(e,A){return this.map.set(e,A),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function J_(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function H0(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function T0(t){return typeof Blob<"u"&&t instanceof Blob}function O0(t){return typeof FormData<"u"&&t instanceof FormData}function H_(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var P0="Content-Type",Z0="Accept",V0="X-Request-URL",W0="text/plain",z0="application/json",T_=`${z0}, ${W0}, */*`,ms=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,A,i,o){this.url=A,this.method=e.toUpperCase();let g;if(J_(this.method)||o?(this.body=i!==void 0?i:null,g=o):g=i,g&&(this.reportProgress=!!g.reportProgress,this.withCredentials=!!g.withCredentials,g.responseType&&(this.responseType=g.responseType),g.headers&&(this.headers=g.headers),g.context&&(this.context=g.context),g.params&&(this.params=g.params),this.transferCache=g.transferCache),this.headers??=new Ig,this.context??=new tQ,!this.params)this.params=new _o,this.urlWithParams=A;else{let n=this.params.toString();if(n.length===0)this.urlWithParams=A;else{let s=A.indexOf("?"),r=s===-1?"?":s<A.length-1?"&":"";this.urlWithParams=A+r+n}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||H0(this.body)||T0(this.body)||O0(this.body)||H_(this.body)?this.body:this.body instanceof _o?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||O0(this.body)?null:T0(this.body)?this.body.type||null:H0(this.body)?null:typeof this.body=="string"?W0:this.body instanceof _o?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?z0:null}clone(e={}){let A=e.method||this.method,i=e.url||this.url,o=e.responseType||this.responseType,g=e.transferCache??this.transferCache,n=e.body!==void 0?e.body:this.body,s=e.withCredentials??this.withCredentials,r=e.reportProgress??this.reportProgress,I=e.headers||this.headers,B=e.params||this.params,c=e.context??this.context;return e.setHeaders!==void 0&&(I=Object.keys(e.setHeaders).reduce((D,h)=>D.set(h,e.setHeaders[h]),I)),e.setParams&&(B=Object.keys(e.setParams).reduce((D,h)=>D.set(h,e.setParams[h]),B)),new t(A,i,n,{params:B,headers:I,context:c,reportProgress:r,responseType:o,withCredentials:s,transferCache:g})}},rn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(rn||{}),ws=class{headers;status;statusText;url;ok;type;constructor(e,A=200,i="OK"){this.headers=e.headers||new Ig,this.status=e.status!==void 0?e.status:A,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},iQ=class t extends ws{constructor(e={}){super(e)}type=rn.ResponseHeader;clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},wI=class t extends ws{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=rn.Response;clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},pI=class extends ws{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},O_=200,P_=204;function Yh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var it=(()=>{class t{handler;constructor(A){this.handler=A}request(A,i,o={}){let g;if(A instanceof ms)g=A;else{let r;o.headers instanceof Ig?r=o.headers:r=new Ig(o.headers);let I;o.params&&(o.params instanceof _o?I=o.params:I=new _o({fromObject:o.params})),g=new ms(A,i,o.body!==void 0?o.body:null,{headers:r,context:o.context,params:I,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let n=tA(g).pipe(Ji(r=>this.handler.handle(r)));if(A instanceof ms||o.observe==="events")return n;let s=n.pipe(RA(r=>r instanceof wI));switch(o.observe||"body"){case"body":switch(g.responseType){case"arraybuffer":return s.pipe(oA(r=>{if(r.body!==null&&!(r.body instanceof ArrayBuffer))throw new U(2806,!1);return r.body}));case"blob":return s.pipe(oA(r=>{if(r.body!==null&&!(r.body instanceof Blob))throw new U(2807,!1);return r.body}));case"text":return s.pipe(oA(r=>{if(r.body!==null&&typeof r.body!="string")throw new U(2808,!1);return r.body}));case"json":default:return s.pipe(oA(r=>r.body))}case"response":return s;default:throw new U(2809,!1)}}delete(A,i={}){return this.request("DELETE",A,i)}get(A,i={}){return this.request("GET",A,i)}head(A,i={}){return this.request("HEAD",A,i)}jsonp(A,i){return this.request("JSONP",A,{params:new _o().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(A,i={}){return this.request("OPTIONS",A,i)}patch(A,i,o={}){return this.request("PATCH",A,Yh(o,i))}post(A,i,o={}){return this.request("POST",A,Yh(o,i))}put(A,i,o={}){return this.request("PUT",A,Yh(o,i))}static \u0275fac=function(i){return new(i||t)(J(fs))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Z_=new k("");function j0(t,e){return e(t)}function q_(t,e){return(A,i)=>e.intercept(A,{handle:o=>t(o,i)})}function V_(t,e,A){return(i,o)=>wt(A,()=>e(i,g=>t(g,o)))}var X0=new k(""),Hh=new k(""),$0=new k(""),Th=new k("",{providedIn:"root",factory:()=>!0});function W_(){let t=null;return(e,A)=>{t===null&&(t=(Q(X0,{optional:!0})??[]).reduceRight(q_,j0));let i=Q(Go);if(Q(Th)){let g=i.add();return t(e,A).pipe(Hi(()=>i.remove(g)))}else return t(e,A)}}var oQ=(()=>{class t extends fs{backend;injector;chain=null;pendingTasks=Q(Go);contributeToStability=Q(Th);constructor(A,i){super(),this.backend=A,this.injector=i}handle(A){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Hh),...this.injector.get($0,[])]));this.chain=i.reduceRight((o,g)=>V_(o,g,this.injector),j0)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(A,o=>this.backend.handle(o)).pipe(Hi(()=>this.pendingTasks.remove(i)))}else return this.chain(A,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(J(fI),J(Le))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var z_=/^\)\]\}',?\n/,j_=RegExp(`^${V0}:`,"m");function X_(t){return"responseURL"in t&&t.responseURL?t.responseURL:j_.test(t.getAllResponseHeaders())?t.getResponseHeader(V0):null}var Jh=(()=>{class t{xhrFactory;constructor(A){this.xhrFactory=A}handle(A){if(A.method==="JSONP")throw new U(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?se(i.\u0275loadImpl()):tA(null)).pipe(re(()=>new QA(g=>{let n=i.build();if(n.open(A.method,A.urlWithParams),A.withCredentials&&(n.withCredentials=!0),A.headers.forEach((y,L)=>n.setRequestHeader(y,L.join(","))),A.headers.has(Z0)||n.setRequestHeader(Z0,T_),!A.headers.has(P0)){let y=A.detectContentTypeHeader();y!==null&&n.setRequestHeader(P0,y)}if(A.responseType){let y=A.responseType.toLowerCase();n.responseType=y!=="json"?y:"text"}let s=A.serializeBody(),r=null,I=()=>{if(r!==null)return r;let y=n.statusText||"OK",L=new Ig(n.getAllResponseHeaders()),P=X_(n)||A.url;return r=new iQ({headers:L,status:n.status,statusText:y,url:P}),r},B=()=>{let{headers:y,status:L,statusText:P,url:mA}=I(),_A=null;L!==P_&&(_A=typeof n.response>"u"?n.responseText:n.response),L===0&&(L=_A?O_:0);let fA=L>=200&&L<300;if(A.responseType==="json"&&typeof _A=="string"){let Qt=_A;_A=_A.replace(z_,"");try{_A=_A!==""?JSON.parse(_A):null}catch(ue){_A=Qt,fA&&(fA=!1,_A={error:ue,text:_A})}}fA?(g.next(new wI({body:_A,headers:y,status:L,statusText:P,url:mA||void 0})),g.complete()):g.error(new pI({error:_A,headers:y,status:L,statusText:P,url:mA||void 0}))},c=y=>{let{url:L}=I(),P=new pI({error:y,status:n.status||0,statusText:n.statusText||"Unknown Error",url:L||void 0});g.error(P)},D=!1,h=y=>{D||(g.next(I()),D=!0);let L={type:rn.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(L.total=y.total),A.responseType==="text"&&n.responseText&&(L.partialText=n.responseText),g.next(L)},p=y=>{let L={type:rn.UploadProgress,loaded:y.loaded};y.lengthComputable&&(L.total=y.total),g.next(L)};return n.addEventListener("load",B),n.addEventListener("error",c),n.addEventListener("timeout",c),n.addEventListener("abort",c),A.reportProgress&&(n.addEventListener("progress",h),s!==null&&n.upload&&n.upload.addEventListener("progress",p)),n.send(s),g.next({type:rn.Sent}),()=>{n.removeEventListener("error",c),n.removeEventListener("abort",c),n.removeEventListener("load",B),n.removeEventListener("timeout",c),A.reportProgress&&(n.removeEventListener("progress",h),s!==null&&n.upload&&n.upload.removeEventListener("progress",p)),n.readyState!==n.DONE&&n.abort()}})))}static \u0275fac=function(i){return new(i||t)(J(nn))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),AM=new k(""),$_="XSRF-TOKEN",Ax=new k("",{providedIn:"root",factory:()=>$_}),ex="X-XSRF-TOKEN",tx=new k("",{providedIn:"root",factory:()=>ex}),yI=class{},ix=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(A,i,o){this.doc=A,this.platform=i,this.cookieName=o}getToken(){if(this.platform==="server")return null;let A=this.doc.cookie||"";return A!==this.lastCookieString&&(this.parseCount++,this.lastToken=cI(A,this.cookieName),this.lastCookieString=A),this.lastToken}static \u0275fac=function(i){return new(i||t)(J(lA),J(jt),J(Ax))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function ox(t,e){let A=t.url.toLowerCase();if(!Q(AM)||t.method==="GET"||t.method==="HEAD"||A.startsWith("http://")||A.startsWith("https://"))return e(t);let i=Q(yI).getToken(),o=Q(tx);return i!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),e(t)}var Oh=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Oh||{});function gx(t,e){return{\u0275kind:t,\u0275providers:e}}function eM(...t){let e=[it,Jh,oQ,{provide:fs,useExisting:oQ},{provide:fI,useFactory:()=>Q(Z_,{optional:!0})??Q(Jh)},{provide:Hh,useValue:ox,multi:!0},{provide:AM,useValue:!0},{provide:yI,useClass:ix}];for(let A of t)e.push(...A.\u0275providers);return EB(e)}var q0=new k("");function tM(){return gx(Oh.LegacyInterceptors,[{provide:q0,useFactory:W_},{provide:Hh,useExisting:q0,multi:!0}])}var Ph=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({providers:[eM(tM())]})}return t})();var iM=(()=>{class t{_doc;constructor(A){this._doc=A}getTitle(){return this._doc.title}setTitle(A){this._doc.title=A||""}static \u0275fac=function(i){return new(i||t)(J(lA))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var an=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=J(nx),o},providedIn:"root"})}return t})(),nx=(()=>{class t extends an{_doc;constructor(A){super(),this._doc=A}sanitize(A,i){if(i==null)return null;switch(A){case Ve.NONE:return i;case Ve.HTML:return ng(i,"HTML")?di(i):Vd(this._doc,String(i)).toString();case Ve.STYLE:return ng(i,"Style")?di(i):i;case Ve.SCRIPT:if(ng(i,"Script"))return di(i);throw new U(5200,!1);case Ve.URL:return ng(i,"URL")?di(i):pB(String(i));case Ve.RESOURCE_URL:if(ng(i,"ResourceURL"))return di(i);throw new U(5201,!1);default:throw new U(5202,!1)}}bypassSecurityTrustHtml(A){return Jp(A)}bypassSecurityTrustStyle(A){return Hp(A)}bypassSecurityTrustScript(A){return Tp(A)}bypassSecurityTrustUrl(A){return Op(A)}bypassSecurityTrustResourceUrl(A){return Pp(A)}static \u0275fac=function(i){return new(i||t)(J(lA))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var aM=(()=>{class t{_renderer;_elementRef;onChange=A=>{};onTouched=()=>{};constructor(A,i){this._renderer=A,this._elementRef=i}setProperty(A,i){this._renderer.setProperty(this._elementRef.nativeElement,A,i)}registerOnTouched(A){this.onTouched=A}registerOnChange(A){this.onChange=A}setDisabledState(A){this.setProperty("disabled",A)}static \u0275fac=function(i){return new(i||t)(AA(Me),AA(Z))};static \u0275dir=Y({type:t})}return t})(),sx=(()=>{class t extends aM{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,features:[EA]})}return t})(),Bn=new k("");var rx={provide:Bn,useExisting:ft(()=>io),multi:!0};function Ix(){let t=xt()?xt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var ax=new k(""),io=(()=>{class t extends aM{_compositionMode;_composing=!1;constructor(A,i,o){super(A,i),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Ix())}writeValue(A){let i=A??"";this.setProperty("value",i)}_handleInput(A){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(A)}_compositionStart(){this._composing=!0}_compositionEnd(A){this._composing=!1,this._compositionMode&&this.onChange(A)}static \u0275fac=function(i){return new(i||t)(AA(Me),AA(Z),AA(ax,8))};static \u0275dir=Y({type:t,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(i,o){i&1&&x("input",function(n){return o._handleInput(n.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(n){return o._compositionEnd(n.target.value)})},standalone:!1,features:[KA([rx]),EA]})}return t})();function zh(t){return t==null||jh(t)===0}function jh(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Cg=new k(""),EQ=new k(""),Cx=/^(?=.{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])?)*$/,Ms=class{static min(e){return Bx(e)}static max(e){return Qx(e)}static required(e){return Ex(e)}static requiredTrue(e){return cx(e)}static email(e){return lx(e)}static minLength(e){return dx(e)}static maxLength(e){return hx(e)}static pattern(e){return ux(e)}static nullValidator(e){return CM()}static compose(e){return dM(e)}static composeAsync(e){return hM(e)}};function Bx(t){return e=>{if(e.value==null||t==null)return null;let A=parseFloat(e.value);return!isNaN(A)&&A<t?{min:{min:t,actual:e.value}}:null}}function Qx(t){return e=>{if(e.value==null||t==null)return null;let A=parseFloat(e.value);return!isNaN(A)&&A>t?{max:{max:t,actual:e.value}}:null}}function Ex(t){return zh(t.value)?{required:!0}:null}function cx(t){return t.value===!0?null:{required:!0}}function lx(t){return zh(t.value)||Cx.test(t.value)?null:{email:!0}}function dx(t){return e=>{let A=e.value?.length??jh(e.value);return A===null||A===0?null:A<t?{minlength:{requiredLength:t,actualLength:A}}:null}}function hx(t){return e=>{let A=e.value?.length??jh(e.value);return A!==null&&A>t?{maxlength:{requiredLength:t,actualLength:A}}:null}}function ux(t){if(!t)return CM;let e,A;return typeof t=="string"?(A="",t.charAt(0)!=="^"&&(A+="^"),A+=t,t.charAt(t.length-1)!=="$"&&(A+="$"),e=new RegExp(A)):(A=t.toString(),e=t),i=>{if(zh(i.value))return null;let o=i.value;return e.test(o)?null:{pattern:{requiredPattern:A,actualValue:o}}}}function CM(t){return null}function BM(t){return t!=null}function QM(t){return sg(t)?se(t):t}function EM(t){let e={};return t.forEach(A=>{e=A!=null?R(R({},e),A):e}),Object.keys(e).length===0?null:e}function cM(t,e){return e.map(A=>A(t))}function Dx(t){return!t.validate}function lM(t){return t.map(e=>Dx(e)?e:A=>e.validate(A))}function dM(t){if(!t)return null;let e=t.filter(BM);return e.length==0?null:function(A){return EM(cM(A,e))}}function Xh(t){return t!=null?dM(lM(t)):null}function hM(t){if(!t)return null;let e=t.filter(BM);return e.length==0?null:function(A){let i=cM(A,e).map(QM);return Gr(i).pipe(oA(EM))}}function $h(t){return t!=null?hM(lM(t)):null}function oM(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function uM(t){return t._rawValidators}function DM(t){return t._rawAsyncValidators}function Zh(t){return t?Array.isArray(t)?t:[t]:[]}function nQ(t,e){return Array.isArray(t)?t.includes(e):t===e}function gM(t,e){let A=Zh(e);return Zh(t).forEach(o=>{nQ(A,o)||A.push(o)}),A}function nM(t,e){return Zh(e).filter(A=>!nQ(t,A))}var sQ=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Xh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=$h(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,A){return this.control?this.control.hasError(e,A):!1}getError(e,A){return this.control?this.control.getError(e,A):null}},Cn=class extends sQ{name;get formDirective(){return null}get path(){return null}},pi=class extends sQ{_parent=null;name=null;valueAccessor=null},qh=class{_cd;constructor(e){this._cd=e}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}},mx={"[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"},d7=hA(R({},mx),{"[class.ng-submitted]":"isSubmitted"}),oo=(()=>{class t extends qh{constructor(A){super(A)}static \u0275fac=function(i){return new(i||t)(AA(pi,2))};static \u0275dir=Y({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&gA("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[EA]})}return t})();var RI="VALID",gQ="INVALID",ps="PENDING",kI="DISABLED",ag=class{},rQ=class extends ag{value;source;constructor(e,A){super(),this.value=e,this.source=A}},bI=class extends ag{pristine;source;constructor(e,A){super(),this.pristine=e,this.source=A}},SI=class extends ag{touched;source;constructor(e,A){super(),this.touched=e,this.source=A}},ys=class extends ag{status;source;constructor(e,A){super(),this.status=e,this.source=A}},Vh=class extends ag{source;constructor(e){super(),this.source=e}},Wh=class extends ag{source;constructor(e){super(),this.source=e}};function mM(t){return(cQ(t)?t.validators:t)||null}function fx(t){return Array.isArray(t)?Xh(t):t||null}function fM(t,e){return(cQ(e)?e.asyncValidators:t)||null}function wx(t){return Array.isArray(t)?$h(t):t||null}function cQ(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function px(t,e,A){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new U(1e3,"");if(!i[A])throw new U(1001,"")}function yx(t,e,A){t._forEachChild((i,o)=>{if(A[o]===void 0)throw new U(1002,"")})}var IQ=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,A){this._assignValidators(e),this._assignAsyncValidators(A)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Mt(this.statusReactive)}set status(e){Mt(()=>this.statusReactive.set(e))}_status=Lo(()=>this.statusReactive());statusReactive=_t(void 0);get valid(){return this.status===RI}get invalid(){return this.status===gQ}get pending(){return this.status==ps}get disabled(){return this.status===kI}get enabled(){return this.status!==kI}errors;get pristine(){return Mt(this.pristineReactive)}set pristine(e){Mt(()=>this.pristineReactive.set(e))}_pristine=Lo(()=>this.pristineReactive());pristineReactive=_t(!0);get dirty(){return!this.pristine}get touched(){return Mt(this.touchedReactive)}set touched(e){Mt(()=>this.touchedReactive.set(e))}_touched=Lo(()=>this.touchedReactive());touchedReactive=_t(!1);get untouched(){return!this.touched}_events=new K;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(gM(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(gM(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(nM(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(nM(e,this._rawAsyncValidators))}hasValidator(e){return nQ(this._rawValidators,e)}hasAsyncValidator(e){return nQ(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let A=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(hA(R({},e),{sourceControl:i})),A&&e.emitEvent!==!1&&this._events.next(new SI(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(A=>A.markAllAsTouched(e))}markAsUntouched(e={}){let A=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),A&&e.emitEvent!==!1&&this._events.next(new SI(!1,i))}markAsDirty(e={}){let A=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(hA(R({},e),{sourceControl:i})),A&&e.emitEvent!==!1&&this._events.next(new bI(!1,i))}markAsPristine(e={}){let A=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),A&&e.emitEvent!==!1&&this._events.next(new bI(!0,i))}markAsPending(e={}){this.status=ps;let A=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ys(this.status,A)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(hA(R({},e),{sourceControl:A}))}disable(e={}){let A=this._parentMarkedDirty(e.onlySelf);this.status=kI,this.errors=null,this._forEachChild(o=>{o.disable(hA(R({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rQ(this.value,i)),this._events.next(new ys(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(hA(R({},e),{skipPristineCheck:A}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let A=this._parentMarkedDirty(e.onlySelf);this.status=RI,this._forEachChild(i=>{i.enable(hA(R({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(hA(R({},e),{skipPristineCheck:A}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,A){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},A),this._parent._updateTouched({},A))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===RI||this.status===ps)&&this._runAsyncValidator(i,e.emitEvent)}let A=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rQ(this.value,A)),this._events.next(new ys(this.status,A)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(hA(R({},e),{sourceControl:A}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(A=>A._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?kI:RI}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,A){if(this.asyncValidator){this.status=ps,this._hasOwnPendingAsyncValidator={emitEvent:A!==!1};let i=QM(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:A,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,A={}){this.errors=e,this._updateControlsErrors(A.emitEvent!==!1,this,A.shouldHaveEmitted)}get(e){let A=e;return A==null||(Array.isArray(A)||(A=A.split(".")),A.length===0)?null:A.reduce((i,o)=>i&&i._find(o),this)}getError(e,A){let i=A?this.get(A):this;return i&&i.errors?i.errors[e]:null}hasError(e,A){return!!this.getError(e,A)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,A,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new ys(this.status,A)),this._parent&&this._parent._updateControlsErrors(e,A,i)}_initObservables(){this.valueChanges=new $,this.statusChanges=new $}_calculateStatus(){return this._allControlsDisabled()?kI:this.errors?gQ:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ps)?ps:this._anyControlsHaveStatus(gQ)?gQ:RI}_anyControlsHaveStatus(e){return this._anyControls(A=>A.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,A){let i=!this._anyControlsDirty(),o=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,A),o&&this._events.next(new bI(this.pristine,A))}_updateTouched(e={},A){this.touched=this._anyControlsTouched(),this._events.next(new SI(this.touched,A)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,A)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){cQ(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let A=this._parent&&this._parent.dirty;return!e&&!!A&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=fx(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=wx(this._rawAsyncValidators)}},aQ=class extends IQ{constructor(e,A,i){super(mM(A),fM(i,A)),this.controls=e,this._initObservables(),this._setUpdateStrategy(A),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,A){return this.controls[e]?this.controls[e]:(this.controls[e]=A,A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange),A)}addControl(e,A,i={}){this.registerControl(e,A),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,A={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:A.emitEvent}),this._onCollectionChange()}setControl(e,A,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],A&&this.registerControl(e,A),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,A={}){yx(this,!0,e),Object.keys(e).forEach(i=>{px(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:A.emitEvent})}),this.updateValueAndValidity(A)}patchValue(e,A={}){e!=null&&(Object.keys(e).forEach(i=>{let o=this.controls[i];o&&o.patchValue(e[i],{onlySelf:!0,emitEvent:A.emitEvent})}),this.updateValueAndValidity(A))}reset(e={},A={}){this._forEachChild((i,o)=>{i.reset(e?e[o]:null,{onlySelf:!0,emitEvent:A.emitEvent})}),this._updatePristine(A,this),this._updateTouched(A,this),this.updateValueAndValidity(A)}getRawValue(){return this._reduceChildren({},(e,A,i)=>(e[i]=A.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(A,i)=>i._syncPendingControls()?!0:A);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(A=>{let i=this.controls[A];i&&e(i,A)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[A,i]of Object.entries(this.controls))if(this.contains(A)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(A,i,o)=>((i.enabled||this.disabled)&&(A[o]=i.value),A))}_reduceChildren(e,A){let i=e;return this._forEachChild((o,g)=>{i=A(i,o,g)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Rs=new k("",{providedIn:"root",factory:()=>lQ}),lQ="always";function Mx(t,e){return[...e.path,t]}function NI(t,e,A=lQ){Au(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||A==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),kx(t,e),bx(t,e),Fx(t,e),Rx(t,e)}function CQ(t,e,A=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),QQ(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function BQ(t,e){t.forEach(A=>{A.registerOnValidatorChange&&A.registerOnValidatorChange(e)})}function Rx(t,e){if(e.valueAccessor.setDisabledState){let A=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(A),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(A)})}}function Au(t,e){let A=uM(t);e.validator!==null?t.setValidators(oM(A,e.validator)):typeof A=="function"&&t.setValidators([A]);let i=DM(t);e.asyncValidator!==null?t.setAsyncValidators(oM(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let o=()=>t.updateValueAndValidity();BQ(e._rawValidators,o),BQ(e._rawAsyncValidators,o)}function QQ(t,e){let A=!1;if(t!==null){if(e.validator!==null){let o=uM(t);if(Array.isArray(o)&&o.length>0){let g=o.filter(n=>n!==e.validator);g.length!==o.length&&(A=!0,t.setValidators(g))}}if(e.asyncValidator!==null){let o=DM(t);if(Array.isArray(o)&&o.length>0){let g=o.filter(n=>n!==e.asyncValidator);g.length!==o.length&&(A=!0,t.setAsyncValidators(g))}}}let i=()=>{};return BQ(e._rawValidators,i),BQ(e._rawAsyncValidators,i),A}function kx(t,e){e.valueAccessor.registerOnChange(A=>{t._pendingValue=A,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&wM(t,e)})}function Fx(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&wM(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function wM(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function bx(t,e){let A=(i,o)=>{e.valueAccessor.writeValue(i),o&&e.viewToModelUpdate(i)};t.registerOnChange(A),e._registerOnDestroy(()=>{t._unregisterOnChange(A)})}function pM(t,e){t==null,Au(t,e)}function Sx(t,e){return QQ(t,e)}function yM(t,e){if(!t.hasOwnProperty("model"))return!1;let A=t.model;return A.isFirstChange()?!0:!Object.is(e,A.currentValue)}function Nx(t){return Object.getPrototypeOf(t.constructor)===sx}function MM(t,e){t._syncPendingControls(),e.forEach(A=>{let i=A.control;i.updateOn==="submit"&&i._pendingChange&&(A.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function RM(t,e){if(!e)return null;Array.isArray(e);let A,i,o;return e.forEach(g=>{g.constructor===io?A=g:Nx(g)?i=g:o=g}),o||i||A||null}function Gx(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}var vx={provide:Cn,useExisting:ft(()=>GI)},FI=Promise.resolve(),GI=(()=>{class t extends Cn{callSetDisabledState;get submitted(){return Mt(this.submittedReactive)}_submitted=Lo(()=>this.submittedReactive());submittedReactive=_t(!1);_directives=new Set;form;ngSubmit=new $;options;constructor(A,i,o){super(),this.callSetDisabledState=o,this.form=new aQ({},Xh(A),$h(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(A){FI.then(()=>{let i=this._findContainer(A.path);A.control=i.registerControl(A.name,A.control),NI(A.control,A,this.callSetDisabledState),A.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(A)})}getControl(A){return this.form.get(A.path)}removeControl(A){FI.then(()=>{let i=this._findContainer(A.path);i&&i.removeControl(A.name),this._directives.delete(A)})}addFormGroup(A){FI.then(()=>{let i=this._findContainer(A.path),o=new aQ({});pM(o,A),i.registerControl(A.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(A){FI.then(()=>{let i=this._findContainer(A.path);i&&i.removeControl(A.name)})}getFormGroup(A){return this.form.get(A.path)}updateModel(A,i){FI.then(()=>{this.form.get(A.path).setValue(i)})}setValue(A){this.control.setValue(A)}onSubmit(A){return this.submittedReactive.set(!0),MM(this.form,this._directives),this.ngSubmit.emit(A),A?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(A=void 0){this.form.reset(A),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(A){return A.pop(),A.length?this.form.get(A):this.form}static \u0275fac=function(i){return new(i||t)(AA(Cg,10),AA(EQ,10),AA(Rs,8))};static \u0275dir=Y({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){i&1&&x("submit",function(n){return o.onSubmit(n)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[KA([vx]),EA]})}return t})();function sM(t,e){let A=t.indexOf(e);A>-1&&t.splice(A,1)}function rM(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var dQ=class extends IQ{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,A,i){super(mM(A),fM(i,A)),this._applyFormState(e),this._setUpdateStrategy(A),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),cQ(A)&&(A.nonNullable||A.initialValueIsDefault)&&(rM(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,A={}){this.value=this._pendingValue=e,this._onChange.length&&A.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,A.emitViewToModelChange!==!1)),this.updateValueAndValidity(A)}patchValue(e,A={}){this.setValue(e,A)}reset(e=this.defaultValue,A={}){this._applyFormState(e),this.markAsPristine(A),this.markAsUntouched(A),this.setValue(this.value,A),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sM(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sM(this._onDisabledChange,e)}_forEachChild(e){}_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(e){rM(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Lx=t=>t instanceof dQ;var Kx={provide:pi,useExisting:ft(()=>yi)},IM=Promise.resolve(),yi=(()=>{class t extends pi{_changeDetectorRef;callSetDisabledState;control=new dQ;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new $;constructor(A,i,o,g,n,s){super(),this._changeDetectorRef=n,this.callSetDisabledState=s,this._parent=A,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=RM(this,g)}ngOnChanges(A){if(this._checkForErrors(),!this._registered||"name"in A){if(this._registered&&(this._checkName(),this.formDirective)){let i=A.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in A&&this._updateDisabled(A),yM(A,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(A){this.viewModel=A,this.update.emit(A)}_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(){NI(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(A){IM.then(()=>{this.control.setValue(A,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(A){let i=A.isDisabled.currentValue,o=i!==0&&iA(i);IM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(A){return this._parent?Mx(A,this._parent):[A]}static \u0275fac=function(i){return new(i||t)(AA(Cn,9),AA(Cg,10),AA(EQ,10),AA(Bn,10),AA(zA,8),AA(Rs,8))};static \u0275dir=Y({type:t,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"],standalone:!1,features:[KA([Kx]),EA,VA]})}return t})();var kM=new k(""),Ux={provide:pi,useExisting:ft(()=>eu)},eu=(()=>{class t extends pi{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(A){}model;update=new $;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(A,i,o,g,n){super(),this._ngModelWarningConfig=g,this.callSetDisabledState=n,this._setValidators(A),this._setAsyncValidators(i),this.valueAccessor=RM(this,o)}ngOnChanges(A){if(this._isControlChanged(A)){let i=A.form.previousValue;i&&CQ(i,this,!1),NI(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}yM(A,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&CQ(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(A){this.viewModel=A,this.update.emit(A)}_isControlChanged(A){return A.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||t)(AA(Cg,10),AA(EQ,10),AA(Bn,10),AA(kM,8),AA(Rs,8))};static \u0275dir=Y({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[KA([Ux]),EA,VA]})}return t})(),_x={provide:Cn,useExisting:ft(()=>vI)},vI=(()=>{class t extends Cn{callSetDisabledState;get submitted(){return Mt(this._submittedReactive)}set submitted(A){this._submittedReactive.set(A)}_submitted=Lo(()=>this._submittedReactive());_submittedReactive=_t(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new $;constructor(A,i,o){super(),this.callSetDisabledState=o,this._setValidators(A),this._setAsyncValidators(i)}ngOnChanges(A){A.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(QQ(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(A){let i=this.form.get(A.path);return NI(i,A,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(A),i}getControl(A){return this.form.get(A.path)}removeControl(A){CQ(A.control||null,A,!1),Gx(this.directives,A)}addFormGroup(A){this._setUpFormContainer(A)}removeFormGroup(A){this._cleanUpFormContainer(A)}getFormGroup(A){return this.form.get(A.path)}addFormArray(A){this._setUpFormContainer(A)}removeFormArray(A){this._cleanUpFormContainer(A)}getFormArray(A){return this.form.get(A.path)}updateModel(A,i){this.form.get(A.path).setValue(i)}onSubmit(A){return this._submittedReactive.set(!0),MM(this.form,this.directives),this.ngSubmit.emit(A),this.form._events.next(new Vh(this.control)),A?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(A=void 0){this.form.reset(A),this._submittedReactive.set(!1),this.form._events.next(new Wh(this.form))}_updateDomValue(){this.directives.forEach(A=>{let i=A.control,o=this.form.get(A.path);i!==o&&(CQ(i||null,A),Lx(o)&&(NI(o,A,this.callSetDisabledState),A.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(A){let i=this.form.get(A.path);pM(i,A),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(A){if(this.form){let i=this.form.get(A.path);i&&Sx(i,A)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Au(this.form,this),this._oldForm&&QQ(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(AA(Cg,10),AA(EQ,10),AA(Rs,8))};static \u0275dir=Y({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&x("submit",function(n){return o.onSubmit(n)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[KA([_x]),EA,VA]})}return t})();var FM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({})}return t})();var hQ=(()=>{class t{static withConfig(A){return{ngModule:t,providers:[{provide:Rs,useValue:A.callSetDisabledState??lQ}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[FM]})}return t})(),bM=(()=>{class t{static withConfig(A){return{ngModule:t,providers:[{provide:kM,useValue:A.warnOnNgModelWithFormControl??"always"},{provide:Rs,useValue:A.callSetDisabledState??lQ}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[FM]})}return t})();var YA="primary",VI=Symbol("RouteTitle"),nu=class{params;constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let A=this.params[e];return Array.isArray(A)?A[0]:A}return null}getAll(e){if(this.has(e)){let A=this.params[e];return Array.isArray(A)?A:[A]}return[]}get keys(){return Object.keys(this.params)}};function cn(t){return new nu(t)}function _M(t,e,A){let i=A.path.split("/");if(i.length>t.length||A.pathMatch==="full"&&(e.hasChildren()||i.length<t.length))return null;let o={};for(let g=0;g<i.length;g++){let n=i[g],s=t[g];if(n[0]===":")o[n.substring(1)]=s;else if(n!==s.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function xx(t,e){if(t.length!==e.length)return!1;for(let A=0;A<t.length;++A)if(!go(t[A],e[A]))return!1;return!0}function go(t,e){let A=t?su(t):void 0,i=e?su(e):void 0;if(!A||!i||A.length!=i.length)return!1;let o;for(let g=0;g<A.length;g++)if(o=A[g],!xM(t[o],e[o]))return!1;return!0}function su(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function xM(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let A=[...t].sort(),i=[...e].sort();return A.every((o,g)=>i[g]===o)}else return t===e}function YM(t){return t.length>0?t[t.length-1]:null}function cg(t){return Wo(t)?t:sg(t)?se(Promise.resolve(t)):tA(t)}var Yx={exact:HM,subset:TM},JM={exact:Jx,subset:Hx,ignored:()=>!0};function SM(t,e,A){return Yx[A.paths](t.root,e.root,A.matrixParams)&&JM[A.queryParams](t.queryParams,e.queryParams)&&!(A.fragment==="exact"&&t.fragment!==e.fragment)}function Jx(t,e){return go(t,e)}function HM(t,e,A){if(!Qn(t.segments,e.segments)||!mQ(t.segments,e.segments,A)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let i in e.children)if(!t.children[i]||!HM(t.children[i],e.children[i],A))return!1;return!0}function Hx(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(A=>xM(t[A],e[A]))}function TM(t,e,A){return OM(t,e,e.segments,A)}function OM(t,e,A,i){if(t.segments.length>A.length){let o=t.segments.slice(0,A.length);return!(!Qn(o,A)||e.hasChildren()||!mQ(o,A,i))}else if(t.segments.length===A.length){if(!Qn(t.segments,A)||!mQ(t.segments,A,i))return!1;for(let o in e.children)if(!t.children[o]||!TM(t.children[o],e.children[o],i))return!1;return!0}else{let o=A.slice(0,t.segments.length),g=A.slice(t.segments.length);return!Qn(t.segments,o)||!mQ(t.segments,o,i)||!t.children[YA]?!1:OM(t.children[YA],e,g,i)}}function mQ(t,e,A){return e.every((i,o)=>JM[A](t[o].parameters,i.parameters))}var so=class{root;queryParams;fragment;_queryParamMap;constructor(e=new $A([],{}),A={},i=null){this.root=e,this.queryParams=A,this.fragment=i}get queryParamMap(){return this._queryParamMap??=cn(this.queryParams),this._queryParamMap}toString(){return Px.serialize(this)}},$A=class{segments;children;parent=null;constructor(e,A){this.segments=e,this.children=A,Object.values(A).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fQ(this)}},Bg=class{path;parameters;_parameterMap;constructor(e,A){this.path=e,this.parameters=A}get parameterMap(){return this._parameterMap??=cn(this.parameters),this._parameterMap}toString(){return ZM(this)}};function Tx(t,e){return Qn(t,e)&&t.every((A,i)=>go(A.parameters,e[i].parameters))}function Qn(t,e){return t.length!==e.length?!1:t.every((A,i)=>A.path===e[i].path)}function Ox(t,e){let A=[];return Object.entries(t.children).forEach(([i,o])=>{i===YA&&(A=A.concat(e(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==YA&&(A=A.concat(e(o,i)))}),A}var ln=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:()=>new Qg,providedIn:"root"})}return t})(),Qg=class{parse(e){let A=new Iu(e);return new so(A.parseRootSegment(),A.parseQueryParams(),A.parseFragment())}serialize(e){let A=`/${KI(e.root,!0)}`,i=Vx(e.queryParams),o=typeof e.fragment=="string"?`#${Zx(e.fragment)}`:"";return`${A}${i}${o}`}},Px=new Qg;function fQ(t){return t.segments.map(e=>ZM(e)).join("/")}function KI(t,e){if(!t.hasChildren())return fQ(t);if(e){let A=t.children[YA]?KI(t.children[YA],!1):"",i=[];return Object.entries(t.children).forEach(([o,g])=>{o!==YA&&i.push(`${o}:${KI(g,!1)}`)}),i.length>0?`${A}(${i.join("//")})`:A}else{let A=Ox(t,(i,o)=>o===YA?[KI(t.children[YA],!1)]:[`${o}:${KI(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[YA]!=null?`${fQ(t)}/${A[0]}`:`${fQ(t)}/(${A.join("//")})`}}function PM(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function uQ(t){return PM(t).replace(/%3B/gi,";")}function Zx(t){return encodeURI(t)}function ru(t){return PM(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wQ(t){return decodeURIComponent(t)}function NM(t){return wQ(t.replace(/\+/g,"%20"))}function ZM(t){return`${ru(t.path)}${qx(t.parameters)}`}function qx(t){return Object.entries(t).map(([e,A])=>`;${ru(e)}=${ru(A)}`).join("")}function Vx(t){let e=Object.entries(t).map(([A,i])=>Array.isArray(i)?i.map(o=>`${uQ(A)}=${uQ(o)}`).join("&"):`${uQ(A)}=${uQ(i)}`).filter(A=>A);return e.length?`?${e.join("&")}`:""}var Wx=/^[^\/()?;#]+/;function tu(t){let e=t.match(Wx);return e?e[0]:""}var zx=/^[^\/()?;=#]+/;function jx(t){let e=t.match(zx);return e?e[0]:""}var Xx=/^[^=?&#]+/;function $x(t){let e=t.match(Xx);return e?e[0]:""}var AY=/^[^&#]+/;function eY(t){let e=t.match(AY);return e?e[0]:""}var Iu=class{url;remaining;constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $A([],{}):new $A([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let A={};this.peekStartsWith("/(")&&(this.capture("/"),A=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(A).length>0)&&(i[YA]=new $A(e,A)),i}parseSegment(){let e=tu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new U(4009,!1);return this.capture(e),new Bg(wQ(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let A=jx(this.remaining);if(!A)return;this.capture(A);let i="";if(this.consumeOptional("=")){let o=tu(this.remaining);o&&(i=o,this.capture(i))}e[wQ(A)]=wQ(i)}parseQueryParam(e){let A=$x(this.remaining);if(!A)return;this.capture(A);let i="";if(this.consumeOptional("=")){let n=eY(this.remaining);n&&(i=n,this.capture(i))}let o=NM(A),g=NM(i);if(e.hasOwnProperty(o)){let n=e[o];Array.isArray(n)||(n=[n],e[o]=n),n.push(g)}else e[o]=g}parseParens(e){let A={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tu(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new U(4010,!1);let g;i.indexOf(":")>-1?(g=i.slice(0,i.indexOf(":")),this.capture(g),this.capture(":")):e&&(g=YA);let n=this.parseChildren();A[g]=Object.keys(n).length===1?n[YA]:new $A([],n),this.consumeOptional("//")}return A}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new U(4011,!1)}};function qM(t){return t.segments.length>0?new $A([],{[YA]:t}):t}function VM(t){let e={};for(let[i,o]of Object.entries(t.children)){let g=VM(o);if(i===YA&&g.segments.length===0&&g.hasChildren())for(let[n,s]of Object.entries(g.children))e[n]=s;else(g.segments.length>0||g.hasChildren())&&(e[i]=g)}let A=new $A(t.segments,e);return tY(A)}function tY(t){if(t.numberOfChildren===1&&t.children[YA]){let e=t.children[YA];return new $A(t.segments.concat(e.segments),e.children)}return t}function Ns(t){return t instanceof so}function WM(t,e,A=null,i=null){let o=zM(t);return jM(o,e,A,i)}function zM(t){let e;function A(g){let n={};for(let r of g.children){let I=A(r);n[r.outlet]=I}let s=new $A(g.url,n);return g===t&&(e=s),s}let i=A(t.root),o=qM(i);return e??o}function jM(t,e,A,i){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return iu(o,o,o,A,i);let g=iY(e);if(g.toRoot())return iu(o,o,new $A([],{}),A,i);let n=oY(g,o,t),s=n.processChildren?_I(n.segmentGroup,n.index,g.commands):$M(n.segmentGroup,n.index,g.commands);return iu(o,n.segmentGroup,s,A,i)}function yQ(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function YI(t){return typeof t=="object"&&t!=null&&t.outlets}function iu(t,e,A,i,o){let g={};i&&Object.entries(i).forEach(([r,I])=>{g[r]=Array.isArray(I)?I.map(B=>`${B}`):`${I}`});let n;t===e?n=A:n=XM(t,e,A);let s=qM(VM(n));return new so(s,g,o)}function XM(t,e,A){let i={};return Object.entries(t.children).forEach(([o,g])=>{g===e?i[o]=A:i[o]=XM(g,e,A)}),new $A(t.segments,i)}var MQ=class{isAbsolute;numberOfDoubleDots;commands;constructor(e,A,i){if(this.isAbsolute=e,this.numberOfDoubleDots=A,this.commands=i,e&&i.length>0&&yQ(i[0]))throw new U(4003,!1);let o=i.find(YI);if(o&&o!==YM(i))throw new U(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function iY(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new MQ(!0,0,t);let e=0,A=!1,i=t.reduce((o,g,n)=>{if(typeof g=="object"&&g!=null){if(g.outlets){let s={};return Object.entries(g.outlets).forEach(([r,I])=>{s[r]=typeof I=="string"?I.split("/"):I}),[...o,{outlets:s}]}if(g.segmentPath)return[...o,g.segmentPath]}return typeof g!="string"?[...o,g]:n===0?(g.split("/").forEach((s,r)=>{r==0&&s==="."||(r==0&&s===""?A=!0:s===".."?e++:s!=""&&o.push(s))}),o):[...o,g]},[]);return new MQ(A,e,i)}var bs=class{segmentGroup;processChildren;index;constructor(e,A,i){this.segmentGroup=e,this.processChildren=A,this.index=i}};function oY(t,e,A){if(t.isAbsolute)return new bs(e,!0,0);if(!A)return new bs(e,!1,NaN);if(A.parent===null)return new bs(A,!0,0);let i=yQ(t.commands[0])?0:1,o=A.segments.length-1+i;return gY(A,o,t.numberOfDoubleDots)}function gY(t,e,A){let i=t,o=e,g=A;for(;g>o;){if(g-=o,i=i.parent,!i)throw new U(4005,!1);o=i.segments.length}return new bs(i,!1,o-g)}function nY(t){return YI(t[0])?t[0].outlets:{[YA]:t}}function $M(t,e,A){if(t??=new $A([],{}),t.segments.length===0&&t.hasChildren())return _I(t,e,A);let i=sY(t,e,A),o=A.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){let g=new $A(t.segments.slice(0,i.pathIndex),{});return g.children[YA]=new $A(t.segments.slice(i.pathIndex),t.children),_I(g,0,o)}else return i.match&&o.length===0?new $A(t.segments,{}):i.match&&!t.hasChildren()?au(t,e,A):i.match?_I(t,0,o):au(t,e,A)}function _I(t,e,A){if(A.length===0)return new $A(t.segments,{});{let i=nY(A),o={};if(Object.keys(i).some(g=>g!==YA)&&t.children[YA]&&t.numberOfChildren===1&&t.children[YA].segments.length===0){let g=_I(t.children[YA],e,A);return new $A(t.segments,g.children)}return Object.entries(i).forEach(([g,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(o[g]=$M(t.children[g],e,n))}),Object.entries(t.children).forEach(([g,n])=>{i[g]===void 0&&(o[g]=n)}),new $A(t.segments,o)}}function sY(t,e,A){let i=0,o=e,g={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(i>=A.length)return g;let n=t.segments[o],s=A[i];if(YI(s))break;let r=`${s}`,I=i<A.length-1?A[i+1]:null;if(o>0&&r===void 0)break;if(r&&I&&typeof I=="object"&&I.outlets===void 0){if(!vM(r,I,n))return g;i+=2}else{if(!vM(r,{},n))return g;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}function au(t,e,A){let i=t.segments.slice(0,e),o=0;for(;o<A.length;){let g=A[o];if(YI(g)){let r=rY(g.outlets);return new $A(i,r)}if(o===0&&yQ(A[0])){let r=t.segments[e];i.push(new Bg(r.path,GM(A[0]))),o++;continue}let n=YI(g)?g.outlets[YA]:`${g}`,s=o<A.length-1?A[o+1]:null;n&&s&&yQ(s)?(i.push(new Bg(n,GM(s))),o+=2):(i.push(new Bg(n,{})),o++)}return new $A(i,{})}function rY(t){let e={};return Object.entries(t).forEach(([A,i])=>{typeof i=="string"&&(i=[i]),i!==null&&(e[A]=au(new $A([],{}),0,i))}),e}function GM(t){let e={};return Object.entries(t).forEach(([A,i])=>e[A]=`${i}`),e}function vM(t,e,A){return t==A.path&&go(e,A.parameters)}var pQ="imperative",Te=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Te||{}),Tt=class{id;url;constructor(e,A){this.id=e,this.url=A}},Eg=class extends Tt{type=Te.NavigationStart;navigationTrigger;restoredState;constructor(e,A,i="imperative",o=null){super(e,A),this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ot=class extends Tt{urlAfterRedirects;type=Te.NavigationEnd;constructor(e,A,i){super(e,A),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},kt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(kt||{}),Gs=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Gs||{}),no=class extends Tt{reason;code;type=Te.NavigationCancel;constructor(e,A,i,o){super(e,A),this.reason=i,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ro=class extends Tt{reason;code;type=Te.NavigationSkipped;constructor(e,A,i,o){super(e,A),this.reason=i,this.code=o}},vs=class extends Tt{error;target;type=Te.NavigationError;constructor(e,A,i,o){super(e,A),this.error=i,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},JI=class extends Tt{urlAfterRedirects;state;type=Te.RoutesRecognized;constructor(e,A,i,o){super(e,A),this.urlAfterRedirects=i,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},RQ=class extends Tt{urlAfterRedirects;state;type=Te.GuardsCheckStart;constructor(e,A,i,o){super(e,A),this.urlAfterRedirects=i,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kQ=class extends Tt{urlAfterRedirects;state;shouldActivate;type=Te.GuardsCheckEnd;constructor(e,A,i,o,g){super(e,A),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=g}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},FQ=class extends Tt{urlAfterRedirects;state;type=Te.ResolveStart;constructor(e,A,i,o){super(e,A),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bQ=class extends Tt{urlAfterRedirects;state;type=Te.ResolveEnd;constructor(e,A,i,o){super(e,A),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},SQ=class{route;type=Te.RouteConfigLoadStart;constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},NQ=class{route;type=Te.RouteConfigLoadEnd;constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},GQ=class{snapshot;type=Te.ChildActivationStart;constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vQ=class{snapshot;type=Te.ChildActivationEnd;constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},LQ=class{snapshot;type=Te.ActivationStart;constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},KQ=class{snapshot;type=Te.ActivationEnd;constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ls=class{routerEvent;position;anchor;type=Te.Scroll;constructor(e,A,i){this.routerEvent=e,this.position=A,this.anchor=i}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},HI=class{},Ks=class{url;navigationBehaviorOptions;constructor(e,A){this.url=e,this.navigationBehaviorOptions=A}};function IY(t,e){return t.providers&&!t._injector&&(t._injector=sI(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Mi(t){return t.outlet||YA}function aY(t,e){let A=t.filter(i=>Mi(i)===e);return A.push(...t.filter(i=>Mi(i)!==e)),A}function WI(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let A=e.routeConfig;if(A?._loadedInjector)return A._loadedInjector;if(A?._injector)return A._injector}return null}var UQ=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return WI(this.route?.snapshot)??this.rootInjector}constructor(e){this.rootInjector=e,this.children=new dn(this.rootInjector)}},dn=(()=>{class t{rootInjector;contexts=new Map;constructor(A){this.rootInjector=A}onChildOutletCreated(A,i){let o=this.getOrCreateContext(A);o.outlet=i,this.contexts.set(A,o)}onChildOutletDestroyed(A){let i=this.getContext(A);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let A=this.contexts;return this.contexts=new Map,A}onOutletReAttached(A){this.contexts=A}getOrCreateContext(A){let i=this.getContext(A);return i||(i=new UQ(this.rootInjector),this.contexts.set(A,i)),i}getContext(A){return this.contexts.get(A)||null}static \u0275fac=function(i){return new(i||t)(J(Le))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_Q=class{_root;constructor(e){this._root=e}get root(){return this._root.value}parent(e){let A=this.pathFromRoot(e);return A.length>1?A[A.length-2]:null}children(e){let A=Cu(e,this._root);return A?A.children.map(i=>i.value):[]}firstChild(e){let A=Cu(e,this._root);return A&&A.children.length>0?A.children[0].value:null}siblings(e){let A=Bu(e,this._root);return A.length<2?[]:A[A.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Bu(e,this._root).map(A=>A.value)}};function Cu(t,e){if(t===e.value)return e;for(let A of e.children){let i=Cu(t,A);if(i)return i}return null}function Bu(t,e){if(t===e.value)return[e];for(let A of e.children){let i=Bu(t,A);if(i.length)return i.unshift(e),i}return[]}var Ht=class{value;children;constructor(e,A){this.value=e,this.children=A}toString(){return`TreeNode(${this.value})`}};function Fs(t){let e={};return t&&t.children.forEach(A=>e[A.value.outlet]=A),e}var TI=class extends _Q{snapshot;constructor(e,A){super(e),this.snapshot=A,Du(this,e)}toString(){return this.snapshot.toString()}};function AR(t){let e=CY(t),A=new Ae([new Bg("",{})]),i=new Ae({}),o=new Ae({}),g=new Ae({}),n=new Ae(""),s=new Io(A,i,g,n,o,YA,t,e.root);return s.snapshot=e.root,new TI(new Ht(s,[]),e)}function CY(t){let e={},A={},i={},o="",g=new En([],e,i,o,A,YA,t,null,{});return new OI("",new Ht(g,[]))}var Io=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(e,A,i,o,g,n,s,r){this.urlSubject=e,this.paramsSubject=A,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=g,this.outlet=n,this.component=s,this._futureSnapshot=r,this.title=this.dataSubject?.pipe(oA(I=>I[VI]))??tA(void 0),this.url=e,this.params=A,this.queryParams=i,this.fragment=o,this.data=g}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(oA(e=>cn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(oA(e=>cn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xQ(t,e,A="emptyOnly"){let i,{routeConfig:o}=t;return e!==null&&(A==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?i={params:R(R({},e.params),t.params),data:R(R({},e.data),t.data),resolve:R(R(R(R({},t.data),e.data),o?.data),t._resolvedData)}:i={params:R({},t.params),data:R({},t.data),resolve:R(R({},t.data),t._resolvedData??{})},o&&tR(o)&&(i.resolve[VI]=o.title),i}var En=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[VI]}constructor(e,A,i,o,g,n,s,r,I){this.url=e,this.params=A,this.queryParams=i,this.fragment=o,this.data=g,this.outlet=n,this.component=s,this.routeConfig=r,this._resolve=I}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??=cn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=cn(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(i=>i.toString()).join("/"),A=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${A}')`}},OI=class extends _Q{url;constructor(e,A){super(A),this.url=e,Du(this,A)}toString(){return eR(this._root)}};function Du(t,e){e.value._routerState=t,e.children.forEach(A=>Du(t,A))}function eR(t){let e=t.children.length>0?` { ${t.children.map(eR).join(", ")} } `:"";return`${t.value}${e}`}function ou(t){if(t.snapshot){let e=t.snapshot,A=t._futureSnapshot;t.snapshot=A,go(e.queryParams,A.queryParams)||t.queryParamsSubject.next(A.queryParams),e.fragment!==A.fragment&&t.fragmentSubject.next(A.fragment),go(e.params,A.params)||t.paramsSubject.next(A.params),xx(e.url,A.url)||t.urlSubject.next(A.url),go(e.data,A.data)||t.dataSubject.next(A.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Qu(t,e){let A=go(t.params,e.params)&&Tx(t.url,e.url),i=!t.parent!=!e.parent;return A&&!i&&(!t.parent||Qu(t.parent,e.parent))}function tR(t){return typeof t.title=="string"||t.title===null}var iR=new k(""),mu=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=YA;activateEvents=new $;deactivateEvents=new $;attachEvents=new $;detachEvents=new $;routerOutletData=yp(void 0);parentContexts=Q(dn);location=Q(Ce);changeDetector=Q(zA);inputBinder=Q(zI,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(A){if(A.name){let{firstChange:i,previousValue:o}=A.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(A){return this.parentContexts.getContext(A)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let A=this.parentContexts.getContext(this.name);A?.route&&(A.attachRef?this.attach(A.attachRef,A.route):this.activateWith(A.route,A.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new U(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new U(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new U(4012,!1);this.location.detach();let A=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(A.instance),A}attach(A,i){this.activated=A,this._activatedRoute=i,this.location.insert(A.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(A.instance)}deactivate(){if(this.activated){let A=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(A)}}activateWith(A,i){if(this.isActivated)throw new U(4013,!1);this._activatedRoute=A;let o=this.location,n=A.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,r=new Eu(A,s,o.injector,this.routerOutletData);this.activated=o.createComponent(n,{index:o.length,injector:r,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[VA]})}return t})(),Eu=class{route;childContexts;parent;outletData;constructor(e,A,i,o){this.route=e,this.childContexts=A,this.parent=i,this.outletData=o}get(e,A){return e===Io?this.route:e===dn?this.childContexts:e===iR?this.outletData:this.parent.get(e,A)}},zI=new k(""),fu=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(A){this.unsubscribeFromRouteData(A),this.subscribeToRouteData(A)}unsubscribeFromRouteData(A){this.outletDataSubscriptions.get(A)?.unsubscribe(),this.outletDataSubscriptions.delete(A)}subscribeToRouteData(A){let{activatedRoute:i}=A,o=ai([i.queryParams,i.params,i.data]).pipe(re(([g,n,s],r)=>(s=R(R(R({},g),n),s),r===0?tA(s):Promise.resolve(s)))).subscribe(g=>{if(!A.isActivated||!A.activatedComponentRef||A.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(A);return}let n=f0(i.component);if(!n){this.unsubscribeFromRouteData(A);return}for(let{templateName:s}of n.inputs)A.activatedComponentRef.setInput(s,g[s])});this.outletDataSubscriptions.set(A,o)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function BY(t,e,A){let i=PI(t,e._root,A?A._root:void 0);return new TI(i,e)}function PI(t,e,A){if(A&&t.shouldReuseRoute(e.value,A.value.snapshot)){let i=A.value;i._futureSnapshot=e.value;let o=QY(t,e,A);return new Ht(i,o)}else{if(t.shouldAttach(e.value)){let g=t.retrieve(e.value);if(g!==null){let n=g.route;return n.value._futureSnapshot=e.value,n.children=e.children.map(s=>PI(t,s)),n}}let i=EY(e.value),o=e.children.map(g=>PI(t,g));return new Ht(i,o)}}function QY(t,e,A){return e.children.map(i=>{for(let o of A.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return PI(t,i,o);return PI(t,i)})}function EY(t){return new Io(new Ae(t.url),new Ae(t.params),new Ae(t.queryParams),new Ae(t.fragment),new Ae(t.data),t.outlet,t.component,t)}var Us=class{redirectTo;navigationBehaviorOptions;constructor(e,A){this.redirectTo=e,this.navigationBehaviorOptions=A}},oR="ngNavigationCancelingError";function YQ(t,e){let{redirectTo:A,navigationBehaviorOptions:i}=Ns(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=gR(!1,kt.Redirect);return o.url=A,o.navigationBehaviorOptions=i,o}function gR(t,e){let A=new Error(`NavigationCancelingError: ${t||""}`);return A[oR]=!0,A.cancellationCode=e,A}function cY(t){return nR(t)&&Ns(t.url)}function nR(t){return!!t&&t[oR]}var lY=(t,e,A,i)=>oA(o=>(new cu(e,o.targetRouterState,o.currentRouterState,A,i).activate(t),o)),cu=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(e,A,i,o,g){this.routeReuseStrategy=e,this.futureState=A,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=g}activate(e){let A=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(A,i,e),ou(this.futureState.root),this.activateChildRoutes(A,i,e)}deactivateChildRoutes(e,A,i){let o=Fs(A);e.children.forEach(g=>{let n=g.value.outlet;this.deactivateRoutes(g,o[n],i),delete o[n]}),Object.values(o).forEach(g=>{this.deactivateRouteAndItsChildren(g,i)})}deactivateRoutes(e,A,i){let o=e.value,g=A?A.value:null;if(o===g)if(o.component){let n=i.getContext(o.outlet);n&&this.deactivateChildRoutes(e,A,n.children)}else this.deactivateChildRoutes(e,A,i);else g&&this.deactivateRouteAndItsChildren(A,i)}deactivateRouteAndItsChildren(e,A){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,A):this.deactivateRouteAndOutlet(e,A)}detachAndStoreRouteSubtree(e,A){let i=A.getContext(e.value.outlet),o=i&&e.value.component?i.children:A,g=Fs(e);for(let n of Object.values(g))this.deactivateRouteAndItsChildren(n,o);if(i&&i.outlet){let n=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:n,route:e,contexts:s})}}deactivateRouteAndOutlet(e,A){let i=A.getContext(e.value.outlet),o=i&&e.value.component?i.children:A,g=Fs(e);for(let n of Object.values(g))this.deactivateRouteAndItsChildren(n,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(e,A,i){let o=Fs(A);e.children.forEach(g=>{this.activateRoutes(g,o[g.value.outlet],i),this.forwardEvent(new KQ(g.value.snapshot))}),e.children.length&&this.forwardEvent(new vQ(e.value.snapshot))}activateRoutes(e,A,i){let o=e.value,g=A?A.value:null;if(ou(o),o===g)if(o.component){let n=i.getOrCreateContext(o.outlet);this.activateChildRoutes(e,A,n.children)}else this.activateChildRoutes(e,A,i);else if(o.component){let n=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),n.children.onOutletReAttached(s.contexts),n.attachRef=s.componentRef,n.route=s.route.value,n.outlet&&n.outlet.attach(s.componentRef,s.route.value),ou(s.route.value),this.activateChildRoutes(e,null,n.children)}else n.attachRef=null,n.route=o,n.outlet&&n.outlet.activateWith(o,n.injector),this.activateChildRoutes(e,null,n.children)}else this.activateChildRoutes(e,null,i)}},JQ=class{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Ss=class{component;route;constructor(e,A){this.component=e,this.route=A}};function dY(t,e,A){let i=t._root,o=e?e._root:null;return UI(i,o,A,[i.value])}function hY(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function xs(t,e){let A=Symbol(),i=e.get(t,A);return i===A?typeof t=="function"&&!pw(t)?t:e.get(t):i}function UI(t,e,A,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let g=Fs(e);return t.children.forEach(n=>{uY(n,g[n.value.outlet],A,i.concat([n.value]),o),delete g[n.value.outlet]}),Object.entries(g).forEach(([n,s])=>xI(s,A.getContext(n),o)),o}function uY(t,e,A,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let g=t.value,n=e?e.value:null,s=A?A.getContext(t.value.outlet):null;if(n&&g.routeConfig===n.routeConfig){let r=DY(n,g,g.routeConfig.runGuardsAndResolvers);r?o.canActivateChecks.push(new JQ(i)):(g.data=n.data,g._resolvedData=n._resolvedData),g.component?UI(t,e,s?s.children:null,i,o):UI(t,e,A,i,o),r&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Ss(s.outlet.component,n))}else n&&xI(e,s,o),o.canActivateChecks.push(new JQ(i)),g.component?UI(t,null,s?s.children:null,i,o):UI(t,null,A,i,o);return o}function DY(t,e,A){if(typeof A=="function")return A(t,e);switch(A){case"pathParamsChange":return!Qn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Qn(t.url,e.url)||!go(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qu(t,e)||!go(t.queryParams,e.queryParams);case"paramsChange":default:return!Qu(t,e)}}function xI(t,e,A){let i=Fs(t),o=t.value;Object.entries(i).forEach(([g,n])=>{o.component?e?xI(n,e.children.getContext(g),A):xI(n,null,A):xI(n,e,A)}),o.component?e&&e.outlet&&e.outlet.isActivated?A.canDeactivateChecks.push(new Ss(e.outlet.component,o)):A.canDeactivateChecks.push(new Ss(null,o)):A.canDeactivateChecks.push(new Ss(null,o))}function jI(t){return typeof t=="function"}function mY(t){return typeof t=="boolean"}function fY(t){return t&&jI(t.canLoad)}function wY(t){return t&&jI(t.canActivate)}function pY(t){return t&&jI(t.canActivateChild)}function yY(t){return t&&jI(t.canDeactivate)}function MY(t){return t&&jI(t.canMatch)}function sR(t){return t instanceof Mo||t?.name==="EmptyError"}var DQ=Symbol("INITIAL_VALUE");function _s(){return re(t=>ai(t.map(e=>e.pipe(de(1),me(DQ)))).pipe(oA(e=>{for(let A of e)if(A!==!0){if(A===DQ)return DQ;if(A===!1||RY(A))return A}return!0}),RA(e=>e!==DQ),de(1)))}function RY(t){return Ns(t)||t instanceof Us}function kY(t,e){return ye(A=>{let{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:g,canDeactivateChecks:n}}=A;return n.length===0&&g.length===0?tA(hA(R({},A),{guardsResult:!0})):FY(n,i,o,t).pipe(ye(s=>s&&mY(s)?bY(i,g,t,e):tA(s)),oA(s=>hA(R({},A),{guardsResult:s})))})}function FY(t,e,A,i){return se(t).pipe(ye(o=>LY(o.component,o.route,A,e,i)),Ti(o=>o!==!0,!0))}function bY(t,e,A,i){return se(e).pipe(Ji(o=>jo(NY(o.route.parent,i),SY(o.route,i),vY(t,o.path,A),GY(t,o.route,A))),Ti(o=>o!==!0,!0))}function SY(t,e){return t!==null&&e&&e(new LQ(t)),tA(!0)}function NY(t,e){return t!==null&&e&&e(new GQ(t)),tA(!0)}function GY(t,e,A){let i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||i.length===0)return tA(!0);let o=i.map(g=>Yi(()=>{let n=WI(e)??A,s=xs(g,n),r=wY(s)?s.canActivate(e,t):wt(n,()=>s(e,t));return cg(r).pipe(Ti())}));return tA(o).pipe(_s())}function vY(t,e,A){let i=e[e.length-1],g=e.slice(0,e.length-1).reverse().map(n=>hY(n)).filter(n=>n!==null).map(n=>Yi(()=>{let s=n.guards.map(r=>{let I=WI(n.node)??A,B=xs(r,I),c=pY(B)?B.canActivateChild(i,t):wt(I,()=>B(i,t));return cg(c).pipe(Ti())});return tA(s).pipe(_s())}));return tA(g).pipe(_s())}function LY(t,e,A,i,o){let g=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!g||g.length===0)return tA(!0);let n=g.map(s=>{let r=WI(e)??o,I=xs(s,r),B=yY(I)?I.canDeactivate(t,e,A,i):wt(r,()=>I(t,e,A,i));return cg(B).pipe(Ti())});return tA(n).pipe(_s())}function KY(t,e,A,i){let o=e.canLoad;if(o===void 0||o.length===0)return tA(!0);let g=o.map(n=>{let s=xs(n,t),r=fY(s)?s.canLoad(e,A):wt(t,()=>s(e,A));return cg(r)});return tA(g).pipe(_s(),rR(i))}function rR(t){return Jc(Ie(e=>{if(typeof e!="boolean")throw YQ(t,e)}),oA(e=>e===!0))}function UY(t,e,A,i){let o=e.canMatch;if(!o||o.length===0)return tA(!0);let g=o.map(n=>{let s=xs(n,t),r=MY(s)?s.canMatch(e,A):wt(t,()=>s(e,A));return cg(r)});return tA(g).pipe(_s(),rR(i))}var ZI=class{segmentGroup;constructor(e){this.segmentGroup=e||null}},qI=class extends Error{urlTree;constructor(e){super(),this.urlTree=e}};function ks(t){return Vo(new ZI(t))}function _Y(t){return Vo(new U(4e3,!1))}function xY(t){return Vo(gR(!1,kt.GuardRejected))}var lu=class{urlSerializer;urlTree;constructor(e,A){this.urlSerializer=e,this.urlTree=A}lineralizeSegments(e,A){let i=[],o=A.root;for(;;){if(i=i.concat(o.segments),o.numberOfChildren===0)return tA(i);if(o.numberOfChildren>1||!o.children[YA])return _Y(`${e.redirectTo}`);o=o.children[YA]}}applyRedirectCommands(e,A,i,o,g){if(typeof A!="string"){let s=A,{queryParams:r,fragment:I,routeConfig:B,url:c,outlet:D,params:h,data:p,title:y}=o,L=wt(g,()=>s({params:h,data:p,queryParams:r,fragment:I,routeConfig:B,url:c,outlet:D,title:y}));if(L instanceof so)throw new qI(L);A=L}let n=this.applyRedirectCreateUrlTree(A,this.urlSerializer.parse(A),e,i);if(A[0]==="/")throw new qI(n);return n}applyRedirectCreateUrlTree(e,A,i,o){let g=this.createSegmentGroup(e,A.root,i,o);return new so(g,this.createQueryParams(A.queryParams,this.urlTree.queryParams),A.fragment)}createQueryParams(e,A){let i={};return Object.entries(e).forEach(([o,g])=>{if(typeof g=="string"&&g[0]===":"){let s=g.substring(1);i[o]=A[s]}else i[o]=g}),i}createSegmentGroup(e,A,i,o){let g=this.createSegments(e,A.segments,i,o),n={};return Object.entries(A.children).forEach(([s,r])=>{n[s]=this.createSegmentGroup(e,r,i,o)}),new $A(g,n)}createSegments(e,A,i,o){return A.map(g=>g.path[0]===":"?this.findPosParam(e,g,o):this.findOrReturn(g,i))}findPosParam(e,A,i){let o=i[A.path.substring(1)];if(!o)throw new U(4001,!1);return o}findOrReturn(e,A){let i=0;for(let o of A){if(o.path===e.path)return A.splice(i),o;i++}return e}},du={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function YY(t,e,A,i,o){let g=IR(t,e,A);return g.matched?(i=IY(e,i),UY(i,e,A,o).pipe(oA(n=>n===!0?g:R({},du)))):tA(g)}function IR(t,e,A){if(e.path==="**")return JY(A);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||A.length>0)?R({},du):{matched:!0,consumedSegments:[],remainingSegments:A,parameters:{},positionalParamSegments:{}};let o=(e.matcher||_M)(A,t,e);if(!o)return R({},du);let g={};Object.entries(o.posParams??{}).forEach(([s,r])=>{g[s]=r.path});let n=o.consumed.length>0?R(R({},g),o.consumed[o.consumed.length-1].parameters):g;return{matched:!0,consumedSegments:o.consumed,remainingSegments:A.slice(o.consumed.length),parameters:n,positionalParamSegments:o.posParams??{}}}function JY(t){return{matched:!0,parameters:t.length>0?YM(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function LM(t,e,A,i){return A.length>0&&OY(t,A,i)?{segmentGroup:new $A(e,TY(i,new $A(A,t.children))),slicedSegments:[]}:A.length===0&&PY(t,A,i)?{segmentGroup:new $A(t.segments,HY(t,A,i,t.children)),slicedSegments:A}:{segmentGroup:new $A(t.segments,t.children),slicedSegments:A}}function HY(t,e,A,i){let o={};for(let g of A)if(TQ(t,e,g)&&!i[Mi(g)]){let n=new $A([],{});o[Mi(g)]=n}return R(R({},i),o)}function TY(t,e){let A={};A[YA]=e;for(let i of t)if(i.path===""&&Mi(i)!==YA){let o=new $A([],{});A[Mi(i)]=o}return A}function OY(t,e,A){return A.some(i=>TQ(t,e,i)&&Mi(i)!==YA)}function PY(t,e,A){return A.some(i=>TQ(t,e,i))}function TQ(t,e,A){return(t.hasChildren()||e.length>0)&&A.pathMatch==="full"?!1:A.path===""}function ZY(t,e,A){return e.length===0&&!t.children[A]}var hu=class{};function qY(t,e,A,i,o,g,n="emptyOnly"){return new uu(t,e,A,i,o,n,g).recognize()}var VY=31,uu=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(e,A,i,o,g,n,s){this.injector=e,this.configLoader=A,this.rootComponentType=i,this.config=o,this.urlTree=g,this.paramsInheritanceStrategy=n,this.urlSerializer=s,this.applyRedirects=new lu(this.urlSerializer,this.urlTree)}noMatchError(e){return new U(4002,`'${e.segmentGroup}'`)}recognize(){let e=LM(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(oA(({children:A,rootSnapshot:i})=>{let o=new Ht(i,A),g=new OI("",o),n=WM(i,[],this.urlTree.queryParams,this.urlTree.fragment);return n.queryParams=this.urlTree.queryParams,g.url=this.urlSerializer.serialize(n),{state:g,tree:n}}))}match(e){let A=new En([],Object.freeze({}),Object.freeze(R({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),YA,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,YA,A).pipe(oA(i=>({children:i,rootSnapshot:A})),lt(i=>{if(i instanceof qI)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof ZI?this.noMatchError(i):i}))}processSegmentGroup(e,A,i,o,g){return i.segments.length===0&&i.hasChildren()?this.processChildren(e,A,i,g):this.processSegment(e,A,i,i.segments,o,!0,g).pipe(oA(n=>n instanceof Ht?[n]:[]))}processChildren(e,A,i,o){let g=[];for(let n of Object.keys(i.children))n==="primary"?g.unshift(n):g.push(n);return se(g).pipe(Ji(n=>{let s=i.children[n],r=aY(A,n);return this.processSegmentGroup(e,r,s,n,o)}),qc((n,s)=>(n.push(...s),n)),Xo(null),Zc(),ye(n=>{if(n===null)return ks(i);let s=aR(n);return WY(s),tA(s)}))}processSegment(e,A,i,o,g,n,s){return se(A).pipe(Ji(r=>this.processSegmentAgainstRoute(r._injector??e,A,r,i,o,g,n,s).pipe(lt(I=>{if(I instanceof ZI)return tA(null);throw I}))),Ti(r=>!!r),lt(r=>{if(sR(r))return ZY(i,o,g)?tA(new hu):ks(i);throw r}))}processSegmentAgainstRoute(e,A,i,o,g,n,s,r){return Mi(i)!==n&&(n===YA||!TQ(o,g,i))?ks(o):i.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,i,g,n,r):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,o,A,i,g,n,r):ks(o)}expandSegmentAgainstRouteUsingRedirect(e,A,i,o,g,n,s){let{matched:r,parameters:I,consumedSegments:B,positionalParamSegments:c,remainingSegments:D}=IR(A,o,g);if(!r)return ks(A);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>VY&&(this.allowRedirects=!1));let h=new En(g,I,Object.freeze(R({},this.urlTree.queryParams)),this.urlTree.fragment,KM(o),Mi(o),o.component??o._loadedComponent??null,o,UM(o)),p=xQ(h,s,this.paramsInheritanceStrategy);h.params=Object.freeze(p.params),h.data=Object.freeze(p.data);let y=this.applyRedirects.applyRedirectCommands(B,o.redirectTo,c,h,e);return this.applyRedirects.lineralizeSegments(o,y).pipe(ye(L=>this.processSegment(e,i,A,L.concat(D),n,!1,s)))}matchSegmentAgainstRoute(e,A,i,o,g,n){let s=YY(A,i,o,e,this.urlSerializer);return i.path==="**"&&(A.children={}),s.pipe(re(r=>r.matched?(e=i._injector??e,this.getChildConfig(e,i,o).pipe(re(({routes:I})=>{let B=i._loadedInjector??e,{parameters:c,consumedSegments:D,remainingSegments:h}=r,p=new En(D,c,Object.freeze(R({},this.urlTree.queryParams)),this.urlTree.fragment,KM(i),Mi(i),i.component??i._loadedComponent??null,i,UM(i)),y=xQ(p,n,this.paramsInheritanceStrategy);p.params=Object.freeze(y.params),p.data=Object.freeze(y.data);let{segmentGroup:L,slicedSegments:P}=LM(A,D,h,I);if(P.length===0&&L.hasChildren())return this.processChildren(B,I,L,p).pipe(oA(_A=>new Ht(p,_A)));if(I.length===0&&P.length===0)return tA(new Ht(p,[]));let mA=Mi(i)===g;return this.processSegment(B,I,L,P,mA?YA:g,!0,p).pipe(oA(_A=>new Ht(p,_A instanceof Ht?[_A]:[])))}))):ks(A)))}getChildConfig(e,A,i){return A.children?tA({routes:A.children,injector:e}):A.loadChildren?A._loadedRoutes!==void 0?tA({routes:A._loadedRoutes,injector:A._loadedInjector}):KY(e,A,i,this.urlSerializer).pipe(ye(o=>o?this.configLoader.loadChildren(e,A).pipe(Ie(g=>{A._loadedRoutes=g.routes,A._loadedInjector=g.injector})):xY(A))):tA({routes:[],injector:e})}};function WY(t){t.sort((e,A)=>e.value.outlet===YA?-1:A.value.outlet===YA?1:e.value.outlet.localeCompare(A.value.outlet))}function zY(t){let e=t.value.routeConfig;return e&&e.path===""}function aR(t){let e=[],A=new Set;for(let i of t){if(!zY(i)){e.push(i);continue}let o=e.find(g=>i.value.routeConfig===g.value.routeConfig);o!==void 0?(o.children.push(...i.children),A.add(o)):e.push(i)}for(let i of A){let o=aR(i.children);e.push(new Ht(i.value,o))}return e.filter(i=>!A.has(i))}function KM(t){return t.data||{}}function UM(t){return t.resolve||{}}function jY(t,e,A,i,o,g){return ye(n=>qY(t,e,A,i,n.extractedUrl,o,g).pipe(oA(({state:s,tree:r})=>hA(R({},n),{targetSnapshot:s,urlAfterRedirects:r}))))}function XY(t,e){return ye(A=>{let{targetSnapshot:i,guards:{canActivateChecks:o}}=A;if(!o.length)return tA(A);let g=new Set(o.map(r=>r.route)),n=new Set;for(let r of g)if(!n.has(r))for(let I of CR(r))n.add(I);let s=0;return se(n).pipe(Ji(r=>g.has(r)?$Y(r,i,t,e):(r.data=xQ(r,r.parent,t).resolve,tA(void 0))),Ie(()=>s++),Wn(1),ye(r=>s===n.size?tA(A):ve))})}function CR(t){let e=t.children.map(A=>CR(A)).flat();return[t,...e]}function $Y(t,e,A,i){let o=t.routeConfig,g=t._resolve;return o?.title!==void 0&&!tR(o)&&(g[VI]=o.title),AJ(g,t,e,i).pipe(oA(n=>(t._resolvedData=n,t.data=xQ(t,t.parent,A).resolve,null)))}function AJ(t,e,A,i){let o=su(t);if(o.length===0)return tA({});let g={};return se(o).pipe(ye(n=>eJ(t[n],e,A,i).pipe(Ti(),Ie(s=>{if(s instanceof Us)throw YQ(new Qg,s);g[n]=s}))),Wn(1),oA(()=>g),lt(n=>sR(n)?ve:Vo(n)))}function eJ(t,e,A,i){let o=WI(e)??i,g=xs(t,o),n=g.resolve?g.resolve(e,A):wt(o,()=>g(e,A));return cg(n)}function gu(t){return re(e=>{let A=t(e);return A?se(A).pipe(oA(()=>e)):tA(e)})}var wu=(()=>{class t{buildTitle(A){let i,o=A.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(g=>g.outlet===YA);return i}getResolvedTitleForRoute(A){return A.data[VI]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:()=>Q(BR),providedIn:"root"})}return t})(),BR=(()=>{class t extends wu{title;constructor(A){super(),this.title=A}updateTitle(A){let i=this.buildTitle(A);i!==void 0&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(J(iM))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hn=new k("",{providedIn:"root",factory:()=>({})}),pu=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(i,o){i&1&&W(0,"router-outlet")},dependencies:[mu],encapsulation:2})}return t})();function yu(t){let e=t.children&&t.children.map(yu),A=e?hA(R({},t),{children:e}):R({},t);return!A.component&&!A.loadComponent&&(e||A.loadChildren)&&A.outlet&&A.outlet!==YA&&(A.component=pu),A}var Ys=new k(""),OQ=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=Q(UB);loadComponent(A){if(this.componentLoaders.get(A))return this.componentLoaders.get(A);if(A._loadedComponent)return tA(A._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(A);let i=cg(A.loadComponent()).pipe(oA(ER),Ie(g=>{this.onLoadEndListener&&this.onLoadEndListener(A),A._loadedComponent=g}),Hi(()=>{this.componentLoaders.delete(A)})),o=new qo(i,()=>new K).pipe(Tn());return this.componentLoaders.set(A,o),o}loadChildren(A,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return tA({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let g=QR(i,this.compiler,A,this.onLoadEndListener).pipe(Hi(()=>{this.childrenLoaders.delete(i)})),n=new qo(g,()=>new K).pipe(Tn());return this.childrenLoaders.set(i,n),n}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function QR(t,e,A,i){return cg(t.loadChildren()).pipe(oA(ER),ye(o=>o instanceof Ch||Array.isArray(o)?tA(o):se(e.compileModuleAsync(o))),oA(o=>{i&&i(t);let g,n,s=!1;return Array.isArray(o)?(n=o,s=!0):(g=o.create(A).injector,n=g.get(Ys,[],{optional:!0,self:!0}).flat()),{routes:n.map(yu),injector:g}}))}function tJ(t){return t&&typeof t=="object"&&"default"in t}function ER(t){return tJ(t)?t.default:t}var PQ=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:()=>Q(iJ),providedIn:"root"})}return t})(),iJ=(()=>{class t{shouldProcessUrl(A){return!0}extract(A){return A}merge(A,i){return A}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mu=new k(""),Ru=new k("");function cR(t,e,A){let i=t.get(Ru),o=t.get(lA);return t.get(X).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(I=>setTimeout(I));let g,n=new Promise(I=>{g=I}),s=o.startViewTransition(()=>(g(),oJ(t))),{onViewTransitionCreated:r}=i;return r&&wt(t,()=>r({transition:s,from:e,to:A})),n})}function oJ(t){return new Promise(e=>{Ke({read:()=>setTimeout(e)},{injector:t})})}var ku=new k(""),ZQ=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new K;transitionAbortSubject=new K;configLoader=Q(OQ);environmentInjector=Q(Le);destroyRef=Q(Es);urlSerializer=Q(ln);rootContexts=Q(dn);location=Q(eo);inputBindingEnabled=Q(zI,{optional:!0})!==null;titleStrategy=Q(wu);options=Q(hn,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=Q(PQ);createViewTransition=Q(Mu,{optional:!0});navigationErrorHandler=Q(ku,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>tA(void 0);rootComponentType=null;destroyed=!1;constructor(){let A=o=>this.events.next(new SQ(o)),i=o=>this.events.next(new NQ(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=A,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(A){let i=++this.navigationId;this.transitions?.next(hA(R({},A),{extractedUrl:this.urlHandlingStrategy.extract(A.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i}))}setupNavigations(A){return this.transitions=new Ae(null),this.transitions.pipe(RA(i=>i!==null),re(i=>{let o=!1,g=!1;return tA(i).pipe(re(n=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",kt.SupersededByNewNavigation),ve;this.currentTransition=i,this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,targetBrowserUrl:typeof n.extras.browserUrl=="string"?this.urlSerializer.parse(n.extras.browserUrl):n.extras.browserUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?hA(R({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let s=!A.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),r=n.extras.onSameUrlNavigation??A.onSameUrlNavigation;if(!s&&r!=="reload"){let I="";return this.events.next(new ro(n.id,this.urlSerializer.serialize(n.rawUrl),I,Gs.IgnoredSameUrlNavigation)),n.resolve(!1),ve}if(this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return tA(n).pipe(re(I=>(this.events.next(new Eg(I.id,this.urlSerializer.serialize(I.extractedUrl),I.source,I.restoredState)),I.id!==this.navigationId?ve:Promise.resolve(I))),jY(this.environmentInjector,this.configLoader,this.rootComponentType,A.config,this.urlSerializer,this.paramsInheritanceStrategy),Ie(I=>{i.targetSnapshot=I.targetSnapshot,i.urlAfterRedirects=I.urlAfterRedirects,this.currentNavigation=hA(R({},this.currentNavigation),{finalUrl:I.urlAfterRedirects});let B=new JI(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(B)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(n.currentRawUrl)){let{id:I,extractedUrl:B,source:c,restoredState:D,extras:h}=n,p=new Eg(I,this.urlSerializer.serialize(B),c,D);this.events.next(p);let y=AR(this.rootComponentType).snapshot;return this.currentTransition=i=hA(R({},n),{targetSnapshot:y,urlAfterRedirects:B,extras:hA(R({},h),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=B,tA(i)}else{let I="";return this.events.next(new ro(n.id,this.urlSerializer.serialize(n.extractedUrl),I,Gs.IgnoredByUrlHandlingStrategy)),n.resolve(!1),ve}}),Ie(n=>{let s=new RQ(n.id,this.urlSerializer.serialize(n.extractedUrl),this.urlSerializer.serialize(n.urlAfterRedirects),n.targetSnapshot);this.events.next(s)}),oA(n=>(this.currentTransition=i=hA(R({},n),{guards:dY(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),i)),kY(this.environmentInjector,n=>this.events.next(n)),Ie(n=>{if(i.guardsResult=n.guardsResult,n.guardsResult&&typeof n.guardsResult!="boolean")throw YQ(this.urlSerializer,n.guardsResult);let s=new kQ(n.id,this.urlSerializer.serialize(n.extractedUrl),this.urlSerializer.serialize(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.events.next(s)}),RA(n=>n.guardsResult?!0:(this.cancelNavigationTransition(n,"",kt.GuardRejected),!1)),gu(n=>{if(n.guards.canActivateChecks.length!==0)return tA(n).pipe(Ie(s=>{let r=new FQ(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(r)}),re(s=>{let r=!1;return tA(s).pipe(XY(this.paramsInheritanceStrategy,this.environmentInjector),Ie({next:()=>r=!0,complete:()=>{r||this.cancelNavigationTransition(s,"",kt.NoDataFromResolver)}}))}),Ie(s=>{let r=new bQ(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(r)}))}),gu(n=>{let s=r=>{let I=[];r.routeConfig?.loadComponent&&!r.routeConfig._loadedComponent&&I.push(this.configLoader.loadComponent(r.routeConfig).pipe(Ie(B=>{r.component=B}),oA(()=>{})));for(let B of r.children)I.push(...s(B));return I};return ai(s(n.targetSnapshot.root)).pipe(Xo(null),de(1))}),gu(()=>this.afterPreactivation()),re(()=>{let{currentSnapshot:n,targetSnapshot:s}=i,r=this.createViewTransition?.(this.environmentInjector,n.root,s.root);return r?se(r).pipe(oA(()=>i)):tA(i)}),oA(n=>{let s=BY(A.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return this.currentTransition=i=hA(R({},n),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,i}),Ie(()=>{this.events.next(new HI)}),lY(this.rootContexts,A.routeReuseStrategy,n=>this.events.next(n),this.inputBindingEnabled),de(1),Ie({next:n=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ot(n.id,this.urlSerializer.serialize(n.extractedUrl),this.urlSerializer.serialize(n.urlAfterRedirects))),this.titleStrategy?.updateTitle(n.targetRouterState.snapshot),n.resolve(!0)},complete:()=>{o=!0}}),DA(this.transitionAbortSubject.pipe(Ie(n=>{throw n}))),Hi(()=>{!o&&!g&&this.cancelNavigationTransition(i,"",kt.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),lt(n=>{if(this.destroyed)return i.resolve(!1),ve;if(g=!0,nR(n))this.events.next(new no(i.id,this.urlSerializer.serialize(i.extractedUrl),n.message,n.cancellationCode)),cY(n)?this.events.next(new Ks(n.url,n.navigationBehaviorOptions)):i.resolve(!1);else{let s=new vs(i.id,this.urlSerializer.serialize(i.extractedUrl),n,i.targetSnapshot??void 0);try{let r=wt(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(r instanceof Us){let{message:I,cancellationCode:B}=YQ(this.urlSerializer,r);this.events.next(new no(i.id,this.urlSerializer.serialize(i.extractedUrl),I,B)),this.events.next(new Ks(r.redirectTo,r.navigationBehaviorOptions))}else throw this.events.next(s),n}catch(r){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(r)}}return ve}))}))}cancelNavigationTransition(A,i,o){let g=new no(A.id,this.urlSerializer.serialize(A.extractedUrl),i,o);this.events.next(g),A.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let A=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return A.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gJ(t){return t!==pQ}var lR=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:()=>Q(nJ),providedIn:"root"})}return t})(),HQ=class{shouldDetach(e){return!1}store(e,A){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,A){return e.routeConfig===A.routeConfig}},nJ=(()=>{class t extends HQ{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dR=(()=>{class t{urlSerializer=Q(ln);options=Q(hn,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=Q(eo);urlHandlingStrategy=Q(PQ);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new so;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:A,initialUrl:i,targetBrowserUrl:o}){let g=A!==void 0?this.urlHandlingStrategy.merge(A,i):i,n=o??g;return n instanceof so?this.urlSerializer.serialize(n):n}commitTransition({targetRouterState:A,finalUrl:i,initialUrl:o}){i&&A?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,o),this.routerState=A):this.rawUrlTree=o}routerState=AR(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:A}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,A??this.rawUrlTree)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:()=>Q(sJ),providedIn:"root"})}return t})(),sJ=(()=>{class t extends dR{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(A){return this.location.subscribe(i=>{i.type==="popstate"&&setTimeout(()=>{A(i.url,i.state,"popstate")})})}handleRouterEvent(A,i){A instanceof Eg?this.updateStateMemento():A instanceof ro?this.commitTransition(i):A instanceof JI?this.urlUpdateStrategy==="eager"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):A instanceof HI?(this.commitTransition(i),this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):A instanceof no&&(A.code===kt.GuardRejected||A.code===kt.NoDataFromResolver)?this.restoreHistory(i):A instanceof vs?this.restoreHistory(i,!0):A instanceof Ot&&(this.lastSuccessfulId=A.id,this.currentPageId=this.browserPageId)}setBrowserUrl(A,{extras:i,id:o}){let{replaceUrl:g,state:n}=i;if(this.location.isCurrentPathEqualTo(A)||g){let s=this.browserPageId,r=R(R({},n),this.generateNgRouterState(o,s));this.location.replaceState(A,"",r)}else{let s=R(R({},n),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(A,"",s)}}restoreHistory(A,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,g=this.currentPageId-o;g!==0?this.location.historyGo(g):this.getCurrentUrlTree()===A.finalUrl&&g===0&&(this.resetInternalState(A),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetInternalState(A),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(A,i){return this.canceledNavigationResolution==="computed"?{navigationId:A,\u0275routerPageId:i}:{navigationId:A}}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qQ(t,e){t.events.pipe(RA(A=>A instanceof Ot||A instanceof no||A instanceof vs||A instanceof ro),oA(A=>A instanceof Ot||A instanceof ro?0:(A instanceof no?A.code===kt.Redirect||A.code===kt.SupersededByNewNavigation:!1)?2:1),RA(A=>A!==2),de(1)).subscribe(()=>{e()})}var rJ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},IJ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ao=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=Q(Eh);stateManager=Q(dR);options=Q(hn,{optional:!0})||{};pendingTasks=Q(Go);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=Q(ZQ);urlSerializer=Q(ln);location=Q(eo);urlHandlingStrategy=Q(PQ);_events=new K;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=Q(lR);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=Q(Ys,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!Q(zI,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:A=>{this.console.warn(A)}}),this.subscribeToNavigationEvents()}eventsSubscription=new NA;subscribeToNavigationEvents(){let A=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,g=this.navigationTransitions.currentNavigation;if(o!==null&&g!==null){if(this.stateManager.handleRouterEvent(i,g),i instanceof no&&i.code!==kt.Redirect&&i.code!==kt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Ot)this.navigated=!0;else if(i instanceof Ks){let n=i.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),r=R({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||gJ(o.source)},n);this.scheduleNavigation(s,pQ,null,r,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}CJ(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(A)}resetRootComponentType(A){this.routerState.root.component=A,this.navigationTransitions.rootComponentType=A}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),pQ,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((A,i,o)=>{this.navigateToSyncWithBrowser(A,o,i)})}navigateToSyncWithBrowser(A,i,o){let g={replaceUrl:!0},n=o?.navigationId?o:null;if(o){let r=R({},o);delete r.navigationId,delete r.\u0275routerPageId,Object.keys(r).length!==0&&(g.state=r)}let s=this.parseUrl(A);this.scheduleNavigation(s,i,n,g)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(A){this.config=A.map(yu),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(A,i={}){let{relativeTo:o,queryParams:g,fragment:n,queryParamsHandling:s,preserveFragment:r}=i,I=r?this.currentUrlTree.fragment:n,B=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":B=R(R({},this.currentUrlTree.queryParams),g);break;case"preserve":B=this.currentUrlTree.queryParams;break;default:B=g||null}B!==null&&(B=this.removeEmptyProps(B));let c;try{let D=o?o.snapshot:this.routerState.snapshot.root;c=zM(D)}catch{(typeof A[0]!="string"||A[0][0]!=="/")&&(A=[]),c=this.currentUrlTree.root}return jM(c,A,B,I??null)}navigateByUrl(A,i={skipLocationChange:!1}){let o=Ns(A)?A:this.parseUrl(A),g=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(g,pQ,null,i)}navigate(A,i={skipLocationChange:!1}){return aJ(A),this.navigateByUrl(this.createUrlTree(A,i),i)}serializeUrl(A){return this.urlSerializer.serialize(A)}parseUrl(A){try{return this.urlSerializer.parse(A)}catch{return this.urlSerializer.parse("/")}}isActive(A,i){let o;if(i===!0?o=R({},rJ):i===!1?o=R({},IJ):o=i,Ns(A))return SM(this.currentUrlTree,A,o);let g=this.parseUrl(A);return SM(this.currentUrlTree,g,o)}removeEmptyProps(A){return Object.entries(A).reduce((i,[o,g])=>(g!=null&&(i[o]=g),i),{})}scheduleNavigation(A,i,o,g,n){if(this.disposed)return Promise.resolve(!1);let s,r,I;n?(s=n.resolve,r=n.reject,I=n.promise):I=new Promise((c,D)=>{s=c,r=D});let B=this.pendingTasks.add();return qQ(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(B))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:A,extras:g,resolve:s,reject:r,promise:I,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),I.catch(c=>Promise.reject(c))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aJ(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new U(4008,!1)}function CJ(t){return!(t instanceof HI)&&!(t instanceof Ks)}var XI=class{};var hR=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(A,i,o,g,n){this.router=A,this.injector=o,this.preloadingStrategy=g,this.loader=n}setUpPreloading(){this.subscription=this.router.events.pipe(RA(A=>A instanceof Ot),Ji(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(A,i){let o=[];for(let g of i){g.providers&&!g._injector&&(g._injector=sI(g.providers,A,`Route: ${g.path}`));let n=g._injector??A,s=g._loadedInjector??n;(g.loadChildren&&!g._loadedRoutes&&g.canLoad===void 0||g.loadComponent&&!g._loadedComponent)&&o.push(this.preloadConfig(n,g)),(g.children||g._loadedRoutes)&&o.push(this.processRoutes(s,g.children??g._loadedRoutes))}return se(o).pipe(zo())}preloadConfig(A,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(A,i):o=tA(null);let g=o.pipe(ye(n=>n===null?tA(void 0):(i._loadedRoutes=n.routes,i._loadedInjector=n.injector,this.processRoutes(n.injector??A,n.routes))));if(i.loadComponent&&!i._loadedComponent){let n=this.loader.loadComponent(i);return se([g,n]).pipe(zo())}else return g})}static \u0275fac=function(i){return new(i||t)(J(ao),J(UB),J(Le),J(XI),J(OQ))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uR=new k(""),BJ=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(A,i,o,g,n={}){this.urlSerializer=A,this.transitions=i,this.viewportScroller=o,this.zone=g,this.options=n,n.scrollPositionRestoration||="disabled",n.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(A=>{A instanceof Eg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=A.navigationTrigger,this.restoredId=A.restoredState?A.restoredState.navigationId:0):A instanceof Ot?(this.lastId=A.id,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.urlAfterRedirects).fragment)):A instanceof ro&&A.code===Gs.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(A,this.urlSerializer.parse(A.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(A=>{A instanceof Ls&&(A.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(A.position):A.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(A.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(A,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ls(A,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){ky()};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function QJ(t){return t.routerState.root}function $I(t,e){return{\u0275kind:t,\u0275providers:e}}function EJ(){let t=Q(yA);return e=>{let A=t.get(Ut);if(e!==A.components[0])return;let i=t.get(ao),o=t.get(DR);t.get(bu)===1&&i.initialNavigation(),t.get(wR,null,ZA.Optional)?.setUpPreloading(),t.get(uR,null,ZA.Optional)?.init(),i.resetRootComponentType(A.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var DR=new k("",{factory:()=>new K}),bu=new k("",{providedIn:"root",factory:()=>1});function mR(){return $I(2,[{provide:bu,useValue:0},{provide:KB,multi:!0,deps:[yA],useFactory:e=>{let A=e.get(yh,Promise.resolve());return()=>A.then(()=>new Promise(i=>{let o=e.get(ao),g=e.get(DR);qQ(o,()=>{i(!0)}),e.get(ZQ).afterPreactivation=()=>(i(!0),g.closed?tA(void 0):g),o.initialNavigation()}))}}])}function fR(){return $I(3,[{provide:KB,multi:!0,useFactory:()=>{let e=Q(ao);return()=>{e.setUpLocationChangeListener()}}},{provide:bu,useValue:2}])}var wR=new k("");function pR(t){return $I(0,[{provide:wR,useExisting:hR},{provide:XI,useExisting:t}])}function yR(){return $I(8,[fu,{provide:zI,useExisting:fu}])}function MR(t){let e=[{provide:Mu,useValue:cR},{provide:Ru,useValue:R({skipNextTransition:!!t?.skipInitialTransition},t)}];return $I(9,e)}var RR=[eo,{provide:ln,useClass:Qg},ao,dn,{provide:Io,useFactory:QJ,deps:[ao]},OQ,[]],VQ=(()=>{class t{constructor(){}static forRoot(A,i){return{ngModule:t,providers:[RR,[],{provide:Ys,multi:!0,useValue:A},[],i?.errorHandler?{provide:ku,useValue:i.errorHandler}:[],{provide:hn,useValue:i||{}},i?.useHash?lJ():dJ(),cJ(),i?.preloadingStrategy?pR(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?hJ(i):[],i?.bindToComponentInputs?yR().\u0275providers:[],i?.enableViewTransitions?MR().\u0275providers:[],uJ()]}}static forChild(A){return{ngModule:t,providers:[{provide:Ys,multi:!0,useValue:A}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({})}return t})();function cJ(){return{provide:uR,useFactory:()=>{let t=Q(N0),e=Q(X),A=Q(hn),i=Q(ZQ),o=Q(ln);return A.scrollOffset&&t.setOffset(A.scrollOffset),new BJ(o,i,t,e,A)}}}function lJ(){return{provide:Ko,useClass:Fh}}function dJ(){return{provide:Ko,useClass:TB}}function hJ(t){return[t.initialNavigation==="disabled"?fR().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mR().\u0275providers:[]]}var Fu=new k("");function uJ(){return[{provide:Fu,useFactory:EJ},{provide:hh,multi:!0,useExisting:Fu}]}var Nu;try{Nu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Nu=!1}var HA=(()=>{class t{_platformId=Q(jt);isBrowser=this._platformId?to(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Nu)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Js,kR=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Gu(){if(Js)return Js;if(typeof document!="object"||!document)return Js=new Set(kR),Js;let t=document.createElement("input");return Js=new Set(kR.filter(e=>(t.setAttribute("type",e),t.type===e))),Js}var Aa;function mJ(){if(Aa==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Aa=!0}))}finally{Aa=Aa||!1}return Aa}function Co(t){return mJ()?t:!!t.capture}var Ri=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Ri||{}),WQ,un;function zQ(){if(un==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return un=!1,un;if("scrollBehavior"in document.documentElement.style)un=!0;else{let t=Element.prototype.scrollTo;t?un=!/\{\s*\[native code\]\s*\}/.test(t.toString()):un=!1}}return un}function Hs(){if(typeof document!="object"||!document)return Ri.NORMAL;if(WQ==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let A=document.createElement("div"),i=A.style;i.width="2px",i.height="1px",t.appendChild(A),document.body.appendChild(t),WQ=Ri.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,WQ=t.scrollLeft===0?Ri.NEGATED:Ri.INVERTED),t.remove()}return WQ}var Su;function fJ(){if(Su==null){let t=typeof document<"u"?document.head:null;Su=!!(t&&(t.createShadowRoot||t.attachShadow))}return Su}function FR(t){if(fJ()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Ts(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Pt(t){return t.composedPath?t.composedPath()[0]:t.target}function vu(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Lu(t,e,A,i,o){let g=parseInt(fh.major),n=parseInt(fh.minor);return g>19||g===19&&n>0||g===0&&n===0?t.listen(e,A,i,o):(e.addEventListener(A,i,o),()=>{e.removeEventListener(A,i,o)})}var jQ=new WeakMap,be=(()=>{class t{_appRef;_injector=Q(yA);_environmentInjector=Q(Le);load(A){let i=this._appRef=this._appRef||this._injector.get(Ut),o=jQ.get(i);o||(o={loaders:new Set,refs:[]},jQ.set(i,o),i.onDestroy(()=>{jQ.get(i)?.refs.forEach(g=>g.destroy()),jQ.delete(i)})),o.loaders.has(A)||(o.loaders.add(A),o.refs.push(YB(A,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ea=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,o){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return t})();function Oe(t,...e){return e.length?e.some(A=>t[A]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function we(t){return t!=null&&`${t}`!="false"}function Zt(t,e=0){return Ku(t)?Number(t):arguments.length===2?e:0}function Ku(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Os(t){return Array.isArray(t)?t:[t]}function Se(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Ft(t){return t instanceof Z?t.nativeElement:t}function wJ(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e<t.addedNodes.length;e++)if(!(t.addedNodes[e]instanceof Comment))return!1;for(let e=0;e<t.removedNodes.length;e++)if(!(t.removedNodes[e]instanceof Comment))return!1;return!0}return!1}var bR=(()=>{class t{create(A){return typeof MutationObserver>"u"?null:new MutationObserver(A)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),SR=(()=>{class t{_mutationObserverFactory=Q(bR);_observedElements=new Map;_ngZone=Q(X);constructor(){}ngOnDestroy(){this._observedElements.forEach((A,i)=>this._cleanupObserver(i))}observe(A){let i=Ft(A);return new QA(o=>{let n=this._observeElement(i).pipe(oA(s=>s.filter(r=>!wJ(r))),RA(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{n.unsubscribe(),this._unobserveElement(i)}})}_observeElement(A){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(A))this._observedElements.get(A).count++;else{let i=new K,o=this._mutationObserverFactory.create(g=>i.next(g));o&&o.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:o,stream:i,count:1})}return this._observedElements.get(A).stream})}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){let{observer:i,stream:o}=this._observedElements.get(A);i&&i.disconnect(),o.complete(),this._observedElements.delete(A)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),XQ=(()=>{class t{_contentObserver=Q(SR);_elementRef=Q(Z);event=new $;get disabled(){return this._disabled}set disabled(A){this._disabled=A,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(A){this._debounce=Zt(A),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let A=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?A.pipe(Ci(this.debounce)):A).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",iA],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Ps=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({providers:[bR]})}return t})();var NR=new Set,Dn,pJ=(()=>{class t{_platform=Q(HA);_nonce=Q(eI,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):MJ}matchMedia(A){return(this._platform.WEBKIT||this._platform.BLINK)&&yJ(A,this._nonce),this._matchMedia(A)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yJ(t,e){if(!NR.has(t))try{Dn||(Dn=document.createElement("style"),e&&Dn.setAttribute("nonce",e),Dn.setAttribute("type","text/css"),document.head.appendChild(Dn)),Dn.sheet&&(Dn.sheet.insertRule(`@media ${t} {body{ }}`,0),NR.add(t))}catch(A){console.error(A)}}function MJ(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var $Q=(()=>{class t{_mediaMatcher=Q(pJ);_zone=Q(X);_queries=new Map;_destroySubject=new K;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(A){return GR(Os(A)).some(o=>this._registerQuery(o).mql.matches)}observe(A){let o=GR(Os(A)).map(n=>this._registerQuery(n).observable),g=ai(o);return g=jo(g.pipe(de(1)),g.pipe(Kg(1),Ci(0))),g.pipe(oA(n=>{let s={matches:!1,breakpoints:{}};return n.forEach(({matches:r,query:I})=>{s.matches=s.matches||r,s.breakpoints[I]=r}),s}))}_registerQuery(A){if(this._queries.has(A))return this._queries.get(A);let i=this._mediaMatcher.matchMedia(A),g={observable:new QA(n=>{let s=r=>this._zone.run(()=>n.next(r));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(me(i),oA(({matches:n})=>({query:A,matches:n})),DA(this._destroySubject)),mql:i};return this._queries.set(A,g),g}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function GR(t){return t.map(e=>e.split(",")).reduce((e,A)=>e.concat(A)).map(e=>e.trim())}var vR={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var xR=" ";function Zu(t,e,A){let i=iE(t,e);A=A.trim(),!i.some(o=>o.trim()===A)&&(i.push(A),t.setAttribute(e,i.join(xR)))}function IE(t,e,A){let i=iE(t,e);A=A.trim();let o=i.filter(g=>g!==A);o.length?t.setAttribute(e,o.join(xR)):t.removeAttribute(e)}function iE(t,e){return t.getAttribute(e)?.match(/\S+/g)??[]}var YR="cdk-describedby-message",AE="cdk-describedby-host",Yu=0,JR=(()=>{class t{_platform=Q(HA);_document=Q(lA);_messageRegistry=new Map;_messagesContainer=null;_id=`${Yu++}`;constructor(){Q(be).load(ea),this._id=Q(ds)+"-"+Yu++}describe(A,i,o){if(!this._canBeDescribed(A,i))return;let g=Uu(i,o);typeof i!="string"?(LR(i,this._id),this._messageRegistry.set(g,{messageElement:i,referenceCount:0})):this._messageRegistry.has(g)||this._createMessageElement(i,o),this._isElementDescribedByMessage(A,g)||this._addMessageReference(A,g)}removeDescription(A,i,o){if(!i||!this._isElementNode(A))return;let g=Uu(i,o);if(this._isElementDescribedByMessage(A,g)&&this._removeMessageReference(A,g),typeof i=="string"){let n=this._messageRegistry.get(g);n&&n.referenceCount===0&&this._deleteMessageElement(g)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let A=this._document.querySelectorAll(`[${AE}="${this._id}"]`);for(let i=0;i<A.length;i++)this._removeCdkDescribedByReferenceIds(A[i]),A[i].removeAttribute(AE);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(A,i){let o=this._document.createElement("div");LR(o,this._id),o.textContent=A,i&&o.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(Uu(A,i),{messageElement:o,referenceCount:0})}_deleteMessageElement(A){this._messageRegistry.get(A)?.messageElement?.remove(),this._messageRegistry.delete(A)}_createMessagesContainer(){if(this._messagesContainer)return;let A="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${A}[platform="server"]`);for(let g=0;g<i.length;g++)i[g].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(A),o.classList.add("cdk-visually-hidden"),this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o}_removeCdkDescribedByReferenceIds(A){let i=iE(A,"aria-describedby").filter(o=>o.indexOf(YR)!=0);A.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(A,i){let o=this._messageRegistry.get(i);Zu(A,"aria-describedby",o.messageElement.id),A.setAttribute(AE,this._id),o.referenceCount++}_removeMessageReference(A,i){let o=this._messageRegistry.get(i);o.referenceCount--,IE(A,"aria-describedby",o.messageElement.id),A.removeAttribute(AE)}_isElementDescribedByMessage(A,i){let o=iE(A,"aria-describedby"),g=this._messageRegistry.get(i),n=g&&g.messageElement.id;return!!n&&o.indexOf(n)!=-1}_canBeDescribed(A,i){if(!this._isElementNode(A))return!1;if(i&&typeof i=="object")return!0;let o=i==null?"":`${i}`.trim(),g=A.getAttribute("aria-label");return o?!g||g.trim()!==o:!1}_isElementNode(A){return A.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uu(t,e){return typeof t=="string"?`${e||""}/${t}`:t}function LR(t,e){t.id||(t.id=`${YR}-${e}-${Yu++}`)}var YJ=200,Ju=class{_letterKeyStream=new K;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new K;selectedItem=this._selectedItem;constructor(e,A){let i=typeof A?.debounceInterval=="number"?A.debounceInterval:YJ;A?.skipPredicate&&(this._skipPredicateFn=A.skipPredicate),this.setItems(e),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e}setItems(e){this._items=e}handleKey(e){let A=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(A>=65&&A<=90||A>=48&&A<=57)&&this._letterKeyStream.next(String.fromCharCode(A))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(e){this._letterKeyStream.pipe(Ie(A=>this._pressedLetters.push(A)),Ci(e),RA(()=>this._pressedLetters.length>0),oA(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(A=>{for(let i=1;i<this._items.length+1;i++){let o=(this._selectedItemIndex+i)%this._items.length,g=this._items[o];if(!this._skipPredicateFn?.(g)&&g.getLabel?.().toLocaleUpperCase().trim().indexOf(A)===0){this._selectedItem.next(g);break}}this._pressedLetters=[]})}},oE=class{_items;_activeItemIndex=-1;_activeItem=_t(null);_wrap=!1;_typeaheadSubscription=NA.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,A){this._items=e,e instanceof Vi?this._itemChangesSubscription=e.changes.subscribe(i=>this._itemsChanged(i.toArray())):gg(e)&&(this._effectRef=aI(()=>this._itemsChanged(e()),{injector:A}))}tabOut=new K;change=new K;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let A=this._getItemsArray();return this._typeahead=new Ju(A,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,A=10){return this._pageUpAndDown={enabled:e,delta:A},this}setActiveItem(e){let A=this._activeItem();this.updateActiveItem(e),this._activeItem()!==A&&this.change.next(this._activeItemIndex)}onKeydown(e){let A=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(g=>!e[g]||this._allowedModifierKeys.indexOf(g)>-1);switch(A){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let g=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(g>0?g:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let g=this._activeItemIndex+this._pageUpAndDown.delta,n=this._getItemsArray().length;this._setActiveItemByIndex(g<n?g:n-1,-1);break}else return;default:(o||Oe(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let A=this._getItemsArray(),i=typeof e=="number"?e:A.indexOf(e),o=A[i];this._activeItem.set(o??null),this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let A=this._getItemsArray();for(let i=1;i<=A.length;i++){let o=(this._activeItemIndex+e*i+A.length)%A.length,g=A[o];if(!this._skipPredicateFn(g)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,A){let i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(e+=A,!i[e])return;this.setActiveItem(e)}}_getItemsArray(){return gg(this._items)?this._items():this._items instanceof Vi?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let A=this._activeItem();if(A){let i=e.indexOf(A);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}},gE=class extends oE{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},nE=class extends oE{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var ta=(()=>{class t{_platform=Q(HA);constructor(){}isDisabled(A){return A.hasAttribute("disabled")}isVisible(A){return HJ(A)&&getComputedStyle(A).visibility==="visible"}isTabbable(A){if(!this._platform.isBrowser)return!1;let i=JJ(zJ(A));if(i&&(KR(i)===-1||!this.isVisible(i)))return!1;let o=A.nodeName.toLowerCase(),g=KR(A);return A.hasAttribute("contenteditable")?g!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!VJ(A)?!1:o==="audio"?A.hasAttribute("controls")?g!==-1:!1:o==="video"?g===-1?!1:g!==null?!0:this._platform.FIREFOX||A.hasAttribute("controls"):A.tabIndex>=0}isFocusable(A,i){return WJ(A)&&!this.isDisabled(A)&&(i?.ignoreVisibility||this.isVisible(A))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function JJ(t){try{return t.frameElement}catch{return null}}function HJ(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function TJ(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function OJ(t){return ZJ(t)&&t.type=="hidden"}function PJ(t){return qJ(t)&&t.hasAttribute("href")}function ZJ(t){return t.nodeName.toLowerCase()=="input"}function qJ(t){return t.nodeName.toLowerCase()=="a"}function HR(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function KR(t){if(!HR(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function VJ(t){let e=t.nodeName.toLowerCase(),A=e==="input"&&t.type;return A==="text"||A==="password"||e==="select"||e==="textarea"}function WJ(t){return OJ(t)?!1:TJ(t)||PJ(t)||t.hasAttribute("contenteditable")||HR(t)}function zJ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Hu=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_enabled=!0;constructor(e,A,i,o,g=!1,n){this._element=e,this._checker=A,this._ngZone=i,this._document=o,this._injector=n,g||this.attachAnchors()}destroy(){let e=this._startAnchor,A=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),A&&(A.removeEventListener("focus",this.endAnchorListener),A.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(A=>{this._executeOnStable(()=>A(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(A=>{this._executeOnStable(()=>A(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(A=>{this._executeOnStable(()=>A(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let A=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?A.length?A[0]:this._getFirstTabbableElement(this._element):A.length?A[A.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let A=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(A){if(!this._checker.isFocusable(A)){let i=this._getFirstTabbableElement(A);return i?.focus(e),!!i}return A.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let A=this._getRegionBoundary("start");return A&&A.focus(e),!!A}focusLastTabbableElement(e){let A=this._getRegionBoundary("end");return A&&A.focus(e),!!A}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let A=e.children;for(let i=0;i<A.length;i++){let o=A[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(A[i]):null;if(o)return o}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let A=e.children;for(let i=A.length-1;i>=0;i--){let o=A[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(A[i]):null;if(o)return o}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,A){e?A.setAttribute("tabindex","0"):A.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?Ke(e,{injector:this._injector}):setTimeout(e)}},aE=(()=>{class t{_checker=Q(ta);_ngZone=Q(X);_document=Q(lA);_injector=Q(yA);constructor(){Q(be).load(ea)}create(A,i=!1){return new Hu(A,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qu(t){return t.buttons===0||t.detail===0}function Vu(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var jJ=new k("cdk-input-modality-detector-options"),XJ={ignoreKeys:[18,17,224,91,16]},TR=650,Zs=Co({passive:!0,capture:!0}),$J=(()=>{class t{_platform=Q(HA);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Ae(null);_options;_lastTouchMs=0;_onKeydown=A=>{this._options?.ignoreKeys?.some(i=>i===A.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Pt(A))};_onMousedown=A=>{Date.now()-this._lastTouchMs<TR||(this._modality.next(qu(A)?"keyboard":"mouse"),this._mostRecentTarget=Pt(A))};_onTouchstart=A=>{if(Vu(A)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Pt(A)};constructor(){let A=Q(X),i=Q(lA),o=Q(jJ,{optional:!0});this._options=R(R({},XJ),o),this.modalityDetected=this._modality.pipe(Kg(1)),this.modalityChanged=this.modalityDetected.pipe(Bi()),this._platform.isBrowser&&A.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,Zs),i.addEventListener("mousedown",this._onMousedown,Zs),i.addEventListener("touchstart",this._onTouchstart,Zs)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Zs),document.removeEventListener("mousedown",this._onMousedown,Zs),document.removeEventListener("touchstart",this._onTouchstart,Zs))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),AH=new k("liveAnnouncerElement",{providedIn:"root",factory:eH});function eH(){return null}var tH=new k("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),iH=0,CE=(()=>{class t{_ngZone=Q(X);_defaultOptions=Q(tH,{optional:!0});_liveElement;_document=Q(lA);_previousTimeout;_currentPromise;_currentResolve;constructor(){let A=Q(AH,{optional:!0});this._liveElement=A||this._createLiveElement()}announce(A,...i){let o=this._defaultOptions,g,n;return i.length===1&&typeof i[0]=="number"?n=i[0]:[g,n]=i,this.clear(),clearTimeout(this._previousTimeout),g||(g=o&&o.politeness?o.politeness:"polite"),n==null&&o&&(n=o.duration),this._liveElement.setAttribute("aria-live",g),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=A,typeof n=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),n)),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 A="cdk-live-announcer-element",i=this._document.getElementsByClassName(A),o=this._document.createElement("div");for(let g=0;g<i.length;g++)i[g].remove();return o.classList.add(A),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${iH++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(A){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<i.length;o++){let g=i[o],n=g.getAttribute("aria-owns");n?n.indexOf(A)===-1&&g.setAttribute("aria-owns",n+" "+A):g.setAttribute("aria-owns",A)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var tE=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(tE||{}),oH=new k("cdk-focus-monitor-default-options"),eE=Co({passive:!0,capture:!0}),Xt=(()=>{class t{_ngZone=Q(X);_platform=Q(HA);_inputModalityDetector=Q($J);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=Q(lA,{optional:!0});_stopInputModalityDetector=new K;constructor(){let A=Q(oH,{optional:!0});this._detectionMode=A?.detectionMode||tE.IMMEDIATE}_rootNodeFocusAndBlurListener=A=>{let i=Pt(A);for(let o=i;o;o=o.parentElement)A.type==="focus"?this._onFocus(A,o):this._onBlur(A,o)};monitor(A,i=!1){let o=Ft(A);if(!this._platform.isBrowser||o.nodeType!==1)return tA();let g=FR(o)||this._getDocument(),n=this._elementInfo.get(o);if(n)return i&&(n.checkChildren=!0),n.subject;let s={checkChildren:i,subject:new K,rootNode:g};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(A){let i=Ft(A),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(A,i,o){let g=Ft(A),n=this._getDocument().activeElement;g===n?this._getClosestElementsInfo(g).forEach(([s,r])=>this._originChanged(s,i,r)):(this._setOrigin(i),typeof g.focus=="function"&&g.focus(o))}ngOnDestroy(){this._elementInfo.forEach((A,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(A){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(A)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:A&&this._isLastInteractionFromInputLabel(A)?"mouse":"program"}_shouldBeAttributedToTouch(A){return this._detectionMode===tE.EVENTUAL||!!A?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(A,i){A.classList.toggle("cdk-focused",!!i),A.classList.toggle("cdk-touch-focused",i==="touch"),A.classList.toggle("cdk-keyboard-focused",i==="keyboard"),A.classList.toggle("cdk-mouse-focused",i==="mouse"),A.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(A,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=A,this._originFromTouchInteraction=A==="touch"&&i,this._detectionMode===tE.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?TR:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(A,i){let o=this._elementInfo.get(i),g=Pt(A);!o||!o.checkChildren&&i!==g||this._originChanged(i,this._getFocusOrigin(g),o)}_onBlur(A,i){let o=this._elementInfo.get(i);!o||o.checkChildren&&A.relatedTarget instanceof Node&&i.contains(A.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(A,i){A.subject.observers.length&&this._ngZone.run(()=>A.subject.next(i))}_registerGlobalListeners(A){if(!this._platform.isBrowser)return;let i=A.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,eE),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,eE)}),this._rootNodeFocusListenerCount.set(i,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(DA(this._stopInputModalityDetector)).subscribe(g=>{this._setOrigin(g,!0)}))}_removeGlobalListeners(A){let i=A.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,eE),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,eE),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(A,i,o){this._setClasses(A,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(A){let i=[];return this._elementInfo.forEach((o,g)=>{(g===A||o.checkChildren&&g.contains(A))&&i.push([g,o])}),i}_isLastInteractionFromInputLabel(A){let{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!i||i===A||A.nodeName!=="INPUT"&&A.nodeName!=="TEXTAREA"||A.disabled)return!1;let g=A.labels;if(g){for(let n=0;n<g.length;n++)if(g[n].contains(i))return!0}return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),OR=(()=>{class t{_elementRef=Q(Z);_focusMonitor=Q(Xt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new $;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let A=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(A,A.nodeType===1&&A.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})(),mn=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(mn||{}),UR="cdk-high-contrast-black-on-white",_R="cdk-high-contrast-white-on-black",_u="cdk-high-contrast-active",Wu=(()=>{class t{_platform=Q(HA);_hasCheckedHighContrastMode;_document=Q(lA);_breakpointSubscription;constructor(){this._breakpointSubscription=Q($Q).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return mn.NONE;let A=this._document.createElement("div");A.style.backgroundColor="rgb(1,2,3)",A.style.position="absolute",this._document.body.appendChild(A);let i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(A):null,g=(o&&o.backgroundColor||"").replace(/ /g,"");switch(A.remove(),g){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return mn.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return mn.BLACK_ON_WHITE}return mn.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let A=this._document.body.classList;A.remove(_u,UR,_R),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===mn.BLACK_ON_WHITE?A.add(_u,UR):i===mn.WHITE_ON_BLACK&&A.add(_u,_R)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zu=(()=>{class t{constructor(){Q(Wu)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[Ps]})}return t})(),xu={},ce=(()=>{class t{_appId=Q(ds);getId(A){return this._appId!=="ng"&&(A+=this._appId),xu.hasOwnProperty(A)||(xu[A]=0),`${A}${xu[A]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var gH=new k("cdk-dir-doc",{providedIn:"root",factory:nH});function nH(){return Q(lA)}var sH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function rH(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?sH.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Ne=(()=>{class t{value="ltr";change=new $;constructor(){let A=Q(gH,{optional:!0});if(A){let i=A.body?A.body.dir:null,o=A.documentElement?A.documentElement.dir:null;this.value=rH(i||o||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var lg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({})}return t})();var IH=["text"],aH=[[["mat-icon"]],"*"],CH=["mat-icon","*"];function BH(t,e){if(t&1&&W(0,"mat-pseudo-checkbox",1),t&2){let A=b();F("disabled",A.disabled)("state",A.selected?"checked":"unchecked")}}function QH(t,e){if(t&1&&W(0,"mat-pseudo-checkbox",3),t&2){let A=b();F("disabled",A.disabled)}}function EH(t,e){if(t&1&&(u(0,"span",4),v(1),m()),t&2){let A=b();f(),te("(",A.group.label,")")}}var cH=["mat-internal-form-field",""],lH=["*"];var SA=(()=>{class t{constructor(){Q(Wu)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[lg,lg]})}return t})(),qs=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(e,A,i,o,g){this._defaultMatcher=e,this.ngControl=A,this._parentFormGroup=i,this._parentForm=o,this._stateChanges=g}updateErrorState(){let e=this.errorState,A=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,g=i?.isErrorState(o,A)??!1;g!==e&&(this.errorState=g,this._stateChanges.next())}};var EE=(()=>{class t{isErrorState(A,i){return!!(A&&A.invalid&&(A.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ki=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,o){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return t})();var $t=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}($t||{}),$u=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=$t.HIDDEN;constructor(e,A,i,o=!1){this._renderer=e,this.element=A,this.config=i,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},PR=Co({passive:!0,capture:!0}),AD=class{_events=new Map;addHandler(e,A,i,o){let g=this._events.get(A);if(g){let n=g.get(i);n?n.add(o):g.set(i,new Set([o]))}else this._events.set(A,new Map([[i,new Set([o])]])),e.runOutsideAngular(()=>{document.addEventListener(A,this._delegateEventHandler,PR)})}removeHandler(e,A,i){let o=this._events.get(e);if(!o)return;let g=o.get(A);g&&(g.delete(i),g.size===0&&o.delete(A),o.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,PR)))}_delegateEventHandler=e=>{let A=Pt(e);A&&this._events.get(e.type)?.forEach((i,o)=>{(o===A||o.contains(A))&&i.forEach(g=>g.handleEvent(e))})}},QE={enterDuration:225,exitDuration:150},dH=800,ZR=Co({passive:!0,capture:!0}),qR=["mousedown","touchstart"],VR=["mouseup","mouseleave","touchend","touchcancel"],hH=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return t})(),Vs=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new AD;constructor(e,A,i,o,g){this._target=e,this._ngZone=A,this._platform=o,o.isBrowser&&(this._containerElement=Ft(i)),g&&g.get(be).load(hH)}fadeInRipple(e,A,i={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),g=R(R({},QE),i.animation);i.centered&&(e=o.left+o.width/2,A=o.top+o.height/2);let n=i.radius||uH(e,A,o),s=e-o.left,r=A-o.top,I=g.enterDuration,B=document.createElement("div");B.classList.add("mat-ripple-element"),B.style.left=`${s-n}px`,B.style.top=`${r-n}px`,B.style.height=`${n*2}px`,B.style.width=`${n*2}px`,i.color!=null&&(B.style.backgroundColor=i.color),B.style.transitionDuration=`${I}ms`,this._containerElement.appendChild(B);let c=window.getComputedStyle(B),D=c.transitionProperty,h=c.transitionDuration,p=D==="none"||h==="0s"||h==="0s, 0s"||o.width===0&&o.height===0,y=new $u(this,B,i,p);B.style.transform="scale3d(1, 1, 1)",y.state=$t.FADING_IN,i.persistent||(this._mostRecentTransientRipple=y);let L=null;return!p&&(I||g.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let P=()=>{L&&(L.fallbackTimer=null),clearTimeout(_A),this._finishRippleTransition(y)},mA=()=>this._destroyRipple(y),_A=setTimeout(mA,I+100);B.addEventListener("transitionend",P),B.addEventListener("transitioncancel",mA),L={onTransitionEnd:P,onTransitionCancel:mA,fallbackTimer:_A}}),this._activeRipples.set(y,L),(p||!I)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===$t.FADING_OUT||e.state===$t.HIDDEN)return;let A=e.element,i=R(R({},QE),e.config.animation);A.style.transitionDuration=`${i.exitDuration}ms`,A.style.opacity="0",e.state=$t.FADING_OUT,(e._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let A=Ft(e);!this._platform.isBrowser||!A||A===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=A,qR.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,A,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{VR.forEach(A=>{this._triggerElement.addEventListener(A,this,ZR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===$t.FADING_IN?this._startFadeOutTransition(e):e.state===$t.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let A=e===this._mostRecentTransientRipple,{persistent:i}=e.config;e.state=$t.VISIBLE,!i&&(!A||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let A=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=$t.HIDDEN,A!==null&&(e.element.removeEventListener("transitionend",A.onTransitionEnd),e.element.removeEventListener("transitioncancel",A.onTransitionCancel),A.fallbackTimer!==null&&clearTimeout(A.fallbackTimer)),e.element.remove()}_onMousedown(e){let A=qu(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+dH;!this._target.rippleDisabled&&!A&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Vu(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let A=e.changedTouches;if(A)for(let i=0;i<A.length;i++)this.fadeInRipple(A[i].clientX,A[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let A=e.state===$t.VISIBLE||e.config.terminateOnPointerUp&&e.state===$t.FADING_IN;!e.config.persistent&&A&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(qR.forEach(A=>t._eventManager.removeHandler(A,e,this)),this._pointerUpEventsRegistered&&(VR.forEach(A=>e.removeEventListener(A,this,ZR)),this._pointerUpEventsRegistered=!1))}};function uH(t,e,A){let i=Math.max(Math.abs(t-A.left),Math.abs(t-A.right)),o=Math.max(Math.abs(e-A.top),Math.abs(e-A.bottom));return Math.sqrt(i*i+o*o)}var ia=new k("mat-ripple-global-options"),dg=(()=>{class t{_elementRef=Q(Z);_animationMode=Q(ee,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(A){A&&this.fadeOutAllNonPersistent(),this._disabled=A,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(A){this._trigger=A,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let A=Q(X),i=Q(HA),o=Q(ia,{optional:!0}),g=Q(yA);this._globalOptions=o||{},this._rippleRenderer=new Vs(this,A,this._elementRef,i,g)}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:R(R(R({},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(A,i=0,o){return typeof A=="number"?this._rippleRenderer.fadeInRipple(A,i,R(R({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,R(R({},this.rippleConfig),A))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,o){i&2&&gA("mat-ripple-unbounded",o.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"]})}return t})(),oa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,SA]})}return t})(),DH=(()=>{class t{_animationMode=Q(ee,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,o){i&2&&gA("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,o){},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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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 t})(),tD=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA]})}return t})(),iD=new k("MAT_OPTION_PARENT_COMPONENT"),oD=new k("MatOptgroup");var eD=class{source;isUserInput;constructor(e,A=!1){this.source=e,this.isUserInput=A}},hg=(()=>{class t{_element=Q(Z);_changeDetectorRef=Q(zA);_parent=Q(iD,{optional:!0});group=Q(oD,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=Q(ce).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(A){this._disabled=A}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new $;_text;_stateChanges=new K;constructor(){let A=Q(be);A.load(ki),A.load(ea),this._signalDisableRipple=!!this._parent&&gg(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(A=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),A&&this._emitSelectionChangeEvent())}deselect(A=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),A&&this._emitSelectionChangeEvent())}focus(A,i){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(A){(A.keyCode===13||A.keyCode===32)&&!Oe(A)&&(this._selectViaInteraction(),A.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 A=this.viewValue;A!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=A)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(A=!1){this.onSelectionChange.emit(new eD(this,A))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-option"]],viewQuery:function(i,o){if(i&1&&cA(IH,7),i&2){let g;z(g=j())&&(o._text=g.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,o){i&1&&x("click",function(){return o._selectViaInteraction()})("keydown",function(n){return o._handleKeydown(n)}),i&2&&(yt("id",o.id),IA("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),gA("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",iA]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:CH,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,o){i&1&&(qA(aH),_(0,BH,1,2,"mat-pseudo-checkbox",1),rA(1),u(2,"span",2,0),rA(4,1),m(),_(5,QH,1,1,"mat-pseudo-checkbox",3)(6,EH,2,1,"span",4),W(7,"div",5)),i&2&&(wA(o.multiple?0:-1),f(5),wA(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),f(),wA(o.group&&o.group._inert?6:-1),f(),F("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[DH,dg],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-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.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, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.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-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-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-sys-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}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::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-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();function XR(t,e,A){if(A.length){let i=e.toArray(),o=A.toArray(),g=0;for(let n=0;n<t+1;n++)i[n].group&&i[n].group===o[g]&&g++;return g}return 0}function $R(t,e,A,i){return t<A?t:t+e>A+i?Math.max(0,t-i+e):A}var gD=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[oa,SA,tD]})}return t})(),WR={capture:!0},zR=["focus","mousedown","mouseenter","touchstart"],ju="mat-ripple-loader-uninitialized",Xu="mat-ripple-loader-class-name",jR="mat-ripple-loader-centered",BE="mat-ripple-loader-disabled",Ak=(()=>{class t{_document=Q(lA,{optional:!0});_animationMode=Q(ee,{optional:!0});_globalRippleOptions=Q(ia,{optional:!0});_platform=Q(HA);_ngZone=Q(X);_injector=Q(yA);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(let A of zR)this._document?.addEventListener(A,this._onInteraction,WR)})}ngOnDestroy(){let A=this._hosts.keys();for(let i of A)this.destroyRipple(i);for(let i of zR)this._document?.removeEventListener(i,this._onInteraction,WR)}configureRipple(A,i){A.setAttribute(ju,this._globalRippleOptions?.namespace??""),(i.className||!A.hasAttribute(Xu))&&A.setAttribute(Xu,i.className||""),i.centered&&A.setAttribute(jR,""),i.disabled&&A.setAttribute(BE,"")}setDisabled(A,i){let o=this._hosts.get(A);o?(o.target.rippleDisabled=i,!i&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(A))):i?A.setAttribute(BE,""):A.removeAttribute(BE)}_onInteraction=A=>{let i=Pt(A);if(i instanceof HTMLElement){let o=i.closest(`[${ju}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(A){if(!this._document||this._hosts.has(A))return;A.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",A.getAttribute(Xu)),A.append(i);let o=this._animationMode==="NoopAnimations",g=this._globalRippleOptions,n=o?0:g?.animation?.enterDuration??QE.enterDuration,s=o?0:g?.animation?.exitDuration??QE.exitDuration,r={rippleDisabled:o||g?.disabled||A.hasAttribute(BE),rippleConfig:{centered:A.hasAttribute(jR),terminateOnPointerUp:g?.terminateOnPointerUp,animation:{enterDuration:n,exitDuration:s}}},I=new Vs(r,this._ngZone,i,this._platform,this._injector),B=!r.rippleDisabled;B&&I.setupTriggerEvents(A),this._hosts.set(A,{target:r,renderer:I,hasSetUpEvents:B}),A.removeAttribute(ju)}destroyRipple(A){let i=this._hosts.get(A);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(A))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cE=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,o){i&2&&gA("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:cH,ngContentSelectors:lH,decls:1,vars:0,template:function(i,o){i&1&&(qA(),rA(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 t})();var mH=["mat-button",""],nD=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],sD=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var fH="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",wH=["mat-fab",""],pH=["mat-mini-fab",""],yH='.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::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}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',MH=["mat-icon-button",""],RH=["*"];var kH=new k("MAT_BUTTON_CONFIG");var FH=[{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"]}],dE=(()=>{class t{_elementRef=Q(Z);_ngZone=Q(X);_animationMode=Q(ee,{optional:!0});_focusMonitor=Q(Xt);_rippleLoader=Q(Ak);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(A){this._disableRipple=A,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(A){this._disabled=A,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){Q(be).load(ki);let A=Q(kH,{optional:!0}),i=this._elementRef.nativeElement,o=i.classList;this.disabledInteractive=A?.disabledInteractive??!1,this.color=A?.color??null,this._rippleLoader?.configureRipple(i,{className:"mat-mdc-button-ripple"});for(let{attribute:g,mdcClasses:n}of FH)i.hasAttribute(g)&&o.add(...n)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(A="program",i){A?this._focusMonitor.focusVia(this._elementRef.nativeElement,A,i):this._elementRef.nativeElement.focus(i)}_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 \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",iA],disabled:[2,"disabled","disabled",iA],ariaDisabled:[2,"aria-disabled","ariaDisabled",iA],disabledInteractive:[2,"disabledInteractive","disabledInteractive",iA]}})}return t})();var bt=(()=>{class t extends dE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(IA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Xe(o.color?"mat-"+o.color:""),gA("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[EA],attrs:mH,ngContentSelectors:sD,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(qA(nD),W(0,"span",0),rA(1),u(2,"span",1),rA(3,1),m(),rA(4,2),W(5,"span",2)(6,"span",3)),i&2&&gA("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return t})();var tk=new k("mat-mdc-fab-default-options",{providedIn:"root",factory:ik});function ik(){return{color:"accent"}}var lE=ik(),ok=(()=>{class t extends dE{_options=Q(tk,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||lE,this.color=this._options.color||lE.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(i,o){i&2&&(IA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Xe(o.color?"mat-"+o.color:""),gA("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0)("mdc-fab--extended",o.extended)("mat-mdc-extended-fab",o.extended))},inputs:{extended:[2,"extended","extended",iA]},exportAs:["matButton"],features:[EA],attrs:wH,ngContentSelectors:sD,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(qA(nD),W(0,"span",0),rA(1),u(2,"span",1),rA(3,1),m(),rA(4,2),W(5,"span",2)(6,"span",3)),i&2&&gA("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::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}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return t})(),gk=(()=>{class t extends dE{_options=Q(tk,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||lE,this.color=this._options.color||lE.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(i,o){i&2&&(IA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Xe(o.color?"mat-"+o.color:""),gA("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[EA],attrs:pH,ngContentSelectors:sD,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(qA(nD),W(0,"span",0),rA(1),u(2,"span",1),rA(3,1),m(),rA(4,2),W(5,"span",2)(6,"span",3)),i&2&&gA("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[yH],encapsulation:2,changeDetection:0})}return t})();var hE=(()=>{class t extends dE{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,o){i&2&&(IA("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Xe(o.color?"mat-"+o.color:""),gA("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[EA],attrs:MH,ngContentSelectors:RH,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,o){i&1&&(qA(),W(0,"span",0),rA(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, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.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-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.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}',fH],encapsulation:2,changeDetection:0})}return t})();var xo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,oa,SA]})}return t})();var uE=class{};function DE(t){return t&&typeof t.connect=="function"&&!(t instanceof qo)}var Xs=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(Xs||{}),ga=new k("_ViewRepeater"),$s=class{applyChanges(e,A,i,o,g){e.forEachOperation((n,s,r)=>{let I,B;if(n.previousIndex==null){let c=i(n,s,r);I=A.createEmbeddedView(c.templateRef,c.context,c.index),B=Xs.INSERTED}else r==null?(A.remove(s),B=Xs.REMOVED):(I=A.get(s),A.move(I,r),B=Xs.MOVED);g&&g({context:I?.context,operation:B,record:n})})}detach(){}};var Ar=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new K;constructor(e=!1,A,i=!0,o){this._multiple=e,this._emitChanges=i,this.compareWith=o,A&&A.length&&(e?A.forEach(g=>this._markSelected(g)):this._markSelected(A[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let A=this._hasQueuedChanges();return this._emitChangeEvent(),A}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let A=this._hasQueuedChanges();return this._emitChangeEvent(),A}setSelection(...e){this._verifyValueAssignment(e);let A=this.selected,i=new Set(e);e.forEach(g=>this._markSelected(g)),A.filter(g=>!i.has(this._getConcreteValue(g,i))).forEach(g=>this._unmarkSelected(g));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let A=this._hasQueuedChanges();return e&&this._emitChangeEvent(),A}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}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(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,A){if(this.compareWith){A=A??this._selection;for(let i of A)if(this.compareWith(e,i))return i;return e}else return e}};var bH=20,ug=(()=>{class t{_ngZone=Q(X);_platform=Q(HA);_renderer=Q(tt).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new K;_scrolledCount=0;scrollContainers=new Map;register(A){this.scrollContainers.has(A)||this.scrollContainers.set(A,A.elementScrolled().subscribe(()=>this._scrolled.next(A)))}deregister(A){let i=this.scrollContainers.get(A);i&&(i.unsubscribe(),this.scrollContainers.delete(A))}scrolled(A=bH){return this._platform.isBrowser?new QA(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=A>0?this._scrolled.pipe(mC(A)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):tA()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((A,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(A,i){let o=this.getAncestorScrollContainers(A);return this.scrolled(i).pipe(RA(g=>!g||o.indexOf(g)>-1))}getAncestorScrollContainers(A){let i=[];return this.scrollContainers.forEach((o,g)=>{this._scrollableContainsElement(g,A)&&i.push(g)}),i}_scrollableContainsElement(A,i){let o=Ft(i),g=A.getElementRef().nativeElement;do if(o==g)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jo=(()=>{class t{elementRef=Q(Z);scrollDispatcher=Q(ug);ngZone=Q(X);dir=Q(Ne,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new K;_renderer=Q(Me);_cleanupScroll;_elementScrolled=new K;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",A=>this._elementScrolled.next(A))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(A){let i=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";A.left==null&&(A.left=o?A.end:A.start),A.right==null&&(A.right=o?A.start:A.end),A.bottom!=null&&(A.top=i.scrollHeight-i.clientHeight-A.bottom),o&&Hs()!=Ri.NORMAL?(A.left!=null&&(A.right=i.scrollWidth-i.clientWidth-A.left),Hs()==Ri.INVERTED?A.left=A.right:Hs()==Ri.NEGATED&&(A.left=A.right?-A.right:A.right)):A.right!=null&&(A.left=i.scrollWidth-i.clientWidth-A.right),this._applyScrollToOptions(A)}_applyScrollToOptions(A){let i=this.elementRef.nativeElement;zQ()?i.scrollTo(A):(A.top!=null&&(i.scrollTop=A.top),A.left!=null&&(i.scrollLeft=A.left))}measureScrollOffset(A){let i="left",o="right",g=this.elementRef.nativeElement;if(A=="top")return g.scrollTop;if(A=="bottom")return g.scrollHeight-g.clientHeight-g.scrollTop;let n=this.dir&&this.dir.value=="rtl";return A=="start"?A=n?o:i:A=="end"&&(A=n?i:o),n&&Hs()==Ri.INVERTED?A==i?g.scrollWidth-g.clientWidth-g.scrollLeft:g.scrollLeft:n&&Hs()==Ri.NEGATED?A==i?g.scrollLeft+g.scrollWidth-g.clientWidth:-g.scrollLeft:A==i?g.scrollLeft:g.scrollWidth-g.clientWidth-g.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),SH=20,Ai=(()=>{class t{_platform=Q(HA);_listeners;_viewportSize;_change=new K;_document=Q(lA,{optional:!0});constructor(){let A=Q(X),i=Q(tt).createRenderer(null,null);A.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=g=>this._change.next(g);this._listeners=[i.listen("window","resize",o),i.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(A=>A()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let A={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),A}getViewportRect(){let A=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:A.top,left:A.left,bottom:A.top+o,right:A.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let A=this._document,i=this._getWindow(),o=A.documentElement,g=o.getBoundingClientRect(),n=-g.top||A.body.scrollTop||i.scrollY||o.scrollTop||0,s=-g.left||A.body.scrollLeft||i.scrollX||o.scrollLeft||0;return{top:n,left:s}}change(A=SH){return A>0?this._change.pipe(mC(A)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let A=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:A.innerWidth,height:A.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Yo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({})}return t})(),na=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[lg,Yo,lg,Yo]})}return t})();var sa=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Fi=class extends sa{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(e,A,i,o,g){super(),this.component=e,this.viewContainerRef=A,this.injector=i,this.projectableNodes=g}},ei=class extends sa{templateRef;viewContainerRef;context;injector;constructor(e,A,i,o){super(),this.templateRef=e,this.viewContainerRef=A,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(e,A=this.context){return this.context=A,super.attach(e)}detach(){return this.context=void 0,super.detach()}},rD=class extends sa{element;constructor(e){super(),this.element=e instanceof Z?e.nativeElement:e}},Dg=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Fi)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof ei)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof rD)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var mE=class extends Dg{outletElement;_appRef;_defaultInjector;_document;constructor(e,A,i,o,g){super(),this.outletElement=e,this._appRef=i,this._defaultInjector=o,this._document=g}attachComponentPortal(e){let A;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,o=i.get(So,null,{optional:!0})||void 0;A=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>A.destroy())}else A=YB(e.component,{elementInjector:e.injector||this._defaultInjector||yA.NULL,environmentInjector:this._appRef.injector,projectableNodes:e.projectableNodes||void 0}),this._appRef.attachView(A.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(A.hostView),A.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(A)),this._attachedPortal=e,A}attachTemplatePortal(e){let A=e.viewContainerRef,i=A.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=A.indexOf(i);o!==-1&&A.remove(o)}),this._attachedPortal=e,i}attachDomPortal=e=>{let A=e.element;A.parentNode;let i=this._document.createComment("dom-portal");A.parentNode.insertBefore(i,A),this.outletElement.appendChild(A),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(A,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var nk=(()=>{class t extends ei{constructor(){let A=Q(ne),i=Q(Ce);super(A,i)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[EA]})}return t})();var ti=(()=>{class t extends Dg{_moduleRef=Q(So,{optional:!0});_document=Q(lA);_viewContainerRef=Q(Ce);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(A){this.hasAttached()&&!A&&!this._isInitialized||(this.hasAttached()&&super.detach(),A&&super.attach(A),this._attachedPortal=A||null)}attached=new $;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(A){A.setAttachedHost(this);let i=A.viewContainerRef!=null?A.viewContainerRef:this._viewContainerRef,o=i.createComponent(A.component,{index:i.length,injector:A.injector||i.injector,projectableNodes:A.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=A,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(A){A.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(A.templateRef,A.context,{injector:A.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=A,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=A=>{let i=A.element;i.parentNode;let o=this._document.createComment("dom-portal");A.setAttachedHost(this),i.parentNode.insertBefore(o,i),this._getRootNode().appendChild(i),this._attachedPortal=A,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(i,o)})};_getRootNode(){let A=this._viewContainerRef.element.nativeElement;return A.nodeType===A.ELEMENT_NODE?A:A.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[EA]})}return t})();var ra=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({})}return t})();var sk=zQ(),ID=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,A){this._viewportRuler=e,this._document=A}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Se(-this._previousScrollPosition.left),e.style.top=Se(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,A=this._document.body,i=e.style,o=A.style,g=i.scrollBehavior||"",n=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),sk&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),sk&&(i.scrollBehavior=g,o.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let A=this._document.body,i=this._viewportRuler.getViewportSize();return A.scrollHeight>i.height||A.scrollWidth>i.width}};var aD=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,A,i,o){this._scrollDispatcher=e,this._ngZone=A,this._viewportRuler=i,this._config=o}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(RA(A=>!A||!this._overlayRef.overlayElement.contains(A.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let A=this._viewportRuler.getViewportScrollPosition().top;Math.abs(A-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},fE=class{enable(){}disable(){}attach(){}};function CD(t,e){return e.some(A=>{let i=t.bottom<A.top,o=t.top>A.bottom,g=t.right<A.left,n=t.left>A.right;return i||o||g||n})}function rk(t,e){return e.some(A=>{let i=t.top<A.top,o=t.bottom>A.bottom,g=t.left<A.left,n=t.right>A.right;return i||o||g||n})}var BD=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,A,i,o){this._scrollDispatcher=e,this._viewportRuler=A,this._ngZone=i,this._config=o}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let A=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();CD(A,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},GH=(()=>{class t{_scrollDispatcher=Q(ug);_viewportRuler=Q(Ai);_ngZone=Q(X);_document=Q(lA);constructor(){}noop=()=>new fE;close=A=>new aD(this._scrollDispatcher,this._ngZone,this._viewportRuler,A);block=()=>new ID(this._viewportRuler,this._document);reposition=A=>new BD(this._scrollDispatcher,this._viewportRuler,this._ngZone,A);static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mg=class{positionStrategy;scrollStrategy=new fE;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let A=Object.keys(e);for(let i of A)e[i]!==void 0&&(this[i]=e[i])}}};var QD=class{connectionPair;scrollableViewProperties;constructor(e,A){this.connectionPair=e,this.scrollableViewProperties=A}};var Ek=(()=>{class t{_attachedOverlays=[];_document=Q(lA);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(A){this.remove(A),this._attachedOverlays.push(A)}remove(A){let i=this._attachedOverlays.indexOf(A);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vH=(()=>{class t extends Ek{_ngZone=Q(X);_renderer=Q(tt).createRenderer(null,null);_cleanupKeydown;add(A){super.add(A),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=A=>{let i=this._attachedOverlays;for(let o=i.length-1;o>-1;o--)if(i[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[o]._keydownEvents.next(A));break}};static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),LH=(()=>{class t extends Ek{_platform=Q(HA);_ngZone=Q(X,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(A){if(super.add(A),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let A=this._document.body;A.removeEventListener("pointerdown",this._pointerDownListener,!0),A.removeEventListener("click",this._clickListener,!0),A.removeEventListener("auxclick",this._clickListener,!0),A.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(A.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(A){A.addEventListener("pointerdown",this._pointerDownListener,!0),A.addEventListener("click",this._clickListener,!0),A.addEventListener("auxclick",this._clickListener,!0),A.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=A=>{this._pointerDownEventTarget=Pt(A)};_clickListener=A=>{let i=Pt(A),o=A.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let g=this._attachedOverlays.slice();for(let n=g.length-1;n>-1;n--){let s=g[n];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(Ik(s.overlayElement,i)||Ik(s.overlayElement,o))break;let r=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>r.next(A)):r.next(A)}};static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ik(t,e){let A=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===t)return!0;i=A&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var ck=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return t})(),wE=(()=>{class t{_platform=Q(HA);_containerElement;_document=Q(lA);_styleLoader=Q(be);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let A="cdk-overlay-container";if(this._platform.isBrowser||vu()){let o=this._document.querySelectorAll(`.${A}[platform="server"], .${A}[platform="test"]`);for(let g=0;g<o.length;g++)o[g].remove()}let i=this._document.createElement("div");i.classList.add(A),vu()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(ck)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ED=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,A,i,o){this._renderer=A,this._ngZone=i,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=A.listen(this.element,"click",o)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},er=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new K;_attachments=new K;_detachments=new K;_positionStrategy;_scrollStrategy;_locationChanges=NA.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new K;_outsidePointerEvents=new K;_renders=new K;_afterRenderRef;_afterNextRenderRef;constructor(e,A,i,o,g,n,s,r,I,B=!1,c,D){this._portalOutlet=e,this._host=A,this._pane=i,this._config=o,this._ngZone=g,this._keyboardDispatcher=n,this._document=s,this._location=r,this._outsideClickDispatcher=I,this._animationsDisabled=B,this._injector=c,this._renderer=D,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=Mt(()=>tI(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let A=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ke(()=>{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 A?.onDestroy=="function"&&A.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),A}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),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=this._backdropRef=null,e&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=R(R({},this._config),e),this._updateElementSize()}setDirection(e){this._config=hA(R({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=Se(this._config.width),e.height=Se(this._config.height),e.minWidth=Se(this._config.minWidth),e.minHeight=Se(this._config.minHeight),e.maxWidth=Se(this._config.maxWidth),e.maxHeight=Se(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new ED(this._document,this._renderer,this._ngZone,A=>{this._backdropClick.next(A)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,A,i){let o=Os(A||[]).filter(g=>!!g);o.length&&(i?e.classList.add(...o):e.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(DA(De(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()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}},ak="cdk-overlay-connected-position-bounding-box",KH=/([A-Za-z%]+)$/,cD=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new K;_resizeSubscription=NA.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,A,i,o,g){this._viewportRuler=A,this._document=i,this._platform=o,this._overlayContainer=g,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(ak),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){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 e=this._originRect,A=this._overlayRect,i=this._viewportRect,o=this._containerRect,g=[],n;for(let s of this._preferredPositions){let r=this._getOriginPoint(e,o,s),I=this._getOverlayPoint(r,A,s),B=this._getOverlayFit(I,A,i,s);if(B.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,r);return}if(this._canFitWithFlexibleDimensions(B,I,i)){g.push({position:s,origin:r,overlayRect:A,boundingBoxRect:this._calculateBoundingBoxRect(r,s)});continue}(!n||n.overlayFit.visibleArea<B.visibleArea)&&(n={overlayFit:B,overlayPoint:I,originPoint:r,position:s,overlayRect:A})}if(g.length){let s=null,r=-1;for(let I of g){let B=I.boundingBoxRect.width*I.boundingBoxRect.height*(I.position.weight||1);B>r&&(r=B,s=I)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(n.position,n.originPoint);return}this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&fn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ak),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let A=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,A)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,A,i){let o;if(i.originX=="center")o=e.left+e.width/2;else{let n=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;o=i.originX=="start"?n:s}A.left<0&&(o-=A.left);let g;return i.originY=="center"?g=e.top+e.height/2:g=i.originY=="top"?e.top:e.bottom,A.top<0&&(g-=A.top),{x:o,y:g}}_getOverlayPoint(e,A,i){let o;i.overlayX=="center"?o=-A.width/2:i.overlayX==="start"?o=this._isRtl()?-A.width:0:o=this._isRtl()?0:-A.width;let g;return i.overlayY=="center"?g=-A.height/2:g=i.overlayY=="top"?0:-A.height,{x:e.x+o,y:e.y+g}}_getOverlayFit(e,A,i,o){let g=Bk(A),{x:n,y:s}=e,r=this._getOffset(o,"x"),I=this._getOffset(o,"y");r&&(n+=r),I&&(s+=I);let B=0-n,c=n+g.width-i.width,D=0-s,h=s+g.height-i.height,p=this._subtractOverflows(g.width,B,c),y=this._subtractOverflows(g.height,D,h),L=p*y;return{visibleArea:L,isCompletelyWithinViewport:g.width*g.height===L,fitsInViewportVertically:y===g.height,fitsInViewportHorizontally:p==g.width}}_canFitWithFlexibleDimensions(e,A,i){if(this._hasFlexibleDimensions){let o=i.bottom-A.y,g=i.right-A.x,n=Ck(this._overlayRef.getConfig().minHeight),s=Ck(this._overlayRef.getConfig().minWidth),r=e.fitsInViewportVertically||n!=null&&n<=o,I=e.fitsInViewportHorizontally||s!=null&&s<=g;return r&&I}return!1}_pushOverlayOnScreen(e,A,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=Bk(A),g=this._viewportRect,n=Math.max(e.x+o.width-g.width,0),s=Math.max(e.y+o.height-g.height,0),r=Math.max(g.top-i.top-e.y,0),I=Math.max(g.left-i.left-e.x,0),B=0,c=0;return o.width<=g.width?B=I||-n:B=e.x<this._viewportMargin?g.left-i.left-e.x:0,o.height<=g.height?c=r||-s:c=e.y<this._viewportMargin?g.top-i.top-e.y:0,this._previousPushAmount={x:B,y:c},{x:e.x+B,y:e.y+c}}_applyPosition(e,A){if(this._setTransformOrigin(e),this._setOverlayElementStyles(A,e),this._setBoundingBoxStyles(A,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!UH(this._lastScrollVisibility,i)){let o=new QD(e,i);this._positionChanges.next(o)}this._lastScrollVisibility=i}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let A=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,o=e.overlayY;e.overlayX==="center"?i="center":this._isRtl()?i=e.overlayX==="start"?"right":"left":i=e.overlayX==="start"?"left":"right";for(let g=0;g<A.length;g++)A[g].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(e,A){let i=this._viewportRect,o=this._isRtl(),g,n,s;if(A.overlayY==="top")n=e.y,g=i.height-n+this._viewportMargin;else if(A.overlayY==="bottom")s=i.height-e.y+this._viewportMargin*2,g=i.height-s+this._viewportMargin;else{let h=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;g=h*2,n=e.y-h,g>p&&!this._isInitialRender&&!this._growAfterOpen&&(n=e.y-p/2)}let r=A.overlayX==="start"&&!o||A.overlayX==="end"&&o,I=A.overlayX==="end"&&!o||A.overlayX==="start"&&o,B,c,D;if(I)D=i.width-e.x+this._viewportMargin*2,B=e.x-this._viewportMargin;else if(r)c=e.x,B=i.right-e.x;else{let h=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;B=h*2,c=e.x-h,B>p&&!this._isInitialRender&&!this._growAfterOpen&&(c=e.x-p/2)}return{top:n,left:c,bottom:s,right:D,width:B,height:g}}_setBoundingBoxStyles(e,A){let i=this._calculateBoundingBoxRect(e,A);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let g=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;o.height=Se(i.height),o.top=Se(i.top),o.bottom=Se(i.bottom),o.width=Se(i.width),o.left=Se(i.left),o.right=Se(i.right),A.overlayX==="center"?o.alignItems="center":o.alignItems=A.overlayX==="end"?"flex-end":"flex-start",A.overlayY==="center"?o.justifyContent="center":o.justifyContent=A.overlayY==="bottom"?"flex-end":"flex-start",g&&(o.maxHeight=Se(g)),n&&(o.maxWidth=Se(n))}this._lastBoundingBoxSize=i,fn(this._boundingBox.style,o)}_resetBoundingBoxStyles(){fn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){fn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,A){let i={},o=this._hasExactPosition(),g=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(o){let B=this._viewportRuler.getViewportScrollPosition();fn(i,this._getExactOverlayY(A,e,B)),fn(i,this._getExactOverlayX(A,e,B))}else i.position="static";let s="",r=this._getOffset(A,"x"),I=this._getOffset(A,"y");r&&(s+=`translateX(${r}px) `),I&&(s+=`translateY(${I}px)`),i.transform=s.trim(),n.maxHeight&&(o?i.maxHeight=Se(n.maxHeight):g&&(i.maxHeight="")),n.maxWidth&&(o?i.maxWidth=Se(n.maxWidth):g&&(i.maxWidth="")),fn(this._pane.style,i)}_getExactOverlayY(e,A,i){let o={top:"",bottom:""},g=this._getOverlayPoint(A,this._overlayRect,e);if(this._isPushed&&(g=this._pushOverlayOnScreen(g,this._overlayRect,i)),e.overlayY==="bottom"){let n=this._document.documentElement.clientHeight;o.bottom=`${n-(g.y+this._overlayRect.height)}px`}else o.top=Se(g.y);return o}_getExactOverlayX(e,A,i){let o={left:"",right:""},g=this._getOverlayPoint(A,this._overlayRect,e);this._isPushed&&(g=this._pushOverlayOnScreen(g,this._overlayRect,i));let n;if(this._isRtl()?n=e.overlayX==="end"?"left":"right":n=e.overlayX==="end"?"right":"left",n==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(g.x+this._overlayRect.width)}px`}else o.left=Se(g.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),A=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:rk(e,i),isOriginOutsideView:CD(e,i),isOverlayClipped:rk(A,i),isOverlayOutsideView:CD(A,i)}}_subtractOverflows(e,...A){return A.reduce((i,o)=>i-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,A=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+A-this._viewportMargin,width:e-2*this._viewportMargin,height:A-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,A){return A==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Os(e).forEach(A=>{A!==""&&this._appliedPanelClasses.indexOf(A)===-1&&(this._appliedPanelClasses.push(A),this._pane.classList.add(A))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof Z)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let A=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+A,height:i,width:A}}};function fn(t,e){for(let A in e)e.hasOwnProperty(A)&&(t[A]=e[A]);return t}function Ck(t){if(typeof t!="number"&&t!=null){let[e,A]=t.split(KH);return!A||A==="px"?parseFloat(e):null}return t||null}function Bk(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function UH(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var Qk="cdk-global-overlay-wrapper",lD=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let A=e.getConfig();this._overlayRef=e,this._width&&!A.width&&e.updateSize({width:this._width}),this._height&&!A.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Qk),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,A=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:g,maxWidth:n,maxHeight:s}=i,r=(o==="100%"||o==="100vw")&&(!n||n==="100%"||n==="100vw"),I=(g==="100%"||g==="100vh")&&(!s||s==="100%"||s==="100vh"),B=this._xPosition,c=this._xOffset,D=this._overlayRef.getConfig().direction==="rtl",h="",p="",y="";r?y="flex-start":B==="center"?(y="center",D?p=c:h=c):D?B==="left"||B==="end"?(y="flex-end",h=c):(B==="right"||B==="start")&&(y="flex-start",p=c):B==="left"||B==="start"?(y="flex-start",h=c):(B==="right"||B==="end")&&(y="flex-end",p=c),e.position=this._cssPosition,e.marginLeft=r?"0":h,e.marginTop=I?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=r?"0":p,A.justifyContent=y,A.alignItems=I?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,A=this._overlayRef.hostElement,i=A.style;A.classList.remove(Qk),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},_H=(()=>{class t{_viewportRuler=Q(Ai);_document=Q(lA);_platform=Q(HA);_overlayContainer=Q(wE);constructor(){}global(){return new lD}flexibleConnectedTo(A){return new cD(A,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pe=(()=>{class t{scrollStrategies=Q(GH);_overlayContainer=Q(wE);_positionBuilder=Q(_H);_keyboardDispatcher=Q(vH);_injector=Q(yA);_ngZone=Q(X);_document=Q(lA);_directionality=Q(Ne);_location=Q(eo);_outsideClickDispatcher=Q(LH);_animationsModuleType=Q(ee,{optional:!0});_idGenerator=Q(ce);_renderer=Q(tt).createRenderer(null,null);_appRef;_styleLoader=Q(be);constructor(){}create(A){this._styleLoader.load(ck);let i=this._createHostElement(),o=this._createPaneElement(i),g=this._createPortalOutlet(o),n=new mg(A);return n.direction=n.direction||this._directionality.value,new er(g,i,o,n,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Le),this._renderer)}position(){return this._positionBuilder}_createPaneElement(A){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),A.appendChild(i),i}_createHostElement(){let A=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(A),A}_createPortalOutlet(A){return this._appRef||(this._appRef=this._injector.get(Ut)),new mE(A,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xH=[{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"}],lk=new k("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.reposition()}}),Ia=(()=>{class t{elementRef=Q(Z);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),dD=(()=>{class t{_overlay=Q(Pe);_dir=Q(Ne,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=NA.EMPTY;_attachSubscription=NA.EMPTY;_detachSubscription=NA.EMPTY;_positionSubscription=NA.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=Q(lk);_disposeOnNavigation=!1;_ngZone=Q(X);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(A){this._offsetX=A,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(A){this._offsetY=A,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(A){this._disposeOnNavigation=A}backdropClick=new $;positionChange=new $;attach=new $;detach=new $;overlayKeydown=new $;overlayOutsideClick=new $;constructor(){let A=Q(ne),i=Q(Ce);this._templatePortal=new ei(A,i),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(A){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),A.origin&&this.open&&this._position.apply()),A.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=xH);let A=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=A.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=A.detachments().subscribe(()=>this.detach.emit()),A.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Oe(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let o=this._getOriginElement(),g=Pt(i);(!o||o!==g&&!o.contains(g))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let A=this._position=this.positionStrategy||this._createPositionStrategy(),i=new mg({direction:this._dir||"ltr",positionStrategy:A,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(A){let i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return A.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let A=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(A),A}_getOrigin(){return this.origin instanceof Ia?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ia?this.origin.elementRef.nativeElement:this.origin instanceof Z?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(A=>{this.backdropClick.emit(A)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Wc(()=>this.positionChange.observers.length>0)).subscribe(A=>{this._ngZone.run(()=>this.positionChange.emit(A)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,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",iA],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",iA],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",iA],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",iA],push:[2,"cdkConnectedOverlayPush","push",iA],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",iA]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[VA]})}return t})();function YH(t){return()=>t.scrollStrategies.reposition()}var JH={provide:lk,deps:[Pe],useFactory:YH},wn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({providers:[Pe,JH],imports:[lg,ra,na,na]})}return t})();var hD=class{_box;_destroyed=new K;_resizeSubject=new K;_resizeObserver;_elementObservables=new Map;constructor(e){this._box=e,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(A=>this._resizeSubject.next(A)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new QA(A=>{let i=this._resizeSubject.subscribe(A);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),i.unsubscribe(),this._elementObservables.delete(e)}}).pipe(RA(A=>A.some(i=>i.target===e)),Ro({bufferSize:1,refCount:!0}),DA(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},pE=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=Q(X);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,A]of this._observers)A.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(A,i){let o=i?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new hD(o)),this._observers.get(o).observe(A)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var LA=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(LA||{}),ii="*";function Qo(t,e){return{type:LA.Trigger,name:t,definitions:e,options:{}}}function qt(t,e=null){return{type:LA.Animate,styles:e,timings:t}}function dk(t,e=null){return{type:LA.Sequence,steps:t,options:e}}function Ge(t){return{type:LA.Style,styles:t,offset:null}}function oi(t,e,A){return{type:LA.State,name:t,styles:e,options:A}}function St(t,e,A=null){return{type:LA.Transition,expr:t,animation:e,options:A}}function uD(t=null){return{type:LA.AnimateChild,options:t}}function DD(t,e,A=null){return{type:LA.Query,selector:t,animation:e,options:A}}var Bo=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,A=0){this.totalTime=e+A}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let A=e=="start"?this._onStartFns:this._onDoneFns;A.forEach(i=>i()),A.length=0}},pn=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let A=0,i=0,o=0,g=this.players.length;g==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(n=>{n.onDone(()=>{++A==g&&this._onFinish()}),n.onDestroy(()=>{++i==g&&this._onDestroy()}),n.onStart(()=>{++o==g&&this._onStart()})}),this.totalTime=this.players.reduce((n,s)=>Math.max(n,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let A=e*this.totalTime;this.players.forEach(i=>{let o=i.totalTime?Math.min(1,A/i.totalTime):1;i.setPosition(o)})}getPosition(){let e=this.players.reduce((A,i)=>A===null||i.totalTime>A.totalTime?i:A,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let A=e=="start"?this._onStartFns:this._onDoneFns;A.forEach(i=>i()),A.length=0}},tr="!";var HH=["notch"],TH=["matFormFieldNotchedOutline",""],OH=["*"],PH=["textField"],ZH=["iconPrefixContainer"],qH=["textPrefixContainer"],VH=["iconSuffixContainer"],WH=["textSuffixContainer"],zH=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],jH=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function XH(t,e){t&1&&W(0,"span",21)}function $H(t,e){if(t&1&&(u(0,"label",20),rA(1,1),_(2,XH,1,0,"span",21),m()),t&2){let A=b(2);F("floating",A._shouldLabelFloat())("monitorResize",A._hasOutline())("id",A._labelId),IA("for",A._control.disableAutomaticLabeling?null:A._control.id),f(2),wA(!A.hideRequiredMarker&&A._control.required?2:-1)}}function AT(t,e){if(t&1&&_(0,$H,3,5,"label",20),t&2){let A=b();wA(A._hasFloatingLabel()?0:-1)}}function eT(t,e){t&1&&W(0,"div",7)}function tT(t,e){}function iT(t,e){if(t&1&&_(0,tT,0,0,"ng-template",13),t&2){b(2);let A=He(1);F("ngTemplateOutlet",A)}}function oT(t,e){if(t&1&&(u(0,"div",9),_(1,iT,1,1,null,13),m()),t&2){let A=b();F("matFormFieldNotchedOutlineOpen",A._shouldLabelFloat()),f(),wA(A._forceDisplayInfixLabel()?-1:1)}}function gT(t,e){t&1&&(u(0,"div",10,2),rA(2,2),m())}function nT(t,e){t&1&&(u(0,"div",11,3),rA(2,3),m())}function sT(t,e){}function rT(t,e){if(t&1&&_(0,sT,0,0,"ng-template",13),t&2){b();let A=He(1);F("ngTemplateOutlet",A)}}function IT(t,e){t&1&&(u(0,"div",14,4),rA(2,4),m())}function aT(t,e){t&1&&(u(0,"div",15,5),rA(2,5),m())}function CT(t,e){t&1&&W(0,"div",16)}function BT(t,e){if(t&1&&(u(0,"div",18),rA(1,6),m()),t&2){let A=b();F("@transitionMessages",A._subscriptAnimationState)}}function QT(t,e){if(t&1&&(u(0,"mat-hint",22),v(1),m()),t&2){let A=b(2);F("id",A._hintLabelId),f(),PA(A.hintLabel)}}function ET(t,e){if(t&1&&(u(0,"div",19),_(1,QT,2,2,"mat-hint",22),rA(2,7),W(3,"div",23),rA(4,8),m()),t&2){let A=b();F("@transitionMessages",A._subscriptAnimationState),f(),wA(A.hintLabel?1:-1)}}var ME=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["mat-label"]]})}return t})(),cT=new k("MatError");var hk=(()=>{class t{align="start";id=Q(ce).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,o){i&2&&(yt("id",o.id),IA("align",null),gA("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),lT=new k("MatPrefix");var yk=new k("MatSuffix"),Mk=(()=>{class t{set _isTextSelector(A){this._isText=!0}_isText=!1;static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[KA([{provide:yk,useExisting:t}])]})}return t})(),Rk=new k("FloatingLabelParent"),uk=(()=>{class t{_elementRef=Q(Z);get floating(){return this._floating}set floating(A){this._floating=A,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(A){this._monitorResize=A,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=Q(pE);_ngZone=Q(X);_parent=Q(Rk);_resizeSubscription=new NA;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return dT(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 \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,o){i&2&&gA("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function dT(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let A=e.cloneNode(!0);A.style.setProperty("position","absolute"),A.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(A);let i=A.scrollWidth;return A.remove(),i}var Dk="mdc-line-ripple--active",yE="mdc-line-ripple--deactivating",mk=(()=>{class t{_elementRef=Q(Z);_cleanupTransitionEnd;constructor(){let A=Q(X),i=Q(Me);A.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let A=this._elementRef.nativeElement.classList;A.remove(yE),A.add(Dk)}deactivate(){this._elementRef.nativeElement.classList.add(yE)}_handleTransitionEnd=A=>{let i=this._elementRef.nativeElement.classList,o=i.contains(yE);A.propertyName==="opacity"&&o&&i.remove(Dk,yE)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),fk=(()=>{class t{_elementRef=Q(Z);_ngZone=Q(X);open=!1;_notch;constructor(){}ngAfterViewInit(){let A=this._elementRef.nativeElement.querySelector(".mdc-floating-label");A?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(A.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>A.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(A){!this.open||!A?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${A}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,o){if(i&1&&cA(HH,5),i&2){let g;z(g=j())&&(o._notch=g.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,o){i&2&&gA("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:TH,ngContentSelectors:OH,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(i,o){i&1&&(qA(),W(0,"div",1),u(1,"div",2,0),rA(3),m(),W(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),hT={transitionMessages:Qo("transitionMessages",[oi("enter",Ge({opacity:1,transform:"translateY(0%)"})),St("void => enter",[Ge({opacity:0,transform:"translateY(-5px)"}),qt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},aa=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t})}return t})();var Ca=new k("MatFormField"),uT=new k("MAT_FORM_FIELD_DEFAULT_OPTIONS"),wk="fill",DT="auto",pk="fixed",mT="translateY(-50%)",Eo=(()=>{class t{_elementRef=Q(Z);_changeDetectorRef=Q(zA);_dir=Q(Ne);_platform=Q(HA);_idGenerator=Q(ce);_defaults=Q(uT,{optional:!0});_animationMode=Q(ee,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=Yy(ME);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(A){this._hideRequiredMarker=we(A)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||DT}set floatLabel(A){A!==this._floatLabel&&(this._floatLabel=A,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(A){let i=this._appearance,o=A||this._defaults?.appearance||wk;this._appearance=o,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=wk;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||pk}set subscriptSizing(A){this._subscriptSizing=A||this._defaults?.subscriptSizing||pk}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(A){this._hintLabel=A,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(A){this._explicitFormFieldControl=A}_destroyed=new K;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=Q(yA);constructor(){let A=this._defaults;A&&(A.appearance&&(this.appearance=A.appearance),this._hideRequiredMarker=!!A?.hideRequiredMarker,A.color&&(this.color=A.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._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Lo(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(A){let i=this._control,o="mat-mdc-form-field-type-";A&&this._elementRef.nativeElement.classList.remove(o+A.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(o+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(me([void 0,void 0]),oA(()=>[i.errorState,i.userAriaDescribedBy]),wC(),RA(([[g,n],[s,r]])=>g!==s||n!==r)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(DA(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(A=>!A._isText),this._hasTextPrefix=!!this._prefixChildren.find(A=>A._isText),this._hasIconSuffix=!!this._suffixChildren.find(A=>!A._isText),this._hasTextSuffix=!!this._suffixChildren.find(A=>A._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),De(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),tI(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(DA(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()}_hasFloatingLabel=Lo(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(A){let i=this._control?this._control.ngControl:null;return i&&i[A]}_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 A=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&A.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(g=>g.align==="start"):null,o=this._hintChildren?this._hintChildren.find(g=>g.align==="end"):null;i?A.push(i.id):this._hintLabel&&A.push(this._hintLabelId),o&&A.push(o.id)}else this._errorChildren&&A.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(A)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let A=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){A.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let i=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,g=this._iconSuffixContainer?.nativeElement,n=this._textSuffixContainer?.nativeElement,s=i?.getBoundingClientRect().width??0,r=o?.getBoundingClientRect().width??0,I=g?.getBoundingClientRect().width??0,B=n?.getBoundingClientRect().width??0,c=this._dir.value==="rtl"?"-1":"1",D=`${s+r}px`,p=`calc(${c} * (${D} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;A.style.transform=`var(
        --mat-mdc-form-field-label-transform,
        ${mT} translateX(${p})
    )`;let y=s+r+I+B;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${y}px)`)}_isAttachedToDom(){let A=this._elementRef.nativeElement;if(A.getRootNode){let i=A.getRootNode();return i&&i!==A}return document.documentElement.contains(A)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,o,g){if(i&1&&(n0(g,o._labelChild,ME,5),jA(g,aa,5),jA(g,lT,5),jA(g,yk,5),jA(g,cT,5),jA(g,hk,5)),i&2){s0();let n;z(n=j())&&(o._formFieldControl=n.first),z(n=j())&&(o._prefixChildren=n),z(n=j())&&(o._suffixChildren=n),z(n=j())&&(o._errorChildren=n),z(n=j())&&(o._hintChildren=n)}},viewQuery:function(i,o){if(i&1&&(cA(PH,5),cA(ZH,5),cA(qH,5),cA(VH,5),cA(WH,5),cA(uk,5),cA(fk,5),cA(mk,5)),i&2){let g;z(g=j())&&(o._textField=g.first),z(g=j())&&(o._iconPrefixContainer=g.first),z(g=j())&&(o._textPrefixContainer=g.first),z(g=j())&&(o._iconSuffixContainer=g.first),z(g=j())&&(o._textSuffixContainer=g.first),z(g=j())&&(o._floatingLabel=g.first),z(g=j())&&(o._notchedOutline=g.first),z(g=j())&&(o._lineRipple=g.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,o){i&2&&gA("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[KA([{provide:Ca,useExisting:t},{provide:Rk,useExisting:t}])],ngContentSelectors:jH,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(i,o){if(i&1){let g=aA();qA(zH),_(0,AT,1,1,"ng-template",null,0,II),u(2,"div",6,1),x("click",function(s){return H(g),T(o._control.onContainerClick(s))}),_(4,eT,1,0,"div",7),u(5,"div",8),_(6,oT,2,2,"div",9)(7,gT,3,0,"div",10)(8,nT,3,0,"div",11),u(9,"div",12),_(10,rT,1,1,null,13),rA(11),m(),_(12,IT,3,0,"div",14)(13,aT,3,0,"div",15),m(),_(14,CT,1,0,"div",16),m(),u(15,"div",17),_(16,BT,2,1,"div",18)(17,ET,5,2,"div",19),m()}if(i&2){let g;f(2),gA("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),f(2),wA(!o._hasOutline()&&!o._control.disabled?4:-1),f(2),wA(o._hasOutline()?6:-1),f(),wA(o._hasIconPrefix?7:-1),f(),wA(o._hasTextPrefix?8:-1),f(2),wA(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),f(2),wA(o._hasTextSuffix?12:-1),f(),wA(o._hasIconSuffix?13:-1),f(),wA(o._hasOutline()?-1:14),f(),gA("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),f(),wA((g=o._getDisplayedMessages())==="error"?16:g==="hint"?17:-1)}},dependencies:[uk,fk,QI,mk,hk],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--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.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-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .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-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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}@media(forced-colors: 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-sys-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-sys-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-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-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-sys-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-sys-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-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-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-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.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-sys-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-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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-sys-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-sys-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-sys-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, 2px)}.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-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-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-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-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, 1px)}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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, 2px)}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.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, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/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, 56px) / 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-sys-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-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-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-sys-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-sys-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, 0)}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, var(--mat-sys-neutral10))}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, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: 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-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.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)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;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-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-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-sys-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-sys-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-infix:has(textarea[cols]){width:auto}.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:[hT.transitionMessages]},changeDetection:0})}return t})(),To=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,Ps,SA]})}return t})();var fT=["trigger"],wT=["panel"],pT=[[["mat-select-trigger"]],"*"],yT=["mat-select-trigger","*"];function MT(t,e){if(t&1&&(u(0,"span",4),v(1),m()),t&2){let A=b();f(),PA(A.placeholder)}}function RT(t,e){t&1&&rA(0)}function kT(t,e){if(t&1&&(u(0,"span",11),v(1),m()),t&2){let A=b(2);f(),PA(A.triggerValue)}}function FT(t,e){if(t&1&&(u(0,"span",5),_(1,RT,1,0)(2,kT,2,1,"span",11),m()),t&2){let A=b();f(),wA(A.customTrigger?1:2)}}function bT(t,e){if(t&1){let A=aA();u(0,"div",12,1),x("@transformPanel.done",function(o){H(A);let g=b();return T(g._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){H(A);let g=b();return T(g._handleKeydown(o))}),rA(2,1),m()}if(t&2){let A=b();g0("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",A._getPanelTheme(),""),F("ngClass",A.panelClass)("@transformPanel","showing"),IA("id",A.id+"-panel")("aria-multiselectable",A.multiple)("aria-label",A.ariaLabel||null)("aria-labelledby",A._getPanelAriaLabelledby())}}var ST={transformPanelWrap:Qo("transformPanelWrap",[St("* => void",DD("@transformPanel",[uD()],{optional:!0}))]),transformPanel:Qo("transformPanel",[oi("void",Ge({opacity:0,transform:"scale(1, 0.8)"})),St("void => showing",qt("120ms cubic-bezier(0, 0, 0.2, 1)",Ge({opacity:1,transform:"scale(1, 1)"}))),St("* => void",qt("100ms linear",Ge({opacity:0})))])};var kk=new k("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.reposition()}});function NT(t){return()=>t.scrollStrategies.reposition()}var GT=new k("MAT_SELECT_CONFIG"),vT={provide:kk,deps:[Pe],useFactory:NT},LT=new k("MatSelectTrigger"),mD=class{source;value;constructor(e,A){this.source=e,this.value=A}},ir=(()=>{class t{_viewportRuler=Q(Ai);_changeDetectorRef=Q(zA);_elementRef=Q(Z);_dir=Q(Ne,{optional:!0});_idGenerator=Q(ce);_parentFormField=Q(Ca,{optional:!0});ngControl=Q(pi,{self:!0,optional:!0});_liveAnnouncer=Q(CE);_defaultOptions=Q(GT,{optional:!0});_initialized=new K;options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(A){let i=this.options.toArray()[A];if(i){let o=this.panel.nativeElement,g=XR(A,this.options,this.optionGroups),n=i._getHostElement();A===0&&g===1?o.scrollTop=0:o.scrollTop=$R(n.offsetTop,n.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(A){return new mD(this,A)}_scrollStrategyFactory=Q(kk);_panelOpen=!1;_compareWith=(A,i)=>A===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new K;_errorStateTracker;stateChanges=new K;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new K;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(A){this._hideSingleSelectionIndicator=A,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(A){this._placeholder=A,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Ms.required)??!1}set required(A){this._required=A,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(A){this._selectionModel,this._multiple=A}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(A){this._compareWith=A,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(A){this._assignValue(A)&&this._onChange(A)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(A){this._errorStateTracker.matcher=A}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(A){this._id=A||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(A){this._errorStateTracker.errorState=A}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=Yi(()=>{let A=this.options;return A?A.changes.pipe(me(A),re(()=>De(...A.map(i=>i.onSelectionChange)))):this._initialized.pipe(re(()=>this.optionSelectionChanges))});openedChange=new $;_openedStream=this.openedChange.pipe(RA(A=>A),oA(()=>{}));_closedStream=this.openedChange.pipe(RA(A=>!A),oA(()=>{}));selectionChange=new $;valueChange=new $;constructor(){let A=Q(EE),i=Q(GI,{optional:!0}),o=Q(vI,{optional:!0}),g=Q(new Dt("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new qs(A,this.ngControl,o,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=g==null?0:parseInt(g)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ar(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Bi(),DA(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(DA(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(DA(this._destroy)).subscribe(A=>{A.added.forEach(i=>i.select()),A.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(me(null),DA(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let A=this._getTriggerAriaLabelledby(),i=this.ngControl;if(A!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=A,A?o.setAttribute("aria-labelledby",A):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(A){(A.disabled||A.userAriaDescribedBy)&&this.stateChanges.next(),A.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())}_trackedModal=null;_applyModalPanelOwnership(){let A=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!A)return;let i=`${this.id}-panel`;this._trackedModal&&IE(this._trackedModal,"aria-owns",i),Zu(A,"aria-owns",i),this._trackedModal=A}_clearFromModal(){if(!this._trackedModal)return;let A=`${this.id}-panel`;IE(this._trackedModal,"aria-owns",A),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(A){this._assignValue(A)}registerOnChange(A){this._onChange=A}registerOnTouched(A){this._onTouched=A}setDisabledState(A){this.disabled=A,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 A=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&A.reverse(),A.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(A){this.disabled||(this.panelOpen?this._handleOpenKeydown(A):this._handleClosedKeydown(A))}_handleClosedKeydown(A){let i=A.keyCode,o=i===40||i===38||i===37||i===39,g=i===13||i===32,n=this._keyManager;if(!n.isTyping()&&g&&!Oe(A)||(this.multiple||A.altKey)&&o)A.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;n.onKeydown(A);let r=this.selected;r&&s!==r&&this._liveAnnouncer.announce(r.viewValue,1e4)}}_handleOpenKeydown(A){let i=this._keyManager,o=A.keyCode,g=o===40||o===38,n=i.isTyping();if(g&&A.altKey)A.preventDefault(),this.close();else if(!n&&(o===13||o===32)&&i.activeItem&&!Oe(A))A.preventDefault(),i.activeItem._selectViaInteraction();else if(!n&&this._multiple&&o===65&&A.ctrlKey){A.preventDefault();let s=this.options.some(r=>!r.disabled&&!r.selected);this.options.forEach(r=>{r.disabled||(s?r.select():r.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(A),this._multiple&&g&&A.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(de(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(A){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&A)Array.isArray(A),A.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(A);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(A){let i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,A)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(A){return A!==this._value||this._multiple&&Array.isArray(A)?(this.options&&this._setSelectionByValue(A),this._value=A,!0):!1}_skipPredicate=A=>this.panelOpen?!1:A.disabled;_getOverlayWidth(A){return this.panelWidth==="auto"?(A instanceof Ia?A.elementRef:A||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let A of this.options)A._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new gE(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 A=De(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(DA(A)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),De(...this.options.map(i=>i._stateChanges)).pipe(DA(A)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(A,i){let o=this._selectionModel.isSelected(A);!this.canSelectNullableOptions&&A.value==null&&!this._multiple?(A.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(A.value)):(o!==A.selected&&(A.selected?this._selectionModel.select(A):this._selectionModel.deselect(A)),i&&this._keyManager.setActiveItem(A),this.multiple&&(this._sortValues(),i&&this.focus())),o!==this._selectionModel.isSelected(A)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let A=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,A):A.indexOf(i)-A.indexOf(o)),this.stateChanges.next()}}_propagateChanges(A){let i;this.multiple?i=this.selected.map(o=>o.value):i=this.selected?this.selected.value:A,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let A=-1;for(let i=0;i<this.options.length;i++)if(!this.options.get(i).disabled){A=i;break}this._keyManager.setActiveItem(A)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(A){this._elementRef.nativeElement.focus(A)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let A=this._parentFormField?.getLabelId()||null,i=A?A+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:A}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let A=this._parentFormField?.getLabelId(),i=(A?A+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(A){this.openedChange.emit(A)}setDescribedByIds(A){A.length?this._elementRef.nativeElement.setAttribute("aria-describedby",A.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-select"]],contentQueries:function(i,o,g){if(i&1&&(jA(g,LT,5),jA(g,hg,5),jA(g,oD,5)),i&2){let n;z(n=j())&&(o.customTrigger=n.first),z(n=j())&&(o.options=n),z(n=j())&&(o.optionGroups=n)}},viewQuery:function(i,o){if(i&1&&(cA(fT,5),cA(wT,5),cA(dD,5)),i&2){let g;z(g=j())&&(o.trigger=g.first),z(g=j())&&(o.panel=g.first),z(g=j())&&(o._overlayDir=g.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,o){i&1&&x("keydown",function(n){return o._handleKeydown(n)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),i&2&&(IA("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),gA("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",iA],disableRipple:[2,"disableRipple","disableRipple",iA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?0:Fe(A)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",iA],placeholder:"placeholder",required:[2,"required","required",iA],multiple:[2,"multiple","multiple",iA],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",iA],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Fe],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",iA]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[KA([{provide:aa,useExisting:t},{provide:iD,useExisting:t}]),VA],ngContentSelectors:yT,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(i,o){if(i&1){let g=aA();qA(pT),u(0,"div",2,0),x("click",function(){return H(g),T(o.open())}),u(3,"div",3),_(4,MT,2,1,"span",4)(5,FT,3,1,"span",5),m(),u(6,"div",6)(7,"div",7),at(),u(8,"svg",8),W(9,"path",9),m()()()(),_(10,bT,3,9,"ng-template",10),x("backdropClick",function(){return H(g),T(o.close())})("attach",function(){return H(g),T(o._onAttached())})("detach",function(){return H(g),T(o.close())})}if(i&2){let g=He(1);f(3),IA("id",o._valueId),f(),wA(o.empty?4:5),f(6),F("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||g)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Ia,dD,Yt],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-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-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-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .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-sys-surface-container))}@media(forced-colors: 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-sys-on-surface-variant))}.mat-form-field-no-animations .mat-mdc-select-placeholder,._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, translateY(-8px))}'],encapsulation:2,data:{animation:[ST.transformPanel]},changeDetection:0})}return t})();var kE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({providers:[vT],imports:[wn,gD,SA,Yo,To,gD,SA]})}return t})();var KT=["tooltip"],Nk=20;var Gk=new k("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.reposition({scrollThrottle:Nk})}});function UT(t){return()=>t.scrollStrategies.reposition({scrollThrottle:Nk})}var _T={provide:Gk,deps:[Pe],useFactory:UT};function xT(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var YT=new k("mat-tooltip-default-options",{providedIn:"root",factory:xT});var bk="tooltip-panel",Sk=Co({passive:!0}),JT=8,HT=8,TT=24,OT=200,vk=(()=>{class t{_elementRef=Q(Z);_ngZone=Q(X);_platform=Q(HA);_ariaDescriber=Q(JR);_focusMonitor=Q(Xt);_dir=Q(Ne);_injector=Q(yA);_defaultOptions=Q(YT,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=PT;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(A){A!==this._position&&(this._position=A,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(A){this._positionAtOrigin=we(A),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(A){let i=we(A);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(A){this._showDelay=Zt(A)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(A){this._hideDelay=Zt(A),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(A){let i=this._message;this._message=A!=null?String(A).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(A){this._tooltipClass=A,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new K;_isDestroyed=!1;constructor(){let A=this._defaultOptions;A&&(this._showDelay=A.showDelay,this._hideDelay=A.hideDelay,A.position&&(this.position=A.position),A.positionAtOrigin&&(this.positionAtOrigin=A.positionAtOrigin),A.touchGestures&&(this.touchGestures=A.touchGestures),A.tooltipClass&&(this.tooltipClass=A.tooltipClass)),this._viewportMargin=JT}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(DA(this._destroyed)).subscribe(A=>{A?A==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let A=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{A.removeEventListener(i,o,Sk)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(A,this.message,"tooltip"),this._focusMonitor.stopMonitoring(A)}show(A=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(i);this._detach(),this._portal=this._portal||new Fi(this._tooltipComponent,this._injector.get(Ce));let g=this._tooltipInstance=o.attach(this._portal).instance;g._triggerElement=this._elementRef.nativeElement,g._mouseLeaveHideDelay=this._hideDelay,g.afterHidden().pipe(DA(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),g.show(A)}hide(A=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(A):(i._cancelPendingAnimations(),this._detach()))}toggle(A){this._isTooltipVisible()?this.hide():this.show(void 0,A)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(A){if(this._overlayRef){let n=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!A)&&n._origin instanceof Z)return this._overlayRef;this._detach()}let i=this._injector.get(ug).getAncestorScrollContainers(this._elementRef),o=this._injector.get(Pe),g=o.position().flexibleConnectedTo(this.positionAtOrigin?A||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return g.positionChanges.pipe(DA(this._destroyed)).subscribe(n=>{this._updateCurrentPositionClass(n.connectionPair),this._tooltipInstance&&n.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=o.create({direction:this._dir,positionStrategy:g,panelClass:`${this._cssClassPrefix}-${bk}`,scrollStrategy:this._injector.get(Gk)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(DA(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(DA(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(DA(this._destroyed)).subscribe(n=>{this._isTooltipVisible()&&n.keyCode===27&&!Oe(n)&&(n.preventDefault(),n.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(DA(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(A){let i=A.getConfig().positionStrategy,o=this._getOrigin(),g=this._getOverlayPosition();i.withPositions([this._addOffset(R(R({},o.main),g.main)),this._addOffset(R(R({},o.fallback),g.fallback))])}_addOffset(A){let i=HT,o=!this._dir||this._dir.value=="ltr";return A.originY==="top"?A.offsetY=-i:A.originY==="bottom"?A.offsetY=i:A.originX==="start"?A.offsetX=o?-i:i:A.originX==="end"&&(A.offsetX=o?i:-i),A}_getOrigin(){let A=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"||i=="below"?o={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&A||i=="right"&&!A?o={originX:"start",originY:"center"}:(i=="after"||i=="right"&&A||i=="left"&&!A)&&(o={originX:"end",originY:"center"});let{x:g,y:n}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:g,originY:n}}}_getOverlayPosition(){let A=!this._dir||this._dir.value=="ltr",i=this.position,o;i=="above"?o={overlayX:"center",overlayY:"bottom"}:i=="below"?o={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&A||i=="right"&&!A?o={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&A||i=="left"&&!A)&&(o={overlayX:"start",overlayY:"center"});let{x:g,y:n}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:g,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ke(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(A){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=A,this._tooltipInstance._markForCheck())}_invertPosition(A,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):A==="end"?A="start":A==="start"&&(A="end"),{x:A,y:i}}_updateCurrentPositionClass(A){let{overlayY:i,originX:o,originY:g}=A,n;if(i==="center"?this._dir&&this._dir.value==="rtl"?n=o==="end"?"left":"right":n=o==="start"?"left":"right":n=i==="bottom"&&g==="top"?"above":"below",n!==this._currentPosition){let s=this._overlayRef;if(s){let r=`${this._cssClassPrefix}-${bk}-`;s.removePanelClass(r+this._currentPosition),s.addPanelClass(r+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",A=>{this._setupPointerExitEventsIfNeeded();let i;A.x!==void 0&&A.y!==void 0&&(i=A),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",A=>{let i=A.targetTouches?.[0],o=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let g=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??g)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let A=[];if(this._platformSupportsMouseEvents())A.push(["mouseleave",i=>{let o=i.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};A.push(["touchend",i],["touchcancel",i])}this._addListeners(A),this._passiveListeners.push(...A)}_addListeners(A){A.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,Sk)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(A){if(this._isTooltipVisible()){let i=this._injector.get(lA).elementFromPoint(A.clientX,A.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let A=this.touchGestures;if(A!=="off"){let i=this._elementRef.nativeElement,o=i.style;(A==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(A==="on"||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(A){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,A,"tooltip"),this._isDestroyed||Ke({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,o){i&2&&gA("mat-mdc-tooltip-disabled",o.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"]})}return t})(),PT=(()=>{class t{_changeDetectorRef=Q(zA);_elementRef=Q(Z);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new K;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let A=Q(ee,{optional:!0});this._animationsDisabled=A==="NoopAnimations"}show(A){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},A)}hide(A){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},A)}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:A}){(!A||!this._triggerElement.contains(A))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let A=this._elementRef.nativeElement.getBoundingClientRect();return A.height>TT&&A.width>=OT}_handleAnimationEnd({animationName:A}){(A===this._showAnimation||A===this._hideAnimation)&&this._finalizeAnimation(A===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(A){A?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(A){let i=this._tooltip.nativeElement,o=this._showAnimation,g=this._hideAnimation;if(i.classList.remove(A?g:o),i.classList.add(A?o:g),this._isVisible!==A&&(this._isVisible=A,this._changeDetectorRef.markForCheck()),A&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(i);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}A&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(A))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,o){if(i&1&&cA(KT,7),i&2){let g;z(g=j())&&(o._tooltip=g.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,o){i&1&&x("mouseleave",function(n){return o._handleMouseLeave(n)})},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(i,o){if(i&1){let g=aA();u(0,"div",1,0),x("animationend",function(s){return H(g),T(o._handleAnimationEnd(s))}),u(2,"div",2),v(3),m()()}i&2&&(gA("mdc-tooltip--multiline",o._isMultiline),F("ngClass",o.tooltipClass),f(3),PA(o.message))},dependencies:[Yt],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-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-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{line-height:normal}.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 t})();var Lk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({providers:[_T],imports:[zu,wn,SA,SA,Yo]})}return t})();function ZT(t,e){if(t&1&&(u(0,"mat-option",17),v(1),m()),t&2){let A=e.$implicit;F("value",A),f(),te(" ",A," ")}}function qT(t,e){if(t&1){let A=aA();u(0,"mat-form-field",14)(1,"mat-select",16,0),x("selectionChange",function(o){H(A);let g=b(2);return T(g._changePageSize(o.value))}),tn(3,ZT,2,2,"mat-option",17,en),m(),u(5,"div",18),x("click",function(){H(A);let o=He(2);return T(o.open())}),m()()}if(t&2){let A=b(2);F("appearance",A._formFieldAppearance)("color",A.color),f(),F("value",A.pageSize)("disabled",A.disabled)("aria-labelledby",A._pageSizeLabelId)("panelClass",A.selectConfig.panelClass||"")("disableOptionCentering",A.selectConfig.disableOptionCentering),f(2),on(A._displayedPageSizeOptions)}}function VT(t,e){if(t&1&&(u(0,"div",15),v(1),m()),t&2){let A=b(2);f(),PA(A.pageSize)}}function WT(t,e){if(t&1&&(u(0,"div",3)(1,"div",13),v(2),m(),_(3,qT,6,7,"mat-form-field",14)(4,VT,2,1,"div",15),m()),t&2){let A=b();f(),IA("id",A._pageSizeLabelId),f(),te(" ",A._intl.itemsPerPageLabel," "),f(),wA(A._displayedPageSizeOptions.length>1?3:-1),f(),wA(A._displayedPageSizeOptions.length<=1?4:-1)}}function zT(t,e){if(t&1){let A=aA();u(0,"button",19),x("click",function(){H(A);let o=b();return T(o._buttonClicked(0,o._previousButtonsDisabled()))}),at(),u(1,"svg",8),W(2,"path",20),m()()}if(t&2){let A=b();F("matTooltip",A._intl.firstPageLabel)("matTooltipDisabled",A._previousButtonsDisabled())("disabled",A._previousButtonsDisabled()),IA("aria-label",A._intl.firstPageLabel)}}function jT(t,e){if(t&1){let A=aA();u(0,"button",21),x("click",function(){H(A);let o=b();return T(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),at(),u(1,"svg",8),W(2,"path",22),m()()}if(t&2){let A=b();F("matTooltip",A._intl.lastPageLabel)("matTooltipDisabled",A._nextButtonsDisabled())("disabled",A._nextButtonsDisabled()),IA("aria-label",A._intl.lastPageLabel)}}var yn=(()=>{class t{changes=new K;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(A,i,o)=>{if(o==0||i==0)return`0 of ${o}`;o=Math.max(o,0);let g=A*i,n=g<o?Math.min(g+i,o):g+i;return`${g+1} \u2013 ${n} of ${o}`};static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function XT(t){return t||new yn}var $T={provide:yn,deps:[[new zg,new zr,yn]],useFactory:XT},AO=50;var eO=new k("MAT_PAGINATOR_DEFAULT_OPTIONS"),fD=(()=>{class t{_intl=Q(yn);_changeDetectorRef=Q(zA);_formFieldAppearance;_pageSizeLabelId=Q(ce).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new Ii(1);color;get pageIndex(){return this._pageIndex}set pageIndex(A){this._pageIndex=Math.max(A||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(A){this._length=A||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(A){this._pageSize=Math.max(A||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(A){this._pageSizeOptions=(A||[]).map(i=>Fe(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new $;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let A=this._intl,i=Q(eO,{optional:!0});if(this._intlChanges=A.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:o,pageSizeOptions:g,hidePageSize:n,showFirstLastButtons:s}=i;o!=null&&(this._pageSize=o),g!=null&&(this._pageSizeOptions=g),n!=null&&(this.hidePageSize=n),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let A=this.getNumberOfPages()-1;return this.pageIndex<A&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(A){let i=this.pageIndex*this.pageSize,o=this.pageIndex;this.pageIndex=Math.floor(i/A)||0,this.pageSize=A,this._emitPageEvent(o)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:AO),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((A,i)=>A-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(A){this.page.emit({previousPageIndex:A,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(A){let i=this.pageIndex;A!==i&&(this.pageIndex=A,this._emitPageEvent(i))}_buttonClicked(A,i){i||this._navigate(A)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Fe],length:[2,"length","length",Fe],pageSize:[2,"pageSize","pageSize",Fe],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",iA],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",iA],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",iA]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:12,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,o){i&1&&(u(0,"div",1)(1,"div",2),_(2,WT,5,4,"div",3),u(3,"div",4)(4,"div",5),v(5),m(),_(6,zT,3,4,"button",6),u(7,"button",7),x("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),at(),u(8,"svg",8),W(9,"path",9),m()(),Xg(),u(10,"button",10),x("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),at(),u(11,"svg",8),W(12,"path",11),m()(),_(13,jT,3,4,"button",12),m()()()),i&2&&(f(2),wA(o.hidePageSize?-1:2),f(3),te(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),f(),wA(o.showFirstLastButtons?6:-1),f(),F("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled()),IA("aria-label",o._intl.previousPageLabel),f(3),F("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled()),IA("aria-label",o._intl.nextPageLabel),f(3),wA(o.showFirstLastButtons?13:-1))},dependencies:[Eo,ir,hg,hE,vk],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}"],encapsulation:2,changeDetection:0})}return t})(),Kk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({providers:[$T],imports:[xo,kE,Lk,fD]})}return t})();var iO=function(){var t,e,A,i,o,g,n,s,r,I,B,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=new Promise((a,C)=>{t=a}),h=a=>console.log(a);function p(a){throw a}function y(){var a=B.buffer;A=new Int8Array(a),i=new Int16Array(a),g=new Uint8Array(a),o=new Int32Array(a),n=new Uint32Array(a),s=new Float32Array(a),r=new Float64Array(a),I=new BigInt64Array(a),new BigUint64Array(a)}c.agerrMessages=[],c.stderrMessages=[],e=a=>c.stderrMessages.push(a);var L=typeof TextDecoder<"u"?new TextDecoder:void 0,P=function(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;for(var l=C+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN),d=C;a[d]&&!(d>=l);)++d;if(d-C>16&&a.buffer&&L)return L.decode(a.subarray(C,d));for(var w="";C<d;){var M=a[C++];if(128&M){var S=63&a[C++];if((224&M)!=192){var G=63&a[C++];if((M=(240&M)==224?(15&M)<<12|S<<6|G:(7&M)<<18|S<<12|G<<6|63&a[C++])<65536)w+=String.fromCharCode(M);else{var sA=M-65536;w+=String.fromCharCode(55296|sA>>10,56320|1023&sA)}}else w+=String.fromCharCode((31&M)<<6|S)}else w+=String.fromCharCode(M)}return w},mA=(a,C)=>a?P(g,a,C):"";class _A{constructor(C){this.excPtr=C,this.ptr=C-24}set_type(C){n[this.ptr+4>>2]=C}get_type(){return n[this.ptr+4>>2]}set_destructor(C){n[this.ptr+8>>2]=C}get_destructor(){return n[this.ptr+8>>2]}set_caught(C){C=C?1:0,A[this.ptr+12]=C}get_caught(){return A[this.ptr+12]!=0}set_rethrown(C){C=C?1:0,A[this.ptr+13]=C}get_rethrown(){return A[this.ptr+13]!=0}init(C,l){this.set_adjusted_ptr(0),this.set_type(C),this.set_destructor(l)}set_adjusted_ptr(C){n[this.ptr+16>>2]=C}get_adjusted_ptr(){return n[this.ptr+16>>2]}}var fA={isAbs:a=>a.charAt(0)==="/",splitPath:a=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1),normalizeArray:(a,C)=>{for(var l=0,d=a.length-1;d>=0;d--){var w=a[d];w==="."?a.splice(d,1):w===".."?(a.splice(d,1),l++):l&&(a.splice(d,1),l--)}if(C)for(;l;l--)a.unshift("..");return a},normalize:a=>{var C=fA.isAbs(a),l=a.substr(-1)==="/";return(a=fA.normalizeArray(a.split("/").filter(d=>!!d),!C).join("/"))||C||(a="."),a&&l&&(a+="/"),(C?"/":"")+a},dirname:a=>{var C=fA.splitPath(a),l=C[0],d=C[1];return l||d?(d&&(d=d.substr(0,d.length-1)),l+d):"."},basename:a=>{if(a==="/")return"/";var C=(a=(a=fA.normalize(a)).replace(/\/$/,"")).lastIndexOf("/");return C===-1?a:a.substr(C+1)},join:function(){for(var a=arguments.length,C=new Array(a),l=0;l<a;l++)C[l]=arguments[l];return fA.normalize(C.join("/"))},join2:(a,C)=>fA.normalize(a+"/"+C)},Qt=a=>(Qt=(()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return C=>crypto.getRandomValues(C);p("initRandomDevice")})())(a),ue={resolve:function(){for(var a="",C=!1,l=arguments.length-1;l>=-1&&!C;l--){var d=l>=0?l<0||arguments.length<=l?void 0:arguments[l]:E.cwd();if(typeof d!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!d)return"";a=d+"/"+a,C=fA.isAbs(d)}return(C?"/":"")+(a=fA.normalizeArray(a.split("/").filter(w=>!!w),!C).join("/"))||"."},relative:(a,C)=>{function l(FA){for(var MA=0;MA<FA.length&&FA[MA]==="";MA++);for(var dA=FA.length-1;dA>=0&&FA[dA]==="";dA--);return MA>dA?[]:FA.slice(MA,dA-MA+1)}a=ue.resolve(a).substr(1),C=ue.resolve(C).substr(1);for(var d=l(a.split("/")),w=l(C.split("/")),M=Math.min(d.length,w.length),S=M,G=0;G<M;G++)if(d[G]!==w[G]){S=G;break}var sA=[];for(G=S;G<d.length;G++)sA.push("..");return(sA=sA.concat(w.slice(S))).join("/")}},pe=[],le=a=>{for(var C=0,l=0;l<a.length;++l){var d=a.charCodeAt(l);d<=127?C++:d<=2047?C+=2:d>=55296&&d<=57343?(C+=4,++l):C+=3}return C},ni=(a,C,l,d)=>{if(!(d>0))return 0;for(var w=l,M=l+d-1,S=0;S<a.length;++S){var G=a.charCodeAt(S);if(G>=55296&&G<=57343&&(G=65536+((1023&G)<<10)|1023&a.charCodeAt(++S)),G<=127){if(l>=M)break;C[l++]=G}else if(G<=2047){if(l+1>=M)break;C[l++]=192|G>>6,C[l++]=128|63&G}else if(G<=65535){if(l+2>=M)break;C[l++]=224|G>>12,C[l++]=128|G>>6&63,C[l++]=128|63&G}else{if(l+3>=M)break;C[l++]=240|G>>18,C[l++]=128|G>>12&63,C[l++]=128|G>>6&63,C[l++]=128|63&G}}return C[l]=0,l-w};function fo(a,C,l){var d=l>0?l:le(a)+1,w=new Array(d),M=ni(a,w,0,w.length);return C&&(w.length=M),w}var Ki={ttys:[],init(){},shutdown(){},register(a,C){Ki.ttys[a]={input:[],output:[],ops:C},E.registerDevice(a,Ki.stream_ops)},stream_ops:{open(a){var C=Ki.ttys[a.node.rdev];if(!C)throw new E.ErrnoError(43);a.tty=C,a.seekable=!1},close(a){a.tty.ops.fsync(a.tty)},fsync(a){a.tty.ops.fsync(a.tty)},read(a,C,l,d,w){if(!a.tty||!a.tty.ops.get_char)throw new E.ErrnoError(60);for(var M=0,S=0;S<d;S++){var G;try{G=a.tty.ops.get_char(a.tty)}catch{throw new E.ErrnoError(29)}if(G===void 0&&M===0)throw new E.ErrnoError(6);if(G==null)break;M++,C[l+S]=G}return M&&(a.node.timestamp=Date.now()),M},write(a,C,l,d,w){if(!a.tty||!a.tty.ops.put_char)throw new E.ErrnoError(60);try{for(var M=0;M<d;M++)a.tty.ops.put_char(a.tty,C[l+M])}catch{throw new E.ErrnoError(29)}return d&&(a.node.timestamp=Date.now()),M}},default_tty_ops:{get_char:a=>(()=>{if(!pe.length){var C=null;if(typeof window<"u"&&typeof window.prompt=="function"&&(C=window.prompt("Input: "))!==null&&(C+=`
`),!C)return null;pe=fo(C,!0)}return pe.shift()})(),put_char(a,C){C===null||C===10?(h(P(a.output)),a.output=[]):C!=0&&a.output.push(C)},fsync(a){a.output&&a.output.length>0&&(h(P(a.output)),a.output=[])},ioctl_tcgets:a=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(a,C,l)=>0,ioctl_tiocgwinsz:a=>[24,80]},default_tty1_ops:{put_char(a,C){C===null||C===10?(e(P(a.output)),a.output=[]):C!=0&&a.output.push(C)},fsync(a){a.output&&a.output.length>0&&(e(P(a.output)),a.output=[])}}},Ui=(a,C)=>Math.ceil(a/C)*C,Kn=a=>{a=Ui(a,65536);var C=Ue(65536,a);return C&&((l,d)=>{g.fill(0,l,l+d)})(C,a),C},UA={ops_table:null,mount:a=>UA.createNode(null,"/",16895,0),createNode(a,C,l,d){if(E.isBlkdev(l)||E.isFIFO(l))throw new E.ErrnoError(63);UA.ops_table||={dir:{node:{getattr:UA.node_ops.getattr,setattr:UA.node_ops.setattr,lookup:UA.node_ops.lookup,mknod:UA.node_ops.mknod,rename:UA.node_ops.rename,unlink:UA.node_ops.unlink,rmdir:UA.node_ops.rmdir,readdir:UA.node_ops.readdir,symlink:UA.node_ops.symlink},stream:{llseek:UA.stream_ops.llseek}},file:{node:{getattr:UA.node_ops.getattr,setattr:UA.node_ops.setattr},stream:{llseek:UA.stream_ops.llseek,read:UA.stream_ops.read,write:UA.stream_ops.write,allocate:UA.stream_ops.allocate,mmap:UA.stream_ops.mmap,msync:UA.stream_ops.msync}},link:{node:{getattr:UA.node_ops.getattr,setattr:UA.node_ops.setattr,readlink:UA.node_ops.readlink},stream:{}},chrdev:{node:{getattr:UA.node_ops.getattr,setattr:UA.node_ops.setattr},stream:E.chrdev_stream_ops}};var w=E.createNode(a,C,l,d);return E.isDir(w.mode)?(w.node_ops=UA.ops_table.dir.node,w.stream_ops=UA.ops_table.dir.stream,w.contents={}):E.isFile(w.mode)?(w.node_ops=UA.ops_table.file.node,w.stream_ops=UA.ops_table.file.stream,w.usedBytes=0,w.contents=null):E.isLink(w.mode)?(w.node_ops=UA.ops_table.link.node,w.stream_ops=UA.ops_table.link.stream):E.isChrdev(w.mode)&&(w.node_ops=UA.ops_table.chrdev.node,w.stream_ops=UA.ops_table.chrdev.stream),w.timestamp=Date.now(),a&&(a.contents[C]=w,a.timestamp=w.timestamp),w},getFileDataAsTypedArray:a=>a.contents?a.contents.subarray?a.contents.subarray(0,a.usedBytes):new Uint8Array(a.contents):new Uint8Array(0),expandFileStorage(a,C){var l=a.contents?a.contents.length:0;if(!(l>=C)){C=Math.max(C,l*(l<1048576?2:1.125)>>>0),l!=0&&(C=Math.max(C,256));var d=a.contents;a.contents=new Uint8Array(C),a.usedBytes>0&&a.contents.set(d.subarray(0,a.usedBytes),0)}},resizeFileStorage(a,C){if(a.usedBytes!=C)if(C==0)a.contents=null,a.usedBytes=0;else{var l=a.contents;a.contents=new Uint8Array(C),l&&a.contents.set(l.subarray(0,Math.min(C,a.usedBytes))),a.usedBytes=C}},node_ops:{getattr(a){var C={};return C.dev=E.isChrdev(a.mode)?a.id:1,C.ino=a.id,C.mode=a.mode,C.nlink=1,C.uid=0,C.gid=0,C.rdev=a.rdev,E.isDir(a.mode)?C.size=4096:E.isFile(a.mode)?C.size=a.usedBytes:E.isLink(a.mode)?C.size=a.link.length:C.size=0,C.atime=new Date(a.timestamp),C.mtime=new Date(a.timestamp),C.ctime=new Date(a.timestamp),C.blksize=4096,C.blocks=Math.ceil(C.size/C.blksize),C},setattr(a,C){C.mode!==void 0&&(a.mode=C.mode),C.timestamp!==void 0&&(a.timestamp=C.timestamp),C.size!==void 0&&UA.resizeFileStorage(a,C.size)},lookup(a,C){throw E.genericErrors[44]},mknod:(a,C,l,d)=>UA.createNode(a,C,l,d),rename(a,C,l){if(E.isDir(a.mode)){var d;try{d=E.lookupNode(C,l)}catch{}if(d)for(var w in d.contents)throw new E.ErrnoError(55)}delete a.parent.contents[a.name],a.parent.timestamp=Date.now(),a.name=l,C.contents[l]=a,C.timestamp=a.parent.timestamp},unlink(a,C){delete a.contents[C],a.timestamp=Date.now()},rmdir(a,C){var l=E.lookupNode(a,C);for(var d in l.contents)throw new E.ErrnoError(55);delete a.contents[C],a.timestamp=Date.now()},readdir(a){var C=[".",".."];for(var l of Object.keys(a.contents))C.push(l);return C},symlink(a,C,l){var d=UA.createNode(a,C,41471,0);return d.link=l,d},readlink(a){if(!E.isLink(a.mode))throw new E.ErrnoError(28);return a.link}},stream_ops:{read(a,C,l,d,w){var M=a.node.contents;if(w>=a.node.usedBytes)return 0;var S=Math.min(a.node.usedBytes-w,d);if(S>8&&M.subarray)C.set(M.subarray(w,w+S),l);else for(var G=0;G<S;G++)C[l+G]=M[w+G];return S},write(a,C,l,d,w,M){if(C.buffer===A.buffer&&(M=!1),!d)return 0;var S=a.node;if(S.timestamp=Date.now(),C.subarray&&(!S.contents||S.contents.subarray)){if(M)return S.contents=C.subarray(l,l+d),S.usedBytes=d,d;if(S.usedBytes===0&&w===0)return S.contents=C.slice(l,l+d),S.usedBytes=d,d;if(w+d<=S.usedBytes)return S.contents.set(C.subarray(l,l+d),w),d}if(UA.expandFileStorage(S,w+d),S.contents.subarray&&C.subarray)S.contents.set(C.subarray(l,l+d),w);else for(var G=0;G<d;G++)S.contents[w+G]=C[l+G];return S.usedBytes=Math.max(S.usedBytes,w+d),d},llseek(a,C,l){var d=C;if(l===1?d+=a.position:l===2&&E.isFile(a.node.mode)&&(d+=a.node.usedBytes),d<0)throw new E.ErrnoError(28);return d},allocate(a,C,l){UA.expandFileStorage(a.node,C+l),a.node.usedBytes=Math.max(a.node.usedBytes,C+l)},mmap(a,C,l,d,w){if(!E.isFile(a.node.mode))throw new E.ErrnoError(43);var M,S,G=a.node.contents;if(2&w||!G||G.buffer!==A.buffer){if(S=!0,!(M=Kn(C)))throw new E.ErrnoError(48);G&&((l>0||l+C<G.length)&&(G=G.subarray?G.subarray(l,l+C):Array.prototype.slice.call(G,l,l+C)),A.set(G,M))}else S=!1,M=G.byteOffset;return{ptr:M,allocated:S}},msync:(a,C,l,d,w)=>(UA.stream_ops.write(a,C,0,d,l,!1),0)}},Un=(a,C)=>{var l=0;return a&&(l|=365),C&&(l|=146),l},E={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(a){this.name="ErrnoError",this.errno=a}},genericErrors:{},filesystems:null,syncFSRequests:0,FSStream:class{constructor(){this.shared={}}get object(){return this.node}set object(a){this.node=a}get isRead(){return(2097155&this.flags)!=1}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(a){this.shared.flags=a}get position(){return this.shared.position}set position(a){this.shared.position=a}},FSNode:class{constructor(a,C,l,d){a||(a=this),this.parent=a,this.mount=a.mount,this.mounted=null,this.id=E.nextInode++,this.name=C,this.mode=l,this.node_ops={},this.stream_ops={},this.rdev=d,this.readMode=365,this.writeMode=146}get read(){return(this.mode&this.readMode)===this.readMode}set read(a){a?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(a){a?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return E.isDir(this.mode)}get isDevice(){return E.isChrdev(this.mode)}},lookupPath(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(a=ue.resolve(a)))return{path:"",node:null};if(C=Object.assign({follow_mount:!0,recurse_count:0},C),C.recurse_count>8)throw new E.ErrnoError(32);for(var l=a.split("/").filter(FA=>!!FA),d=E.root,w="/",M=0;M<l.length;M++){var S=M===l.length-1;if(S&&C.parent)break;if(d=E.lookupNode(d,l[M]),w=fA.join2(w,l[M]),E.isMountpoint(d)&&(!S||S&&C.follow_mount)&&(d=d.mounted.root),!S||C.follow)for(var G=0;E.isLink(d.mode);){var sA=E.readlink(w);if(w=ue.resolve(fA.dirname(w),sA),d=E.lookupPath(w,{recurse_count:C.recurse_count+1}).node,G++>40)throw new E.ErrnoError(32)}}return{path:w,node:d}},getPath(a){for(var C;;){if(E.isRoot(a)){var l=a.mount.mountpoint;return C?l[l.length-1]!=="/"?`${l}/${C}`:l+C:l}C=C?`${a.name}/${C}`:a.name,a=a.parent}},hashName(a,C){for(var l=0,d=0;d<C.length;d++)l=(l<<5)-l+C.charCodeAt(d)|0;return(a+l>>>0)%E.nameTable.length},hashAddNode(a){var C=E.hashName(a.parent.id,a.name);a.name_next=E.nameTable[C],E.nameTable[C]=a},hashRemoveNode(a){var C=E.hashName(a.parent.id,a.name);if(E.nameTable[C]===a)E.nameTable[C]=a.name_next;else for(var l=E.nameTable[C];l;){if(l.name_next===a){l.name_next=a.name_next;break}l=l.name_next}},lookupNode(a,C){var l=E.mayLookup(a);if(l)throw new E.ErrnoError(l);for(var d=E.hashName(a.id,C),w=E.nameTable[d];w;w=w.name_next){var M=w.name;if(w.parent.id===a.id&&M===C)return w}return E.lookup(a,C)},createNode(a,C,l,d){var w=new E.FSNode(a,C,l,d);return E.hashAddNode(w),w},destroyNode(a){E.hashRemoveNode(a)},isRoot:a=>a===a.parent,isMountpoint:a=>!!a.mounted,isFile:a=>(61440&a)==32768,isDir:a=>(61440&a)==16384,isLink:a=>(61440&a)==40960,isChrdev:a=>(61440&a)==8192,isBlkdev:a=>(61440&a)==24576,isFIFO:a=>(61440&a)==4096,isSocket:a=>!(49152&~a),flagsToPermissionString(a){var C=["r","w","rw"][3&a];return 512&a&&(C+="w"),C},nodePermissions:(a,C)=>E.ignorePermissions||(!C.includes("r")||292&a.mode)&&(!C.includes("w")||146&a.mode)&&(!C.includes("x")||73&a.mode)?0:2,mayLookup(a){if(!E.isDir(a.mode))return 54;var C=E.nodePermissions(a,"x");return C||(a.node_ops.lookup?0:2)},mayCreate(a,C){try{return E.lookupNode(a,C),20}catch{}return E.nodePermissions(a,"wx")},mayDelete(a,C,l){var d;try{d=E.lookupNode(a,C)}catch(M){return M.errno}var w=E.nodePermissions(a,"wx");if(w)return w;if(l){if(!E.isDir(d.mode))return 54;if(E.isRoot(d)||E.getPath(d)===E.cwd())return 10}else if(E.isDir(d.mode))return 31;return 0},mayOpen:(a,C)=>a?E.isLink(a.mode)?32:E.isDir(a.mode)&&(E.flagsToPermissionString(C)!=="r"||512&C)?31:E.nodePermissions(a,E.flagsToPermissionString(C)):44,MAX_OPEN_FDS:4096,nextfd(){for(var a=0;a<=E.MAX_OPEN_FDS;a++)if(!E.streams[a])return a;throw new E.ErrnoError(33)},getStreamChecked(a){var C=E.getStream(a);if(!C)throw new E.ErrnoError(8);return C},getStream:a=>E.streams[a],createStream(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;return a=Object.assign(new E.FSStream,a),C==-1&&(C=E.nextfd()),a.fd=C,E.streams[C]=a,a},closeStream(a){E.streams[a]=null},dupStream(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;var l=E.createStream(a,C);return l.stream_ops?.dup?.(l),l},chrdev_stream_ops:{open(a){var C=E.getDevice(a.node.rdev);a.stream_ops=C.stream_ops,a.stream_ops.open?.(a)},llseek(){throw new E.ErrnoError(70)}},major:a=>a>>8,minor:a=>255&a,makedev:(a,C)=>a<<8|C,registerDevice(a,C){E.devices[a]={stream_ops:C}},getDevice:a=>E.devices[a],getMounts(a){for(var C=[],l=[a];l.length;){var d=l.pop();C.push(d),l.push(...d.mounts)}return C},syncfs(a,C){typeof a=="function"&&(C=a,a=!1),E.syncFSRequests++,E.syncFSRequests>1&&e(`warning: ${E.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var l=E.getMounts(E.root.mount),d=0;function w(S){return E.syncFSRequests--,C(S)}function M(S){if(S)return M.errored?void 0:(M.errored=!0,w(S));++d>=l.length&&w(null)}l.forEach(S=>{if(!S.type.syncfs)return M(null);S.type.syncfs(S,a,M)})},mount(a,C,l){var d,w=l==="/",M=!l;if(w&&E.root)throw new E.ErrnoError(10);if(!w&&!M){var S=E.lookupPath(l,{follow_mount:!1});if(l=S.path,d=S.node,E.isMountpoint(d))throw new E.ErrnoError(10);if(!E.isDir(d.mode))throw new E.ErrnoError(54)}var G={type:a,opts:C,mountpoint:l,mounts:[]},sA=a.mount(G);return sA.mount=G,G.root=sA,w?E.root=sA:d&&(d.mounted=G,d.mount&&d.mount.mounts.push(G)),sA},unmount(a){var C=E.lookupPath(a,{follow_mount:!1});if(!E.isMountpoint(C.node))throw new E.ErrnoError(28);var l=C.node,d=l.mounted,w=E.getMounts(d);Object.keys(E.nameTable).forEach(S=>{for(var G=E.nameTable[S];G;){var sA=G.name_next;w.includes(G.mount)&&E.destroyNode(G),G=sA}}),l.mounted=null;var M=l.mount.mounts.indexOf(d);l.mount.mounts.splice(M,1)},lookup:(a,C)=>a.node_ops.lookup(a,C),mknod(a,C,l){var d=E.lookupPath(a,{parent:!0}).node,w=fA.basename(a);if(!w||w==="."||w==="..")throw new E.ErrnoError(28);var M=E.mayCreate(d,w);if(M)throw new E.ErrnoError(M);if(!d.node_ops.mknod)throw new E.ErrnoError(63);return d.node_ops.mknod(d,w,C,l)},create:(a,C)=>(C=C!==void 0?C:438,C&=4095,C|=32768,E.mknod(a,C,0)),mkdir:(a,C)=>(C=C!==void 0?C:511,C&=1023,C|=16384,E.mknod(a,C,0)),mkdirTree(a,C){for(var l=a.split("/"),d="",w=0;w<l.length;++w)if(l[w]){d+="/"+l[w];try{E.mkdir(d,C)}catch(M){if(M.errno!=20)throw M}}},mkdev:(a,C,l)=>(l===void 0&&(l=C,C=438),C|=8192,E.mknod(a,C,l)),symlink(a,C){if(!ue.resolve(a))throw new E.ErrnoError(44);var l=E.lookupPath(C,{parent:!0}).node;if(!l)throw new E.ErrnoError(44);var d=fA.basename(C),w=E.mayCreate(l,d);if(w)throw new E.ErrnoError(w);if(!l.node_ops.symlink)throw new E.ErrnoError(63);return l.node_ops.symlink(l,d,a)},rename(a,C){var l,d,w=fA.dirname(a),M=fA.dirname(C),S=fA.basename(a),G=fA.basename(C);if(l=E.lookupPath(a,{parent:!0}).node,d=E.lookupPath(C,{parent:!0}).node,!l||!d)throw new E.ErrnoError(44);if(l.mount!==d.mount)throw new E.ErrnoError(75);var sA,FA=E.lookupNode(l,S),MA=ue.relative(a,M);if(MA.charAt(0)!==".")throw new E.ErrnoError(28);if((MA=ue.relative(C,w)).charAt(0)!==".")throw new E.ErrnoError(55);try{sA=E.lookupNode(d,G)}catch{}if(FA!==sA){var dA=E.isDir(FA.mode),CA=E.mayDelete(l,S,dA);if(CA)throw new E.ErrnoError(CA);if(CA=sA?E.mayDelete(d,G,dA):E.mayCreate(d,G))throw new E.ErrnoError(CA);if(!l.node_ops.rename)throw new E.ErrnoError(63);if(E.isMountpoint(FA)||sA&&E.isMountpoint(sA))throw new E.ErrnoError(10);if(d!==l&&(CA=E.nodePermissions(l,"w")))throw new E.ErrnoError(CA);E.hashRemoveNode(FA);try{l.node_ops.rename(FA,d,G),FA.parent=d}catch(BA){throw BA}finally{E.hashAddNode(FA)}}},rmdir(a){var C=E.lookupPath(a,{parent:!0}).node,l=fA.basename(a),d=E.lookupNode(C,l),w=E.mayDelete(C,l,!0);if(w)throw new E.ErrnoError(w);if(!C.node_ops.rmdir)throw new E.ErrnoError(63);if(E.isMountpoint(d))throw new E.ErrnoError(10);C.node_ops.rmdir(C,l),E.destroyNode(d)},readdir(a){var C=E.lookupPath(a,{follow:!0}).node;if(!C.node_ops.readdir)throw new E.ErrnoError(54);return C.node_ops.readdir(C)},unlink(a){var C=E.lookupPath(a,{parent:!0}).node;if(!C)throw new E.ErrnoError(44);var l=fA.basename(a),d=E.lookupNode(C,l),w=E.mayDelete(C,l,!1);if(w)throw new E.ErrnoError(w);if(!C.node_ops.unlink)throw new E.ErrnoError(63);if(E.isMountpoint(d))throw new E.ErrnoError(10);C.node_ops.unlink(C,l),E.destroyNode(d)},readlink(a){var C=E.lookupPath(a).node;if(!C)throw new E.ErrnoError(44);if(!C.node_ops.readlink)throw new E.ErrnoError(28);return ue.resolve(E.getPath(C.parent),C.node_ops.readlink(C))},stat(a,C){var l=E.lookupPath(a,{follow:!C}).node;if(!l)throw new E.ErrnoError(44);if(!l.node_ops.getattr)throw new E.ErrnoError(63);return l.node_ops.getattr(l)},lstat:a=>E.stat(a,!0),chmod(a,C,l){var d;if(typeof a=="string"?d=E.lookupPath(a,{follow:!l}).node:d=a,!d.node_ops.setattr)throw new E.ErrnoError(63);d.node_ops.setattr(d,{mode:4095&C|-4096&d.mode,timestamp:Date.now()})},lchmod(a,C){E.chmod(a,C,!0)},fchmod(a,C){var l=E.getStreamChecked(a);E.chmod(l.node,C)},chown(a,C,l,d){var w;if(typeof a=="string"?w=E.lookupPath(a,{follow:!d}).node:w=a,!w.node_ops.setattr)throw new E.ErrnoError(63);w.node_ops.setattr(w,{timestamp:Date.now()})},lchown(a,C,l){E.chown(a,C,l,!0)},fchown(a,C,l){var d=E.getStreamChecked(a);E.chown(d.node,C,l)},truncate(a,C){if(C<0)throw new E.ErrnoError(28);var l;if(typeof a=="string"?l=E.lookupPath(a,{follow:!0}).node:l=a,!l.node_ops.setattr)throw new E.ErrnoError(63);if(E.isDir(l.mode))throw new E.ErrnoError(31);if(!E.isFile(l.mode))throw new E.ErrnoError(28);var d=E.nodePermissions(l,"w");if(d)throw new E.ErrnoError(d);l.node_ops.setattr(l,{size:C,timestamp:Date.now()})},ftruncate(a,C){var l=E.getStreamChecked(a);if(!(2097155&l.flags))throw new E.ErrnoError(28);E.truncate(l.node,C)},utime(a,C,l){var d=E.lookupPath(a,{follow:!0}).node;d.node_ops.setattr(d,{timestamp:Math.max(C,l)})},open(a,C,l){if(a==="")throw new E.ErrnoError(44);var d;if(l=64&(C=typeof C=="string"?(G=>{var sA={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[G];if(sA===void 0)throw new Error(`Unknown file open mode: ${G}`);return sA})(C):C)?4095&(l=l===void 0?438:l)|32768:0,typeof a=="object")d=a;else{a=fA.normalize(a);try{d=E.lookupPath(a,{follow:!(131072&C)}).node}catch{}}var w=!1;if(64&C)if(d){if(128&C)throw new E.ErrnoError(20)}else d=E.mknod(a,l,0),w=!0;if(!d)throw new E.ErrnoError(44);if(E.isChrdev(d.mode)&&(C&=-513),65536&C&&!E.isDir(d.mode))throw new E.ErrnoError(54);if(!w){var M=E.mayOpen(d,C);if(M)throw new E.ErrnoError(M)}512&C&&!w&&E.truncate(d,0),C&=-131713;var S=E.createStream({node:d,path:E.getPath(d),flags:C,seekable:!0,position:0,stream_ops:d.stream_ops,ungotten:[],error:!1});return S.stream_ops.open&&S.stream_ops.open(S),S},close(a){if(E.isClosed(a))throw new E.ErrnoError(8);a.getdents&&(a.getdents=null);try{a.stream_ops.close&&a.stream_ops.close(a)}catch(C){throw C}finally{E.closeStream(a.fd)}a.fd=null},isClosed:a=>a.fd===null,llseek(a,C,l){if(E.isClosed(a))throw new E.ErrnoError(8);if(!a.seekable||!a.stream_ops.llseek)throw new E.ErrnoError(70);if(l!=0&&l!=1&&l!=2)throw new E.ErrnoError(28);return a.position=a.stream_ops.llseek(a,C,l),a.ungotten=[],a.position},read(a,C,l,d,w){if(d<0||w<0)throw new E.ErrnoError(28);if(E.isClosed(a))throw new E.ErrnoError(8);if((2097155&a.flags)==1)throw new E.ErrnoError(8);if(E.isDir(a.node.mode))throw new E.ErrnoError(31);if(!a.stream_ops.read)throw new E.ErrnoError(28);var M=w!==void 0;if(M){if(!a.seekable)throw new E.ErrnoError(70)}else w=a.position;var S=a.stream_ops.read(a,C,l,d,w);return M||(a.position+=S),S},write(a,C,l,d,w,M){if(d<0||w<0)throw new E.ErrnoError(28);if(E.isClosed(a))throw new E.ErrnoError(8);if(!(2097155&a.flags))throw new E.ErrnoError(8);if(E.isDir(a.node.mode))throw new E.ErrnoError(31);if(!a.stream_ops.write)throw new E.ErrnoError(28);a.seekable&&1024&a.flags&&E.llseek(a,0,2);var S=w!==void 0;if(S){if(!a.seekable)throw new E.ErrnoError(70)}else w=a.position;var G=a.stream_ops.write(a,C,l,d,w,M);return S||(a.position+=G),G},allocate(a,C,l){if(E.isClosed(a))throw new E.ErrnoError(8);if(C<0||l<=0)throw new E.ErrnoError(28);if(!(2097155&a.flags))throw new E.ErrnoError(8);if(!E.isFile(a.node.mode)&&!E.isDir(a.node.mode))throw new E.ErrnoError(43);if(!a.stream_ops.allocate)throw new E.ErrnoError(138);a.stream_ops.allocate(a,C,l)},mmap(a,C,l,d,w){if(2&d&&!(2&w)&&(2097155&a.flags)!=2)throw new E.ErrnoError(2);if((2097155&a.flags)==1)throw new E.ErrnoError(2);if(!a.stream_ops.mmap)throw new E.ErrnoError(43);if(!C)throw new E.ErrnoError(28);return a.stream_ops.mmap(a,C,l,d,w)},msync:(a,C,l,d,w)=>a.stream_ops.msync?a.stream_ops.msync(a,C,l,d,w):0,ioctl(a,C,l){if(!a.stream_ops.ioctl)throw new E.ErrnoError(59);return a.stream_ops.ioctl(a,C,l)},readFile(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(C.flags=C.flags||0,C.encoding=C.encoding||"binary",C.encoding!=="utf8"&&C.encoding!=="binary")throw new Error(`Invalid encoding type "${C.encoding}"`);var l,d=E.open(a,C.flags),w=E.stat(a).size,M=new Uint8Array(w);return E.read(d,M,0,w,0),C.encoding==="utf8"?l=P(M):C.encoding==="binary"&&(l=M),E.close(d),l},writeFile(a,C){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};l.flags=l.flags||577;var d=E.open(a,l.flags,l.mode);if(typeof C=="string"){var w=new Uint8Array(le(C)+1),M=ni(C,w,0,w.length);E.write(d,w,0,M,void 0,l.canOwn)}else{if(!ArrayBuffer.isView(C))throw new Error("Unsupported data type");E.write(d,C,0,C.byteLength,void 0,l.canOwn)}E.close(d)},cwd:()=>E.currentPath,chdir(a){var C=E.lookupPath(a,{follow:!0});if(C.node===null)throw new E.ErrnoError(44);if(!E.isDir(C.node.mode))throw new E.ErrnoError(54);var l=E.nodePermissions(C.node,"x");if(l)throw new E.ErrnoError(l);E.currentPath=C.path},createDefaultDirectories(){E.mkdir("/tmp"),E.mkdir("/home"),E.mkdir("/home/web_user")},createDefaultDevices(){E.mkdir("/dev"),E.registerDevice(E.makedev(1,3),{read:()=>0,write:(d,w,M,S,G)=>S}),E.mkdev("/dev/null",E.makedev(1,3)),Ki.register(E.makedev(5,0),Ki.default_tty_ops),Ki.register(E.makedev(6,0),Ki.default_tty1_ops),E.mkdev("/dev/tty",E.makedev(5,0)),E.mkdev("/dev/tty1",E.makedev(6,0));var a=new Uint8Array(1024),C=0,l=()=>(C===0&&(C=Qt(a).byteLength),a[--C]);E.createDevice("/dev","random",l),E.createDevice("/dev","urandom",l),E.mkdir("/dev/shm"),E.mkdir("/dev/shm/tmp")},createSpecialDirectories(){E.mkdir("/proc");var a=E.mkdir("/proc/self");E.mkdir("/proc/self/fd"),E.mount({mount(){var C=E.createNode(a,"fd",16895,73);return C.node_ops={lookup(l,d){var w=+d,M=E.getStreamChecked(w),S={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>M.path}};return S.parent=S,S}},C}},{},"/proc/self/fd")},createStandardStreams(a,C,l){a?E.createDevice("/dev","stdin",a):E.symlink("/dev/tty","/dev/stdin"),C?E.createDevice("/dev","stdout",null,C):E.symlink("/dev/tty","/dev/stdout"),l?E.createDevice("/dev","stderr",null,l):E.symlink("/dev/tty1","/dev/stderr"),E.open("/dev/stdin",0),E.open("/dev/stdout",1),E.open("/dev/stderr",1)},staticInit(){[44].forEach(a=>{E.genericErrors[a]=new E.ErrnoError(a),E.genericErrors[a].stack="<generic error, no stack>"}),E.nameTable=new Array(4096),E.mount(UA,{},"/"),E.createDefaultDirectories(),E.createDefaultDevices(),E.createSpecialDirectories(),E.filesystems={MEMFS:UA}},init(a,C,l){E.initialized=!0,E.createStandardStreams(a,C,l)},quit(){E.initialized=!1;for(var a=0;a<E.streams.length;a++){var C=E.streams[a];C&&E.close(C)}},findObject(a,C){var l=E.analyzePath(a,C);return l.exists?l.object:null},analyzePath(a,C){try{a=(d=E.lookupPath(a,{follow:!C})).path}catch{}var l={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var d=E.lookupPath(a,{parent:!0});l.parentExists=!0,l.parentPath=d.path,l.parentObject=d.node,l.name=fA.basename(a),d=E.lookupPath(a,{follow:!C}),l.exists=!0,l.path=d.path,l.object=d.node,l.name=d.node.name,l.isRoot=d.path==="/"}catch(w){l.error=w.errno}return l},createPath(a,C,l,d){a=typeof a=="string"?a:E.getPath(a);for(var w=C.split("/").reverse();w.length;){var M=w.pop();if(M){var S=fA.join2(a,M);try{E.mkdir(S)}catch{}a=S}}return S},createFile(a,C,l,d,w){var M=fA.join2(typeof a=="string"?a:E.getPath(a),C),S=Un(d,w);return E.create(M,S)},createDataFile(a,C,l,d,w,M){var S=C;a&&(a=typeof a=="string"?a:E.getPath(a),S=C?fA.join2(a,C):a);var G=Un(d,w),sA=E.create(S,G);if(l){if(typeof l=="string"){for(var FA=new Array(l.length),MA=0,dA=l.length;MA<dA;++MA)FA[MA]=l.charCodeAt(MA);l=FA}E.chmod(sA,146|G);var CA=E.open(sA,577);E.write(CA,l,0,l.length,0,M),E.close(CA),E.chmod(sA,G)}},createDevice(a,C,l,d){var w=fA.join2(typeof a=="string"?a:E.getPath(a),C),M=Un(!!l,!!d);E.createDevice.major??=64;var S=E.makedev(E.createDevice.major++,0);return E.registerDevice(S,{open(G){G.seekable=!1},close(G){d?.buffer?.length&&d(10)},read(G,sA,FA,MA,dA){for(var CA=0,BA=0;BA<MA;BA++){var Be;try{Be=l()}catch{throw new E.ErrnoError(29)}if(Be===void 0&&CA===0)throw new E.ErrnoError(6);if(Be==null)break;CA++,sA[FA+BA]=Be}return CA&&(G.node.timestamp=Date.now()),CA},write(G,sA,FA,MA,dA){for(var CA=0;CA<MA;CA++)try{d(sA[FA+CA])}catch{throw new E.ErrnoError(29)}return MA&&(G.node.timestamp=Date.now()),CA}}),E.mkdev(w,M,S)},forceLoadFile(a){if(a.isDevice||a.isFolder||a.link||a.contents)return!0;if(typeof XMLHttpRequest<"u")throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{a.contents=readBinary(a.url),a.usedBytes=a.contents.length}catch{throw new E.ErrnoError(29)}},createLazyFile(a,C,l,d,w){class M{constructor(){this.lengthKnown=!1,this.chunks=[]}get(dA){if(!(dA>this.length-1||dA<0)){var CA=dA%this.chunkSize,BA=dA/this.chunkSize|0;return this.getter(BA)[CA]}}setDataGetter(dA){this.getter=dA}cacheLength(){var dA=new XMLHttpRequest;if(dA.open("HEAD",l,!1),dA.send(null),!(dA.status>=200&&dA.status<300||dA.status===304))throw new Error("Couldn't load "+l+". Status: "+dA.status);var CA,BA=Number(dA.getResponseHeader("Content-length")),Be=(CA=dA.getResponseHeader("Accept-Ranges"))&&CA==="bytes",Qe=(CA=dA.getResponseHeader("Content-Encoding"))&&CA==="gzip",Ze=1048576;Be||(Ze=BA);var ke=this;ke.setDataGetter(si=>{var uc=si*Ze,fr=(si+1)*Ze-1;if(fr=Math.min(fr,BA-1),ke.chunks[si]===void 0&&(ke.chunks[si]=((Dc,Ha)=>{if(Dc>Ha)throw new Error("invalid range ("+Dc+", "+Ha+") or no bytes requested!");if(Ha>BA-1)throw new Error("only "+BA+" bytes available! programmer error!");var vt=new XMLHttpRequest;if(vt.open("GET",l,!1),BA!==Ze&&vt.setRequestHeader("Range","bytes="+Dc+"-"+Ha),vt.responseType="arraybuffer",vt.overrideMimeType&&vt.overrideMimeType("text/plain; charset=x-user-defined"),vt.send(null),!(vt.status>=200&&vt.status<300||vt.status===304))throw new Error("Couldn't load "+l+". Status: "+vt.status);return vt.response!==void 0?new Uint8Array(vt.response||[]):fo(vt.responseText||"",!0)})(uc,fr)),ke.chunks[si]===void 0)throw new Error("doXHR failed!");return ke.chunks[si]}),!Qe&&BA||(Ze=BA=1,BA=this.getter(0).length,Ze=BA,h("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=BA,this._chunkSize=Ze,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var S={isDevice:!1,contents:new M}}else S={isDevice:!1,url:l};var G=E.createFile(a,C,S,d,w);S.contents?G.contents=S.contents:S.url&&(G.contents=null,G.url=S.url),Object.defineProperties(G,{usedBytes:{get:function(){return this.contents.length}}});var sA={};function FA(MA,dA,CA,BA,Be){var Qe=MA.node.contents;if(Be>=Qe.length)return 0;var Ze=Math.min(Qe.length-Be,BA);if(Qe.slice)for(var ke=0;ke<Ze;ke++)dA[CA+ke]=Qe[Be+ke];else for(ke=0;ke<Ze;ke++)dA[CA+ke]=Qe.get(Be+ke);return Ze}return Object.keys(G.stream_ops).forEach(MA=>{var dA=G.stream_ops[MA];sA[MA]=function(){return E.forceLoadFile(G),dA(...arguments)}}),sA.read=(MA,dA,CA,BA,Be)=>(E.forceLoadFile(G),FA(MA,dA,CA,BA,Be)),sA.mmap=(MA,dA,CA,BA,Be)=>{E.forceLoadFile(G);var Qe=Kn(dA);if(!Qe)throw new E.ErrnoError(48);return FA(MA,A,Qe,dA,CA),{ptr:Qe,allocated:!0}},G.stream_ops=sA,G}},eA={DEFAULT_POLLMASK:5,calculateAt(a,C,l){if(fA.isAbs(C))return C;var d;if(a===-100?d=E.cwd():d=eA.getStreamFromFD(a).path,C.length==0){if(!l)throw new E.ErrnoError(44);return d}return fA.join2(d,C)},doStat(a,C,l){var d=a(C);o[l>>2]=d.dev,o[l+4>>2]=d.mode,n[l+8>>2]=d.nlink,o[l+12>>2]=d.uid,o[l+16>>2]=d.gid,o[l+20>>2]=d.rdev,I[l+24>>3]=BigInt(d.size),o[l+32>>2]=4096,o[l+36>>2]=d.blocks;var w=d.atime.getTime(),M=d.mtime.getTime(),S=d.ctime.getTime();return I[l+40>>3]=BigInt(Math.floor(w/1e3)),n[l+48>>2]=w%1e3*1e3*1e3,I[l+56>>3]=BigInt(Math.floor(M/1e3)),n[l+64>>2]=M%1e3*1e3*1e3,I[l+72>>3]=BigInt(Math.floor(S/1e3)),n[l+80>>2]=S%1e3*1e3*1e3,I[l+88>>3]=BigInt(d.ino),0},doMsync(a,C,l,d,w){if(!E.isFile(C.node.mode))throw new E.ErrnoError(43);if(2&d)return 0;var M=g.slice(a,a+l);E.msync(C,M,w,l,d)},getStreamFromFD:a=>E.getStreamChecked(a),varargs:void 0,getStr:a=>mA(a)};function uA(){var a=o[+eA.varargs>>2];return eA.varargs+=4,a}var TA=uA,Re=a=>a<-9007199254740992||a>9007199254740992?NaN:Number(a),We=(a,C,l)=>ni(a,g,C,l),nt=a=>{var C=(a-B.buffer.byteLength+65535)/65536|0;try{return B.grow(C),y(),1}catch{}},Wt={},oe=()=>{if(!oe.strings){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:"./this.program"};for(var C in Wt)Wt[C]===void 0?delete a[C]:a[C]=Wt[C];var l=[];for(var C in a)l.push(`${C}=${a[C]}`);oe.strings=l}return oe.strings},Ya=a=>{throw`exit(${a})`},Ja=a=>st(a);E.createPreloadedFile=(a,C,l,d,w,M,S,G,sA,FA)=>{var MA=C?ue.resolve(fA.join2(a,C)):a,dA=getUniqueRunDependency(`cp ${MA}`);function CA(BA){(function(Be){FA?.(),G||((Qe,Ze,ke,si,uc,fr)=>{E.createDataFile(Qe,Ze,ke,si,uc,fr)})(a,C,Be,d,w,sA),M?.(),removeRunDependency(dA)})(BA)}addRunDependency(dA),typeof l=="string"?((BA,Be,Qe,Ze)=>{var ke=Ze?"":getUniqueRunDependency(`al ${BA}`);readAsync(BA).then(si=>{Be(new Uint8Array(si)),ke&&removeRunDependency(ke)},si=>{if(!Qe)throw`Loading data file "${BA}" failed.`;Qe()}),ke&&addRunDependency(ke)})(l,CA,S):CA(l)},E.staticInit();var Ue,_i,st,Sg,mr={a:(a,C,l,d)=>{p(`Assertion failed: ${mA(a)}, at: `+[C?mA(C):"unknown filename",l,d?mA(d):"unknown function"])},b:(a,C,l)=>{throw new _A(a).init(C,l),a},v:function(a,C,l,d){try{if(C=eA.getStr(C),C=eA.calculateAt(a,C),-8&l)return-28;var w=E.lookupPath(C,{follow:!0}).node;if(!w)return-44;var M="";return 4&l&&(M+="r"),2&l&&(M+="w"),1&l&&(M+="x"),M&&E.nodePermissions(w,M)?-2:0}catch(S){if(E===void 0||S.name!=="ErrnoError")throw S;return-S.errno}},f:function(a,C,l){eA.varargs=l;try{var d=eA.getStreamFromFD(a);switch(C){case 0:if((w=uA())<0)return-28;for(;E.streams[w];)w++;return E.dupStream(d,w).fd;case 1:case 2:case 13:case 14:return 0;case 3:return d.flags;case 4:var w=uA();return d.flags|=w,0;case 12:return w=TA(),i[w+0>>1]=2,0}return-28}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return-M.errno}},u:function(a,C){try{var l=eA.getStreamFromFD(a);return eA.doStat(E.stat,l.path,C)}catch(d){if(E===void 0||d.name!=="ErrnoError")throw d;return-d.errno}},j:function(a,C,l){eA.varargs=l;try{var d=eA.getStreamFromFD(a);switch(C){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return d.tty?0:-59;case 21505:if(!d.tty)return-59;if(d.tty.ops.ioctl_tcgets){var w=d.tty.ops.ioctl_tcgets(d),M=TA();o[M>>2]=w.c_iflag||0,o[M+4>>2]=w.c_oflag||0,o[M+8>>2]=w.c_cflag||0,o[M+12>>2]=w.c_lflag||0;for(var S=0;S<32;S++)A[M+S+17]=w.c_cc[S]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!d.tty)return-59;if(d.tty.ops.ioctl_tcsets){M=TA();var G=o[M>>2],sA=o[M+4>>2],FA=o[M+8>>2],MA=o[M+12>>2],dA=[];for(S=0;S<32;S++)dA.push(A[M+S+17]);return d.tty.ops.ioctl_tcsets(d.tty,C,{c_iflag:G,c_oflag:sA,c_cflag:FA,c_lflag:MA,c_cc:dA})}return 0;case 21519:return d.tty?(M=TA(),o[M>>2]=0,0):-59;case 21520:return d.tty?-28:-59;case 21531:return M=TA(),E.ioctl(d,C,M);case 21523:if(!d.tty)return-59;if(d.tty.ops.ioctl_tiocgwinsz){var CA=d.tty.ops.ioctl_tiocgwinsz(d.tty);M=TA(),i[M>>1]=CA[0],i[M+2>>1]=CA[1]}return 0;default:return-28}}catch(BA){if(E===void 0||BA.name!=="ErrnoError")throw BA;return-BA.errno}},s:function(a,C,l,d){try{C=eA.getStr(C);var w=256&d,M=4096&d;return d&=-6401,C=eA.calculateAt(a,C,M),eA.doStat(w?E.lstat:E.stat,C,l)}catch(S){if(E===void 0||S.name!=="ErrnoError")throw S;return-S.errno}},m:function(a,C,l,d){eA.varargs=d;try{C=eA.getStr(C),C=eA.calculateAt(a,C);var w=d?uA():0;return E.open(C,l,w).fd}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return-M.errno}},t:function(a,C){try{return a=eA.getStr(a),eA.doStat(E.stat,a,C)}catch(l){if(E===void 0||l.name!=="ErrnoError")throw l;return-l.errno}},i:()=>{p("")},n:function(a,C,l,d,w,M,S){w=Re(w);try{if(isNaN(w))return 61;var G=eA.getStreamFromFD(d),sA=E.mmap(G,a,w,C,l),FA=sA.ptr;return o[M>>2]=sA.allocated,n[S>>2]=FA,0}catch(MA){if(E===void 0||MA.name!=="ErrnoError")throw MA;return-MA.errno}},o:function(a,C,l,d,w,M){M=Re(M);try{var S=eA.getStreamFromFD(w);2&l&&eA.doMsync(a,S,C,d,M)}catch(G){if(E===void 0||G.name!=="ErrnoError")throw G;return-G.errno}},k:(a,C,l,d)=>{var w=new Date().getFullYear(),M=new Date(w,0,1),S=new Date(w,6,1),G=M.getTimezoneOffset(),sA=S.getTimezoneOffset(),FA=Math.max(G,sA);n[a>>2]=60*FA,o[C>>2]=+(G!=sA);var MA=BA=>{var Be=BA>=0?"-":"+",Qe=Math.abs(BA);return`UTC${Be}${String(Math.floor(Qe/60)).padStart(2,"0")}${String(Qe%60).padStart(2,"0")}`},dA=MA(G),CA=MA(sA);sA<G?(We(dA,l,17),We(CA,d,17)):(We(dA,d,17),We(CA,l,17))},h:()=>Date.now(),l:a=>{var C=g.length,l=2147483648;if((a>>>=0)>l)return!1;for(var d=1;d<=4;d*=2){var w=C*(1+.2/d);w=Math.min(w,a+100663296);var M=Math.min(l,Ui(Math.max(a,w),65536));if(nt(M))return!0}return!1},q:(a,C)=>{var l=0;return oe().forEach((d,w)=>{var M=C+l;n[a+4*w>>2]=M,((S,G)=>{for(var sA=0;sA<S.length;++sA)A[G++]=S.charCodeAt(sA);A[G]=0})(d,M),l+=d.length+1}),0},r:(a,C)=>{var l=oe();n[a>>2]=l.length;var d=0;return l.forEach(w=>d+=w.length+1),n[C>>2]=d,0},g:Ya,e:function(a){try{var C=eA.getStreamFromFD(a);return E.close(C),0}catch(l){if(E===void 0||l.name!=="ErrnoError")throw l;return l.errno}},d:function(a,C,l,d){try{var w=((M,S,G,sA)=>{for(var FA=0,MA=0;MA<G;MA++){var dA=n[S>>2],CA=n[S+4>>2];S+=8;var BA=E.read(M,A,dA,CA,sA);if(BA<0)return-1;if(FA+=BA,BA<CA)break;sA!==void 0&&(sA+=BA)}return FA})(eA.getStreamFromFD(a),C,l);return n[d>>2]=w,0}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return M.errno}},p:function(a,C,l,d){C=Re(C);try{if(isNaN(C))return 61;var w=eA.getStreamFromFD(a);return E.llseek(w,C,l),I[d>>3]=BigInt(w.position),w.getdents&&C===0&&l===0&&(w.getdents=null),0}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return M.errno}},c:function(a,C,l,d){try{var w=((M,S,G,sA)=>{for(var FA=0,MA=0;MA<G;MA++){var dA=n[S>>2],CA=n[S+4>>2];S+=8;var BA=E.write(M,A,dA,CA,sA);if(BA<0)return-1;if(FA+=BA,BA<CA)break;sA!==void 0&&(sA+=BA)}return FA})(eA.getStreamFromFD(a),C,l);return n[d>>2]=w,0}catch(M){if(E===void 0||M.name!=="ErrnoError")throw M;return M.errno}},w:function(a){return c.agerrMessages.push(mA(a)),0}};c.ccall=(a,C,l,d,w)=>{var M={string:CA=>{var BA=0;return CA!=null&&CA!==0&&(BA=(Be=>{var Qe=le(Be)+1,Ze=Ja(Qe);return We(Be,Ze,Qe),Ze})(CA)),BA},array:CA=>{var BA,Be,Qe=Ja(CA.length);return BA=CA,Be=Qe,A.set(BA,Be),Qe}},S=(CA=>c["_"+CA])(a),G=[],sA=0;if(d)for(var FA=0;FA<d.length;FA++){var MA=M[l[FA]];MA?(sA===0&&(sA=Sg()),G[FA]=MA(d[FA])):G[FA]=d[FA]}var dA=S(...G);return dA=function(CA){return sA!==0&&_i(sA),function(BA){return C==="string"?mA(BA):C==="boolean"?!!BA:BA}(CA)}(dA)},c.getValue=function(a){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"i8";switch(C.endsWith("*")&&(C="*"),C){case"i1":case"i8":return A[a];case"i16":return i[a>>1];case"i32":return o[a>>2];case"i64":return I[a>>3];case"float":return s[a>>2];case"double":return r[a>>3];case"*":return n[a>>2];default:p(`invalid type for getValue: ${C}`)}},c.PATH=fA,c.UTF8ToString=mA,c.stringToUTF8=We,c.lengthBytesUTF8=le,c.FS=E;var fS={a:mr};return WebAssembly.instantiate(c.wasm,fS).then(a=>{var C=a.instance.exports;c._viz_set_y_invert=C.z,c._viz_set_reduce=C.A,c._viz_get_graphviz_version=C.B,c._viz_get_plugin_list=C.C,c._viz_create_graph=C.D,c._viz_read_one_graph=C.E,c._viz_string_dup=C.F,c._viz_string_dup_html=C.G,c._viz_string_free=C.H,c._viz_add_node=C.I,c._viz_add_edge=C.J,c._viz_add_subgraph=C.K,c._viz_set_default_graph_attribute=C.L,c._viz_set_default_node_attribute=C.M,c._viz_set_default_edge_attribute=C.N,c._viz_set_attribute=C.O,c._viz_free_graph=C.P,c._viz_create_context=C.Q,c._viz_free_context=C.R,c._viz_layout=C.S,c._viz_free_layout=C.T,c._viz_reset_errors=C.U,c._viz_render=C.V,c._free=C.X,c._malloc=C.Y,Ue=C.Z,_i=C._,st=C.$,Sg=C.aa,B=C.x,y(),function(l){l.y(),c.noFSInit||E.initialized||E.init(),E.ignorePermissions=!1}(C),t(c)}),D},Uk=[[/^Error: (.*)/,"error"],[/^Warning: (.*)/,"warning"]];function _k(t,e){let A=t.ccall("viz_get_plugin_list","number",["string"],[e]);if(A==0)throw new Error(`couldn't get plugin list: ${e}`);let i=[],o,g=A;for(;o=t.getValue(g,"*");)i.push(t.UTF8ToString(o)),t.ccall("free","number",["number"],[o]),g+=4;return t.ccall("free","number",["number"],[A]),i}function xk(t,e,A,i){let o,g,n,s;try{if(t.agerrMessages=[],t.stderrMessages=[],s=function(I,B){return B?B.map(c=>{if(typeof c.name!="string")throw new Error("image name must be a string");if(typeof c.width!="number"&&typeof c.width!="string")throw new Error("image width must be a number or string");if(typeof c.height!="number"&&typeof c.height!="string")throw new Error("image height must be a number or string");let D=I.PATH.join("/",c.name),h=`<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="${c.width}" height="${c.height}"></svg>
`;return I.FS.createPath("/",I.PATH.dirname(D)),I.FS.writeFile(D,h),D}):[]}(t,i.images),typeof e=="string")o=function(I,B){let c;try{let D=I.lengthBytesUTF8(B);return c=I.ccall("malloc","number",["number"],[D+1]),I.stringToUTF8(B,c,D+1),I.ccall("viz_read_one_graph","number",["number"],[c])}finally{c&&I.ccall("free","number",["number"],[c])}}(t,e);else{if(typeof e!="object")throw new Error("input must be a string or object");o=function(I,B){let c=I.ccall("viz_create_graph","number",["string","number","number"],[B.name,B.directed===void 0||B.directed,B.strict!==void 0&&B.strict]);return Jk(I,c,B),c}(t,e)}if(o===0)return{status:"failure",output:void 0,errors:Ba(t)};if(Hk(t,o,i),t.ccall("viz_set_y_invert","number",["number"],[i.yInvert?1:0]),t.ccall("viz_set_reduce","number",["number"],[i.reduce?1:0]),g=t.ccall("viz_create_context"),t.ccall("viz_reset_errors"),t.ccall("viz_layout","number",["number","number","string"],[g,o,i.engine])!==0)return{status:"failure",output:void 0,errors:Ba(t)};let r={};for(let I of A){if(n=t.ccall("viz_render","number",["number","number","string"],[g,o,I]),n===0)return{status:"failure",output:void 0,errors:Ba(t)};r[I]=t.UTF8ToString(n),t.ccall("free","number",["number"],[n]),n=0}return{status:"success",output:r,errors:Ba(t)}}catch(r){if(/^exit\(\d+\)/.test(r))return{status:"failure",output:void 0,errors:Ba(t)};throw r}finally{g&&o&&t.ccall("viz_free_layout","number",["number"],[g,o]),o&&t.ccall("viz_free_graph","number",["number"],[o]),g&&t.ccall("viz_free_context","number",["number"],[g]),n&&t.ccall("free","number",["number"],[n]),s&&function(r,I){for(let B of I)r.FS.analyzePath(B).exists&&r.FS.unlink(B)}(t,s)}}function Ba(t){return function(e){let A=[],i;for(let o=0;o<e.length;o++)e[o]=="Error"&&e[o+1]==": "?(i="error",o+=1):e[o]=="Warning"&&e[o+1]==": "?(i="warning",o+=1):A.push({message:e[o].trimEnd(),level:i});return A}(t.agerrMessages).concat(t.stderrMessages.map(e=>{for(let A=0;A<Uk.length;A++){let[i,o]=Uk[A],g;if((g=i.exec(e))!==null)return{message:g[1].trimEnd(),level:o}}return{message:e.trimEnd()}}))}function Jk(t,e,A){Hk(t,e,A),A.nodes&&A.nodes.forEach(i=>{let o=t.ccall("viz_add_node","number",["number","string"],[e,String(i.name)]);i.attributes&&Yk(t,e,o,i.attributes)}),A.edges&&A.edges.forEach(i=>{let o=t.ccall("viz_add_edge","number",["number","string","string"],[e,String(i.tail),String(i.head)]);i.attributes&&Yk(t,e,o,i.attributes)}),A.subgraphs&&A.subgraphs.forEach(i=>{let o=t.ccall("viz_add_subgraph","number",["number","string"],[e,String(i.name)]);Jk(t,o,i)})}function Hk(t,e,A){if(A.graphAttributes)for(let[i,o]of Object.entries(A.graphAttributes))FE(t,e,o,g=>{t.ccall("viz_set_default_graph_attribute","number",["number","string","number"],[e,i,g])});if(A.nodeAttributes)for(let[i,o]of Object.entries(A.nodeAttributes))FE(t,e,o,g=>{t.ccall("viz_set_default_node_attribute","number",["number","string","number"],[e,i,g])});if(A.edgeAttributes)for(let[i,o]of Object.entries(A.edgeAttributes))FE(t,e,o,g=>{t.ccall("viz_set_default_edge_attribute","number",["number","string","number"],[e,i,g])})}function Yk(t,e,A,i){for(let[o,g]of Object.entries(i))FE(t,e,g,n=>{t.ccall("viz_set_attribute","number",["number","string","number"],[A,o,n])})}function FE(t,e,A,i){let o;if(o=typeof A=="object"&&"html"in A?t.ccall("viz_string_dup_html","number",["number","string"],[e,String(A.html)]):t.ccall("viz_string_dup","number",["number","string"],[e,String(A)]),o==0)throw new Error("couldn't dup string");i(o),t.ccall("viz_string_free","number",["number","number"],[e,o])}var wD=class{constructor(e){this.module=e}get graphvizVersion(){return function(e){let A=e.ccall("viz_get_graphviz_version","number",[],[]);return e.UTF8ToString(A)}(this.module)}get formats(){return _k(this.module,"device")}get engines(){return _k(this.module,"layout")}renderFormats(e,A){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return xk(this.module,e,A,R({engine:"dot"},i))}render(e){let A,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};A=i.format===void 0?"dot":i.format;let o=xk(this.module,e,[A],R({engine:"dot"},i));return o.status==="success"&&(o.output=o.output[A]),o}renderString(e){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.render(e,A);if(i.status!=="success")throw new Error(i.errors.find(o=>o.level=="error")?.message||"render failed");return i.output}renderSVGElement(e){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.renderString(e,hA(R({},A),{format:"svg"}));return new DOMParser().parseFromString(i,"image/svg+xml").documentElement}renderJSON(e){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.renderString(e,hA(R({},A),{format:"json"}));return JSON.parse(i)}};function oO(){let t=atob("[encoded data, 1345852 characters]"),e=new Uint8Array(t.length);for(let A=0;A<t.length;A++)e[A]=t.charCodeAt(A);return e.buffer}function pD(){return iO({wasm:oO()}).then(t=>new wD(t))}function gO(t,e){if(t&1){let A=aA();u(0,"div",1)(1,"button",2),x("click",function(){H(A);let o=b();return T(o.action())}),v(2),m()()}if(t&2){let A=b();f(2),te(" ",A.data.action," ")}}var nO=["label"];function sO(t,e){}var rO=Math.pow(2,31)-1,Qa=class{_overlayRef;instance;containerInstance;_afterDismissed=new K;_afterOpened=new K;_onAction=new K;_durationTimeoutId;_dismissedByAction=!1;constructor(e,A){this._overlayRef=A,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,rO))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Tk=new k("MatSnackBarData"),or=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},IO=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),aO=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),CO=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),BO=(()=>{class t{snackBarRef=Q(Qa);data=Q(Tk);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,o){i&1&&(u(0,"div",0),v(1),m(),_(2,gO,3,1,"div",1)),i&2&&(f(),te(" ",o.data.message,`
`),f(),wA(o.hasAction?2:-1))},dependencies:[bt,IO,aO,CO],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return t})(),QO={snackBarState:Qo("state",[oi("void, hidden",Ge({transform:"scale(0.8)",opacity:0})),oi("visible",Ge({transform:"scale(1)",opacity:1})),St("* => visible",qt("150ms cubic-bezier(0, 0, 0.2, 1)")),St("* => void, * => hidden",qt("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ge({opacity:0})))])},EO=(()=>{class t extends Dg{_ngZone=Q(X);_elementRef=Q(Z);_changeDetectorRef=Q(zA);_platform=Q(HA);snackBarConfig=Q(or);_document=Q(lA);_trackedModals=new Set;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new K;_onExit=new K;_onEnter=new K;_animationState="void";_live;_label;_role;_liveElementId=Q(ce).getId("mat-snack-bar-container-live-");constructor(){super();let A=this.snackBarConfig;A.politeness==="assertive"&&!A.announcementMessage?this._live="assertive":A.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(A){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(A);return this._afterPortalAttached(),i}attachTemplatePortal(A){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(A);return this._afterPortalAttached(),i}attachDomPortal=A=>{this._assertNotAttached();let i=this._portalOutlet.attachDomPortal(A);return this._afterPortalAttached(),i};onAnimationEnd(A){let{fromState:i,toState:o}=A;if((o==="void"&&i!=="void"||o==="hidden")&&this._completeExit(),o==="visible"){let g=this._onEnter;this._ngZone.run(()=>{g.next(),g.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let A=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(n=>A.classList.add(n)):A.classList.add(i)),this._exposeToModals();let o=this._label.nativeElement,g="mdc-snackbar__label";o.classList.toggle(g,!o.querySelector(`.${g}`))}_exposeToModals(){let A=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<i.length;o++){let g=i[o],n=g.getAttribute("aria-owns");this._trackedModals.add(g),n?n.indexOf(A)===-1&&g.setAttribute("aria-owns",n+" "+A):g.setAttribute("aria-owns",A)}}_clearFromModals(){this._trackedModals.forEach(A=>{let i=A.getAttribute("aria-owns");if(i){let o=i.replace(this._liveElementId,"").trim();o.length>0?A.setAttribute("aria-owns",o):A.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let A=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(A&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&A.contains(document.activeElement)&&(o=document.activeElement),A.removeAttribute("aria-hidden"),i.appendChild(A),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,o){if(i&1&&(cA(ti,7),cA(nO,7)),i&2){let g;z(g=j())&&(o._portalOutlet=g.first),z(g=j())&&(o._label=g.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:1,hostBindings:function(i,o){i&1&&Dh("@state.done",function(n){return o.onAnimationEnd(n)}),i&2&&uh("@state",o._animationState)},features:[EA],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,o){i&1&&(u(0,"div",1)(1,"div",2,0)(3,"div",3),_(4,sO,0,0,"ng-template",4),m(),W(5,"div"),m()()),i&2&&(f(5),IA("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[ti],styles:[".mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}"],encapsulation:2,data:{animation:[QO.snackBarState]}})}return t})();function cO(){return new or}var lO=new k("mat-snack-bar-default-options",{providedIn:"root",factory:cO}),Ok=(()=>{class t{_overlay=Q(Pe);_live=Q(CE);_injector=Q(yA);_breakpointObserver=Q($Q);_parentSnackBar=Q(t,{optional:!0,skipSelf:!0});_defaultConfig=Q(lO);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=BO;snackBarContainerComponent=EO;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let A=this._parentSnackBar;return A?A._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(A){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=A:this._snackBarRefAtThisLevel=A}constructor(){}openFromComponent(A,i){return this._attach(A,i)}openFromTemplate(A,i){return this._attach(A,i)}open(A,i="",o){let g=R(R({},this._defaultConfig),o);return g.data={message:A,action:i},g.announcementMessage===A&&(g.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,g)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(A,i){let o=i&&i.viewContainerRef&&i.viewContainerRef.injector,g=yA.create({parent:o||this._injector,providers:[{provide:or,useValue:i}]}),n=new Fi(this.snackBarContainerComponent,i.viewContainerRef,g),s=A.attach(n);return s.instance.snackBarConfig=i,s.instance}_attach(A,i){let o=R(R(R({},new or),this._defaultConfig),i),g=this._createOverlay(o),n=this._attachSnackBarContainer(g,o),s=new Qa(n,g);if(A instanceof ne){let r=new ei(A,null,{$implicit:o.data,snackBarRef:s});s.instance=n.attachTemplatePortal(r)}else{let r=this._createInjector(o,s),I=new Fi(A,void 0,r),B=n.attachComponentPortal(I);s.instance=B.instance}return this._breakpointObserver.observe(vR.HandsetPortrait).pipe(DA(g.detachments())).subscribe(r=>{g.overlayElement.classList.toggle(this.handsetCssClass,r.matches)}),o.announcementMessage&&n._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(A,i){A.afterDismissed().subscribe(()=>{this._openedSnackBarRef==A&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{A.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):A.containerInstance.enter(),i.duration&&i.duration>0&&A.afterOpened().subscribe(()=>A._dismissAfter(i.duration))}_createOverlay(A){let i=new mg;i.direction=A.direction;let o=this._overlay.position().global(),g=A.direction==="rtl",n=A.horizontalPosition==="left"||A.horizontalPosition==="start"&&!g||A.horizontalPosition==="end"&&g,s=!n&&A.horizontalPosition!=="center";return n?o.left("0"):s?o.right("0"):o.centerHorizontally(),A.verticalPosition==="top"?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(A,i){let o=A&&A.viewContainerRef&&A.viewContainerRef.injector;return yA.create({parent:o||this._injector,providers:[{provide:Qa,useValue:i},{provide:Tk,useValue:A.data}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ot=class{static getBaseUrlWithoutPath(){let e=window.location.href;return new URL(e).origin+"/dev-ui"}static getApiServerBaseUrl(){return window.runtimeConfig?.backendUrl}static getWSServerUrl(){let e=this.getApiServerBaseUrl();return!e||e==""?window.location.host:e.startsWith("http://")?e.slice(7):e.startsWith("https://")?e.slice(8):e}};var fg=class t{constructor(e,A){this.http=e;this.zone=A}apiServerDomain=ot.getApiServerBaseUrl();_currentApp=new Ae("");currentApp=this._currentApp.asObservable();getApp(){return this.currentApp}setApp(e){this._currentApp.next(e)}run(e){let i={headers:{"Content-type":"application/json"}},o=this.apiServerDomain+"/run";return this.http.post(o,e,i)}run_sse(e){let A=this.apiServerDomain+"/run_sse";return new QA(i=>{fetch(A,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(e)}).then(o=>{let g=o.body?.getReader(),n=new TextDecoder("utf-8"),s=null,r=()=>{g?.read().then(({done:I,value:B})=>{if(I)return i.complete();n.decode(B,{stream:!0}).split(/\r?\n/).filter(h=>h.startsWith("data: ")).forEach(h=>{let p=h.replace(/^data:\s*/,"");this.zone.run(()=>i.next(p))}),r()}).catch(I=>{this.zone.run(()=>i.error(I))})};r()}).catch(o=>{this.zone.run(()=>i.error(o))})})}listApps(){if(this.apiServerDomain!=null){let e=this.apiServerDomain+"/list-apps?relative_path=./";return this.http.get(e)}return new QA}static \u0275fac=function(A){return new(A||t)(J(it),J(X))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var uO=["input"],DO=["label"],mO=["*"],fO=new k("mat-checkbox-default-options",{providedIn:"root",factory:Zk});function Zk(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var gt=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(gt||{}),wO={provide:Bn,useExisting:ft(()=>gr),multi:!0},yD=class{source;checked},Pk=Zk(),gr=(()=>{class t{_elementRef=Q(Z);_changeDetectorRef=Q(zA);_ngZone=Q(X);_animationMode=Q(ee,{optional:!0});_options=Q(fO,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(A){let i=new yD;return i.source=this,i.checked=A,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new $;indeterminateChange=new $;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=gt.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){Q(be).load(ki);let A=Q(new Dt("tabindex"),{optional:!0});this._options=this._options||Pk,this.color=this._options.color||Pk.color,this.tabIndex=A==null?0:parseInt(A)||0,this.id=this._uniqueId=Q(ce).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(A){A.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(A){A!=this.checked&&(this._checked=A,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(A){A!==this.disabled&&(this._disabled=A,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate}set indeterminate(A){let i=A!=this._indeterminate;this._indeterminate=A,i&&(this._indeterminate?this._transitionCheckState(gt.Indeterminate):this._transitionCheckState(this.checked?gt.Checked:gt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(A){this.checked=!!A}registerOnChange(A){this._controlValueAccessorChangeFn=A}registerOnTouched(A){this._onTouched=A}setDisabledState(A){this.disabled=A}validate(A){return this.required&&A.value!==!0?{required:!0}:null}registerOnValidatorChange(A){this._validatorChangeFn=A}_transitionCheckState(A){let i=this._currentCheckState,o=this._getAnimationTargetElement();if(!(i===A||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,A),this._currentCheckState=A,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let g=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(g)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let A=this._options?.clickAction;!this.disabled&&A!=="noop"?(this.indeterminate&&A!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?gt.Checked:gt.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&A==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(A){A.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(A,i){if(this._animationMode==="NoopAnimations")return"";switch(A){case gt.Init:if(i===gt.Checked)return this._animationClasses.uncheckedToChecked;if(i==gt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case gt.Unchecked:return i===gt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case gt.Checked:return i===gt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case gt.Indeterminate:return i===gt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(A){let i=this._inputElement;i&&(i.nativeElement.indeterminate=A)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(A){A.target&&this._labelElement.nativeElement.contains(A.target)&&A.stopPropagation()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,o){if(i&1&&(cA(uO,5),cA(DO,5)),i&2){let g;z(g=j())&&(o._inputElement=g.first),z(g=j())&&(o._labelElement=g.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,o){i&2&&(yt("id",o.id),IA("tabindex",null)("aria-label",null)("aria-labelledby",null),Xe(o.color?"mat-"+o.color:"mat-accent"),gA("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",iA],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",iA],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",iA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?void 0:Fe(A)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",iA],checked:[2,"checked","checked",iA],disabled:[2,"disabled","disabled",iA],indeterminate:[2,"indeterminate","indeterminate",iA]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[KA([wO,{provide:Cg,useExisting:t,multi:!0}]),VA],ngContentSelectors:mO,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,o){if(i&1){let g=aA();qA(),u(0,"div",3),x("click",function(s){return H(g),T(o._preventBubblingFromLabel(s))}),u(1,"div",4,0)(3,"div",5),x("click",function(){return H(g),T(o._onTouchTargetClick())}),m(),u(4,"input",6,1),x("blur",function(){return H(g),T(o._onBlur())})("click",function(){return H(g),T(o._onInputClick())})("change",function(s){return H(g),T(o._onInteractionEvent(s))}),m(),W(6,"div",7),u(7,"div",8),at(),u(8,"svg",9),W(9,"path",10),m(),Xg(),W(10,"div",11),m(),W(11,"div",12),m(),u(12,"label",13,2),rA(14),m()()}if(i&2){let g=He(2);F("labelPosition",o.labelPosition),f(4),gA("mdc-checkbox--selected",o.checked),F("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),IA("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),f(7),F("matRippleTrigger",g)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),f(),F("for",o.inputId)}},dependencies:[dg,cE],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})();var qk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[gr,SA,SA]})}return t})();function yO(t,e){}var wg=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var RD=(()=>{class t extends Dg{_elementRef=Q(Z);_focusTrapFactory=Q(aE);_config;_interactivityChecker=Q(ta);_ngZone=Q(X);_overlayRef=Q(er);_focusMonitor=Q(Xt);_renderer=Q(Me);_platform=Q(HA);_document=Q(lA,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=Q(zA);_injector=Q(yA);_isDestroyed=!1;constructor(){super(),this._config=Q(wg,{optional:!0})||new wg,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(A){this._ariaLabelledByQueue.push(A),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(A){let i=this._ariaLabelledByQueue.indexOf(A);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(A){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(A);return this._contentAttached(),i}attachTemplatePortal(A){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(A);return this._contentAttached(),i}attachDomPortal=A=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(A);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(A,i){this._interactivityChecker.isFocusable(A)||(A.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{g(),n(),A.removeAttribute("tabindex")},g=this._renderer.listen(A,"blur",o),n=this._renderer.listen(A,"mousedown",o)})),A.focus(i)}_focusByCssSelector(A,i){let o=this._elementRef.nativeElement.querySelector(A);o&&this._forceFocus(o,i)}_trapFocus(){this._isDestroyed||Ke(()=>{let A=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||A.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let A=this._config.restoreFocus,i=null;if(typeof A=="string"?i=this._document.querySelector(A):typeof A=="boolean"?i=A?this._elementFocusedBeforeDialogWasOpened:null:A&&(i=A),this._config.restoreFocus&&i&&typeof i.focus=="function"){let o=Ts(),g=this._elementRef.nativeElement;(!o||o===this._document.body||o===g||g.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let A=this._elementRef.nativeElement,i=Ts();return A===i||A.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ts()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,o){if(i&1&&cA(ti,7),i&2){let g;z(g=j())&&(o._portalOutlet=g.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,o){i&2&&IA("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[EA],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,o){i&1&&_(0,yO,0,0,"ng-template",0)},dependencies:[ti],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})(),Ea=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new K;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,A){this.overlayRef=e,this.config=A,this.disableClose=A.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=A.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Oe(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{A.closeOnOverlayDetachments!==!1&&this.close()})}close(e,A){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=A?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",A=""){return this.overlayRef.updateSize({width:e,height:A}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},MO=new k("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.block()}}),RO=new k("DialogData"),kO=new k("DefaultDialogConfig");var Vk=(()=>{class t{_overlay=Q(Pe);_injector=Q(yA);_defaultOptions=Q(kO,{optional:!0});_parentDialog=Q(t,{optional:!0,skipSelf:!0});_overlayContainer=Q(wE);_idGenerator=Q(ce);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new K;_afterOpenedAtThisLevel=new K;_ariaHiddenElements=new Map;_scrollStrategy=Q(MO);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Yi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(me(void 0)));constructor(){}open(A,i){let o=this._defaultOptions||new wg;i=R(R({},o),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let g=this._getOverlayConfig(i),n=this._overlay.create(g),s=new Ea(n,i),r=this._attachContainer(n,s,i);return s.containerInstance=r,this._attachDialogContent(A,s,r,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){MD(this.openDialogs,A=>A.close())}getDialogById(A){return this.openDialogs.find(i=>i.id===A)}ngOnDestroy(){MD(this._openDialogsAtThisLevel,A=>{A.config.closeOnDestroy===!1&&this._removeOpenDialog(A,!1)}),MD(this._openDialogsAtThisLevel,A=>A.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(A){let i=new mg({positionStrategy:A.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:A.scrollStrategy||this._scrollStrategy(),panelClass:A.panelClass,hasBackdrop:A.hasBackdrop,direction:A.direction,minWidth:A.minWidth,minHeight:A.minHeight,maxWidth:A.maxWidth,maxHeight:A.maxHeight,width:A.width,height:A.height,disposeOnNavigation:A.closeOnNavigation});return A.backdropClass&&(i.backdropClass=A.backdropClass),i}_attachContainer(A,i,o){let g=o.injector||o.viewContainerRef?.injector,n=[{provide:wg,useValue:o},{provide:Ea,useValue:i},{provide:er,useValue:A}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,n.push(...o.container.providers(o))):s=RD;let r=new Fi(s,o.viewContainerRef,yA.create({parent:g||this._injector,providers:n}));return A.attach(r).instance}_attachDialogContent(A,i,o,g){if(A instanceof ne){let n=this._createInjector(g,i,o,void 0),s={$implicit:g.data,dialogRef:i};g.templateContext&&(s=R(R({},s),typeof g.templateContext=="function"?g.templateContext():g.templateContext)),o.attachTemplatePortal(new ei(A,null,s,n))}else{let n=this._createInjector(g,i,o,this._injector),s=o.attachComponentPortal(new Fi(A,g.viewContainerRef,n));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(A,i,o,g){let n=A.injector||A.viewContainerRef?.injector,s=[{provide:RO,useValue:A.data},{provide:Ea,useValue:i}];return A.providers&&(typeof A.providers=="function"?s.push(...A.providers(i,A,o)):s.push(...A.providers)),A.direction&&(!n||!n.get(Ne,null,{optional:!0}))&&s.push({provide:Ne,useValue:{value:A.direction,change:tA()}}),yA.create({parent:n||g,providers:s})}_removeOpenDialog(A,i){let o=this.openDialogs.indexOf(A);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((g,n)=>{g?n.setAttribute("aria-hidden",g):n.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let A=this._overlayContainer.getContainerElement();if(A.parentElement){let i=A.parentElement.children;for(let o=i.length-1;o>-1;o--){let g=i[o];g!==A&&g.nodeName!=="SCRIPT"&&g.nodeName!=="STYLE"&&!g.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(g,g.getAttribute("aria-hidden")),g.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let A=this._parentDialog;return A?A._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MD(t,e){let A=t.length;for(;A--;)e(t[A])}function FO(t,e){}var SE=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},kD="mdc-dialog--open",Wk="mdc-dialog--opening",zk="mdc-dialog--closing",bO=150,SO=75,NO=(()=>{class t extends RD{_animationMode=Q(ee,{optional:!0});_animationStateChanged=new $;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Xk(this._config.enterAnimationDuration)??bO:0;_exitAnimationDuration=this._animationsEnabled?Xk(this._config.exitAnimationDuration)??SO:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(jk,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Wk,kD)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(kD),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(kD),this._animationsEnabled?(this._hostElement.style.setProperty(jk,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(zk)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(A){this._actionSectionCount+=A,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Wk,zk)}_waitForAnimationToComplete(A,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,A)}_requestAnimationFrame(A){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(A):A()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(A){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:A})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(A){let i=super.attachComponentPortal(A);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,o){i&2&&(yt("id",o._config.id),IA("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),gA("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[EA],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,o){i&1&&(u(0,"div",0)(1,"div",1),_(2,FO,0,0,"ng-template",2),m()())},dependencies:[ti],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2})}return t})(),jk="--mat-dialog-transition-duration";function Xk(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Zt(t.substring(0,t.length-2)):t.endsWith("s")?Zt(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var bE=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(bE||{}),Vt=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new K;_beforeClosed=new K;_result;_closeFallbackTimeout;_state=bE.OPEN;_closeInteractionType;constructor(e,A,i){this._ref=e,this._containerInstance=i,this.disableClose=A.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(RA(o=>o.state==="opened"),de(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(RA(o=>o.state==="closed"),de(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),De(this.backdropClick(),this.keydownEvents().pipe(RA(o=>o.keyCode===27&&!this.disableClose&&!Oe(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),$k(this,o.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(RA(A=>A.state==="closing"),de(1)).subscribe(A=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),A.totalTime+100)}),this._state=bE.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let A=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?A.left(e.left):A.right(e.right):A.centerHorizontally(),e&&(e.top||e.bottom)?e.top?A.top(e.top):A.bottom(e.bottom):A.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",A=""){return this._ref.updateSize(e,A),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=bE.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function $k(t,e,A){return t._closeInteractionType=e,t.close(A)}var Oo=new k("MatMdcDialogData"),GO=new k("mat-mdc-dialog-default-options"),vO=new k("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=Q(Pe);return()=>t.scrollStrategies.block()}});var pg=(()=>{class t{_overlay=Q(Pe);_defaultOptions=Q(GO,{optional:!0});_scrollStrategy=Q(vO);_parentDialog=Q(t,{optional:!0,skipSelf:!0});_idGenerator=Q(ce);_dialog=Q(Vk);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new K;_afterOpenedAtThisLevel=new K;dialogConfigClass=SE;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let A=this._parentDialog;return A?A._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Yi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(me(void 0)));constructor(){this._dialogRefConstructor=Vt,this._dialogContainerType=NO,this._dialogDataToken=Oo}open(A,i){let o;i=R(R({},this._defaultOptions||new SE),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let g=this._dialog.open(A,hA(R({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:wg,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(n,s,r)=>(o=new this._dialogRefConstructor(n,i,r),o.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=g.componentRef,o.componentInstance=g.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let n=this.openDialogs.indexOf(o);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(A){return this.openDialogs.find(i=>i.id===A)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(A){let i=A.length;for(;i--;)A[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nr=(()=>{class t{dialogRef=Q(Vt,{optional:!0});_elementRef=Q(Z);_dialog=Q(pg);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=eF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(A){let i=A._matDialogClose||A._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(A){$k(this.dialogRef,A.screenX===0&&A.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,o){i&1&&x("click",function(n){return o._onButtonClick(n)}),i&2&&IA("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[VA]})}return t})(),AF=(()=>{class t{_dialogRef=Q(Vt,{optional:!0});_elementRef=Q(Z);_dialog=Q(pg);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=eF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t})}return t})(),yg=(()=>{class t extends AF{id=Q(ce).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,o){i&2&&yt("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[EA]})}return t})(),Mg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Ty([Jo])]})}return t})(),Rg=(()=>{class t extends AF{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,o){i&2&&gA("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},features:[EA]})}return t})();function eF(t,e){let A=t.nativeElement.parentElement;for(;A&&!A.classList.contains("mat-mdc-dialog-container");)A=A.parentElement;return A?e.find(i=>i.id===A.id):null}var KO=[[["caption"]],[["colgroup"],["col"]],"*"],UO=["caption","colgroup, col","*"];function _O(t,e){t&1&&rA(0,2)}function xO(t,e){t&1&&(u(0,"thead",0),Je(1,1),m(),u(2,"tbody",0),Je(3,2)(4,3),m(),u(5,"tfoot",0),Je(6,4),m())}function YO(t,e){t&1&&Je(0,1)(1,2)(2,3)(3,4)}var bi=new k("CDK_TABLE");var UE=(()=>{class t{template=Q(ne);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),_E=(()=>{class t{template=Q(ne);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),oF=(()=>{class t{template=Q(ne);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),rr=(()=>{class t{_table=Q(bi,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(A){this._setNameInput(A)}_name;get sticky(){return this._sticky}set sticky(A){A!==this._sticky&&(this._sticky=A,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(A){A!==this._stickyEnd&&(this._stickyEnd=A,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let A=this._hasStickyChanged;return this.resetStickyChanged(),A}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(A){A&&(this._name=A,this.cssClassFriendlyName=A.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,o,g){if(i&1&&(jA(g,UE,5),jA(g,_E,5),jA(g,oF,5)),i&2){let n;z(n=j())&&(o.cell=n.first),z(n=j())&&(o.headerCell=n.first),z(n=j())&&(o.footerCell=n.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",iA],stickyEnd:[2,"stickyEnd","stickyEnd",iA]},features:[KA([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),GE=class{constructor(e,A){A.nativeElement.classList.add(...e._columnCssClassName)}},gF=(()=>{class t extends GE{constructor(){super(Q(rr),Q(Z))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[EA]})}return t})();var nF=(()=>{class t extends GE{constructor(){let A=Q(rr),i=Q(Z);super(A,i);let o=A._table?._getCellRole();o&&i.nativeElement.setAttribute("role",o)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[EA]})}return t})(),vE=class{tasks=[];endTasks=[]},LE=new k("_COALESCED_STYLE_SCHEDULER"),bD=(()=>{class t{_currentSchedule=null;_ngZone=Q(X);constructor(){}schedule(A){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(A)}scheduleEnd(A){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(A)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new vE,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let A=this._currentSchedule;this._currentSchedule=new vE;for(let i of A.tasks)i();for(let i of A.endTasks)i()}this._currentSchedule=null})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var SD=(()=>{class t{template=Q(ne);_differs=Q(Ao);columns;_columnsDiffer;constructor(){}ngOnChanges(A){if(!this._columnsDiffer){let i=A.columns&&A.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(A){return this instanceof ca?A.headerCell.template:this instanceof ND?A.footerCell.template:A.cell.template}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,features:[VA]})}return t})(),ca=(()=>{class t extends SD{_table=Q(bi,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(A){A!==this._sticky&&(this._sticky=A,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(Q(ne),Q(Ao))}ngOnChanges(A){super.ngOnChanges(A)}hasStickyChanged(){let A=this._hasStickyChanged;return this.resetStickyChanged(),A}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",iA]},features:[EA,VA]})}return t})(),ND=(()=>{class t extends SD{_table=Q(bi,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(A){A!==this._sticky&&(this._sticky=A,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(Q(ne),Q(Ao))}ngOnChanges(A){super.ngOnChanges(A)}hasStickyChanged(){let A=this._hasStickyChanged;return this.resetStickyChanged(),A}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",iA]},features:[EA,VA]})}return t})(),xE=(()=>{class t extends SD{_table=Q(bi,{optional:!0});when;constructor(){super(Q(ne),Q(Ao))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[EA]})}return t})(),Mn=(()=>{class t{_viewContainer=Q(Ce);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),GD=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Je(0,0)},dependencies:[Mn],encapsulation:2})}return t})();var vD=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Je(0,0)},dependencies:[Mn],encapsulation:2})}return t})(),sF=(()=>{class t{templateRef=Q(ne);_contentClassName="cdk-no-data-row";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),tF=["top","bottom","left","right"],FD=class{_isNativeHtmlTable;_stickCellCss;direction;_coalescedStyleScheduler;_isBrowser;_needsPositionStickyOnElement;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(e=>this._updateCachedSizes(e)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(e,A,i,o,g=!0,n=!0,s,r){this._isNativeHtmlTable=e,this._stickCellCss=A,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=g,this._needsPositionStickyOnElement=n,this._positionListener=s,this._tableInjector=r,this._borderCellCss={top:`${A}-border-elem-top`,bottom:`${A}-border-elem-bottom`,left:`${A}-border-elem-left`,right:`${A}-border-elem-right`}}clearStickyPositioning(e,A){(A.includes("left")||A.includes("right"))&&this._removeFromStickyColumnReplayQueue(e);let i=[];for(let o of e)o.nodeType===o.ELEMENT_NODE&&i.push(o,...Array.from(o.children));this._afterNextRender({write:()=>{for(let o of i)this._removeStickyStyle(o,A)}})}updateStickyColumns(e,A,i,o=!0,g=!0){if(!e.length||!this._isBrowser||!(A.some(L=>L)||i.some(L=>L))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let n=e[0],s=n.children.length,r=this.direction==="rtl",I=r?"right":"left",B=r?"left":"right",c=A.lastIndexOf(!0),D=i.indexOf(!0),h,p,y;g&&this._updateStickyColumnReplayQueue({rows:[...e],stickyStartStates:[...A],stickyEndStates:[...i]}),this._afterNextRender({earlyRead:()=>{h=this._getCellWidths(n,o),p=this._getStickyStartColumnPositions(h,A),y=this._getStickyEndColumnPositions(h,i)},write:()=>{for(let L of e)for(let P=0;P<s;P++){let mA=L.children[P];A[P]&&this._addStickyStyle(mA,I,p[P],P===c),i[P]&&this._addStickyStyle(mA,B,y[P],P===D)}this._positionListener&&h.some(L=>!!L)&&(this._positionListener.stickyColumnsUpdated({sizes:c===-1?[]:h.slice(0,c+1).map((L,P)=>A[P]?L:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:h.slice(D).map((L,P)=>i[P+D]?L:null).reverse()}))}})}stickRows(e,A,i){if(!this._isBrowser)return;let o=i==="bottom"?e.slice().reverse():e,g=i==="bottom"?A.slice().reverse():A,n=[],s=[],r=[];this._afterNextRender({earlyRead:()=>{for(let I=0,B=0;I<o.length;I++){if(!g[I])continue;n[I]=B;let c=o[I];r[I]=this._isNativeHtmlTable?Array.from(c.children):[c];let D=this._retrieveElementSize(c).height;B+=D,s[I]=D}},write:()=>{let I=g.lastIndexOf(!0);for(let B=0;B<o.length;B++){if(!g[B])continue;let c=n[B],D=B===I;for(let h of r[B])this._addStickyStyle(h,i,c,D)}i==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:s,offsets:n,elements:r}):this._positionListener?.stickyFooterRowsUpdated({sizes:s,offsets:n,elements:r})}})}updateStickyFooterContainer(e,A){this._isNativeHtmlTable&&this._afterNextRender({write:()=>{let i=e.querySelector("tfoot");i&&(A.some(o=>!o)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))}})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(e,A){for(let o of A)e.style[o]="",e.classList.remove(this._borderCellCss[o]);tF.some(o=>A.indexOf(o)===-1&&e.style[o])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,A,i,o){e.classList.add(this._stickCellCss),o&&e.classList.add(this._borderCellCss[A]),e.style[A]=`${i}px`,e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){let A={top:100,bottom:10,left:1,right:1},i=0;for(let o of tF)e.style[o]&&(i+=A[o]);return i?`${i}`:""}_getCellWidths(e,A=!0){if(!A&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],o=e.children;for(let g=0;g<o.length;g++){let n=o[g];i.push(this._retrieveElementSize(n).width)}return this._cachedCellWidths=i,i}_getStickyStartColumnPositions(e,A){let i=[],o=0;for(let g=0;g<e.length;g++)A[g]&&(i[g]=o,o+=e[g]);return i}_getStickyEndColumnPositions(e,A){let i=[],o=0;for(let g=e.length;g>0;g--)A[g]&&(i[g]=o,o+=e[g]);return i}_retrieveElementSize(e){let A=this._elemSizeCache.get(e);if(A)return A;let i=e.getBoundingClientRect(),o={width:i.width,height:i.height};return this._resizeObserver&&(this._elemSizeCache.set(e,o),this._resizeObserver.observe(e,{box:"border-box"})),o}_updateStickyColumnReplayQueue(e){this._removeFromStickyColumnReplayQueue(e.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(e)}_removeFromStickyColumnReplayQueue(e){let A=new Set(e);for(let i of this._updatedStickyColumnsParamsToReplay)i.rows=i.rows.filter(o=>!A.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(i=>!!i.rows.length)}_updateCachedSizes(e){let A=!1;for(let i of e){let o=i.borderBoxSize?.length?{width:i.borderBoxSize[0].inlineSize,height:i.borderBoxSize[0].blockSize}:{width:i.contentRect.width,height:i.contentRect.height};o.width!==this._elemSizeCache.get(i.target)?.width&&JO(i.target)&&(A=!0),this._elemSizeCache.set(i.target,o)}A&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let i of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(i.rows,i.stickyStartStates,i.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}_afterNextRender(e){this._tableInjector?Ke(e,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{e.earlyRead?.(),e.write()})}};function JO(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(e=>t.classList.contains(e))}var KE=new k("CDK_SPL");var LD=(()=>{class t{viewContainer=Q(Ce);elementRef=Q(Z);constructor(){let A=Q(bi);A._rowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","rowOutlet",""]]})}return t})(),KD=(()=>{class t{viewContainer=Q(Ce);elementRef=Q(Z);constructor(){let A=Q(bi);A._headerRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),UD=(()=>{class t{viewContainer=Q(Ce);elementRef=Q(Z);constructor(){let A=Q(bi);A._footerRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),_D=(()=>{class t{viewContainer=Q(Ce);elementRef=Q(Z);constructor(){let A=Q(bi);A._noDataRowOutlet=this,A._outletAssigned()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})();var xD=(()=>{class t{_differs=Q(Ao);_changeDetectorRef=Q(zA);_elementRef=Q(Z);_dir=Q(Ne,{optional:!0});_platform=Q(HA);_viewRepeater=Q(ga);_coalescedStyleScheduler=Q(LE);_viewportRuler=Q(Ai);_stickyPositioningListener=Q(KE,{optional:!0,skipSelf:!0});_document=Q(lA);_data;_onDestroy=new K;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let A=this._elementRef.nativeElement.getAttribute("role");return A==="grid"||A==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(A){this._trackByFn=A}_trackByFn;get dataSource(){return this._dataSource}set dataSource(A){this._dataSource!==A&&this._switchDataSource(A)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(A){this._multiTemplateDataRows=A,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(A){this._fixedLayout=A,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new $;viewChange=new Ae({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=Q(yA);constructor(){Q(new Dt("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((A,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(DA(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(A=>{A?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),DE(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let A=this._dataDiffer.diff(this._renderRows);if(!A){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(A,i,(o,g,n)=>this._getEmbeddedViewArgs(o.item,n),o=>o.item.data,o=>{o.operation===Xs.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),A.forEachIdentityChange(o=>{let g=i.get(o.currentIndex);g.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(A){this._customColumnDefs.add(A)}removeColumnDef(A){this._customColumnDefs.delete(A)}addRowDef(A){this._customRowDefs.add(A)}removeRowDef(A){this._customRowDefs.delete(A)}addHeaderRowDef(A){this._customHeaderRowDefs.add(A),this._headerRowDefChanged=!0}removeHeaderRowDef(A){this._customHeaderRowDefs.delete(A),this._headerRowDefChanged=!0}addFooterRowDef(A){this._customFooterRowDefs.add(A),this._footerRowDefChanged=!0}removeFooterRowDef(A){this._customFooterRowDefs.delete(A),this._footerRowDefChanged=!0}setNoDataRow(A){this._customNoDataRow=A}updateStickyHeaderRowStyles(){let A=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=iF(this._headerRowOutlet,"thead");o&&(o.style.display=A.length?"":"none")}let i=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(A,["top"]),this._stickyStyler.stickRows(A,i,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let A=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=iF(this._footerRowOutlet,"tfoot");o&&(o.style.display=A.length?"":"none")}let i=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(A,["bottom"]),this._stickyStyler.stickRows(A,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let A=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...A,...i,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),A.forEach((g,n)=>{this._addStickyColumnStyles([g],this._headerRowDefs[n])}),this._rowDefs.forEach(g=>{let n=[];for(let s=0;s<i.length;s++)this._renderRows[s].rowDef===g&&n.push(i[s]);this._addStickyColumnStyles(n,g)}),o.forEach((g,n)=>{this._addStickyColumnStyles([g],this._footerRowDefs[n])}),Array.from(this._columnDefsByName.values()).forEach(g=>g.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let A=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o<this._data.length;o++){let g=this._data[o],n=this._getRenderRowsForData(g,o,i.get(g));this._cachedRenderRowsMap.has(g)||this._cachedRenderRowsMap.set(g,new WeakMap);for(let s=0;s<n.length;s++){let r=n[s],I=this._cachedRenderRowsMap.get(r.data);I.has(r.rowDef)?I.get(r.rowDef).push(r):I.set(r.rowDef,[r]),A.push(r)}}return A}_getRenderRowsForData(A,i,o){return this._getRowDefs(A,i).map(n=>{let s=o&&o.has(n)?o.get(n):[];if(s.length){let r=s.shift();return r.dataIndex=i,r}else return{data:A,rowDef:n,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),NE(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=NE(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=NE(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=NE(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let A=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&A.length>1,this._defaultRowDef=A[0]}_renderUpdatedColumns(){let A=(n,s)=>{let r=!!s.getColumnsDiff();return n||r},i=this._rowDefs.reduce(A,!1);i&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(A,!1);o&&this._forceRenderHeaderRows();let g=this._footerRowDefs.reduce(A,!1);return g&&this._forceRenderFooterRows(),i||o||g}_switchDataSource(A){this._data=[],DE(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),A||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=A}_observeRenderChanges(){if(!this.dataSource)return;let A;DE(this.dataSource)?A=this.dataSource.connect(this):Wo(this.dataSource)?A=this.dataSource:Array.isArray(this.dataSource)&&(A=tA(this.dataSource)),this._renderChangeSubscription=A.pipe(DA(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((A,i)=>this._renderRow(this._headerRowOutlet,A,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((A,i)=>this._renderRow(this._footerRowOutlet,A,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(A,i){let o=Array.from(i?.columns||[]).map(s=>{let r=this._columnDefsByName.get(s);return r}),g=o.map(s=>s.sticky),n=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(A,g,n,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(A){let i=[];for(let o=0;o<A.viewContainer.length;o++){let g=A.viewContainer.get(o);i.push(g.rootNodes[0])}return i}_getRowDefs(A,i){if(this._rowDefs.length==1)return[this._rowDefs[0]];let o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter(g=>!g.when||g.when(i,A));else{let g=this._rowDefs.find(n=>n.when&&n.when(i,A))||this._defaultRowDef;g&&o.push(g)}return o.length,o}_getEmbeddedViewArgs(A,i){let o=A.rowDef,g={$implicit:A.data};return{templateRef:o.template,context:g,index:i}}_renderRow(A,i,o,g={}){let n=A.viewContainer.createEmbeddedView(i.template,g,o);return this._renderCellTemplateForItem(i,g),n}_renderCellTemplateForItem(A,i){for(let o of this._getCellTemplates(A))Mn.mostRecentCellOutlet&&Mn.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let A=this._rowOutlet.viewContainer;for(let i=0,o=A.length;i<o;i++){let n=A.get(i).context;n.count=o,n.first=i===0,n.last=i===o-1,n.even=i%2===0,n.odd=!n.even,this.multiTemplateDataRows?(n.dataIndex=this._renderRows[i].dataIndex,n.renderIndex=i):n.index=this._renderRows[i].dataIndex}}_getCellTemplates(A){return!A||!A.columns?[]:Array.from(A.columns,i=>{let o=this._columnDefsByName.get(i);return A.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let A=(i,o)=>i||o.hasStickyChanged();this._headerRowDefs.reduce(A,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(A,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(A,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let A=this._dir?this._dir.value:"ltr";this._stickyStyler=new FD(this._isNativeHtmlTable,this.stickyCssClass,A,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:tA()).pipe(DA(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(A){return A.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let A=this._customNoDataRow||this._noDataRow;if(!A)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(i){let g=o.createEmbeddedView(A.templateRef),n=g.rootNodes[0];g.rootNodes.length===1&&n?.nodeType===this._document.ELEMENT_NODE&&(n.setAttribute("role","row"),n.classList.add(A._contentClassName))}else o.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,o,g){if(i&1&&(jA(g,sF,5),jA(g,rr,5),jA(g,xE,5),jA(g,ca,5),jA(g,ND,5)),i&2){let n;z(n=j())&&(o._noDataRow=n.first),z(n=j())&&(o._contentColumnDefs=n),z(n=j())&&(o._contentRowDefs=n),z(n=j())&&(o._contentHeaderRowDefs=n),z(n=j())&&(o._contentFooterRowDefs=n)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,o){i&2&&gA("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",iA],fixedLayout:[2,"fixedLayout","fixedLayout",iA]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[KA([{provide:bi,useExisting:t},{provide:ga,useClass:$s},{provide:LE,useClass:bD},{provide:KE,useValue:null}])],ngContentSelectors:UO,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(qA(KO),rA(0),rA(1,1),_(2,_O,1,0)(3,xO,7,0)(4,YO,4,0)),i&2&&(f(2),wA(o._isServer?2:-1),f(),wA(o._isNativeHtmlTable?3:4))},dependencies:[KD,LD,_D,UD],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function NE(t,e){return t.concat(Array.from(e))}function iF(t,e){let A=e.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let o=i.nodeType===1?i.nodeName:null;if(o===A)return i;if(o==="TABLE")break;i=i.parentNode}return null}var rF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[na]})}return t})();var HO=[[["caption"]],[["colgroup"],["col"]],"*"],TO=["caption","colgroup, col","*"];function OO(t,e){t&1&&rA(0,2)}function PO(t,e){t&1&&(u(0,"thead",0),Je(1,1),m(),u(2,"tbody",2),Je(3,3)(4,4),m(),u(5,"tfoot",0),Je(6,5),m())}function ZO(t,e){t&1&&Je(0,1)(1,3)(2,4)(3,5)}var IF=(()=>{class t extends xD{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,o){i&2&&gA("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[KA([{provide:xD,useExisting:t},{provide:bi,useExisting:t},{provide:LE,useClass:bD},{provide:ga,useClass:$s},{provide:KE,useValue:null}]),EA],ngContentSelectors:TO,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,o){i&1&&(qA(HO),rA(0),rA(1,1),_(2,OO,1,0)(3,PO,7,0)(4,ZO,4,0)),i&2&&(f(2),wA(o._isServer?2:-1),f(),wA(o._isNativeHtmlTable?3:4))},dependencies:[KD,LD,_D,UD],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),aF=(()=>{class t extends UE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matCellDef",""]],features:[KA([{provide:UE,useExisting:t}]),EA]})}return t})(),CF=(()=>{class t extends _E{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matHeaderCellDef",""]],features:[KA([{provide:_E,useExisting:t}]),EA]})}return t})();var BF=(()=>{class t extends rr{get name(){return this._name}set name(A){this._setNameInput(A)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[KA([{provide:rr,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),EA]})}return t})(),QF=(()=>{class t extends gF{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[EA]})}return t})();var EF=(()=>{class t extends nF{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[EA]})}return t})();var cF=(()=>{class t extends ca{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",iA]},features:[KA([{provide:ca,useExisting:t}]),EA]})}return t})();var lF=(()=>{class t extends xE{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[KA([{provide:xE,useExisting:t}]),EA]})}return t})(),dF=(()=>{class t extends GD{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[KA([{provide:GD,useExisting:t}]),EA],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Je(0,0)},dependencies:[Mn],encapsulation:2})}return t})();var hF=(()=>{class t extends vD{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[KA([{provide:vD,useExisting:t}]),EA],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,o){i&1&&Je(0,0)},dependencies:[Mn],encapsulation:2})}return t})();var uF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,rF,SA]})}return t})(),qO=9007199254740991,la=class extends uE{_data;_renderData=new Ae([]);_filter=new Ae("");_internalPageChanges=new K;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(e){e=Array.isArray(e)?e:[],this._data.next(e),this._renderChangesSubscription||this._filterData(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(e,A)=>{let i=e[A];if(Ku(i)){let o=Number(i);return o<qO?o:i}return i};sortData=(e,A)=>{let i=A.active,o=A.direction;return!i||o==""?e:e.sort((g,n)=>{let s=this.sortingDataAccessor(g,i),r=this.sortingDataAccessor(n,i),I=typeof s,B=typeof r;I!==B&&(I==="number"&&(s+=""),B==="number"&&(r+=""));let c=0;return s!=null&&r!=null?s>r?c=1:s<r&&(c=-1):s!=null?c=1:r!=null&&(c=-1),c*(o=="asc"?1:-1)})};filterPredicate=(e,A)=>{let i=A.trim().toLowerCase();return Object.values(e).some(o=>`${o}`.toLowerCase().includes(i))};constructor(e=[]){super(),this._data=new Ae(e),this._updateChangeSubscription()}_updateChangeSubscription(){let e=this._sort?De(this._sort.sortChange,this._sort.initialized):tA(null),A=this._paginator?De(this._paginator.page,this._internalPageChanges,this._paginator.initialized):tA(null),i=this._data,o=ai([i,this._filter]).pipe(oA(([s])=>this._filterData(s))),g=ai([o,e]).pipe(oA(([s])=>this._orderData(s))),n=ai([g,A]).pipe(oA(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=n.subscribe(s=>this._renderData.next(s))}_filterData(e){return this.filteredData=this.filter==null||this.filter===""?e:e.filter(A=>this.filterPredicate(A,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;let A=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(A,A+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{let A=this.paginator;if(A&&(A.length=e,A.pageIndex>0)){let i=Math.ceil(A.length/A.pageSize)-1||0,o=Math.min(A.pageIndex,i);o!==A.pageIndex&&(A.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var $e=[];for(let t=0;t<256;++t)$e.push((t+256).toString(16).slice(1));function DF(t,e=0){return($e[t[e+0]]+$e[t[e+1]]+$e[t[e+2]]+$e[t[e+3]]+"-"+$e[t[e+4]]+$e[t[e+5]]+"-"+$e[t[e+6]]+$e[t[e+7]]+"-"+$e[t[e+8]]+$e[t[e+9]]+"-"+$e[t[e+10]]+$e[t[e+11]]+$e[t[e+12]]+$e[t[e+13]]+$e[t[e+14]]+$e[t[e+15]]).toLowerCase()}var YD,WO=new Uint8Array(16);function JD(){if(!YD){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");YD=crypto.getRandomValues.bind(crypto)}return YD(WO)}var zO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),HD={randomUUID:zO};function jO(t,e,A){if(HD.randomUUID&&!e&&!t)return HD.randomUUID();t=t||{};let i=t.random??t.rng?.()??JD();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){if(A=A||0,A<0||A+16>e.length)throw new RangeError(`UUID byte range ${A}:${A+15} is out of buffer bounds`);for(let o=0;o<16;++o)e[A+o]=i[o];return e}return DF(i)}var da=jO;var co=class t{constructor(e){this.http=e}apiServerDomain=ot.getApiServerBaseUrl();getEvalSets(e){if(this.apiServerDomain!=null){let A=this.apiServerDomain+`/apps/${e}/eval_sets`;return this.http.get(A)}return new QA}createNewEvalSet(e,A){let i=this.apiServerDomain+`/apps/${e}/eval_sets/${A}`;return this.http.post(i,{})}listEvalCases(e,A){let i=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/evals`;return this.http.get(i,{})}addCurrentSession(e,A,i,o,g){let n=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/add_session`;return this.http.post(n,{eval_id:i,session_id:o,user_id:g})}runEval(e,A,i,o){let g=this.apiServerDomain+`/apps/${e}/eval_sets/${A}/run_eval`;return this.http.post(g,{eval_ids:i,eval_metrics:o})}static \u0275fac=function(A){return new(A||t)(J(it))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var XO=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return t})(),mF=Co({passive:!0}),fF=(()=>{class t{_platform=Q(HA);_ngZone=Q(X);_styleLoader=Q(be);_monitoredElements=new Map;constructor(){}monitor(A){if(!this._platform.isBrowser)return ve;this._styleLoader.load(XO);let i=Ft(A),o=this._monitoredElements.get(i);if(o)return o.subject;let g=new K,n="cdk-text-field-autofilled",s=r=>{r.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(n)?(i.classList.add(n),this._ngZone.run(()=>g.next({target:r.target,isAutofilled:!0}))):r.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(n)&&(i.classList.remove(n),this._ngZone.run(()=>g.next({target:r.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",s,mF),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:g,unlisten:()=>{i.removeEventListener("animationstart",s,mF)}}),g}stopMonitoring(A){let i=Ft(A),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((A,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var wF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({})}return t})();var $O=new k("MAT_INPUT_VALUE_ACCESSOR"),A2=["button","checkbox","file","hidden","image","radio","range","reset","submit"],e2=new k("MAT_INPUT_CONFIG"),kg=(()=>{class t{_elementRef=Q(Z);_platform=Q(HA);ngControl=Q(pi,{optional:!0,self:!0});_autofillMonitor=Q(fF);_ngZone=Q(X);_formField=Q(Ca,{optional:!0});_renderer=Q(Me);_uid=Q(ce).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=Q(e2,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new K;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(A){this._disabled=we(A),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(A){this._id=A||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Ms.required)??!1}set required(A){this._required=we(A)}_required;get type(){return this._type}set type(A){let i=this._type;this._type=A||"text",this._validateType(),!this._isTextarea&&Gu().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==i&&this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(A){this._errorStateTracker.matcher=A}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(A){A!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(A):this._inputValueAccessor.value=A,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(A){this._readonly=we(A)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(A){this._errorStateTracker.errorState=A}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(A=>Gu().has(A));constructor(){let A=Q(GI,{optional:!0}),i=Q(vI,{optional:!0}),o=Q(EE),g=Q($O,{optional:!0,self:!0}),n=this._elementRef.nativeElement,s=n.nodeName.toLowerCase();g?gg(g.value)?this._signalBasedValueAccessor=g:this._inputValueAccessor=g:this._inputValueAccessor=n,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(n,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new qs(o,this.ngControl,i,A,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=n.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&aI(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(A=>{this.autofilled=A.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}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(A){this._elementRef.nativeElement.focus(A)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(A){if(A!==this.focused){if(!this._isNativeSelect&&A&&this.disabled&&this.disabledInteractive){let i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.setSelectionRange(0,0)}this.focused=A,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let A=this._elementRef.nativeElement.value;this._previousNativeValue!==A&&(this._previousNativeValue=A,this.stateChanges.next())}_dirtyCheckPlaceholder(){let A=this._getPlaceholder();if(A!==this._previousPlaceholder){let i=this._elementRef.nativeElement;this._previousPlaceholder=A,A?i.setAttribute("placeholder",A):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){A2.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let A=this._elementRef.nativeElement.validity;return A&&A.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let A=this._elementRef.nativeElement,i=A.options[0];return this.focused||A.multiple||!this.empty||!!(A.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(A){let i=this._elementRef.nativeElement,o=i.getAttribute("aria-describedby"),g;if(o){let n=this._formFieldDescribedBy||A;g=A.concat(o.split(" ").filter(s=>s&&!n.includes(s)))}else g=A;this._formFieldDescribedBy=A,g.length?i.setAttribute("aria-describedby",g.join(" ")):i.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let A=this._elementRef.nativeElement;return this._isNativeSelect&&(A.multiple||A.size>1)}_iOSKeyupListener=A=>{let i=A.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener))}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,o){i&1&&x("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),i&2&&(yt("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),IA("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),gA("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",iA]},exportAs:["matInput"],features:[KA([{provide:aa,useExisting:t}]),VA]})}return t})(),YE=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,To,To,wF,SA]})}return t})();var ha=class t{constructor(e,A,i){this.evalService=e;this.data=A;this.dialogRef=i}newCaseId="case"+da().slice(0,6);createNewEvalCase(){!this.newCaseId||this.newCaseId==""?alert("Cannot create eval set with empty id!"):this.evalService.addCurrentSession(this.data.appName,this.data.evalSetId,this.newCaseId,this.data.sessionId,this.data.userId).subscribe(e=>{console.log(e),this.dialogRef.close(!0)})}static \u0275fac=function(A){return new(A||t)(AA(co),AA(Oo),AA(Vt))};static \u0275cmp=O({type:t,selectors:[["app-add-eval-session-dialog"]],standalone:!1,decls:11,vars:1,consts:[["mat-dialog-title",""],[2,"padding-left","20px","padding-right","24px"],["matInput","",3,"ngModelChange","ngModel"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(A,i){A&1&&(u(0,"h2",0),v(1,"Add Current Session To Eval Set"),m(),u(2,"mat-dialog-content"),v(3,` Please enter the eval case name
`),m(),u(4,"mat-form-field",1)(5,"input",2),fi("ngModelChange",function(g){return $i(i.newCaseId,g)||(i.newCaseId=g),g}),m()(),u(6,"mat-dialog-actions",3)(7,"button",4),v(8,"Cancel"),m(),u(9,"button",5),x("click",function(){return i.createNewEvalCase()}),v(10,"Create"),m()()),A&2&&(f(5),mi("ngModel",i.newCaseId))},dependencies:[io,oo,yi,Eo,kg,bt,yg,Mg,Rg,nr],encapsulation:2})};var ua=class t{constructor(e,A,i){this.evalService=e;this.data=A;this.dialogRef=i}newSetId="evalset"+da().slice(0,6);createNewEvalSet(){!this.newSetId||this.newSetId==""?alert("Cannot create eval set with empty id!"):this.evalService.createNewEvalSet(this.data.appName,this.newSetId).subscribe(e=>{this.dialogRef.close(!0)})}static \u0275fac=function(A){return new(A||t)(AA(co),AA(Oo),AA(Vt))};static \u0275cmp=O({type:t,selectors:[["app-new-eval-set-dialog-component"]],standalone:!1,decls:11,vars:1,consts:[["mat-dialog-title",""],[2,"padding-left","20px","padding-right","24px"],["matInput","",3,"ngModelChange","ngModel"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(A,i){A&1&&(u(0,"h2",0),v(1,"Create New Eval Set"),m(),u(2,"mat-dialog-content"),v(3,` Please enter the eval set name
`),m(),u(4,"mat-form-field",1)(5,"input",2),fi("ngModelChange",function(g){return $i(i.newSetId,g)||(i.newSetId=g),g}),m()(),u(6,"mat-dialog-actions",3)(7,"button",4),v(8,"Cancel"),m(),u(9,"button",5),x("click",function(){return i.createNewEvalSet()}),v(10,"Create"),m()()),A&2&&(f(5),mi("ngModel",i.newSetId))},dependencies:[io,oo,yi,Eo,kg,bt,yg,Mg,Rg,nr],encapsulation:2})};var Si=class t{constructor(e){this.http=e}apiServerDomain=ot.getApiServerBaseUrl();createSession(e,A){if(this.apiServerDomain!=null){let i=this.apiServerDomain+`/apps/${A}/users/${e}/sessions`;return this.http.post(i,null)}return new QA}listSessions(e,A){if(this.apiServerDomain!=null){let i=this.apiServerDomain+`/apps/${A}/users/${e}/sessions`;return this.http.get(i)}return new QA}deleteSession(e,A,i){let o=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}`;return this.http.delete(o)}getSession(e,A,i){let o=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}`;return this.http.get(o)}static \u0275fac=function(A){return new(A||t)(J(it))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var t2=["*"],HE;function i2(){if(HE===void 0&&(HE=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(HE=t.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return HE}function Da(t){return i2()?.createHTML(t)||t}function pF(t){return Error(`Unable to find icon with the name "${t}"`)}function o2(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function yF(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function MF(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Po=class{url;svgText;options;svgElement;constructor(e,A,i){this.url=e,this.svgText=A,this.options=i}},g2=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(A,i,o,g){this._httpClient=A,this._sanitizer=i,this._errorHandler=g,this._document=o}addSvgIcon(A,i,o){return this.addSvgIconInNamespace("",A,i,o)}addSvgIconLiteral(A,i,o){return this.addSvgIconLiteralInNamespace("",A,i,o)}addSvgIconInNamespace(A,i,o,g){return this._addSvgIconConfig(A,i,new Po(o,null,g))}addSvgIconResolver(A){return this._resolvers.push(A),this}addSvgIconLiteralInNamespace(A,i,o,g){let n=this._sanitizer.sanitize(Ve.HTML,o);if(!n)throw MF(o);let s=Da(n);return this._addSvgIconConfig(A,i,new Po("",s,g))}addSvgIconSet(A,i){return this.addSvgIconSetInNamespace("",A,i)}addSvgIconSetLiteral(A,i){return this.addSvgIconSetLiteralInNamespace("",A,i)}addSvgIconSetInNamespace(A,i,o){return this._addSvgIconSetConfig(A,new Po(i,null,o))}addSvgIconSetLiteralInNamespace(A,i,o){let g=this._sanitizer.sanitize(Ve.HTML,i);if(!g)throw MF(i);let n=Da(g);return this._addSvgIconSetConfig(A,new Po("",n,o))}registerFontClassAlias(A,i=A){return this._fontCssClassesByAlias.set(A,i),this}classNameForFontAlias(A){return this._fontCssClassesByAlias.get(A)||A}setDefaultFontSetClass(...A){return this._defaultFontSetClass=A,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(A){let i=this._sanitizer.sanitize(Ve.RESOURCE_URL,A);if(!i)throw yF(A);let o=this._cachedIconsByUrl.get(i);return o?tA(TE(o)):this._loadSvgIconFromConfig(new Po(A,null)).pipe(Ie(g=>this._cachedIconsByUrl.set(i,g)),oA(g=>TE(g)))}getNamedSvgIcon(A,i=""){let o=RF(i,A),g=this._svgIconConfigs.get(o);if(g)return this._getSvgFromConfig(g);if(g=this._getIconConfigFromResolvers(i,A),g)return this._svgIconConfigs.set(o,g),this._getSvgFromConfig(g);let n=this._iconSetConfigs.get(i);return n?this._getSvgFromIconSetConfigs(A,n):Vo(pF(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(A){return A.svgText?tA(TE(this._svgElementFromConfig(A))):this._loadSvgIconFromConfig(A).pipe(oA(i=>TE(i)))}_getSvgFromIconSetConfigs(A,i){let o=this._extractIconWithNameFromAnySet(A,i);if(o)return tA(o);let g=i.filter(n=>!n.svgText).map(n=>this._loadSvgIconSetFromConfig(n).pipe(lt(s=>{let I=`Loading icon set URL: ${this._sanitizer.sanitize(Ve.RESOURCE_URL,n.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(I)),tA(null)})));return Gr(g).pipe(oA(()=>{let n=this._extractIconWithNameFromAnySet(A,i);if(!n)throw pF(A);return n}))}_extractIconWithNameFromAnySet(A,i){for(let o=i.length-1;o>=0;o--){let g=i[o];if(g.svgText&&g.svgText.toString().indexOf(A)>-1){let n=this._svgElementFromConfig(g),s=this._extractSvgIconFromSet(n,A,g.options);if(s)return s}}return null}_loadSvgIconFromConfig(A){return this._fetchIcon(A).pipe(Ie(i=>A.svgText=i),oA(()=>this._svgElementFromConfig(A)))}_loadSvgIconSetFromConfig(A){return A.svgText?tA(null):this._fetchIcon(A).pipe(Ie(i=>A.svgText=i))}_extractSvgIconFromSet(A,i,o){let g=A.querySelector(`[id="${i}"]`);if(!g)return null;let n=g.cloneNode(!0);if(n.removeAttribute("id"),n.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(n,o);if(n.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(n),o);let s=this._svgElementFromString(Da("<svg></svg>"));return s.appendChild(n),this._setSvgAttributes(s,o)}_svgElementFromString(A){let i=this._document.createElement("DIV");i.innerHTML=A;let o=i.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(A){let i=this._svgElementFromString(Da("<svg></svg>")),o=A.attributes;for(let g=0;g<o.length;g++){let{name:n,value:s}=o[g];n!=="id"&&i.setAttribute(n,s)}for(let g=0;g<A.childNodes.length;g++)A.childNodes[g].nodeType===this._document.ELEMENT_NODE&&i.appendChild(A.childNodes[g].cloneNode(!0));return i}_setSvgAttributes(A,i){return A.setAttribute("fit",""),A.setAttribute("height","100%"),A.setAttribute("width","100%"),A.setAttribute("preserveAspectRatio","xMidYMid meet"),A.setAttribute("focusable","false"),i&&i.viewBox&&A.setAttribute("viewBox",i.viewBox),A}_fetchIcon(A){let{url:i,options:o}=A,g=o?.withCredentials??!1;if(!this._httpClient)throw o2();if(i==null)throw Error(`Cannot fetch icon from URL "${i}".`);let n=this._sanitizer.sanitize(Ve.RESOURCE_URL,i);if(!n)throw yF(i);let s=this._inProgressUrlFetches.get(n);if(s)return s;let r=this._httpClient.get(n,{responseType:"text",withCredentials:g}).pipe(oA(I=>Da(I)),Hi(()=>this._inProgressUrlFetches.delete(n)),Lr());return this._inProgressUrlFetches.set(n,r),r}_addSvgIconConfig(A,i,o){return this._svgIconConfigs.set(RF(A,i),o),this}_addSvgIconSetConfig(A,i){let o=this._iconSetConfigs.get(A);return o?o.push(i):this._iconSetConfigs.set(A,[i]),this}_svgElementFromConfig(A){if(!A.svgElement){let i=this._svgElementFromString(A.svgText);this._setSvgAttributes(i,A.options),A.svgElement=i}return A.svgElement}_getIconConfigFromResolvers(A,i){for(let o=0;o<this._resolvers.length;o++){let g=this._resolvers[o](i,A);if(g)return n2(g)?new Po(g.url,null,g.options):new Po(g,null)}}static \u0275fac=function(i){return new(i||t)(J(it,8),J(an),J(lA,8),J(mt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function TE(t){return t.cloneNode(!0)}function RF(t,e){return t+":"+e}function n2(t){return!!(t.url&&t.options)}var s2=new k("MAT_ICON_DEFAULT_OPTIONS"),r2=new k("mat-icon-location",{providedIn:"root",factory:I2});function I2(){let t=Q(lA),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}var kF=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],a2=kF.map(t=>`[${t}]`).join(", "),C2=/^url\(['"]?#(.*?)['"]?\)$/,Ir=(()=>{class t{_elementRef=Q(Z);_iconRegistry=Q(g2);_location=Q(r2);_errorHandler=Q(mt);_defaultColor;get color(){return this._color||this._defaultColor}set color(A){this._color=A}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(A){A!==this._svgIcon&&(A?this._updateSvgIcon(A):this._svgIcon&&this._clearSvgElement(),this._svgIcon=A)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(A){let i=this._cleanupFontValue(A);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(A){let i=this._cleanupFontValue(A);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=NA.EMPTY;constructor(){let A=Q(new Dt("aria-hidden"),{optional:!0}),i=Q(s2,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),A||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(A){if(!A)return["",""];let i=A.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${A}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let A=this._elementsWithExternalReferences;if(A&&A.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(A){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(A),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(A)}_clearSvgElement(){let A=this._elementRef.nativeElement,i=A.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let o=A.childNodes[i];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let A=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>A.classList.remove(o)),i.forEach(o=>A.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&A.classList.remove(this._previousFontIconClass),this.fontIcon&&A.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(A){return typeof A=="string"?A.trim().split(" ")[0]:A}_prependPathToReferences(A){let i=this._elementsWithExternalReferences;i&&i.forEach((o,g)=>{o.forEach(n=>{g.setAttribute(n.name,`url('${A}#${n.value}')`)})})}_cacheChildrenWithExternalReferences(A){let i=A.querySelectorAll(a2),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let g=0;g<i.length;g++)kF.forEach(n=>{let s=i[g],r=s.getAttribute(n),I=r?r.match(C2):null;if(I){let B=o.get(s);B||(B=[],o.set(s,B)),B.push({name:n,value:I[1]})}})}_updateSvgIcon(A){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),A){let[i,o]=this._splitIconName(A);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(de(1)).subscribe(g=>this._setSvgElement(g),g=>{let n=`Error retrieving icon ${i}:${o}! ${g.message}`;this._errorHandler.handleError(new Error(n))})}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,o){i&2&&(IA("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Xe(o.color?"mat-"+o.color:""),gA("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",iA],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:t2,decls:1,vars:0,template:function(i,o){i&1&&(qA(),rA(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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 t})(),FF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,SA]})}return t})();var B2=["determinateSpinner"];function Q2(t,e){if(t&1&&(at(),u(0,"svg",11),W(1,"circle",12),m()),t&2){let A=b();IA("viewBox",A._viewBox()),f(),Ct("stroke-dasharray",A._strokeCircumference(),"px")("stroke-dashoffset",A._strokeCircumference()/2,"px")("stroke-width",A._circleStrokeWidth(),"%"),IA("r",A._circleRadius())}}var E2=new k("mat-progress-spinner-default-options",{providedIn:"root",factory:c2});function c2(){return{diameter:bF}}var bF=100,l2=10,SF=(()=>{class t{_elementRef=Q(Z);_noopAnimations;get color(){return this._color||this._defaultColor}set color(A){this._color=A}_color;_defaultColor="primary";_determinateCircle;constructor(){let A=Q(ee,{optional:!0}),i=Q(E2);this._noopAnimations=A==="NoopAnimations"&&!!i&&!i._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",i&&(i.color&&(this.color=this._defaultColor=i.color),i.diameter&&(this.diameter=i.diameter),i.strokeWidth&&(this.strokeWidth=i.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(A){this._value=Math.max(0,Math.min(100,A||0))}_value=0;get diameter(){return this._diameter}set diameter(A){this._diameter=A||0}_diameter=bF;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(A){this._strokeWidth=A||0}_strokeWidth;_circleRadius(){return(this.diameter-l2)/2}_viewBox(){let A=this._circleRadius()*2+this.strokeWidth;return`0 0 ${A} ${A}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,o){if(i&1&&cA(B2,5),i&2){let g;z(g=j())&&(o._determinateCircle=g.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,o){i&2&&(IA("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Xe("mat-"+o.color),Ct("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),gA("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Fe],diameter:[2,"diameter","diameter",Fe],strokeWidth:[2,"strokeWidth","strokeWidth",Fe]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,o){if(i&1&&(_(0,Q2,2,8,"ng-template",null,0,II),u(2,"div",2,1),at(),u(4,"svg",3),W(5,"circle",4),m()(),Xg(),u(6,"div",5)(7,"div",6)(8,"div",7),Je(9,8),m(),u(10,"div",9),Je(11,8),m(),u(12,"div",10),Je(13,8),m()()()),i&2){let g=He(1);f(4),IA("viewBox",o._viewBox()),f(),Ct("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),IA("r",o._circleRadius()),f(4),F("ngTemplateOutlet",g),f(2),F("ngTemplateOutlet",g),f(2),F("ngTemplateOutlet",g)}},dependencies:[QI],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0})}return t})();var NF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA]})}return t})();function h2(t,e){if(t&1){let A=aA();u(0,"div",3)(1,"div"),v(2,"All eval sets"),m(),u(3,"mat-icon",4),x("click",function(){H(A);let o=b();return T(o.openNewEvalSetDialog())}),v(4,"add"),m()()}}function u2(t,e){if(t&1){let A=aA();u(0,"div")(1,"div",5)(2,"div",6),v(3," Create New Evaluation Set "),m(),u(4,"div",7),v(5," An evaluation set is a curated collection of evaluation cases, where each case includes input-output examples for assessing agent performance. "),m(),u(6,"div",8),x("click",function(){H(A);let o=b();return T(o.openNewEvalSetDialog())}),v(7," Create Evaluation Set "),m()()()}}function D2(t,e){if(t&1){let A=aA();u(0,"div",10),x("click",function(){let o=H(A).$implicit,g=b(2);return T(g.selectEvalSet(o))}),u(1,"div",11)(2,"span",12),v(3,"folder"),m(),u(4,"div",13),v(5),m()(),u(6,"div")(7,"mat-icon",14),v(8,"chevron_right"),m()()()}if(t&2){let A=e.$implicit;f(5),PA(A)}}function m2(t,e){if(t&1&&(u(0,"div"),_(1,D2,9,1,"div",9),m()),t&2){let A=b();f(),F("ngForOf",A.evalsets)}}function f2(t,e){if(t&1){let A=aA();u(0,"th",29)(1,"mat-checkbox",30),x("change",function(o){H(A);let g=b(3);return T(o?g.toggleAllRows():null)}),m()()}if(t&2){let A=b(3);f(),F("checked",A.selection.hasValue()&&A.isAllSelected())("indeterminate",A.selection.hasValue()&&!A.isAllSelected())}}function w2(t,e){if(t&1){let A=aA();u(0,"td",31)(1,"mat-checkbox",32),x("click",function(o){return H(A),T(o.stopPropagation())})("change",function(o){let g=H(A).$implicit,n=b(3);return T(o?n.selection.toggle(g):null)}),m()()}if(t&2){let A=e.$implicit,i=b(3);f(),F("checked",i.selection.isSelected(A))}}function p2(t,e){t&1&&(u(0,"th",29),v(1," Case ID "),m())}function y2(t,e){if(t&1&&(u(0,"td",31),v(1),m()),t&2){let A=e.$implicit;f(),te(" ",A," ")}}function M2(t,e){t&1&&(u(0,"th",29),v(1," Result "),m())}function R2(t,e){if(t&1){let A=aA();u(0,"button",35),x("click",function(){H(A);let o=b().$implicit,g=b(3);return T(g.getSession(o))}),u(1,"span",36),v(2),m(),u(3,"div",37),v(4),m()()}if(t&2){let A=b().$implicit,i=b(3);F("ngClass",i.getEvalResultForCase(A)==1?"result-btn pass":"result-btn fail"),f(2),te(" ",i.getEvalResultForCase(A)==1?"check":"close"," "),f(2),te("",i.getEvalResultForCase(A)==1?"PASS":"FAIL"," ")}}function k2(t,e){if(t&1&&(u(0,"td",33),_(1,R2,5,3,"button",34),m()),t&2){let A=e.$implicit,i=b(3);f(),F("ngIf",i.getEvalResultForCase(A))}}function F2(t,e){t&1&&W(0,"tr",38)}function b2(t,e){t&1&&W(0,"tr",39)}function S2(t,e){if(t&1){let A=aA();u(0,"div")(1,"button",18),x("click",function(){H(A);let o=b(2);return T(o.runEval())}),v(2,"Run Evaluation"),m(),u(3,"div",19)(4,"table",20),ui(5,21),_(6,f2,2,2,"th",22)(7,w2,2,1,"td",23),Di(),ui(8,24),_(9,p2,2,0,"th",22)(10,y2,2,1,"td",23),Di(),ui(11,25),_(12,M2,2,0,"th",22)(13,k2,2,1,"td",26),Di(),_(14,F2,1,0,"tr",27)(15,b2,1,0,"tr",28),m()()()}if(t&2){let A=b(2);f(4),F("dataSource",A.dataSource),f(10),F("matHeaderRowDef",A.displayedColumns),f(),F("matRowDefColumns",A.displayedColumns)}}function N2(t,e){if(t&1){let A=aA();u(0,"button",40),x("click",function(){H(A);let o=b(2);return T(o.openNewEvalCaseDialog())}),u(1,"div",41)(2,"mat-icon"),v(3,"add"),m(),u(4,"div",42),v(5),m()()()}if(t&2){let A=b(2);f(5),te(" Add current session to ",A.selectedEvalSet," ")}}function G2(t,e){t&1&&(u(0,"div"),W(1,"mat-spinner"),m())}function v2(t,e){if(t&1){let A=aA();u(0,"div")(1,"div",11)(2,"mat-icon",15),x("click",function(){H(A);let o=b();return T(o.clearSelectedEvalSet())}),v(3,"chevron_left"),m(),u(4,"div",16),x("click",function(){H(A);let o=b();return T(o.clearSelectedEvalSet())}),v(5),m()(),_(6,S2,16,3,"div",2)(7,N2,6,1,"button",17)(8,G2,2,0,"div",2),m()}if(t&2){let A=b();f(5),te(" ",A.selectedEvalSet," "),f(),F("ngIf",A.evalCases.length>0&&!A.evalRunning),f(),F("ngIf",!A.evalRunning),f(),F("ngIf",A.evalRunning)}}var Rn=class t{constructor(e,A){this.evalService=e;this.sessionService=A}checkboxes;appName="";userId="";sessionId="";sessionSelected=new $;displayedColumns=["select","eval_id","final_eval_status"];evalsets=[];selectedEvalSet="";evalCases=[];dataSource=new la(this.evalCases);selection=new Ar(!0,[]);evalRunning=!1;evalMetrics=[{metric_name:"tool_trajectory_avg_score",threshold:1}];evalResult=[];dialog=Q(pg);ngOnChanges(e){e.appName&&(this.selectedEvalSet="",this.evalCases=[],this.getEvalSet())}ngOnInit(){}getEvalSet(){this.appName!=""&&this.evalService.getEvalSets(this.appName).subscribe(e=>{this.evalsets=e})}openNewEvalSetDialog(){this.dialog.open(ua,{width:"600px",data:{appName:this.appName}}).afterClosed().subscribe(A=>{A&&this.getEvalSet()})}openNewEvalCaseDialog(){this.dialog.open(ha,{width:"600px",data:{appName:this.appName,userId:this.userId,sessionId:this.sessionId,evalSetId:this.selectedEvalSet}}).afterClosed().subscribe(A=>{A&&this.listEvalCases()})}listEvalCases(){this.evalCases=[],this.evalService.listEvalCases(this.appName,this.selectedEvalSet).subscribe(e=>{this.evalCases=e,this.dataSource=new la(this.evalCases)})}runEval(){if(this.evalRunning=!0,this.selection.selected.length==0){alert("No case selected!"),this.evalRunning=!1;return}this.evalService.runEval(this.appName,this.selectedEvalSet,this.selection.selected,this.evalMetrics).subscribe(e=>{this.evalRunning=!1,this.evalResult=e})}selectEvalSet(e){this.selectedEvalSet=e,this.listEvalCases()}clearSelectedEvalSet(){this.selectedEvalSet=""}isAllSelected(){let e=this.selection.selected.length,A=this.dataSource.data.length;return e===A}toggleAllRows(){if(this.isAllSelected()){this.selection.clear();return}this.selection.select(...this.dataSource.data)}getEvalResultForCase(e){let A=this.evalResult.filter(i=>i.eval_id==e);if(A.length!=0)return A[0].final_eval_status}fromApiResultToSession(e){return{id:e?.id??"",app_name:e?.app_name??"",user_id:e?.user_id??"",state:e?.state??[],events:e?.events??[]}}getSession(e){let A=this.evalResult.filter(i=>i.eval_id==e)[0].session_id;this.sessionService.getSession(this.userId,this.appName,A).subscribe(i=>{let o=this.fromApiResultToSession(i);this.sessionSelected.emit(o)})}static \u0275fac=function(A){return new(A||t)(AA(co),AA(Si))};static \u0275cmp=O({type:t,selectors:[["app-eval-tab"]],viewQuery:function(A,i){if(A&1&&cA(gr,5),A&2){let o;z(o=j())&&(i.checkboxes=o)}},inputs:{appName:"appName",userId:"userId",sessionId:"sessionId"},outputs:{sessionSelected:"sessionSelected"},standalone:!1,features:[VA],decls:5,vars:4,consts:[[1,"eval-container"],["class","eval-set-actions",4,"ngIf"],[4,"ngIf"],[1,"eval-set-actions"],[2,"cursor","pointer",3,"click"],[1,"empty-eval-info"],[1,"info-title"],[1,"info-detail"],[1,"info-create",3,"click"],["class","eval-set-row",3,"click",4,"ngFor","ngForOf"],[1,"eval-set-row",3,"click"],[2,"display","flex"],[1,"material-symbols-outlined",2,"margin-right","10px","padding-top","16px"],[2,"font-family","Roboto","font-size","14px","padding","16px","padding-top","20px"],[2,"padding-top","20px","color","#9AA0A6"],[2,"color","white","cursor","pointer",3,"click"],[2,"color","#9AA0A6","padding-top","2px","cursor","pointer",3,"click"],["class","save-session-btn",3,"click",4,"ngIf"],[1,"run-eval-btn",3,"click"],[1,"mat-table-container",2,"margin-top","16px"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","eval_id"],["matColumnDef","final_eval_status"],["mat-cell","","style","display: flex; color:white;",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate"],["mat-cell",""],[3,"click","change","checked"],["mat-cell","",2,"display","flex","color","white"],[3,"ngClass","click",4,"ngIf"],[3,"click","ngClass"],[1,"material-symbols-outlined"],[2,"padding-top","4px"],["mat-header-row",""],["mat-row",""],[1,"save-session-btn",3,"click"],[1,"save-session-btn-detail"],[1,"save-session-btn-text"]],template:function(A,i){A&1&&(u(0,"div",0),_(1,h2,5,0,"div",1)(2,u2,8,0,"div",2)(3,m2,2,1,"div",2)(4,v2,9,4,"div",2),m()),A&2&&(f(),F("ngIf",i.selectedEvalSet==""),f(),F("ngIf",i.evalsets.length==0),f(),F("ngIf",i.evalsets.length>0&&i.selectedEvalSet==""),f(),F("ngIf",i.selectedEvalSet!=""))},dependencies:[Yt,Rt,Jt,Ir,gr,IF,CF,cF,BF,aF,lF,QF,EF,dF,hF,SF],styles:[".eval-container[_ngcontent-%COMP%]{margin-top:20px;padding-left:25px;padding-right:25px}.eval-set-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;color:#9aa0a6;font-style:normal;font-weight:700;font-size:14px}.empty-eval-info[_ngcontent-%COMP%]{margin-top:12px;background-color:#202124;border-radius:8px;box-shadow:0 2px 6px 2px #00000026,0 1px 2px #0000004d}.info-title[_ngcontent-%COMP%]{color:#e8eaed;font-family:Roboto;font-size:14px;font-weight:500;padding-top:13px;padding-right:16px;padding-left:16px}.info-detail[_ngcontent-%COMP%]{color:#e8eaed;font-family:Roboto;font-size:14px;font-weight:400;padding-top:13px;padding-right:16px;padding-left:16px;letter-spacing:.2px}.info-create[_ngcontent-%COMP%]{color:var(--Blue-300, #8AB4F8);font-size:14px;font-style:normal;font-weight:500;padding-right:16px;padding-left:16px;margin-top:19px;padding-bottom:16px;cursor:pointer}.eval-set-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;cursor:pointer}.save-session-btn[_ngcontent-%COMP%]{width:100%;background:linear-gradient(0deg,#8ab4f83d 0% 100%),#202124;border:none;border-radius:4px;margin-top:12px;cursor:pointer}.save-session-btn-detail[_ngcontent-%COMP%]{display:flex;padding:8px 16px 8px 12px;justify-content:center}.save-session-btn-text[_ngcontent-%COMP%]{padding-top:2px;color:var(--Blue-100, #D2E3FC);font-family:Google Sans;font-size:14px;font-style:normal;font-weight:500;line-height:20px;letter-spacing:.25px}.run-eval-btn[_ngcontent-%COMP%]{border-radius:4px;border:1px solid var(--Grey-700, #5F6368);background-color:transparent;padding:8px 24px;margin-top:16px;color:#8ab4f8;cursor:pointer}.run-eval-btn[_ngcontent-%COMP%]:hover{background-color:#202124}.result-btn[_ngcontent-%COMP%]{display:flex;background-color:transparent;border-radius:4px;border:1px solid var(--Grey-700, #5F6368);margin-top:13px;cursor:pointer}.result-btn[_ngcontent-%COMP%]:hover{background-color:#202124}.result-btn.pass[_ngcontent-%COMP%]{color:#44c265}.result-btn.fail[_ngcontent-%COMP%]{color:#ff8983}"]})};var Fg=class t{constructor(e){this.http=e}apiServerDomain=ot.getApiServerBaseUrl();getEventTrace(e){let A=this.apiServerDomain+`/debug/trace/${e}`;return this.http.get(A)}getEvent(e,A,i,o){let g=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}/events/${o}/graph`;return this.http.get(g)}static \u0275fac=function(A){return new(A||t)(J(it))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var vF=(()=>{class t{get vertical(){return this._vertical}set vertical(A){this._vertical=we(A)}_vertical=!1;get inset(){return this._inset}set inset(A){this._inset=we(A)}_inset=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,o){i&2&&(IA("aria-orientation",o.vertical?"vertical":"horizontal"),gA("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(i,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}return t})(),LF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,SA]})}return t})();var U2=["*"],_2='.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color, transparent);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size, 24px);height:var(--mdc-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size, 40px);height:var(--mdc-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size, 24px);height:var(--mdc-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mdc-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}',x2=["unscopedContent"],Y2=["text"],J2=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],H2=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var T2=new k("ListOption"),O2=(()=>{class t{_elementRef=Q(Z);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),P2=(()=>{class t{_elementRef=Q(Z);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),Z2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),KF=(()=>{class t{_listOption=Q(T2,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,hostVars:4,hostBindings:function(i,o){i&2&&gA("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())}})}return t})(),q2=(()=>{class t extends KF{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[EA]})}return t})(),V2=(()=>{class t extends KF{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[EA]})}return t})(),W2=new k("MAT_LIST_CONFIG"),ZD=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(A){this._disableRipple=we(A)}_disableRipple=!1;get disabled(){return this._disabled}set disabled(A){this._disabled=we(A)}_disabled=!1;_defaultOptions=Q(W2,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,hostVars:1,hostBindings:function(i,o){i&2&&IA("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),z2=(()=>{class t{_elementRef=Q(Z);_ngZone=Q(X);_listBase=Q(ZD,{optional:!0});_platform=Q(HA);_hostElement;_isButtonElement;_noopAnimations;_avatars;_icons;set lines(A){this._explicitLines=Zt(A,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(A){this._disableRipple=we(A)}_disableRipple=!1;get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(A){this._disabled=we(A)}_disabled=!1;_subscriptions=new NA;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){Q(be).load(ki);let A=Q(ia,{optional:!0}),i=Q(ee,{optional:!0});this.rippleConfig=A||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=i==="NoopAnimations",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Vs(this,this._ngZone,this._hostElement,this._platform,Q(yA)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(De(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(A){if(!this._lines||!this._titles||!this._unscopedContent)return;A&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let g=this._titles.length===0&&i===1;o.classList.toggle("mdc-list-item__primary-text",g),o.classList.toggle("mdc-list-item__secondary-text",!g)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let A=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(A+=1),A}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(A=>A.nodeType!==A.COMMENT_NODE).some(A=>!!(A.textContent&&A.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,contentQueries:function(i,o,g){if(i&1&&(jA(g,q2,4),jA(g,V2,4)),i&2){let n;z(n=j())&&(o._avatars=n),z(n=j())&&(o._icons=n)}},hostVars:4,hostBindings:function(i,o){i&2&&(IA("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),gA("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var UF=(()=>{class t extends ZD{static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[KA([{provide:ZD,useExisting:t}]),EA],ngContentSelectors:U2,decls:1,vars:0,template:function(i,o){i&1&&(qA(),rA(0))},styles:[_2],encapsulation:2,changeDetection:0})}return t})(),_F=(()=>{class t extends z2{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(A){this._activated=we(A)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,o,g){if(i&1&&(jA(g,P2,5),jA(g,O2,5),jA(g,Z2,5)),i&2){let n;z(n=j())&&(o._lines=n),z(n=j())&&(o._titles=n),z(n=j())&&(o._meta=n)}},viewQuery:function(i,o){if(i&1&&(cA(x2,5),cA(Y2,5)),i&2){let g;z(g=j())&&(o._unscopedContent=g.first),z(g=j())&&(o._itemText=g.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(i,o){i&2&&(IA("aria-current",o._getAriaCurrent()),gA("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[EA],ngContentSelectors:H2,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(i,o){if(i&1){let g=aA();qA(J2),rA(0),u(1,"span",1),rA(2,1),rA(3,2),u(4,"span",2,0),x("cdkObserveContent",function(){return H(g),T(o._updateItemLines(!0))}),rA(6,3),m()(),rA(7,4),rA(8,5),W(9,"div",3)}},dependencies:[XQ],encapsulation:2,changeDetection:0})}return t})();var xF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[Ps,SA,oa,tD,LF]})}return t})();function X2(t,e){if(t&1){let A=aA();u(0,"mat-list-item",6),x("click",function(){let o=H(A).$implicit,g=b(2);return T(g.selectEvent(o.key))}),u(1,"span",7),v(2),m(),u(3,"span"),v(4),m()()}if(t&2){let A=e.$implicit,i=e.index;f(2),PA(i),f(2),PA(A.key)}}function $2(t,e){if(t&1&&(u(0,"div",3)(1,"p"),v(2,"Conversations with agent"),m(),u(3,"mat-list",4),_(4,X2,5,2,"mat-list-item",5),rg(5,"keyvalue"),m()()),t&2){let A=b();f(4),F("ngForOf",Q0(5,1,A.eventsMap,A.mapOrderPreservingSort))}}function A8(t,e){t&1&&(u(0,"div")(1,"p"),v(2,"No conversations"),m()())}var kn=class t{constructor(e){this.eventService=e}eventsMap=new Map;selectedEvent=new $;llmRequest=void 0;llmResponse=void 0;llmRequestKey="gcp.vertex.agent.llm_request";llmResponseKey="gcp.vertex.agent.llm_response";isDetailsPanelOpen=!1;showJson=Array(this.eventsMap.size).fill(!1);toggleJson(e){this.showJson[e]=!this.showJson[e]}selectEvent(e){this.selectedEvent.emit(e)}mapOrderPreservingSort=(e,A)=>0;static \u0275fac=function(A){return new(A||t)(AA(Fg))};static \u0275cmp=O({type:t,selectors:[["app-event-tab"]],inputs:{eventsMap:"eventsMap"},outputs:{selectedEvent:"selectedEvent"},standalone:!1,decls:3,vars:2,consts:[[1,"events-wrapper"],["class","events-container",4,"ngIf"],[4,"ngIf"],[1,"events-container"],[1,"event-list"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"event-index"]],template:function(A,i){A&1&&(u(0,"div",0),_(1,$2,6,4,"div",1)(2,A8,3,0,"div",2),m()),A&2&&(f(),F("ngIf",i.eventsMap.size>0),f(),F("ngIf",i.eventsMap.size==0))},dependencies:[Rt,Jt,UF,_F,Sh],styles:[".events-wrapper[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px;color:#9aa0a6;font-size:14px;font-weight:700}.event-index[_ngcontent-%COMP%]{color:#80868b;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;margin-right:10px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.events-container[_ngcontent-%COMP%]{margin-top:20px}.event-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:20px}.function-event-button[_ngcontent-%COMP%]{margin-top:11px}.event-list[_ngcontent-%COMP%]{--mat-list-active-indicator-color: orange}.event-list[_ngcontent-%COMP%]{--mdc-list-list-item-container-color: #2b2b2f}.event-list[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-size: 14px}.event-list[_ngcontent-%COMP%]{--mdc-list-list-item-label-text-weight: 400}.event-list[_ngcontent-%COMP%]{--mdc-list-list-item-one-line-container-height: 52px}[_nghost-%COMP%]     .mdc-list-item{border:1px solid #5f6368;cursor:pointer}[_nghost-%COMP%]     .mdc-list-item:hover{background-color:#1c1b1c}"]})};function t8(t,e){t&1&&(u(0,"h2",4),v(1,"Events List"),m())}function i8(t,e){t&1&&(u(0,"h2",4),v(1,"Send Response To Pending Event"),m())}function o8(t,e){if(t&1){let A=aA();u(0,"div")(1,"p"),v(2,"Name"),m(),u(3,"p"),v(4),m(),u(5,"p"),v(6,"Args"),m(),u(7,"p"),v(8),m(),u(9,"mat-form-field",5)(10,"mat-label"),v(11,"Response"),m(),u(12,"textarea",6),fi("ngModelChange",function(o){H(A);let g=b();return $i(g.selectedEvent.response,o)||(g.selectedEvent.response=o),T(o)}),m()()()}if(t&2){let A=b();f(4),PA(A.selectedEvent.name),f(4),PA(A.argsToJson(A.selectedEvent.args)),f(4),mi("ngModel",A.selectedEvent.response)}}function g8(t,e){if(t&1){let A=aA();u(0,"button",7),x("click",function(){H(A);let o=b();return T(o.sendResponse())}),v(1),m()}if(t&2){let A=b();F("disabled",A.sending),f(),PA(A.sending?"Sending...":"Send")}}var ma=class t{constructor(e,A,i){this.dialogRef=e;this.data=A;this.agentService=i;this.selectedEvent=A.event,this.app_name=A.app_name,this.user_id=A.user_id,this.session_id=A.session_id,this.function_call_event_id=A.function_call_event_id}selectedEvent=null;app_name;user_id;session_id;function_call_event_id;sending=!1;argsToJson(e){return JSON.stringify(e)}sendResponse(){this.sending=!0;let e={app_name:this.app_name,user_id:this.user_id,session_id:this.session_id,new_message:{role:"user",parts:[]}};this.selectedEvent.response&&(e.function_call_event_id=this.function_call_event_id,e.new_message.parts.push({function_response:{id:this.selectedEvent.id,name:this.selectedEvent.name,response:{response:this.selectedEvent.response}}})),this.agentService.run(e).subscribe(A=>{this.sending=!1;for(let i of A)i.content.parts[0].text&&this.dialogRef.close({text:i.content.parts[0].text,events:[this.selectedEvent]})})}static \u0275fac=function(A){return new(A||t)(AA(Vt),AA(Oo),AA(fg))};static \u0275cmp=O({type:t,selectors:[["app-pending-event-dialog"]],standalone:!1,decls:8,vars:4,consts:[["mat-dialog-title","",4,"ngIf"],[4,"ngIf"],["mat-button","",3,"disabled","click",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-dialog-title",""],["appearance","outline",1,"full-width"],["matInput","",3,"ngModelChange","ngModel"],["mat-button","",3,"click","disabled"]],template:function(A,i){A&1&&(_(0,t8,2,0,"h2",0)(1,i8,2,0,"h2",0),u(2,"mat-dialog-content"),_(3,o8,13,3,"div",1),m(),u(4,"mat-dialog-actions"),_(5,g8,2,2,"button",2),u(6,"button",3),v(7,"Close"),m()()),A&2&&(F("ngIf",!i.selectedEvent),f(),F("ngIf",i.selectedEvent),f(2),F("ngIf",i.selectedEvent),f(2),F("ngIf",i.selectedEvent&&i.selectedEvent.response))},dependencies:[Jt,io,oo,yi,Eo,ME,kg,bt,yg,Mg,Rg,nr],encapsulation:2})};var fa=class t{constructor(e,A){this.dialogRef=e;this.data=A}onConfirm(){this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}static \u0275fac=function(A){return new(A||t)(AA(Vt),AA(Oo))};static \u0275cmp=O({type:t,selectors:[["app-delete-session-dialog"]],standalone:!1,decls:11,vars:4,consts:[[1,"confirm-delete-wrapper"],["mat-dialog-title",""],["align","end"],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(A,i){A&1&&(u(0,"div",0)(1,"h2",1),v(2),m(),u(3,"mat-dialog-content")(4,"p"),v(5),m()(),u(6,"mat-dialog-actions",2)(7,"button",3),x("click",function(){return i.onCancel()}),v(8),m(),u(9,"button",4),x("click",function(){return i.onConfirm()}),v(10),m()()()),A&2&&(f(2),PA(i.data.title),f(3),PA(i.data.message),f(3),PA(i.data.cancelButtonText),f(2),PA(i.data.confirmButtonText))},dependencies:[bt,yg,Mg,Rg],encapsulation:2})};function n8(t,e){if(t&1){let A=aA();u(0,"div",3),x("click",function(){let o=H(A).$implicit,g=b();return T(g.getSession(o.id))}),u(1,"div",4)(2,"div",5),v(3),m(),u(4,"div",6),v(5),m()()()}if(t&2){let A=e.$implicit,i=b();F("ngClass",A.id===i.sessionId?"session-item current":"session-item"),f(3),te(" ",A.id," "),f(2),te(" ",i.getDate(A)," ")}}var Fn=class t{constructor(e,A){this.sessionService=e;this.dialog=A;this.refreshSessionsSubject.pipe(re(()=>this.sessionService.listSessions(this.userId,this.appName))).subscribe(i=>{i=i.sort((o,g)=>Number(g.last_update_time)-Number(o.last_update_time)),this.sessionList=i})}userId="";appName="";sessionId="";sessionSelected=new $;sessionReloaded=new $;sessionList=[];refreshSessionsSubject=new K;ngOnInit(){setTimeout(()=>{this.refreshSessionsSubject.next()},500)}getSession(e){this.sessionService.getSession(this.userId,this.appName,e).subscribe(A=>{let i=this.fromApiResultToSession(A);this.sessionSelected.emit(i)})}getDate(e){let A=e.last_update_time;return new Date(A*1e3).toLocaleString()}fromApiResultToSession(e){return{id:e?.id??"",app_name:e?.app_name??"",user_id:e?.user_id??"",state:e?.state??[],events:e?.events??[]}}reloadSession(e){this.sessionService.getSession(this.userId,this.appName,e).subscribe(A=>{let i=this.fromApiResultToSession(A);this.sessionReloaded.emit(i)})}refreshSession(){if(this.refreshSessionsSubject.next(),this.sessionList.length!=0)return this.sessionList[1]}static \u0275fac=function(A){return new(A||t)(AA(Si),AA(pg))};static \u0275cmp=O({type:t,selectors:[["app-session-tab"]],inputs:{userId:"userId",appName:"appName",sessionId:"sessionId"},outputs:{sessionSelected:"sessionSelected",sessionReloaded:"sessionReloaded"},standalone:!1,decls:3,vars:1,consts:[[1,"session-wrapper"],[1,"session-tab-container",2,"margin-top","16px"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"click","ngClass"],[1,"session-info"],[1,"session-id"],[1,"session-date"]],template:function(A,i){A&1&&(u(0,"div",0)(1,"div",1),_(2,n8,6,3,"div",2),m()()),A&2&&(f(2),F("ngForOf",i.sessionList))},dependencies:[Yt,Rt],styles:[".session-wrapper[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px;color:#9aa0a6;font-size:14px;font-weight:700}.session-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;border:none;background-color:#303030;border-radius:8px;margin-bottom:4px;cursor:pointer}.session-item[_ngcontent-%COMP%]:hover{background-color:#141414}.session-item.current[_ngcontent-%COMP%]{background-color:#004a77}.session-id[_ngcontent-%COMP%]{color:#e8eaed;font-family:monospace;font-size:14px;font-style:normal;font-weight:500;line-height:20px;letter-spacing:.25px}.session-date[_ngcontent-%COMP%]{color:#9aa0a6;font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:.3px}.session-info[_ngcontent-%COMP%]{padding:11px}"]})};var ar=class t{constructor(e){this.http=e}apiServerDomain=ot.getApiServerBaseUrl();getLatestArtifact(e,A,i,o){let g=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}/artifacts/${o}`;return this.http.get(g)}getArtifactVersion(e,A,i,o,g){let n=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}/artifacts/${o}/versions/${g}`;return this.http.get(n)}listArtifactNames(e,A,i){let o=this.apiServerDomain+`/apps/${A}/users/${e}/sessions/${i}/artifacts`;return this.http.get(o)}static \u0275fac=function(A){return new(A||t)(J(it))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var I8={url:"",deserializer:t=>JSON.parse(t.data),serializer:t=>JSON.stringify(t)},a8="WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }",wa=class t extends On{constructor(e,A){if(super(),this._socket=null,e instanceof QA)this.destination=A,this.source=e;else{let i=this._config=Object.assign({},I8);if(this._output=new K,typeof e=="string")i.url=e;else for(let o in e)e.hasOwnProperty(o)&&(i[o]=e[o]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new Ii}}lift(e){let A=new t(this._config,this.destination);return A.operator=e,A.source=this,A}_resetState(){this._socket=null,this.source||(this.destination=new Ii),this._output=new K}multiplex(e,A,i){let o=this;return new QA(g=>{try{o.next(e())}catch(s){g.error(s)}let n=o.subscribe({next:s=>{try{i(s)&&g.next(s)}catch(r){g.error(r)}},error:s=>g.error(s),complete:()=>g.complete()});return()=>{try{o.next(A())}catch(s){g.error(s)}n.unsubscribe()}})}_connectSocket(){let{WebSocketCtor:e,protocol:A,url:i,binaryType:o}=this._config,g=this._output,n=null;try{n=A?new e(i,A):new e(i),this._socket=n,o&&(this._socket.binaryType=o)}catch(r){g.error(r);return}let s=new NA(()=>{this._socket=null,n&&n.readyState===1&&n.close()});n.onopen=r=>{let{_socket:I}=this;if(!I){n.close(),this._resetState();return}let{openObserver:B}=this._config;B&&B.next(r);let c=this.destination;this.destination=po.create(D=>{if(n.readyState===1)try{let{serializer:h}=this._config;n.send(h(D))}catch(h){this.destination.error(h)}},D=>{let{closingObserver:h}=this._config;h&&h.next(void 0),D&&D.code?n.close(D.code,D.reason):g.error(new TypeError(a8)),this._resetState()},()=>{let{closingObserver:D}=this._config;D&&D.next(void 0),n.close(),this._resetState()}),c&&c instanceof Ii&&s.add(c.subscribe(this.destination))},n.onerror=r=>{this._resetState(),g.error(r)},n.onclose=r=>{n===this._socket&&this._resetState();let{closeObserver:I}=this._config;I&&I.next(r),r.wasClean?g.complete():g.error(r)},n.onmessage=r=>{try{let{deserializer:I}=this._config;g.next(I(r))}catch(I){g.error(I)}}}_subscribe(e){let{source:A}=this;return A?A.subscribe(e):(this._socket||this._connectSocket(),this._output.subscribe(e),e.add(()=>{let{_socket:i}=this;this._output.observers.length===0&&(i&&(i.readyState===1||i.readyState===0)&&i.close(),this._resetState())}),e)}unsubscribe(){let{_socket:e}=this;e&&(e.readyState===1||e.readyState===0)&&e.close(),this._resetState(),super.unsubscribe()}};var ho=class t{socket$;messages$=new Ae("");audioContext=new AudioContext({sampleRate:22e3});audioBuffer=[];audioIntervalId=null;lastAudioTime=0;constructor(){}connect(e){this.socket$=new wa({url:e,serializer:A=>JSON.stringify(A),deserializer:A=>A.data}),this.socket$.subscribe(A=>{this.handleIncomingAudio(A),this.messages$.next(A)},A=>{console.error("WebSocket error:",A),setTimeout(()=>this.connect(e),3e3)},()=>{console.log("WebSocket closed, reconnecting..."),setTimeout(()=>this.connect(e),3e3)}),this.audioIntervalId=setInterval(()=>this.processBufferedAudio(),250)}sendMessage(e){if(e.blob.data=this.arrayBufferToBase64(e.blob.data.buffer),!this.socket$||this.socket$.closed){console.error("WebSocket is not open.");return}this.socket$.next(e)}closeConnection(){clearInterval(this.audioIntervalId),this.audioIntervalId=null,this.socket$&&this.socket$.complete()}getMessages(){return this.messages$.asObservable()}arrayBufferToBase64(e){let A="",i=new Uint8Array(e),o=i.byteLength;for(let g=0;g<o;g++)A+=String.fromCharCode(i[g]);return btoa(A)}handleIncomingAudio(e){let A=JSON.parse(e);if(A.content&&A.content.parts&&A.content.parts[0].inlineData){let i=this.base64ToUint8Array(A.content.parts[0].inlineData.data);this.audioBuffer.push(i)}}processBufferedAudio(){if(this.audioBuffer.length===0)return;let e=this.audioBuffer.reduce((o,g)=>o+g.length,0),A=new Uint8Array(e),i=0;for(let o of this.audioBuffer)A.set(o,i),i+=o.length;this.playPCM(A),this.audioBuffer=[]}base64ToUint8Array(e){let A=atob(this.urlSafeBase64ToBase64(e)),i=A.length,o=new Uint8Array(i);for(let g=0;g<i;g++)o[g]=A.charCodeAt(g);return o}playPCM(e){let A=new Float32Array(e.length/2);for(let s=0;s<A.length;s++){let r=e[s*2]|e[s*2+1]<<8;r>=32768&&(r-=65536),A[s]=r/32768}let i=this.audioContext.createBuffer(1,A.length,22e3);i.copyToChannel(A,0);let o=this.audioContext.createBufferSource();o.buffer=i,o.connect(this.audioContext.destination);let g=this.audioContext.currentTime,n=Math.max(this.lastAudioTime,g);o.start(n),this.lastAudioTime=n+i.duration}urlSafeBase64ToBase64(e){let A=e.replace(/_/g,"/").replace(/-/g,"+");for(;A.length%4!==0;)A+="=";return A}static \u0275fac=function(A){return new(A||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var Cr=class t{constructor(e){this.wsService=e}mediaRecorder;stream;audioContext;source;processor;audioBuffer=[];audioIntervalId=null;startRecording(){return qe(this,null,function*(){try{this.stream=yield navigator.mediaDevices.getUserMedia({audio:!0}),this.audioContext=new AudioContext,yield this.audioContext.audioWorklet.addModule("/assets/audio-processor.js"),this.source=this.audioContext.createMediaStreamSource(this.stream);let e=new AudioWorkletNode(this.audioContext,"audio-processor");e.port.onmessage=A=>{let i=A.data,o=this.float32ToPCM(i);this.audioBuffer.push(o)},this.source.connect(e),e.connect(this.audioContext.destination),this.audioIntervalId=setInterval(()=>this.sendBufferedAudio(),250)}catch(e){console.error("Error accessing microphone:",e)}})}sendBufferedAudio(){if(this.audioBuffer.length===0)return;let e=this.audioBuffer.reduce((g,n)=>g+n.length,0),A=new Uint8Array(e),i=0;for(let g of this.audioBuffer)A.set(g,i),i+=g.length;let o={blob:{mime_type:"audio/pcm",data:A}};this.wsService.sendMessage(o),this.audioBuffer=[]}stopRecording(){this.processor&&this.processor.disconnect(),this.source&&this.source.disconnect(),this.audioContext&&this.audioContext.close(),this.stream&&this.stream.getTracks().forEach(e=>e.stop()),this.audioIntervalId&&(clearInterval(this.audioIntervalId),this.audioIntervalId=null)}float32ToPCM(e){let A=new ArrayBuffer(e.length*2),i=new DataView(A);for(let o=0;o<e.length;o++){let g=Math.max(-1,Math.min(1,e[o]));g=g<0?g*32768:g*32767,i.setInt16(o*2,g,!0)}return new Uint8Array(A)}static \u0275fac=function(A){return new(A||t)(J(ho))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var Br=class t{constructor(e,A){this.wsService=e;this.renderer=A.createRenderer(null,null)}mediaRecorder;stream;renderer;videoElement;videoBuffer=[];videoIntervalId=null;createVideoElement(e){this.clearVideoElement(e),this.videoElement=this.renderer.createElement("video"),this.renderer.setAttribute(this.videoElement,"width","400"),this.renderer.setAttribute(this.videoElement,"height","300"),this.renderer.setAttribute(this.videoElement,"autoplay","true"),this.renderer.setAttribute(this.videoElement,"muted","true"),this.renderer.appendChild(e.nativeElement,this.videoElement)}startRecording(e){return qe(this,null,function*(){this.createVideoElement(e);try{this.stream=yield navigator.mediaDevices.getUserMedia({video:!0}),this.videoElement.srcObject=this.stream,this.mediaRecorder=new MediaRecorder(this.stream,{mimeType:"video/webm"}),this.mediaRecorder.start(1e3),this.videoIntervalId=setInterval(()=>this.captureAndSendFrame(),1e3)}catch(A){console.error("Error accessing camera/microphone:",A)}})}captureAndSendFrame(){return qe(this,null,function*(){try{let e=yield this.captureFrame(),i={blob:{mime_type:"image/jpeg",data:yield this.blobToUint8Array(e)}};this.wsService.sendMessage(i)}catch(e){console.error("Error capturing frame:",e)}})}blobToUint8Array(e){return qe(this,null,function*(){let A=yield e.arrayBuffer();return new Uint8Array(A)})}captureFrame(){return qe(this,null,function*(){return new Promise((e,A)=>{try{let i=document.createElement("canvas");i.width=this.videoElement.videoWidth,i.height=this.videoElement.videoHeight;let o=i.getContext("2d");if(!o){A(new Error("Canvas context not supported"));return}o.drawImage(this.videoElement,0,0,i.width,i.height),i.toBlob(g=>{g?e(g):A(new Error("Failed to create image blob"))},"image/png")}catch(i){A(i)}})})}sendBufferedVideo(){if(this.videoBuffer.length===0)return;let e=this.videoBuffer.reduce((g,n)=>g+n.length,0),A=new Uint8Array(e),i=0;for(let g of this.videoBuffer)A.set(g,i),i+=g.length;let o={blob:{mime_type:"image/jpeg",data:A}};this.wsService.sendMessage(o),this.videoBuffer=[]}stopRecording(e){this.mediaRecorder&&this.mediaRecorder.stop(),this.stream&&this.stream.getTracks().forEach(A=>A.stop()),clearInterval(this.videoIntervalId),this.clearVideoElement(e)}clearVideoElement(e){let A=e.nativeElement.querySelector("video");A&&this.renderer.removeChild(e.nativeElement,A)}static \u0275fac=function(A){return new(A||t)(J(ho),J(tt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var Q8=["*"];var E8=new k("MAT_CARD_CONFIG"),YF=(()=>{class t{appearance;constructor(){let A=Q(E8,{optional:!0});this.appearance=A?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,o){i&2&&gA("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:Q8,decls:1,vars:0,template:function(i,o){i&1&&(qA(),rA(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return t})();var JF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,SA]})}return t})();var l8=t=>["segment",t],d8=(t,e)=>({"segment-main":!0,expandable:t,expanded:e});function h8(t,e){t&1&&W(0,"div",9)}function u8(t,e){if(t&1&&(u(0,"span",10),v(1),m()),t&2){let A=b().$implicit;f(),PA(A.description)}}function D8(t,e){if(t&1&&(u(0,"section",11),W(1,"ngx-json-viewer",12),m()),t&2){let A=b().$implicit,i=b();f(),F("json",A.value)("expanded",i.expanded)("depth",i.depth)("_currentDepth",i._currentDepth+1)}}function m8(t,e){if(t&1){let A=aA();u(0,"section",2)(1,"section",3),x("click",function(){let o=H(A).$implicit,g=b();return T(g.toggle(o))}),_(2,h8,1,0,"div",4),u(3,"span",5),v(4),m(),u(5,"span",6),v(6,": "),m(),_(7,u8,2,1,"span",7),m(),_(8,D8,2,4,"section",8),m()}if(t&2){let A=e.$implicit,i=b();F("ngClass",gn(6,l8,"segment-type-"+A.type)),f(),F("ngClass",us(8,d8,i.isExpandable(A),A.expanded)),f(),F("ngIf",i.isExpandable(A)),f(2),PA(A.key),f(3),F("ngIf",!A.expanded||!i.isExpandable(A)),f(),F("ngIf",A.expanded&&i.isExpandable(A))}}var OE=(()=>{class t{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),typeof this.json=="object"?Object.keys(this.json).forEach(A=>{this.segments.push(this.parseKeyValue(A,this.json[A]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(A){return A.type==="object"||A.type==="array"}toggle(A){this.isExpandable(A)&&(A.expanded=!A.expanded)}parseKeyValue(A,i){let o={key:A,value:i,type:void 0,description:""+i,expanded:this.isExpanded()};switch(typeof o.value){case"number":{o.type="number";break}case"boolean":{o.type="boolean";break}case"function":{o.type="function";break}case"string":{o.type="string",o.description='"'+o.value+'"';break}case"undefined":{o.type="undefined",o.description="undefined";break}case"object":{o.value===null?(o.type="null",o.description="null"):Array.isArray(o.value)?(o.type="array",o.description="Array["+o.value.length+"] "+JSON.stringify(o.value)):o.value instanceof Date?o.type="date":(o.type="object",o.description="Object "+JSON.stringify(o.value));break}}return o}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(A){let i=new WeakMap;return function o(g,n){let s,r;return typeof g=="object"&&g!==null&&!(g instanceof Boolean)&&!(g instanceof Date)&&!(g instanceof Number)&&!(g instanceof RegExp)&&!(g instanceof String)?(s=i.get(g),s!==void 0?{$ref:s}:(i.set(g,n),Array.isArray(g)?(r=[],g.forEach(function(I,B){r[B]=o(I,n+"["+B+"]")})):(r={},Object.keys(g).forEach(function(I){r[I]=o(g[I],n+"["+JSON.stringify(I)+"]")})),r)):g}(A,"$")}}return t.\u0275fac=function(A){return new(A||t)},t.\u0275cmp=O({type:t,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},standalone:!1,features:[VA],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"click","ngClass"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(A,i){A&1&&(u(0,"section",0),_(1,m8,9,11,"section",1),m()),A&2&&(f(),F("ngForOf",i.segments))},dependencies:[Yt,Rt,Jt,t],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .segment-main[_ngcontent-%COMP%]   .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment[_ngcontent-%COMP%]   .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%]   .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%]   .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%]   .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%]   .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),t})(),HF=(()=>{class t{}return t.\u0275fac=function(A){return new(A||t)},t.\u0275mod=V({type:t}),t.\u0275inj=q({imports:[Uo]}),t})();var OF=["*"],f8=["content"],w8=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],p8=["mat-drawer","mat-drawer-content","*"];function y8(t,e){if(t&1){let A=aA();u(0,"div",1),x("click",function(){H(A);let o=b();return T(o._onBackdropClicked())}),m()}if(t&2){let A=b();gA("mat-drawer-shown",A._isShowingBackdrop())}}function M8(t,e){t&1&&(u(0,"mat-drawer-content"),rA(1,2),m())}var R8=new k("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:k8}),PF=new k("MAT_DRAWER_CONTAINER");function k8(){return!1}var VD=(()=>{class t extends Jo{_platform=Q(HA);_changeDetectorRef=Q(zA);_container=Q(zD);constructor(){let A=Q(Z),i=Q(ug),o=Q(X);super(A,i,o)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:A,end:i}=this._container;return A!=null&&A.mode!=="over"&&A.opened||i!=null&&i.mode!=="over"&&i.opened}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(i,o){i&2&&(Ct("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),gA("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[KA([{provide:Jo,useExisting:t}]),EA],ngContentSelectors:OF,decls:1,vars:0,template:function(i,o){i&1&&(qA(),rA(0))},encapsulation:2,changeDetection:0})}return t})(),WD=(()=>{class t{_elementRef=Q(Z);_focusTrapFactory=Q(aE);_focusMonitor=Q(Xt);_platform=Q(HA);_ngZone=Q(X);_renderer=Q(Me);_interactivityChecker=Q(ta);_doc=Q(lA,{optional:!0});_container=Q(PF,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(A){A=A==="end"?"end":"start",A!==this._position&&(this._isAttached&&this._updatePositionInParent(A),this._position=A,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(A){this._mode=A,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(A){this._disableClose=we(A)}_disableClose=!1;get autoFocus(){let A=this._autoFocus;return A??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(A){(A==="true"||A==="false"||A==null)&&(A=we(A)),this._autoFocus=A}_autoFocus;get opened(){return this._opened}set opened(A){this.toggle(we(A))}_opened=!1;_openedVia;_animationStarted=new K;_animationEnd=new K;openedChange=new $(!0);_openedStream=this.openedChange.pipe(RA(A=>A),oA(()=>{}));openedStart=this._animationStarted.pipe(RA(()=>this.opened),Vn(void 0));_closedStream=this.openedChange.pipe(RA(A=>!A),oA(()=>{}));closedStart=this._animationStarted.pipe(RA(()=>!this.opened),Vn(void 0));_destroyed=new K;onPositionChanged=new $;_content;_modeChanged=new K;_injector=Q(yA);_changeDetectorRef=Q(zA);constructor(){this.openedChange.pipe(DA(this._destroyed)).subscribe(A=>{A?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let A=this._elementRef.nativeElement;vr(A,"keydown").pipe(RA(i=>i.keyCode===27&&!this.disableClose&&!Oe(i)),DA(this._destroyed)).subscribe(i=>this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})),this._eventCleanups=[this._renderer.listen(A,"transitionrun",this._handleTransitionEvent),this._renderer.listen(A,"transitionend",this._handleTransitionEvent),this._renderer.listen(A,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this._opened)})}_forceFocus(A,i){this._interactivityChecker.isFocusable(A)||(A.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{g(),n(),A.removeAttribute("tabindex")},g=this._renderer.listen(A,"blur",o),n=this._renderer.listen(A,"mousedown",o)})),A.focus(i)}_focusByCssSelector(A,i){let o=this._elementRef.nativeElement.querySelector(A);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;let A=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":Ke(()=>{!this._focusTrap.focusInitialElement()&&typeof A.focus=="function"&&A.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(A){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,A):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let A=this._doc.activeElement;return!!A&&this._elementRef.nativeElement.contains(A)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(A=>A()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(A){return this.toggle(!0,A)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(A=!this.opened,i){A&&i&&(this._openedVia=i);let o=this._setOpen(A,!A&&this._isFocusWithinDrawer(),this._openedVia||"program");return A||(this._openedVia=null),o}_setOpen(A,i,o){return A===this._opened?Promise.resolve(A?"open":"close"):(this._opened=A,this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",A),!A&&i&&this._restoreFocus(o),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(g=>{this.openedChange.pipe(de(1)).subscribe(n=>g(n?"open":"close"))}))}_setIsAnimating(A){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",A)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(A){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,o=i.parentNode;A==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}_handleTransitionEvent=A=>{let i=this._elementRef.nativeElement;A.target===i&&this._ngZone.run(()=>{A.type==="transitionrun"?this._animationStarted.next(A):(A.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(A))})};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,o){if(i&1&&cA(f8,5),i&2){let g;z(g=j())&&(o._content=g.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:11,hostBindings:function(i,o){i&2&&(IA("align",null),Ct("visibility",!o._container&&!o.opened?"hidden":null),gA("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side"))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:OF,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,o){i&1&&(qA(),u(0,"div",1,0),rA(2),m())},dependencies:[Jo],encapsulation:2,changeDetection:0})}return t})(),zD=(()=>{class t{_dir=Q(Ne,{optional:!0});_element=Q(Z);_ngZone=Q(X);_changeDetectorRef=Q(zA);_animationMode=Q(ee,{optional:!0});_transitionsEnabled=!1;_allDrawers;_drawers=new Vi;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(A){this._autosize=we(A)}_autosize=Q(R8);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(A){this._backdropOverride=A==null?null:we(A)}_backdropOverride;backdropClick=new $;_start;_end;_left;_right;_destroyed=new K;_doCheckSubject=new K;_contentMargins={left:null,right:null};_contentMarginChanges=new K;get scrollable(){return this._userContent||this._content}_injector=Q(yA);constructor(){let A=Q(HA),i=Q(Ai);this._dir?.change.pipe(DA(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(DA(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._animationMode!=="NoopAnimations"&&A.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe(me(this._allDrawers),DA(this._destroyed)).subscribe(A=>{this._drawers.reset(A.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(me(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(A=>{this._watchDrawerToggle(A),this._watchDrawerPosition(A),this._watchDrawerMode(A)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Ci(10),DA(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(A=>A.open())}close(){this._drawers.forEach(A=>A.close())}updateContentMargins(){let A=0,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")A+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();A+=o,i-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();i+=o,A-=o}}A=A||null,i=i||null,(A!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:A,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(A){A._animationStarted.pipe(DA(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),A.mode!=="side"&&A.openedChange.pipe(DA(this._drawers.changes)).subscribe(()=>this._setContainerClass(A.opened))}_watchDrawerPosition(A){A.onPositionChanged.pipe(DA(this._drawers.changes)).subscribe(()=>{Ke({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(A){A._modeChanged.pipe(DA(De(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(A){let i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";A?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(A=>{A.position=="end"?(this._end!=null,this._end=A):(this._start!=null,this._start=A)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(A=>A&&!A.disableClose&&this._drawerHasBackdrop(A)).forEach(A=>A._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(A){return A!=null&&A.opened}_drawerHasBackdrop(A){return this._backdropOverride==null?!!A&&A.mode!=="side":this._backdropOverride}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,o,g){if(i&1&&(jA(g,VD,5),jA(g,WD,5)),i&2){let n;z(n=j())&&(o._content=n.first),z(n=j())&&(o._allDrawers=n)}},viewQuery:function(i,o){if(i&1&&cA(VD,5),i&2){let g;z(g=j())&&(o._userContent=g.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,o){i&2&&gA("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[KA([{provide:PF,useExisting:t}])],ngContentSelectors:p8,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,o){i&1&&(qA(w8),_(0,y8,1,2,"div",0),rA(1),rA(2,1),_(3,M8,2,0,"mat-drawer-content")),i&2&&(wA(o.hasBackdrop?0:-1),f(3),wA(o._content?-1:3))},dependencies:[VD],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}"],encapsulation:2,changeDetection:0})}return t})();var ZF=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,Yo,Yo,SA]})}return t})();var Am=["*"];function b8(t,e){t&1&&rA(0)}var S8=["tabListContainer"],N8=["tabList"],G8=["tabListInner"],v8=["nextPaginator"],L8=["previousPaginator"],K8=t=>({animationDuration:t}),U8=(t,e)=>({value:t,params:e});function _8(t,e){}var x8=["tabBodyWrapper"],Y8=["tabHeader"];function J8(t,e){}function H8(t,e){if(t&1&&_(0,J8,0,0,"ng-template",12),t&2){let A=b().$implicit;F("cdkPortalOutlet",A.templateLabel)}}function T8(t,e){if(t&1&&v(0),t&2){let A=b().$implicit;PA(A.textLabel)}}function O8(t,e){if(t&1){let A=aA();u(0,"div",7,2),x("click",function(){let o=H(A),g=o.$implicit,n=o.$index,s=b(),r=He(1);return T(s._handleClick(g,r,n))})("cdkFocusChange",function(o){let g=H(A).$index,n=b();return T(n._tabFocusChanged(o,g))}),W(2,"span",8)(3,"div",9),u(4,"span",10)(5,"span",11),_(6,H8,1,1,null,12)(7,T8,1,1),m()()()}if(t&2){let A=e.$implicit,i=e.$index,o=He(1),g=b();Xe(A.labelClass),gA("mdc-tab--active",g.selectedIndex===i),F("id",g._getTabLabelId(i))("disabled",A.disabled)("fitInkBarToContent",g.fitInkBarToContent),IA("tabIndex",g._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",g._tabs.length)("aria-controls",g._getTabContentId(i))("aria-selected",g.selectedIndex===i)("aria-label",A.ariaLabel||null)("aria-labelledby",!A.ariaLabel&&A.ariaLabelledby?A.ariaLabelledby:null),f(3),F("matRippleTrigger",o)("matRippleDisabled",A.disabled||g.disableRipple),f(3),wA(A.templateLabel?6:7)}}function P8(t,e){t&1&&rA(0)}function Z8(t,e){if(t&1){let A=aA();u(0,"mat-tab-body",13),x("_onCentered",function(){H(A);let o=b();return T(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){H(A);let g=b();return T(g._setTabBodyWrapperHeight(o))}),m()}if(t&2){let A=e.$implicit,i=e.$index,o=b();Xe(A.bodyClass),gA("mat-mdc-tab-body-active",o.selectedIndex===i),F("id",o._getTabContentId(i))("content",A.content)("position",A.position)("origin",A.origin)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),IA("tabindex",o.contentTabIndex!=null&&o.selectedIndex===i?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(i))("aria-hidden",o.selectedIndex!==i)}}var q8=new k("MatTabContent"),V8=(()=>{class t{template=Q(ne);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matTabContent",""]],features:[KA([{provide:q8,useExisting:t}])]})}return t})(),W8=new k("MatTabLabel"),WF=new k("MAT_TAB"),em=(()=>{class t extends nk{_closestTab=Q(WF,{optional:!0});static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[KA([{provide:W8,useExisting:t}]),EA]})}return t})(),zF=new k("MAT_TAB_GROUP"),tm=(()=>{class t{_viewContainerRef=Q(Ce);_closestTabGroup=Q(zF,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(A){this._setTemplateLabelInput(A)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new K;position=null;origin=null;isActive=!1;constructor(){Q(be).load(ki)}ngOnChanges(A){(A.hasOwnProperty("textLabel")||A.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ei(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(A){A&&A._closestTab===this&&(this._templateLabel=A)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-tab"]],contentQueries:function(i,o,g){if(i&1&&(jA(g,em,5),jA(g,V8,7,ne)),i&2){let n;z(n=j())&&(o.templateLabel=n.first),z(n=j())&&(o._explicitContent=n.first)}},viewQuery:function(i,o){if(i&1&&cA(ne,7),i&2){let g;z(g=j())&&(o._implicitContent=g.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",iA],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[KA([{provide:WF,useExisting:t}]),VA],ngContentSelectors:Am,decls:1,vars:0,template:function(i,o){i&1&&(qA(),_(0,b8,1,0,"ng-template"))},encapsulation:2})}return t})(),jD="mdc-tab-indicator--active",qF="mdc-tab-indicator--no-transition",XD=class{_items;_currentItem;constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar()),this._currentItem=void 0}alignToElement(e){let A=this._items.find(o=>o.elementRef.nativeElement===e),i=this._currentItem;if(A!==i&&(i?.deactivateInkBar(),A)){let o=i?.elementRef.nativeElement.getBoundingClientRect?.();A.activateInkBar(o),this._currentItem=A}}},z8=(()=>{class t{_elementRef=Q(Z);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(A){this._fitToContent!==A&&(this._fitToContent=A,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(A){let i=this._elementRef.nativeElement;if(!A||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(jD);return}let o=i.getBoundingClientRect(),g=A.width/o.width,n=A.left-o.left;i.classList.add(qF),this._inkBarContentElement.style.setProperty("transform",`translateX(${n}px) scaleX(${g})`),i.getBoundingClientRect(),i.classList.remove(qF),i.classList.add(jD),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(jD)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let A=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=A.createElement("span"),o=this._inkBarContentElement=A.createElement("span");i.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let A=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;A.appendChild(this._inkBarElement)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",iA]}})}return t})();var jF=(()=>{class t extends z8{elementRef=Q(Z);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275dir=Y({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,o){i&2&&(IA("aria-disabled",!!o.disabled),gA("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",iA]},features:[EA]})}return t})(),VF={passive:!0},j8=650,X8=100,$8=(()=>{class t{_elementRef=Q(Z);_changeDetectorRef=Q(zA);_viewportRuler=Q(Ai);_dir=Q(Ne,{optional:!0});_ngZone=Q(X);_platform=Q(HA);_sharedResizeObserver=Q(pE);_injector=Q(yA);_renderer=Q(Me);_animationMode=Q(ee,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new K;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new K;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(A){let i=isNaN(A)?0:A;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}_selectedIndex=0;selectFocusedIndex=new $;indexFocused=new $;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(Lu(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),VF),Lu(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),VF))}ngAfterContentInit(){let A=this._dir?this._dir.change:tA("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ci(32),DA(this._destroyed)),o=this._viewportRuler.change(150).pipe(DA(this._destroyed)),g=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new nE(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Ke(g,{injector:this._injector}),De(A,o,i,this._items.changes,this._itemsResized()).pipe(DA(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),g()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(n=>{this.indexFocused.emit(n),this._setTabFocus(n)})}_itemsResized(){return typeof ResizeObserver!="function"?ve:this._items.changes.pipe(me(this._items),re(A=>new QA(i=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(g=>i.next(g));return A.forEach(g=>o.observe(g.elementRef.nativeElement)),()=>{o.disconnect()}}))),Kg(1),RA(A=>A.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(A=>A()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(A){if(!Oe(A))switch(A.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(A))}break;default:this._keyManager.onKeydown(A)}}_onContentChanges(){let A=this._elementRef.nativeElement.textContent;A!==this._currentTextContent&&(this._currentTextContent=A||"",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(A){!this._isValidIndex(A)||this.focusIndex===A||!this._keyManager||this._keyManager.setActiveItem(A)}_isValidIndex(A){return this._items?!!this._items.toArray()[A]:!0}_setTabFocus(A){if(this._showPaginationControls&&this._scrollToLabel(A),this._items&&this._items.length){this._items.toArray()[A].focus();let i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let A=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-A:A;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(A){this._scrollTo(A)}_scrollHeader(A){let i=this._tabListContainer.nativeElement.offsetWidth,o=(A=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(A){this._stopInterval(),this._scrollHeader(A)}_scrollToLabel(A){if(this.disablePagination)return;let i=this._items?this._items.toArray()[A]:null;if(!i)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:g,offsetWidth:n}=i.elementRef.nativeElement,s,r;this._getLayoutDirection()=="ltr"?(s=g,r=s+n):(r=this._tabListInner.nativeElement.offsetWidth-g,s=r-n);let I=this.scrollDistance,B=this.scrollDistance+o;s<I?this.scrollDistance-=I-s:r>B&&(this.scrollDistance+=Math.min(r-B,s-I))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let A=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,o=A-i>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,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 A=this._tabListInner.nativeElement.scrollWidth,i=this._tabListContainer.nativeElement.offsetWidth;return A-i||0}_alignInkBarToSelectedTab(){let A=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=A?A.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(A,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),Lg(j8,X8).pipe(DA(De(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:g}=this._scrollHeader(A);(g===0||g>=o)&&this._stopInterval()}))}_scrollTo(A){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,A)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",iA],selectedIndex:[2,"selectedIndex","selectedIndex",Fe]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),AP=(()=>{class t extends $8{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new XD(this._items),super.ngAfterContentInit()}_itemSelected(A){A.preventDefault()}static \u0275fac=(()=>{let A;return function(o){return(A||(A=WA(t)))(o||t)}})();static \u0275cmp=O({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,o,g){if(i&1&&jA(g,jF,4),i&2){let n;z(n=j())&&(o._items=n)}},viewQuery:function(i,o){if(i&1&&(cA(S8,7),cA(N8,7),cA(G8,7),cA(v8,5),cA(L8,5)),i&2){let g;z(g=j())&&(o._tabListContainer=g.first),z(g=j())&&(o._tabList=g.first),z(g=j())&&(o._tabListInner=g.first),z(g=j())&&(o._nextPaginator=g.first),z(g=j())&&(o._previousPaginator=g.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,o){i&2&&gA("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",iA]},features:[EA],ngContentSelectors:Am,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(i,o){if(i&1){let g=aA();qA(),u(0,"div",5,0),x("click",function(){return H(g),T(o._handlePaginatorClick("before"))})("mousedown",function(s){return H(g),T(o._handlePaginatorPress("before",s))})("touchend",function(){return H(g),T(o._stopInterval())}),W(2,"div",6),m(),u(3,"div",7,1),x("keydown",function(s){return H(g),T(o._handleKeydown(s))}),u(5,"div",8,2),x("cdkObserveContent",function(){return H(g),T(o._onContentChanges())}),u(7,"div",9,3),rA(9),m()()(),u(10,"div",10,4),x("mousedown",function(s){return H(g),T(o._handlePaginatorPress("after",s))})("click",function(){return H(g),T(o._handlePaginatorClick("after"))})("touchend",function(){return H(g),T(o._stopInterval())}),W(12,"div",6),m()}i&2&&(gA("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),F("matRippleDisabled",o._disableScrollBefore||o.disableRipple),f(3),gA("_mat-animation-noopable",o._animationMode==="NoopAnimations"),f(2),IA("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),f(5),gA("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),F("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[dg,XQ],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-sys-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-sys-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, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-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, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-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, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}"],encapsulation:2})}return t})(),eP=new k("MAT_TABS_CONFIG"),tP={translateTab:Qo("translateTab",[oi("center, void, left-origin-center, right-origin-center",Ge({transform:"none",visibility:"visible"})),oi("left",Ge({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),oi("right",Ge({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),St("* => left, * => right, left => center, right => center",qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),St("void => left-origin-center",[Ge({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),St("void => right-origin-center",[Ge({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),qt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},iP=(()=>{class t extends ti{_host=Q(XF);_centeringSub=NA.EMPTY;_leavingSub=NA.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(me(this._host._isCenterPosition(this._host._position))).subscribe(A=>{this._host._content&&A&&!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 \u0275fac=function(i){return new(i||t)};static \u0275dir=Y({type:t,selectors:[["","matTabBodyHost",""]],features:[EA]})}return t})(),XF=(()=>{class t{_elementRef=Q(Z);_dir=Q(Ne,{optional:!0});_positionIndex;_dirChangeSubscription=NA.EMPTY;_position;_translateTabComplete=new K;_onCentering=new $;_beforeCentering=new $;_afterLeavingCenter=new $;_onCentered=new $(!0);_portalHost;_content;origin;animationDuration="500ms";preserveContent=!1;set position(A){this._positionIndex=A,this._computePositionAnimationState()}constructor(){if(this._dir){let A=Q(zA);this._dirChangeSubscription=this._dir.change.subscribe(i=>{this._computePositionAnimationState(i),A.markForCheck()})}this._translateTabComplete.subscribe(A=>{this._isCenterPosition(A.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(A.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(A){let i=this._isCenterPosition(A.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(A){return A=="center"||A=="left-origin-center"||A=="right-origin-center"}_computePositionAnimationState(A=this._getLayoutDirection()){this._positionIndex<0?this._position=A=="ltr"?"left":"right":this._positionIndex>0?this._position=A=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(A){let i=this._getLayoutDirection();return i=="ltr"&&A<=0||i=="rtl"&&A>0?"left-origin-center":"right-origin-center"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,o){if(i&1&&cA(ti,5),i&2){let g;z(g=j())&&(o._portalHost=g.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"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,o){if(i&1){let g=aA();u(0,"div",1,0),x("@translateTab.start",function(s){return H(g),T(o._onTranslateTabStarted(s))})("@translateTab.done",function(s){return H(g),T(o._translateTabComplete.next(s))}),_(2,_8,0,0,"ng-template",2),m()}i&2&&F("@translateTab",us(3,U8,o._position,gn(1,K8,o.animationDuration)))},dependencies:[iP,Jo],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:[tP.translateTab]}})}return t})(),oP=!0,$F=(()=>{class t{_elementRef=Q(Z);_changeDetectorRef=Q(zA);_animationMode=Q(ee,{optional:!0});_allTabs;_tabBodyWrapper;_tabHeader;_tabs=new Vi;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;_tabsSubscription=NA.EMPTY;_tabLabelSubscription=NA.EMPTY;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(A){this._fitInkBarToContent=A,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(A){this._indexToSelect=isNaN(A)?null:A}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(A){let i=A+"";this._animationDuration=/^\d+$/.test(i)?A+"ms":i}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(A){this._contentTabIndex=isNaN(A)?null:A}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(A){if(!oP)throw new Error("mat-tab-group background color must be set through the Sass theming API");let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),A&&i.add("mat-tabs-with-background",`mat-background-${A}`),this._backgroundColor=A}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new $;focusChange=new $;animationDone=new $;selectedTabChange=new $(!0);_groupId;_isServer=!Q(HA).isBrowser;constructor(){let A=Q(eP,{optional:!0});this._groupId=Q(ce).getId("mat-tab-group-"),this.animationDuration=A&&A.animationDuration?A.animationDuration:"500ms",this.disablePagination=A&&A.disablePagination!=null?A.disablePagination:!1,this.dynamicHeight=A&&A.dynamicHeight!=null?A.dynamicHeight:!1,A?.contentTabIndex!=null&&(this.contentTabIndex=A.contentTabIndex),this.preserveContent=!!A?.preserveContent,this.fitInkBarToContent=A&&A.fitInkBarToContent!=null?A.fitInkBarToContent:!1,this.stretchTabs=A&&A.stretchTabs!=null?A.stretchTabs:!0,this.alignTabs=A&&A.alignTabs!=null?A.alignTabs:null}ngAfterContentChecked(){let A=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=A){let i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(A));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,g)=>o.isActive=g===A),i||(this.selectedIndexChange.emit(A),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,o)=>{i.position=o-A,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.origin=A-this._selectedIndex)}),this._selectedIndex!==A&&(this._selectedIndex=A,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let A=this._clampTabIndex(this._indexToSelect);if(A===this._selectedIndex){let i=this._tabs.toArray(),o;for(let g=0;g<i.length;g++)if(i[g].isActive){this._indexToSelect=this._selectedIndex=g,this._lastFocusedTabIndex=null,o=i[g];break}!o&&i[A]&&Promise.resolve().then(()=>{i[A].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(A))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(me(this._allTabs)).subscribe(A=>{this._tabs.reset(A.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(A){let i=this._tabHeader;i&&(i.focusIndex=A)}_focusChanged(A){this._lastFocusedTabIndex=A,this.focusChange.emit(this._createChangeEvent(A))}_createChangeEvent(A){let i=new $D;return i.index=A,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[A]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=De(...this._tabs.map(A=>A._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(A){return Math.min(this._tabs.length-1,Math.max(A||0,0))}_getTabLabelId(A){return`${this._groupId}-label-${A}`}_getTabContentId(A){return`${this._groupId}-content-${A}`}_setTabBodyWrapperHeight(A){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=A+"px")}_removeTabBodyWrapperHeight(){let A=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=A.clientHeight,A.style.height="",this.animationDone.emit()}_handleClick(A,i,o){i.focusIndex=o,A.disabled||(this.selectedIndex=o)}_getTabIndex(A){let i=this._lastFocusedTabIndex??this.selectedIndex;return A===i?0:-1}_tabFocusChanged(A,i){A&&A!=="mouse"&&A!=="touch"&&(this._tabHeader.focusIndex=i)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,o,g){if(i&1&&jA(g,tm,5),i&2){let n;z(n=j())&&(o._allTabs=n)}},viewQuery:function(i,o){if(i&1&&(cA(x8,5),cA(Y8,5)),i&2){let g;z(g=j())&&(o._tabBodyWrapper=g.first),z(g=j())&&(o._tabHeader=g.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(i,o){i&2&&(IA("mat-align-tabs",o.alignTabs),Xe("mat-"+(o.color||"primary")),Ct("--mat-tab-animation-duration",o.animationDuration),gA("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",iA],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",iA],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",iA],selectedIndex:[2,"selectedIndex","selectedIndex",Fe],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Fe],disablePagination:[2,"disablePagination","disablePagination",iA],disableRipple:[2,"disableRipple","disableRipple",iA],preserveContent:[2,"preserveContent","preserveContent",iA],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[KA([{provide:zF,useExisting:t}])],ngContentSelectors:Am,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-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-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(i,o){if(i&1){let g=aA();qA(),u(0,"mat-tab-header",3,0),x("indexFocused",function(s){return H(g),T(o._focusChanged(s))})("selectFocusedIndex",function(s){return H(g),T(o.selectedIndex=s)}),tn(2,O8,8,17,"div",4,en),m(),_(4,P8,1,0),u(5,"div",5,1),tn(7,Z8,1,13,"mat-tab-body",6,en),m()}i&2&&(F("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),f(2),on(o._tabs),f(2),wA(o._isServer?4:-1),f(),gA("_mat-animation-noopable",o._animationMode==="NoopAnimations"),f(2),on(o._tabs))},dependencies:[AP,jF,OR,dg,ti,XF],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.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, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-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-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-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-sys-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-sys-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-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-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-sys-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-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-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-sys-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-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-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 t})(),$D=class{index;tab};var Ab=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[SA,SA]})}return t})();function gm(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Sn=gm();function nb(t){Sn=t}var Ma={exec:()=>null};function ie(t,e=""){let A=typeof t=="string"?t:t.source,i={replace:(o,g)=>{let n=typeof g=="string"?g:g.source;return n=n.replace(Bt.caret,"$1"),A=A.replace(o,n),i},getRegex:()=>new RegExp(A,e)};return i}var Bt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},nP=/^(?:[ \t]*(?:\n|$))+/,sP=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rP=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ka=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,IP=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,nm=/(?:[*+-]|\d{1,9}[.)])/,sb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rb=ie(sb).replace(/bull/g,nm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),aP=ie(sb).replace(/bull/g,nm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),sm=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,CP=/^[^\n]+/,rm=/(?!\s*\])(?:\\.|[^\[\]\\])+/,BP=ie(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",rm).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),QP=ie(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nm).getRegex(),qE="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Im=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,EP=ie("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",Im).replace("tag",qE).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ib=ie(sm).replace("hr",ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qE).getRegex(),cP=ie(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ib).getRegex(),am={blockquote:cP,code:sP,def:BP,fences:rP,heading:IP,hr:ka,html:EP,lheading:rb,list:QP,newline:nP,paragraph:Ib,table:Ma,text:CP},eb=ie("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qE).getRegex(),lP=hA(R({},am),{lheading:aP,table:eb,paragraph:ie(sm).replace("hr",ka).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qE).getRegex()}),dP=hA(R({},am),{html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Im).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ma,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ie(sm).replace("hr",ka).replace("heading",` *#{1,6} *[^
]`).replace("lheading",rb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),hP=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uP=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ab=/^( {2,}|\\)\n(?!\s*$)/,DP=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,VE=/[\p{P}\p{S}]/u,Cm=/[\s\p{P}\p{S}]/u,Cb=/[^\s\p{P}\p{S}]/u,mP=ie(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Cm).getRegex(),Bb=/(?!~)[\p{P}\p{S}]/u,fP=/(?!~)[\s\p{P}\p{S}]/u,wP=/(?:[^\s\p{P}\p{S}]|~)/u,pP=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Qb=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,yP=ie(Qb,"u").replace(/punct/g,VE).getRegex(),MP=ie(Qb,"u").replace(/punct/g,Bb).getRegex(),Eb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",RP=ie(Eb,"gu").replace(/notPunctSpace/g,Cb).replace(/punctSpace/g,Cm).replace(/punct/g,VE).getRegex(),kP=ie(Eb,"gu").replace(/notPunctSpace/g,wP).replace(/punctSpace/g,fP).replace(/punct/g,Bb).getRegex(),FP=ie("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Cb).replace(/punctSpace/g,Cm).replace(/punct/g,VE).getRegex(),bP=ie(/\\(punct)/,"gu").replace(/punct/g,VE).getRegex(),SP=ie(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),NP=ie(Im).replace("(?:-->|$)","-->").getRegex(),GP=ie("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",NP).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ZE=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,vP=ie(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ZE).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cb=ie(/^!?\[(label)\]\[(ref)\]/).replace("label",ZE).replace("ref",rm).getRegex(),lb=ie(/^!?\[(ref)\](?:\[\])?/).replace("ref",rm).getRegex(),LP=ie("reflink|nolink(?!\\()","g").replace("reflink",cb).replace("nolink",lb).getRegex(),Bm={_backpedal:Ma,anyPunctuation:bP,autolink:SP,blockSkip:pP,br:ab,code:uP,del:Ma,emStrongLDelim:yP,emStrongRDelimAst:RP,emStrongRDelimUnd:FP,escape:hP,link:vP,nolink:lb,punctuation:mP,reflink:cb,reflinkSearch:LP,tag:GP,text:DP,url:Ma},KP=hA(R({},Bm),{link:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",ZE).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ZE).getRegex()}),im=hA(R({},Bm),{emStrongRDelimAst:kP,emStrongLDelim:MP,url:ie(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),UP=hA(R({},im),{br:ie(ab).replace("{2,}","*").getRegex(),text:ie(im.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),PE={normal:am,gfm:lP,pedantic:dP},pa={normal:Bm,gfm:im,breaks:UP,pedantic:KP},_P={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tb=t=>_P[t];function uo(t,e){if(e){if(Bt.escapeTest.test(t))return t.replace(Bt.escapeReplace,tb)}else if(Bt.escapeTestNoEncode.test(t))return t.replace(Bt.escapeReplaceNoEncode,tb);return t}function ib(t){try{t=encodeURI(t).replace(Bt.percentDecode,"%")}catch{return null}return t}function ob(t,e){let A=t.replace(Bt.findPipe,(g,n,s)=>{let r=!1,I=n;for(;--I>=0&&s[I]==="\\";)r=!r;return r?"|":" |"}),i=A.split(Bt.splitPipe),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(Bt.slashPipe,"|");return i}function ya(t,e,A){let i=t.length;if(i===0)return"";let o=0;for(;o<i&&t.charAt(i-o-1)===e;)o++;return t.slice(0,i-o)}function xP(t,e){if(t.indexOf(e[1])===-1)return-1;let A=0;for(let i=0;i<t.length;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])A++;else if(t[i]===e[1]&&(A--,A<0))return i;return-1}function gb(t,e,A,i,o){let g=e.href,n=e.title||null,s=t[1].replace(o.other.outputLinkReplace,"$1");if(t[0].charAt(0)!=="!"){i.state.inLink=!0;let r={type:"link",raw:A,href:g,title:n,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,r}return{type:"image",raw:A,href:g,title:n,text:s}}function YP(t,e,A){let i=t.match(A.other.indentCodeCompensation);if(i===null)return e;let o=i[1];return e.split(`
`).map(g=>{let n=g.match(A.other.beginningSpace);if(n===null)return g;let[s]=n;return s.length>=o.length?g.slice(o.length):g}).join(`
`)}var Er=class{options;rules;lexer;constructor(e){this.options=e||Sn}space(e){let A=this.rules.block.newline.exec(e);if(A&&A[0].length>0)return{type:"space",raw:A[0]}}code(e){let A=this.rules.block.code.exec(e);if(A){let i=A[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:A[0],codeBlockStyle:"indented",text:this.options.pedantic?i:ya(i,`
`)}}}fences(e){let A=this.rules.block.fences.exec(e);if(A){let i=A[0],o=YP(i,A[3]||"",this.rules);return{type:"code",raw:i,lang:A[2]?A[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):A[2],text:o}}}heading(e){let A=this.rules.block.heading.exec(e);if(A){let i=A[2].trim();if(this.rules.other.endingHash.test(i)){let o=ya(i,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(i=o.trim())}return{type:"heading",raw:A[0],depth:A[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let A=this.rules.block.hr.exec(e);if(A)return{type:"hr",raw:ya(A[0],`
`)}}blockquote(e){let A=this.rules.block.blockquote.exec(e);if(A){let i=ya(A[0],`
`).split(`
`),o="",g="",n=[];for(;i.length>0;){let s=!1,r=[],I;for(I=0;I<i.length;I++)if(this.rules.other.blockquoteStart.test(i[I]))r.push(i[I]),s=!0;else if(!s)r.push(i[I]);else break;i=i.slice(I);let B=r.join(`
`),c=B.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
${B}`:B,g=g?`${g}
${c}`:c;let D=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,n,!0),this.lexer.state.top=D,i.length===0)break;let h=n.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let p=h,y=p.raw+`
`+i.join(`
`),L=this.blockquote(y);n[n.length-1]=L,o=o.substring(0,o.length-p.raw.length)+L.raw,g=g.substring(0,g.length-p.text.length)+L.text;break}else if(h?.type==="list"){let p=h,y=p.raw+`
`+i.join(`
`),L=this.list(y);n[n.length-1]=L,o=o.substring(0,o.length-h.raw.length)+L.raw,g=g.substring(0,g.length-p.raw.length)+L.raw,i=y.substring(n.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:o,tokens:n,text:g}}}list(e){let A=this.rules.block.list.exec(e);if(A){let i=A[1].trim(),o=i.length>1,g={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");let n=this.rules.other.listItemRegex(i),s=!1;for(;e;){let I=!1,B="",c="";if(!(A=n.exec(e))||this.rules.block.hr.test(e))break;B=A[0],e=e.substring(B.length);let D=A[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,mA=>" ".repeat(3*mA.length)),h=e.split(`
`,1)[0],p=!D.trim(),y=0;if(this.options.pedantic?(y=2,c=D.trimStart()):p?y=A[1].length+1:(y=A[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,c=D.slice(y),y+=A[1].length),p&&this.rules.other.blankLine.test(h)&&(B+=h+`
`,e=e.substring(h.length+1),I=!0),!I){let mA=this.rules.other.nextBulletRegex(y),_A=this.rules.other.hrRegex(y),fA=this.rules.other.fencesBeginRegex(y),Qt=this.rules.other.headingBeginRegex(y),ue=this.rules.other.htmlBeginRegex(y);for(;e;){let pe=e.split(`
`,1)[0],le;if(h=pe,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting,"  "),le=h):le=h.replace(this.rules.other.tabCharGlobal,"    "),fA.test(h)||Qt.test(h)||ue.test(h)||mA.test(h)||_A.test(h))break;if(le.search(this.rules.other.nonSpaceChar)>=y||!h.trim())c+=`
`+le.slice(y);else{if(p||D.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||fA.test(D)||Qt.test(D)||_A.test(D))break;c+=`
`+h}!p&&!h.trim()&&(p=!0),B+=pe+`
`,e=e.substring(pe.length+1),D=le.slice(y)}}g.loose||(s?g.loose=!0:this.rules.other.doubleBlankLine.test(B)&&(s=!0));let L=null,P;this.options.gfm&&(L=this.rules.other.listIsTask.exec(c),L&&(P=L[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),g.items.push({type:"list_item",raw:B,task:!!L,checked:P,loose:!1,text:c,tokens:[]}),g.raw+=B}let r=g.items.at(-1);if(r)r.raw=r.raw.trimEnd(),r.text=r.text.trimEnd();else return;g.raw=g.raw.trimEnd();for(let I=0;I<g.items.length;I++)if(this.lexer.state.top=!1,g.items[I].tokens=this.lexer.blockTokens(g.items[I].text,[]),!g.loose){let B=g.items[I].tokens.filter(D=>D.type==="space"),c=B.length>0&&B.some(D=>this.rules.other.anyLine.test(D.raw));g.loose=c}if(g.loose)for(let I=0;I<g.items.length;I++)g.items[I].loose=!0;return g}}html(e){let A=this.rules.block.html.exec(e);if(A)return{type:"html",block:!0,raw:A[0],pre:A[1]==="pre"||A[1]==="script"||A[1]==="style",text:A[0]}}def(e){let A=this.rules.block.def.exec(e);if(A){let i=A[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=A[2]?A[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",g=A[3]?A[3].substring(1,A[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):A[3];return{type:"def",tag:i,raw:A[0],href:o,title:g}}}table(e){let A=this.rules.block.table.exec(e);if(!A||!this.rules.other.tableDelimiter.test(A[2]))return;let i=ob(A[1]),o=A[2].replace(this.rules.other.tableAlignChars,"").split("|"),g=A[3]?.trim()?A[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],n={type:"table",raw:A[0],header:[],align:[],rows:[]};if(i.length===o.length){for(let s of o)this.rules.other.tableAlignRight.test(s)?n.align.push("right"):this.rules.other.tableAlignCenter.test(s)?n.align.push("center"):this.rules.other.tableAlignLeft.test(s)?n.align.push("left"):n.align.push(null);for(let s=0;s<i.length;s++)n.header.push({text:i[s],tokens:this.lexer.inline(i[s]),header:!0,align:n.align[s]});for(let s of g)n.rows.push(ob(s,n.header.length).map((r,I)=>({text:r,tokens:this.lexer.inline(r),header:!1,align:n.align[I]})));return n}}lheading(e){let A=this.rules.block.lheading.exec(e);if(A)return{type:"heading",raw:A[0],depth:A[2].charAt(0)==="="?1:2,text:A[1],tokens:this.lexer.inline(A[1])}}paragraph(e){let A=this.rules.block.paragraph.exec(e);if(A){let i=A[1].charAt(A[1].length-1)===`
`?A[1].slice(0,-1):A[1];return{type:"paragraph",raw:A[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let A=this.rules.block.text.exec(e);if(A)return{type:"text",raw:A[0],text:A[0],tokens:this.lexer.inline(A[0])}}escape(e){let A=this.rules.inline.escape.exec(e);if(A)return{type:"escape",raw:A[0],text:A[1]}}tag(e){let A=this.rules.inline.tag.exec(e);if(A)return!this.lexer.state.inLink&&this.rules.other.startATag.test(A[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(A[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(A[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(A[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:A[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:A[0]}}link(e){let A=this.rules.inline.link.exec(e);if(A){let i=A[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let n=ya(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{let n=xP(A[2],"()");if(n>-1){let r=(A[0].indexOf("!")===0?5:4)+A[1].length+n;A[2]=A[2].substring(0,n),A[0]=A[0].substring(0,r).trim(),A[3]=""}}let o=A[2],g="";if(this.options.pedantic){let n=this.rules.other.pedanticHrefTitle.exec(o);n&&(o=n[1],g=n[3])}else g=A[3]?A[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?o=o.slice(1):o=o.slice(1,-1)),gb(A,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:g&&g.replace(this.rules.inline.anyPunctuation,"$1")},A[0],this.lexer,this.rules)}}reflink(e,A){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let o=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),g=A[o.toLowerCase()];if(!g){let n=i[0].charAt(0);return{type:"text",raw:n,text:n}}return gb(i,g,i[0],this.lexer,this.rules)}}emStrong(e,A,i=""){let o=this.rules.inline.emStrongLDelim.exec(e);if(!o||o[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(o[1]||o[2]||"")||!i||this.rules.inline.punctuation.exec(i)){let n=[...o[0]].length-1,s,r,I=n,B=0,c=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,A=A.slice(-1*e.length+n);(o=c.exec(A))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(r=[...s].length,o[3]||o[4]){I+=r;continue}else if((o[5]||o[6])&&n%3&&!((n+r)%3)){B+=r;continue}if(I-=r,I>0)continue;r=Math.min(r,r+I+B);let D=[...o[0]][0].length,h=e.slice(0,n+o.index+D+r);if(Math.min(n,r)%2){let y=h.slice(1,-1);return{type:"em",raw:h,text:y,tokens:this.lexer.inlineTokens(y)}}let p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let A=this.rules.inline.code.exec(e);if(A){let i=A[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(i),g=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return o&&g&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:A[0],text:i}}}br(e){let A=this.rules.inline.br.exec(e);if(A)return{type:"br",raw:A[0]}}del(e){let A=this.rules.inline.del.exec(e);if(A)return{type:"del",raw:A[0],text:A[2],tokens:this.lexer.inlineTokens(A[2])}}autolink(e){let A=this.rules.inline.autolink.exec(e);if(A){let i,o;return A[2]==="@"?(i=A[1],o="mailto:"+i):(i=A[1],o=i),{type:"link",raw:A[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let A;if(A=this.rules.inline.url.exec(e)){let i,o;if(A[2]==="@")i=A[0],o="mailto:"+i;else{let g;do g=A[0],A[0]=this.rules.inline._backpedal.exec(A[0])?.[0]??"";while(g!==A[0]);i=A[0],A[1]==="www."?o="http://"+A[0]:o=A[0]}return{type:"link",raw:A[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let A=this.rules.inline.text.exec(e);if(A){let i=this.lexer.state.inRawBlock;return{type:"text",raw:A[0],text:A[0],escaped:i}}}},Ni=class t{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Sn,this.options.tokenizer=this.options.tokenizer||new Er,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let A={other:Bt,block:PE.normal,inline:pa.normal};this.options.pedantic?(A.block=PE.pedantic,A.inline=pa.pedantic):this.options.gfm&&(A.block=PE.gfm,this.options.breaks?A.inline=pa.breaks:A.inline=pa.gfm),this.tokenizer.rules=A}static get rules(){return{block:PE,inline:pa}}static lex(e,A){return new t(A).lex(e)}static lexInline(e,A){return new t(A).inlineTokens(e)}lex(e){e=e.replace(Bt.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let A=0;A<this.inlineQueue.length;A++){let i=this.inlineQueue[A];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,A=[],i=!1){for(this.options.pedantic&&(e=e.replace(Bt.tabCharGlobal,"    ").replace(Bt.spaceLine,""));e;){let o;if(this.options.extensions?.block?.some(n=>(o=n.call({lexer:this},e,A))?(e=e.substring(o.raw.length),A.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let n=A.at(-1);o.raw.length===1&&n!==void 0?n.raw+=`
`:A.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let n=A.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=`
`+o.raw,n.text+=`
`+o.text,this.inlineQueue.at(-1).src=n.text):A.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let n=A.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=`
`+o.raw,n.text+=`
`+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),A.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),A.push(o);continue}let g=e;if(this.options.extensions?.startBlock){let n=1/0,s=e.slice(1),r;this.options.extensions.startBlock.forEach(I=>{r=I.call({lexer:this},s),typeof r=="number"&&r>=0&&(n=Math.min(n,r))}),n<1/0&&n>=0&&(g=e.substring(0,n+1))}if(this.state.top&&(o=this.tokenizer.paragraph(g))){let n=A.at(-1);i&&n?.type==="paragraph"?(n.raw+=`
`+o.raw,n.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):A.push(o),i=g.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let n=A.at(-1);n?.type==="text"?(n.raw+=`
`+o.raw,n.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):A.push(o);continue}if(e){let n="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(n);break}else throw new Error(n)}}return this.state.top=!0,A}inline(e,A=[]){return this.inlineQueue.push({src:e,tokens:A}),A}inlineTokens(e,A=[]){let i=e,o=null;if(this.tokens.links){let s=Object.keys(this.tokens.links);if(s.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)s.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let g=!1,n="";for(;e;){g||(n=""),g=!1;let s;if(this.options.extensions?.inline?.some(I=>(s=I.call({lexer:this},e,A))?(e=e.substring(s.raw.length),A.push(s),!0):!1))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),A.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),A.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),A.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);let I=A.at(-1);s.type==="text"&&I?.type==="text"?(I.raw+=s.raw,I.text+=s.text):A.push(s);continue}if(s=this.tokenizer.emStrong(e,i,n)){e=e.substring(s.raw.length),A.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),A.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),A.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),A.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),A.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),A.push(s);continue}let r=e;if(this.options.extensions?.startInline){let I=1/0,B=e.slice(1),c;this.options.extensions.startInline.forEach(D=>{c=D.call({lexer:this},B),typeof c=="number"&&c>=0&&(I=Math.min(I,c))}),I<1/0&&I>=0&&(r=e.substring(0,I+1))}if(s=this.tokenizer.inlineText(r)){e=e.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(n=s.raw.slice(-1)),g=!0;let I=A.at(-1);I?.type==="text"?(I.raw+=s.raw,I.text+=s.text):A.push(s);continue}if(e){let I="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(I);break}else throw new Error(I)}}return A}},Do=class{options;parser;constructor(e){this.options=e||Sn}space(e){return""}code({text:e,lang:A,escaped:i}){let o=(A||"").match(Bt.notSpaceStart)?.[0],g=e.replace(Bt.endingNewline,"")+`
`;return o?'<pre><code class="language-'+uo(o)+'">'+(i?g:uo(g,!0))+`</code></pre>
`:"<pre><code>"+(i?g:uo(g,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:A}){return`<h${A}>${this.parser.parseInline(e)}</h${A}>
`}hr(e){return`<hr>
`}list(e){let A=e.ordered,i=e.start,o="";for(let s=0;s<e.items.length;s++){let r=e.items[s];o+=this.listitem(r)}let g=A?"ol":"ul",n=A&&i!==1?' start="'+i+'"':"";return"<"+g+n+`>
`+o+"</"+g+`>
`}listitem(e){let A="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+uo(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):A+=i+" "}return A+=this.parser.parse(e.tokens,!!e.loose),`<li>${A}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let A="",i="";for(let g=0;g<e.header.length;g++)i+=this.tablecell(e.header[g]);A+=this.tablerow({text:i});let o="";for(let g=0;g<e.rows.length;g++){let n=e.rows[g];i="";for(let s=0;s<n.length;s++)i+=this.tablecell(n[s]);o+=this.tablerow({text:i})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
<thead>
`+A+`</thead>
`+o+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let A=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+A+`</${i}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${uo(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:A,tokens:i}){let o=this.parser.parseInline(i),g=ib(e);if(g===null)return o;e=g;let n='<a href="'+e+'"';return A&&(n+=' title="'+uo(A)+'"'),n+=">"+o+"</a>",n}image({href:e,title:A,text:i}){let o=ib(e);if(o===null)return uo(i);e=o;let g=`<img src="${e}" alt="${i}"`;return A&&(g+=` title="${uo(A)}"`),g+=">",g}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:uo(e.text)}},Ra=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Gi=class t{options;renderer;textRenderer;constructor(e){this.options=e||Sn,this.options.renderer=this.options.renderer||new Do,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ra}static parse(e,A){return new t(A).parse(e)}static parseInline(e,A){return new t(A).parseInline(e)}parse(e,A=!0){let i="";for(let o=0;o<e.length;o++){let g=e[o];if(this.options.extensions?.renderers?.[g.type]){let s=g,r=this.options.extensions.renderers[s.type].call({parser:this},s);if(r!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){i+=r||"";continue}}let n=g;switch(n.type){case"space":{i+=this.renderer.space(n);continue}case"hr":{i+=this.renderer.hr(n);continue}case"heading":{i+=this.renderer.heading(n);continue}case"code":{i+=this.renderer.code(n);continue}case"table":{i+=this.renderer.table(n);continue}case"blockquote":{i+=this.renderer.blockquote(n);continue}case"list":{i+=this.renderer.list(n);continue}case"html":{i+=this.renderer.html(n);continue}case"paragraph":{i+=this.renderer.paragraph(n);continue}case"text":{let s=n,r=this.renderer.text(s);for(;o+1<e.length&&e[o+1].type==="text";)s=e[++o],r+=`
`+this.renderer.text(s);A?i+=this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):i+=r;continue}default:{let s='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}parseInline(e,A=this.renderer){let i="";for(let o=0;o<e.length;o++){let g=e[o];if(this.options.extensions?.renderers?.[g.type]){let s=this.options.extensions.renderers[g.type].call({parser:this},g);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(g.type)){i+=s||"";continue}}let n=g;switch(n.type){case"escape":{i+=A.text(n);break}case"html":{i+=A.html(n);break}case"link":{i+=A.link(n);break}case"image":{i+=A.image(n);break}case"strong":{i+=A.strong(n);break}case"em":{i+=A.em(n);break}case"codespan":{i+=A.codespan(n);break}case"br":{i+=A.br(n);break}case"del":{i+=A.del(n);break}case"text":{i+=A.text(n);break}default:{let s='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}},Qr=class{options;block;constructor(e){this.options=e||Sn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Ni.lex:Ni.lexInline}provideParser(){return this.block?Gi.parse:Gi.parseInline}},om=class{defaults=gm();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Gi;Renderer=Do;TextRenderer=Ra;Lexer=Ni;Tokenizer=Er;Hooks=Qr;constructor(...e){this.use(...e)}walkTokens(e,A){let i=[];for(let o of e)switch(i=i.concat(A.call(this,o)),o.type){case"table":{let g=o;for(let n of g.header)i=i.concat(this.walkTokens(n.tokens,A));for(let n of g.rows)for(let s of n)i=i.concat(this.walkTokens(s.tokens,A));break}case"list":{let g=o;i=i.concat(this.walkTokens(g.items,A));break}default:{let g=o;this.defaults.extensions?.childTokens?.[g.type]?this.defaults.extensions.childTokens[g.type].forEach(n=>{let s=g[n].flat(1/0);i=i.concat(this.walkTokens(s,A))}):g.tokens&&(i=i.concat(this.walkTokens(g.tokens,A)))}}return i}use(...e){let A=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let o=R({},i);if(o.async=this.defaults.async||o.async||!1,i.extensions&&(i.extensions.forEach(g=>{if(!g.name)throw new Error("extension name required");if("renderer"in g){let n=A.renderers[g.name];n?A.renderers[g.name]=function(...s){let r=g.renderer.apply(this,s);return r===!1&&(r=n.apply(this,s)),r}:A.renderers[g.name]=g.renderer}if("tokenizer"in g){if(!g.level||g.level!=="block"&&g.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let n=A[g.level];n?n.unshift(g.tokenizer):A[g.level]=[g.tokenizer],g.start&&(g.level==="block"?A.startBlock?A.startBlock.push(g.start):A.startBlock=[g.start]:g.level==="inline"&&(A.startInline?A.startInline.push(g.start):A.startInline=[g.start]))}"childTokens"in g&&g.childTokens&&(A.childTokens[g.name]=g.childTokens)}),o.extensions=A),i.renderer){let g=this.defaults.renderer||new Do(this.defaults);for(let n in i.renderer){if(!(n in g))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let s=n,r=i.renderer[s],I=g[s];g[s]=(...B)=>{let c=r.apply(g,B);return c===!1&&(c=I.apply(g,B)),c||""}}o.renderer=g}if(i.tokenizer){let g=this.defaults.tokenizer||new Er(this.defaults);for(let n in i.tokenizer){if(!(n in g))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let s=n,r=i.tokenizer[s],I=g[s];g[s]=(...B)=>{let c=r.apply(g,B);return c===!1&&(c=I.apply(g,B)),c}}o.tokenizer=g}if(i.hooks){let g=this.defaults.hooks||new Qr;for(let n in i.hooks){if(!(n in g))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let s=n,r=i.hooks[s],I=g[s];Qr.passThroughHooks.has(n)?g[s]=B=>{if(this.defaults.async)return Promise.resolve(r.call(g,B)).then(D=>I.call(g,D));let c=r.call(g,B);return I.call(g,c)}:g[s]=(...B)=>{let c=r.apply(g,B);return c===!1&&(c=I.apply(g,B)),c}}o.hooks=g}if(i.walkTokens){let g=this.defaults.walkTokens,n=i.walkTokens;o.walkTokens=function(s){let r=[];return r.push(n.call(this,s)),g&&(r=r.concat(g.call(this,s))),r}}this.defaults=R(R({},this.defaults),o)}),this}setOptions(e){return this.defaults=R(R({},this.defaults),e),this}lexer(e,A){return Ni.lex(e,A??this.defaults)}parser(e,A){return Gi.parse(e,A??this.defaults)}parseMarkdown(e){return(i,o)=>{let g=R({},o),n=R(R({},this.defaults),g),s=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&g.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));n.hooks&&(n.hooks.options=n,n.hooks.block=e);let r=n.hooks?n.hooks.provideLexer():e?Ni.lex:Ni.lexInline,I=n.hooks?n.hooks.provideParser():e?Gi.parse:Gi.parseInline;if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(i):i).then(B=>r(B,n)).then(B=>n.hooks?n.hooks.processAllTokens(B):B).then(B=>n.walkTokens?Promise.all(this.walkTokens(B,n.walkTokens)).then(()=>B):B).then(B=>I(B,n)).then(B=>n.hooks?n.hooks.postprocess(B):B).catch(s);try{n.hooks&&(i=n.hooks.preprocess(i));let B=r(i,n);n.hooks&&(B=n.hooks.processAllTokens(B)),n.walkTokens&&this.walkTokens(B,n.walkTokens);let c=I(B,n);return n.hooks&&(c=n.hooks.postprocess(c)),c}catch(B){return s(B)}}}onError(e,A){return i=>{if(i.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+uo(i.message+"",!0)+"</pre>";return A?Promise.resolve(o):o}if(A)return Promise.reject(i);throw i}}},bn=new om;function XA(t,e){return bn.parse(t,e)}XA.options=XA.setOptions=function(t){return bn.setOptions(t),XA.defaults=bn.defaults,nb(XA.defaults),XA};XA.getDefaults=gm;XA.defaults=Sn;XA.use=function(...t){return bn.use(...t),XA.defaults=bn.defaults,nb(XA.defaults),XA};XA.walkTokens=function(t,e){return bn.walkTokens(t,e)};XA.parseInline=bn.parseInline;XA.Parser=Gi;XA.parser=Gi.parse;XA.Renderer=Do;XA.TextRenderer=Ra;XA.Lexer=Ni;XA.lexer=Ni.lex;XA.Tokenizer=Er;XA.Hooks=Qr;XA.parse=XA;var CIA=XA.options,BIA=XA.setOptions,QIA=XA.use,EIA=XA.walkTokens,cIA=XA.parseInline;var lIA=Gi.parse,dIA=Ni.lex;var JP=["*"],HP="Copy",TP="Copied",OP=(()=>{class t{constructor(){this._buttonClick$=new K,this.copied$=this._buttonClick$.pipe(re(()=>De(tA(!0),Lg(3e3).pipe(Vn(!1)))),Bi(),Ro(1)),this.copiedText$=this.copied$.pipe(me(!1),oA(A=>A?TP:HP))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=O({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,o){i&1&&(u(0,"button",0),rg(1,"async"),x("click",function(){return o.onCopyToClipboardClick()}),v(2),rg(3,"async"),m()),i&2&&(gA("copied",Ds(1,3,o.copied$)),f(2),PA(Ds(3,5,o.copiedText$)))},dependencies:[EI],encapsulation:2,changeDetection:0})}}return t})(),PP=new k("CLIPBOARD_OPTIONS");var Qm=function(t){return t.CommandLine="command-line",t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}(Qm||{}),db=new k("MARKED_EXTENSIONS"),ZP=new k("MARKED_OPTIONS"),qP=new k("MERMAID_OPTIONS"),VP="[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information",WP="[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information",zP="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",jP="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",XP="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",$P="[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information",hb=new k("SECURITY_CONTEXT");var ub=(()=>{class t{get options(){return this._options}set options(A){this._options=R(R({},this.DEFAULT_MARKED_OPTIONS),A)}get renderer(){return this.options.renderer}set renderer(A){this.options.renderer=A}constructor(A,i,o,g,n,s,r,I){this.clipboardOptions=A,this.extensions=i,this.mermaidOptions=g,this.platform=n,this.securityContext=s,this.http=r,this.sanitizer=I,this.DEFAULT_MARKED_OPTIONS={renderer:new Do},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new K,this.reload$=this._reload$.asObservable(),this.options=o}parse(A,i=this.DEFAULT_PARSE_OPTIONS){let{decodeHtml:o,inline:g,emoji:n,mermaid:s,disableSanitizer:r}=i,I=R(R({},this.options),i.markedOptions),B=I.renderer||this.renderer||new Do;this.extensions&&(this.renderer=this.extendsRendererForExtensions(B)),s&&(this.renderer=this.extendsRendererForMermaid(B));let c=this.trimIndentation(A),D=o?this.decodeHtml(c):c,h=n?this.parseEmoji(D):D,p=this.parseMarked(h,I,g);return(r?p:this.sanitizer.sanitize(this.securityContext,p))||""}render(A,i=this.DEFAULT_RENDER_OPTIONS,o){let{clipboard:g,clipboardOptions:n,katex:s,katexOptions:r,mermaid:I,mermaidOptions:B}=i;s&&this.renderKatex(A,R(R({},this.DEFAULT_KATEX_OPTIONS),r)),I&&this.renderMermaid(A,R(R(R({},this.DEFAULT_MERMAID_OPTIONS),this.mermaidOptions),B)),g&&this.renderClipboard(A,o,R(R(R({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),n)),this.highlight(A)}reload(){this._reload$.next()}getSource(A){if(!this.http)throw new Error($P);return this.http.get(A,{responseType:"text"}).pipe(oA(i=>this.handleExtension(A,i)))}highlight(A){if(!to(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;A||(A=document);let i=A.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,o=>o.classList.add("language-none")),Prism.highlightAllUnder(A)}decodeHtml(A){if(!to(this.platform))return A;let i=document.createElement("textarea");return i.innerHTML=A,i.value}extendsRendererForExtensions(A){let i=A;return i.\u0275NgxMarkdownRendererExtendedForExtensions===!0||(this.extensions?.length>0&&XA.use(...this.extensions),i.\u0275NgxMarkdownRendererExtendedForExtensions=!0),A}extendsRendererForMermaid(A){let i=A;if(i.\u0275NgxMarkdownRendererExtendedForMermaid===!0)return A;let o=A.code;return A.code=g=>g.lang==="mermaid"?`<div class="mermaid">${g.text}</div>`:o(g),i.\u0275NgxMarkdownRendererExtendedForMermaid=!0,A}handleExtension(A,i){let o=A.lastIndexOf("://"),g=o>-1?A.substring(o+4):A,n=g.lastIndexOf("/"),s=n>-1?g.substring(n+1).split("?")[0]:"",r=s.lastIndexOf("."),I=r>-1?s.substring(r+1):"";return I&&I!=="md"?"```"+I+`
`+i+"\n```":i}parseMarked(A,i,o=!1){if(i.renderer){let g=R({},i.renderer);delete g.\u0275NgxMarkdownRendererExtendedForExtensions,delete g.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,XA.use({renderer:g})}return o?XA.parseInline(A,i):XA.parse(A,i)}parseEmoji(A){if(!to(this.platform))return A;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(VP);return joypixels.shortnameToUnicode(A)}renderKatex(A,i){if(to(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(WP);renderMathInElement(A,i)}}renderClipboard(A,i,o){if(!to(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(jP);if(!i)throw new Error(XP);let{buttonComponent:g,buttonTemplate:n}=o,s=A.querySelectorAll("pre");for(let r=0;r<s.length;r++){let I=s.item(r),B=document.createElement("div");B.style.position="relative",I.parentNode.insertBefore(B,I),B.appendChild(I);let c=document.createElement("div");c.classList.add("markdown-clipboard-toolbar"),c.style.position="absolute",c.style.top=".5em",c.style.right=".5em",c.style.zIndex="1",B.insertAdjacentElement("beforeend",c),B.onmouseenter=()=>c.classList.add("hover"),B.onmouseleave=()=>c.classList.remove("hover");let D;if(g){let p=i.createComponent(g);D=p.hostView,p.changeDetectorRef.markForCheck()}else if(n)D=i.createEmbeddedView(n);else{let p=i.createComponent(OP);D=p.hostView,p.changeDetectorRef.markForCheck()}let h;D.rootNodes.forEach(p=>{c.appendChild(p),h=new ClipboardJS(p,{text:()=>I.innerText})}),D.onDestroy(()=>h.destroy())}}renderMermaid(A,i=this.DEFAULT_MERMAID_OPTIONS){if(!to(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(zP);let o=A.querySelectorAll(".mermaid");o.length!==0&&(mermaid.initialize(i),mermaid.run({nodes:o}))}trimIndentation(A){if(!A)return"";let i;return A.split(`
`).map(o=>{let g=i;return o.length>0&&(g=isNaN(g)?o.search(/\S|$/):Math.min(o.search(/\S|$/),g)),isNaN(i)&&(i=g),g?o.substring(g):o}).join(`
`)}static{this.\u0275fac=function(i){return new(i||t)(J(PP,8),J(db,8),J(ZP,8),J(qP,8),J(jt),J(hb),J(it,8),J(an))}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac})}}return t})(),Db=(()=>{class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(A){this._disableSanitizer=this.coerceBooleanProperty(A)}get inline(){return this._inline}set inline(A){this._inline=this.coerceBooleanProperty(A)}get clipboard(){return this._clipboard}set clipboard(A){this._clipboard=this.coerceBooleanProperty(A)}get emoji(){return this._emoji}set emoji(A){this._emoji=this.coerceBooleanProperty(A)}get katex(){return this._katex}set katex(A){this._katex=this.coerceBooleanProperty(A)}get mermaid(){return this._mermaid}set mermaid(A){this._mermaid=this.coerceBooleanProperty(A)}get lineHighlight(){return this._lineHighlight}set lineHighlight(A){this._lineHighlight=this.coerceBooleanProperty(A)}get lineNumbers(){return this._lineNumbers}set lineNumbers(A){this._lineNumbers=this.coerceBooleanProperty(A)}get commandLine(){return this._commandLine}set commandLine(A){this._commandLine=this.coerceBooleanProperty(A)}constructor(A,i,o){this.element=A,this.markdownService=i,this.viewContainerRef=o,this.error=new $,this.load=new $,this.ready=new $,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new K}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(DA(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(A,i=!1){return qe(this,null,function*(){let o={decodeHtml:i,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},g={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},n=yield this.markdownService.parse(A,o);this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,g,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(A){return A!=null&&`${String(A)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:A=>{this.render(A).then(()=>{this.load.emit(A)})},error:A=>this.error.emit(A)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Qm.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Qm.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(A,i){let o=A.querySelectorAll("pre");for(let g=0;g<o.length;g++){let n=i instanceof Array?i:[i];o.item(g).classList.add(...n)}}setPluginOptions(A,i){let o=A.querySelectorAll("pre");for(let g=0;g<o.length;g++)Object.keys(i).forEach(n=>{let s=i[n];if(s){let r=this.toLispCase(n);o.item(g).setAttribute(r,s.toString())}})}toLispCase(A){let i=A.match(/([A-Z])/g);if(!i)return A;let o=A.toString();for(let g=0,n=i.length;g<n;g++)o=o.replace(new RegExp(i[g]),"-"+i[g].toLowerCase());return o.slice(0,1)==="-"&&(o=o.slice(1)),o}static{this.\u0275fac=function(i){return new(i||t)(AA(Z),AA(ub),AA(Ce))}}static{this.\u0275cmp=O({type:t,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[VA],ngContentSelectors:JP,decls:1,vars:0,template:function(i,o){i&1&&(qA(),rA(0))},encapsulation:2})}}return t})();function AZ(t){return[ub,t?.loader??[],t?.clipboardOptions??[],t?.markedOptions??[],t?.mermaidOptions??[],tZ(t?.markedExtensions)??[],{provide:hb,useValue:t?.sanitize??Ve.HTML}]}function eZ(t){return t!=null&&t.provide!=null}function tZ(t){if(t)return t.reduce((e,A)=>{let i=eZ(A)?hA(R({},A),{multi:!0}):{provide:db,useValue:A,multi:!0};return[...e,i]},[])}var mb=(()=>{class t{static forRoot(A){return{ngModule:t,providers:[AZ(A)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=V({type:t})}static{this.\u0275inj=q({imports:[Uo]})}}return t})();var oZ=["switch"],gZ=["*"];function nZ(t,e){t&1&&(u(0,"span",10),at(),u(1,"svg",12),W(2,"path",13),m(),u(3,"svg",14),W(4,"path",15),m()())}var sZ=new k("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),rZ={provide:Bn,useExisting:ft(()=>zE),multi:!0},WE=class{source;checked;constructor(e,A){this.source=e,this.checked=A}},zE=(()=>{class t{_elementRef=Q(Z);_focusMonitor=Q(Xt);_changeDetectorRef=Q(zA);defaults=Q(sZ);_onChange=A=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(A){return new WE(this,A)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(A){this._checked=A,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new $;toggleChange=new $;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){Q(be).load(ki);let A=Q(new Dt("tabindex"),{optional:!0}),i=this.defaults,o=Q(ee,{optional:!0});this.tabIndex=A==null?0:parseInt(A)||0,this.color=i.color||"accent",this._noopAnimations=o==="NoopAnimations",this.id=this._uniqueId=Q(ce).getId("mat-mdc-slide-toggle-"),this.hideIcon=i.hideIcon??!1,this.disabledInteractive=i.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(A=>{A==="keyboard"||A==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):A||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(A){A.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(A){this.checked=!!A}registerOnChange(A){this._onChange=A}registerOnTouched(A){this._onTouched=A}validate(A){return this.required&&A.value!==!0?{required:!0}:null}registerOnValidatorChange(A){this._validatorOnChange=A}setDisabledState(A){this.disabled=A,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 WE(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=O({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,o){if(i&1&&cA(oZ,5),i&2){let g;z(g=j())&&(o._switchElement=g.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,o){i&2&&(yt("id",o.id),IA("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Xe(o.color?"mat-"+o.color:""),gA("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._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",iA],color:"color",disabled:[2,"disabled","disabled",iA],disableRipple:[2,"disableRipple","disableRipple",iA],tabIndex:[2,"tabIndex","tabIndex",A=>A==null?0:Fe(A)],checked:[2,"checked","checked",iA],hideIcon:[2,"hideIcon","hideIcon",iA],disabledInteractive:[2,"disabledInteractive","disabledInteractive",iA]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[KA([rZ,{provide:Cg,useExisting:t,multi:!0}]),VA],ngContentSelectors:gZ,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-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(i,o){if(i&1){let g=aA();qA(),u(0,"div",1)(1,"button",2,0),x("click",function(){return H(g),T(o._handleClick())}),W(3,"span",3),u(4,"span",4)(5,"span",5)(6,"span",6),W(7,"span",7),m(),u(8,"span",8),W(9,"span",9),m(),_(10,nZ,5,0,"span",10),m()()(),u(11,"label",11),x("click",function(s){return H(g),T(s.stopPropagation())}),rA(12),m()()}if(i&2){let g=He(2);F("labelPosition",o.labelPosition),f(),gA("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled)("mat-mdc-slide-toggle-disabled-interactive",o.disabledInteractive),F("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),IA("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),f(8),F("matRippleTrigger",g)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),f(),wA(o.hideIcon?-1:10),f(),F("for",o.buttonId),IA("id",o._labelId)}},dependencies:[dg,cE],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, 52px)}.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, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.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, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.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-sys-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, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-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-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-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, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-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-sys-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-sys-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, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.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}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-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-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-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-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-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, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.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-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-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-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-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, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.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, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-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-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-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 t})();var fb=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[zE,SA,SA]})}return t})();var cr=class t{downloadBase64Data(e,A,i="image.png"){try{let o=document.createElement("a");o.href=e,o.download=i,document.body.appendChild(o),o.click(),document.body.removeChild(o)}catch(o){throw console.error("Error downloading base64 data:",o),o}}static \u0275fac=function(A){return new(A||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};function CZ(t,e){t&1&&W(0,"hr",10)}function BZ(t,e){if(t&1&&(u(0,"mat-option",11),v(1),m()),t&2){let A=e.$implicit;F("value",A),f(),PA(A.versionId)}}function QZ(t,e){if(t&1&&W(0,"img",12),t&2){let A,i=b().index,o=b();F("src",(A=o.selectedArtifacts[i].data)!==null&&A!==void 0?A:"",An)}}function EZ(t,e){if(t&1){let A=aA();u(0,"div",2),_(1,CZ,1,0,"hr",3),u(2,"div",4)(3,"span"),v(4),m()(),u(5,"div",4)(6,"span"),v(7," Version: "),m(),u(8,"div",5)(9,"mat-select",6),fi("ngModelChange",function(o){let g=H(A).index,n=b();return $i(n.selectedArtifacts[g],o)||(n.selectedArtifacts[g]=o),T(o)}),x("selectionChange",function(o){let g=H(A).index,n=b();return T(n.onArtifactVersionChange(o,g))}),_(10,BZ,2,2,"mat-option",7),m()(),u(11,"button",8),x("click",function(){let o=H(A).index,g=b();return T(g.downloadArtifact(g.selectedArtifacts[o]))}),u(12,"mat-icon"),v(13,"file_download"),m(),v(14," Download "),m()(),_(15,QZ,1,1,"img",9),m()}if(t&2){let A=e.$implicit,i=e.index,o=b();f(),F("ngIf",i>0),f(3),te(" ",o.getArtifactName(A)," "),f(5),mi("ngModel",o.selectedArtifacts[i]),f(),F("ngForOf",o.getSortedArtifactsFromId(A)),f(5),F("ngIf",o.isArtifactImage(o.selectedArtifacts[i]))}}var cZ="default_artifact_name",Fa=class t{constructor(e){this.downloadService=e}artifacts=[];selectedArtifacts=[];ngOnChanges(e){if(e.artifacts){this.selectedArtifacts=[];for(let A of this.getDistinctArtifactIds())this.selectedArtifacts.push(this.getSortedArtifactsFromId(A)[0])}}downloadArtifact(e){this.downloadService.downloadBase64Data(e.data,e.mimeType,e.id)}getArtifactName(e){return e??cZ}isArtifactImage(e){return!e||!e.mimeType?!1:e.mimeType.startsWith("image/")}getDistinctArtifactIds(){return[...new Set(this.artifacts.map(e=>e.id))]}getSortedArtifactsFromId(e){return this.artifacts.filter(A=>A.id===e).sort((A,i)=>i.versionId-A.versionId)}onArtifactVersionChange(e,A){this.selectedArtifacts[A]=e.value}static \u0275fac=function(A){return new(A||t)(AA(cr))};static \u0275cmp=O({type:t,selectors:[["app-artifact-tab"]],inputs:{artifacts:"artifacts"},standalone:!1,features:[VA],decls:2,vars:1,consts:[[1,"artifact-container"],["class","artifact-box",4,"ngFor","ngForOf"],[1,"artifact-box"],["class","white-separator",4,"ngIf"],[1,"artifact-metadata"],[1,"version-select-container"],[3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-flat-button","",1,"download-button",3,"click"],["class","generated-image","alt","artifact.id",3,"src",4,"ngIf"],[1,"white-separator"],[3,"value"],["alt","artifact.id",1,"generated-image",3,"src"]],template:function(A,i){A&1&&(u(0,"div",0),_(1,EZ,16,5,"div",1),m()),A&2&&(f(),F("ngForOf",i.getDistinctArtifactIds()))},dependencies:[Rt,Jt,oo,yi,Ir,bt,ir,hg],styles:[".artifact-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.artifact-box[_ngcontent-%COMP%]{padding:10px;max-width:100%;margin-left:26px;display:flex;flex-direction:column}.artifact-metadata[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:15px}.download-button[_ngcontent-%COMP%]{background-color:#8ab4f8!important;margin-left:35px;width:130px;height:28px;font-size:14px}.generated-image[_ngcontent-%COMP%]{max-width:60%;border-radius:8px}hr.white-separator[_ngcontent-%COMP%]{border:none;border-top:1px solid white;margin-bottom:1.2em;margin-right:15px}.version-select-container[_ngcontent-%COMP%]{background-color:#212123;width:80px;margin-left:15px}"]})};var ba=class t{sessionState={};constructor(){}static \u0275fac=function(A){return new(A||t)};static \u0275cmp=O({type:t,selectors:[["app-state-tab"]],inputs:{sessionState:"sessionState"},standalone:!1,decls:3,vars:1,consts:[[1,"state-wrapper"],[3,"json"]],template:function(A,i){A&1&&(u(0,"div",0)(1,"div"),W(2,"ngx-json-viewer",1),m()()),A&2&&(f(2),F("json",i.sessionState))},dependencies:[OE],styles:[".state-wrapper[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px;margin-top:16px}"]})};var hZ=["videoContainer"],uZ=["sidenav"],DZ=["autoScroll"],mZ=()=>[],fZ=(t,e)=>({"user-message":t,"bot-message":e}),wb=t=>({"background-color":t});function wZ(t,e){if(t&1&&(u(0,"mat-option",20),v(1),m()),t&2){let A=e.$implicit;F("value",A),f(),PA(A)}}function pZ(t,e){t&1&&tn(0,wZ,2,2,"mat-option",20,en),t&2&&on(e)}function yZ(t,e){if(t&1&&(u(0,"mat-option",20),v(1),m()),t&2){let A=b(2);F("value",A.selectedAppControl.value),f(),PA(A.selectedAppControl.value)}}function MZ(t,e){if(t&1&&(u(0,"div",10)(1,"mat-select",19),_(2,pZ,2,0),rg(3,"async"),_(4,yZ,2,2,"mat-option",20),m()()),t&2){let A,i=b();f(),F("placeholder",i.isLoadingApps()?"Loading...":"Select an agent")("formControl",i.selectedAppControl),f(),wA((A=Ds(3,4,i.apps$))?2:-1,A),f(2),wA(i.selectedAppControl.value&&i.isLoadingApps()?4:-1)}}function RZ(t,e){t&1&&(u(0,"span"),v(1," No apps Avaiable in current directory"),m())}function kZ(t,e){t&1&&(u(0,"span",29),v(1,"Events"),m())}function FZ(t,e){t&1&&(u(0,"span",29),v(1,"State"),m())}function bZ(t,e){t&1&&(u(0,"span",29),v(1,"Artifacts"),m())}function SZ(t,e){t&1&&(u(0,"span",29),v(1,"Sessions"),m())}function NZ(t,e){t&1&&(u(0,"span",29),v(1,"Eval"),m())}function GZ(t,e){if(t&1){let A=aA();u(0,"div",21)(1,"mat-tab-group")(2,"mat-tab",22),_(3,kZ,2,0,"ng-template",23),u(4,"app-event-tab",24),x("selectedEvent",function(o){H(A);let g=b();return T(g.selectEvent(o))}),m()(),u(5,"mat-tab"),_(6,FZ,2,0,"ng-template",23),W(7,"app-state-tab",25),m(),u(8,"mat-tab"),_(9,bZ,2,0,"ng-template",23),W(10,"app-artifact-tab",26),m(),u(11,"mat-tab"),_(12,SZ,2,0,"ng-template",23),u(13,"app-session-tab",27),x("sessionSelected",function(o){H(A);let g=b();return T(g.updateWithSelectedSession(o))})("sessionReloaded",function(o){H(A);let g=b();return T(g.updateSessionState(o))}),m()(),u(14,"mat-tab"),_(15,NZ,2,0,"ng-template",23),u(16,"app-eval-tab",28),x("sessionSelected",function(o){H(A);let g=b();return T(g.updateWithSelectedSession(o))}),m()()()()}if(t&2){let A=b();f(4),F("eventsMap",A.eventData),f(3),F("sessionState",A.currentSessionState),f(3),F("artifacts",A.artifacts),f(3),F("userId",A.userId)("appName",A.appName)("sessionId",A.sessionId),f(3),F("appName",A.appName)("userId",A.userId)("sessionId",A.sessionId)}}function vZ(t,e){if(t&1&&W(0,"div",41),t&2){let A=b(2);F("innerHtml",A.renderedEventGraph,jp)}}function LZ(t,e){if(t&1){let A=aA();u(0,"div",30)(1,"div",31)(2,"div",32)(3,"mat-paginator",33),x("page",function(o){H(A);let g=b();return T(g.handlePageEvent(o))}),m(),u(4,"button",34)(5,"mat-icon",9),x("click",function(){H(A);let o=b();return T(o.closeSelectedEvent())}),v(6,"close"),m()()()(),u(7,"div")(8,"mat-tab-group")(9,"mat-tab",35)(10,"div",36),_(11,vZ,1,1,"div",37),m(),W(12,"ngx-json-viewer",38),m(),u(13,"mat-tab",39),W(14,"ngx-json-viewer",38),m(),u(15,"mat-tab",40),W(16,"ngx-json-viewer",38),m()()()()}if(t&2){let A=b();f(3),F("length",A.eventData.size)("pageSize",1)("pageIndex",A.selectedEventIndex),f(8),F("ngIf",A.renderedEventGraph),f(),F("json",A.selectedEvent),f(2),F("json",A.llmRequest),f(2),F("json",A.llmResponse)}}function KZ(t,e){if(t&1){let A=aA();u(0,"div",42)(1,"div",43)(2,"div",44),v(3,"Session ID"),m(),u(4,"div",45),v(5),m()(),u(6,"div",46)(7,"div",47)(8,"mat-slide-toggle",48),x("change",function(){H(A);let o=b();return T(o.toggleSse())}),v(9," Token Streaming "),m()(),W(10,"mat-divider",49),u(11,"div",50)(12,"div",51),x("click",function(){H(A);let o=b();return T(o.onNewSessionClick())}),u(13,"mat-icon"),v(14,"add"),m(),v(15," New Session "),m(),u(16,"span",52),x("click",function(){H(A);let o=b();return T(o.deleteSession(o.sessionId))}),v(17," delete "),m()()()()}if(t&2){let A=b();f(5),PA(A.sessionId),f(3),F("checked",A.enableSseIndicator()),f(2),F("vertical",!0)}}function UZ(t,e){t&1&&(u(0,"div",53)(1,"span"),v(2,"Loading agents, please wait..."),m()())}function _Z(t,e){t&1&&(u(0,"span"),v(1,"Welcome to ADK!"),W(2,"br"),v(3," Select an agent on the left to begin with."),m())}function xZ(t,e){if(t&1&&(v(0," Error message: "),W(1,"br"),u(2,"pre",55),v(3),m()),t&2){let A=b(4);f(3),PA(A.loadingError())}}function YZ(t,e){t&1&&(u(0,"pre",54),v(1,"Warning: No agents found in current folder."),m())}function JZ(t,e){if(t&1&&(u(0,"div"),v(1," Failed to load agents. To get started, run "),u(2,"pre"),v(3,"adk web"),m(),v(4," in the folder that contains the agents."),W(5,"br"),_(6,xZ,4,1)(7,YZ,2,0,"pre",54),m()),t&2){let A=b(3);f(6),wA(A.loadingError()?6:7)}}function HZ(t,e){if(t&1&&(u(0,"div",53),_(1,_Z,4,0,"span"),rg(2,"async"),_(3,JZ,8,1,"div"),m()),t&2){let A=b(2);f(),wA((Ds(2,1,A.apps$)||I0(3,mZ)).length>0?1:3)}}function TZ(t,e){if(t&1&&_(0,UZ,3,0,"div",53)(1,HZ,4,4,"div",53),t&2){let A=b();wA(A.isLoadingApps()?0:1)}}function OZ(t,e){if(t&1){let A=aA();u(0,"button",56),x("click",function(){H(A);let o=b();return T(o.openDialog())}),u(1,"mat-icon"),v(2,"priority_high"),m()()}}function PZ(t,e){if(t&1){let A=aA();u(0,"button",67),x("click",function(){H(A);let o=b().index,g=b(2);return T(g.clickEvent(o))}),u(1,"mat-icon",68),v(2,"robot_2"),m()()}}function ZZ(t,e){if(t&1&&(ui(0),W(1,"img",72),Di()),t&2){let A=b().$implicit;f(),F("src",A.url,An)}}function qZ(t,e){if(t&1&&(ui(0),u(1,"mat-icon"),v(2,"insert_drive_file"),m(),u(3,"a",73),v(4),m(),Di()),t&2){let A=b().$implicit;f(3),F("href",A.url,An),f(),PA(A.file.name)}}function VZ(t,e){if(t&1&&(u(0,"div",71),_(1,ZZ,2,1,"ng-container",64)(2,qZ,5,2,"ng-container",64),m()),t&2){let A=e.$implicit;f(),F("ngIf",A.file.type.startsWith("image/")),f(),F("ngIf",!A.file.type.startsWith("image/"))}}function WZ(t,e){if(t&1&&(u(0,"div",69),_(1,VZ,3,2,"div",70),m()),t&2){let A=b().$implicit;f(),F("ngForOf",A.attachments)}}function zZ(t,e){if(t&1&&W(0,"markdown",74),t&2){let A=b().$implicit;F("data",A.text)}}function jZ(t,e){if(t&1&&(u(0,"code"),v(1),m()),t&2){let A=b().$implicit;f(),te(" ",A.executableCode.code," ")}}function XZ(t,e){if(t&1&&(u(0,"div")(1,"div"),v(2),m(),u(3,"div"),v(4),m()()),t&2){let A=b().$implicit;f(2),te("Outcome: ",A.codeExecutionResult.outcome,""),f(2),te("Output: ",A.codeExecutionResult.output,"")}}function $Z(t,e){if(t&1&&(u(0,"div"),W(1,"img",75),m()),t&2){let A=b().$implicit;f(),F("src",A.inline_data.data,An)}}function Aq(t,e){if(t&1){let A=aA();u(0,"button",76),x("click",function(){H(A);let o=b().index,g=b(2);return T(g.clickEvent(o))}),u(1,"mat-icon"),v(2,"bolt"),m(),v(3),m()}if(t&2){let A=b().$implicit;f(3),te(" ",A.functionCall.name," ")}}function eq(t,e){if(t&1){let A=aA();u(0,"button",76),x("click",function(){H(A);let o=b().index,g=b(2);return T(g.clickEvent(o))}),u(1,"mat-icon"),v(2,"check"),m(),v(3),m()}if(t&2){let A=b().$implicit;f(3),te(" ",A.functionResponse.name," ")}}function tq(t,e){t&1&&(u(0,"button",34)(1,"mat-icon"),v(2,"person"),m()())}function iq(t,e){if(t&1&&(u(0,"div",59),_(1,PZ,3,0,"button",60),u(2,"mat-card",61),_(3,WZ,2,1,"div",62)(4,zZ,1,1,"markdown",63)(5,jZ,2,1,"code",64)(6,XZ,5,2,"div",64)(7,$Z,2,1,"div",64)(8,Aq,4,1,"button",65)(9,eq,4,1,"button",65),m(),_(10,tq,3,0,"button",66),m()),t&2){let A=e.$implicit;F("ngClass",us(10,fZ,A.role==="user",A.role==="bot")),f(),F("ngIf",A.role==="bot"),f(2),F("ngIf",A.attachments),f(),F("ngIf",A.text),f(),F("ngIf",A.executableCode),f(),F("ngIf",A.codeExecutionResult),f(),F("ngIf",A.inline_data&&A.role==="bot"),f(),F("ngIf",A.functionCall),f(),F("ngIf",A.functionResponse),f(),F("ngIf",A.role==="user")}}function oq(t,e){if(t&1&&(u(0,"div",57,1),W(2,"div",null,2),_(4,iq,11,13,"div",58),m()),t&2){let A=b();f(4),F("ngForOf",A.messages)}}function gq(t,e){if(t&1){let A=aA();u(0,"div",90),W(1,"img",91),u(2,"button",92),x("click",function(){H(A);let o=b().index,g=b(3);return T(g.removeFile(o))}),u(3,"mat-icon",93),v(4,"close"),m()()()}if(t&2){let A=b().$implicit;f(),F("src",A.url,An)}}function nq(t,e){if(t&1){let A=aA();u(0,"div",94)(1,"button",92),x("click",function(){H(A);let o=b().index,g=b(3);return T(g.removeFile(o))}),u(2,"mat-icon",93),v(3,"close"),m()(),u(4,"div",95)(5,"mat-icon"),v(6,"insert_drive_file"),m(),u(7,"span"),v(8),m()()()}if(t&2){let A=b().$implicit;f(8),PA(A.file.name)}}function sq(t,e){if(t&1&&(u(0,"div"),_(1,gq,5,1,"div",88)(2,nq,9,1,"div",89),m()),t&2){let A=e.$implicit;f(),F("ngIf",A.file.type.startsWith("image/")),f(),F("ngIf",!A.file.type.startsWith("image/"))}}function rq(t,e){if(t&1&&(u(0,"div",86),_(1,sq,3,2,"div",87),m()),t&2){let A=b(2);f(),F("ngForOf",A.selectedFiles)}}function Iq(t,e){if(t&1){let A=aA();u(0,"div",77)(1,"input",78,3),x("change",function(o){H(A);let g=b();return T(g.onFileSelect(o))}),m(),u(3,"mat-form-field",79),_(4,rq,2,1,"div",80),u(5,"input",81),fi("ngModelChange",function(o){H(A);let g=b();return $i(g.userInput,o)||(g.userInput=o),T(o)}),x("keydown.enter",function(o){H(A);let g=b();return T(g.sendMessage(o))}),m(),u(6,"div",82)(7,"button",83),x("click",function(){H(A);let o=He(2);return T(o.click())}),u(8,"mat-icon"),v(9,"attach_file"),m()(),u(10,"div")(11,"button",84),x("click",function(){H(A);let o=b();return T(o.toggleAudioRecording())}),W(12,"mat-icon",85),m(),u(13,"button",84),x("click",function(){H(A);let o=b();return T(o.toggleVideoRecording())}),W(14,"mat-icon",85),m()()()()()}if(t&2){let A=b();f(4),F("ngIf",A.selectedFiles.length&&A.appName!=""),f(),mi("ngModel",A.userInput),f(6),F("ngStyle",gn(6,wb,A.isAudioRecording?"rgb(234, 67, 53)":"rgb(51, 53, 55)")),f(),F("innerText",A.isAudioRecording?"stop":"mic"),f(),F("ngStyle",gn(8,wb,A.isVideoRecording?"rgb(234, 67, 53)":"rgb(51, 53, 55)")),f(),F("innerText",A.isVideoRecording?"stop":"videocam")}}function aq(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4!==0;)t+="=";return t}var Em=class extends yn{nextPageLabel="Next Event";previousPageLabel="Previous Event";firstPageLabel="First Event";lastPageLabel="Last Event";getRangeLabel=(e,A,i)=>i===0?`Event 0 of ${i}`:(i=Math.max(i,0),`Event ${e*A+1} of ${i}`)},Sa=class t{constructor(e,A,i,o,g,n,s,r,I){this.sanitizer=e;this.sesisonService=A;this.artifactService=i;this.audioService=o;this.webSocketService=g;this.videoService=n;this.dialog=s;this.eventService=r;this.sessionService=I}videoContainer;sidenav;eventTabComponent;sessionTab;evalTab;scrollContainer;_snackBar=Q(Ok);enableSseIndicator=_t(!1);videoElement;currentMessage="";messages=[];lastTextChunk="";streamingTextMessage=null;artifacts=[];userInput="";userId="user";appName="";sessionId="";isAudioRecording=!1;isVideoRecording=!1;longRunningEvents=[];functionCallEventId="";redirectUri=ot.getBaseUrlWithoutPath();showSidePanel=!0;useSse=!1;currentSessionState={};eventData=new Map;eventMessageIndexArray=[];renderedEventGraph;selectedEvent=void 0;selectedEventIndex=void 0;llmRequest=void 0;llmResponse=void 0;llmRequestKey="gcp.vertex.agent.llm_request";llmResponseKey="gcp.vertex.agent.llm_response";selectedFiles=[];previousMessageCount=0;router=Q(ao);activatedRoute=Q(Io);selectedAppControl=new dQ("",{nonNullable:!0});agentService=Q(fg);isLoadingApps=_t(!1);loadingError=_t("");apps$=tA([]).pipe(Ie(()=>{this.isLoadingApps.set(!0),this.selectedAppControl.disable()}),re(()=>this.agentService.listApps().pipe(lt(e=>(this.loadingError.set(e.message),tA(void 0))))),de(1),Ie(()=>{this.isLoadingApps.set(!1),this.selectedAppControl.enable()}),Ro());ngOnInit(){if(this.syncSelectedAppFromUrl(),this.updateSelectedAppUrl(),new URL(window.location.href).searchParams.has("code")){let i=window.location.href;window.opener?.postMessage({authResponseUrl:i},window.origin),window.close()}this.agentService.getApp().subscribe(i=>{this.appName=i})}ngAfterViewInit(){this.showSidePanel=!0,this.sidenav.open()}ngAfterViewChecked(){this.messages.length!==this.previousMessageCount&&(this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollHeight,this.previousMessageCount=this.messages.length)}selectApp(e){e!=this.appName&&(this.agentService.setApp(e),this.createSession(),this.eventData=new Map,this.eventMessageIndexArray=[],this.messages=[],this.artifacts=[],this.userInput="",this.longRunningEvents=[])}createSession(){this.sesisonService.createSession(this.userId,this.appName).subscribe(e=>{this.currentSessionState=e.state,this.sessionId=e.id,this.sessionTab.refreshSession()})}sendMessage(e){return qe(this,null,function*(){if(e.preventDefault(),!this.userInput.trim())return;if(this.selectedFiles.length>0){let o=this.selectedFiles.map(g=>({file:g.file,url:g.url}));this.messages.push({role:"user",attachments:o})}this.messages.push({role:"user",text:this.userInput});let A={app_name:this.appName,user_id:this.userId,session_id:this.sessionId,new_message:{role:"user",parts:yield this.getUserMessageParts()},streaming:this.useSse};this.selectedFiles=[];let i=this.eventMessageIndexArray.length-1;this.streamingTextMessage=null,this.agentService.run_sse(A).subscribe({next:o=>qe(this,null,function*(){let g=JSON.parse(o);if(g.error){this.openSnackBar(g.error,"OK");return}if(g.content)for(let n of g.content.parts)i+=1,this.processPart(g,n,i)}),error:o=>console.error("SSE error:",o),complete:()=>{this.streamingTextMessage=null,this.sessionTab.reloadSession(this.sessionId)}}),this.userInput=""})}processPart(e,A,i){if(A.text){let o=A.text;if(this.streamingTextMessage){if(o==this.streamingTextMessage.text){this.storeEvents(A,e,i),this.eventMessageIndexArray[i]=o,this.streamingTextMessage=null;return}this.streamingTextMessage.text+=o}else if(this.streamingTextMessage={role:"bot",text:o},this.messages.push(this.streamingTextMessage),!this.useSse){this.storeEvents(A,e,i),this.eventMessageIndexArray[i]=o,this.streamingTextMessage=null;return}}else this.storeEvents(A,e,i),this.storeMessage(A,e,i)}getUserMessageParts(){return qe(this,null,function*(){let e=[{text:`${this.userInput}`}];if(this.selectedFiles.length>0)for(let A of this.selectedFiles)e.push({inline_data:{data:yield this.readFileAsBytes(A.file),mime_type:A.file.type}});return e})}readFileAsBytes(e){return new Promise((A,i)=>{let o=new FileReader;o.onload=g=>{let n=g.target.result.split(",")[1];A(n)},o.onerror=i,o.readAsDataURL(e)})}updateRedirectUri(e,A){try{let i=new URL(e);return i.searchParams.set("redirect_uri",A),i.toString()}catch(i){return console.warn("Failed to update redirect URI: ",i),e}}storeMessage(e,A,i){if(A.long_running_tool_ids&&A.long_running_tool_ids.length>0){this.getAsyncFunctionsFromParts(A.long_running_tool_ids,A.content.parts);let o=this.longRunningEvents[0];if(o.args.auth_config&&o.args.auth_config.exchanged_auth_credential&&o.args.auth_config.exchanged_auth_credential.oauth2){let g=o.args.auth_config.exchanged_auth_credential.oauth2.auth_uri,n=this.updateRedirectUri(g,this.redirectUri);this.openOAuthPopup(n).then(s=>{this.functionCallEventId=A.id,this.sendOAuthResponse(o,s,this.redirectUri)}).catch(s=>{console.error("OAuth Error:",s)})}else this.functionCallEventId=A.id}if(e.text)this.messages.push({role:A.author==="user"?"user":"bot",text:e.text}),this.eventMessageIndexArray[i]=e.text;else if(e.functionCall)this.messages.push({role:A.author==="user"?"user":"bot",functionCall:e.functionCall}),this.eventMessageIndexArray[i]=e.functionCall;else if(e.functionResponse){if(this.messages.push({role:A.author==="user"?"user":"bot",functionResponse:e.functionResponse}),A.actions&&A.actions.artifact_delta)for(let o in A.actions.artifact_delta)A.actions.artifact_delta.hasOwnProperty(o)&&this.renderArtifact(o,A.actions.artifact_delta[o]);this.eventMessageIndexArray[i]=e.functionResponse}else if(e.executableCode)this.messages.push({role:A.author==="user"?"user":"bot",executableCode:e.executableCode}),this.eventMessageIndexArray[i]=e.executableCode;else if(e.codeExecutionResult&&(this.messages.push({role:A.author==="user"?"user":"bot",codeExecutionResult:e.codeExecutionResult}),this.eventMessageIndexArray[i]=e.codeExecutionResult,A.actions&&A.actions.artifact_delta))for(let o in A.actions.artifact_delta)A.actions.artifact_delta.hasOwnProperty(o)&&this.renderArtifact(o,A.actions.artifact_delta[o])}renderArtifact(e,A){this.messages.push({role:"bot",inline_data:{data:"",mime_type:"image/png"}});let i=this.messages.length-1;this.artifactService.getArtifactVersion(this.userId,this.appName,this.sessionId,e,A).subscribe(o=>{let g=o.inlineData.mimeType,n=aq(o.inlineData.data),s=`data:${g};base64,${n}`;this.messages[i]={role:"bot",inline_data:{data:s,mime_type:g}},this.artifacts=[...this.artifacts,{id:e,data:s,mimeType:g,versionId:A}]})}storeEvents(e,A,i){let o=A.content.role+":";e.text?o+=i+e.text:e.functionCall?o+="functionCall:"+i+":"+e.functionCall.name:e.functionResponse?o+="functionResponse:"+i+":"+e.functionResponse.name:e.executableCode?o+="executableCode:"+i+":"+e.executableCode.code.slice(0,10):e.codeExecutionResult&&(o+="codeExecutionResult:"+i+":"+e.codeExecutionResult.outcome),this.eventData.set(o,A),this.eventData=new Map(this.eventData)}sendOAuthResponse(e,A,i){this.longRunningEvents.pop();let o={app_name:this.appName,user_id:this.userId,session_id:this.sessionId,new_message:{role:"user",parts:[]}};var g=e.args.auth_config;g.exchanged_auth_credential.oauth2.auth_response_uri=A,g.exchanged_auth_credential.oauth2.redirect_uri=i,o.function_call_event_id=this.functionCallEventId,o.new_message.parts.push({function_response:{id:e.id,name:e.name,response:g}}),this.agentService.run(o).subscribe(n=>{let s=this.eventMessageIndexArray.length-1;for(let r of n)if(r.content)for(let I of r.content.parts)s+=1,this.processPart(r,I,s)})}openDialog(){this.dialog.open(ma,{width:"600px",data:{event:this.longRunningEvents[0],app_name:this.appName,user_id:this.userId,session_id:this.sessionId,function_call_event_id:this.functionCallEventId}}).afterClosed().subscribe(A=>{A&&(this.longRunningEvents=A.events,this.messages.push({role:"bot",text:A.text}))})}clickEvent(e){let A=Array.from(this.eventData.entries())[e-this.userMessagesLength(e)],[i,o]=A;this.sidenav.open(),this.showSidePanel=!0,this.selectedEvent=o,this.selectedEventIndex=this.getIndexOfKeyInMap(i),this.eventService.getEventTrace(this.selectedEvent.id).subscribe(g=>{this.llmRequest=JSON.parse(g[this.llmRequestKey]),this.llmResponse=JSON.parse(g[this.llmResponseKey])}),this.eventService.getEvent(this.userId,this.appName,this.sessionId,this.selectedEvent.id).subscribe(g=>qe(this,null,function*(){if(!g.dot_src){this.renderedEventGraph=void 0;return}let n=g.dot_src,r=(yield pD()).renderString(n,{format:"svg",engine:"dot"});this.renderedEventGraph=this.sanitizer.bypassSecurityTrustHtml(r)}))}userMessagesLength(e){return this.messages.slice(0,e).filter(A=>A.role=="user").length}ngOnDestroy(){this.webSocketService.closeConnection()}toggleAudioRecording(){this.isAudioRecording?this.stopAudioRecording():this.startAudioRecording(),this.isAudioRecording=!this.isAudioRecording}startAudioRecording(){let e=window.location.protocol==="https:"?"wss":"ws";this.webSocketService.connect(`${e}://${ot.getWSServerUrl()}/run_live?app_name=${this.appName}&user_id=${this.userId}&session_id=${this.sessionId}`),this.audioService.startRecording(),this.messages.push({role:"user",text:"Speaking..."}),this.messages.push({role:"bot",text:"Speaking..."})}stopAudioRecording(){this.audioService.stopRecording(),this.webSocketService.closeConnection()}toggleVideoRecording(){this.isVideoRecording?this.stopVideoRecording():this.startVideoRecording(),this.isVideoRecording=!this.isVideoRecording}startVideoRecording(){let e=window.location.protocol==="https:"?"wss":"ws";this.webSocketService.connect(`${e}://${ot.getWSServerUrl()}/run_live?app_name=${this.appName}&user_id=${this.userId}&session_id=${this.sessionId}`),this.videoService.startRecording(this.videoContainer),this.audioService.startRecording(),this.messages.push({role:"user",text:"Speaking..."})}stopVideoRecording(){this.audioService.stopRecording(),this.videoService.stopRecording(this.videoContainer),this.webSocketService.closeConnection()}getAsyncFunctionsFromParts(e,A){for(let i of A)i.functionCall&&e.includes(i.functionCall.id)&&this.longRunningEvents.push(i.functionCall)}openOAuthPopup(e){return new Promise((A,i)=>{if(!window.open(e,"oauthPopup","width=600,height=700")){i("Popup blocked!");return}window.addEventListener("message",g=>{if(g.origin!==window.location.origin)return;let{authResponseUrl:n}=g.data;n?A(n):i("OAuth failed")},{once:!0})})}toggleSidePanel(){this.showSidePanel=!this.showSidePanel}updateWithSelectedSession(e){if(!e||!e.id||!e.events||!e.state){console.log("Session is not valid");return}this.sessionId=e.id,this.currentSessionState=e.state,this.eventData.clear(),this.eventMessageIndexArray=[],this.messages=[],this.artifacts=[];let A=0;e.events.forEach(i=>{i.content.parts.forEach(o=>{this.storeMessage(o,i,A),A+=1,i.author&&i.author!=="user"&&this.storeEvents(o,i,A)})})}updateSessionState(e){this.currentSessionState=e.state}onNewSessionClick(){this.createSession(),this.eventData.clear(),this.eventMessageIndexArray=[],this.messages=[],this.artifacts=[]}onFileSelect(e){let A=e.target;if(A.files)for(let i=0;i<A.files.length;i++){let o=A.files[i],g=URL.createObjectURL(o);this.selectedFiles.push({file:o,url:g})}A.value=""}removeFile(e){URL.revokeObjectURL(this.selectedFiles[e].url),this.selectedFiles.splice(e,1)}toggleSse(){this.useSse=!this.useSse}selectEvent(e){this.selectedEvent=this.eventData.get(e),this.selectedEventIndex=this.getIndexOfKeyInMap(e),this.eventService.getEventTrace(this.selectedEvent.id).subscribe(A=>{this.llmRequest=JSON.parse(A[this.llmRequestKey]),this.llmResponse=JSON.parse(A[this.llmResponseKey])}),this.eventService.getEvent(this.userId,this.appName,this.sessionId,this.selectedEvent.id).subscribe(A=>qe(this,null,function*(){if(!A.dot_src){this.renderedEventGraph=void 0;return}let i=A.dot_src,g=(yield pD()).renderString(i,{format:"svg",engine:"dot"});this.renderedEventGraph=this.sanitizer.bypassSecurityTrustHtml(g)}))}deleteSession(e){let A={title:"Confirm delete",message:`Are you sure you want to delete this session ${this.sessionId}?`,confirmButtonText:"Delete",cancelButtonText:"Cancel"};this.dialog.open(fa,{width:"600px",data:A}).afterClosed().subscribe(o=>{o&&this.sessionService.deleteSession(this.userId,this.appName,e).subscribe(g=>{let n=this.sessionTab.refreshSession();n?this.sessionTab.getSession(n.id):window.location.reload()})})}syncSelectedAppFromUrl(){this.router.events.pipe(RA(e=>e instanceof Ot),oA(()=>this.activatedRoute.snapshot.queryParams)).subscribe(e=>{let A=e.app;A&&this.selectedAppControl.setValue(A)})}updateSelectedAppUrl(){this.selectedAppControl.valueChanges.pipe(Bi(),RA(Boolean)).subscribe(e=>{this.selectApp(e);let A=this.activatedRoute.snapshot.queryParams.app;e!==A&&this.router.navigate([],{queryParams:{app:e},queryParamsHandling:"merge"})})}handlePageEvent(e){if(e.pageIndex>=0){let A=this.getKeyAtIndexInMap(e.pageIndex);A&&this.selectEvent(A)}}closeSelectedEvent(){this.selectedEvent=void 0,this.selectedEventIndex=void 0}getIndexOfKeyInMap(e){let A=0,i=(g,n)=>0,o=Array.from(this.eventData.keys()).sort(i);for(let g of o){if(g===e)return A;A++}}getKeyAtIndexInMap(e){let A=(o,g)=>0,i=Array.from(this.eventData.keys()).sort(A);if(e>=0&&e<i.length)return i[e]}openSnackBar(e,A){this._snackBar.open(e,A)}static \u0275fac=function(A){return new(A||t)(AA(an),AA(Si),AA(ar),AA(Cr),AA(ho),AA(Br),AA(pg),AA(Fg),AA(Si))};static \u0275cmp=O({type:t,selectors:[["app-chat"]],viewQuery:function(A,i){if(A&1&&(cA(hZ,5,Z),cA(uZ,5),cA(kn,5),cA(Fn,5),cA(Rn,5),cA(DZ,5)),A&2){let o;z(o=j())&&(i.videoContainer=o.first),z(o=j())&&(i.sidenav=o.first),z(o=j())&&(i.eventTabComponent=o.first),z(o=j())&&(i.sessionTab=o.first),z(o=j())&&(i.evalTab=o.first),z(o=j())&&(i.scrollContainer=o.first)}},standalone:!1,features:[KA([{provide:yn,useClass:Em}])],decls:19,vars:12,consts:[["sidenav",""],["autoScroll",""],["videoContainer",""],["fileInput",""],["autosize","",1,"drawer-container"],["mode","side",1,"sidenav",2,"color","white",3,"opened","disableClose"],[2,"margin-top","20px","margin-left","20px","display","flex"],[2,"width","100%"],[1,"drawer-header"],[3,"click"],[1,"app-select-container"],["class","tabs-container",4,"ngIf"],["class","details-panel-container",4,"ngIf"],[1,"chat-container"],["class","chat-toolbar",4,"ngIf"],[1,"chat-card"],["mat-fab","","color","primary","class","fab-button",3,"click",4,"ngIf"],["class","chat-messages",4,"ngIf"],["class","chat-input",4,"ngIf"],[1,"app-select",3,"placeholder","formControl"],[3,"value"],[1,"tabs-container"],[1,"tabs-header"],["mat-tab-label",""],[3,"selectedEvent","eventsMap"],[3,"sessionState"],[3,"artifacts"],[3,"sessionSelected","sessionReloaded","userId","appName","sessionId"],[3,"sessionSelected","appName","userId","sessionId"],[1,"tab-label"],[1,"details-panel-container"],[1,"details-content"],[2,"display","flex","justify-content","flex-end","margin-top","10px"],["aria-label","Select event",1,"event-paginator",3,"page","length","pageSize","pageIndex"],["mat-mini-fab",""],["label","Event"],[2,"margin-top","16px","margin-bottom","16px","diaply","flex","justify-content","center"],[3,"innerHtml",4,"ngIf"],[3,"json"],["label","Request"],["label","Reponse"],[3,"innerHtml"],[1,"chat-toolbar"],[2,"display","flex"],[1,"toolbar-session-text"],[1,"toolbar-session-id"],[1,"toolbar-actions"],[1,"toolbar-sse-toggle"],[1,"example-margin",3,"change","checked"],[2,"margin-left","8px","margin-right","8px","height","22px",3,"vertical"],[2,"display","flex","align-items","center"],[1,"toolbar-new-sesison",3,"click"],[1,"material-symbols-outlined",2,"width","24px","height","24px","color","#C4C7C5","cursor","pointer","margin-right","16px",3,"click"],[1,"empty-state-container"],[1,"warning"],[1,"error"],["mat-fab","","color","primary",1,"fab-button",3,"click"],[1,"chat-messages"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["mat-mini-fab","",3,"click",4,"ngIf"],[1,"message-card"],["class","attachments",4,"ngIf"],[3,"data",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","","class","function-event-button",3,"click",4,"ngIf"],["mat-mini-fab","",4,"ngIf"],["mat-mini-fab","",3,"click"],["fontSet","material-symbols-outlined"],[1,"attachments"],["class","attachment",4,"ngFor","ngForOf"],[1,"attachment"],["alt","attachment",1,"image-preview-chat",3,"src"],["download","",3,"href"],[3,"data"],["alt","image",1,"generated-image",3,"src"],["mat-stroked-button","",1,"function-event-button",3,"click"],[1,"chat-input"],["type","file","multiple","","hidden","",3,"change"],["appearance","outline",1,"input-field"],["class","file-preview",4,"ngIf"],["matInput","","placeholder","Type a Message...",1,"chat-input-box",2,"caret-color","white",3,"ngModelChange","keydown.enter","ngModel"],[1,"chat-input-actions"],["mat-icon-button","",1,"function-event-button",2,"margin-right","10px",3,"click"],["mat-icon-button","","matSuffix","",3,"click","ngStyle"],[3,"innerText"],[1,"file-preview"],[4,"ngFor","ngForOf"],["class","image-container",4,"ngIf"],["class","file-container",4,"ngIf"],[1,"image-container"],["alt","preview",1,"image-preview",3,"src"],["mat-icon-button","",1,"delete-button",3,"click"],["color","warn"],[1,"file-container"],[1,"file-info"]],template:function(A,i){if(A&1){let o=aA();u(0,"mat-drawer-container",4)(1,"mat-drawer",5,0)(3,"div",6)(4,"div",7)(5,"div",8)(6,"mat-icon",9),x("click",function(){return H(o),T(i.toggleSidePanel())}),v(7,"menu"),m(),_(8,MZ,5,6,"div",10)(9,RZ,2,0,"span"),m()()(),_(10,GZ,17,9,"div",11)(11,LZ,17,7,"div",12),m(),u(12,"div",13),_(13,KZ,18,3,"div",14),u(14,"mat-card",15),_(15,TZ,2,1)(16,OZ,3,0,"button",16)(17,oq,5,1,"div",17)(18,Iq,15,10,"div",18),m()()()}A&2&&(f(),Ct("width",i.showSidePanel?510:56,"px"),F("opened",!0)("disableClose",!0),f(7),wA(i.showSidePanel?8:9),f(2),F("ngIf",i.appName!=""&&i.showSidePanel),f(),F("ngIf",i.selectedEvent&&i.showSidePanel),f(2),F("ngIf",i.appName!=""),f(2),wA(i.selectedAppControl.value?-1:15),f(),F("ngIf",i.longRunningEvents.length>0),f(),F("ngIf",i.appName!=""),f(),F("ngIf",i.appName!=""))},dependencies:[Yt,Rt,Jt,bh,io,oo,yi,YF,Ir,Eo,Mk,kg,bt,hE,gk,ok,fD,vF,OE,WD,zD,em,tm,$F,ir,hg,Db,zE,eu,kn,Fn,Rn,Fa,ba,EI],styles:[".drawer-container[_ngcontent-%COMP%]{height:100%;background-color:#131314}.generated-image[_ngcontent-%COMP%]{max-width:33%;border-radius:8px}.chat-container[_ngcontent-%COMP%]{width:100%;height:100%;max-width:1200px;margin:auto}.event-container[_ngcontent-%COMP%]{color:#fff}.drawer-header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-start;align-items:center}.drawer-header[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:36px;height:36px;color:#bdc1c6;cursor:pointer;display:flex;align-items:center;justify-content:center}.chat-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:500px;overflow:hidden;height:95%;box-shadow:none;background-color:#131314}.chat-messages[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto;padding:20px;margin-top:16px}.message-card[_ngcontent-%COMP%]{padding:5px 20px;margin:5px;border-radius:20px;max-width:80%;font-size:14px;font-weight:400}.user-message[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}.user-message[_ngcontent-%COMP%]   .message-card[_ngcontent-%COMP%]{background-color:#004a77;align-self:flex-end;color:#fff;box-shadow:none}.bot-message[_ngcontent-%COMP%]{display:flex;align-items:center}.bot-message[_ngcontent-%COMP%]   .message-card[_ngcontent-%COMP%]{background-color:#303030;align-self:flex-start;color:#fff;box-shadow:none}.navigation-button-sidepanel[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px}.chat-input[_ngcontent-%COMP%]{display:flex;padding:10px;width:80%;margin:0 auto}.input-field[_ngcontent-%COMP%]{flex-grow:1}.input-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#fff;border:none;padding:10px}.input-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#8e918f}.input-field[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#fff;background-color:#333537}.chat-input-actions[_ngcontent-%COMP%]{margin-top:10px;display:flex;justify-content:space-between}.fab-button[_ngcontent-%COMP%]{position:fixed;bottom:200px;right:100px;z-index:1000}.sidepanel-toggle[_ngcontent-%COMP%]{position:relative;top:100px;z-index:1000}.sidenav[_ngcontent-%COMP%]{background-color:#1b1b1b;color:#fff;border-radius:0}.tabs-container[_ngcontent-%COMP%]{margin-top:20px;padding-left:10px;padding-right:10px}.tab-label[_ngcontent-%COMP%]{font-size:14px}.file-preview[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px;margin-bottom:8px}.file-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;background:#eee;padding:5px;border-radius:4px}.image-preview[_ngcontent-%COMP%]{width:40px;height:40px;object-fit:cover;border-radius:4px}.image-preview-chat[_ngcontent-%COMP%]{max-width:90%;max-height:70vh;width:auto;height:auto;border-radius:8px;cursor:pointer;transition:transform .2s ease-in-out}button[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.app-select[_ngcontent-%COMP%]{width:180px}.empty-state-container[_ngcontent-%COMP%]{color:#eee;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:Open Sans,sans-serif;font-weight:400;letter-spacing:normal;line-height:24px;font-size:18px}.empty-state-container[_ngcontent-%COMP%]   pre.warning[_ngcontent-%COMP%]{color:#ffc185}.empty-state-container[_ngcontent-%COMP%]   pre.error[_ngcontent-%COMP%]{color:#ff4545}.function-event-button[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%]     .mat-mdc-text-field-wrapper{border:1px solid #8e918f}[_nghost-%COMP%]     .input-field .mat-mdc-text-field-wrapper{border:1px solid #8e918f;border-radius:16px}[_nghost-%COMP%]     .mdc-notched-outline__leading, [_nghost-%COMP%]     .mdc-notched-outline__notch, [_nghost-%COMP%]     .mdc-notched-outline__trailing{border:none}[_nghost-%COMP%]     .mat-mdc-form-field-icon-suffix{padding:0 10px 0 40px}[_nghost-%COMP%]     .segment-key{color:#d3d3d3!important}[_nghost-%COMP%]     .mat-mdc-mini-fab{background-color:#fff}[_nghost-%COMP%]     .mat-mdc-mini-fab mat-icon{color:#000}[_nghost-%COMP%]     .mat-drawer-inner-container{width:500px}.mat-mdc-select-placeholder[_ngcontent-%COMP%]{margin-left:20px}.new-session-button[_ngcontent-%COMP%]{margin-top:0;margin-left:50px;width:130px;height:28px;font-size:14px}.app-select-container[_ngcontent-%COMP%]{background-color:#212123;margin-left:20px;height:30px;display:flex;justify-content:space-between;padding-left:20px;padding-right:20px;border-radius:10px;padding-top:5px;margin-top:-2px}.drawer-header[_ngcontent-%COMP%]{--mat-select-placeholder-text-color: #8ab4f8}.drawer-header[_ngcontent-%COMP%]{--mat-select-enabled-trigger-text-color: #8ab4f8}.drawer-header[_ngcontent-%COMP%]{--mat-select-enabled-arrow-color: #8ab4f8}.event-paginator[_ngcontent-%COMP%]{background-color:inherit;display:flex;justify-content:center}[_nghost-%COMP%]     .mat-mdc-paginator-page-size{display:none!important}.details-panel-container[_ngcontent-%COMP%]{position:absolute;height:98%;left:0;right:0;bottom:0;background:#242424;display:inline-block;justify-content:center;align-items:center;z-index:10}.details-content[_ngcontent-%COMP%]{color:#fff;font-size:14px}.event-paginator[_ngcontent-%COMP%]{margin-top:-8px;margin-right:160px}.adk-checkbox[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;margin-bottom:20px;margin-left:20px}.drawer-header[_ngcontent-%COMP%]{--mdc-filled-button-container-color: #89b4f8}.drawer-header[_ngcontent-%COMP%]{--mdc-filled-button-label-text-color: black}.chat-toolbar[_ngcontent-%COMP%]{position:sticky;top:0;height:48px;background:#1b1b1b;display:flex;justify-content:space-between;align-items:center;z-index:10}.toolbar-session-text[_ngcontent-%COMP%]{color:#fdfdfd;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:12px;letter-spacing:.8px;text-transform:uppercase;margin-left:20px;padding-top:4px}.toolbar-session-id[_ngcontent-%COMP%]{color:#9aa0a6;font-family:monospace;font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:.25px;margin-left:5px}.toolbar-actions[_ngcontent-%COMP%]{display:flex}.toolbar-new-sesison[_ngcontent-%COMP%]{font-size:14px;margin-right:16px;color:#9aa0a6;cursor:pointer;display:flex;align-items:center}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mat-switch-label-text-size: 14px}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mat-switch-label-text-color: #9aa0a6}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-track-color: #8ab4f9}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-focus-track-color: #8ab4f9}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-hover-track-color: #8ab4f9}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-handle-color: #1b73e8}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-focus-handle-color: #1b73e8}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-selected-hover-handle-color: #1b73e8}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-track-height: 24px}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mdc-switch-track-width: 46px}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mat-switch-track-outline-color: #1b73e8}.toolbar-sse-toggle[_ngcontent-%COMP%]{--mat-switch-with-icon-handle-size: 20px}.image-container[_ngcontent-%COMP%]{position:relative;display:inline-block;border-radius:12px;overflow:hidden}.image-preview[_ngcontent-%COMP%]{display:block;width:100%;height:auto;border-radius:12px;width:80px;height:80px}.delete-button[_ngcontent-%COMP%]{position:absolute;top:1px;right:1px;background-color:#000000b3;border:none;border-radius:50%;padding:8px;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;margin-right:0;scale:.7}.delete-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:20px}.file-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:8px;height:80px;background-color:#1e1e1e;border-radius:12px}.file-info[_ngcontent-%COMP%]{margin-right:60px;padding-top:20px;padding-left:16px}"]})};var lr=class t{title="agent_framework_web";userId="";appName="";sessionId="";constructor(){}static \u0275fac=function(A){return new(A||t)};static \u0275cmp=O({type:t,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,template:function(A,i){A&1&&W(0,"app-chat")},dependencies:[Sa],encapsulation:2})};var Bq=[{path:"dev-ui",component:lr},{path:"",redirectTo:"dev-ui",pathMatch:"full"}],jE=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[VQ.forRoot(Bq),VQ]})};function pb(t){return new U(3e3,!1)}function Qq(){return new U(3100,!1)}function Eq(){return new U(3101,!1)}function cq(t){return new U(3001,!1)}function lq(t){return new U(3003,!1)}function dq(t){return new U(3004,!1)}function Mb(t,e){return new U(3005,!1)}function Rb(){return new U(3006,!1)}function kb(){return new U(3007,!1)}function Fb(t,e){return new U(3008,!1)}function bb(t){return new U(3002,!1)}function Sb(t,e,A,i,o){return new U(3010,!1)}function Nb(){return new U(3011,!1)}function Gb(){return new U(3012,!1)}function vb(){return new U(3200,!1)}function Lb(){return new U(3202,!1)}function Kb(){return new U(3013,!1)}function Ub(t){return new U(3014,!1)}function _b(t){return new U(3015,!1)}function xb(t){return new U(3016,!1)}function Yb(t,e){return new U(3404,!1)}function hq(t){return new U(3502,!1)}function Jb(t){return new U(3503,!1)}function Hb(){return new U(3300,!1)}function Tb(t){return new U(3504,!1)}function Ob(t){return new U(3301,!1)}function Pb(t,e){return new U(3302,!1)}function Zb(t){return new U(3303,!1)}function qb(t,e){return new U(3400,!1)}function Vb(t){return new U(3401,!1)}function Wb(t){return new U(3402,!1)}function zb(t,e){return new U(3505,!1)}function Zo(t){switch(t.length){case 0:return new Bo;case 1:return t[0];default:return new pn(t)}}function hm(t,e,A=new Map,i=new Map){let o=[],g=[],n=-1,s=null;if(e.forEach(r=>{let I=r.get("offset"),B=I==n,c=B&&s||new Map;r.forEach((D,h)=>{let p=h,y=D;if(h!=="offset")switch(p=t.normalizePropertyName(p,o),y){case tr:y=A.get(h);break;case ii:y=i.get(h);break;default:y=t.normalizeStyleValue(h,p,y,o);break}c.set(p,y)}),B||g.push(c),s=c,n=I}),o.length)throw hq(o);return g}function XE(t,e,A,i){switch(e){case"start":t.onStart(()=>i(A&&cm(A,"start",t)));break;case"done":t.onDone(()=>i(A&&cm(A,"done",t)));break;case"destroy":t.onDestroy(()=>i(A&&cm(A,"destroy",t)));break}}function cm(t,e,A){let i=A.totalTime,o=!!A.disabled,g=$E(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,i??t.totalTime,o),n=t._data;return n!=null&&(g._data=n),g}function $E(t,e,A,i,o="",g=0,n){return{element:t,triggerName:e,fromState:A,toState:i,phaseName:o,totalTime:g,disabled:!!n}}function Nt(t,e,A){let i=t.get(e);return i||t.set(e,i=A),i}function um(t){let e=t.indexOf(":"),A=t.substring(1,e),i=t.slice(e+1);return[A,i]}var uq=typeof document>"u"?null:document.documentElement;function Ac(t){let e=t.parentNode||t.host||null;return e===uq?null:e}function Dq(t){return t.substring(1,6)=="ebkit"}var Nn=null,yb=!1;function jb(t){Nn||(Nn=mq()||{},yb=Nn.style?"WebkitAppearance"in Nn.style:!1);let e=!0;return Nn.style&&!Dq(t)&&(e=t in Nn.style,!e&&yb&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Nn.style)),e}function mq(){return typeof document<"u"?document.body:null}function Dm(t,e){for(;e;){if(e===t)return!0;e=Ac(e)}return!1}function mm(t,e,A){if(A)return Array.from(t.querySelectorAll(e));let i=t.querySelector(e);return i?[i]:[]}var fq=1e3,fm="{{",wq="}}",wm="ng-enter",ec="ng-leave",Na="ng-trigger",Ga=".ng-trigger",pm="ng-animating",tc=".ng-animating";function mo(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:lm(parseFloat(e[1]),e[2])}function lm(t,e){switch(e){case"s":return t*fq;default:return t}}function va(t,e,A){return t.hasOwnProperty("duration")?t:pq(t,e,A)}function pq(t,e,A){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,g=0,n="";if(typeof t=="string"){let s=t.match(i);if(s===null)return e.push(pb(t)),{duration:0,delay:0,easing:""};o=lm(parseFloat(s[1]),s[2]);let r=s[3];r!=null&&(g=lm(parseFloat(r),s[4]));let I=s[5];I&&(n=I)}else o=t;if(!A){let s=!1,r=e.length;o<0&&(e.push(Qq()),s=!0),g<0&&(e.push(Eq()),s=!0),s&&e.splice(r,0,pb(t))}return{duration:o,delay:g,easing:n}}function Xb(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function vi(t,e,A){e.forEach((i,o)=>{let g=ic(o);A&&!A.has(o)&&A.set(o,t.style[g]),t.style[g]=i})}function bg(t,e){e.forEach((A,i)=>{let o=ic(i);t.style[o]=""})}function dr(t){return Array.isArray(t)?t.length==1?t[0]:dk(t):t}function $b(t,e,A){let i=e.params||{},o=ym(t);o.length&&o.forEach(g=>{i.hasOwnProperty(g)||A.push(cq(g))})}var dm=new RegExp(`${fm}\\s*(.+?)\\s*${wq}`,"g");function ym(t){let e=[];if(typeof t=="string"){let A;for(;A=dm.exec(t);)e.push(A[1]);dm.lastIndex=0}return e}function hr(t,e,A){let i=`${t}`,o=i.replace(dm,(g,n)=>{let s=e[n];return s==null&&(A.push(lq(n)),s=""),s.toString()});return o==i?t:o}var yq=/-+([a-z0-9])/g;function ic(t){return t.replace(yq,(...e)=>e[1].toUpperCase())}function AS(t,e){return t===0||e===0}function eS(t,e,A){if(A.size&&e.length){let i=e[0],o=[];if(A.forEach((g,n)=>{i.has(n)||o.push(n),i.set(n,g)}),o.length)for(let g=1;g<e.length;g++){let n=e[g];o.forEach(s=>n.set(s,oc(t,s)))}}return e}function Gt(t,e,A){switch(e.type){case LA.Trigger:return t.visitTrigger(e,A);case LA.State:return t.visitState(e,A);case LA.Transition:return t.visitTransition(e,A);case LA.Sequence:return t.visitSequence(e,A);case LA.Group:return t.visitGroup(e,A);case LA.Animate:return t.visitAnimate(e,A);case LA.Keyframes:return t.visitKeyframes(e,A);case LA.Style:return t.visitStyle(e,A);case LA.Reference:return t.visitReference(e,A);case LA.AnimateChild:return t.visitAnimateChild(e,A);case LA.AnimateRef:return t.visitAnimateRef(e,A);case LA.Query:return t.visitQuery(e,A);case LA.Stagger:return t.visitStagger(e,A);default:throw dq(e.type)}}function oc(t,e){return window.getComputedStyle(t)[e]}var Hm=(()=>{class t{validateStyleProperty(A){return jb(A)}containsElement(A,i){return Dm(A,i)}getParentElement(A){return Ac(A)}query(A,i,o){return mm(A,i,o)}computeStyle(A,i,o){return o||""}animate(A,i,o,g,n,s=[],r){return new Bo(o,g)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),vn=class{static NOOP=new Hm},Ln=class{};var Mq=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"]),Ic=class extends Ln{normalizePropertyName(e,A){return ic(e)}normalizeStyleValue(e,A,i,o){let g="",n=i.toString().trim();if(Mq.has(A)&&i!==0&&i!=="0")if(typeof i=="number")g="px";else{let s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&o.push(Mb(e,i))}return n+g}};var ac="*";function Rq(t,e){let A=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>kq(i,A,e)):A.push(t),A}function kq(t,e,A){if(t[0]==":"){let r=Fq(t,A);if(typeof r=="function"){e.push(r);return}t=r}let i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return A.push(_b(t)),e;let o=i[1],g=i[2],n=i[3];e.push(tS(o,n));let s=o==ac&&n==ac;g[0]=="<"&&!s&&e.push(tS(n,o))}function Fq(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(A,i)=>parseFloat(i)>parseFloat(A);case":decrement":return(A,i)=>parseFloat(i)<parseFloat(A);default:return e.push(xb(t)),"* => *"}}var gc=new Set(["true","1"]),nc=new Set(["false","0"]);function tS(t,e){let A=gc.has(t)||nc.has(t),i=gc.has(e)||nc.has(e);return(o,g)=>{let n=t==ac||t==o,s=e==ac||e==g;return!n&&A&&typeof o=="boolean"&&(n=o?gc.has(t):nc.has(t)),!s&&i&&typeof g=="boolean"&&(s=g?gc.has(e):nc.has(e)),n&&s}}var BS=":self",bq=new RegExp(`s*${BS}s*,?`,"g");function QS(t,e,A,i){return new Sm(t).build(e,A,i)}var iS="",Sm=class{_driver;constructor(e){this._driver=e}build(e,A,i){let o=new Nm(A);return this._resetContextStyleTimingState(o),Gt(this,dr(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=iS,e.collectedStyles=new Map,e.collectedStyles.set(iS,new Map),e.currentTime=0}visitTrigger(e,A){let i=A.queryCount=0,o=A.depCount=0,g=[],n=[];return e.name.charAt(0)=="@"&&A.errors.push(Rb()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(A),s.type==LA.State){let r=s,I=r.name;I.toString().split(/\s*,\s*/).forEach(B=>{r.name=B,g.push(this.visitState(r,A))}),r.name=I}else if(s.type==LA.Transition){let r=this.visitTransition(s,A);i+=r.queryCount,o+=r.depCount,n.push(r)}else A.errors.push(kb())}),{type:LA.Trigger,name:e.name,states:g,transitions:n,queryCount:i,depCount:o,options:null}}visitState(e,A){let i=this.visitStyle(e.styles,A),o=e.options&&e.options.params||null;if(i.containsDynamicStyles){let g=new Set,n=o||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(r=>{ym(r).forEach(I=>{n.hasOwnProperty(I)||g.add(I)})})}),g.size&&A.errors.push(Fb(e.name,[...g.values()]))}return{type:LA.State,name:e.name,style:i,options:o?{params:o}:null}}visitTransition(e,A){A.queryCount=0,A.depCount=0;let i=Gt(this,dr(e.animation),A),o=Rq(e.expr,A.errors);return{type:LA.Transition,matchers:o,animation:i,queryCount:A.queryCount,depCount:A.depCount,options:Gn(e.options)}}visitSequence(e,A){return{type:LA.Sequence,steps:e.steps.map(i=>Gt(this,i,A)),options:Gn(e.options)}}visitGroup(e,A){let i=A.currentTime,o=0,g=e.steps.map(n=>{A.currentTime=i;let s=Gt(this,n,A);return o=Math.max(o,A.currentTime),s});return A.currentTime=o,{type:LA.Group,steps:g,options:Gn(e.options)}}visitAnimate(e,A){let i=vq(e.timings,A.errors);A.currentAnimateTimings=i;let o,g=e.styles?e.styles:Ge({});if(g.type==LA.Keyframes)o=this.visitKeyframes(g,A);else{let n=e.styles,s=!1;if(!n){s=!0;let I={};i.easing&&(I.easing=i.easing),n=Ge(I)}A.currentTime+=i.duration+i.delay;let r=this.visitStyle(n,A);r.isEmptyStep=s,o=r}return A.currentAnimateTimings=null,{type:LA.Animate,timings:i,style:o,options:null}}visitStyle(e,A){let i=this._makeStyleAst(e,A);return this._validateStyleAst(i,A),i}_makeStyleAst(e,A){let i=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of o)typeof s=="string"?s===ii?i.push(s):A.errors.push(bb(s)):i.push(new Map(Object.entries(s)));let g=!1,n=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(n=s.get("easing"),s.delete("easing")),!g)){for(let r of s.values())if(r.toString().indexOf(fm)>=0){g=!0;break}}}),{type:LA.Style,styles:i,easing:n,offset:e.offset,containsDynamicStyles:g,options:null}}_validateStyleAst(e,A){let i=A.currentAnimateTimings,o=A.currentTime,g=A.currentTime;i&&g>0&&(g-=i.duration+i.delay),e.styles.forEach(n=>{typeof n!="string"&&n.forEach((s,r)=>{let I=A.collectedStyles.get(A.currentQuerySelector),B=I.get(r),c=!0;B&&(g!=o&&g>=B.startTime&&o<=B.endTime&&(A.errors.push(Sb(r,B.startTime,B.endTime,g,o)),c=!1),g=B.startTime),c&&I.set(r,{startTime:g,endTime:o}),A.options&&$b(s,A.options,A.errors)})})}visitKeyframes(e,A){let i={type:LA.Keyframes,styles:[],options:null};if(!A.currentAnimateTimings)return A.errors.push(Nb()),i;let o=1,g=0,n=[],s=!1,r=!1,I=0,B=e.steps.map(P=>{let mA=this._makeStyleAst(P,A),_A=mA.offset!=null?mA.offset:Gq(mA.styles),fA=0;return _A!=null&&(g++,fA=mA.offset=_A),r=r||fA<0||fA>1,s=s||fA<I,I=fA,n.push(fA),mA});r&&A.errors.push(Gb()),s&&A.errors.push(vb());let c=e.steps.length,D=0;g>0&&g<c?A.errors.push(Lb()):g==0&&(D=o/(c-1));let h=c-1,p=A.currentTime,y=A.currentAnimateTimings,L=y.duration;return B.forEach((P,mA)=>{let _A=D>0?mA==h?1:D*mA:n[mA],fA=_A*L;A.currentTime=p+y.delay+fA,y.duration=fA,this._validateStyleAst(P,A),P.offset=_A,i.styles.push(P)}),i}visitReference(e,A){return{type:LA.Reference,animation:Gt(this,dr(e.animation),A),options:Gn(e.options)}}visitAnimateChild(e,A){return A.depCount++,{type:LA.AnimateChild,options:Gn(e.options)}}visitAnimateRef(e,A){return{type:LA.AnimateRef,animation:this.visitReference(e.animation,A),options:Gn(e.options)}}visitQuery(e,A){let i=A.currentQuerySelector,o=e.options||{};A.queryCount++,A.currentQuery=e;let[g,n]=Sq(e.selector);A.currentQuerySelector=i.length?i+" "+g:g,Nt(A.collectedStyles,A.currentQuerySelector,new Map);let s=Gt(this,dr(e.animation),A);return A.currentQuery=null,A.currentQuerySelector=i,{type:LA.Query,selector:g,limit:o.limit||0,optional:!!o.optional,includeSelf:n,animation:s,originalSelector:e.selector,options:Gn(e.options)}}visitStagger(e,A){A.currentQuery||A.errors.push(Kb());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:va(e.timings,A.errors,!0);return{type:LA.Stagger,animation:Gt(this,dr(e.animation),A),timings:i,options:null}}};function Sq(t){let e=!!t.split(/\s*,\s*/).find(A=>A==BS);return e&&(t=t.replace(bq,"")),t=t.replace(/@\*/g,Ga).replace(/@\w+/g,A=>Ga+"-"+A.slice(1)).replace(/:animating/g,tc),[t,e]}function Nq(t){return t?R({},t):null}var Nm=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Gq(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(A=>{if(A instanceof Map&&A.has("offset")){let i=A;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let A=t;e=parseFloat(A.get("offset")),A.delete("offset")}return e}function vq(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let g=va(t,e).duration;return Mm(g,0,"")}let A=t;if(A.split(/\s+/).some(g=>g.charAt(0)=="{"&&g.charAt(1)=="{")){let g=Mm(0,0,"");return g.dynamic=!0,g.strValue=A,g}let o=va(A,e);return Mm(o.duration,o.delay,o.easing)}function Gn(t){return t?(t=R({},t),t.params&&(t.params=Nq(t.params))):t={},t}function Mm(t,e,A){return{duration:t,delay:e,easing:A}}function Tm(t,e,A,i,o,g,n=null,s=!1){return{type:1,element:t,keyframes:e,preStyleProps:A,postStyleProps:i,duration:o,delay:g,totalTime:o+g,easing:n,subTimeline:s}}var Ka=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,A){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...A)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Lq=1,Kq=":enter",Uq=new RegExp(Kq,"g"),_q=":leave",xq=new RegExp(_q,"g");function ES(t,e,A,i,o,g=new Map,n=new Map,s,r,I=[]){return new Gm().buildKeyframes(t,e,A,i,o,g,n,s,r,I)}var Gm=class{buildKeyframes(e,A,i,o,g,n,s,r,I,B=[]){I=I||new Ka;let c=new vm(e,A,I,o,g,B,[]);c.options=r;let D=r.delay?mo(r.delay):0;c.currentTimeline.delayNextStep(D),c.currentTimeline.setStyles([n],null,c.errors,r),Gt(this,i,c);let h=c.timelines.filter(p=>p.containsAnimation());if(h.length&&s.size){let p;for(let y=h.length-1;y>=0;y--){let L=h[y];if(L.element===A){p=L;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([s],null,c.errors,r)}return h.length?h.map(p=>p.buildKeyframes()):[Tm(A,[],[],[],0,D,"",!1)]}visitTrigger(e,A){}visitState(e,A){}visitTransition(e,A){}visitAnimateChild(e,A){let i=A.subInstructions.get(A.element);if(i){let o=A.createSubContext(e.options),g=A.currentTimeline.currentTime,n=this._visitSubInstructions(i,o,o.options);g!=n&&A.transformIntoNewTimeline(n)}A.previousNode=e}visitAnimateRef(e,A){let i=A.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],A,i),this.visitReference(e.animation,i),A.transformIntoNewTimeline(i.currentTimeline.currentTime),A.previousNode=e}_applyAnimationRefDelays(e,A,i){for(let o of e){let g=o?.delay;if(g){let n=typeof g=="number"?g:mo(hr(g,o?.params??{},A.errors));i.delayNextStep(n)}}}_visitSubInstructions(e,A,i){let g=A.currentTimeline.currentTime,n=i.duration!=null?mo(i.duration):null,s=i.delay!=null?mo(i.delay):null;return n!==0&&e.forEach(r=>{let I=A.appendInstructionToTimeline(r,n,s);g=Math.max(g,I.duration+I.delay)}),g}visitReference(e,A){A.updateOptions(e.options,!0),Gt(this,e.animation,A),A.previousNode=e}visitSequence(e,A){let i=A.subContextCount,o=A,g=e.options;if(g&&(g.params||g.delay)&&(o=A.createSubContext(g),o.transformIntoNewTimeline(),g.delay!=null)){o.previousNode.type==LA.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Cc);let n=mo(g.delay);o.delayNextStep(n)}e.steps.length&&(e.steps.forEach(n=>Gt(this,n,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),A.previousNode=e}visitGroup(e,A){let i=[],o=A.currentTimeline.currentTime,g=e.options&&e.options.delay?mo(e.options.delay):0;e.steps.forEach(n=>{let s=A.createSubContext(e.options);g&&s.delayNextStep(g),Gt(this,n,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(n=>A.currentTimeline.mergeTimelineCollectedStyles(n)),A.transformIntoNewTimeline(o),A.previousNode=e}_visitTiming(e,A){if(e.dynamic){let i=e.strValue,o=A.params?hr(i,A.params,A.errors):i;return va(o,A.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,A){let i=A.currentAnimateTimings=this._visitTiming(e.timings,A),o=A.currentTimeline;i.delay&&(A.incrementTime(i.delay),o.snapshotCurrentStyles());let g=e.style;g.type==LA.Keyframes?this.visitKeyframes(g,A):(A.incrementTime(i.duration),this.visitStyle(g,A),o.applyStylesToKeyframe()),A.currentAnimateTimings=null,A.previousNode=e}visitStyle(e,A){let i=A.currentTimeline,o=A.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();let g=o&&o.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(g):i.setStyles(e.styles,g,A.errors,A.options),A.previousNode=e}visitKeyframes(e,A){let i=A.currentAnimateTimings,o=A.currentTimeline.duration,g=i.duration,s=A.createSubContext().currentTimeline;s.easing=i.easing,e.styles.forEach(r=>{let I=r.offset||0;s.forwardTime(I*g),s.setStyles(r.styles,r.easing,A.errors,A.options),s.applyStylesToKeyframe()}),A.currentTimeline.mergeTimelineCollectedStyles(s),A.transformIntoNewTimeline(o+g),A.previousNode=e}visitQuery(e,A){let i=A.currentTimeline.currentTime,o=e.options||{},g=o.delay?mo(o.delay):0;g&&(A.previousNode.type===LA.Style||i==0&&A.currentTimeline.hasCurrentStyleProperties())&&(A.currentTimeline.snapshotCurrentStyles(),A.previousNode=Cc);let n=i,s=A.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,A.errors);A.currentQueryTotal=s.length;let r=null;s.forEach((I,B)=>{A.currentQueryIndex=B;let c=A.createSubContext(e.options,I);g&&c.delayNextStep(g),I===A.element&&(r=c.currentTimeline),Gt(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let D=c.currentTimeline.currentTime;n=Math.max(n,D)}),A.currentQueryIndex=0,A.currentQueryTotal=0,A.transformIntoNewTimeline(n),r&&(A.currentTimeline.mergeTimelineCollectedStyles(r),A.currentTimeline.snapshotCurrentStyles()),A.previousNode=e}visitStagger(e,A){let i=A.parentContext,o=A.currentTimeline,g=e.timings,n=Math.abs(g.duration),s=n*(A.currentQueryTotal-1),r=n*A.currentQueryIndex;switch(g.duration<0?"reverse":g.easing){case"reverse":r=s-r;break;case"full":r=i.currentStaggerTime;break}let B=A.currentTimeline;r&&B.delayNextStep(r);let c=B.currentTime;Gt(this,e.animation,A),A.previousNode=e,i.currentStaggerTime=o.currentTime-c+(o.startTime-i.currentTimeline.startTime)}},Cc={},vm=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Cc;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,A,i,o,g,n,s,r){this._driver=e,this.element=A,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=g,this.errors=n,this.timelines=s,this.currentTimeline=r||new Bc(this._driver,A,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,A){if(!e)return;let i=e,o=this.options;i.duration!=null&&(o.duration=mo(i.duration)),i.delay!=null&&(o.delay=mo(i.delay));let g=i.params;if(g){let n=o.params;n||(n=this.options.params={}),Object.keys(g).forEach(s=>{(!A||!n.hasOwnProperty(s))&&(n[s]=hr(g[s],n,this.errors))})}}_copyOptions(){let e={};if(this.options){let A=this.options.params;if(A){let i=e.params={};Object.keys(A).forEach(o=>{i[o]=A[o]})}}return e}createSubContext(e=null,A,i){let o=A||this.element,g=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return g.previousNode=this.previousNode,g.currentAnimateTimings=this.currentAnimateTimings,g.options=this._copyOptions(),g.updateOptions(e),g.currentQueryIndex=this.currentQueryIndex,g.currentQueryTotal=this.currentQueryTotal,g.parentContext=this,this.subContextCount++,g}transformIntoNewTimeline(e){return this.previousNode=Cc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,A,i){let o={duration:A??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},g=new Lm(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(g),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,A,i,o,g,n){let s=[];if(o&&s.push(this.element),e.length>0){e=e.replace(Uq,"."+this._enterClassName),e=e.replace(xq,"."+this._leaveClassName);let r=i!=1,I=this._driver.query(this.element,e,r);i!==0&&(I=i<0?I.slice(I.length+i,I.length):I.slice(0,i)),s.push(...I)}return!g&&s.length==0&&n.push(Ub(A)),s}},Bc=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,A,i,o){this._driver=e,this.element=A,this.startTime=i,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(A),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(A,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 A=this._keyframes.size===1&&this._pendingStyles.size;this.duration||A?(this.forwardTime(this.currentTime+e),A&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,A){return this.applyStylesToKeyframe(),new t(this._driver,e,A||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+=Lq,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,A){this._localTimelineStyles.set(e,A),this._globalTimelineStyles.set(e,A),this._styleSummary.set(e,{time:this.currentTime,value:A})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[A,i]of this._globalTimelineStyles)this._backFill.set(A,i||ii),this._currentKeyframe.set(A,ii);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,A,i,o){A&&this._previousKeyframe.set("easing",A);let g=o&&o.params||{},n=Yq(e,this._globalTimelineStyles);for(let[s,r]of n){let I=hr(r,g,i);this._pendingStyles.set(s,I),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??ii),this._updateStyle(s,I)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,A)=>{this._currentKeyframe.set(A,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,A)=>{this._currentKeyframe.has(A)||this._currentKeyframe.set(A,e)}))}snapshotCurrentStyles(){for(let[e,A]of this._localTimelineStyles)this._pendingStyles.set(e,A),this._updateStyle(e,A)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let A in this._currentKeyframe)e.push(A);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((A,i)=>{let o=this._styleSummary.get(i);(!o||A.time>o.time)&&this._updateStyle(i,A.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,A=new Set,i=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((s,r)=>{let I=new Map([...this._backFill,...s]);I.forEach((B,c)=>{B===tr?e.add(c):B===ii&&A.add(c)}),i||I.set("offset",r/this.duration),o.push(I)});let g=[...e.values()],n=[...A.values()];if(i){let s=o[0],r=new Map(s);s.set("offset",0),r.set("offset",1),o=[s,r]}return Tm(this.element,o,g,n,this.duration,this.startTime,this.easing,!1)}},Lm=class extends Bc{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,A,i,o,g,n,s=!1){super(e,A,n.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=g,this._stretchStartingKeyframe=s,this.timings={duration:n.duration,delay:n.delay,easing:n.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:A,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&A){let g=[],n=i+A,s=A/n,r=new Map(e[0]);r.set("offset",0),g.push(r);let I=new Map(e[0]);I.set("offset",oS(s)),g.push(I);let B=e.length-1;for(let c=1;c<=B;c++){let D=new Map(e[c]),h=D.get("offset"),p=A+h*i;D.set("offset",oS(p/n)),g.push(D)}i=n,A=0,o="",e=g}return Tm(this.element,e,this.preStyleProps,this.postStyleProps,i,A,o,!0)}};function oS(t,e=3){let A=Math.pow(10,e-1);return Math.round(t*A)/A}function Yq(t,e){let A=new Map,i;return t.forEach(o=>{if(o==="*"){i??=e.keys();for(let g of i)A.set(g,ii)}else for(let[g,n]of o)A.set(g,n)}),A}function gS(t,e,A,i,o,g,n,s,r,I,B,c,D){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:A,fromStyles:g,toState:i,toStyles:n,timelines:s,queriedElements:r,preStyleProps:I,postStyleProps:B,totalTime:c,errors:D}}var Rm={},Qc=class{_triggerName;ast;_stateStyles;constructor(e,A,i){this._triggerName=e,this.ast=A,this._stateStyles=i}match(e,A,i,o){return Jq(this.ast.matchers,e,A,i,o)}buildStyles(e,A,i){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(A,i):new Map}build(e,A,i,o,g,n,s,r,I,B){let c=[],D=this.ast.options&&this.ast.options.params||Rm,h=s&&s.params||Rm,p=this.buildStyles(i,h,c),y=r&&r.params||Rm,L=this.buildStyles(o,y,c),P=new Set,mA=new Map,_A=new Map,fA=o==="void",Qt={params:cS(y,D),delay:this.ast.options?.delay},ue=B?[]:ES(e,A,this.ast.animation,g,n,p,L,Qt,I,c),pe=0;return ue.forEach(le=>{pe=Math.max(le.duration+le.delay,pe)}),c.length?gS(A,this._triggerName,i,o,fA,p,L,[],[],mA,_A,pe,c):(ue.forEach(le=>{let ni=le.element,fo=Nt(mA,ni,new Set);le.preStyleProps.forEach(Ui=>fo.add(Ui));let Ki=Nt(_A,ni,new Set);le.postStyleProps.forEach(Ui=>Ki.add(Ui)),ni!==A&&P.add(ni)}),gS(A,this._triggerName,i,o,fA,p,L,ue,[...P.values()],mA,_A,pe))}};function Jq(t,e,A,i,o){return t.some(g=>g(e,A,i,o))}function cS(t,e){let A=R({},e);return Object.entries(t).forEach(([i,o])=>{o!=null&&(A[i]=o)}),A}var Km=class{styles;defaultParams;normalizer;constructor(e,A,i){this.styles=e,this.defaultParams=A,this.normalizer=i}buildStyles(e,A){let i=new Map,o=cS(e,this.defaultParams);return this.styles.styles.forEach(g=>{typeof g!="string"&&g.forEach((n,s)=>{n&&(n=hr(n,o,A));let r=this.normalizer.normalizePropertyName(s,A);n=this.normalizer.normalizeStyleValue(s,r,n,A),i.set(s,n)})}),i}};function Hq(t,e,A){return new Um(t,e,A)}var Um=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,A,i){this.name=e,this.ast=A,this._normalizer=i,A.states.forEach(o=>{let g=o.options&&o.options.params||{};this.states.set(o.name,new Km(o.style,g,i))}),nS(this.states,"true","1"),nS(this.states,"false","0"),A.transitions.forEach(o=>{this.transitionFactories.push(new Qc(e,o,this.states))}),this.fallbackTransition=Tq(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,A,i,o){return this.transitionFactories.find(n=>n.match(e,A,i,o))||null}matchStyles(e,A,i){return this.fallbackTransition.buildStyles(e,A,i)}};function Tq(t,e,A){let i=[(n,s)=>!0],o={type:LA.Sequence,steps:[],options:null},g={type:LA.Transition,animation:o,matchers:i,options:null,queryCount:0,depCount:0};return new Qc(t,g,e)}function nS(t,e,A){t.has(e)?t.has(A)||t.set(A,t.get(e)):t.has(A)&&t.set(e,t.get(A))}var Oq=new Ka,_m=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,A,i){this.bodyNode=e,this._driver=A,this._normalizer=i}register(e,A){let i=[],o=[],g=QS(this._driver,A,i,o);if(i.length)throw Jb(i);this._animations.set(e,g)}_buildPlayer(e,A,i){let o=e.element,g=hm(this._normalizer,e.keyframes,A,i);return this._driver.animate(o,g,e.duration,e.delay,e.easing,[],!0)}create(e,A,i={}){let o=[],g=this._animations.get(e),n,s=new Map;if(g?(n=ES(this._driver,A,g,wm,ec,new Map,new Map,i,Oq,o),n.forEach(B=>{let c=Nt(s,B.element,new Map);B.postStyleProps.forEach(D=>c.set(D,null))})):(o.push(Hb()),n=[]),o.length)throw Tb(o);s.forEach((B,c)=>{B.forEach((D,h)=>{B.set(h,this._driver.computeStyle(c,h,ii))})});let r=n.map(B=>{let c=s.get(B.element);return this._buildPlayer(B,new Map,c)}),I=Zo(r);return this._playersById.set(e,I),I.onDestroy(()=>this.destroy(e)),this.players.push(I),I}destroy(e){let A=this._getPlayer(e);A.destroy(),this._playersById.delete(e);let i=this.players.indexOf(A);i>=0&&this.players.splice(i,1)}_getPlayer(e){let A=this._playersById.get(e);if(!A)throw Ob(e);return A}listen(e,A,i,o){let g=$E(A,"","","");return XE(this._getPlayer(e),i,g,o),()=>{}}command(e,A,i,o){if(i=="register"){this.register(e,o[0]);return}if(i=="create"){let n=o[0]||{};this.create(e,A,n);return}let g=this._getPlayer(e);switch(i){case"play":g.play();break;case"pause":g.pause();break;case"reset":g.reset();break;case"restart":g.restart();break;case"finish":g.finish();break;case"init":g.init();break;case"setPosition":g.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e);break}}},sS="ng-animate-queued",Pq=".ng-animate-queued",km="ng-animate-disabled",Zq=".ng-animate-disabled",qq="ng-star-inserted",Vq=".ng-star-inserted",Wq=[],lS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},zq={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Li="__ng_removed",Ua=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,A=""){this.namespaceId=A;let i=e&&e.hasOwnProperty("value"),o=i?e.value:e;if(this.value=Xq(o),i){let g=e,{value:n}=g,s=mc(g,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let A=e.params;if(A){let i=this.options.params;Object.keys(A).forEach(o=>{i[o]==null&&(i[o]=A[o])})}}},La="void",Fm=new Ua(La),xm=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,A,i){this.id=e,this.hostElement=A,this._engine=i,this._hostClassName="ng-tns-"+e,gi(A,this._hostClassName)}listen(e,A,i,o){if(!this._triggers.has(A))throw Pb(i,A);if(i==null||i.length==0)throw Zb(A);if(!$q(i))throw qb(i,A);let g=Nt(this._elementListeners,e,[]),n={name:A,phase:i,callback:o};g.push(n);let s=Nt(this._engine.statesByElement,e,new Map);return s.has(A)||(gi(e,Na),gi(e,Na+"-"+A),s.set(A,Fm)),()=>{this._engine.afterFlush(()=>{let r=g.indexOf(n);r>=0&&g.splice(r,1),this._triggers.has(A)||s.delete(A)})}}register(e,A){return this._triggers.has(e)?!1:(this._triggers.set(e,A),!0)}_getTrigger(e){let A=this._triggers.get(e);if(!A)throw Vb(e);return A}trigger(e,A,i,o=!0){let g=this._getTrigger(A),n=new _a(this.id,A,e),s=this._engine.statesByElement.get(e);s||(gi(e,Na),gi(e,Na+"-"+A),this._engine.statesByElement.set(e,s=new Map));let r=s.get(A),I=new Ua(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&r&&I.absorbOptions(r.options),s.set(A,I),r||(r=Fm),!(I.value===La)&&r.value===I.value){if(!t1(r.params,I.params)){let y=[],L=g.matchStyles(r.value,r.params,y),P=g.matchStyles(I.value,I.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{bg(e,L),vi(e,P)})}return}let D=Nt(this._engine.playersByElement,e,[]);D.forEach(y=>{y.namespaceId==this.id&&y.triggerName==A&&y.queued&&y.destroy()});let h=g.matchTransition(r.value,I.value,e,I.params),p=!1;if(!h){if(!o)return;h=g.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:A,transition:h,fromState:r,toState:I,player:n,isFallbackTransition:p}),p||(gi(e,sS),n.onStart(()=>{ur(e,sS)})),n.onDone(()=>{let y=this.players.indexOf(n);y>=0&&this.players.splice(y,1);let L=this._engine.playersByElement.get(e);if(L){let P=L.indexOf(n);P>=0&&L.splice(P,1)}}),this.players.push(n),D.push(n),n}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(A=>A.delete(e)),this._elementListeners.forEach((A,i)=>{this._elementListeners.set(i,A.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let A=this._engine.playersByElement.get(e);A&&(A.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,A){let i=this._engine.driver.query(e,Ga,!0);i.forEach(o=>{if(o[Li])return;let g=this._engine.fetchNamespacesByElement(o);g.size?g.forEach(n=>n.triggerLeaveAnimation(o,A,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,A,i,o){let g=this._engine.statesByElement.get(e),n=new Map;if(g){let s=[];if(g.forEach((r,I)=>{if(n.set(I,r.value),this._triggers.has(I)){let B=this.trigger(e,I,La,o);B&&s.push(B)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,A,n),i&&Zo(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let A=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(A&&i){let o=new Set;A.forEach(g=>{let n=g.name;if(o.has(n))return;o.add(n);let r=this._triggers.get(n).fallbackTransition,I=i.get(n)||Fm,B=new Ua(La),c=new _a(this.id,n,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:r,fromState:I,toState:B,player:c,isFallbackTransition:!0})})}}removeNode(e,A){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,A),this.triggerLeaveAnimation(e,A,!0))return;let o=!1;if(i.totalAnimations){let g=i.players.length?i.playersByQueriedElement.get(e):[];if(g&&g.length)o=!0;else{let n=e;for(;n=n.parentNode;)if(i.statesByElement.get(n)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)i.markElementAsRemoved(this.id,e,!1,A);else{let g=e[Li];(!g||g===lS)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,A))}}insertNode(e,A){gi(e,this._hostClassName)}drainQueuedTransitions(e){let A=[];return this._queue.forEach(i=>{let o=i.player;if(o.destroyed)return;let g=i.element,n=this._elementListeners.get(g);n&&n.forEach(s=>{if(s.name==i.triggerName){let r=$E(g,i.triggerName,i.fromState.value,i.toState.value);r._data=e,XE(i.player,s.phase,r,s.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):A.push(i)}),this._queue=[],A.sort((i,o)=>{let g=i.transition.ast.depCount,n=o.transition.ast.depCount;return g==0||n==0?g-n:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(e){this.players.forEach(A=>A.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ym=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,A)=>{};_onRemovalComplete(e,A){this.onRemovalComplete(e,A)}constructor(e,A,i){this.bodyNode=e,this.driver=A,this._normalizer=i}get queuedPlayers(){let e=[];return this._namespaceList.forEach(A=>{A.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,A){let i=new xm(e,A,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,A)?this._balanceNamespaceList(i,A):(this.newHostElements.set(A,i),this.collectEnterElement(A)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,A){let i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let n=!1,s=this.driver.getParentElement(A);for(;s;){let r=o.get(s);if(r){let I=i.indexOf(r);i.splice(I+1,0,e),n=!0;break}s=this.driver.getParentElement(s)}n||i.unshift(e)}else i.push(e);return o.set(A,e),e}register(e,A){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,A)),i}registerTrigger(e,A,i){let o=this._namespaceLookup[e];o&&o.register(A,i)&&this.totalAnimations++}destroy(e,A){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(A),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let A=new Set,i=this.statesByElement.get(e);if(i){for(let o of i.values())if(o.namespaceId){let g=this._fetchNamespace(o.namespaceId);g&&A.add(g)}}return A}trigger(e,A,i,o){if(sc(A)){let g=this._fetchNamespace(e);if(g)return g.trigger(A,i,o),!0}return!1}insertNode(e,A,i,o){if(!sc(A))return;let g=A[Li];if(g&&g.setForRemoval){g.setForRemoval=!1,g.setForMove=!0;let n=this.collectedLeaveElements.indexOf(A);n>=0&&this.collectedLeaveElements.splice(n,1)}if(e){let n=this._fetchNamespace(e);n&&n.insertNode(A,i)}o&&this.collectEnterElement(A)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,A){A?this.disabledNodes.has(e)||(this.disabledNodes.add(e),gi(e,km)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ur(e,km))}removeNode(e,A,i){if(sc(A)){let o=e?this._fetchNamespace(e):null;o?o.removeNode(A,i):this.markElementAsRemoved(e,A,!1,i);let g=this.namespacesByHostElement.get(A);g&&g.id!==e&&g.removeNode(A,i)}else this._onRemovalComplete(A,i)}markElementAsRemoved(e,A,i,o,g){this.collectedLeaveElements.push(A),A[Li]={namespaceId:e,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:g}}listen(e,A,i,o,g){return sc(A)?this._fetchNamespace(e).listen(A,i,o,g):()=>{}}_buildInstruction(e,A,i,o,g){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,o,e.fromState.options,e.toState.options,A,g)}destroyInnerAnimations(e){let A=this.driver.query(e,Ga,!0);A.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(A=this.driver.query(e,tc,!0),A.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let A=this.playersByElement.get(e);A&&A.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let A=this.playersByQueriedElement.get(e);A&&A.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Zo(this.players).onDone(()=>e());e()})}processLeaveNode(e){let A=e[Li];if(A&&A.setForRemoval){if(e[Li]=lS,A.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(A.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,A.setForRemoval)}e.classList?.contains(km)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Zq,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let A=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let o=this.collectedEnterElements[i];gi(o,qq)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{A=this._flushAnimations(i,e)}finally{for(let o=0;o<i.length;o++)i[o]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let o=this.collectedLeaveElements[i];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],A.length?Zo(A).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(e){throw Wb(e)}_flushAnimations(e,A){let i=new Ka,o=[],g=new Map,n=[],s=new Map,r=new Map,I=new Map,B=new Set;this.disabledNodes.forEach(E=>{B.add(E);let eA=this.driver.query(E,Pq,!0);for(let uA=0;uA<eA.length;uA++)B.add(eA[uA])});let c=this.bodyNode,D=Array.from(this.statesByElement.keys()),h=aS(D,this.collectedEnterElements),p=new Map,y=0;h.forEach((E,eA)=>{let uA=wm+y++;p.set(eA,uA),E.forEach(TA=>gi(TA,uA))});let L=[],P=new Set,mA=new Set;for(let E=0;E<this.collectedLeaveElements.length;E++){let eA=this.collectedLeaveElements[E],uA=eA[Li];uA&&uA.setForRemoval&&(L.push(eA),P.add(eA),uA.hasAnimation?this.driver.query(eA,Vq,!0).forEach(TA=>P.add(TA)):mA.add(eA))}let _A=new Map,fA=aS(D,Array.from(P));fA.forEach((E,eA)=>{let uA=ec+y++;_A.set(eA,uA),E.forEach(TA=>gi(TA,uA))}),e.push(()=>{h.forEach((E,eA)=>{let uA=p.get(eA);E.forEach(TA=>ur(TA,uA))}),fA.forEach((E,eA)=>{let uA=_A.get(eA);E.forEach(TA=>ur(TA,uA))}),L.forEach(E=>{this.processLeaveNode(E)})});let Qt=[],ue=[];for(let E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(A).forEach(uA=>{let TA=uA.player,Re=uA.element;if(Qt.push(TA),this.collectedEnterElements.length){let Ue=Re[Li];if(Ue&&Ue.setForMove){if(Ue.previousTriggersValues&&Ue.previousTriggersValues.has(uA.triggerName)){let _i=Ue.previousTriggersValues.get(uA.triggerName),st=this.statesByElement.get(uA.element);if(st&&st.has(uA.triggerName)){let Sg=st.get(uA.triggerName);Sg.value=_i,st.set(uA.triggerName,Sg)}}TA.destroy();return}}let We=!c||!this.driver.containsElement(c,Re),nt=_A.get(Re),Wt=p.get(Re),oe=this._buildInstruction(uA,i,Wt,nt,We);if(oe.errors&&oe.errors.length){ue.push(oe);return}if(We){TA.onStart(()=>bg(Re,oe.fromStyles)),TA.onDestroy(()=>vi(Re,oe.toStyles)),o.push(TA);return}if(uA.isFallbackTransition){TA.onStart(()=>bg(Re,oe.fromStyles)),TA.onDestroy(()=>vi(Re,oe.toStyles)),o.push(TA);return}let Ya=[];oe.timelines.forEach(Ue=>{Ue.stretchStartingKeyframe=!0,this.disabledNodes.has(Ue.element)||Ya.push(Ue)}),oe.timelines=Ya,i.append(Re,oe.timelines);let Ja={instruction:oe,player:TA,element:Re};n.push(Ja),oe.queriedElements.forEach(Ue=>Nt(s,Ue,[]).push(TA)),oe.preStyleProps.forEach((Ue,_i)=>{if(Ue.size){let st=r.get(_i);st||r.set(_i,st=new Set),Ue.forEach((Sg,mr)=>st.add(mr))}}),oe.postStyleProps.forEach((Ue,_i)=>{let st=I.get(_i);st||I.set(_i,st=new Set),Ue.forEach((Sg,mr)=>st.add(mr))})});if(ue.length){let E=[];ue.forEach(eA=>{E.push(zb(eA.triggerName,eA.errors))}),Qt.forEach(eA=>eA.destroy()),this.reportError(E)}let pe=new Map,le=new Map;n.forEach(E=>{let eA=E.element;i.has(eA)&&(le.set(eA,eA),this._beforeAnimationBuild(E.player.namespaceId,E.instruction,pe))}),o.forEach(E=>{let eA=E.element;this._getPreviousPlayers(eA,!1,E.namespaceId,E.triggerName,null).forEach(TA=>{Nt(pe,eA,[]).push(TA),TA.destroy()})});let ni=L.filter(E=>CS(E,r,I)),fo=new Map;IS(fo,this.driver,mA,I,ii).forEach(E=>{CS(E,r,I)&&ni.push(E)});let Ui=new Map;h.forEach((E,eA)=>{IS(Ui,this.driver,new Set(E),r,tr)}),ni.forEach(E=>{let eA=fo.get(E),uA=Ui.get(E);fo.set(E,new Map([...eA?.entries()??[],...uA?.entries()??[]]))});let Kn=[],UA=[],Un={};n.forEach(E=>{let{element:eA,player:uA,instruction:TA}=E;if(i.has(eA)){if(B.has(eA)){uA.onDestroy(()=>vi(eA,TA.toStyles)),uA.disabled=!0,uA.overrideTotalTime(TA.totalTime),o.push(uA);return}let Re=Un;if(le.size>1){let nt=eA,Wt=[];for(;nt=nt.parentNode;){let oe=le.get(nt);if(oe){Re=oe;break}Wt.push(nt)}Wt.forEach(oe=>le.set(oe,Re))}let We=this._buildAnimation(uA.namespaceId,TA,pe,g,Ui,fo);if(uA.setRealPlayer(We),Re===Un)Kn.push(uA);else{let nt=this.playersByElement.get(Re);nt&&nt.length&&(uA.parentPlayer=Zo(nt)),o.push(uA)}}else bg(eA,TA.fromStyles),uA.onDestroy(()=>vi(eA,TA.toStyles)),UA.push(uA),B.has(eA)&&o.push(uA)}),UA.forEach(E=>{let eA=g.get(E.element);if(eA&&eA.length){let uA=Zo(eA);E.setRealPlayer(uA)}}),o.forEach(E=>{E.parentPlayer?E.syncPlayerEvents(E.parentPlayer):E.destroy()});for(let E=0;E<L.length;E++){let eA=L[E],uA=eA[Li];if(ur(eA,ec),uA&&uA.hasAnimation)continue;let TA=[];if(s.size){let We=s.get(eA);We&&We.length&&TA.push(...We);let nt=this.driver.query(eA,tc,!0);for(let Wt=0;Wt<nt.length;Wt++){let oe=s.get(nt[Wt]);oe&&oe.length&&TA.push(...oe)}}let Re=TA.filter(We=>!We.destroyed);Re.length?A1(this,eA,Re):this.processLeaveNode(eA)}return L.length=0,Kn.forEach(E=>{this.players.push(E),E.onDone(()=>{E.destroy();let eA=this.players.indexOf(E);this.players.splice(eA,1)}),E.play()}),Kn}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,A,i,o,g){let n=[];if(A){let s=this.playersByQueriedElement.get(e);s&&(n=s)}else{let s=this.playersByElement.get(e);if(s){let r=!g||g==La;s.forEach(I=>{I.queued||!r&&I.triggerName!=o||n.push(I)})}}return(i||o)&&(n=n.filter(s=>!(i&&i!=s.namespaceId||o&&o!=s.triggerName))),n}_beforeAnimationBuild(e,A,i){let o=A.triggerName,g=A.element,n=A.isRemovalTransition?void 0:e,s=A.isRemovalTransition?void 0:o;for(let r of A.timelines){let I=r.element,B=I!==g,c=Nt(i,I,[]);this._getPreviousPlayers(I,B,n,s,A.toState).forEach(h=>{let p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),c.push(h)})}bg(g,A.fromStyles)}_buildAnimation(e,A,i,o,g,n){let s=A.triggerName,r=A.element,I=[],B=new Set,c=new Set,D=A.timelines.map(p=>{let y=p.element;B.add(y);let L=y[Li];if(L&&L.removedBeforeQueried)return new Bo(p.duration,p.delay);let P=y!==r,mA=e1((i.get(y)||Wq).map(pe=>pe.getRealPlayer())).filter(pe=>{let le=pe;return le.element?le.element===y:!1}),_A=g.get(y),fA=n.get(y),Qt=hm(this._normalizer,p.keyframes,_A,fA),ue=this._buildPlayer(p,Qt,mA);if(p.subTimeline&&o&&c.add(y),P){let pe=new _a(e,s,y);pe.setRealPlayer(ue),I.push(pe)}return ue});I.forEach(p=>{Nt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>jq(this.playersByQueriedElement,p.element,p))}),B.forEach(p=>gi(p,pm));let h=Zo(D);return h.onDestroy(()=>{B.forEach(p=>ur(p,pm)),vi(r,A.toStyles)}),c.forEach(p=>{Nt(o,p,[]).push(h)}),h}_buildPlayer(e,A,i){return A.length>0?this.driver.animate(e.element,A,e.duration,e.delay,e.easing,i):new Bo(e.duration,e.delay)}},_a=class{namespaceId;triggerName;element;_player=new Bo;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,A,i){this.namespaceId=e,this.triggerName=A,this.element=i}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((A,i)=>{A.forEach(o=>XE(e,i,void 0,o))}),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 A=this._player;A.triggerCallback&&e.onStart(()=>A.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,A){Nt(this._queuedCallbacks,e,[]).push(A)}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 A=this._player;A.triggerCallback&&A.triggerCallback(e)}};function jq(t,e,A){let i=t.get(e);if(i){if(i.length){let o=i.indexOf(A);i.splice(o,1)}i.length==0&&t.delete(e)}return i}function Xq(t){return t??null}function sc(t){return t&&t.nodeType===1}function $q(t){return t=="start"||t=="done"}function rS(t,e){let A=t.style.display;return t.style.display=e??"none",A}function IS(t,e,A,i,o){let g=[];A.forEach(r=>g.push(rS(r)));let n=[];i.forEach((r,I)=>{let B=new Map;r.forEach(c=>{let D=e.computeStyle(I,c,o);B.set(c,D),(!D||D.length==0)&&(I[Li]=zq,n.push(I))}),t.set(I,B)});let s=0;return A.forEach(r=>rS(r,g[s++])),n}function aS(t,e){let A=new Map;if(t.forEach(s=>A.set(s,[])),e.length==0)return A;let i=1,o=new Set(e),g=new Map;function n(s){if(!s)return i;let r=g.get(s);if(r)return r;let I=s.parentNode;return A.has(I)?r=I:o.has(I)?r=i:r=n(I),g.set(s,r),r}return e.forEach(s=>{let r=n(s);r!==i&&A.get(r).push(s)}),A}function gi(t,e){t.classList?.add(e)}function ur(t,e){t.classList?.remove(e)}function A1(t,e,A){Zo(A).onDone(()=>t.processLeaveNode(e))}function e1(t){let e=[];return dS(t,e),e}function dS(t,e){for(let A=0;A<t.length;A++){let i=t[A];i instanceof pn?dS(i.players,e):e.push(i)}}function t1(t,e){let A=Object.keys(t),i=Object.keys(e);if(A.length!=i.length)return!1;for(let o=0;o<A.length;o++){let g=A[o];if(!e.hasOwnProperty(g)||t[g]!==e[g])return!1}return!0}function CS(t,e,A){let i=A.get(t);if(!i)return!1;let o=e.get(t);return o?i.forEach(g=>o.add(g)):e.set(t,i),A.delete(t),!0}var Dr=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,A)=>{};constructor(e,A,i){this._driver=A,this._normalizer=i,this._transitionEngine=new Ym(e.body,A,i),this._timelineEngine=new _m(e.body,A,i),this._transitionEngine.onRemovalComplete=(o,g)=>this.onRemovalComplete(o,g)}registerTrigger(e,A,i,o,g){let n=e+"-"+o,s=this._triggerCache[n];if(!s){let r=[],I=[],B=QS(this._driver,g,r,I);if(r.length)throw Yb(o,r);s=Hq(o,B,this._normalizer),this._triggerCache[n]=s}this._transitionEngine.registerTrigger(A,o,s)}register(e,A){this._transitionEngine.register(e,A)}destroy(e,A){this._transitionEngine.destroy(e,A)}onInsert(e,A,i,o){this._transitionEngine.insertNode(e,A,i,o)}onRemove(e,A,i){this._transitionEngine.removeNode(e,A,i)}disableAnimations(e,A){this._transitionEngine.markElementAsDisabled(e,A)}process(e,A,i,o){if(i.charAt(0)=="@"){let[g,n]=um(i),s=o;this._timelineEngine.command(g,A,n,s)}else this._transitionEngine.trigger(e,A,i,o)}listen(e,A,i,o,g){if(i.charAt(0)=="@"){let[n,s]=um(i);return this._timelineEngine.listen(n,A,s,g)}return this._transitionEngine.listen(e,A,i,o,g)}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 i1(t,e){let A=null,i=null;return Array.isArray(e)&&e.length?(A=bm(e[0]),e.length>1&&(i=bm(e[e.length-1]))):e instanceof Map&&(A=bm(e)),A||i?new o1(t,A,i):null}var o1=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(A,i,o){this._element=A,this._startStyles=i,this._endStyles=o;let g=t.initialStylesByElement.get(A);g||t.initialStylesByElement.set(A,g=new Map),this._initialStyles=g}start(){this._state<1&&(this._startStyles&&vi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vi(this._element,this._initialStyles),this._endStyles&&(vi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(bg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bg(this._element,this._endStyles),this._endStyles=null),vi(this._element,this._initialStyles),this._state=3)}}return t})();function bm(t){let e=null;return t.forEach((A,i)=>{g1(i)&&(e=e||new Map,e.set(i,A))}),e}function g1(t){return t==="display"||t==="position"}var Ec=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,A,i,o){this.element=e,this.keyframes=A,this.options=i,this._specialStyles=o,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let A=()=>this._onFinish();this.domPlayer.addEventListener("finish",A),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",A)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let A=[];return e.forEach(i=>{A.push(Object.fromEntries(i))}),A}_triggerWebAnimation(e,A,i){return e.animate(this._convertKeyframesToObject(A),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){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((i,o)=>{o!=="offset"&&e.set(o,this._finished?i:oc(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let A=e==="start"?this._onStartFns:this._onDoneFns;A.forEach(i=>i()),A.length=0}},cc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,A){return Dm(e,A)}getParentElement(e){return Ac(e)}query(e,A,i){return mm(e,A,i)}computeStyle(e,A,i){return oc(e,A)}animate(e,A,i,o,g,n=[]){let s=o==0?"both":"forwards",r={duration:i,delay:o,fill:s};g&&(r.easing=g);let I=new Map,B=n.filter(h=>h instanceof Ec);AS(i,o)&&B.forEach(h=>{h.currentSnapshot.forEach((p,y)=>I.set(y,p))});let c=Xb(A).map(h=>new Map(h));c=eS(e,c,I);let D=i1(e,c);return new Ec(e,c,r,D)}};var rc="@",hS="@.disabled",lc=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,A,i,o){this.namespaceId=e,this.delegate=A,this.engine=i,this._onDestroy=o}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,A){return this.delegate.createElement(e,A)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,A){this.delegate.appendChild(e,A),this.engine.onInsert(this.namespaceId,A,e,!1)}insertBefore(e,A,i,o=!0){this.delegate.insertBefore(e,A,i),this.engine.onInsert(this.namespaceId,A,e,o)}removeChild(e,A,i){this.parentNode(A)&&this.engine.onRemove(this.namespaceId,A,this.delegate)}selectRootElement(e,A){return this.delegate.selectRootElement(e,A)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,A,i,o){this.delegate.setAttribute(e,A,i,o)}removeAttribute(e,A,i){this.delegate.removeAttribute(e,A,i)}addClass(e,A){this.delegate.addClass(e,A)}removeClass(e,A){this.delegate.removeClass(e,A)}setStyle(e,A,i,o){this.delegate.setStyle(e,A,i,o)}removeStyle(e,A,i){this.delegate.removeStyle(e,A,i)}setProperty(e,A,i){A.charAt(0)==rc&&A==hS?this.disableAnimations(e,!!i):this.delegate.setProperty(e,A,i)}setValue(e,A){this.delegate.setValue(e,A)}listen(e,A,i,o){return this.delegate.listen(e,A,i,o)}disableAnimations(e,A){this.engine.disableAnimations(e,A)}},Jm=class extends lc{factory;constructor(e,A,i,o,g){super(A,i,o,g),this.factory=e,this.namespaceId=A}setProperty(e,A,i){A.charAt(0)==rc?A.charAt(1)=="."&&A==hS?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,A.slice(1),i):this.delegate.setProperty(e,A,i)}listen(e,A,i,o){if(A.charAt(0)==rc){let g=n1(e),n=A.slice(1),s="";return n.charAt(0)!=rc&&([n,s]=s1(n)),this.engine.listen(this.namespaceId,g,n,s,r=>{let I=r._data||-1;this.factory.scheduleListenerCallback(I,i,r)})}return this.delegate.listen(e,A,i,o)}};function n1(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function s1(t){let e=t.indexOf("."),A=t.substring(0,e),i=t.slice(e+1);return[A,i]}var dc=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,A,i){this.delegate=e,this.engine=A,this._zone=i,A.onRemovalComplete=(o,g)=>{g?.removeChild(null,o)}}createRenderer(e,A){let i="",o=this.delegate.createRenderer(e,A);if(!e||!A?.data?.animation){let I=this._rendererCache,B=I.get(o);if(!B){let c=()=>I.delete(o);B=new lc(i,o,this.engine,c),I.set(o,B)}return B}let g=A.id,n=A.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);let s=I=>{Array.isArray(I)?I.forEach(s):this.engine.registerTrigger(g,n,e,I.name,I)};return A.data.animation.forEach(s),new Jm(this,n,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,A,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>A(i));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(g=>{let[n,s]=g;n(s)}),this._animationCallbacksBuffer=[]})}),o.push([A,i])}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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var I1=(()=>{class t extends Dr{constructor(A,i,o){super(A,i,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(J(lA),J(vn),J(Ln))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function a1(){return new Ic}function C1(t,e,A){return new dc(t,e,A)}var DS=[{provide:Ln,useFactory:a1},{provide:Dr,useClass:I1},{provide:tt,useFactory:C1,deps:[uI,Dr,X]}],B1=[{provide:vn,useClass:Hm},{provide:ee,useValue:"NoopAnimations"},...DS],uS=[{provide:vn,useFactory:()=>new cc},{provide:ee,useFactory:()=>"BrowserAnimations"},...DS],mS=(()=>{class t{static withConfig(A){return{ngModule:t,providers:A.disableAnimations?B1:uS}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=V({type:t});static \u0275inj=q({providers:uS,imports:[mI]})}return t})();var hc=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=V({type:t});static \u0275inj=q({imports:[Uo,hQ,JF,FF,To,YE,xo,Kk,xo,xF,HF,ZF,Ab,kE,qk,uF,NF,mb.forRoot(),fb,bM]})};var xa=class t{static \u0275fac=function(A){return new(A||t)};static \u0275mod=V({type:t,bootstrap:[lr]});static \u0275inj=q({providers:[Si,fg,ho,Cr,Br,Fg,co,ar,cr],imports:[hc,mI,hQ,Ph,jE,YE,To,xo,mS,xo]})};fetch("/assets/config/runtime-config.json").then(t=>t.json()).then(t=>{window.runtimeConfig=t,$B().bootstrapModule(xa).catch(e=>console.error(e))});$B().bootstrapModule(xa).catch(t=>console.error(t));
