Files
Metacase/dist/form_metacase/browser/main-OYKWYQXH.js
T
2026-08-14 16:03:47 +01:00

55 lines
431 KiB
JavaScript

var K_=Object.defineProperty,J_=Object.defineProperties;var X_=Object.getOwnPropertyDescriptors;var Ap=Object.getOwnPropertySymbols;var e0=Object.prototype.hasOwnProperty,t0=Object.prototype.propertyIsEnumerable;var Np=(e,t,n)=>t in e?K_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||={})e0.call(t,n)&&Np(e,n,t[n]);if(Ap)for(var n of Ap(t))t0.call(t,n)&&Np(e,n,t[n]);return e},R=(e,t)=>J_(e,X_(t));var Re=null,vs=!1,El=1,n0=null,Ee=Symbol("SIGNAL");function L(e){let t=Re;return Re=e,t}function ys(){return Re}var yn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Kn(e){if(vs)throw new Error("");if(Re===null)return;Re.consumerOnSignalRead(e);let t=Re.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Re.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Re.producers,n!==void 0&&n.producer===e)){Re.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Re&&(!r||o0(o,Re)))return;let i=Vr(Re),s={producer:e,consumer:Re,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Re.producersTail=s,t!==void 0?t.nextProducer=s:Re.producers=s,i&&kp(e,s)}function Op(){El++}function Jn(e){if(!(Vr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===El)){if(!e.producerMustRecompute(e)&&!Uo(e)){jr(e);return}e.producerRecomputeValue(e),jr(e)}}function wl(e){if(e.consumers===void 0)return;let t=vs;vs=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||r0(r)}}finally{vs=t}}function Il(){return Re?.consumerAllowSignalWrites!==!1}function r0(e){e.dirty=!0,wl(e),e.consumerMarkedDirty?.(e)}function jr(e){e.dirty=!1,e.lastCleanEpoch=El}function _n(e){return e&&Rp(e),L(e)}function Rp(e){e.producersTail=void 0,e.recomputing=!0}function Xn(e,t){L(t),e&&Pp(e)}function Pp(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Vr(e))do n=xl(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Uo(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Jn(n),r!==n.version))return!0}return!1}function er(e){if(Vr(e)){let t=e.producers;for(;t!==void 0;)t=xl(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function kp(e,t){let n=e.consumersTail,r=Vr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)kp(o.producer,o)}function xl(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Vr(t)){let i=t.producers;for(;i!==void 0;)i=xl(i)}return n}function Vr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ho(e){n0?.(e)}function o0(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function $o(e,t){return Object.is(e,t)}function _s(e,t){let n=Object.create(i0);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Jn(n),Kn(n),n.value===Ot)throw n.error;return n.value};return r[Ee]=n,Ho(n),r}var vn=Symbol("UNSET"),Yn=Symbol("COMPUTING"),Ot=Symbol("ERRORED"),i0=R(b({},yn),{value:vn,dirty:!0,error:null,equal:$o,kind:"computed",producerMustRecompute(e){return e.value===vn||e.value===Yn},producerRecomputeValue(e){if(e.value===Yn)throw new Error("");let t=e.value;e.value=Yn;let n=_n(e),r,o=!1;try{r=e.computation(),L(null),o=t!==vn&&t!==Ot&&r!==Ot&&e.equal(t,r)}catch(i){r=Ot,e.error=i}finally{Xn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function s0(){throw new Error}var Fp=s0;function Lp(e){Fp(e)}function Ml(e){Fp=e}var a0=null;function Sl(e,t){let n=Object.create(Cs);n.value=e,t!==void 0&&(n.equal=t);let r=()=>jp(n);return r[Ee]=n,Ho(n),[r,s=>tr(n,s),s=>bs(n,s)]}function jp(e){return Kn(e),e.value}function tr(e,t){Il()||Lp(e),e.equal(e.value,t)||(e.value=t,c0(e))}function bs(e,t){Il()||Lp(e),tr(e,t(e.value))}var Cs=R(b({},yn),{equal:$o,value:void 0,kind:"signal"});function c0(e){e.version++,Op(),wl(e),a0?.(e)}var Tl=R(b({},yn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Al(e){if(e.dirty=!1,e.version>0&&!Uo(e))return;e.version++;let t=_n(e);try{e.cleanup(),e.fn()}finally{Xn(e,t)}}function V(e){return typeof e=="function"}function bn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ds=bn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function nr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _e=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(V(r))try{r()}catch(i){t=i instanceof Ds?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Vp(i)}catch(s){t=t??[],s instanceof Ds?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ds(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Vp(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&nr(n,t)}remove(t){let{_finalizers:n}=this;n&&nr(n,t),t instanceof e&&t._removeParent(this)}};_e.EMPTY=(()=>{let e=new _e;return e.closed=!0,e})();var Nl=_e.EMPTY;function Es(e){return e instanceof _e||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function Vp(e){V(e)?e():e.unsubscribe()}var yt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Br={setTimeout(e,t,...n){let{delegate:r}=Br;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Br;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ws(e){Br.setTimeout(()=>{let{onUnhandledError:t}=yt;if(t)t(e);else throw e})}function zo(){}var Bp=Ol("C",void 0,void 0);function Up(e){return Ol("E",void 0,e)}function Hp(e){return Ol("N",e,void 0)}function Ol(e,t,n){return{kind:e,value:t,error:n}}var rr=null;function Ur(e){if(yt.useDeprecatedSynchronousErrorHandling){let t=!rr;if(t&&(rr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=rr;if(rr=null,n)throw r}}else e()}function $p(e){yt.useDeprecatedSynchronousErrorHandling&&rr&&(rr.errorThrown=!0,rr.error=e)}var or=class extends _e{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Es(t)&&t.add(this)):this.destination=d0}static create(t,n,r){return new Hr(t,n,r)}next(t){this.isStopped?Pl(Hp(t),this):this._next(t)}error(t){this.isStopped?Pl(Up(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Pl(Bp,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},l0=Function.prototype.bind;function Rl(e,t){return l0.call(e,t)}var kl=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Is(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Is(r)}else Is(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Is(n)}}},Hr=class extends or{constructor(t,n,r){super();let o;if(V(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&yt.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Rl(t.next,i),error:t.error&&Rl(t.error,i),complete:t.complete&&Rl(t.complete,i)}):o=t}this.destination=new kl(o)}};function Is(e){yt.useDeprecatedSynchronousErrorHandling?$p(e):ws(e)}function u0(e){throw e}function Pl(e,t){let{onStoppedNotification:n}=yt;n&&Br.setTimeout(()=>n(e,t))}var d0={closed:!0,next:zo,error:u0,complete:zo};var $r=typeof Symbol=="function"&&Symbol.observable||"@@observable";function _t(e){return e}function Fl(...e){return Ll(e)}function Ll(e){return e.length===0?_t:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var q=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=p0(n)?n:new Hr(n,r,o);return Ur(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=zp(r),new r((o,i)=>{let s=new Hr({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[$r](){return this}pipe(...n){return Ll(n)(this)}toPromise(n){return n=zp(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function zp(e){var t;return(t=e??yt.Promise)!==null&&t!==void 0?t:Promise}function f0(e){return e&&V(e.next)&&V(e.error)&&V(e.complete)}function p0(e){return e&&e instanceof or||f0(e)&&Es(e)}function h0(e){return V(e?.lift)}function G(e){return t=>{if(h0(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function W(e,t,n,r,o){return new jl(e,t,n,r,o)}var jl=class extends or{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var qp=bn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ge=(()=>{class e extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new xs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new qp}next(n){Ur(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ur(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ur(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Nl:(this.currentObservers=null,i.push(n),new _e(()=>{this.currentObservers=null,nr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new q;return n.source=this,n}}return e.create=(t,n)=>new xs(t,n),e})(),xs=class extends ge{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Nl}};var Me=class extends ge{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Vl={now(){return(Vl.delegate||Date).now()},delegate:void 0};var Ms=class extends _e{constructor(t,n){super()}schedule(t,n=0){return this}};var qo={setInterval(e,t,...n){let{delegate:r}=qo;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=qo;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Ss=class extends Ms{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return qo.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&qo.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,nr(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var zr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};zr.now=Vl.now;var Ts=class extends zr{constructor(t,n=zr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Gp=new Ts(Ss);var Se=new q(e=>e.complete());function Wp(e){return e&&V(e.schedule)}function Zp(e){return e[e.length-1]}function As(e){return V(Zp(e))?e.pop():void 0}function Cn(e){return Wp(Zp(e))?e.pop():void 0}function Yp(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Qp(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ir(e){return this instanceof ir?(this.v=e,this):new ir(e)}function Kp(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(m){return function(D){return Promise.resolve(D).then(m,d)}}function a(m,D){r[m]&&(o[m]=function(S){return new Promise(function(M,x){i.push([m,S,M,x])>1||c(m,S)})},D&&(o[m]=D(o[m])))}function c(m,D){try{l(r[m](D))}catch(S){v(i[0][3],S)}}function l(m){m.value instanceof ir?Promise.resolve(m.value.v).then(u,d):v(i[0][2],m)}function u(m){c("next",m)}function d(m){c("throw",m)}function v(m,D){m(D),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Jp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Qp=="function"?Qp(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Ns=e=>e&&typeof e.length=="number"&&typeof e!="function";function Os(e){return V(e?.then)}function Rs(e){return V(e[$r])}function Ps(e){return Symbol.asyncIterator&&V(e?.[Symbol.asyncIterator])}function ks(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function g0(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Fs=g0();function Ls(e){return V(e?.[Fs])}function js(e){return Kp(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ir(n.read());if(o)return yield ir(void 0);yield yield ir(r)}}finally{n.releaseLock()}})}function Vs(e){return V(e?.getReader)}function ae(e){if(e instanceof q)return e;if(e!=null){if(Rs(e))return m0(e);if(Ns(e))return v0(e);if(Os(e))return y0(e);if(Ps(e))return Xp(e);if(Ls(e))return _0(e);if(Vs(e))return b0(e)}throw ks(e)}function m0(e){return new q(t=>{let n=e[$r]();if(V(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function v0(e){return new q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function y0(e){return new q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,ws)})}function _0(e){return new q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Xp(e){return new q(t=>{C0(e,t).catch(n=>t.error(n))})}function b0(e){return Xp(js(e))}function C0(e,t){var n,r,o,i;return Yp(this,void 0,void 0,function*(){try{for(n=Jp(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Pe(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Bs(e,t=0){return G((n,r)=>{n.subscribe(W(r,o=>Pe(r,e,()=>r.next(o),t),()=>Pe(r,e,()=>r.complete(),t),o=>Pe(r,e,()=>r.error(o),t)))})}function Us(e,t=0){return G((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function eh(e,t){return ae(e).pipe(Us(t),Bs(t))}function th(e,t){return ae(e).pipe(Us(t),Bs(t))}function nh(e,t){return new q(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function rh(e,t){return new q(n=>{let r;return Pe(n,t,()=>{r=e[Fs](),Pe(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>V(r?.return)&&r.return()})}function Hs(e,t){if(!e)throw new Error("Iterable cannot be null");return new q(n=>{Pe(n,t,()=>{let r=e[Symbol.asyncIterator]();Pe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function oh(e,t){return Hs(js(e),t)}function ih(e,t){if(e!=null){if(Rs(e))return eh(e,t);if(Ns(e))return nh(e,t);if(Os(e))return th(e,t);if(Ps(e))return Hs(e,t);if(Ls(e))return rh(e,t);if(Vs(e))return oh(e,t)}throw ks(e)}function ce(e,t){return t?ih(e,t):ae(e)}function H(...e){let t=Cn(e);return ce(e,t)}function Bl(e,t){let n=V(e)?e:()=>e,r=o=>o.error(n());return new q(t?o=>t.schedule(r,0,o):r)}function $s(e){return!!e&&(e instanceof q||V(e.lift)&&V(e.subscribe))}var sr=bn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function sh(e){return e instanceof Date&&!isNaN(e)}var D0=bn(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function Go(e,t){let{first:n,each:r,with:o=E0,scheduler:i=t??Gp,meta:s=null}=sh(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return G((a,c)=>{let l,u,d=null,v=0,m=D=>{u=Pe(c,i,()=>{try{l.unsubscribe(),ae(o({meta:s,lastValue:d,seen:v})).subscribe(c)}catch(S){c.error(S)}},D)};l=a.subscribe(W(c,D=>{u?.unsubscribe(),v++,c.next(d=D),r>0&&m(r)},void 0,void 0,()=>{u?.closed||u?.unsubscribe(),d=null})),!v&&m(n!=null?typeof n=="number"?n:+n-i.now():r)})}function E0(e){throw new D0(e)}function Z(e,t){return G((n,r)=>{let o=0;n.subscribe(W(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:w0}=Array;function I0(e,t){return w0(t)?e(...t):e(t)}function zs(e){return Z(t=>I0(e,t))}var{isArray:x0}=Array,{getPrototypeOf:M0,prototype:S0,keys:T0}=Object;function qs(e){if(e.length===1){let t=e[0];if(x0(t))return{args:t,keys:null};if(A0(t)){let n=T0(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function A0(e){return e&&typeof e=="object"&&M0(e)===S0}function Gs(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ul(...e){let t=Cn(e),n=As(e),{args:r,keys:o}=qs(e);if(r.length===0)return ce([],t);let i=new q(N0(r,t,o?s=>Gs(o,s):_t));return n?i.pipe(zs(n)):i}function N0(e,t,n=_t){return r=>{ah(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)ah(t,()=>{let l=ce(e[c],t),u=!1;l.subscribe(W(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ah(e,t,n){e?Pe(n,e,t):t()}function ch(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,v=()=>{d&&!c.length&&!l&&t.complete()},m=S=>l<r?D(S):c.push(S),D=S=>{i&&t.next(S),l++;let M=!1;ae(n(S,u++)).subscribe(W(t,x=>{o?.(x),i?m(x):t.next(x)},()=>{M=!0},void 0,()=>{if(M)try{for(l--;c.length&&l<r;){let x=c.shift();s?Pe(t,s,()=>D(x)):D(x)}v()}catch(x){t.error(x)}}))};return e.subscribe(W(t,m,()=>{d=!0,v()})),()=>{a?.()}}function He(e,t,n=1/0){return V(t)?He((r,o)=>Z((i,s)=>t(r,i,o,s))(ae(e(r,o))),n):(typeof t=="number"&&(n=t),G((r,o)=>ch(r,o,e,n)))}function lh(e=1/0){return He(_t,e)}function uh(){return lh(1)}function qr(...e){return uh()(ce(e,Cn(e)))}function Wo(e){return new q(t=>{ae(e()).subscribe(t)})}function Hl(...e){let t=As(e),{args:n,keys:r}=qs(e),o=new q(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;ae(n[u]).subscribe(W(i,v=>{d||(d=!0,l--),a[u]=v},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Gs(r,a):a),i.complete())}))}});return t?o.pipe(zs(t)):o}function bt(e,t){return G((n,r)=>{let o=0;n.subscribe(W(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Zo(e){return G((t,n)=>{let r=null,o=!1,i;r=t.subscribe(W(n,void 0,void 0,s=>{i=ae(e(s,Zo(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Gr(e,t){return V(t)?He(e,t,1):He(e,1)}function dh(e){return G((t,n)=>{let r=!1;t.subscribe(W(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Kt(e){return e<=0?()=>Se:G((t,n)=>{let r=0;t.subscribe(W(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function fh(e=O0){return G((t,n)=>{let r=!1;t.subscribe(W(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function O0(){return new sr}function Rt(e){return G((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Jt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?bt((o,i)=>e(o,i,r)):_t,Kt(1),n?dh(t):fh(()=>new sr))}function Ws(e){return e<=0?()=>Se:G((t,n)=>{let r=[];t.subscribe(W(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function $l(...e){let t=Cn(e);return G((n,r)=>{(t?qr(e,n,t):qr(e,n)).subscribe(r)})}function Qe(e,t){return G((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(W(r,c=>{o?.unsubscribe();let l=0,u=i++;ae(e(c,u)).subscribe(o=W(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Qo(e){return G((t,n)=>{ae(e).subscribe(W(n,()=>n.complete(),zo)),!n.closed&&t.subscribe(n)})}function st(e,t,n){let r=V(e)||t||n?{next:e,error:t,complete:n}:e;return r?G((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(W(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):_t}var zl;function Zs(){return zl}function Pt(e){let t=zl;return zl=e,t}var ph=Symbol("NotFound");function Wr(e){return e===ph||e?.name==="\u0275NotFound"}function ql(e,t,n){let r=Object.create(R0);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Jn(r),Kn(r),r.value===Ot)throw r.error;return r.value};return i[Ee]=r,Ho(r),i}function hh(e,t){Jn(e),tr(e,t),jr(e)}function gh(e,t){if(Jn(e),e.value===Ot)throw e.error;bs(e,t),jr(e)}var R0=R(b({},yn),{value:vn,dirty:!0,error:null,equal:$o,kind:"linkedSignal",producerMustRecompute(e){return e.value===vn||e.value===Yn},producerRecomputeValue(e){if(e.value===Yn)throw new Error("");let t=e.value;e.value=Yn;let n=_n(e),r;try{let o=e.source(),i=t===vn||t===Ot?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=Ot,e.error=o}finally{Xn(e,n)}if(t!==vn&&r!==Ot&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function mh(e){let t=L(null);try{return e()}finally{L(t)}}var ta="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",C=class extends Error{code;constructor(t,n){super(xn(t,n)),this.code=t}};function P0(e){return`NG0${Math.abs(e)}`}function xn(e,t){return`${P0(e)}${t?": "+t:""}`}var Ct=globalThis;function X(e){for(let t in e)if(e[t]===X)return t;throw Error("")}function Ch(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ni(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ni).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
`);return r>=0?n.slice(0,r):n}function ou(e,t){return e?t?`${e} ${t}`:e:t||""}var k0=X({__forward_ref__:X});function Ft(e){return e.__forward_ref__=Ft,e}function Te(e){return iu(e)?e():e}function iu(e){return typeof e=="function"&&e.hasOwnProperty(k0)&&e.__forward_ref__===Ft}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Dt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ri(e){return F0(e,na)}function su(e){return ri(e)!==null}function F0(e,t){return e.hasOwnProperty(t)&&e[t]||null}function L0(e){let t=e?.[na]??null;return t||null}function Wl(e){return e&&e.hasOwnProperty(Ys)?e[Ys]:null}var na=X({\u0275prov:X}),Ys=X({\u0275inj:X}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=I({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function au(e){return e&&!!e.\u0275providers}var cu=X({\u0275cmp:X}),lu=X({\u0275dir:X}),uu=X({\u0275pipe:X}),du=X({\u0275mod:X}),Ko=X({\u0275fac:X}),dr=X({__NG_ELEMENT_ID__:X}),vh=X({__NG_ENV_ID__:X});function fu(e){return ra(e,"@NgModule"),e[du]||null}function Mn(e){return ra(e,"@Component"),e[cu]||null}function pu(e){return ra(e,"@Directive"),e[lu]||null}function Dh(e){return ra(e,"@Pipe"),e[uu]||null}function ra(e,t){if(e==null)throw new C(-919,!1)}function Lt(e){return typeof e=="string"?e:e==null?"":String(e)}var Eh=X({ngErrorCode:X}),j0=X({ngErrorMessage:X}),V0=X({ngTokenPath:X});function hu(e,t){return wh("",-200,t)}function oa(e,t){throw new C(-201,!1)}function wh(e,t,n){let r=new C(t,e);return r[Eh]=t,r[j0]=e,n&&(r[V0]=n),r}function B0(e){return e[Eh]}var Zl;function Ih(){return Zl}function $e(e){let t=Zl;return Zl=e,t}function gu(e,t,n){let r=ri(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;oa(e,"")}var U0={},ar=U0,H0="__NG_DI_FLAG__",Ql=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=cr(n)||0;try{return this.injector.get(t,r&8?null:ar,r)}catch(o){if(Wr(o))return o;throw o}}};function $0(e,t=0){let n=Zs();if(n===void 0)throw new C(-203,!1);if(n===null)return gu(e,void 0,t);{let r=z0(t),o=n.retrieve(e,r);if(Wr(o)){if(r.optional)return null;throw o}return o}}function N(e,t=0){return(Ih()||$0)(Te(e),t)}function y(e,t){return N(e,cr(t))}function cr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function z0(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Yl(e){let t=[];for(let n=0;n<e.length;n++){let r=Te(e[n]);if(Array.isArray(r)){if(r.length===0)throw new C(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=q0(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(N(o,i))}else t.push(N(r))}return t}function q0(e){return e[H0]}function Dn(e,t){let n=e.hasOwnProperty(Ko);return n?e[Ko]:null}function xh(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Mh(e){return e.flat(Number.POSITIVE_INFINITY)}function ia(e,t){e.forEach(n=>Array.isArray(n)?ia(n,t):t(n))}function mu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function oi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Sh(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Th(e,t,n){let r=Qr(e,t);return r>=0?e[r|1]=n:(r=~r,Sh(e,r,t,n)),r}function sa(e,t){let n=Qr(e,t);if(n>=0)return e[n|1]}function Qr(e,t){return G0(e,t,1)}function G0(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Sn={},Ye=[],fr=new w(""),ii=new w("",-1),vu=new w(""),Jo=class{get(t,n=ar){if(n===ar){let o=wh("",-201);throw o.name="\u0275NotFound",o}return n}};function Tn(e){return{\u0275providers:e}}function Ah(e){return Tn([{provide:fr,multi:!0,useValue:e}])}function Nh(...e){return{\u0275providers:yu(!0,e),\u0275fromNgModule:!0}}function yu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ia(t,s=>{let a=s;Ks(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Oh(o,i),n}function Oh(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];_u(o,i=>{t(i,r)})}}function Ks(e,t,n,r){if(e=Te(e),!e)return!1;let o=null,i=Wl(e),s=!i&&Mn(e);if(!i&&!s){let c=e.ngModule;if(i=Wl(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Ks(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;ia(i.imports,u=>{Ks(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&Oh(l,t)}if(!a){let l=Dn(o)||(()=>new o);t({provide:o,useFactory:l,deps:Ye},o),t({provide:vu,useValue:o,multi:!0},o),t({provide:fr,useValue:()=>N(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;_u(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function _u(e,t){for(let n of e)au(n)&&(n=n.\u0275providers),Array.isArray(n)?_u(n,t):t(n)}var W0=X({provide:String,useValue:X});function Rh(e){return e!==null&&typeof e=="object"&&W0 in e}function Z0(e){return!!(e&&e.useExisting)}function Q0(e){return!!(e&&e.useFactory)}function lr(e){return typeof e=="function"}function Ph(e){return!!e.useClass}var si=new w(""),Qs={},yh={},Gl;function ai(){return Gl===void 0&&(Gl=new Jo),Gl}var ie=class{},ur=class extends ie{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Jl(t,s=>this.processProvider(s)),this.records.set(ii,Zr(void 0,this)),o.has("environment")&&this.records.set(ie,Zr(void 0,this));let i=this.records.get(si);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(vu,Ye,{self:!0}))}retrieve(t,n){let r=cr(n)||0;try{return this.get(t,ar,r)}catch(o){if(Wr(o))return o;throw o}}destroy(){Yo(this),this._destroyed=!0;let t=L(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),L(t)}}onDestroy(t){return Yo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Yo(this);let n=Pt(this),r=$e(void 0),o;try{return t()}finally{Pt(n),$e(r)}}get(t,n=ar,r){if(Yo(this),t.hasOwnProperty(vh))return t[vh](this);let o=cr(r),i,s=Pt(this),a=$e(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=eb(t)&&ri(t);u&&this.injectableDefInScope(u)?l=Zr(Kl(t),Qs):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?ai():this.parent;return n=o&8&&n===ar?null:n,c.get(t,n)}catch(c){let l=B0(c);throw l===-200||l===-201?new C(l,null):c}finally{$e(a),Pt(s)}}resolveInjectorInitializers(){let t=L(null),n=Pt(this),r=$e(void 0),o;try{let i=this.get(fr,Ye,{self:!0});for(let s of i)s()}finally{Pt(n),$e(r),L(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Te(t);let n=lr(t)?t:Te(t&&t.provide),r=K0(t);if(!lr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Zr(void 0,Qs,!0),o.factory=()=>Yl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=L(null);try{if(n.value===yh)throw hu("");return n.value===Qs&&(n.value=yh,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&X0(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{L(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Te(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Kl(e){let t=ri(e),n=t!==null?t.factory:Dn(e);if(n!==null)return n;if(e instanceof w)throw new C(-204,!1);if(e instanceof Function)return Y0(e);throw new C(-204,!1)}function Y0(e){if(e.length>0)throw new C(-204,!1);let n=L0(e);return n!==null?()=>n.factory(e):()=>new e}function K0(e){if(Rh(e))return Zr(void 0,e.useValue);{let t=bu(e);return Zr(t,Qs)}}function bu(e,t,n){let r;if(lr(e)){let o=Te(e);return Dn(o)||Kl(o)}else if(Rh(e))r=()=>Te(e.useValue);else if(Q0(e))r=()=>e.useFactory(...Yl(e.deps||[]));else if(Z0(e))r=(o,i)=>N(Te(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Te(e&&(e.useClass||e.provide));if(J0(e))r=()=>new o(...Yl(e.deps));else return Dn(o)||Kl(o)}return r}function Yo(e){if(e.destroyed)throw new C(-205,!1)}function Zr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function J0(e){return!!e.deps}function X0(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function eb(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Jl(e,t){for(let n of e)Array.isArray(n)?Jl(n,t):n&&au(n)?Jl(n.\u0275providers,t):t(n)}function Ie(e,t){let n;e instanceof ur?(Yo(e),n=e):n=new Ql(e);let r,o=Pt(n),i=$e(void 0);try{return t()}finally{Pt(o),$e(i)}}function kh(){return Ih()!==void 0||Zs()!=null}var Et=0,T=1,F=2,we=3,at=4,ct=5,ci=6,Yr=7,ke=8,An=9,jt=10,se=11,Kr=12,Cu=13,pr=14,lt=15,Nn=16,hr=17,Vt=18,en=19,Du=20,Xt=21,aa=22,En=23,Ke=24,ca=25,On=26,Ae=27,Fh=1;var Rn=7,li=8,gr=9,Fe=10;function Bt(e){return Array.isArray(e)&&typeof e[Fh]=="object"}function ut(e){return Array.isArray(e)&&e[Fh]===!0}function Eu(e){return(e.flags&4)!==0}function tn(e){return e.componentOffset>-1}function Jr(e){return(e.flags&1)===1}function Ut(e){return!!e.template}function Xr(e){return(e[F]&512)!==0}function mr(e){return(e[F]&256)===256}var wu="svg",Lh="math";function dt(e){for(;Array.isArray(e);)e=e[Et];return e}function Iu(e,t){return dt(t[e])}function wt(e,t){return dt(t[e.index])}function la(e,t){return e.data[t]}function xu(e,t){return e[t]}function Mu(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Je(e,t){let n=t[e];return Bt(n)?n:n[Et]}function jh(e){return(e[F]&4)===4}function ua(e){return(e[F]&128)===128}function Vh(e){return ut(e[we])}function ui(e,t){return t==null?null:e[t]}function Su(e){e[hr]=0}function Tu(e){e[F]&1024||(e[F]|=1024,ua(e)&&eo(e))}function Bh(e,t){for(;e>0;)t=t[pr],e--;return t}function di(e){return!!(e[F]&9216||e[Ke]?.dirty)}function da(e){e[jt].changeDetectionScheduler?.notify(8),e[F]&64&&(e[F]|=1024),di(e)&&eo(e)}function eo(e){e[jt].changeDetectionScheduler?.notify(0);let t=wn(e);for(;t!==null&&!(t[F]&8192||(t[F]|=8192,!ua(t)));)t=wn(t)}function Au(e,t){if(mr(e))throw new C(911,!1);e[Xt]===null&&(e[Xt]=[]),e[Xt].push(t)}function Uh(e,t){if(e[Xt]===null)return;let n=e[Xt].indexOf(t);n!==-1&&e[Xt].splice(n,1)}function wn(e){let t=e[we];return ut(t)?t[we]:t}function Nu(e){return e[Yr]??=[]}function Ou(e){return e.cleanup??=[]}function Hh(e,t,n,r){let o=Nu(t);o.push(n),e.firstCreatePass&&Ou(e).push(r,o.length-1)}var B={lFrame:og(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Xl=!1;function $h(){return B.lFrame.elementDepthCount}function zh(){B.lFrame.elementDepthCount++}function qh(){B.lFrame.elementDepthCount--}function fa(){return B.bindingsEnabled}function Gh(){return B.skipHydrationRootTNode!==null}function Wh(e){return B.skipHydrationRootTNode===e}function Zh(){B.skipHydrationRootTNode=null}function z(){return B.lFrame.lView}function Ne(){return B.lFrame.tView}function Q(e){return B.lFrame.contextLView=e,e[ke]}function Y(e){return B.lFrame.contextLView=null,e}function Le(){let e=Ru();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ru(){return B.lFrame.currentTNode}function Qh(){let e=B.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function to(e,t){let n=B.lFrame;n.currentTNode=e,n.isParent=t}function Pu(){return B.lFrame.isParent}function Yh(){B.lFrame.isParent=!1}function Kh(){return B.lFrame.contextLView}function ku(){return Xl}function Xo(e){let t=Xl;return Xl=e,t}function Fu(){let e=B.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Lu(){return B.lFrame.bindingIndex}function Jh(e){return B.lFrame.bindingIndex=e}function fi(){return B.lFrame.bindingIndex++}function pa(e){let t=B.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Xh(){return B.lFrame.inI18n}function eg(e,t){let n=B.lFrame;n.bindingIndex=n.bindingRootIndex=e,ha(t)}function tg(){return B.lFrame.currentDirectiveIndex}function ha(e){B.lFrame.currentDirectiveIndex=e}function ng(e){let t=B.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ju(){return B.lFrame.currentQueryIndex}function ga(e){B.lFrame.currentQueryIndex=e}function tb(e){let t=e[T];return t.type===2?t.declTNode:t.type===1?e[ct]:null}function Vu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=tb(i),o===null||(i=i[pr],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=B.lFrame=rg();return r.currentTNode=t,r.lView=e,!0}function ma(e){let t=rg(),n=e[T];B.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function rg(){let e=B.lFrame,t=e===null?null:e.child;return t===null?og(e):t}function og(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function ig(){let e=B.lFrame;return B.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Bu=ig;function va(){let e=ig();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function sg(e){return(B.lFrame.contextLView=Bh(e,B.lFrame.contextLView))[ke]}function nn(){return B.lFrame.selectedIndex}function Pn(e){B.lFrame.selectedIndex=e}function ya(){let e=B.lFrame;return la(e.tView,e.selectedIndex)}function _a(){B.lFrame.currentNamespace=wu}function ba(){nb()}function nb(){B.lFrame.currentNamespace=null}function ag(){return B.lFrame.currentNamespace}var cg=!0;function Ca(){return cg}function pi(e){cg=e}function eu(e,t=null,n=null,r){let o=Uu(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uu(e,t=null,n=null,r,o=new Set){let i=[n||Ye,Nh(e)],s;return new ur(i,t||ai(),s||null,o)}var ze=class e{static THROW_IF_NOT_FOUND=ar;static NULL=new Jo;static create(t,n){if(Array.isArray(t))return eu({name:""},n,t,"");{let r=t.name??"";return eu({name:r},t.parent,t.providers,r)}}static \u0275prov=I({token:e,providedIn:"any",factory:()=>N(ii)});static __NG_ELEMENT_ID__=-1},de=new w(""),qe=(()=>{class e{static __NG_ELEMENT_ID__=rb;static __NG_ENV_ID__=n=>n}return e})(),Js=class extends qe{_lView;constructor(t){super(),this._lView=t}get destroyed(){return mr(this._lView)}onDestroy(t){let n=this._lView;return Au(n,t),()=>Uh(n,t)}};function rb(){return new Js(z())}var lg=!1,ug=new w(""),rn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Me(!1);debugTaskTracker=y(ug,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new q(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})(),tu=class extends ge{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,kh()&&(this.destroyRef=y(qe,{optional:!0})??void 0,this.pendingTasks=y(rn,{optional:!0})??void 0)}emit(t){let n=L(null);try{super.next(t)}finally{L(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof _e&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},me=tu;function Xs(...e){}function Hu(e){let t,n;function r(){e=Xs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function dg(e){return queueMicrotask(()=>e()),()=>{e=Xs}}var $u="isAngularZone",ei=$u+"_ID",ob=0,Ge=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new me(!1);onMicrotaskEmpty=new me(!1);onStable=new me(!1);onError=new me(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=lg}=t;if(typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,ab(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get($u)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,ib,Xs,Xs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},ib={};function zu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function sb(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Hu(()=>{e.callbackScheduled=!1,nu(e),e.isCheckStableRunning=!0,zu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),nu(e)}function ab(e){let t=()=>{sb(e)},n=ob++;e._inner=e._inner.fork({name:"angular",properties:{[$u]:!0,[ei]:n,[ei+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(cb(c))return r.invokeTask(i,s,a,c);try{return _h(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),bh(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return _h(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!lb(c)&&t(),bh(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,nu(e),zu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function nu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function _h(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bh(e){e._nesting--,zu(e)}var ti=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new me;onMicrotaskEmpty=new me;onStable=new me;onError=new me;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function cb(e){return fg(e,"__ignore_ng_zone__")}function lb(e){return fg(e,"__scheduler_tick__")}function fg(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var kt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Xe=new w("",{factory:()=>{let e=y(Ge),t=y(ie),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(kt),n.handleError(r))})}}}),pg={provide:fr,useValue:()=>{let e=y(kt,{optional:!0})},multi:!0},ub=new w("",{factory:()=>{let e=y(de).defaultView;if(!e)return;let t=y(Xe),n=i=>{t(i.reason),i.preventDefault()},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault()},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(o):o(),y(qe).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function qu(){return Tn([Ah(()=>{y(ub)})])}function P(e,t){let[n,r,o]=Sl(e,t?.equal),i=n,s=i[Ee];return i.set=r,i.update=o,i.asReadonly=Da.bind(i),i}function Da(){let e=this[Ee];if(e.readonlyFn===void 0){let t=()=>this();t[Ee]=e,e.readonlyFn=t}return e.readonlyFn}var Ea=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=db}return e})();function db(){return new Ea(z(),Le())}var In=class{},hi=new w("",{factory:()=>!0});var Gu=new w(""),no=(()=>{class e{internalPendingTasks=y(rn);scheduler=y(In);errorHandler=y(Xe);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})(),wa=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:()=>new ru})}return e})(),ru=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},ea=class{[Ee];constructor(t){this[Ee]=t}destroy(){this[Ee].destroy()}};function gi(e,t){let n=t?.injector??y(ze),r=t?.manualCleanup!==!0?n.get(qe):null,o,i=n.get(Ea,null,{optional:!0}),s=n.get(In);return i!==null?(o=hb(i.view,s,e),r instanceof Js&&r._lView===i.view&&(r=null)):o=gb(e,n.get(wa),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new ea(o)}var hg=R(b({},Tl),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Xo(!1);try{Al(this)}finally{Xo(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=L(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],L(e)}}}),fb=R(b({},hg),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(er(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),pb=R(b({},hg),{consumerMarkedDirty(){this.view[F]|=8192,eo(this.view),this.notifier.notify(13)},destroy(){if(er(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[En]?.delete(this)}});function hb(e,t,n){let r=Object.create(pb);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=gg(r,n),e[En]??=new Set,e[En].add(r),r.consumerMarkedDirty(r),r}function gb(e,t,n){let r=Object.create(fb);return r.fn=gg(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function gg(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function wi(e){return{toString:e}.toString()}function Cb(e){return typeof e=="function"}function Jg(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Ra=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},sn=(()=>{let e=()=>Xg;return e.ngInherit=!0,e})();function Xg(e){return e.type.prototype.ngOnChanges&&(e.setInput=Eb),Db}function Db(){let e=tm(this),t=e?.current;if(t){let n=e.previous;if(n===Sn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Eb(e,t,n,r,o){let i=this.declaredInputs[r],s=tm(e)||wb(e,{previous:Sn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Ra(l&&l.currentValue,n,c===Sn),Jg(e,t,o,n)}var em="__ngSimpleChanges__";function tm(e){return e[em]||null}function wb(e,t){return e[em]=t}var mg=[];var te=function(e,t=null,n){for(let r=0;r<mg.length;r++){let o=mg[r];o(e,t,n)}},K=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(K||{});function Ib(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Xg(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function nm(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Ta(e,t,n){rm(e,t,3,n)}function Aa(e,t,n,r){(e[F]&3)===n&&rm(e,t,n,r)}function Wu(e,t){let n=e[F];(n&3)===t&&(n&=16383,n+=1,e[F]=n)}function rm(e,t,n,r){let o=r!==void 0?e[hr]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[hr]+=65536),(a<i||i==-1)&&(xb(e,n,t,c),e[hr]=(e[hr]&4294901760)+c+2),c++}function vg(e,t){te(K.LifecycleHookStart,e,t);let n=L(null);try{t.call(e)}finally{L(n),te(K.LifecycleHookEnd,e,t)}}function xb(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[F]>>14<e[hr]>>16&&(e[F]&3)===t&&(e[F]+=16384,vg(a,i)):vg(a,i)}var oo=-1,yr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function Mb(e){return(e.flags&8)!==0}function Sb(e){return(e.flags&16)!==0}function Tb(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Ab(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function om(e){return e===3||e===4||e===6}function Ab(e){return e.charCodeAt(0)===64}function _i(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?yg(e,n,o,null,t[++r]):yg(e,n,o,null,null))}}return e}function yg(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function im(e){return e!==oo}function Pa(e){return e&32767}function Nb(e){return e>>16}function ka(e,t){let n=Nb(e),r=t;for(;n>0;)r=r[pr],n--;return r}var od=!0;function Fa(e){let t=od;return od=e,t}var Ob=256,sm=Ob-1,am=5,Rb=0,Ht={};function Pb(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(dr)&&(r=n[dr]),r==null&&(r=n[dr]=Rb++);let o=r&sm,i=1<<o;t.data[e+(o>>am)]|=i}function La(e,t){let n=cm(e,t);if(n!==-1)return n;let r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Zu(r.data,e),Zu(t,null),Zu(r.blueprint,null));let o=Nd(e,t),i=e.injectorIndex;if(im(o)){let s=Pa(o),a=ka(o,t),c=a[T].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Zu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Nd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=pm(o),r===null)return oo;if(n++,o=o[pr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return oo}function id(e,t,n){Pb(e,t,n)}function kb(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(om(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function lm(e,t,n){if(n&8||e!==void 0)return e;oa(t,"NodeInjector")}function um(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[An],i=$e(void 0);try{return o?o.get(t,r,n&8):gu(t,r,n&8)}finally{$e(i)}}return lm(r,t,n)}function dm(e,t,n,r=0,o){if(e!==null){if(t[F]&2048&&!(r&2)){let s=Vb(e,t,n,r,Ht);if(s!==Ht)return s}let i=fm(e,t,n,r,Ht);if(i!==Ht)return i}return um(t,n,r,o)}function fm(e,t,n,r,o){let i=Lb(n);if(typeof i=="function"){if(!Vu(t,e,r))return r&1?lm(o,n,r):um(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))oa(n);else return s}finally{Bu()}}else if(typeof i=="number"){let s=null,a=cm(e,t),c=oo,l=r&1?t[lt][ct]:null;for((a===-1||r&4)&&(c=a===-1?Nd(e,t):t[a+8],c===oo||!bg(r,!1)?a=-1:(s=t[T],a=Pa(c),t=ka(c,t)));a!==-1;){let u=t[T];if(_g(i,a,u.data)){let d=Fb(a,t,n,s,r,l);if(d!==Ht)return d}c=t[a+8],c!==oo&&bg(r,t[T].data[a+8]===l)&&_g(i,a,t)?(s=u,a=Pa(c),t=ka(c,t)):a=-1}}return o}function Fb(e,t,n,r,o,i){let s=t[T],a=s.data[e+8],c=r==null?tn(a)&&od:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Na(a,s,n,c,l);return u!==null?bi(t,s,u,a,o):Ht}function Na(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,v=o?a+u:l;for(let m=d;m<v;m++){let D=s[m];if(m<c&&n===D||m>=c&&D.type===n)return m}if(o){let m=s[c];if(m&&Ut(m)&&m.type===n)return c}return null}function bi(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof yr){let a=i;if(a.resolving)throw hu("");let c=Fa(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?$e(a.injectImpl):null,v=Vu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Ib(n,s[n],t)}finally{d!==null&&$e(d),Fa(c),a.resolving=!1,Bu()}}return i}function Lb(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(dr)?e[dr]:void 0;return typeof t=="number"?t>=0?t&sm:jb:t}function _g(e,t,n){let r=1<<e;return!!(n[t+(e>>am)]&r)}function bg(e,t){return!(e&2)&&!(e&1&&t)}var vr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return dm(this._tNode,this._lView,t,cr(r),n)}};function jb(){return new vr(Le(),z())}function an(e){return wi(()=>{let t=e.prototype.constructor,n=t[Ko]||sd(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Ko]||sd(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function sd(e){return iu(e)?()=>{let t=sd(Te(e));return t&&t()}:Dn(e)}function Vb(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[F]&2048&&!Xr(s);){let a=fm(i,s,n,r|2,Ht);if(a!==Ht)return a;let c=i.parent;if(!c){let l=s[Du];if(l){let u=l.get(n,Ht,r&-5);if(u!==Ht)return u}c=pm(s),s=s[pr]}i=c}return o}function pm(e){let t=e[T],n=t.type;return n===2?t.declTNode:n===1?e[ct]:null}function Ii(e){return kb(Le(),e)}function Bb(){return co(Le(),z())}function co(e,t){return new Mt(wt(e,t))}var Mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Bb}return e})();function Ub(e){return e instanceof Mt?e.nativeElement:e}function Hb(){return this._results[Symbol.iterator]()}var ja=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 ge}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Mh(t);(this._changesDetected=!xh(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Hb};function hm(e){return(e.flags&128)===128}var Od=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Od||{}),gm=new Map,$b=0;function zb(){return $b++}function qb(e){gm.set(e[en],e)}function ad(e){gm.delete(e[en])}var Cg="__ngContext__";function io(e,t){Bt(t)?(e[Cg]=t[en],qb(t)):e[Cg]=t}function mm(e){return ym(e[Kr])}function vm(e){return ym(e[at])}function ym(e){for(;e!==null&&!ut(e);)e=e[at];return e}var cd;function Rd(e){cd=e}function _m(){if(cd!==void 0)return cd;if(typeof document<"u")return document;throw new C(210,!1)}var Wa=new w("",{factory:()=>Gb}),Gb="ng";var Za=new w(""),xi=new w("",{providedIn:"platform",factory:()=>"unknown"});var Qa=new w("",{factory:()=>y(de).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var bm=!1,Cm=new w("",{factory:()=>bm});var Wb=(e,t,n,r)=>{};function Zb(e,t,n,r){Wb(e,t,n,r)}function Pd(e){return(e.flags&32)===32}var Qb=()=>null;function Dm(e,t,n=!1){return Qb(e,t,n)}function Em(e,t){let n=e.contentQueries;if(n!==null){let r=L(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ga(i),a.contentQueries(2,t[s],s)}}}finally{L(r)}}}function ld(e,t,n){ga(0);let r=L(null);try{t(e,n)}finally{L(r)}}function kd(e,t,n){if(Eu(t)){let r=L(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{L(r)}}}var xt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(xt||{});var Ia;function Yb(){if(Ia===void 0&&(Ia=null,Ct.trustedTypes))try{Ia=Ct.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ia}function Ya(e){return Yb()?.createHTML(e)||e}var xa;function wm(){if(xa===void 0&&(xa=null,Ct.trustedTypes))try{xa=Ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return xa}function Dg(e){return wm()?.createHTML(e)||e}function Eg(e){return wm()?.createScriptURL(e)||e}var Va=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ta})`}};function Mi(e){return e instanceof Va?e.changingThisBreaksApplicationSecurity:e}function Ka(e,t){let n=Im(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ta})`)}return n===t}function Im(e){return e instanceof Va&&e.getTypeName()||null}function Kb(e){let t=new dd(e);return Jb()?new ud(t):t}var ud=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Ya(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},dd=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Ya(t),n}};function Jb(){try{return!!new window.DOMParser().parseFromString(Ya(""),"text/html")}catch{return!1}}var Xb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Fd(e){return e=String(e),e.match(Xb)?e:"unsafe:"+e}function cn(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Si(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var xm=cn("area,br,col,hr,img,wbr"),Mm=cn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sm=cn("rp,rt"),eC=Si(Sm,Mm),tC=Si(Mm,cn("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")),nC=Si(Sm,cn("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")),wg=Si(xm,tC,nC,eC),Tm=cn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rC=cn("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"),oC=cn("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"),iC=Si(Tm,rC,oC),sC=cn("script,style,template"),fd=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=lC(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=cC(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Ig(t).toLowerCase();if(!wg.hasOwnProperty(n))return this.sanitizedSomething=!0,!sC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!iC.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;Tm[a]&&(c=Fd(c)),this.buf.push(" ",s,'="',xg(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=Ig(t).toLowerCase();wg.hasOwnProperty(n)&&!xm.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(xg(t))}};function aC(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function cC(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Am(t);return t}function lC(e){let t=e.firstChild;if(t&&aC(e,t))throw Am(t);return t}function Ig(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Am(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var uC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dC=/([^\#-~ |!])/g;function xg(e){return e.replace(/&/g,"&amp;").replace(uC,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(dC,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Ma;function Nm(e,t){let n=null;try{Ma=Ma||Kb(e);let r=t?String(t):"";n=Ma.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Ma.getInertBodyElement(r)}while(r!==i);let a=new fd().sanitizeChildren(Mg(n)||n);return Ya(a)}finally{if(n){let r=Mg(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Mg(e){return"content"in e&&fC(e)?e.content:null}function fC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var pC=/^>|^->|<!--|-->|--!>|<!-$/g,hC=/(<|>)/g,gC="\u200B$1\u200B";function mC(e){return e.replace(pC,t=>t.replace(hC,gC))}function vC(e,t){return e.createText(t)}function yC(e,t,n){e.setValue(t,n)}function _C(e,t){return e.createComment(mC(t))}function Om(e,t,n){return e.createElement(t,n)}function Ba(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Rm(e,t,n){e.appendChild(t,n)}function Sg(e,t,n,r,o){r!==null?Ba(e,t,n,r,o):Rm(e,t,n)}function bC(e,t,n,r){e.removeChild(null,t,n,r)}function CC(e,t,n){e.setAttribute(t,"style",n)}function DC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Pm(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Tb(e,t,r),o!==null&&DC(e,t,o),i!==null&&CC(e,t,i)}var Ti=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(Ti||{});function Ln(e){let t=jd();return t?Dg(t.sanitize(Ti.HTML,e)||""):Ka(e,"HTML")?Dg(Mi(e)):Nm(_m(),Lt(e))}function fe(e){let t=jd();return t?t.sanitize(Ti.URL,e)||"":Ka(e,"URL")?Mi(e):Fd(Lt(e))}function km(e){let t=jd();if(t)return Eg(t.sanitize(Ti.RESOURCE_URL,e)||"");if(Ka(e,"ResourceURL"))return Eg(Mi(e));throw new C(904,!1)}var EC=new Set(["embed","frame","iframe","media","script"]),wC=new Set(["base","link","script"]);function IC(e,t){return t==="src"&&EC.has(e)||t==="href"&&wC.has(e)||t==="xlink:href"&&e==="script"?km:fe}function Ld(e,t,n){return IC(t,n)(e)}function jd(){let e=z();return e&&e[jt].sanitizer}function lo(e){return e.ownerDocument.defaultView}function Fm(e){return e instanceof Function?e():e}function xC(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Lm="ng-template";function MC(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&xC(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Vd(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Vd(e){return e.type===4&&e.value!==Lm}function SC(e,t,n){let r=e.type===4&&!n?Lm:e.value;return t===r}function TC(e,t,n){let r=4,o=e.attrs,i=o!==null?OC(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!It(r)&&!It(c))return!1;if(s&&It(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!SC(e,c,n)||c===""&&t.length===1){if(It(r))return!1;s=!0}}else if(r&8){if(o===null||!MC(e,o,c,n)){if(It(r))return!1;s=!0}}else{let l=t[++a],u=AC(c,o,Vd(e),n);if(u===-1){if(It(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(It(r))return!1;s=!0}}}}return It(r)||s}function It(e){return(e&1)===0}function AC(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return RC(t,e)}function NC(e,t,n=!1){for(let r=0;r<t.length;r++)if(TC(e,t[r],n))return!0;return!1}function OC(e){for(let t=0;t<e.length;t++){let n=e[t];if(om(n))return t}return e.length}function RC(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Tg(e,t){return e?":not("+t.trim()+")":t}function PC(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!It(s)&&(t+=Tg(i,o),o=""),r=s,i=i||!It(r);n++}return o!==""&&(t+=Tg(i,o)),t}function kC(e){return e.map(PC).join(",")}function FC(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!It(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var et={};function Bd(e,t,n,r,o,i,s,a,c,l,u){let d=Ae+r,v=d+o,m=LC(d,v),D=typeof l=="function"?l():l;return m[T]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:v,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 i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:D,incompleteFirstPass:!1,ssrId:u}}function LC(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:et);return n}function jC(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Bd(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ud(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Et]=o,d[F]=r|4|128|8|64|1024,(l!==null||e&&e[F]&2048)&&(d[F]|=2048),Su(d),d[we]=d[pr]=e,d[ke]=n,d[jt]=s||e&&e[jt],d[se]=a||e&&e[se],d[An]=c||e&&e[An]||null,d[ct]=i,d[en]=zb(),d[ci]=u,d[Du]=l,d[lt]=t.type==2?e[lt]:d,d}function VC(e,t,n){let r=wt(t,e),o=jC(n),i=e[jt].rendererFactory,s=Hd(e,Ud(e,o,null,jm(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function jm(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Vm(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Hd(e,t){return e[Kr]?e[Cu][at]=t:e[Kr]=t,e[Cu]=t,t}function h(e=1){Bm(Ne(),z(),nn()+e,!1)}function Bm(e,t,n,r){if(!r)if((t[F]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ta(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Aa(t,i,0,n)}Pn(n)}var Ja=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ja||{});function pd(e,t,n,r){let o=L(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ja.SignalBased)!==0&&(c=t[i][Ee]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Jg(t,c,i,r)}finally{L(o)}}var $t=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})($t||{}),BC;function $d(e,t){return BC(e,t)}var qk=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var hd=new WeakMap,gd=new WeakSet;function UC(e,t){let n=hd.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),gd.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function HC(e,t){let n=hd.get(e);n?n.includes(t)||n.push(t):hd.set(e,[t])}var _r=new Set,zd=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(zd||{}),Er=new w(""),Ag=new Set;function qd(e){Ag.has(e)||(Ag.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Um=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})();var $C=new w("",{factory:()=>{let e=y(ie),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Hm(e,t,n){let r=e.get($C);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function zC(e,t){for(let[n,r]of t)Hm(e,r.animateFns)}function Ng(e,t,n,r){let o=e?.[On]?.enter;t!==null&&o&&o.has(n.index)&&zC(r,o)}function Og(e,t,n,r){try{n.get(ii)}catch{return r(!1)}let o=e?.[On],i=qC(e,t,o);if(i.size===0){let s=!1;if(e){let a=[];Xa(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&_r.add(e[en]),Hm(n,()=>GC(e,t,o||void 0,i,r),o||void 0)}function qC(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[T].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent}}return r}function GC(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(e&&Xa(e,t,i),i.length>0){let s=n||e?.[On];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),WC(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&_r.delete(e[en]),o(!0)})}else e&&_r.delete(e[en]),o(!1)}function Xa(e,t,n){if(tn(t)){let o=Je(t.index,e);Rg(o,n)}else if(t.type&12){let o=e[t.index];if(ut(o))for(let i=Fe;i<o.length;i++){let s=o[i];Rg(s,n)}}let r=t.child;for(;r;)Xa(e,r,n),r=r.next}function Rg(e,t){let n=e[On];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s)}let r=e[T].firstChild;for(;r;)Xa(e,r,t),r=r.next}function WC(e,t,n){t.then(()=>{e[On]?.running===t&&(e[On].running=void 0,_r.delete(e[en])),n(!0)})}function ro(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;ut(o)?c=o:Bt(o)&&(l=!0,o=o[Et]);let u=dt(o);e===0&&r!==null?(Ng(a,r,i,n),s==null?Rm(t,r,u):Ba(t,r,u,s||null,!0)):e===1&&r!==null?(Ng(a,r,i,n),Ba(t,r,u,s||null,!0),UC(i,u)):e===2?(a?.[On]?.leave?.has(i.index)&&HC(i,u),Og(a,i,n,d=>{if(gd.has(u)){gd.delete(u);return}bC(t,u,l,d)})):e===3&&Og(a,i,n,()=>{t.destroyNode(u)}),c!=null&&iD(t,e,n,c,i,r,s)}}function ZC(e,t){$m(e,t),t[Et]=null,t[ct]=null}function QC(e,t,n,r,o,i){r[Et]=o,r[ct]=t,ec(e,r,n,1,o,i)}function $m(e,t){t[jt].changeDetectionScheduler?.notify(9),ec(e,t,t[se],2,null,null)}function YC(e){let t=e[Kr];if(!t)return Qu(e[T],e);for(;t;){let n=null;if(Bt(t))n=t[Kr];else{let r=t[Fe];r&&(n=r)}if(!n){for(;t&&!t[at]&&t!==e;)Bt(t)&&Qu(t[T],t),t=t[we];t===null&&(t=e),Bt(t)&&Qu(t[T],t),n=t&&t[at]}t=n}}function Gd(e,t){let n=e[gr],r=n.indexOf(t);n.splice(r,1)}function zm(e,t){if(mr(t))return;let n=t[se];n.destroyNode&&ec(e,t,n,3,null,null),YC(t)}function Qu(e,t){if(mr(t))return;let n=L(null);try{t[F]&=-129,t[F]|=256,t[Ke]&&er(t[Ke]),JC(e,t),KC(e,t),t[T].type===1&&t[se].destroy();let r=t[Nn];if(r!==null&&ut(t[we])){r!==t[we]&&Gd(r,t);let o=t[Vt];o!==null&&o.detachView(e)}ad(t)}finally{L(n)}}function KC(e,t){let n=e.cleanup,r=t[Yr];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Yr]=null);let o=t[Xt];if(o!==null){t[Xt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[En];if(i!==null){t[En]=null;for(let s of i)s.destroy()}}function JC(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof yr)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];te(K.LifecycleHookStart,a,c);try{c.call(a)}finally{te(K.LifecycleHookEnd,a,c)}}else{te(K.LifecycleHookStart,o,i);try{i.call(o)}finally{te(K.LifecycleHookEnd,o,i)}}}}}function XC(e,t,n){return eD(e,t.parent,n)}function eD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Et];if(tn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===xt.None||o===xt.Emulated)return null}return wt(r,n)}function tD(e,t,n){return rD(e,t,n)}function nD(e,t,n){return e.type&40?wt(e,n):null}var rD=nD,Pg;function Wd(e,t,n,r){let o=XC(e,r,t),i=t[se],s=r.parent||t[ct],a=tD(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Sg(i,o,n[c],a,!1);else Sg(i,o,n,a,!1);Pg!==void 0&&Pg(i,r,t,n,o)}function vi(e,t){if(t!==null){let n=t.type;if(n&3)return wt(t,e);if(n&4)return md(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return vi(e,r);{let o=e[t.index];return ut(o)?md(-1,o):dt(o)}}else{if(n&128)return vi(e,t.next);if(n&32)return $d(t,e)()||dt(e[t.index]);{let r=qm(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=wn(e[lt]);return vi(o,r)}else return vi(e,t.next)}}}return null}function qm(e,t){if(t!==null){let r=e[lt][ct],o=t.projection;return r.projection[o]}return null}function md(e,t){let n=Fe+e+1;if(n<t.length){let r=t[n],o=r[T].firstChild;if(o!==null)return vi(r,o)}return t[Rn]}function Zd(e,t,n,r,o,i,s){for(;n!=null;){let a=r[An];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&io(dt(c),r),n.flags|=2),!Pd(n))if(l&8)Zd(e,t,n.child,r,o,i,!1),ro(t,e,a,o,c,n,i,r);else if(l&32){let u=$d(n,r),d;for(;d=u();)ro(t,e,a,o,d,n,i,r);ro(t,e,a,o,c,n,i,r)}else l&16?oD(e,t,r,n,o,i):ro(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function ec(e,t,n,r,o,i){Zd(n,r,e.firstChild,t,o,i,!1)}function oD(e,t,n,r,o,i){let s=n[lt],c=s[ct].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];ro(t,e,n[An],o,u,r,i,n)}else{let l=c,u=s[we];hm(r)&&(l.flags|=128),Zd(e,t,l,u,o,i,!0)}}function iD(e,t,n,r,o,i,s){let a=r[Rn],c=dt(r);a!==c&&ro(t,e,n,i,a,o,s);for(let l=Fe;l<r.length;l++){let u=r[l];ec(u[T],u,e,t,i,a)}}function sD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:$t.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=$t.Important),e.setStyle(n,r,o,i))}}function Gm(e,t,n,r,o){let i=nn(),s=r&2;try{Pn(-1),s&&t.length>Ae&&Bm(e,t,Ae,!1);let a=s?K.TemplateUpdateStart:K.TemplateCreateStart;te(a,o,n),n(r,o)}finally{Pn(i);let a=s?K.TemplateUpdateEnd:K.TemplateCreateEnd;te(a,o,n)}}function tc(e,t,n){pD(e,t,n),(n.flags&64)===64&&hD(e,t,n)}function Qd(e,t,n=wt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function aD(e,t,n,r){let i=r.get(Cm,bm)||n===xt.ShadowDom||n===xt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return cD(s),s}function cD(e){lD(e)}var lD=()=>null;function uD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Wm(e,t,n,r,o,i){let s=t[T];if(Kd(e,s,t,n,r)){tn(e)&&fD(t,e.index);return}e.type&3&&(n=uD(n)),dD(e,t,n,r,o,i)}function dD(e,t,n,r,o,i){if(e.type&3){let s=wt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function fD(e,t){let n=Je(t,e);n[F]&16||(n[F]|=64)}function pD(e,t,n){let r=n.directiveStart,o=n.directiveEnd;tn(n)&&VC(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||La(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=bi(t,e,s,n);if(io(c,t),i!==null&&yD(t,s-r,c,a,n,i),Ut(a)){let l=Je(n.index,t);l[ke]=bi(t,e,s,n)}}}function hD(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=tg();try{Pn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ha(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&gD(c,l)}}finally{Pn(-1),ha(s)}}function gD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Yd(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];NC(t,i.selectors,!1)&&(r??=[],Ut(i)?r.unshift(i):r.push(i))}return r}function mD(e,t,n,r,o,i){let s=wt(e,t);vD(t[se],s,i,e.value,n,r,o)}function vD(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Lt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function yD(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];pd(r,n,c,l)}}function Zm(e,t,n,r,o){let i=Ae+n,s=t[T],a=o(s,t,e,r,n);t[i]=a,to(e,!0);let c=e.type===2;return c?(Pm(t[se],a,e),($h()===0||Jr(e))&&io(a,t),zh()):io(a,t),Ca()&&(!c||!Pd(e))&&Wd(s,t,a,e),e}function Qm(e){let t=e;return Pu()?Yh():(t=t.parent,to(t,!1)),t}function _D(e,t){let n=e[An];if(!n)return;let r;try{r=n.get(Xe,null)}catch{r=null}r?.(t)}function Kd(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];pd(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];pd(u,l,r,o),a=!0}return a}function bD(e,t){let n=Je(t,e),r=n[T];CD(r,n);let o=n[Et];o!==null&&n[ci]===null&&(n[ci]=Dm(o,n[An])),te(K.ComponentStart);try{Jd(r,n,n[ke])}finally{te(K.ComponentEnd,n[ke])}}function CD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Jd(e,t,n){ma(t);try{let r=e.viewQuery;r!==null&&ld(1,r,n);let o=e.template;o!==null&&Gm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Vt]?.finishViewCreation(e),e.staticContentQueries&&Em(e,t),e.staticViewQueries&&ld(2,e.viewQuery,n);let i=e.components;i!==null&&DD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[F]&=-5,va()}}function DD(e,t){for(let n=0;n<t.length;n++)bD(e,t[n])}function ED(e,t,n,r){let o=L(null);try{let i=t.tView,a=e[F]&4096?4096:16,c=Ud(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Nn]=l;let u=e[Vt];return u!==null&&(c[Vt]=u.createEmbeddedView(i)),Jd(i,c,n),c}finally{L(o)}}function kg(e,t){return!t||t.firstChild===null||hm(e)}function Ci(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(dt(i)),ut(i)&&Ym(i,r);let s=n.type;if(s&8)Ci(e,t,n.child,r);else if(s&32){let a=$d(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=qm(t,n);if(Array.isArray(a))r.push(...a);else{let c=wn(t[lt]);Ci(c[T],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Ym(e,t){for(let n=Fe;n<e.length;n++){let r=e[n],o=r[T].firstChild;o!==null&&Ci(r[T],r,o,t)}e[Rn]!==e[Et]&&t.push(e[Rn])}function Km(e){if(e[ca]!==null){for(let t of e[ca])t.impl.addSequence(t);e[ca].length=0}}var Jm=[];function wD(e){return e[Ke]??ID(e)}function ID(e){let t=Jm.pop()??Object.create(MD);return t.lView=e,t}function xD(e){e.lView[Ke]!==e&&(e.lView=null,Jm.push(e))}var MD=R(b({},yn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{eo(e.lView)},consumerOnSignalRead(){this.lView[Ke]=this}});function SD(e){let t=e[Ke]??Object.create(TD);return t.lView=e,t}var TD=R(b({},yn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=wn(e.lView);for(;t&&!Xm(t[T]);)t=wn(t);t&&Tu(t)},consumerOnSignalRead(){this.lView[Ke]=this}});function Xm(e){return e.type!==2}function ev(e){if(e[En]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[En])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[F]&8192)}}var AD=100;function tv(e,t=0){let r=e[jt].rendererFactory,o=!1;o||r.begin?.();try{ND(e,t)}finally{o||r.end?.()}}function ND(e,t){let n=ku();try{Xo(!0),vd(e,t);let r=0;for(;di(e);){if(r===AD)throw new C(103,!1);r++,vd(e,1)}}finally{Xo(n)}}function OD(e,t,n,r){if(mr(t))return;let o=t[F],i=!1,s=!1;ma(t);let a=!0,c=null,l=null;i||(Xm(e)?(l=wD(t),c=_n(l)):ys()===null?(a=!1,l=SD(t),c=_n(l)):t[Ke]&&(er(t[Ke]),t[Ke]=null));try{Su(t),Jh(e.bindingStartIndex),n!==null&&Gm(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let m=e.preOrderCheckHooks;m!==null&&Ta(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Aa(t,m,0,null),Wu(t,0)}if(s||RD(t),ev(t),nv(t,0),e.contentQueries!==null&&Em(e,t),!i)if(u){let m=e.contentCheckHooks;m!==null&&Ta(t,m)}else{let m=e.contentHooks;m!==null&&Aa(t,m,1),Wu(t,1)}kD(e,t);let d=e.components;d!==null&&ov(t,d,0);let v=e.viewQuery;if(v!==null&&ld(2,v,r),!i)if(u){let m=e.viewCheckHooks;m!==null&&Ta(t,m)}else{let m=e.viewHooks;m!==null&&Aa(t,m,2),Wu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[aa]){for(let m of t[aa])m();t[aa]=null}i||(Km(t),t[F]&=-73)}catch(u){throw i||eo(t),u}finally{l!==null&&(Xn(l,c),a&&xD(l)),va()}}function nv(e,t){for(let n=mm(e);n!==null;n=vm(n))for(let r=Fe;r<n.length;r++){let o=n[r];rv(o,t)}}function RD(e){for(let t=mm(e);t!==null;t=vm(t)){if(!(t[F]&2))continue;let n=t[gr];for(let r=0;r<n.length;r++){let o=n[r];Tu(o)}}}function PD(e,t,n){te(K.ComponentStart);let r=Je(t,e);try{rv(r,n)}finally{te(K.ComponentEnd,r[ke])}}function rv(e,t){ua(e)&&vd(e,t)}function vd(e,t){let r=e[T],o=e[F],i=e[Ke],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Uo(i)),s||=!1,i&&(i.dirty=!1),e[F]&=-9217,s)OD(r,e,r.template,e[ke]);else if(o&8192){let a=L(null);try{ev(e),nv(e,1);let c=r.components;c!==null&&ov(e,c,1),Km(e)}finally{L(a)}}}function ov(e,t,n){for(let r=0;r<t.length;r++)PD(e,t[r],n)}function kD(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Pn(~o);else{let i=o,s=n[++r],a=n[++r];eg(s,i);let c=t[i];te(K.HostBindingsUpdateStart,c);try{a(2,c)}finally{te(K.HostBindingsUpdateEnd,c)}}}}finally{Pn(-1)}}function Xd(e,t){let n=ku()?64:1088;for(e[jt].changeDetectionScheduler?.notify(t);e;){e[F]|=n;let r=wn(e);if(Xr(e)&&!r)return e;e=r}return null}function iv(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function FD(e,t,n,r=!0){let o=t[T];if(LD(o,t,e,n),r){let s=md(n,e),a=t[se],c=a.parentNode(e[Rn]);c!==null&&QC(o,e[ct],a,t,c,s)}let i=t[ci];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function yd(e,t){if(e.length<=Fe)return;let n=Fe+t,r=e[n];if(r){let o=r[Nn];o!==null&&o!==e&&Gd(o,r),t>0&&(e[n-1][at]=r[at]);let i=oi(e,Fe+t);ZC(r[T],r);let s=i[Vt];s!==null&&s.detachView(i[T]),r[we]=null,r[at]=null,r[F]&=-129}return r}function LD(e,t,n,r){let o=Fe+r,i=n.length;r>0&&(n[o-1][at]=t),r<i-Fe?(t[at]=n[o],mu(n,Fe+r,t)):(n.push(t),t[at]=null),t[we]=n;let s=t[Nn];s!==null&&n!==s&&sv(s,t);let a=t[Vt];a!==null&&a.insertView(e),da(t),t[F]|=128}function sv(e,t){let n=e[gr],r=t[we];if(Bt(r))e[F]|=2;else{let o=r[we][lt];t[lt]!==o&&(e[F]|=2)}n===null?e[gr]=[t]:n.push(t)}var kn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[T];return Ci(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ke]}set context(t){this._lView[ke]=t}get destroyed(){return mr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[we];if(ut(t)){let n=t[li],r=n?n.indexOf(this):-1;r>-1&&(yd(t,r),oi(n,r))}this._attachedToViewContainer=!1}zm(this._lView[T],this._lView)}onDestroy(t){Au(this._lView,t)}markForCheck(){Xd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[F]&=-129}reattach(){da(this._lView),this._lView[F]|=128}detectChanges(){this._lView[F]|=1024,tv(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Xr(this._lView),n=this._lView[Nn];n!==null&&!t&&Gd(n,this._lView),$m(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t;let n=Xr(this._lView),r=this._lView[Nn];r!==null&&!n&&sv(r,this._lView),da(this._lView)}};var Fn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=jD;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=ED(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new kn(i)}}return e})();function jD(){return nc(Le(),z())}function nc(e,t){return e.type&4?new Fn(t,e,co(e,t)):null}function ef(e,t,n,r,o){let i=e.data[t];if(i===null)i=VD(e,t,n,r,o),Xh()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Qh();i.injectorIndex=s===null?-1:s.injectorIndex}return to(i,!0),i}function VD(e,t,n,r,o){let i=Ru(),s=Pu(),a=s?i:i&&i.parent,c=e.data[t]=UD(e,a,n,t,r,o);return BD(e,c,i,s),c}function BD(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function UD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Gh()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var HD=()=>null;function Fg(e,t){return HD(e,t)}var av=class{},rc=class{},_d=class{resolveComponentFactory(t){throw new C(917,!1)}},Ai=class{static NULL=new _d},br=class{},wr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>$D()}return e})();function $D(){let e=z(),t=Le(),n=Je(t.index,e);return(Bt(n)?n:e)[se]}var cv=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:()=>null})}return e})();var Oa={},bd=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Oa,r);return o!==Oa||n===Oa?o:this.parentInjector.get(t,n,r)}};function Lg(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ou(o,a);else if(i==2){let c=a,l=t[++s];r=ou(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function k(e,t=0){let n=z();if(n===null)return N(e,t);let r=Le();return dm(r,n,Te(e),t)}function lv(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}GD(e,t,n,a,i,c,l)}i!==null&&r!==null&&zD(n,r,i)}function zD(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new C(-301,!1);r.push(t[o],i)}}function qD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function GD(e,t,n,r,o,i,s){let a=r.length,c=null;for(let v=0;v<a;v++){let m=r[v];c===null&&Ut(m)&&(c=m,qD(e,n,v)),id(La(n,t),e,m.type)}JD(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let v=0;v<a;v++){let m=r[v];m.providersResolver&&m.providersResolver(m)}let l=!1,u=!1,d=Vm(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let v=0;v<a;v++){let m=r[v];if(n.mergedAttrs=_i(n.mergedAttrs,m.hostAttrs),ZD(e,n,t,d,m),KD(d,m,o),s!==null&&s.has(m)){let[S,M]=s.get(m);n.directiveToIndex.set(m.type,[d,S+n.directiveStart,M+n.directiveStart])}else(i===null||!i.has(m))&&n.directiveToIndex.set(m.type,d);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let D=m.type.prototype;!l&&(D.ngOnChanges||D.ngOnInit||D.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(D.ngOnChanges||D.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}WD(e,n,i)}function WD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))jg(0,t,o,r),jg(1,t,o,r),Bg(t,r,!1);else{let i=n.get(o);Vg(0,t,i,r),Vg(1,t,i,r),Bg(t,r,!0)}}}function jg(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),uv(t,i)}}function Vg(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),uv(t,s)}}function uv(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Bg(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Vd(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function ZD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Dn(o.type,!0)),s=new yr(i,Ut(o),k,null);e.blueprint[r]=s,n[r]=s,QD(e,t,r,Vm(e,n,o.hostVars,et),o)}function QD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;YD(s)!=a&&s.push(a),s.push(n,r,i)}}function YD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function KD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ut(t)&&(n[""]=e)}}function JD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function tf(e,t,n,r,o,i,s,a){let c=t[T],l=c.consts,u=ui(l,s),d=ef(c,e,n,r,u);return i&&lv(c,t,d,ui(l,a),o),d.mergedAttrs=_i(d.mergedAttrs,d.attrs),d.attrs!==null&&Lg(d,d.attrs,!1),d.mergedAttrs!==null&&Lg(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function nf(e,t){nm(e,t),Eu(t)&&e.queries.elementEnd(t)}function rf(e){return fv(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function dv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function fv(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function pv(e,t,n){return e[t]=n}function on(e,t,n){if(n===et)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function of(e,t,n,r){let o=on(e,t,n);return on(e,t+1,r)||o}function XD(e,t,n,r,o){let i=of(e,t,n,r);return on(e,t+2,o)||i}function Yu(e,t,n){return function r(o){let i=tn(e)?Je(e.index,t):t;Xd(i,5);let s=t[ke],a=Ug(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Ug(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Ug(e,t,n,r){let o=L(null);try{return te(K.OutputStart,t,n),n(r)!==!1}catch(i){return _D(e,i),!1}finally{te(K.OutputEnd,t,n),L(o)}}function eE(e,t,n,r,o,i,s,a){let c=Jr(e),l=!1,u=null;if(!r&&c&&(u=nE(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=wt(e,n),v=r?r(d):d;Zb(n,v,i,a);let m=o.listen(v,i,a);if(!tE(i)){let D=r?S=>r(dt(S[e.index])):e.index;hv(D,t,n,i,a,m,!1)}}return l}function tE(e){return e.startsWith("animation")||e.startsWith("transition")}function nE(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Yr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function hv(e,t,n,r,o,i,s){let a=t.firstCreatePass?Ou(t):null,c=Nu(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function Hg(e,t,n,r,o,i){let s=t[n],a=t[T],l=a.data[n].outputs[r],d=s[l].subscribe(i);hv(e.index,a,t,o,i,d,!0)}var Cd=Symbol("BINDING");var Ua=class extends Ai{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Mn(t);return new so(n,this.ngModule)}};function rE(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ja.SignalBased)!==0};return o&&(i.transform=o),i})}function oE(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function iE(e,t,n){let r=t instanceof ie?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new bd(n,r):n}function sE(e){let t=e.get(br,null);if(t===null)throw new C(407,!1);let n=e.get(cv,null),r=e.get(In,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function aE(e,t){let n=gv(e);return Om(t,n,n==="svg"?wu:n==="math"?Lh:null)}function gv(e){return(e.selectors[0][0]||"div").toLowerCase()}var so=class extends rc{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=rE(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=oE(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=kC(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){te(K.DynamicComponentStart);let a=L(null);try{let c=this.componentDef,l=cE(r,c,s,i),u=iE(c,o||this.ngModule,t),d=sE(u),v=d.rendererFactory.createRenderer(null,c),m=r?aD(v,r,c.encapsulation,u):aE(c,v),D=s?.some($g)||i?.some(x=>typeof x!="function"&&x.bindings.some($g)),S=Ud(null,l,null,512|jm(c),null,null,d,v,u,null,Dm(m,u,!0));S[Ae]=m,ma(S);let M=null;try{let x=tf(Ae,S,2,"#host",()=>l.directiveRegistry,!0,0);Pm(v,m,x),io(m,S),tc(l,S,x),kd(l,x,S),nf(l,x),n!==void 0&&uE(x,this.ngContentSelectors,n),M=Je(x.index,S),S[ke]=M[ke],Jd(l,S,null)}catch(x){throw M!==null&&ad(M),ad(S),x}finally{te(K.DynamicComponentEnd),va()}return new Ha(this.componentType,S,!!D)}finally{L(a)}}};function cE(e,t,n,r){let o=e?["ng-version","21.2.1"]:FC(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Cd].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let v of d.bindings){a+=v[Cd].requiredVars;let m=u+1;v.create&&(v.targetIdx=m,(i??=[]).push(v)),v.update&&(v.targetIdx=m,(s??=[]).push(v))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,v=pu(d);c.push(v)}return Bd(0,null,lE(i,s),1,a,c,null,null,null,[o],null)}function lE(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function $g(e){let t=e[Cd].kind;return t==="input"||t==="twoWay"}var Ha=class extends av{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=la(n[T],Ae),this.location=co(this._tNode,n),this.instance=Je(this._tNode.index,n)[ke],this.hostView=this.changeDetectorRef=new kn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Kd(r,o[T],o,t,n);this.previousInputValues.set(t,n);let s=Je(r.index,o);Xd(s,1)}get injector(){return new vr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function uE(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var ln=(()=>{class e{static __NG_ELEMENT_ID__=dE}return e})();function dE(){let e=Le();return vv(e,z())}var fE=ln,mv=class extends fE{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return co(this._hostTNode,this._hostLView)}get injector(){return new vr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Nd(this._hostTNode,this._hostLView);if(im(t)){let n=ka(t,this._hostLView),r=Pa(t),o=n[T].data[r+8];return new vr(o,n)}else return new vr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zg(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Fe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Fg(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,kg(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!Cb(t),l;if(c)l=n;else{let M=n||{};l=M.index,r=M.injector,o=M.projectableNodes,i=M.environmentInjector||M.ngModuleRef,s=M.directives,a=M.bindings}let u=c?t:new so(Mn(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let x=(c?d:this.parentInjector).get(ie,null);x&&(i=x)}let v=Mn(u.componentType??{}),m=Fg(this._lContainer,v?.id??null),D=m?.firstChild??null,S=u.create(d,o,D,i,s,a);return this.insertImpl(S.hostView,l,kg(this._hostTNode,m)),S}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Vh(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[we],l=new mv(c,c[ct],c[we]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return FD(s,o,i,r),t.attachToViewContainerRef(),mu(Ku(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zg(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=yd(this._lContainer,n);r&&(oi(Ku(this._lContainer),n),zm(r[T],r))}detach(t){let n=this._adjustIndex(t,-1),r=yd(this._lContainer,n);return r&&oi(Ku(this._lContainer),n)!=null?new kn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zg(e){return e[li]}function Ku(e){return e[li]||(e[li]=[])}function vv(e,t){let n,r=t[e.index];return ut(r)?n=r:(n=iv(r,t,null,e),t[e.index]=n,Hd(t,n)),hE(n,t,e,r),new mv(n,e,t)}function pE(e,t){let n=e[se],r=n.createComment(""),o=wt(t,e),i=n.parentNode(o);return Ba(n,i,r,n.nextSibling(o),!1),r}var hE=vE,gE=()=>!1;function mE(e,t,n){return gE(e,t,n)}function vE(e,t,n,r){if(e[Rn])return;let o;n.type&8?o=dt(r):o=pE(t,n),e[Rn]=o}var Dd=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ed=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)sf(t,n).matches!==null&&this.queries[n].setDirty()}},wd=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=IE(t):this.predicate=t}},Id=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},xd=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,yE(n,i)),this.matchTNodeWithReadOption(t,n,Na(n,t,i,!1,!1))}else r===Fn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Na(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Mt||o===ln||o===Fn&&n.type&4)this.addMatch(n.index,-2);else{let i=Na(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function yE(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function _E(e,t){return e.type&11?co(e,t):e.type&4?nc(e,t):null}function bE(e,t,n,r){return n===-1?_E(t,e):n===-2?CE(e,t,r):bi(e,e[T],n,t)}function CE(e,t,n){if(n===Mt)return co(t,e);if(n===Fn)return nc(t,e);if(n===ln)return vv(t,e)}function yv(e,t,n,r){let o=t[Vt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(bE(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Md(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=yv(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=Fe;d<u.length;d++){let v=u[d];v[Nn]===v[we]&&Md(v[T],v,l,r)}if(u[gr]!==null){let d=u[gr];for(let v=0;v<d.length;v++){let m=d[v];Md(m[T],m,l,r)}}}}}return r}function DE(e,t){return e[Vt].queries[t].queryList}function EE(e,t,n){let r=new ja((n&4)===4);return Hh(e,t,r,r.destroy),(t[Vt]??=new Ed).queries.push(new Dd(r))-1}function wE(e,t,n){let r=Ne();return r.firstCreatePass&&(xE(r,new wd(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),EE(r,z(),t)}function IE(e){return e.split(",").map(t=>t.trim())}function xE(e,t,n){e.queries===null&&(e.queries=new Id),e.queries.track(new xd(t,n))}function sf(e,t){return e.queries.getByIndex(t)}function ME(e,t){let n=e[T],r=sf(n,t);return r.crossesNgTemplate?Md(n,e,t,[]):yv(n,e,r,t)}var Cr=class{},oc=class{};var $a=class extends Cr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Ua(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=fu(t);this._bootstrapComponents=Fm(i.bootstrap),this._r3Injector=Uu(t,n,[{provide:Cr,useValue:this},{provide:Ai,useValue:this.componentFactoryResolver},...r],ni(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},za=class extends oc{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new $a(this.moduleType,t,[])}};var Di=class extends Cr{injector;componentFactoryResolver=new Ua(this);instance=null;constructor(t){super();let n=new ur([...t.providers,{provide:Cr,useValue:this},{provide:Ai,useValue:this.componentFactoryResolver}],t.parent||ai(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ni(e,t,n=null){return new Di({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var SE=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=yu(!1,n.type),o=r.length>0?Ni([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=I({token:e,providedIn:"environment",factory:()=>new e(N(ie))})}return e})();function be(e){return wi(()=>{let t=_v(e),n=R(b({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Od.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(SE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||xt.Emulated,styles:e.styles||Ye,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&qd("NgStandalone"),bv(n);let r=e.dependencies;return n.directiveDefs=qg(r,TE),n.pipeDefs=qg(r,Dh),n.id=OE(n),n})}function TE(e){return Mn(e)||pu(e)}function zt(e){return wi(()=>({type:e.type,bootstrap:e.bootstrap||Ye,declarations:e.declarations||Ye,imports:e.imports||Ye,exports:e.exports||Ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function AE(e,t){if(e==null)return Sn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ja.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function NE(e){if(e==null)return Sn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function ve(e){return wi(()=>{let t=_v(e);return bv(t),t})}function af(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function _v(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Sn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ye,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:AE(e.inputs,t),outputs:NE(e.outputs),debugInfo:null}}function bv(e){e.features?.forEach(t=>t(e))}function qg(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function OE(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function RE(e){return Object.getPrototypeOf(e.prototype).constructor}function St(e){let t=RE(e.type),n=!0,r=[e];for(;t;){let o;if(Ut(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ju(e.inputs),s.declaredInputs=Ju(e.declaredInputs),s.outputs=Ju(e.outputs);let a=o.hostBindings;a&&jE(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&FE(e,c),l&&LE(e,l),PE(e,o),Ch(e.outputs,o.outputs),Ut(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===St&&(n=!1)}}t=Object.getPrototypeOf(t)}kE(r)}function PE(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function kE(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=_i(o.hostAttrs,n=_i(n,o.hostAttrs))}}function Ju(e){return e===Sn?{}:e===Ye?[]:e}function FE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function LE(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function jE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function VE(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=_i(e.mergedAttrs,e.attrs);let u=e.tView=Bd(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),to(e,!1);let c=UE(n,t,e,r);Ca()&&Wd(n,t,c,e),io(c,t);let l=iv(c,t,c,e);t[r+Ae]=l,Hd(t,l),mE(l,e,t)}function BE(e,t,n,r,o,i,s,a,c,l,u){let d=n+Ae,v;return t.firstCreatePass?(v=ef(t,d,4,s||null,a||null),fa()&&lv(t,e,v,ui(t.consts,l),Yd),nm(t,v)):v=t.data[d],VE(v,e,t,n,r,o,i,c),Jr(v)&&tc(t,e,v),l!=null&&Qd(e,v,u),v}function U(e,t,n,r,o,i,s,a){let c=z(),l=Ne(),u=ui(l.consts,i);return BE(c,l,e,t,n,r,o,u,void 0,s,a),U}var UE=HE;function HE(e,t,n,r){return pi(!0),t[se].createComment("")}var cf=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function lf(e){return typeof e=="function"&&e[Ee]!==void 0}function uf(e){return lf(e)&&typeof e.set=="function"}var df=new w("");function jn(e){return!!e&&typeof e.then=="function"}function ff(e){return!!e&&typeof e.subscribe=="function"}var Cv=new w("");var pf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=y(Cv,{optional:!0})??[];injector=y(ze);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ie(this.injector,o);if(jn(i))n.push(i);else if(ff(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ic=new w("");function Dv(){Ml(()=>{let e="";throw new C(600,e)})}function Ev(e){return e.isBoundToModule}var $E=10;var Ir=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=y(Xe);afterRenderManager=y(Um);zonelessEnabled=y(hi);rootEffectScheduler=y(wa);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ge;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=y(rn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Z(n=>!n))}constructor(){y(Er,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=y(ie);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ze.NULL){return this._injector.get(Ge).run(()=>{te(K.BootstrapComponentStart);let s=n instanceof rc;if(!this._injector.get(pf).done){let D="";throw new C(405,D)}let c;s?c=n:c=this._injector.get(Ai).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Ev(c)?void 0:this._injector.get(Cr),u=r||c.selector,d=c.create(o,[],u,l),v=d.location.nativeElement,m=d.injector.get(df,null);return m?.registerApplication(v),d.onDestroy(()=>{this.detachView(d.hostView),yi(this.components,d),m?.unregisterApplication(v)}),this._loadComponent(d),te(K.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){te(K.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(zd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw te(K.ChangeDetectionEnd),new C(101,!1);let n=L(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,L(n),this.afterTick.next(),te(K.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(br,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<$E;){te(K.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{te(K.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!di(o))continue;let i=r&&!this.zonelessEnabled?0:1;tv(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>di(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;yi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(ic,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>yi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function yi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function un(e,t,n,r){let o=z(),i=fi();if(on(o,i,t)){let s=Ne(),a=ya();mD(a,o,e,t,n,r)}return un}function _(e,t,n){let r=z(),o=fi();if(on(r,o,t)){let i=Ne(),s=ya();Wm(s,r,e,t,r[se],n)}return _}function Gg(e,t,n,r,o){Kd(t,e,n,o?"class":"style",r)}function f(e,t,n,r){let o=z(),i=o[T],s=e+Ae,a=i.firstCreatePass?tf(s,o,2,t,Yd,fa(),n,r):i.data[s];if(Zm(a,o,e,t,zE),Jr(a)){let c=o[T];tc(c,o,a),kd(c,a,o)}return r!=null&&Qd(o,a),f}function p(){let e=Ne(),t=Le(),n=Qm(t);return e.firstCreatePass&&nf(e,n),Wh(n)&&Zh(),qh(),n.classesWithoutHost!=null&&Mb(n)&&Gg(e,n,z(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Sb(n)&&Gg(e,n,z(),n.stylesWithoutHost,!1),p}function $(e,t,n,r){return f(e,t,n,r),p(),$}var zE=(e,t,n,r,o)=>(pi(!0),Om(t[se],r,ag()));function uo(e,t,n){let r=z(),o=r[T],i=e+Ae,s=o.firstCreatePass?tf(i,r,8,"ng-container",Yd,fa(),t,n):o.data[i];if(Zm(s,r,e,"ng-container",qE),Jr(s)){let a=r[T];tc(a,r,s),kd(a,s,r)}return n!=null&&Qd(r,s),uo}function fo(){let e=Ne(),t=Le(),n=Qm(t);return e.firstCreatePass&&nf(e,n),fo}var qE=(e,t,n,r,o)=>(pi(!0),_C(t[se],""));function le(){return z()}var mi=void 0;function GE(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var WE=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],mi,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],mi,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",mi,mi,mi],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",GE],Xu={};function tt(e){let t=ZE(e),n=Wg(t);if(n)return n;let r=t.split("-")[0];if(n=Wg(r),n)return n;if(r==="en")return WE;throw new C(701,!1)}function Wg(e){return e in Xu||(Xu[e]=Ct.ng&&Ct.ng.common&&Ct.ng.common.locales&&Ct.ng.common.locales[e]),Xu[e]}var pe=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(pe||{});function ZE(e){return e.toLowerCase().replace(/_/g,"-")}var Oi="en-US";var QE=Oi;function wv(e){typeof e=="string"&&(QE=e.toLowerCase().replace(/_/g,"-"))}function A(e,t,n){let r=z(),o=Ne(),i=Le();return Iv(o,r,r[se],i,e,t,n),A}function Iv(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Yu(r,t,i),eE(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let v=u[d],m=u[d+1];c??=Yu(r,t,i),Hg(r,t,v,m,o,c)}if(l&&l.length)for(let d of l)c??=Yu(r,t,i),Hg(r,t,d,o,o,c)}}function E(e=1){return sg(e)}function po(e,t,n){return wE(e,t,n),po}function ho(e){let t=z(),n=Ne(),r=ju();ga(r+1);let o=sf(n,r);if(e.dirty&&jh(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=ME(t,r);e.reset(i,Ub),e.notifyOnChanges()}return!0}return!1}function go(){return DE(z(),ju())}function dn(e){let t=Kh();return xu(t,Ae+e)}function Sa(e,t){return e<<17|t<<2}function Dr(e){return e>>17&32767}function YE(e){return(e&2)==2}function KE(e,t){return e&131071|t<<17}function Sd(e){return e|2}function ao(e){return(e&131068)>>2}function ed(e,t){return e&-131069|t<<2}function JE(e){return(e&1)===1}function Td(e){return e|1}function XE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Dr(s),c=ao(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Qr(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let v=Dr(e[a+1]);e[r+1]=Sa(v,a),v!==0&&(e[v+1]=ed(e[v+1],r)),e[a+1]=KE(e[a+1],r)}else e[r+1]=Sa(a,0),a!==0&&(e[a+1]=ed(e[a+1],r)),a=r;else e[r+1]=Sa(c,0),a===0?a=r:e[c+1]=ed(e[c+1],r),c=r;l&&(e[r+1]=Sd(e[r+1])),Zg(e,u,r,!0),Zg(e,u,r,!1),ew(t,u,e,r,i),s=Sa(a,c),i?t.classBindings=s:t.styleBindings=s}function ew(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Qr(i,t)>=0&&(n[r+1]=Td(n[r+1]))}function Zg(e,t,n,r){let o=e[n+1],i=t===null,s=r?Dr(o):ao(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];tw(c,t)&&(a=!0,e[s+1]=r?Td(l):Sd(l)),s=r?Dr(l):ao(l)}a&&(e[n+1]=r?Sd(o):Td(o))}function tw(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Qr(e,t)>=0:!1}function qt(e,t,n){return xv(e,t,n,!1),qt}function ue(e,t){return xv(e,t,null,!0),ue}function xv(e,t,n,r){let o=z(),i=Ne(),s=pa(2);if(i.firstUpdatePass&&rw(i,e,s,r),t!==et&&on(o,s,t)){let a=i.data[nn()];cw(i,a,o,o[se],e,o[s+1]=lw(t,n),r,s)}}function nw(e,t){return t>=e.expandoStartIndex}function rw(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[nn()],s=nw(e,n);uw(i,r)&&t===null&&!s&&(t=!1),t=ow(o,i,t,r),XE(o,i,t,n,s,r)}}function ow(e,t,n,r){let o=ng(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=td(null,e,t,n,r),n=Ei(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=td(o,e,t,n,r),i===null){let c=iw(e,t,r);c!==void 0&&Array.isArray(c)&&(c=td(null,e,t,c[1],r),c=Ei(c,t.attrs,r),sw(e,t,r,c))}else i=aw(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function iw(e,t,n){let r=n?t.classBindings:t.styleBindings;if(ao(r)!==0)return e[Dr(r)]}function sw(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Dr(o)]=r}function aw(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Ei(r,s,n)}return Ei(r,t.attrs,n)}function td(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Ei(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Ei(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Th(e,s,n?!0:t[++i]))}return e===void 0?null:e}function cw(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=JE(l)?Qg(c,t,n,o,ao(l),s):void 0;if(!qa(u)){qa(i)||YE(l)&&(i=Qg(c,null,n,o,a,s));let d=Iu(nn(),n);sD(r,s,d,o,i)}}function Qg(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,v=n[o+1];v===et&&(v=d?Ye:void 0);let m=d?sa(v,r):u===r?v:void 0;if(l&&!qa(m)&&(m=sa(c,r)),qa(m)&&(a=m,s))return a;let D=e[o+1];o=s?Dr(D):ao(D)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=sa(c,r))}return a}function qa(e){return e!==void 0}function lw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ni(Mi(e)))),e}function uw(e,t){return(e.flags&(t?8:16))!==0}function g(e,t=""){let n=z(),r=Ne(),o=e+Ae,i=r.firstCreatePass?ef(r,o,1,t,null):r.data[o],s=dw(r,n,i,t);n[o]=s,Ca()&&Wd(r,n,s,i),to(i,!1)}var dw=(e,t,n,r)=>(pi(!0),vC(t[se],r));function fw(e,t,n,r=""){return on(e,fi(),n)?t+Lt(n)+r:et}function pw(e,t,n,r,o,i=""){let s=Lu(),a=of(e,s,n,o);return pa(2),a?t+Lt(n)+r+Lt(o)+i:et}function hw(e,t,n,r,o,i,s,a=""){let c=Lu(),l=XD(e,c,n,o,s);return pa(3),l?t+Lt(n)+r+Lt(o)+i+Lt(s)+a:et}function O(e){return re("",e),O}function re(e,t,n){let r=z(),o=fw(r,e,t,n);return o!==et&&hf(r,nn(),o),re}function Tt(e,t,n,r,o){let i=z(),s=pw(i,e,t,n,r,o);return s!==et&&hf(i,nn(),s),Tt}function sc(e,t,n,r,o,i,s){let a=z(),c=hw(a,e,t,n,r,o,i,s);return c!==et&&hf(a,nn(),c),sc}function hf(e,t,n){let r=Iu(t,e);yC(e[se],r,n)}function Vn(e,t,n){uf(t)&&(t=t());let r=z(),o=fi();if(on(r,o,t)){let i=Ne(),s=ya();Wm(s,r,e,t,r[se],n)}return Vn}function xr(e,t){let n=uf(e);return n&&e.set(t),n}function Bn(e,t){let n=z(),r=Ne(),o=Le();return Iv(r,n,n[se],o,e,t),Bn}function Yg(e,t,n){let r=Ne();r.firstCreatePass&&Mv(t,r.data,r.blueprint,Ut(e),n)}function Mv(e,t,n,r,o){if(e=Te(e),Array.isArray(e))for(let i=0;i<e.length;i++)Mv(e[i],t,n,r,o);else{let i=Ne(),s=z(),a=Le(),c=lr(e)?e:Te(e.provide),l=bu(e),u=a.providerIndexes&1048575,d=a.directiveStart,v=a.providerIndexes>>20;if(lr(e)||!e.multi){let m=new yr(l,o,k,null),D=rd(c,t,o?u:u+v,d);D===-1?(id(La(a,s),i,c),nd(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[D]=m,s[D]=m)}else{let m=rd(c,t,u+v,d),D=rd(c,t,u,u+v),S=m>=0&&n[m],M=D>=0&&n[D];if(o&&!M||!o&&!S){id(La(a,s),i,c);let x=vw(o?mw:gw,n.length,o,r,l,e);!o&&M&&(n[D].providerFactory=x),nd(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(x),s.push(x)}else{let x=Sv(n[o?D:m],l,!o&&r);nd(i,e,m>-1?m:D,x)}!o&&r&&M&&n[D].componentProviders++}}}function nd(e,t,n,r){let o=lr(t),i=Ph(t);if(o||i){let c=(i?Te(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Sv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function rd(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function gw(e,t,n,r,o){return Ad(this.multi,[])}function mw(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=bi(r,r[T],this.providerFactory.index,o);s=c.slice(0,a),Ad(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],Ad(i,s);return s}function Ad(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function vw(e,t,n,r,o,i){let s=new yr(e,n,k,null);return s.multi=[],s.index=t,s.componentProviders=0,Sv(s,o,r&&!n),s}function Mr(e,t){return n=>{n.providersResolver=(r,o)=>Yg(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Yg(r,o?o(t):t,!0))}}function Un(e,t,n){return yw(z(),Fu(),e,t,n)}function Tv(e,t){let n=e[t];return n===et?void 0:n}function yw(e,t,n,r,o,i){let s=t+n;return on(e,s,o)?pv(e,s+1,i?r.call(i,o):r(o)):Tv(e,s+1)}function _w(e,t,n,r,o,i,s){let a=t+n;return of(e,a,o,i)?pv(e,a+2,s?r.call(s,o,i):r(o,i)):Tv(e,a+2)}function gf(e,t){let n=Ne(),r,o=e+Ae;n.firstCreatePass?(r=bw(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Dn(r.type,!0)),s,a=$e(k);try{let c=Fa(!1),l=i();return Fa(c),Mu(n,z(),o,l),l}finally{$e(a)}}function bw(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function mf(e,t,n,r){let o=e+Ae,i=z(),s=xu(i,o);return Cw(i,o)?_w(i,Fu(),t,s.transform,n,r,s):s.transform(n,r)}function Cw(e,t){return e[T].data[t].pure}function Sr(e,t){return nc(e,t)}var Ga=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},vf=(()=>{class e{compileModuleSync(n){return new za(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=fu(n),i=Fm(o.declarations).reduce((s,a)=>{let c=Mn(a);return c&&s.push(new so(c)),s},[]);return new Ga(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Av=(()=>{class e{applicationErrorHandler=y(Xe);appRef=y(Ir);taskService=y(rn);ngZone=y(Ge);zonelessEnabled=y(hi);tracing=y(Er,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new _e;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ei):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(y(Gu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?dg:Hu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ei+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 n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nv(){return[{provide:In,useExisting:Av},{provide:Ge,useClass:ti},{provide:hi,useValue:!0}]}function Dw(){return typeof $localize<"u"&&$localize.locale||Oi}var Ri=new w("",{factory:()=>y(Ri,{optional:!0,skipSelf:!0})||Dw()});function ee(e){return mh(e)}function Ce(e,t){return _s(e,t?.equal)}var Ew=e=>e;function yf(e,t){if(typeof e=="function"){let n=ql(e,Ew,t?.equal);return Ov(n,t?.debugName)}else{let n=ql(e.source,e.computation,e.equal);return Ov(n,e.debugName)}}function Ov(e,t){let n=e[Ee],r=e;return r.set=o=>hh(n,o),r.update=o=>gh(n,o),r.asReadonly=Da.bind(e),r}var Fv=Symbol("InputSignalNode#UNSET"),$w=R(b({},Cs),{transformFn:void 0,applyValueToInputSignal(e,t){tr(e,t)}});function Lv(e,t){let n=Object.create($w);n.value=e,n.transformFn=t?.transform;function r(){if(Kn(n),n.value===Fv){let o=null;throw new C(-950,o)}return n.value}return r[Ee]=n,r}var cc=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Ii(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function Rv(e,t){return Lv(e,t)}function zw(e){return Lv(Fv,e)}var jv=(Rv.required=zw,Rv);var _f=new w(""),qw=new w("");function Pi(e){return!e.moduleRef}function Gw(e){let t=Pi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ge);return n.run(()=>{Pi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Xe),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Pi(e)){let i=()=>t.destroy(),s=e.platformInjector.get(_f);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(_f);s.add(i),e.moduleRef.onDestroy(()=>{yi(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Zw(r,n,()=>{let i=t.get(rn),s=i.add(),a=t.get(pf);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Ri,Oi);if(wv(c||Oi),!t.get(qw,!0))return Pi(e)?t.get(Ir):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Pi(e)){let u=t.get(Ir);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return Ww?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var Ww;function Zw(e,t,n){try{let r=n();return jn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ac=null;function Qw(e=[],t){return ze.create({name:t,providers:[{provide:si,useValue:"platform"},{provide:_f,useValue:new Set([()=>ac=null])},...e]})}function Yw(e=[]){if(ac)return ac;let t=Qw(e);return ac=t,Dv(),Kw(t),t}function Kw(e){let t=e.get(Za,null);Ie(e,()=>{t?.forEach(n=>n())})}var Jw=1e4;var fU=Jw-1e3;var mo=(()=>{class e{static __NG_ELEMENT_ID__=Xw}return e})();function Xw(e){return eI(Le(),z(),(e&16)===16)}function eI(e,t,n){if(tn(e)&&!n){let r=Je(e.index,t);return new kn(r,r)}else if(e.type&175){let r=t[lt];return new kn(r,t)}return null}var bf=class{supports(t){return rf(t)}create(t){return new Cf(t)}},tI=(e,t)=>t,Cf=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(t){this._trackByFn=t||tI}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<Pv(r,o,i)?n:r,a=Pv(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let v=0;v<l;v++){let m=v<i.length?i[v]:i[v]=0,D=m+v;u<=D&&D<l&&(i[v]=m+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!rf(t))throw new C(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,dv(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Df(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new lc),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new lc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Df=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(t,n){this.item=t,this.trackById=n}},Ef=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},lc=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Ef,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Pv(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function kv(){return new If([new bf])}var If=(()=>{class e{factories;static \u0275prov=I({token:e,providedIn:"root",factory:kv});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=y(e,{optional:!0,skipSelf:!0});return e.create(n,r||kv())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new C(901,!1)}}return e})();function Vv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;te(K.BootstrapApplicationStart);try{let i=o?.injector??Yw(r),s=[Nv(),pg,...n||[]],a=new Di({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return Gw({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{te(K.BootstrapApplicationEnd)}}function Tr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Bv=null;function ft(){return Bv}function xf(e){Bv??=e}var ki=class{},vo=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>y(Uv),providedIn:"platform"})}return e})();var Uv=(()=>{class e extends vo{_location;_history;_doc=y(de);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ft().getBaseHref(this._doc)}onPopState(n){let r=ft().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ft().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function zv(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Hv(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function $n(e){return e&&e[0]!=="?"?`?${e}`:e}var yo=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>y(rI),providedIn:"root"})}return e})(),nI=new w(""),rI=(()=>{class e extends yo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??y(de).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return zv(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+$n(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+$n(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+$n(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(N(vo),N(nI,8))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _o=(()=>{class e{_subject=new ge;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=sI(Hv($v(r))),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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+$n(r))}normalize(n){return e.stripTrailingSlash(iI(this._basePath,$v(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+$n(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+$n(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=$n;static joinWithSlash=zv;static stripTrailingSlash=Hv;static \u0275fac=function(r){return new(r||e)(N(yo))};static \u0275prov=I({token:e,factory:()=>oI(),providedIn:"root"})}return e})();function oI(){return new _o(N(yo))}function iI(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function $v(e){return e.replace(/\/index.html$/,"")}function sI(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var je=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(je||{}),ne=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(ne||{}),We=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(We||{}),pn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Zv(e){return tt(e)[pe.LocaleId]}function Qv(e,t,n){let r=tt(e),o=[r[pe.DayPeriodsFormat],r[pe.DayPeriodsStandalone]],i=pt(o,t);return pt(i,n)}function Yv(e,t,n){let r=tt(e),o=[r[pe.DaysFormat],r[pe.DaysStandalone]],i=pt(o,t);return pt(i,n)}function Kv(e,t,n){let r=tt(e),o=[r[pe.MonthsFormat],r[pe.MonthsStandalone]],i=pt(o,t);return pt(i,n)}function Jv(e,t){let r=tt(e)[pe.Eras];return pt(r,t)}function Fi(e,t){let n=tt(e);return pt(n[pe.DateFormat],t)}function Li(e,t){let n=tt(e);return pt(n[pe.TimeFormat],t)}function ji(e,t){let r=tt(e)[pe.DateTimeFormat];return pt(r,t)}function Vi(e,t){let n=tt(e),r=n[pe.NumberSymbols][t];if(typeof r>"u"){if(t===pn.CurrencyDecimal)return n[pe.NumberSymbols][pn.Decimal];if(t===pn.CurrencyGroup)return n[pe.NumberSymbols][pn.Group]}return r}function Xv(e){if(!e[pe.ExtraData])throw new C(2303,!1)}function ey(e){let t=tt(e);return Xv(t),(t[pe.ExtraData][2]||[]).map(r=>typeof r=="string"?Mf(r):[Mf(r[0]),Mf(r[1])])}function ty(e,t,n){let r=tt(e);Xv(r);let o=[r[pe.ExtraData][0],r[pe.ExtraData][1]],i=pt(o,t)||[];return pt(i,n)||[]}function pt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new C(2304,!1)}function Mf(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var aI=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,uc={},cI=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function ny(e,t,n,r){let o=vI(e);t=fn(n,t)||t;let s=[],a;for(;t;)if(a=cI.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=oy(r,c),o=mI(o,r));let l="";return s.forEach(u=>{let d=hI(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function gc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function fn(e,t){let n=Zv(e);if(uc[n]??={},uc[n][t])return uc[n][t];let r="";switch(t){case"shortDate":r=Fi(e,We.Short);break;case"mediumDate":r=Fi(e,We.Medium);break;case"longDate":r=Fi(e,We.Long);break;case"fullDate":r=Fi(e,We.Full);break;case"shortTime":r=Li(e,We.Short);break;case"mediumTime":r=Li(e,We.Medium);break;case"longTime":r=Li(e,We.Long);break;case"fullTime":r=Li(e,We.Full);break;case"short":let o=fn(e,"shortTime"),i=fn(e,"shortDate");r=dc(ji(e,We.Short),[o,i]);break;case"medium":let s=fn(e,"mediumTime"),a=fn(e,"mediumDate");r=dc(ji(e,We.Medium),[s,a]);break;case"long":let c=fn(e,"longTime"),l=fn(e,"longDate");r=dc(ji(e,We.Long),[c,l]);break;case"full":let u=fn(e,"fullTime"),d=fn(e,"fullDate");r=dc(ji(e,We.Full),[u,d]);break}return r&&(uc[n][t]=r),r}function dc(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function At(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function lI(e,t){return At(e,3).substring(0,t)}function ye(e,t,n=0,r=!1,o=!1){return function(i,s){let a=uI(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return lI(a,t);let c=Vi(s,pn.MinusSign);return At(a,t,c,r,o)}}function uI(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new C(2301,!1)}}function oe(e,t,n=je.Format,r=!1){return function(o,i){return dI(o,i,e,t,n,r)}}function dI(e,t,n,r,o,i){switch(n){case 2:return Kv(t,o,r)[e.getMonth()];case 1:return Yv(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=ey(t),u=ty(t,o,r),d=l.findIndex(v=>{if(Array.isArray(v)){let[m,D]=v,S=s>=m.hours&&a>=m.minutes,M=s<D.hours||s===D.hours&&a<D.minutes;if(m.hours<D.hours){if(S&&M)return!0}else if(S||M)return!0}else if(v.hours===s&&v.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return Qv(t,o,r)[s<12?0:1];case 3:return Jv(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new C(2302,!1)}}function fc(e){return function(t,n,r){let o=-1*r,i=Vi(n,pn.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+At(s,2,i)+At(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+At(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+At(s,2,i)+":"+At(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+At(s,2,i)+":"+At(Math.abs(o%60),2,i);default:throw new C(2310,!1)}}}var fI=0,hc=4;function pI(e){let t=gc(e,fI,1).getDay();return gc(e,0,1+(t<=hc?hc:hc+7)-t)}function ry(e){let t=e.getDay(),n=t===0?-3:hc-t;return gc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Sf(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=ry(n),s=pI(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return At(o,e,Vi(r,pn.MinusSign))}}function pc(e,t=!1){return function(n,r){let i=ry(n).getFullYear();return At(i,e,Vi(r,pn.MinusSign),t)}}var Tf={};function hI(e){if(Tf[e])return Tf[e];let t;switch(e){case"G":case"GG":case"GGG":t=oe(3,ne.Abbreviated);break;case"GGGG":t=oe(3,ne.Wide);break;case"GGGGG":t=oe(3,ne.Narrow);break;case"y":t=ye(0,1,0,!1,!0);break;case"yy":t=ye(0,2,0,!0,!0);break;case"yyy":t=ye(0,3,0,!1,!0);break;case"yyyy":t=ye(0,4,0,!1,!0);break;case"Y":t=pc(1);break;case"YY":t=pc(2,!0);break;case"YYY":t=pc(3);break;case"YYYY":t=pc(4);break;case"M":case"L":t=ye(1,1,1);break;case"MM":case"LL":t=ye(1,2,1);break;case"MMM":t=oe(2,ne.Abbreviated);break;case"MMMM":t=oe(2,ne.Wide);break;case"MMMMM":t=oe(2,ne.Narrow);break;case"LLL":t=oe(2,ne.Abbreviated,je.Standalone);break;case"LLLL":t=oe(2,ne.Wide,je.Standalone);break;case"LLLLL":t=oe(2,ne.Narrow,je.Standalone);break;case"w":t=Sf(1);break;case"ww":t=Sf(2);break;case"W":t=Sf(1,!0);break;case"d":t=ye(2,1);break;case"dd":t=ye(2,2);break;case"c":case"cc":t=ye(7,1);break;case"ccc":t=oe(1,ne.Abbreviated,je.Standalone);break;case"cccc":t=oe(1,ne.Wide,je.Standalone);break;case"ccccc":t=oe(1,ne.Narrow,je.Standalone);break;case"cccccc":t=oe(1,ne.Short,je.Standalone);break;case"E":case"EE":case"EEE":t=oe(1,ne.Abbreviated);break;case"EEEE":t=oe(1,ne.Wide);break;case"EEEEE":t=oe(1,ne.Narrow);break;case"EEEEEE":t=oe(1,ne.Short);break;case"a":case"aa":case"aaa":t=oe(0,ne.Abbreviated);break;case"aaaa":t=oe(0,ne.Wide);break;case"aaaaa":t=oe(0,ne.Narrow);break;case"b":case"bb":case"bbb":t=oe(0,ne.Abbreviated,je.Standalone,!0);break;case"bbbb":t=oe(0,ne.Wide,je.Standalone,!0);break;case"bbbbb":t=oe(0,ne.Narrow,je.Standalone,!0);break;case"B":case"BB":case"BBB":t=oe(0,ne.Abbreviated,je.Format,!0);break;case"BBBB":t=oe(0,ne.Wide,je.Format,!0);break;case"BBBBB":t=oe(0,ne.Narrow,je.Format,!0);break;case"h":t=ye(3,1,-12);break;case"hh":t=ye(3,2,-12);break;case"H":t=ye(3,1);break;case"HH":t=ye(3,2);break;case"m":t=ye(4,1);break;case"mm":t=ye(4,2);break;case"s":t=ye(5,1);break;case"ss":t=ye(5,2);break;case"S":t=ye(6,1);break;case"SS":t=ye(6,2);break;case"SSS":t=ye(6,3);break;case"Z":case"ZZ":case"ZZZ":t=fc(0);break;case"ZZZZZ":t=fc(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=fc(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=fc(2);break;default:return null}return Tf[e]=t,t}function oy(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function gI(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function mI(e,t,n){let o=e.getTimezoneOffset(),i=oy(t,o);return gI(e,-1*(i-o))}function vI(e){if(qv(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return gc(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(aI))return yI(r)}let t=new Date(e);if(!qv(t))throw new C(2311,!1);return t}function yI(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function qv(e){return e instanceof Date&&!isNaN(e.valueOf())}var mc=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,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}},Ze=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new mc(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Gv(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Gv(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(k(ln),k(Fn),k(If))};static \u0275dir=ve({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Gv(e,t){e.context.$implicit=t.item}var Nt=(()=>{class e{_viewContainer;_context=new vc;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Wv(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Wv(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(k(ln),k(Fn))};static \u0275dir=ve({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),vc=class{$implicit=null;ngIf=null};function Wv(e,t){if(e&&!e.createEmbeddedView)throw new C(2020,!1)}function _I(e,t){return new C(2100,!1)}var bI="mediumDate",iy=new w(""),sy=new w(""),Af=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??bI,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return ny(n,s,i||this.locale,a)}catch(s){throw _I(e,s.message)}}static \u0275fac=function(r){return new(r||e)(k(Ri,16),k(iy,24),k(sy,24))};static \u0275pipe=af({name:"date",type:e,pure:!0})}return e})();var Ve=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=zt({type:e});static \u0275inj=Dt({})}return e})();function Bi(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Ar=class{};var ay="browser";var Ui=class{_doc;constructor(t){this._doc=t}manager},yc=(()=>{class e extends Ui{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(N(de))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Cc=new w(""),Pf=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof yc));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof yc);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(N(Cc),N(Ge))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Nf="ng-app-id";function cy(e){for(let t of e)t.remove()}function ly(e,t){let n=t.createElement("style");return n.textContent=e,n}function CI(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Nf}="${t}"],link[${Nf}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Nf),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Rf(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var kf=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,CI(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,ly);r?.forEach(o=>this.addUsage(o,this.external,Rf))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(cy(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])cy(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,ly(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Rf(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(N(de),N(Wa),N(Qa,8),N(xi))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Of={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"},Ff=/%COMP%/g;var dy="%COMP%",DI=`_nghost-${dy}`,EI=`_ngcontent-${dy}`,wI=!0,II=new w("",{factory:()=>wI});function xI(e){return EI.replace(Ff,e)}function MI(e){return DI.replace(Ff,e)}function fy(e,t){return t.map(n=>n.replace(Ff,e))}var Lf=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.defaultRenderer=new Hi(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof bc?o.applyToHost(n):o instanceof $i&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case xt.Emulated:i=new bc(c,l,r,this.appId,u,s,a,d);break;case xt.ShadowDom:return new _c(c,n,r,s,a,this.nonce,d,l);case xt.ExperimentalIsolatedShadowDom:return new _c(c,n,r,s,a,this.nonce,d);default:i=new $i(c,l,r,u,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(N(Pf),N(kf),N(Wa),N(II),N(de),N(Ge),N(Qa),N(Er,8))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Hi=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Of[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(uy(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(uy(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new C(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Of[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Of[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&($t.DashCase|$t.Important)?t.style.setProperty(n,r,o&$t.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&$t.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=ft().getGlobalEventTarget(this.doc,t),!t))throw new C(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function uy(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var _c=class extends Hi{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=fy(r.id,l);for(let d of l){let v=document.createElement("style");s&&v.setAttribute("nonce",s),v.textContent=d,this.shadowRoot.appendChild(v)}let u=r.getExternalStyles?.();if(u)for(let d of u){let v=Rf(d,o);s&&v.setAttribute("nonce",s),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},$i=class extends Hi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=c?fy(c,l):l,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&_r.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},bc=class extends $i{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,l),this.contentAttr=xI(l),this.hostAttr=MI(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Dc=class e extends ki{supportsDOMEvents=!0;static makeCurrent(){xf(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=SI();return n==null?null:TI(n)}resetBaseElement(){zi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Bi(document.cookie,t)}},zi=null;function SI(){return zi=zi||document.head.querySelector("base"),zi?zi.getAttribute("href"):null}function TI(e){return new URL(e,document.baseURI).pathname}var AI=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),py=["alt","control","meta","shift"],NI={"\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"},OI={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},hy=(()=>{class e extends Ui{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ft().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),py.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=NI[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),py.forEach(s=>{if(s!==o){let a=OI[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(N(de))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})();async function jf(e,t,n){let r=b({rootComponent:e},RI(t,n));return Vv(r)}function RI(e,t){return{platformRef:t?.platformRef,appProviders:[...jI,...e?.providers??[]],platformProviders:LI}}function PI(){Dc.makeCurrent()}function kI(){return new kt}function FI(){return Rd(document),document}var LI=[{provide:xi,useValue:ay},{provide:Za,useValue:PI,multi:!0},{provide:de,useFactory:FI}];var jI=[{provide:si,useValue:"root"},{provide:kt,useFactory:kI},{provide:Cc,useClass:yc,multi:!0},{provide:Cc,useClass:hy,multi:!0},Lf,kf,Pf,{provide:br,useExisting:Lf},{provide:Ar,useClass:AI},[]];var Wt=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var wc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Ic=class{encodeKey(t){return gy(t)}encodeValue(t){return gy(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function VI(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var BI=/%(\d[a-f0-9])/gi,UI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function gy(e){return encodeURIComponent(e).replace(BI,(t,n)=>UI[n]??t)}function Ec(e){return`${e}`}var hn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ic,t.fromString){if(t.fromObject)throw new C(2805,!1);this.map=VI(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Ec):[Ec(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Ec(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Ec(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function HI(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function my(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function vy(e){return typeof Blob<"u"&&e instanceof Blob}function yy(e){return typeof FormData<"u"&&e instanceof FormData}function $I(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var _y="Content-Type",by="Accept",Cy="text/plain",Dy="application/json",zI=`${Dy}, ${Cy}, */*`,bo=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(HI(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new C(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new Wt,this.context??=new wc,!this.params)this.params=new hn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||my(this.body)||vy(this.body)||yy(this.body)||$I(this.body)?this.body:this.body instanceof hn?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||yy(this.body)?null:vy(this.body)?this.body.type||null:my(this.body)?null:typeof this.body=="string"?Cy:this.body instanceof hn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Dy:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer||this.referrer,v=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,D=t.transferCache??this.transferCache,S=t.timeout??this.timeout,M=t.body!==void 0?t.body:this.body,x=t.withCredentials??this.withCredentials,Oe=t.reportProgress??this.reportProgress,vt=t.headers||this.headers,De=t.params||this.params,Vo=t.context??this.context;return t.setHeaders!==void 0&&(vt=Object.keys(t.setHeaders).reduce((Bo,Qn)=>Bo.set(Qn,t.setHeaders[Qn]),vt)),t.setParams&&(De=Object.keys(t.setParams).reduce((Bo,Qn)=>Bo.set(Qn,t.setParams[Qn]),De)),new e(n,r,M,{params:De,headers:vt,context:Vo,reportProgress:Oe,responseType:o,withCredentials:x,transferCache:D,keepalive:i,cache:a,priority:s,timeout:S,mode:c,redirect:l,credentials:u,referrer:d,integrity:v,referrerPolicy:m})}},Nr=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Nr||{}),Co=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new Wt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},xc=class e extends Co{constructor(t={}){super(t)}type=Nr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},qi=class e extends Co{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Nr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Gt=class extends Co{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},qI=200,GI=204;var WI=new w("");var ZI=/^\)\]\}',?\n/;var Bf=(()=>{class e{xhrFactory;tracingService=y(Er,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new C(-2800,!1);let r=this.xhrFactory;return H(null).pipe(Qe(()=>new q(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((M,x)=>s.setRequestHeader(M,x.join(","))),n.headers.has(by)||s.setRequestHeader(by,zI),!n.headers.has(_y)){let M=n.detectContentTypeHeader();M!==null&&s.setRequestHeader(_y,M)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let M=n.responseType.toLowerCase();s.responseType=M!=="json"?M:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let M=s.statusText||"OK",x=new Wt(s.getAllResponseHeaders()),Oe=s.responseURL||n.url;return c=new xc({headers:x,status:s.status,statusText:M,url:Oe}),c},u=this.maybePropagateTrace(()=>{let{headers:M,status:x,statusText:Oe,url:vt}=l(),De=null;x!==GI&&(De=typeof s.response>"u"?s.responseText:s.response),x===0&&(x=De?qI:0);let Vo=x>=200&&x<300;if(n.responseType==="json"&&typeof De=="string"){let Bo=De;De=De.replace(ZI,"");try{De=De!==""?JSON.parse(De):null}catch(Qn){De=Bo,Vo&&(Vo=!1,De={error:Qn,text:De})}}Vo?(i.next(new qi({body:De,headers:M,status:x,statusText:Oe,url:vt||void 0})),i.complete()):i.error(new Gt({error:De,headers:M,status:x,statusText:Oe,url:vt||void 0}))}),d=this.maybePropagateTrace(M=>{let{url:x}=l(),Oe=new Gt({error:M,status:s.status||0,statusText:s.statusText||"Unknown Error",url:x||void 0});i.error(Oe)}),v=d;n.timeout&&(v=this.maybePropagateTrace(M=>{let{url:x}=l(),Oe=new Gt({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:x||void 0});i.error(Oe)}));let m=!1,D=this.maybePropagateTrace(M=>{m||(i.next(l()),m=!0);let x={type:Nr.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(x.total=M.total),n.responseType==="text"&&s.responseText&&(x.partialText=s.responseText),i.next(x)}),S=this.maybePropagateTrace(M=>{let x={type:Nr.UploadProgress,loaded:M.loaded};M.lengthComputable&&(x.total=M.total),i.next(x)});return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",v),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",D),a!==null&&s.upload&&s.upload.addEventListener("progress",S)),s.send(a),i.next({type:Nr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",v),n.reportProgress&&(s.removeEventListener("progress",D),a!==null&&s.upload&&s.upload.removeEventListener("progress",S)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(N(Ar))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function QI(e,t){return t(e)}function YI(e,t,n){return(r,o)=>Ie(n,()=>t(r,i=>e(i,o)))}var Ey=new w("",{factory:()=>[]}),wy=new w(""),Iy=new w("",{factory:()=>!0});var Uf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=N(Bf),o},providedIn:"root"})}return e})();var Mc=(()=>{class e{backend;injector;chain=null;pendingTasks=y(no);contributeToStability=y(Iy);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Ey),...this.injector.get(wy,[])]));this.chain=r.reduceRight((o,i)=>YI(o,i,this.injector),QI)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Rt(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(N(Uf),N(ie))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=N(Mc),o},providedIn:"root"})}return e})();function Vf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var Do=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof bo)i=n;else{let c;o.headers instanceof Wt?c=o.headers:c=new Wt(o.headers);let l;o.params&&(o.params instanceof hn?l=o.params:l=new hn({fromObject:o.params})),i=new bo(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=H(i).pipe(Gr(c=>this.handler.handle(c)));if(n instanceof bo||o.observe==="events")return s;let a=s.pipe(bt(c=>c instanceof qi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Z(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new C(2806,!1);return c.body}));case"blob":return a.pipe(Z(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new C(2807,!1);return c.body}));case"text":return a.pipe(Z(c=>{if(c.body!==null&&typeof c.body!="string")throw new C(2808,!1);return c.body}));default:return a.pipe(Z(c=>c.body))}case"response":return a;default:throw new C(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new hn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Vf(o,r))}post(n,r,o={}){return this.request("POST",n,Vf(o,r))}put(n,r,o={}){return this.request("PUT",n,Vf(o,r))}static \u0275fac=function(r){return new(r||e)(N(Hf))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var KI=new w("",{factory:()=>!0}),JI="XSRF-TOKEN",XI=new w("",{factory:()=>JI}),ex="X-XSRF-TOKEN",tx=new w("",{factory:()=>ex}),nx=(()=>{class e{cookieName=y(XI);doc=y(de);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Bi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=N(nx),o},providedIn:"root"})}return e})();function rx(e,t){if(!y(KI)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=y(vo).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=y(xy).getToken(),r=y(tx);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function $f(...e){let t=[Do,Mc,{provide:Hf,useExisting:Mc},{provide:Uf,useFactory:()=>y(WI,{optional:!0})??y(Bf)},{provide:Ey,useValue:rx,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Tn(t)}var My=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(N(de))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var j="primary",is=Symbol("RouteTitle"),Zf=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Rr(e){return new Zf(e)}function zf(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return!1}return!0}function ky(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},l=e.slice(0,r.length);return zf(r,l,c)?{consumed:l,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return!zf(i,e.slice(0,i.length),a)||!zf(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function Rc(e){return new Promise((t,n)=>{e.pipe(Jt()).subscribe({next:r=>t(r),error:r=>n(r)})})}function ix(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Zt(e[n],t[n]))return!1;return!0}function Zt(e,t){let n=e?Qf(e):void 0,r=t?Qf(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!Fy(e[o],t[o]))return!1;return!0}function Qf(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Fy(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function sx(e){return e.length>0?e[e.length-1]:null}function Fr(e){return $s(e)?e:jn(e)?ce(Promise.resolve(e)):H(e)}function Ly(e){return $s(e)?Rc(e):Promise.resolve(e)}var ax={exact:By,subset:Uy},jy={exact:cx,subset:lx,ignored:()=>!0},Vy={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Yf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sy(e,t,n){return ax[n.paths](e.root,t.root,n.matrixParams)&&jy[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function cx(e,t){return Zt(e,t)}function By(e,t,n){if(!Or(e.segments,t.segments)||!Ac(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!By(e.children[r],t.children[r],n))return!1;return!0}function lx(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Fy(e[n],t[n]))}function Uy(e,t,n){return Hy(e,t,t.segments,n)}function Hy(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Or(o,n)||t.hasChildren()||!Ac(o,n,r))}else if(e.segments.length===n.length){if(!Or(e.segments,n)||!Ac(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Uy(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Or(e.segments,o)||!Ac(e.segments,o,r)||!e.children[j]?!1:Hy(e.children[j],t,i,r)}}function Ac(e,t,n){return t.every((r,o)=>jy[n](e[o].parameters,r.parameters))}var rt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new J([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Rr(this.queryParams),this._queryParamMap}toString(){return fx.serialize(this)}},J=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nc(this)}},qn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Rr(this.parameters),this._parameterMap}toString(){return zy(this)}};function ux(e,t){return Or(e,t)&&e.every((n,r)=>Zt(n.parameters,t[r].parameters))}function Or(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function dx(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===j&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==j&&(n=n.concat(t(o,r)))}),n}var No=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>new Gn,providedIn:"root"})}return e})(),Gn=class{parse(t){let n=new Jf(t);return new rt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Gi(t.root,!0)}`,r=gx(t.queryParams),o=typeof t.fragment=="string"?`#${px(t.fragment)}`:"";return`${n}${r}${o}`}},fx=new Gn;function Nc(e){return e.segments.map(t=>zy(t)).join("/")}function Gi(e,t){if(!e.hasChildren())return Nc(e);if(t){let n=e.children[j]?Gi(e.children[j],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==j&&r.push(`${o}:${Gi(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=dx(e,(r,o)=>o===j?[Gi(e.children[j],!1)]:[`${o}:${Gi(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[j]!=null?`${Nc(e)}/${n[0]}`:`${Nc(e)}/(${n.join("//")})`}}function $y(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sc(e){return $y(e).replace(/%3B/gi,";")}function px(e){return encodeURI(e)}function Kf(e){return $y(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Oc(e){return decodeURIComponent(e)}function Ty(e){return Oc(e.replace(/\+/g,"%20"))}function zy(e){return`${Kf(e.path)}${hx(e.parameters)}`}function hx(e){return Object.entries(e).map(([t,n])=>`;${Kf(t)}=${Kf(n)}`).join("")}function gx(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Sc(n)}=${Sc(o)}`).join("&"):`${Sc(n)}=${Sc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var mx=/^[^\/()?;#]+/;function qf(e){let t=e.match(mx);return t?t[0]:""}var vx=/^[^\/()?;=#]+/;function yx(e){let t=e.match(vx);return t?t[0]:""}var _x=/^[^=?&#]+/;function bx(e){let t=e.match(_x);return t?t[0]:""}var Cx=/^[^&#]+/;function Dx(e){let t=e.match(Cx);return t?t[0]:""}var Jf=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new J([],{}):new J([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(t=0){if(t>50)throw new C(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,t));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,t)),(n.length>0||Object.keys(r).length>0)&&(o[j]=new J(n,r)),o}parseSegment(){let t=qf(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new qn(Oc(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=yx(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=qf(this.remaining);o&&(r=o,this.capture(r))}t[Oc(n)]=Oc(r)}parseQueryParam(t){let n=bx(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=Dx(this.remaining);s&&(r=s,this.capture(r))}let o=Ty(n),i=Ty(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t,n){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=qf(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=j);let a=this.parseChildren(n+1);r[s??j]=Object.keys(a).length===1&&a[j]?a[j]:new J([],a),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}};function qy(e){return e.segments.length>0?new J([],{[j]:e}):e}function Gy(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Gy(o);if(r===j&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new J(e.segments,t);return Ex(n)}function Ex(e){if(e.numberOfChildren===1&&e.children[j]){let t=e.children[j];return new J(e.segments.concat(t.segments),t.children)}return e}function Wn(e){return e instanceof rt}function Wy(e,t,n=null,r=null,o=new Gn){let i=Zy(e);return Qy(i,t,n,r,o)}function Zy(e){let t;function n(i){let s={};for(let c of i.children){let l=n(c);s[c.outlet]=l}let a=new J(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=qy(r);return t??o}function Qy(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Gf(i,i,i,n,r,o);let s=wx(t);if(s.toRoot())return Gf(i,i,new J([],{}),n,r,o);let a=Ix(s,i,e),c=a.processChildren?Zi(a.segmentGroup,a.index,s.commands):Ky(a.segmentGroup,a.index,s.commands);return Gf(i,a.segmentGroup,c,n,r,o)}function Pc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ki(e){return typeof e=="object"&&e!=null&&e.outlets}function Ay(e,t,n){e||="\u0275";let r=new rt;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function Gf(e,t,n,r,o,i){let s={};for(let[l,u]of Object.entries(r??{}))s[l]=Array.isArray(u)?u.map(d=>Ay(l,d,i)):Ay(l,u,i);let a;e===t?a=n:a=Yy(e,t,n);let c=qy(Gy(a));return new rt(c,s,o)}function Yy(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Yy(i,t,n)}),new J(e.segments,r)}var kc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Pc(r[0]))throw new C(4003,!1);let o=r.find(Ki);if(o&&o!==sx(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function wx(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new kc(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new kc(n,t,r)}var wo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function Ix(e,t,n){if(e.isAbsolute)return new wo(t,!0,0);if(!n)return new wo(t,!1,NaN);if(n.parent===null)return new wo(n,!0,0);let r=Pc(e.commands[0])?0:1,o=n.segments.length-1+r;return xx(n,o,e.numberOfDoubleDots)}function xx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new wo(r,!1,o-i)}function Mx(e){return Ki(e[0])?e[0].outlets:{[j]:e}}function Ky(e,t,n){if(e??=new J([],{}),e.segments.length===0&&e.hasChildren())return Zi(e,t,n);let r=Sx(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new J(e.segments.slice(0,r.pathIndex),{});return i.children[j]=new J(e.segments.slice(r.pathIndex),e.children),Zi(i,0,o)}else return r.match&&o.length===0?new J(e.segments,{}):r.match&&!e.hasChildren()?Xf(e,t,n):r.match?Zi(e,0,o):Xf(e,t,n)}function Zi(e,t,n){if(n.length===0)return new J(e.segments,{});{let r=Mx(n),o={};if(Object.keys(r).some(i=>i!==j)&&e.children[j]&&e.numberOfChildren===1&&e.children[j].segments.length===0){let i=Zi(e.children[j],t,n);return new J(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Ky(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new J(e.segments,o)}}function Sx(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(Ki(a))break;let c=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Oy(c,l,s))return i;r+=2}else{if(!Oy(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Xf(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(Ki(i)){let c=Tx(i.outlets);return new J(r,c)}if(o===0&&Pc(n[0])){let c=e.segments[t];r.push(new qn(c.path,Ny(n[0]))),o++;continue}let s=Ki(i)?i.outlets[j]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Pc(a)?(r.push(new qn(s,Ny(a))),o+=2):(r.push(new qn(s,{})),o++)}return new J(r,{})}function Tx(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Xf(new J([],{}),0,r))}),t}function Ny(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Oy(e,t,n){return e==n.path&&Zt(t,n.parameters)}var Qi="imperative",xe=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(xe||{}),ot=class{id;url;constructor(t,n){this.id=t,this.url=n}},Pr=class extends ot{type=xe.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Yt=class extends ot{urlAfterRedirects;type=xe.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Be=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Be||{}),Ji=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ji||{}),ht=class extends ot{reason;code;type=xe.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Jy(e){return e instanceof ht&&(e.code===Be.Redirect||e.code===Be.SupersededByNewNavigation)}var mn=class extends ot{reason;code;type=xe.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},kr=class extends ot{error;target;type=xe.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Xi=class extends ot{urlAfterRedirects;state;type=xe.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fc=class extends ot{urlAfterRedirects;state;type=xe.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lc=class extends ot{urlAfterRedirects;state;shouldActivate;type=xe.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},jc=class extends ot{urlAfterRedirects;state;type=xe.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vc=class extends ot{urlAfterRedirects;state;type=xe.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bc=class{route;type=xe.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Uc=class{route;type=xe.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Hc=class{snapshot;type=xe.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$c=class{snapshot;type=xe.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zc=class{snapshot;type=xe.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qc=class{snapshot;type=xe.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var xo=class{},es=class{},Mo=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function Ax(e){return!(e instanceof xo)&&!(e instanceof Mo)&&!(e instanceof es)}var Gc=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Oo(this.rootInjector)}},Oo=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Gc(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(N(ie))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Wc=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=ep(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=ep(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=tp(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return tp(t,this._root).map(n=>n.value)}};function ep(e,t){if(e===t.value)return t;for(let n of t.children){let r=ep(e,n);if(r)return r}return null}function tp(e,t){if(e===t.value)return[t];for(let n of t.children){let r=tp(e,n);if(r.length)return r.unshift(t),r}return[]}var nt=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Eo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var ts=class extends Wc{snapshot;constructor(t,n){super(t),this.snapshot=n,up(this,t)}toString(){return this.snapshot.toString()}};function Xy(e,t){let n=Nx(e,t),r=new Me([new qn("",{})]),o=new Me({}),i=new Me({}),s=new Me({}),a=new Me(""),c=new it(r,o,s,a,i,j,e,n.root);return c.snapshot=n.root,new ts(new nt(c,[]),n)}function Nx(e,t){let n={},r={},o={},s=new So([],n,o,"",r,j,e,null,{},t);return new ns("",new nt(s,[]))}var it=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Z(l=>l[is]))??H(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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(Z(t=>Rr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Z(t=>Rr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lp(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:b(b({},t.params),e.params),data:b(b({},t.data),e.data),resolve:b(b(b(b({},e.data),t.data),o?.data),e._resolvedData)}:r={params:b({},e.params),data:b({},e.data),resolve:b(b({},e.data),e._resolvedData??{})},o&&t_(o)&&(r.resolve[is]=o.title),r}var So=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[is]}constructor(t,n,r,o,i,s,a,c,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l,this._environmentInjector=u}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??=Rr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Rr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},ns=class extends Wc{url;constructor(t,n){super(n),this.url=t,up(this,n)}toString(){return e_(this._root)}};function up(e,t){t.value._routerState=e,t.children.forEach(n=>up(e,n))}function e_(e){let t=e.children.length>0?` { ${e.children.map(e_).join(", ")} } `:"";return`${e.value}${t}`}function Wf(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Zt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Zt(t.params,n.params)||e.paramsSubject.next(n.params),ix(t.url,n.url)||e.urlSubject.next(n.url),Zt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function np(e,t){let n=Zt(e.params,t.params)&&ux(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||np(e.parent,t.parent))}function t_(e){return typeof e.title=="string"||e.title===null}var n_=new w(""),ss=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=j;activateEvents=new me;deactivateEvents=new me;attachEvents=new me;detachEvents=new me;routerOutletData=jv();parentContexts=y(Oo);location=y(ln);changeDetector=y(mo);inputBinder=y(Kc,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new rp(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=ve({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[sn]})}return e})(),rp=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===it?this.route:t===Oo?this.childContexts:t===n_?this.outletData:this.parent.get(t,n)}},Kc=new w("");var dp=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=be({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&$(0,"router-outlet")},dependencies:[ss],encapsulation:2})}return e})();function fp(e){let t=e.children&&e.children.map(fp),n=t?R(b({},e),{children:t}):b({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==j&&(n.component=dp),n}function Ox(e,t,n){let r=rs(e,t._root,n?n._root:void 0);return new ts(r,t)}function rs(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=Rx(e,t,n);return new nt(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>rs(e,a)),s}}let r=Px(t.value),o=t.children.map(i=>rs(e,i));return new nt(r,o)}}function Rx(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return rs(e,r,o);return rs(e,r)})}function Px(e){return new it(new Me(e.url),new Me(e.params),new Me(e.queryParams),new Me(e.fragment),new Me(e.data),e.outlet,e.component,e)}var To=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},r_="ngNavigationCancelingError";function Zc(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Wn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=o_(!1,Be.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function o_(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[r_]=!0,n.cancellationCode=t,n}function kx(e){return i_(e)&&Wn(e.url)}function i_(e){return!!e&&e[r_]}var op=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Wf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Eo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Eo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Eo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Eo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new qc(i.value.snapshot))}),t.children.length&&this.forwardEvent(new $c(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Wf(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Wf(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Qc=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Io=class{component;route;constructor(t,n){this.component=t,this.route=n}};function Fx(e,t,n){let r=e._root,o=t?t._root:null;return Wi(r,o,n,[r.value])}function Lx(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Ro(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!su(e)?e:t.get(e):r}function Wi(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Eo(t);return e.children.forEach(s=>{jx(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Yi(a,n.getContext(s),o)),o}function jx(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=Vx(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Qc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Wi(e,t,a?a.children:null,r,o):Wi(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Io(a.outlet.component,s))}else s&&Yi(t,a,o),o.canActivateChecks.push(new Qc(r)),i.component?Wi(e,null,a?a.children:null,r,o):Wi(e,null,n,r,o);return o}function Vx(e,t,n){if(typeof n=="function")return Ie(t._environmentInjector,()=>n(e,t));switch(n){case"pathParamsChange":return!Or(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Or(e.url,t.url)||!Zt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!np(e,t)||!Zt(e.queryParams,t.queryParams);default:return!np(e,t)}}function Yi(e,t,n){let r=Eo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Yi(s,t.children.getContext(i),n):Yi(s,null,n):Yi(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Io(t.outlet.component,o)):n.canDeactivateChecks.push(new Io(null,o)):n.canDeactivateChecks.push(new Io(null,o))}function as(e){return typeof e=="function"}function Bx(e){return typeof e=="boolean"}function Ux(e){return e&&as(e.canLoad)}function Hx(e){return e&&as(e.canActivate)}function $x(e){return e&&as(e.canActivateChild)}function zx(e){return e&&as(e.canDeactivate)}function qx(e){return e&&as(e.canMatch)}function s_(e){return e instanceof sr||e?.name==="EmptyError"}var Tc=Symbol("INITIAL_VALUE");function Ao(){return Qe(e=>Ul(e.map(t=>t.pipe(Kt(1),$l(Tc)))).pipe(Z(t=>{for(let n of t)if(n!==!0){if(n===Tc)return Tc;if(n===!1||Gx(n))return n}return!0}),bt(t=>t!==Tc),Kt(1)))}function Gx(e){return Wn(e)||e instanceof To}function a_(e){return e.aborted?H(void 0).pipe(Kt(1)):new q(t=>{let n=()=>{t.next(),t.complete()};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function c_(e){return Qo(a_(e))}function Wx(e){return He(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?H(R(b({},t),{guardsResult:!0})):Zx(i,n,r).pipe(He(s=>s&&Bx(s)?Qx(n,o,e):H(s)),Z(s=>R(b({},t),{guardsResult:s})))})}function Zx(e,t,n){return ce(e).pipe(He(r=>eM(r.component,r.route,n,t)),Jt(r=>r!==!0,!0))}function Qx(e,t,n){return ce(t).pipe(Gr(r=>qr(Kx(r.route.parent,n),Yx(r.route,n),Xx(e,r.path),Jx(e,r.route))),Jt(r=>r!==!0,!0))}function Yx(e,t){return e!==null&&t&&t(new zc(e)),H(!0)}function Kx(e,t){return e!==null&&t&&t(new Hc(e)),H(!0)}function Jx(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return H(!0);let r=n.map(o=>Wo(()=>{let i=t._environmentInjector,s=Ro(o,i),a=Hx(s)?s.canActivate(t,e):Ie(i,()=>s(t,e));return Fr(a).pipe(Jt())}));return H(r).pipe(Ao())}function Xx(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>Lx(i)).filter(i=>i!==null).map(i=>Wo(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,l=Ro(a,c),u=$x(l)?l.canActivateChild(n,e):Ie(c,()=>l(n,e));return Fr(u).pipe(Jt())});return H(s).pipe(Ao())}));return H(o).pipe(Ao())}function eM(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return H(!0);let i=o.map(s=>{let a=t._environmentInjector,c=Ro(s,a),l=zx(c)?c.canDeactivate(e,t,n,r):Ie(a,()=>c(e,t,n,r));return Fr(l).pipe(Jt())});return H(i).pipe(Ao())}function tM(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return H(!0);let s=i.map(a=>{let c=Ro(a,e),l=Ux(c)?c.canLoad(t,n):Ie(e,()=>c(t,n)),u=Fr(l);return o?u.pipe(c_(o)):u});return H(s).pipe(Ao(),l_(r))}function l_(e){return Fl(st(t=>{if(typeof t!="boolean")throw Zc(e,t)}),Z(t=>t===!0))}function nM(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return H(!0);let a=s.map(c=>{let l=Ro(c,e),u=qx(l)?l.canMatch(t,n,o):Ie(e,()=>l(t,n,o));return Fr(u).pipe(c_(i))});return H(a).pipe(Ao(),l_(r))}var gn=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype)}},os=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype)}};function rM(e){throw new C(4e3,!1)}function oM(e){throw o_(!1,Be.GuardRejected)}var ip=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}async lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[j])throw rM(`${t.redirectTo}`);o=o.children[j]}}async applyRedirectCommands(t,n,r,o,i){let s=await iM(n,o,i);if(s instanceof rt)throw new os(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new os(a);return a}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new rt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new J(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new C(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function iM(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return Rc(Fr(Ie(n,()=>r(t))))}function sM(e,t){return e.providers&&!e._injector&&(e._injector=Ni(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Qt(e){return e.outlet||j}function aM(e,t){let n=e.filter(r=>Qt(r)===t);return n.push(...e.filter(r=>Qt(r)!==t)),n}var sp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function u_(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function cM(e,t,n,r,o,i,s){let a=d_(e,t,n);if(!a.matched)return H(a);let c=u_(i(a));return r=sM(t,r),nM(r,t,n,o,c,s).pipe(Z(l=>l===!0?a:b({},sp)))}function d_(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?b({},sp):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||ky)(n,e,t);if(!o)return b({},sp);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?b(b({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Ry(e,t,n,r){return n.length>0&&dM(e,n,r)?{segmentGroup:new J(t,uM(r,new J(n,e.children))),slicedSegments:[]}:n.length===0&&fM(e,n,r)?{segmentGroup:new J(e.segments,lM(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new J(e.segments,e.children),slicedSegments:n}}function lM(e,t,n,r){let o={};for(let i of n)if(Jc(e,t,i)&&!r[Qt(i)]){let s=new J([],{});o[Qt(i)]=s}return b(b({},r),o)}function uM(e,t){let n={};n[j]=t;for(let r of e)if(r.path===""&&Qt(r)!==j){let o=new J([],{});n[Qt(r)]=o}return n}function dM(e,t,n){return n.some(r=>Jc(e,t,r)&&Qt(r)!==j)}function fM(e,t,n){return n.some(r=>Jc(e,t,r))}function Jc(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function pM(e,t,n){return t.length===0&&!e.children[n]}var ap=class{};async function hM(e,t,n,r,o,i,s="emptyOnly",a){return new cp(e,t,n,r,o,s,i,a).recognize()}var gM=31,cp=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new ip(this.urlSerializer,this.urlTree)}noMatchError(t){return new C(4002,`'${t.segmentGroup}'`)}async recognize(){let t=Ry(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=await this.match(t),o=new nt(r,n),i=new ns("",o),s=Wy(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}async match(t){let n=new So([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),j,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,t,j,n),rootSnapshot:n}}catch(r){if(r instanceof os)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof gn?this.noMatchError(r):r}}async processSegmentGroup(t,n,r,o,i){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=await this.processSegment(t,n,r,r.segments,o,!0,i);return s instanceof nt?[s]:[]}async processChildren(t,n,r,o){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let l=r.children[c],u=aM(n,c),d=await this.processSegmentGroup(t,u,l,c,o);s.push(...d)}let a=f_(s);return mM(a),a}async processSegment(t,n,r,o,i,s,a){for(let c of n)try{return await this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(l){if(l instanceof gn||s_(l))continue;throw l}if(pM(r,o,i))return new ap;throw new gn(r)}async processSegmentAgainstRoute(t,n,r,o,i,s,a,c){if(Qt(r)!==s&&(s===j||!Jc(o,i,r)))throw new gn(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new gn(o)}async expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:v}=d_(n,o,i);if(!c)throw new gn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>gM&&(this.allowRedirects=!1));let m=this.createSnapshot(t,o,i,l,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let D=await this.applyRedirects.applyRedirectCommands(u,o.redirectTo,d,u_(m),t),S=await this.applyRedirects.lineralizeSegments(o,D);return this.processSegment(t,r,n,S.concat(v),s,!1,a)}createSnapshot(t,n,r,o,i){let s=new So(r,o,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,yM(n),Qt(n),n.component??n._loadedComponent??null,n,_M(n),t),a=lp(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(t,n,r,o,i,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=vt=>this.createSnapshot(t,r,vt.consumedSegments,vt.parameters,s),c=await Rc(cM(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new gn(n);t=r._injector??t;let{routes:l}=await this.getChildConfig(t,r,o),u=r._loadedInjector??t,{parameters:d,consumedSegments:v,remainingSegments:m}=c,D=this.createSnapshot(t,r,v,d,s),{segmentGroup:S,slicedSegments:M}=Ry(n,v,m,l);if(M.length===0&&S.hasChildren()){let vt=await this.processChildren(u,l,S,D);return new nt(D,vt)}if(l.length===0&&M.length===0)return new nt(D,[]);let x=Qt(r)===i,Oe=await this.processSegment(u,l,S,M,x?j:i,!0,D);return new nt(D,Oe instanceof nt?[Oe]:[])}async getChildConfig(t,n,r){if(n.children)return{routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await Rc(tM(t,n,r,this.urlSerializer,this.abortSignal))){let i=await this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw oM(n)}return{routes:[],injector:t}}};function mM(e){e.sort((t,n)=>t.value.outlet===j?-1:n.value.outlet===j?1:t.value.outlet.localeCompare(n.value.outlet))}function vM(e){let t=e.value.routeConfig;return t&&t.path===""}function f_(e){let t=[],n=new Set;for(let r of e){if(!vM(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=f_(r.children);t.push(new nt(r.value,o))}return t.filter(r=>!n.has(r))}function yM(e){return e.data||{}}function _M(e){return e.resolve||{}}function bM(e,t,n,r,o,i,s){return He(async a=>{let{state:c,tree:l}=await hM(e,t,n,r,a.extractedUrl,o,i,s);return R(b({},a),{targetSnapshot:c,urlAfterRedirects:l})})}function CM(e){return He(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return H(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of p_(a))i.add(c);let s=0;return ce(i).pipe(Gr(a=>o.has(a)?DM(a,n,e):(a.data=lp(a,a.parent,e).resolve,H(void 0))),st(()=>s++),Ws(1),He(a=>s===i.size?H(t):Se))})}function p_(e){let t=e.children.map(n=>p_(n)).flat();return[e,...t]}function DM(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!t_(r)&&(o[is]=r.title),Wo(()=>(e.data=lp(e,e.parent,n).resolve,EM(o,e,t).pipe(Z(i=>(e._resolvedData=i,e.data=b(b({},e.data),i),null)))))}function EM(e,t,n){let r=Qf(e);if(r.length===0)return H({});let o={};return ce(r).pipe(He(i=>wM(e[i],t,n).pipe(Jt(),st(s=>{if(s instanceof To)throw Zc(new Gn,s);o[i]=s}))),Ws(1),Z(()=>o),Zo(i=>s_(i)?Se:Bl(i)))}function wM(e,t,n){let r=t._environmentInjector,o=Ro(e,r),i=o.resolve?o.resolve(t,n):Ie(r,()=>o(t,n));return Fr(i)}function Py(e){return Qe(t=>{let n=e(t);return n?ce(n).pipe(Z(()=>t)):H(t)})}var pp=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===j);return r}getResolvedTitleForRoute(n){return n.data[is]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>y(h_),providedIn:"root"})}return e})(),h_=(()=>{class e extends pp{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(N(My))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Po=new w("",{factory:()=>({})}),cs=new w(""),g_=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=y(vf);async loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await Ly(Ie(n,()=>r.loadComponent())),s=await y_(v_(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await m_(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function m_(e,t,n,r){let o=await Ly(Ie(n,()=>e.loadChildren())),i=await y_(v_(o)),s;i instanceof oc||Array.isArray(i)?s=i:s=await t.compileModuleAsync(i),r&&r(e);let a,c,l=!1,u;return Array.isArray(s)?(c=s,l=!0):(a=s.create(n).injector,u=s,c=a.get(cs,[],{optional:!0,self:!0}).flat()),{routes:c.map(fp),injector:a,factory:u}}function IM(e){return e&&typeof e=="object"&&"default"in e}function v_(e){return IM(e)?e.default:e}async function y_(e){return e}var Xc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>y(xM),providedIn:"root"})}return e})(),xM=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),__=new w("");var MM=()=>{},b_=new w(""),C_=(()=>{class e{currentNavigation=P(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=P(null);events=new ge;transitionAbortWithErrorSubject=new ge;configLoader=y(g_);environmentInjector=y(ie);destroyRef=y(qe);urlSerializer=y(No);rootContexts=y(Oo);location=y(_o);inputBindingEnabled=y(Kc,{optional:!0})!==null;titleStrategy=y(pp);options=y(Po,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=y(Xc);createViewTransition=y(__,{optional:!0});navigationErrorHandler=y(b_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>H(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new Bc(o)),r=o=>this.events.next(new Uc(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;ee(()=>{this.transitions?.next(R(b({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(n){return this.transitions=new Me(null),this.transitions.pipe(bt(r=>r!==null),Qe(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return H(r).pipe(Qe(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Be.SupersededByNewNavigation),Se;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?R(b({},c),{previousNavigation:null}):null,abort:()=>i.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&u!=="reload")return this.events.next(new mn(a.id,this.urlSerializer.serialize(a.rawUrl),"",Ji.IgnoredSameUrlNavigation)),a.resolve(!1),Se;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return H(a).pipe(Qe(d=>(this.events.next(new Pr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?Se:Promise.resolve(d))),bM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),st(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(v=>(v.finalUrl=d.urlAfterRedirects,v)),this.events.next(new es)}),Qe(d=>ce(r.routesRecognizeHandler.deferredHandle??H(void 0)).pipe(Z(()=>d))),st(()=>{let d=new Xi(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:v,source:m,restoredState:D,extras:S}=a,M=new Pr(d,this.urlSerializer.serialize(v),m,D);this.events.next(M);let x=Xy(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=R(b({},a),{targetSnapshot:x,urlAfterRedirects:v,extras:R(b({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Oe=>(Oe.finalUrl=v,Oe)),H(r)}else return this.events.next(new mn(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Ji.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Se}),Z(a=>{let c=new Fc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=R(b({},a),{guards:Fx(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),Wx(a=>this.events.next(a)),Qe(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Zc(this.urlSerializer,a.guardsResult);let c=new Lc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return Se;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",Be.GuardRejected),Se;if(a.guards.canActivateChecks.length===0)return H(a);let l=new jc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!s())return Se;let u=!1;return H(a).pipe(CM(this.paramsInheritanceStrategy),st({next:()=>{u=!0;let d=new Vc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{u||this.cancelNavigationTransition(a,"",Be.NoDataFromResolver)}}))}),Py(a=>{let c=u=>{let d=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let v=u._environmentInjector;d.push(this.configLoader.loadComponent(v,u.routeConfig).then(m=>{u.component=m}))}for(let v of u.children)d.push(...c(v));return d},l=c(a.targetSnapshot.root);return l.length===0?H(a):ce(Promise.all(l).then(()=>a))}),Py(()=>this.afterPreactivation()),Qe(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?ce(l).pipe(Z(()=>r)):H(r)}),Kt(1),Qe(a=>{let c=Ox(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=R(b({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new xo);let l=r.beforeActivateHandler.deferredHandle;return l?ce(l.then(()=>a)):H(a)}),st(a=>{new op(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(o=!0,this.currentNavigation.update(c=>(c.abort=MM,c)),this.lastSuccessfulNavigation.set(ee(this.currentNavigation)),this.events.next(new Yt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Qo(a_(i.signal).pipe(bt(()=>!o&&!r.targetRouterState),st(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",Be.Aborted)}))),st({complete:()=>{o=!0}}),Qo(this.transitionAbortWithErrorSubject.pipe(st(a=>{throw a}))),Rt(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",Be.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Zo(a=>{if(o=!0,this.destroyed)return r.resolve(!1),Se;if(i_(a))this.events.next(new ht(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),kx(a)?this.events.next(new Mo(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new kr(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let l=Ie(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof To){let{message:u,cancellationCode:d}=Zc(this.urlSerializer,l);this.events.next(new ht(r.id,this.urlSerializer.serialize(r.extractedUrl),u,d)),this.events.next(new Mo(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return Se}))}))}cancelNavigationTransition(n,r,o){let i=new ht(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=ee(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function SM(e){return e!==Qi}var D_=new w("");var E_=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>y(TM),providedIn:"root"})}return e})(),Yc=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return!0}},TM=(()=>{class e extends Yc{static \u0275fac=(()=>{let n;return function(o){return(n||(n=an(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),el=(()=>{class e{urlSerializer=y(No);options=y(Po,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=y(_o);urlHandlingStrategy=y(Xc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new rt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof rt?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=Xy(null,y(ie));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>y(AM),providedIn:"root"})}return e})(),AM=(()=>{class e extends el{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(n,r){n instanceof Pr?this.updateStateMemento():n instanceof mn?this.commitTransition(r):n instanceof Xi?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof xo?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof ht&&!Jy(n)?this.restoreHistory(r):n instanceof kr?this.restoreHistory(r,!0):n instanceof Yt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=b(b({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=b(b({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=an(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hp(e,t){e.events.pipe(bt(n=>n instanceof Yt||n instanceof ht||n instanceof kr||n instanceof mn),Z(n=>n instanceof Yt||n instanceof mn?0:(n instanceof ht?n.code===Be.Redirect||n.code===Be.SupersededByNewNavigation:!1)?2:1),bt(n=>n!==2),Kt(1)).subscribe(()=>{t()})}var Ue=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=y(cf);stateManager=y(el);options=y(Po,{optional:!0})||{};pendingTasks=y(rn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=y(C_);urlSerializer=y(No);location=y(_o);urlHandlingStrategy=y(Xc);injector=y(ie);_events=new ge;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=y(E_);injectorCleanup=y(D_,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=y(cs,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!y(Kc,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new _e;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=ee(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof ht&&r.code!==Be.Redirect&&r.code!==Be.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Yt)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Mo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=b({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||SM(o.source)},s);this.scheduleNavigation(a,Qi,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Ax(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Qi,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o,i)=>{this.navigateToSyncWithBrowser(n,o,r,i)})}navigateToSyncWithBrowser(n,r,o,i){let s=o?.navigationId?o:null;if(o){let c=b({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i).catch(c=>{this.disposed||this.injector.get(Xe)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return ee(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(fp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=b(b({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let v=o?o.snapshot:this.routerState.snapshot.root;d=Zy(v)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Qy(d,n,u,l??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Wn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Qi,null,r)}navigate(n,r={skipLocationChange:!1}){return NM(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.console.warn(xn(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=b({},Vy):r===!1?o=b({},Yf):o=b(b({},Yf),r),Wn(n))return Sy(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Sy(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,v)=>{a=d,c=v});let u=this.pendingTasks.add();return hp(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function NM(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new C(4008,!1)}var PM=(()=>{class e{router=y(Ue);stateManager=y(el);fragment=P("");queryParams=P({});path=P("");serializer=y(No);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof Yt&&this.updateState()})}updateState(){let{fragment:n,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(n),this.queryParams.set(o),this.path.set(this.serializer.serialize(new rt(r)))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gt=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=y(new cc("href"),{optional:!0});reactiveHref=yf(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return ee(this.reactiveHref)}set href(n){this.reactiveHref.set(n)}set target(n){this._target.set(n)}get target(){return ee(this._target)}_target=P(void 0);set queryParams(n){this._queryParams.set(n)}get queryParams(){return ee(this._queryParams)}_queryParams=P(void 0,{equal:()=>!1});set fragment(n){this._fragment.set(n)}get fragment(){return ee(this._fragment)}_fragment=P(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n)}get queryParamsHandling(){return ee(this._queryParamsHandling)}_queryParamsHandling=P(void 0);set state(n){this._state.set(n)}get state(){return ee(this._state)}_state=P(void 0,{equal:()=>!1});set info(n){this._info.set(n)}get info(){return ee(this._info)}_info=P(void 0,{equal:()=>!1});set relativeTo(n){this._relativeTo.set(n)}get relativeTo(){return ee(this._relativeTo)}_relativeTo=P(void 0);set preserveFragment(n){this._preserveFragment.set(n)}get preserveFragment(){return ee(this._preserveFragment)}_preserveFragment=P(!1);set skipLocationChange(n){this._skipLocationChange.set(n)}get skipLocationChange(){return ee(this._skipLocationChange)}_skipLocationChange=P(!1);set replaceUrl(n){this._replaceUrl.set(n)}get replaceUrl(){return ee(this._replaceUrl)}_replaceUrl=P(!1);isAnchorElement;onChanges=new ge;applicationErrorHandler=y(Xe);options=y(Po,{optional:!0});reactiveRouterState=y(PM);constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.onChanges.next(this)}routerLinkInput=P(null);set routerLink(n){n==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Wn(n)?this.routerLinkInput.set(n):this.routerLinkInput.set(Array.isArray(n)?n:[n]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}_urlTree=Ce(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let n=o=>o==="preserve"||o==="merge";(n(this._queryParamsHandling())||n(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Wn(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(n,r)=>this.computeHref(n)===this.computeHref(r)});get urlTree(){return ee(this._urlTree)}computeHref(n){return n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null}static \u0275fac=function(r){return new(r||e)(k(Ue),k(it),Ii("tabindex"),k(wr),k(Mt),k(yo))};static \u0275dir=ve({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&A("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&un("href",o.reactiveHref(),Ld)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Tr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Tr],replaceUrl:[2,"replaceUrl","replaceUrl",Tr],routerLink:"routerLink"},features:[sn]})}return e})();var kM=new w("");function gp(e,...t){return Tn([{provide:cs,multi:!0,useValue:e},[],{provide:it,useFactory:FM},{provide:ic,multi:!0,useFactory:LM},t.map(n=>n.\u0275providers)])}function FM(){return y(Ue).routerState.root}function LM(){let e=y(ze);return t=>{let n=e.get(Ir);if(t!==n.components[0])return;let r=e.get(Ue),o=e.get(jM);e.get(VM)===1&&r.initialNavigation(),e.get(BM,null,{optional:!0})?.setUpPreloading(),e.get(kM,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var jM=new w("",{factory:()=>new ge}),VM=new w("",{factory:()=>1});var BM=new w("");var vp=[{slug:"formacao-plataforma",category:"Formacao",categoryIcons:["/categorias/extratos.svg","/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg","/categorias/tesouraria.svg"],title:"Metacase Learning Hub",description:"Tutorial de funcionamento da plataforma das forma\xE7\xF5es base do ecosistema TargetOne.",summary:`O Metacase Learning Hub \xE9 a plataforma oficial de aprendizagem e capacita\xE7\xE3o dedicada ao ecossistema Target One, concebida para apoiar utilizadores, parceiros e equipas t\xE9cnicas no dom\xEDnio completo das funcionalidades, processos e boas pr\xE1ticas associadas a este programa.
A plataforma Target One, desenvolvida pela MetaCase, constitui um conjunto de componentes especializados destinados \xE0 gest\xE3o integrada dos fluxos financeiros das organiza\xE7\xF5es, permitindo centralizar opera\xE7\xF5es, automatizar processos e fornecer informa\xE7\xE3o fi\xE1vel para suporte \xE0 tomada de decis\xE3o. Neste contexto, o Metacase Learning Hub surge como um ambiente digital estruturado de forma\xE7\xE3o cont\xEDnua que re\xFAne conte\xFAdos program\xE1ticos, cursos especializados e recursos t\xE9cnicos que permitem compreender e explorar todo o potencial da plataforma Target One.
Inspirado nos modelos de academias tecnol\xF3gicas globais, o Metacase Learning Hub funciona como um reposit\xF3rio centralizado de conhecimento.`,topics:["Gest\xE3o de fluxos financeiros","Reconcilia\xE7\xF5es banc\xE1rias","Gest\xE3o de pagamentos e cobran\xE7as","Integra\xE7\xE3o com sistemas ERP","Previs\xE3o de tesouraria e liquidez","Processos operacionais, estrat\xE9gicos e de controlo financeiro"],level:"Iniciante",duration:"1h 00min",language:"Portugu\xEAs",format:"Aut\xF3nomo",image:"imagenscursos/learninghub.png",focusAreas:["Navegacao da plataforma","Pesquisa e filtros","Operacoes do dia a dia"],prerequisites:["Nenhum"],audience:["Todos os utilizadores"],objectives:["Conhecer a plataforma da Metacase Learning Hub","Iniciar a forma\xE7\xE3o","Validar conhecimentos"],outcomes:["Compreensao do fluxo base de trabalho","Autonomia para consultas e operacoes simples","Conhecimento das melhores praticas de utilizacao"],modules:[{title:"Vis\xE3o geral da plataforma",duration:"15 min",description:"Mapa funcional da aplica\xE7\xE3o Metacase Learning Hub."},{title:"Detalhe das p\xE1ginas da forma\xE7\xE3o",duration:"20 min",description:"Descri\xE7\xE3o da forma\xE7\xE3o, desde compet\xEAncias a adquirir objetivos espec\xEDficos da mesma e tempo de dura\xE7\xE3o."},{title:"Estrutura das forma\xE7\xF5es",duration:"10 min",description:"Execu\xE7\xE3o das forma\xE7\xF5es per si, divis\xE3o de conte\xFAdos program\xE1ticos, desde texto a intera\xE7\xF5es de v\xEDdeo."},{title:"Perguntas de valida\xE7\xE3o",duration:"15 min",description:"Detalhe dos v\xE1rios tipos de perguntas de cariz validativo, que podem complementar a forma\xE7\xE3o."}],lessonSections:[{title:"Vis\xE3o geral da plataforma",paragraphs:[`<strong>Aprendizagem estruturada e orientada \xE0 pr\xE1tica</strong>
O Metacase Learning Hub foi concebido para proporcionar uma experi\xEAncia de aprendizagem progressiva e pr\xE1tica. Cada curso aborda cen\xE1rios reais de utiliza\xE7\xE3o do Target One, permitindo aos participantes compreender n\xE3o apenas as funcionalidades t\xE9cnicas da plataforma, mas tamb\xE9m os processos de neg\xF3cio que esta suporta.
A organiza\xE7\xE3o dos conte\xFAdos segue uma l\xF3gica modular, permitindo que cada utilizador construa o seu pr\xF3prio percurso de aprendizagem, evoluindo desde conceitos fundamentais at\xE9 n\xEDveis mais avan\xE7ados de configura\xE7\xE3o, integra\xE7\xE3o e otimiza\xE7\xE3o de processos.
<strong> Capacita\xE7\xE3o para utilizadores, parceiros e especialistas </strong>
A plataforma desempenha tamb\xE9m um papel estrat\xE9gico no onboarding e capacita\xE7\xE3o de novos utilizadores e parceiros, garantindo que todas as equipas que trabalham com o Target One possuem um entendimento consistente da arquitetura, das funcionalidades e das melhores pr\xE1ticas de utiliza\xE7\xE3o. Ao consolidar conhecimento, documenta\xE7\xE3o e forma\xE7\xE3o num \xFAnico ambiente digital, o Metacase Learning Hub promove:`],bullets:["Maior autonomia dos utilizadores na opera\xE7\xE3o da plataforma","Maior rapidez na ado\xE7\xE3o de novas funcionalidades","Padroniza\xE7\xE3o de processos e boas pr\xE1ticas","Desenvolvimento cont\xEDnuo de compet\xEAncias no ecossistema Target One"],paragraphs2:[`<strong>Um centro de conhecimento para inova\xE7\xE3o financeira</strong>
Mais do que um simples portal de forma\xE7\xE3o, o Metacase Learning Hub posiciona-se como um centro de conhecimento e capacita\xE7\xE3o tecnol\xF3gica, permitindo que organiza\xE7\xF5es e profissionais tirem o m\xE1ximo partido das capacidades da plataforma Target One e das solu\xE7\xF5es de gest\xE3o de fluxos financeiros desenvolvidas pela MetaCase. Ao combinar aprendizagem estruturada, conte\xFAdos t\xE9cnicos especializados e uma abordagem orientada \xE0 pr\xE1tica, o Metacase Learning Hub contribui para acelerar a ado\xE7\xE3o do Target One e para maximizar o valor que esta plataforma pode trazer \xE0 gest\xE3o financeira das organiza\xE7\xF5es.
`],imagem:"/screenshots/Pagina Principal.jpg",paragraphs3:[""],paragraphs4:[""],paragraphs5:[""]},{title:"Detalhe das p\xE1ginas da forma\xE7\xE3o",paragraphs:[`O Metacase Learning Hub \xE9 estruturado, na sua base, como uma biblioteca centralizada de cursos, apresentados na p\xE1gina principal da plataforma. Estes cursos representam componentes essenciais para a correta utiliza\xE7\xE3o e compreens\xE3o do ecossistema TargetOne, reunindo conte\xFAdos formativos que abordam os principais processos, funcionalidades e contextos operacionais associados \xE0 plataforma.
Cada curso encontra-se representado atrav\xE9s de um cart\xE3o informativo, onde \xE9 disponibilizada uma descri\xE7\xE3o sucinta do conte\xFAdo formativo, a \xE1rea tem\xE1tica a que se refere e a respetiva dura\xE7\xE3o estimada em horas. O acesso a cada forma\xE7\xE3o \xE9 efetuado atrav\xE9s do bot\xE3o \u201CEntrar\u201D, dispon\xEDvel em cada cart\xE3o, permitindo ao utilizador iniciar diretamente o percurso de aprendizagem associado ao curso selecionado.
Esta abordagem permite organizar os conte\xFAdos de forma clara e intuitiva, facilitando a navega\xE7\xE3o e o acesso r\xE1pido \xE0s diferentes forma\xE7\xF5es dispon\xEDveis no portal.`],paragraphs2:[`Adicionalmente, no canto superior direito da interface, encontra-se disponibilizado um link de acesso r\xE1pido para a p\xE1gina principal da MetaCase, permitindo aos utilizadores navegar facilmente entre o portal de forma\xE7\xE3o e o website institucional da empresa. Esta funcionalidade refor\xE7a a integra\xE7\xE3o do Metacase Learning Hub no ecossistema digital da organiza\xE7\xE3o e facilita o acesso a informa\xE7\xE3o adicional sobre a empresa, os seus produtos e as solu\xE7\xF5es associadas \xE0 plataforma TargetOne.
`],paragraphs3:[`Ao aceder a um curso atrav\xE9s do bot\xE3o \u201CEntrar\u201D, o utilizador \xE9 direcionado para a p\xE1gina de descri\xE7\xE3o do curso selecionado, onde s\xE3o apresentadas as informa\xE7\xF5es essenciais sobre a forma\xE7\xE3o e a respetiva estrutura de conte\xFAdos. Esta p\xE1gina encontra-se organizada numa estrutura bipartida verticalmente, permitindo separar de forma clara a informa\xE7\xE3o geral da forma\xE7\xE3o da descri\xE7\xE3o detalhada dos seus conte\xFAdos.
<Strong>Primeira sec\xE7\xE3o \u2013 Informa\xE7\xE3o geral da forma\xE7\xE3o</strong>
Na primeira \xE1rea da p\xE1gina (vis\xEDvel na parte superior da interface), \xE9 apresentada uma vis\xE3o geral do curso, incluindo a sua designa\xE7\xE3o, uma descri\xE7\xE3o introdut\xF3ria e os principais elementos informativos associados \xE0 forma\xE7\xE3o.`],bullets2:["Descri\xE7\xE3o geral da forma\xE7\xE3o, que contextualiza o objetivo do curso e a sua rela\xE7\xE3o com o ecossistema TargetOne;","Dura\xE7\xE3o total estimada, permitindo ao utilizador compreender o tempo necess\xE1rio para concluir a forma\xE7\xE3o;","Formato da forma\xE7\xE3o, indicando se o percurso \xE9 realizado de forma Aut\xF3noma, Instructor-led, Live Online, Blended Learning, Microlearning ou ainda Certifica\xE7\xE3o;","N\xFAmero total de m\xF3dulos que comp\xF5em o curso."],paragraphs4:["Adicionalmente, \xE9 disponibilizado um bloco de informa\xE7\xE3o complementar da forma\xE7\xE3o, onde s\xE3o apresentados:"],bullets3:["N\xEDvel de dificuldade do curso;","Idioma em que a forma\xE7\xE3o \xE9 disponibilizada;","Formato de aprendizagem;.","Pr\xE9-requisitos necess\xE1rios para frequentar o curso;","P\xFAblico-alvo a quem a forma\xE7\xE3o se destina."],paragraphs5:[`Nesta mesma \xE1rea encontra-se tamb\xE9m um painel lateral de a\xE7\xE3o, que permite ao utilizador iniciar diretamente a forma\xE7\xE3o atrav\xE9s do bot\xE3o \u201CIniciar forma\xE7\xE3o\u201D, bem como regressar rapidamente ao menu principal das forma\xE7\xF5es.
`],imagem:"/screenshots/Descricaopgprincipal.jpg",imagem2:"/screenshots/detalhecurso.jpg",bullets4:["T\xEDtulo do m\xF3dulo;","Breve descri\xE7\xE3o do conte\xFAdo abordado;","Dura\xE7\xE3o estimada de cada unidade;.","compet\xEAncias a adequirir."],imagem3:"/screenshots/detalhecurso2.jpg",paragraphs6:[`
<strong>Segunda sec\xE7\xE3o \u2013 Estrutura e compet\xEAncias da forma\xE7\xE3o</strong>
Na segunda parte da p\xE1gina \xE9 apresentada uma descri\xE7\xE3o mais detalhada da estrutura pedag\xF3gica da forma\xE7\xE3o, permitindo ao utilizador compreender de forma clara os conte\xFAdos que ser\xE3o abordados ao longo da forma\xE7\xE3o. Adicionalmente na coluna direita s\xE3o apesentadas as compet\xEAncias expect\xE1veis de serem adequiridas no final da forma\xE7\xE3o.
Nesta \xE1rea \xE9 exibida a estrutura da forma\xE7\xE3o, organizada por li\xE7\xF5es ou m\xF3dulos, onde cada unidade apresenta:`]},{title:"Estrutura das forma\xE7\xF5es",paragraphs:[`Ao iniciar uma forma\xE7\xE3o, o utilizador \xE9 direcionado para a p\xE1gina principal do curso, que foi desenvolvida com base numa Single Page Application (SPA). Esta abordagem permite que todos os conte\xFAdos da forma\xE7\xE3o sejam apresentados de forma cont\xEDnua e fluida, sem necessidade de navegar entre m\xFAltiplas p\xE1ginas.
A forma\xE7\xE3o inicia-se com uma sec\xE7\xE3o de contextualiza\xE7\xE3o dos temas, onde \xE9 apresentado o enquadramento geral do curso, seguindo-se posteriormente os m\xF3dulos espec\xEDficos que comp\xF5em o percurso formativo.
A navega\xE7\xE3o entre os diferentes m\xF3dulos pode ser realizada atrav\xE9s de duas formas complementares. Por um lado, existe um menu lateral localizado no lado esquerdo da interface, que permite ao formando aceder diretamente aos diferentes m\xF3dulos da forma\xE7\xE3o. Por outro lado, \xE9 disponibilizada uma barra de progress\xE3o situada na parte superior direita da p\xE1gina, que permite acompanhar o progresso ao longo do curso e facilitar a navega\xE7\xE3o entre as diferentes sec\xE7\xF5es.
A Single Page Application foi concebida para proporcionar uma experi\xEAncia de aprendizagem sequencial e intuitiva, permitindo que o formando percorra os conte\xFAdos de forma cont\xEDnua. Assim, o utilizador pode simplesmente avan\xE7ar na leitura da forma\xE7\xE3o, uma vez que os m\xF3dulos foram organizados de forma sequencial e l\xF3gica, acompanhando a progress\xE3o natural dos temas abordados ao longo do curso.
`],paragraphs2:[],paragraphs3:[`As imagens, gr\xE1ficos e organigramas apresentados ao longo das forma\xE7\xF5es s\xE3o interativos, permitindo ao utilizador visualizar os conte\xFAdos com maior detalhe. Para tal, basta clicar sobre o elemento pretendido, sendo automaticamente aberta uma visualiza\xE7\xE3o ampliada.
Nesta visualiza\xE7\xE3o, \xE9 disponibilizado no canto superior um conjunto de ferramentas de intera\xE7\xE3o, que permitem ao utilizador explorar o conte\xFAdo apresentado. Entre estas funcionalidades incluem-se, por exemplo, op\xE7\xF5es de zoom, que permitem ampliar ou reduzir a imagem para uma melhor an\xE1lise, bem como o bot\xE3o de fecho, que possibilita regressar facilmente \xE0 p\xE1gina da forma\xE7\xE3o.`],paragraphs4:[""],imagem:"/screenshots/Curso.jpg",imagem2:"/screenshots/Curso1.2.jpg",paragraphs5:['Para al\xE9m dos videos, imagens e conte\xFAdo interativo, existe ainda as apresenta\xE7\xF5es interativas. Estas apresenta\xE7\xF5es t\xEAm a finalidade de permitir ao utilizar navegar entre um conjunto de informa\xE7\xE3o disponivel sobre uma mat\xE9ria e funciona da mesma forma que o explicado anteriormente para as imagens. Adicionalmente nestes casos quando estas apresenta\xE7\xF5es interativas surgem nos m\xF3dulos, permitem ao utilizador passar entre informa\xE7\xE3o atrav\xE9s de dois bot\xF5es de "Seguinte" para passar para o proximo slide e de "Anterior" para voltar ao slide anterior. No caso de o user quiser apenas o foco nestes slides basta clicar na imagem da apresenta\xE7\xE3o que esta foca o conteudo e os bot\xF5es de navega\xE7\xE3o passam para o canto superior direito junto ao zoom e ao bot\xE3o de fechar j\xE1 l\xE1 existentes.'],presentationImages:["/screenshots/Curso1.3.jpg","/screenshots/Curso1.4.jpg"]},{title:"Perguntas de valida\xE7\xE3o",paragraphs:[`No final de cada m\xF3dulo encontra-se disponibilizada uma sec\xE7\xE3o dedicada \xE0 valida\xE7\xE3o de conhecimentos, destinada a avaliar a compreens\xE3o dos conte\xFAdos abordados ao longo do m\xF3dulo. Esta avalia\xE7\xE3o \xE9 realizada atrav\xE9s de um conjunto de perguntas de escolha m\xFAltipla, sendo apresentadas tr\xEAs op\xE7\xF5es de resposta para cada quest\xE3o, das quais apenas uma \xE9 correta.
As perguntas s\xE3o selecionadas a partir de uma pool de quest\xF5es associadas \xE0 forma\xE7\xE3o, permitindo que estas variem entre diferentes tentativas. Desta forma, caso o formando repita o curso ou volte a realizar a avalia\xE7\xE3o, a probabilidade de encontrar exatamente as mesmas perguntas \xE9 reduzida, contribuindo para uma avalia\xE7\xE3o mais consistente dos conhecimentos adquiridos.
Adicionalmente, nos cursos que incluem mecanismos de certifica\xE7\xE3o, encontra-se definido um limiar m\xEDnimo de aprova\xE7\xE3o de 80% de respostas corretas. Caso o formando n\xE3o atinja este valor, o curso n\xE3o poder\xE1 ser conclu\xEDdo, sendo apresentada apenas a op\xE7\xE3o de repetir a forma\xE7\xE3o. Por outro lado, caso o formando obtenha uma pontua\xE7\xE3o igual ou superior a 80% de respostas corretas, a forma\xE7\xE3o \xE9 considerada conclu\xEDda, ficando dispon\xEDvel a op\xE7\xE3o de finalizar o curso.
Atualmente, todas as forma\xE7\xF5es est\xE3o configuradas para apresentar cinco perguntas no momento de valida\xE7\xE3o final, sendo estas selecionadas e apresentadas de forma aleat\xF3ria a partir da pool de quest\xF5es definida para cada curso.`],paragraphs2:[`A resposta \xE0s perguntas de valida\xE7\xE3o de conhecimentos \xE9 realizada atrav\xE9s da sele\xE7\xE3o da op\xE7\xE3o que o formando considera correta. Ap\xF3s a escolha da resposta, o sistema fornece feedback imediato, informando se a resposta selecionada est\xE1 correta ou incorreta.
Caso a resposta esteja correta, a op\xE7\xE3o escolhida \xE9 destacada com um contorno verde, indicando que a sele\xE7\xE3o foi acertada. Por outro lado, se a resposta estiver incorreta, a op\xE7\xE3o selecionada pelo formando \xE9 assinalada a vermelho, sendo simultaneamente destacada a verde a op\xE7\xE3o correspondente \xE0 resposta correta, permitindo assim ao utilizador identificar imediatamente a solu\xE7\xE3o correta para a quest\xE3o apresentada.
`],paragraphs3:[],paragraphs4:[""],imagem:"/screenshots/Curso2.jpg",paragraphs5:[""]}],questions:[{prompt:"Qual das seguintes \xE1reas faz parte das funcionalidades abordadas na plataforma Target One?",options:["Gest\xE3o de redes sociais corporativas.","Gest\xE3o de fluxos financeiros.","Desenvolvimento de aplica\xE7\xF5es m\xF3veis para clientes."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"Qual \xE9 o principal objetivo do Metacase Learning Hub?",options:["Servir apenas como reposit\xF3rio de documenta\xE7\xE3o t\xE9cnica do Target One.","Substituir completamente os sistemas ERP utilizados pelas organiza\xE7\xF5es.","Disponibilizar uma plataforma de aprendizagem e capacita\xE7\xE3o para utilizadores, parceiros e equipas t\xE9cnicas que trabalham com o ecossistema Target One."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:2},{prompt:"Qual \xE9 o principal objetivo do Metacase Learning Hub?",options:["Servir como plataforma de gest\xE3o financeira para empresas.","Centralizar conte\xFAdos formativos e capacitar utilizadores no ecossistema TargetOne.","Substituir o website institucional da MetaCase."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:2},{prompt:"Como s\xE3o apresentados os cursos na p\xE1gina principal da plataforma?",options:["Atrav\xE9s de cart\xF5es informativos com descri\xE7\xE3o, tema e dura\xE7\xE3o da forma\xE7\xE3o.","Atrav\xE9s de listas t\xE9cnicas sem qualquer descri\xE7\xE3o.","Atrav\xE9s de documentos PDF descarreg\xE1veis."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"O que acontece quando o utilizador seleciona o bot\xE3o \u201CEntrar\u201D num curso?",options:["\xC9 direcionado para a p\xE1gina de descri\xE7\xE3o detalhada da forma\xE7\xE3o selecionada.","\xC9 automaticamente inscrito em todas as forma\xE7\xF5es dispon\xEDveis.","\xC9 redirecionado para o website institucional da MetaCase."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Como est\xE1 organizada a p\xE1gina de descri\xE7\xE3o de um curso?",options:["Em tr\xEAs \xE1reas independentes sem liga\xE7\xE3o entre si.","Numa estrutura bipartida que separa informa\xE7\xE3o geral da estrutura da forma\xE7\xE3o.","Apenas numa lista simples de m\xF3dulos."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:2},{prompt:"De que forma o utilizador pode navegar entre os m\xF3dulos da forma\xE7\xE3o?",options:["Apenas atrav\xE9s do bot\xE3o \u201Cvoltar atr\xE1s\u201D do navegador.","Atrav\xE9s do menu lateral e da barra de progress\xE3o da forma\xE7\xE3o.","Apenas utilizando um motor de pesquisa interno."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:2}]},{slug:"Target One",category:"Formacao",categoryIcons:["/categorias/operacoes-financeiras.svg","/categorias/tesouraria.svg","/categorias/reconciliacoes-bancarias.svg"],pdfPath:"/Powerpoints/Manual%20Metacase.pdf",pdfTitle:"Manual Apresenta\xE7\xE3o Target One",pdfDescription:"Manual Apresenta\xE7\xE3o Target One",pdfDownloadName:"Manual Metacase.pdf",title:"Target One",description:"Descrimina\xE7\xE3o completa da plataforma base, para novos utilizadores.",summary:"A Plataforma Target One, desenvolvida pela MetaCase, \xE9 uma solu\xE7\xE3o integrada para a gest\xE3o e controlo dos fluxos financeiros de empresas e grupos empresariais. Atrav\xE9s da centraliza\xE7\xE3o da informa\xE7\xE3o financeira e da integra\xE7\xE3o com ERPs, sistemas internos e institui\xE7\xF5es financeiras, permite apoiar a tomada de decis\xE3o com dados fi\xE1veis em tempo real. O seu ecossistema \xE9 composto por diversas componentes interligadas que suportam processos essenciais de tesouraria, pagamentos, reconcilia\xE7\xF5es e opera\xE7\xF5es financeiras, garantindo efici\xEAncia, seguran\xE7a e escalabilidade na gest\xE3o financeira das organiza\xE7\xF5es.",topics:[],level:"Avancado",duration:"55 min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/targetone.png",focusAreas:["Plataforma Target One","T Painel de Controlo","T Par\xE2metros","T Extratos","T Reconcilia\xE7\xF5es","T Contabiliza\xE7\xE3o","T Tesouraria","T Pagamentos","T Cobran\xE7as & Recebimentos","T Caixas","T Opera\xE7\xF5es Financeiras","T Or\xE7amento"],prerequisites:["Metacase Learning Hub","Acesso ao Target One"],audience:["Todos"],objectives:["Compreender a plataforma Target One","Entender as no\xE7\xF5es b\xE1sicas das componentos do ecossistema Target One"],outcomes:["Maior dominio do fluxo financeiro","Melhor leitura dos movimentos e extratos","Mais rapidez no controlo e validacao diarios"],modules:[{title:"Plataforma Target One",duration:"5 min",description:"Explica\xE7\xE3o do programa Target One"},{title:"Descri\xE7\xE3o das Componentes do Target One",duration:"50 min",description:"Explica\xE7\xE3o das v\xE1rias componentes da plataforma."}],lessonSections:[{title:"TargetOne",paragraphs:[`A Target One \xE9 uma plataforma desenvolvida pela MetaCase para otimizar e controlar os fluxos financeiros de empresas e grupos, garantindo efici\xEAncia, seguran\xE7a e integra\xE7\xE3o com sistemas existentes. <strong>
Principais vantagens:
</strong>`],paragraphs2:[""],bullets:["Decis\xE3o informada com acesso a dados fi\xE1veis em tempo real;","Integra\xE7\xE3o global com ERPs, sistemas internos e institui\xE7\xF5es financeiras;","Seguran\xE7a e auditoria (SOX Compliance) com hist\xF3rico de altera\xE7\xF5es e controlo de acessos;","Flexibilidade e escalabilidade, permitindo integrar novas funcionalidades conforme as necessidades do neg\xF3cio;"],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Componentes TargetOne",paragraphs:["O ecossistema TargetOne \xE9 constitu\xEDdo por um conjunto de componentes que suportam a gest\xE3o integrada dos fluxos financeiros, nomeadamente o Painel de Controlo, Par\xE2metros, Extratos, Reconcilia\xE7\xF5es, Contabiliza\xE7\xE3o, Tesouraria, Pagamentos, Cobran\xE7as & Recebimentos, Caixas, Opera\xE7\xF5es Financeiras e Opera\xE7\xF5es de Or\xE7amento."],paragraphs2:[],presentationImages:["/Powerpoints/TargetOne/Diapositivo1.PNG","/Powerpoints/TargetOne/Diapositivo2.PNG","/Powerpoints/TargetOne/Diapositivo3.PNG","/Powerpoints/TargetOne/Diapositivo4.PNG","/Powerpoints/TargetOne/Diapositivo5.PNG","/Powerpoints/TargetOne/Diapositivo6.PNG","/Powerpoints/TargetOne/Diapositivo7.PNG","/Powerpoints/TargetOne/Diapositivo8.PNG","/Powerpoints/TargetOne/Diapositivo9.PNG","/Powerpoints/TargetOne/Diapositivo10.PNG","/Powerpoints/TargetOne/Diapositivo11.PNG","/Powerpoints/TargetOne/Diapositivo12.PNG","/Powerpoints/TargetOne/Diapositivo13.PNG","/Powerpoints/TargetOne/Diapositivo1.PNG"],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Conhecimentos a consolidar",paragraphs:["Usa esta secao para reforcar a interpretacao de desvios, excecoes e fecho diario.","Se quiseres, mais tarde podes acrescentar imagens, tabelas ou exemplos de casos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Qual \xE9 o principal objetivo da plataforma Target One?",options:["Gerir exclusivamente recursos humanos das empresas.","Permitir uma gest\xE3o eficaz, rigorosa e otimizada dos fluxos financeiros das empresas e grupos.","Substituir completamente os sistemas ERP das empresas."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"Uma das principais vantagens da plataforma Target One \xE9:",options:["Tomada de decis\xE3o baseada em informa\xE7\xF5es fi\xE1veis e em tempo \xFAtil.","Substitui\xE7\xE3o de todos os sistemas financeiros existentes.","Gest\xE3o exclusiva de contas banc\xE1rias pessoais."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"A conectividade da plataforma Target One permite:",options:["Integra\xE7\xE3o com ERPs, sistemas das empresas e institui\xE7\xF5es financeiras.","Liga\xE7\xE3o apenas a bases de dados locais.","Liga\xE7\xE3o apenas a sistemas de contabilidade offline."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual componente permite o acesso \xE0s v\xE1rias funcionalidades da plataforma e a gest\xE3o de permiss\xF5es?",options:["Tesouraria","Painel de Controlo","Opera\xE7\xF5es Financeiras"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"O componente T Par\xE2metros \xE9 utilizado principalmente para:",options:["Configura\xE7\xE3o e manuten\xE7\xE3o de cadastro transversal.","Execu\xE7\xE3o de pagamentos banc\xE1rios.","Cria\xE7\xE3o de contratos financeiros."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual componente permite a auditoria e gest\xE3o de informa\xE7\xE3o dos extratos banc\xE1rios?",options:["Extratos","Or\xE7amento","Caixas"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"A reconcilia\xE7\xE3o banc\xE1ria na plataforma Target One pode ser realizada de que forma?",options:["Apenas manualmente.","Autom\xE1tica e manual.","Apenas atrav\xE9s do ERP."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"O m\xF3dulo de Contabiliza\xE7\xE3o permite:",options:["Classifica\xE7\xE3o e contabiliza\xE7\xE3o autom\xE1tica de fluxos financeiros.","Gest\xE3o de recursos humanos.","Gest\xE3o de invent\xE1rio."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual componente permite obter uma vis\xE3o global da posi\xE7\xE3o de tesouraria da empresa?",options:["Tesouraria","Cobran\xE7as & Recebimentos","Caixas"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"O m\xF3dulo T Pagamentos permite:",options:["Apenas visualizar saldos banc\xE1rios.","Criar, aprovar e enviar propostas de pagamento para os bancos.","Gerir invent\xE1rio de produtos."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1},{prompt:"Qual componente \xE9 respons\xE1vel pela gest\xE3o de cobran\xE7as e recebimentos das empresas?",options:["Cobran\xE7as & Recebimentos","Tesouraria","Par\xE2metros"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"O m\xF3dulo T Caixas permite:",options:["Gerir fechos de caixa e presta\xE7\xF5es de contas.","Gerir contratos financeiros.","Criar or\xE7amentos financeiros."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual componente permite gerir contratos associados a instrumentos financeiros?",options:["Opera\xE7\xF5es Financeiras","Pagamentos","Extratos"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"O m\xF3dulo T Or\xE7amento permite:",options:["Gest\xE3o do or\xE7amento de tesouraria e an\xE1lise de desvios.","Gest\xE3o de contas de clientes.","Gest\xE3o de sal\xE1rios."],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:0},{prompt:"Qual funcionalidade permite acompanhar o estado das propostas enviadas aos bancos?",options:["Reconcilia\xE7\xF5es","Pagamentos","Par\xE2metros"],note:"Apenas uma resposta est\xE1 certa",correctOptionIndex:1}]},{slug:"T Extratos",category:"Extratos",categoryIcons:["/categorias/operacoes-financeiras.svg","/categorias/tesouraria.svg","/categorias/reconciliacoes-bancarias.svg"],title:"T Extratos",description:"Forma\xE7\xE3o especifica para a componente de T Estratos do ecosistema Target One.",summary:"Formacao focada nas rotinas de tesouraria para utilizadores que precisam de acompanhar movimentos, validar consistencia e garantir controlo sobre o ciclo financeiro diario.",topics:[],level:"Avancado",duration:"7h 30min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/Extratos.png",focusAreas:["Operacoes financeiras","Movimentos e extratos","Reconciliacao bancaria"],prerequisites:["Acesso \xE0 Plataforma Target One","Acesso \xE0 Componente T Extractos"],audience:["Equipas de Extractos","Clientes T Extratos"],objectives:["Compreender o papel da Componente T Extractos","Gest\xE3o e integra\xE7\xE3o de extratos banc\xE1rios","Normaliza\xE7\xE3o de fluxos banc\xE1rio","Valida\xE7\xE3o e controlo de extratos","Auditoria e monitoriza\xE7\xE3o da informa\xE7\xE3o banc\xE1ria","Utiliza\xE7\xE3o operacional da componente"],outcomes:["Maior dominio do fluxo financeiro","Melhor leitura dos movimentos e extratos","Mais rapidez no controlo e validacao diarios"],modules:[{title:"Contextualiza\xE7\xE3o da componente T Extractos",duration:"5 min",description:"Explica\xE7\xE3o sum\xE1ria da componente da forma\xE7\xE3o."},{title:"Menus",duration:"25 min",description:"Explora\xE7\xE3o dos menus bases existentes."},{title:"Fun\xE7\xF5es Gerais da Componente",duration:"30 min",description:"Explica\xE7\xE3o das Teclas de atalho, icons e fun\xE7\xF5es das mesmas."},{title:"Outras Funcionalidades",duration:"60 min",description:"Funcionalidades complementares dentro da componente T Extratos."},{title:"Rece\xE7\xE3o de Extratos Banc\xE1rios - Integra\xE7\xE3o",duration:"90 min",description:"Visualiza\xE7\xE3o de todos os extratos banc\xE1rios atrav\xE9s de diferentes modos de integra\xE7\xE3o, e an\xE1lise das diferentes situa\xE7\xF5es."},{title:"An\xE1lises/Reports",duration:"90 min",description:"Consulta e an\xE1lise dos dados dos extratos banc\xE1rios integrados no sistema."},{title:"Consulta de Estat\xEDsticas dos Extratos",duration:"30 min",description:"Visualiza\xE7\xE3o de saldos m\xE9dios por c\xF3digo de extrato."},{title:"Configura\xE7\xE3o - Aplica\xE7\xE3o",duration:"90 min",description:"Aceder e configurar os par\xE2metros relacionados com a gest\xE3o de extratos banc\xE1rios."}],lessonSections:[{title:"Contextualiza\xE7\xE3o da componente T Extractos",paragraphs:["A Componente T Extractos \xE9 especializada na auditoria, gest\xE3o e controlo de extratos banc\xE1rios, independentemente das institui\xE7\xF5es financeiras com as quais a sociedade ou grupo empresarial opere.","Os extratos banc\xE1rios podem ser integrados na plataforma atrav\xE9s de diferentes origens, nomeadamente:."],bullets:["Rece\xE7\xE3o atrav\xE9s do Canal Multibanc\xE1rio","Importa\xE7\xE3o atrav\xE9s de template Excel","Inser\xE7\xE3o manual de extratos"],paragraphs2:[],paragraphs3:[`Todos os extratos integrados s\xE3o armazenados na plataforma por per\xEDodo ilimitado, permitindo a sua gest\xE3o, manuten\xE7\xE3o e consulta hist\xF3rica atrav\xE9s desta componente.Nesta componente s\xE3o tamb\xE9m definidas codifica\xE7\xF5es e descri\xE7\xF5es personalizadas, designadas por C\xF3digos de Extrato. Estes c\xF3digos podem ser associados \xE0 informa\xE7\xE3o presente nas opera\xE7\xF5es de cada extrato banc\xE1rio, permitindo uniformizar e organizar os diferentes fluxos banc\xE1rios. Esta normaliza\xE7\xE3o \xE9 particularmente relevante, uma vez que os mesmos tipos de movimentos podem apresentar c\xF3digos e descri\xE7\xF5es distintos entre diferentes institui\xE7\xF5es banc\xE1rias.
Atrav\xE9s desta codifica\xE7\xE3o atribu\xEDda a cada movimento de extrato, \xE9 poss\xEDvel estruturar e normalizar a informa\xE7\xE3o banc\xE1ria, facilitando a an\xE1lise, controlo e gest\xE3o dos fluxos financeiros.
Adicionalmente, a componente integra mecanismos autom\xE1ticos de valida\xE7\xE3o e controlo dos extratos banc\xE1rios, os quais verificam a sequencialidade dos saldos, a coer\xEAncia das datas e a consist\xEAncia do conte\xFAdo de cada extrato. Estes mecanismos permitem identificar eventuais irregularidades, tais como extratos duplicados ou incoerentes, procedendo automaticamente \xE0 sua rejei\xE7\xE3o, garantindo assim a integridade e fiabilidade da informa\xE7\xE3o registada na plataforma.`],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Menus",paragraphs:[`A Componente T Extractos disponibiliza um conjunto de menus que permitem ao utilizador executar as diferentes opera\xE7\xF5es associadas \xE0 integra\xE7\xE3o, consulta, an\xE1lise e configura\xE7\xE3o de extratos banc\xE1rios.
O menu Integra\xE7\xE3o permite efetuar a integra\xE7\xE3o de extratos banc\xE1rios na plataforma, bem como consultar o hist\xF3rico das integra\xE7\xF5es realizadas e verificar o respetivo estado.
No menu An\xE1lises/Reports, encontram-se dispon\xEDveis funcionalidades de consulta e an\xE1lise dos extratos banc\xE1rios integrados com sucesso. Neste menu \xE9 poss\xEDvel consultar os movimentos banc\xE1rios por extrato, por tipo de movimento e/ou por intervalos de datas. Adicionalmente, \xE9 tamb\xE9m atrav\xE9s deste menu que se encontra dispon\xEDvel a funcionalidade de controlo de contas, permitindo acompanhar a evolu\xE7\xE3o e consist\xEAncia dos movimentos banc\xE1rios.
O menu Estat\xEDsticas disponibiliza ferramentas de an\xE1lise estat\xEDstica relacionadas com os extratos banc\xE1rios. Neste menu \xE9 poss\xEDvel consultar informa\xE7\xE3o agregada por c\xF3digo de extrato, bem como analisar saldos m\xE9dios, permitindo uma vis\xE3o consolidada da atividade banc\xE1ria.
Atrav\xE9s do menu Configura\xE7\xE3o, o utilizador pode proceder \xE0 parametriza\xE7\xE3o dos c\xF3digos de extrato, \xE0 inicializa\xE7\xE3o de contas e \xE0 defini\xE7\xE3o de outras configura\xE7\xF5es necess\xE1rias ao correto funcionamento da componente.
O menu Janela apresenta a listagem de todas as janelas que se encontram abertas ou ativas na aplica\xE7\xE3o, permitindo ao utilizador alternar facilmente entre diferentes \xE1reas de trabalho.
Por fim, o menu Sair permite terminar a sess\xE3o na componente, encerrando a sua utiliza\xE7\xE3o na plataforma.`],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Conhecimentos a consolidar",paragraphs:["Usa esta secao para reforcar a interpretacao de desvios, excecoes e fecho diario.","Se quiseres, mais tarde podes acrescentar imagens, tabelas ou exemplos de casos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: qual deve ser o foco principal na leitura de um extrato bancario nesta licao?",options:["Validar movimentos e desvios","Alterar a estrutura da conta","Criar um novo utilizador"],note:"Substitui este texto com a explicacao da resposta certa.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: o que pretendes confirmar antes do fecho diario?",options:["Consistencia dos indicadores e pendentes","Apenas a cor dos estados","Somente a imagem do dashboard"],note:"Este bloco fica preparado para adicionares perguntas reais do percurso.",correctOptionIndex:0}]},{slug:"T segurancas",category:"T segurancas",categoryIcons:["/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg"],title:"T Seguran\xE7as",description:"Formacao especifica para a componente de T Seguran\xE7as do ecosistema Target One.",summary:"Percurso orientado a utilizadores que trabalham processos dedicados ao outsourcing EDP e precisam de dominar as validacoes, reconciliacoes e checkpoints do servico.",topics:[],level:"Intermedio",duration:"4h 10min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/Seguran\xE7as.png",focusAreas:["Fluxos EDP","Validacao operacional","Controlo e reconciliacao"],prerequisites:["Conhecimento basico da plataforma","Acesso aos modulos operacionais do outsourcing","Contexto funcional do processo EDP"],audience:["Equipas de outsourcing","Supervisores operacionais","Elementos de controlo e suporte"],objectives:["Executar o fluxo completo do outsourcing EDP","Validar dados criticos antes de fecho","Reconciliar diferencas operacionais","Escalar desvios com a informacao certa"],outcomes:["Maior consistencia na operacao diaria","Reducao de erros na validacao","Melhor visibilidade sobre os checkpoints do processo"],modules:[{title:"Enquadramento do servico",duration:"35 min",description:"Contexto do outsourcing EDP, responsabilidades e pontos de controlo ao longo do processo."},{title:"Operacao assistida",duration:"65 min",description:"Execucao do fluxo principal na plataforma com os passos, regras e verificacoes associados."},{title:"Reconciliacao e controlo",duration:"70 min",description:"Analise de divergencias, conciliacao de informacao e preparacao de evidencia de suporte."},{title:"Fecho e acompanhamento",duration:"40 min",description:"Checklist final, tratamento de excecoes e registo de pontos pendentes para acompanhamento."}],lessonSections:[{title:"Contexto do servico",paragraphs:["Utiliza esta secao para explicar o enquadramento do outsourcing EDP, quem executa o processo e quais sao os checkpoints mais relevantes.","O objetivo e que o formando entenda rapidamente em que parte do fluxo esta a trabalhar."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Execucao do fluxo",paragraphs:["Aqui podes documentar o passo a passo do processo, incluindo validacoes, excecoes e evidencias a recolher.","Este modelo foi deixado preparado para inserires instrucoes mais detalhadas e exemplos concretos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Fecho e controlo",paragraphs:["Reserva este bloco para orientacoes de fecho, reconciliacao e acompanhamento de pendentes.","Tambem podes usar este espaco para notas internas, links ou referencias complementares."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: em que momento deve ser feita a validacao dos dados criticos do processo?",options:["Antes do fecho operacional","Apenas no dia seguinte","Nao e necessaria validacao"],note:"Edita esta pergunta e adapta as opcoes ao processo real.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: qual o objetivo da reconciliacao nesta operacao?",options:["Confirmar consistencia e identificar desvios","Alterar automaticamente os dados","Eliminar registos sem validacao"],note:"Podes transformar este bloco num quiz, verdadeiro/falso ou checklist.",correctOptionIndex:0}]},{slug:"T Par\xE2metros",category:"T Par\xE2metros",categoryIcons:["/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg"],title:"T Par\xE2metros",description:"Formacao especifica para a componente de T Par\xE2metros do ecosistema Target One.",summary:"Percurso orientado a utilizadores que trabalham processos dedicados ao outsourcing EDP e precisam de dominar as validacoes, reconciliacoes e checkpoints do servico.",topics:[],level:"Intermedio",duration:"4h 10min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/Parametros.png",focusAreas:["Fluxos EDP","Validacao operacional","Controlo e reconciliacao"],prerequisites:["Conhecimento basico da plataforma","Acesso aos modulos operacionais do outsourcing","Contexto funcional do processo EDP"],audience:["Equipas de outsourcing","Supervisores operacionais","Elementos de controlo e suporte"],objectives:["Executar o fluxo completo do outsourcing EDP","Validar dados criticos antes de fecho","Reconciliar diferencas operacionais","Escalar desvios com a informacao certa"],outcomes:["Maior consistencia na operacao diaria","Reducao de erros na validacao","Melhor visibilidade sobre os checkpoints do processo"],modules:[{title:"Enquadramento do servico",duration:"35 min",description:"Contexto do outsourcing EDP, responsabilidades e pontos de controlo ao longo do processo."},{title:"Operacao assistida",duration:"65 min",description:"Execucao do fluxo principal na plataforma com os passos, regras e verificacoes associados."},{title:"Reconciliacao e controlo",duration:"70 min",description:"Analise de divergencias, conciliacao de informacao e preparacao de evidencia de suporte."},{title:"Fecho e acompanhamento",duration:"40 min",description:"Checklist final, tratamento de excecoes e registo de pontos pendentes para acompanhamento."}],lessonSections:[{title:"Contexto do servico",paragraphs:["Utiliza esta secao para explicar o enquadramento do outsourcing EDP, quem executa o processo e quais sao os checkpoints mais relevantes.","O objetivo e que o formando entenda rapidamente em que parte do fluxo esta a trabalhar."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Execucao do fluxo",paragraphs:["Aqui podes documentar o passo a passo do processo, incluindo validacoes, excecoes e evidencias a recolher.","Este modelo foi deixado preparado para inserires instrucoes mais detalhadas e exemplos concretos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Fecho e controlo",paragraphs:["Reserva este bloco para orientacoes de fecho, reconciliacao e acompanhamento de pendentes.","Tambem podes usar este espaco para notas internas, links ou referencias complementares."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: em que momento deve ser feita a validacao dos dados criticos do processo?",options:["Antes do fecho operacional","Apenas no dia seguinte","Nao e necessaria validacao"],note:"Edita esta pergunta e adapta as opcoes ao processo real.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: qual o objetivo da reconciliacao nesta operacao?",options:["Confirmar consistencia e identificar desvios","Alterar automaticamente os dados","Eliminar registos sem validacao"],note:"Podes transformar este bloco num quiz, verdadeiro/falso ou checklist.",correctOptionIndex:0}]},{slug:"T Reconcilia\xE7\xF5es",category:"Reconcilia\xE7\xF5es",categoryIcons:["/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg"],title:"T Reconcilia\xE7\xF5es",description:"Formacao especifica para a operacao do outsourcing EDP e para os fluxos mais frequentes associados.",summary:"Percurso orientado a utilizadores que trabalham processos dedicados ao outsourcing EDP e precisam de dominar as validacoes, reconciliacoes e checkpoints do servico.",topics:[],level:"Intermedio",duration:"4h 10min",language:"Portugues",format:"Autonomo",image:"/imagenscursos/reconciliacoes.png",focusAreas:["Fluxos EDP","Validacao operacional","Controlo e reconciliacao"],prerequisites:["Conhecimento basico da plataforma","Acesso aos modulos operacionais do outsourcing","Contexto funcional do processo EDP"],audience:["Equipas de outsourcing","Supervisores operacionais","Elementos de controlo e suporte"],objectives:["Executar o fluxo completo do outsourcing EDP","Validar dados criticos antes de fecho","Reconciliar diferencas operacionais","Escalar desvios com a informacao certa"],outcomes:["Maior consistencia na operacao diaria","Reducao de erros na validacao","Melhor visibilidade sobre os checkpoints do processo"],modules:[{title:"Enquadramento do servico",duration:"35 min",description:"Contexto do outsourcing EDP, responsabilidades e pontos de controlo ao longo do processo."},{title:"Operacao assistida",duration:"65 min",description:"Execucao do fluxo principal na plataforma com os passos, regras e verificacoes associados."},{title:"Reconciliacao e controlo",duration:"70 min",description:"Analise de divergencias, conciliacao de informacao e preparacao de evidencia de suporte."},{title:"Fecho e acompanhamento",duration:"40 min",description:"Checklist final, tratamento de excecoes e registo de pontos pendentes para acompanhamento."}],lessonSections:[{title:"Contexto do servico",paragraphs:["Utiliza esta secao para explicar o enquadramento do outsourcing EDP, quem executa o processo e quais sao os checkpoints mais relevantes.","O objetivo e que o formando entenda rapidamente em que parte do fluxo esta a trabalhar."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Execucao do fluxo",paragraphs:["Aqui podes documentar o passo a passo do processo, incluindo validacoes, excecoes e evidencias a recolher.","Este modelo foi deixado preparado para inserires instrucoes mais detalhadas e exemplos concretos."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"Fecho e controlo",paragraphs:["Reserva este bloco para orientacoes de fecho, reconciliacao e acompanhamento de pendentes.","Tambem podes usar este espaco para notas internas, links ou referencias complementares."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: em que momento deve ser feita a validacao dos dados criticos do processo?",options:["Antes do fecho operacional","Apenas no dia seguinte","Nao e necessaria validacao"],note:"Edita esta pergunta e adapta as opcoes ao processo real.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: qual o objetivo da reconciliacao nesta operacao?",options:["Confirmar consistencia e identificar desvios","Alterar automaticamente os dados","Eliminar registos sem validacao"],note:"Podes transformar este bloco num quiz, verdadeiro/falso ou checklist.",correctOptionIndex:0}]},{slug:"outsourcing-edp",category:"Outsourcing EDP",categoryIcons:["/categorias/reconciliacoes-bancarias.svg","/categorias/contabilizacoes.svg"],title:"Outsourcing EDP - Parte 1",description:"Forma\xE7\xE3o espec\xEDfica para a operara\xE7\xE3o do outsourcing EDP e para os fluxos mais frequentes associados.",summary:"Percurso orientado a utilizadores que trabalham processos dedicados ao outsourcing EDP e precisam de dominar as valida\xE7\xF5es, reconcilia\xE7\xF5es e checkpoints do servi\xE7o.",topics:[],level:"Intermedio",duration:"4h 10min",language:"Portugu\xEAs",format:"Aut\xF3nomo",image:"/imagenscursos/MetacaseSIbs.png",focusAreas:["Fluxos EDP","Valida\xE7\xE3o operacional","Controlo e reconcilia\xE7\xE3o"],prerequisites:["Forma\xE7\xE3o: Metacase Learning Hub, Plataforma TargetOne, Par\xE2metros, Extratos e Reconcilia\xE7\xF5es","No\xE7\xF5es b\xE1sicas da componente Tesouraria e Comunica\xE7\xF5es ","Acesso \xE0 EDP e \xE0 plataforma TargetOne"],audience:["Equipas de outsourcing","Supervisores operacionais","Elementos de controlo e suporte"],objectives:["Garantir a correta integra\xE7\xE3o e valida\xE7\xE3o de extratos banc\xE1rios","Assegurar a reconcilia\xE7\xE3o manual e autom\xE1tica","Monitorizar e validar interfaces e fluxos de comunica\xE7\xE3o com o cliente","Garantir a correta contabiliza\xE7\xE3o dos movimentos financeiros no ERP","Promover a efici\xEAncia operacional e redu\xE7\xE3o de erros atrav\xE9s de procedimentos estruturados"],outcomes:["Maior consistencia na operacao diaria","Reducao de erros na validacao","Melhor visibilidade sobre os checkpoints do processo"],modules:[{title:"Introdu\xE7\xE3o ao outsourcing do cliente EDP",duration:"3 min",description:"Esta forma\xE7\xE3o define os procedimentos de outsourcing do cliente EDP na plataforma Target One, garantindo a correta integra\xE7\xE3o, valida\xE7\xE3o e fiabilidade da informa\xE7\xE3o. Est\xE1 organizado segundo o fluxo di\xE1rio de trabalho e inclui orienta\xE7\xF5es para tratamento de erros, promovendo efici\xEAncia e autonomia na execu\xE7\xE3o das tarefas."},{title:"Valida\xE7\xE3o da rece\xE7\xE3o dos webservices de Reconcilia\xE7\xE3o e Tesouraria",duration:"5 min",description:"Confirma\xE7\xE3o da rece\xE7\xE3o das previs\xF5es."},{title:"Valida\xE7\xE3o da integra\xE7\xE3o dos webservices de Reconcilia\xE7\xF5es e Tesouraria",duration:"3 min",description:"Confirma\xE7\xE3o da integra\xE7\xE3o das previs\xF5es."},{title:"Ativa\xE7\xE3o das reconcilia\xE7\xF5es autom\xE1ticas para todos os grupos de contas do outsourcing",duration:"3 min",description:"Garantir a reconcilia\xE7\xE3o autom\xE1tica dos movimentos, reduzindo pendentes e aumentando a efici\xEAncia."},{title:"Valida\xE7\xE3o inicial do controlo de contas",duration:"10 min",description:"Controlo da rece\xE7\xE3o dos extratos."},{title:"Valida\xE7\xE3o, no di\xE1rio de integra\xE7\xE3o, o estado dos extratos integrados",duration:"5 min",description:"Validar se os extratos encontram-se em alguma situa\xE7\xE3o que requeira an\xE1lise."},{title:"Valida\xE7\xE3o do cashpooling autom\xE1tico",duration:"30 min",description:"Equil\xEDbrio nos movimentos de cashpooling autom\xE1tico."},{title:"Valida\xE7\xE3o do cashpooling manual",duration:"30 min",description:"Equil\xEDbrio nos movimentos de cashpooling manual."},{title:"Proceder \xE0 verifica\xE7\xE3o dos movimentos com os c\xF3digos de extrato OTHREC e OTHPAY",duration:"30 min",description:"Classifica\xE7\xE3o correta dos movimentos."},{title:"Verifica\xE7\xE3o e an\xE1lise da atribui\xE7\xE3o dos c\xF3digos de extrato",duration:"30 min",description:"Classifica\xE7\xE3o correta dos movimentos."},{title:"Carregamento da Taxa CDI",duration:"30 min",description:"Integra\xE7\xE3o manual da Taxa."},{title:"Parametriza\xE7\xE3o e ajustes de alertas por conta",duration:"30 min",description:"Afina\xE7\xE3o de alertas."},{title:"Carregamento manual de extratos via template excel",duration:"30 min",description:"Integra\xE7\xE3o manual de movimentos."},{title:"Contabiliza\xE7\xE3o dos movimentos banc\xE1rios",duration:"30 min",description:"Envio dos mvovimentos para o ERP do cliente."},{title:"An\xE1lise do Di\xE1rio de reconcilia\xE7\xE3o",duration:"30 min",description:"Verificar a integra\xE7\xE3o dos movimentos contabil\xEDsticos."},{title:"Efectuar a reconcilia\xE7\xE3o banc\xE1ria",duration:"30 min",description:"Reduzir ao m\xE1ximos os pendentes existentes nas contas."},{title:"Fecho mensal das contas",duration:"30 min",description:"Efectuar o fecho de per\xEDodo das contas."},{title:"Indicadores",duration:"30 min",description:"Apurar a percentagem de reconcilia\xE7\xE3o autom\xE1tica."}],lessonSections:[{title:"M\xF3dulo 1 Introdu\xE7\xE3o ao outsourcing do cliente EDP",paragraphs:["Outsourcing corresponde \xE0 contrata\xE7\xE3o de processos e servi\xE7os para uma entidade especializada, com o objetivo de garantir maior efici\xEAncia operacional, controlo e qualidade na execu\xE7\xE3o das atividades. Neste contexto, outsourcing significa assumir a gest\xE3o e tratamento dos fluxos financeiros do cliente, garantindo que tudo \xE9 integrado, validado e contabilizado corretamente. ","Esta forma\xE7\xE3o foi criada para apoiar o trabalho di\xE1rio das atividades de outsourcing financeiro do cliente EDP, utilizando a plataforma Target One. Tem como objetivo ajudar a executar as tarefas com clareza, rigor e sem complica\xE7\xF5es desnecess\xE1rias. Ao longo desta forma\xE7\xE3o, encontramos os principais passos a seguir, desde a rece\xE7\xE3o dos extratos at\xE9 \xE0 reconcilia\xE7\xE3o e contabiliza\xE7\xE3o."],paragraphs2:[],paragraphs3:[],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 2 Valida\xE7\xE3o da rece\xE7\xE3o dos webservices de Reconcilia\xE7\xE3o e Tesouraria",paragraphs:[""],paragraphs2:[""],paragraphs3:["<strong>O que fazer se os interfaces n\xE3o forem recebidos;</strong>"],imagem:"",paragraphs4:["Caso se verifique a n\xE3o rece\xE7\xE3o dos interfaces de TReconcilia\xE7\xE3o e/ou TTesouraria, dever\xE1 ser aberto um incidente na plataforma ServiceNow, dirigido \xE0 EDP, com o objetivo de solicitar o respetivo envio;","Estes incidentes s\xE3o preenchidos por geografias e atribu\xEDdos \xE0s diferentes equipas;"],bullets3:["Grupo HC (Previs\xF5es Confirmadas e Reconcilia\xE7\xF5es) - EDP-PRO-INC-ECOFIN-HC","Grupo LINCE (Previs\xF5es Confirmadas, de Fornecedores e Reconcilia\xE7\xF5es) - EDP-PRO-SIM-F","Grupo LINCE (Previs\xF5es Clientes) - EDP-PRO-INC-JUMP GA","Grupo LINCE (Previs\xF5es Confirmadas empresas JUMP (2800) - EDP-PRO-SIM Suporte SIM JUMP","Grupo Viesgo (Reconcilia\xE7\xF5es) - EDP-PRO-SIM-H-Projeto-Viesgo"],paragraphs5:[],paragraphs6:[],video:"/imagenscursos/metacase_21.mp4",paragraphs7:[],paragraphs8:[]},{title:"M\xF3dulo 3 Valida\xE7\xE3o da integra\xE7\xE3o dos webservices de Reconcilia\xE7\xF5es e Tesouraria",paragraphs:[""],video:"/imagenscursos/Video mod21__1.mp4",paragraphs2:[" "],paragraphs3:["Nota: Por vezes integram interfaces que ficam processados com erros. Nestas situa\xE7\xF5es devemos validar qual o erro registado e agir em conformidade."],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 4 Ativa\xE7\xE3o das reconcilia\xE7\xF5es autom\xE1ticas para todos os grupos de contas do outsourcing",paragraphs:[""],video:"/imagenscursos/mod4_1.mp4",paragraphs2:[" "],paragraphs3:[""],imagem:"",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 5 Valida\xE7\xE3o inicial do controlo de contas",paragraphs:["\xC9 importante validar se todas as contas j\xE1 receberam os respetivos extratos banc\xE1rios, garantindo que o controlo de contas reflete a informa\xE7\xE3o mais atualizada. Desta forma ao analis\xE1-lo devemos identifcar se existem extratos em falta ou se ainda est\xE3o dentro do per\xEDodo normal de rece\xE7\xE3o."],video:"/imagenscursos/controlo de contas_1.mp4",paragraphs2:[" "],paragraphs3:[""],imagem:"/imagenscursos/falta_extrats1_novo.png",imagem2:"/imagenscursos/Falta_extratos2.png",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 6 Valida\xE7\xE3o, no di\xE1rio de integra\xE7\xE3o, o estado dos extratos integrados",paragraphs:["Validar se os extratos se encontram em alguma situa\xE7\xE3o que precise de an\xE1lise;"],video:"/imagenscursos/diariointegracao_0.mp4",paragraphs2:[" "],paragraphs3:[""],imagem:"/imagenscursos/valida\xE7\xE3o_extratos.png",paragraphs4:[""],paragraphs5:[""]},{title:"M\xF3dulo 7 Valida\xE7\xE3o do cashpooling autom\xE1tico",paragraphs:["No \xE2mbito deste Outsourcing, \xE9 realizada a valida\xE7\xE3o dos movimentos de ITZERO, com o objetivo de garantir que todos os movimentos se encontram equilibrados e possuem o respetivo par associado. Para esta an\xE1lise, os movimentos s\xE3o divididos em dois grupos distintos: movimentos provenientes do banco Deutsche Bank e movimentos provenientes dos restantes bancos."],video2:"",paragraphs2:[" "],paragraphs3:[""],imagem:"",paragraphs4:[""],paragraphs5:[""]}],questions:[{prompt:"Exemplo de pergunta 1: em que momento deve ser feita a validacao dos dados criticos do processo?",options:["Antes do fecho operacional","Apenas no dia seguinte","Nao e necessaria validacao"],note:"Edita esta pergunta e adapta as opcoes ao processo real.",correctOptionIndex:0},{prompt:"Exemplo de pergunta 2: qual o objetivo da reconciliacao nesta operacao?",options:["Confirmar consistencia e identificar desvios","Alterar automaticamente os dados","Eliminar registos sem validacao"],note:"Podes transformar este bloco num quiz, verdadeiro/falso ou checklist.",correctOptionIndex:0}]}];function ls(e){return e?vp.find(t=>t.slug===e)??null:null}var mt=class e{static STORAGE_KEY="metacaseUser";currentUser=P(this.readSession());hasStoredSession(){return this.currentUser()!==null}async isLoggedIn(){let t=this.currentUser();if(!t||Date.now()>=t.expiresAt)return this.logout(),!1;try{if((await fetch("/api/session",{headers:{Authorization:`Bearer ${t.token}`}})).ok)return!0}catch{return this.logout(),!1}return this.logout(),!1}async login(t,n,r){let o=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:n})});if(!o.ok)throw new Error("Credenciais invalidas.");let i=await o.json(),s={email:i.user.email,name:i.user.name,token:i.token,expiresAt:i.expiresAt,loggedAt:new Date().toISOString()};this.clearStoredSession(),(r?localStorage:sessionStorage).setItem(e.STORAGE_KEY,JSON.stringify(s)),this.currentUser.set(s)}logout(){this.clearStoredSession(),this.currentUser.set(null)}readSession(){let t=localStorage.getItem(e.STORAGE_KEY)??sessionStorage.getItem(e.STORAGE_KEY);if(!t)return null;try{return JSON.parse(t)}catch{return this.clearStoredSession(),null}}clearStoredSession(){localStorage.removeItem(e.STORAGE_KEY),sessionStorage.removeItem(e.STORAGE_KEY)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})};var UM=e=>["/cursos",e];function HM(e,t){if(e&1&&$(0,"img",34),e&2){let n=E().$implicit;_("alt",n.category)}}function $M(e,t){if(e&1&&(f(0,"article",22)(1,"div",23),$(2,"img",24)(3,"div",25),f(4,"div",26),U(5,HM,1,1,"img",27),p()(),f(6,"div",28)(7,"h3",29),g(8),p(),f(9,"p",30),g(10),p(),f(11,"div",31)(12,"span",32),g(13),p()(),f(14,"a",33),g(15," Entrar "),p()()()),e&2){let n=t.$implicit;h(2),_("src",n.image,fe)("alt",n.title),h(3),_("ngForOf",n.categoryIcons),h(3),re(" ",n.title," "),h(2),re(" ",n.description," "),h(3),re(" ",n.duration," "),h(),_("routerLink",Un(7,UM,n.slug))}}var tl=class e{constructor(t,n){this.authService=t;this.router=n}courses=vp;logout(){this.authService.logout(),this.router.navigateByUrl("/")}static \u0275fac=function(n){return new(n||e)(k(mt),k(Ue))};static \u0275cmp=be({type:e,selectors:[["app-formacaometacase"]],decls:35,vars:5,consts:[[1,"min-h-screen","bg-slate-50","text-slate-900"],[1,"relative","overflow-hidden","bg-slate-950"],[1,"absolute","inset-0","bg-gradient-to-r","from-indigo-700/20","via-cyan-500/10","to-purple-700/20"],[1,"hero-logo-badge"],["type","button",1,"logout-button",3,"click"],["href","https://www.metacase.pt","target","_blank","rel","noopener"],["src","/logo-metacase-cor.svg","alt","Metacase",1,"hero-logo"],[1,"relative","mx-auto","max-w-7xl","px-6","py-20","lg:px-8"],[1,"max-w-3xl"],[1,"inline-flex","rounded-full","border","border-white/20","bg-white/10","px-4","py-1","text-sm","font-medium","text-white"],[1,"mt-6","text-4xl","font-bold","tracking-tight","text-white","sm:text-5xl","lg:text-6xl"],[1,"mt-6","text-lg","leading-8","text-slate-300"],["routerLink","/pagina-principal",1,"back-link"],[1,"mx-auto","max-w-7xl","px-6","py-10","lg:px-8"],[1,"flex","flex-col","gap-4","md:flex-row","md:items-center","md:justify-between"],[1,"text-3xl","font-bold","tracking-tight","text-slate-900"],[1,"mt-2","text-slate-600"],[1,"inline-flex","w-fit","items-center","rounded-2xl","border","border-slate-200","bg-white","px-4","py-3","shadow-sm"],[1,"text-sm","font-semibold","text-slate-700"],[1,"mx-auto","max-w-7xl","px-6","pb-16","lg:px-8"],[1,"grid","gap-8","md:grid-cols-2","xl:grid-cols-3"],["class","group overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl",4,"ngFor","ngForOf"],[1,"group","overflow-hidden","rounded-3xl","border","border-slate-200","bg-white","shadow-sm","transition","duration-300","hover:-translate-y-1","hover:shadow-xl"],[1,"relative","h-56","overflow-hidden"],[1,"h-full","w-full","object-cover","transition","duration-500","group-hover:scale-105",3,"src","alt"],[1,"absolute","inset-0","bg-gradient-to-t","from-black/50","via-transparent","to-transparent"],[1,"course-card__badge"],["class","course-card__badge-image",3,"alt",4,"ngFor","ngForOf"],[1,"p-6"],[1,"mt-2","text-xl","font-bold","text-slate-900"],[1,"mt-3","text-sm","leading-6","text-slate-600"],[1,"mt-5","flex","flex-wrap","gap-2"],[1,"rounded-full","bg-slate-100","px-3","py-1","text-xs","font-semibold","text-slate-700"],[1,"mt-6","block","w-full","rounded-2xl","bg-gradient-to-r","from-indigo-600","to-purple-600","px-4","py-3","text-center","text-sm","font-semibold","text-white","transition","hover:opacity-95",3,"routerLink"],[1,"course-card__badge-image",3,"alt"]],template:function(n,r){n&1&&(f(0,"div",0)(1,"section",1),$(2,"div",2),f(3,"div",3)(4,"button",4),A("click",function(){return r.logout()}),g(5,"Sair"),p(),f(6,"a",5),$(7,"img",6),p()(),f(8,"div",7)(9,"div",8)(10,"span",9),g(11," Learning Hub "),p(),f(12,"h1",10),g(13," Forma\xE7\xF5es de TargetOne "),p(),f(14,"p",11),g(15," Forma\xE7\xF5es pr\xE1ticas e atualizadas para a utiliza\xE7\xE3o da plataforma TargetOne "),$(16,"br"),g(17,"Aprendizagem orientada para a ferramenta com forma\xE7\xF5es te\xF3ricas e pr\xE1ticas "),p(),f(18,"a",12),$(19,"br")(20,"br"),g(21,"Voltar ao menu do Multipurpose Hub"),p()()()(),f(22,"section",13)(23,"div",14)(24,"div")(25,"h2",15),g(26,"Forma\xE7\xF5es dispon\xEDveis"),p(),f(27,"p",16),g(28),p()(),f(29,"div",17)(30,"span",18),g(31),p()()()(),f(32,"section",19)(33,"div",20),U(34,$M,16,9,"article",21),p()()()),n&2&&(h(28),Tt(" Atualmente encontram-se dispon\xEDveis ",r.courses.length," ",r.courses.length===1?"forma\xE7\xE3o":"forma\xE7\xF5es"," em destaque. "),h(3),Tt(" ",r.courses.length," ",r.courses.length===1?"curso":"cursos"," "),h(3),_("ngForOf",r.courses))},dependencies:[Ve,Ze,gt],styles:[".hero-logo-badge[_ngcontent-%COMP%]{position:absolute;top:24px;right:24px;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:10px 16px;border:1px solid rgba(191,219,254,.55);border-radius:999px;background:#eff6ffe0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 24px #0f172a1f}.hero-logo[_ngcontent-%COMP%]{width:clamp(120px,16vw,190px);height:auto;display:block;object-fit:contain}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-bottom:20px;color:#f8f8f8;text-decoration:none;font-weight:700}.logout-button[_ngcontent-%COMP%]{min-height:34px;cursor:pointer;border:0;border-radius:999px;background:#1d4ed8;padding:0 14px;color:#fff;font-size:.88rem;font-weight:800;transition:background-color .2s ease,transform .2s ease}.logout-button[_ngcontent-%COMP%]:hover{background:#1e40af;transform:translateY(-1px)}.course-card__badge[_ngcontent-%COMP%]{position:absolute;top:16px;left:16px;z-index:1;display:flex;align-items:center;justify-content:flex-start;gap:8px;max-width:calc(100% - 32px);overflow-x:auto}.course-card__badge-image[_ngcontent-%COMP%]{width:auto;max-width:88px;flex:0 0 auto;height:24px;display:block;object-fit:contain}@media(max-width:768px){.hero-logo-badge[_ngcontent-%COMP%]{top:16px;right:16px;padding:8px 14px;gap:10px}.hero-logo[_ngcontent-%COMP%]{width:120px}}"]})};function nl(e,t){let r=!t?.manualCleanup?t?.injector?.get(qe)??y(qe):null,o=zM(t?.equal),i;t?.requireSync?i=P({kind:0},{equal:o}):i=P({kind:1,value:t?.initialValue},{equal:o});let s,a=e.subscribe({next:c=>i.set({kind:1,value:c}),error:c=>{i.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(t?.requireSync&&i().kind===0)throw new C(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),Ce(()=>{let c=i();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new C(601,!1)}},{equal:t?.equal})}function zM(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var qM=e=>["/cursos",e,"percurso"];function GM(e,t){if(e&1&&(f(0,"li"),g(1),p()),e&2){let n=t.$implicit;h(),O(n)}}function WM(e,t){if(e&1&&(f(0,"li"),g(1),p()),e&2){let n=t.$implicit;h(),O(n)}}function ZM(e,t){if(e&1&&(f(0,"article",35)(1,"div",36),g(2),p(),f(3,"div",37)(4,"h3"),g(5),p(),f(6,"p"),g(7),p()(),f(8,"span",38),g(9),p()()),e&2){let n=t.$implicit,r=t.index;h(2),O(r+1),h(3),O(n.title),h(2),O(n.description),h(2),O(n.duration)}}function QM(e,t){if(e&1&&(f(0,"article",39)(1,"h3"),g(2),p()()),e&2){let n=t.$implicit;h(2),O(n)}}function YM(e,t){if(e&1&&(uo(0),f(1,"div",2)(2,"section",3)(3,"div",4)(4,"div",5)(5,"a",6),g(6,"Voltar ao menu das forma\xE7\xF5es"),p(),f(7,"h1"),g(8),p(),f(9,"p",7),g(10),p(),f(11,"section",8)(12,"div",9)(13,"span",10),g(14,"Informa\xE7\xE3o geral da forma\xE7\xE3o"),p(),f(15,"p",11),g(16),p()(),f(17,"div",12)(18,"article")(19,"span"),g(20,"Idioma"),p(),f(21,"strong"),g(22),p()(),f(23,"article")(24,"span"),g(25,"Formato"),p(),f(26,"strong"),g(27),p()(),f(28,"article",13)(29,"span"),g(30,"Dura\xE7\xE3o"),p(),f(31,"strong"),g(32),p()(),f(33,"article",13)(34,"span"),g(35,"Mod\xFAlos"),p(),f(36,"strong"),g(37),p()(),f(38,"div",14)(39,"span"),g(40,"Pr\xE9-requisitos"),p(),f(41,"ul",15),U(42,GM,2,1,"li",16),p()(),f(43,"div",14)(44,"span"),g(45,"P\xFAblico-Alvo"),p(),f(46,"ul",15),U(47,WM,2,1,"li",16),p()()()()(),f(48,"aside",17)(49,"div",18),$(50,"img",19),p(),f(51,"div",20)(52,"h2"),g(53,"Come\xE7ar esta forma\xE7\xE3o"),p(),f(54,"p"),g(55),p(),f(56,"a",21),g(57,"Iniciar forma\xE7\xE3o"),p(),f(58,"a",22),g(59,"Voltar ao menu das forma\xE7\xF5es"),p()()()()(),f(60,"main",23)(61,"section",24)(62,"section",25)(63,"div",26)(64,"div")(65,"span",10),g(66,"Estrutura da forma\xE7\xE3o"),p()(),f(67,"span",27),g(68),p()(),f(69,"div",28),U(70,ZM,10,4,"article",29),p()()(),f(71,"aside",30)(72,"div",31)(73,"span",32),g(74,"Compet\xEAncias da Forma\xE7\xE3o"),p(),f(75,"div",33),U(76,QM,3,1,"article",34),p()()()()(),fo()),e&2){let n=t.ngIf;h(8),O(n.title),h(2),O(n.summary),h(6),O(n.description),h(6),O(n.language),h(5),O(n.format),h(5),O(n.duration),h(5),O(n.modules.length),h(5),_("ngForOf",n.prerequisites),h(5),_("ngForOf",n.audience),h(3),_("src",n.image,fe)("alt",n.title),h(5),O(n.description),h(),_("routerLink",Un(16,qM,n.slug)),h(12),re("",n.modules.length," li\xE7\xF5es"),h(2),_("ngForOf",n.modules),h(6),_("ngForOf",n.objectives)}}function KM(e,t){e&1&&(f(0,"div",40)(1,"div",41)(2,"h1"),g(3,"Forma\xE7\xE3o n\xE3o encontrada"),p(),f(4,"p"),g(5,"A forma\xE7\xE3o selecionada n\xE3o est\xE1 dispon\xEDvel neste momento."),p(),f(6,"a",42),g(7,"Voltar aos cursos"),p()()())}var rl=class e{route=y(it);paramMap=nl(this.route.paramMap);course=Ce(()=>{let t=this.paramMap()?.get("slug")??null;return ls(t)});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=be({type:e,selectors:[["app-course-detail-page"]],decls:3,vars:2,consts:[["notfound",""],[4,"ngIf","ngIfElse"],[1,"course-detail-page"],[1,"course-intro"],[1,"course-intro__inner"],[1,"course-intro__main"],["routerLink","/formacoes",1,"back-link"],[1,"intro-summary"],["id","overview",1,"detail-panel"],[1,"panel-header"],[1,"panel-header__eyebrow"],[1,"detail-lead"],[1,"detail-facts"],[1,"intro-stat"],[1,"detail-box"],[1,"bullet-list"],[4,"ngFor","ngForOf"],[1,"enroll-card"],[1,"enroll-card__media"],[3,"src","alt"],[1,"enroll-card__body"],[1,"button",3,"routerLink"],["routerLink","/formacoes",1,"button","button--secondary"],[1,"detail-layout"],[1,"detail-main"],["id","structure",1,"detail-panel"],[1,"panel-header","panel-header--split"],[1,"panel-count"],[1,"module-list"],["class","module-card",4,"ngFor","ngForOf"],[1,"detail-sidebar"],[1,"sidebar-card"],[1,"sidebar-card__eyebrow"],[1,"learning-grid"],["class","topic-card",4,"ngFor","ngForOf"],[1,"module-card"],[1,"module-card__index"],[1,"module-card__content"],[1,"module-card__duration"],[1,"topic-card"],[1,"course-not-found"],[1,"course-not-found__card"],["routerLink","/formacoes",1,"button"]],template:function(n,r){if(n&1&&U(0,YM,77,18,"ng-container",1)(1,KM,8,0,"ng-template",null,0,Sr),n&2){let o=dn(2);_("ngIf",r.course())("ngIfElse",o)}},dependencies:[Ve,Ze,Nt,gt],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;background:#f8fafc;color:#0f172a}*[_ngcontent-%COMP%]{box-sizing:border-box}.course-detail-page[_ngcontent-%COMP%]{min-height:100vh}.course-intro[_ngcontent-%COMP%]{background:radial-gradient(circle at top left,rgba(37,99,235,.12),transparent 24%),linear-gradient(180deg,#fff,#f6f9fd);border-bottom:1px solid #e2e8f0}.course-intro__inner[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,420px);gap:34px;max-width:1240px;margin:0 auto;padding:56px 24px 40px}.course-intro__main[_ngcontent-%COMP%]{padding-top:12px}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-bottom:20px;color:#2563eb;text-decoration:none;font-weight:700}.back-link[_ngcontent-%COMP%]:hover{color:#1d4ed8}.intro-pills[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}.intro-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.86rem;font-weight:800}.intro-pill--muted[_ngcontent-%COMP%]{background:#eff6ff;color:#334155}.course-intro[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{max-width:760px;margin:0 0 16px;font-size:clamp(2.4rem,5vw,4rem);line-height:1.04;letter-spacing:-.03em}.lesson-image[_ngcontent-%COMP%]{display:block;margin:30px auto;max-width:600px;width:100%}.intro-summary[_ngcontent-%COMP%]{max-width:760px;margin:0 0 24px;color:#475569;font-size:1.06rem;line-height:1.75;text-align:justify}.intro-stats[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:720px;margin-bottom:20px}.intro-stat[_ngcontent-%COMP%]{padding:18px 18px 16px;border:1px solid #dbe4f0;border-radius:22px;background:#fff}.intro-stat[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#64748b;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.intro-stat[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:1rem}.intro-icons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.intro-icons__item[_ngcontent-%COMP%]{width:auto;height:28px}.enroll-card[_ngcontent-%COMP%]{overflow:hidden;border:1px solid #dbe4f0;border-radius:28px;background:#fff;box-shadow:0 18px 42px #0f172a14}.enroll-card__media[_ngcontent-%COMP%]{aspect-ratio:16 / 10;overflow:hidden;background:#0f172a}.enroll-card__media[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.enroll-card__body[_ngcontent-%COMP%]{padding:22px}.enroll-card__topline[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}.enroll-card__topline[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.8rem;font-weight:800}.enroll-card[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 10px;font-size:1.55rem}.enroll-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 18px;color:#64748b;line-height:1.65}.detail-tabs[_ngcontent-%COMP%]{position:sticky;top:0;z-index:20;display:flex;gap:28px;max-width:1240px;margin:0 auto;padding:0 24px;background:#f8fafcf0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid #e2e8f0}.detail-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:62px;color:#334155;text-decoration:none;font-weight:800;border-bottom:3px solid transparent}.detail-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#0f172a;border-bottom-color:#2563eb}.detail-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.7fr);gap:30px;max-width:1240px;margin:0 auto;padding:28px 24px 72px}.detail-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:22px}.detail-panel[_ngcontent-%COMP%], .sidebar-card[_ngcontent-%COMP%], .course-not-found__card[_ngcontent-%COMP%]{border:1px solid #dbe4f0;border-radius:28px;background:#fff;box-shadow:0 14px 34px #0f172a0d}.detail-panel[_ngcontent-%COMP%]{padding:28px}.panel-header[_ngcontent-%COMP%]{margin-bottom:18px}.panel-header--split[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:16px}.panel-header__eyebrow[_ngcontent-%COMP%], .sidebar-card__eyebrow[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:10px;color:#2563eb;font-size:1.2rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.panel-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.7rem;line-height:1.2}.panel-count[_ngcontent-%COMP%]{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.82rem;font-weight:800;white-space:nowrap}.detail-lead[_ngcontent-%COMP%]{margin:0 0 18px;color:#475569;line-height:1.75}.detail-facts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.detail-facts[_ngcontent-%COMP%] article[_ngcontent-%COMP%], .detail-box[_ngcontent-%COMP%]{padding:18px;border:1px solid #e5edf6;border-radius:22px;background:#fbfdff}.detail-facts[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#64748b;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.detail-columns[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-box[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .learning-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .module-card__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 10px;font-size:1.08rem}.bullet-list[_ngcontent-%COMP%], .sidebar-list[_ngcontent-%COMP%]{margin:0;padding-left:18px;color:#475569;line-height:1.75}.bullet-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%], .sidebar-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:8px}.learning-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:16px}.learning-card[_ngcontent-%COMP%]{padding:20px;border:1px solid #e5edf6;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbff)}.learning-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .module-card__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#64748b;line-height:1.65}.module-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:14px}.module-card[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px;border:1px solid #e5edf6;border-radius:24px;background:#fff}.module-card__index[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:14px;background:#eff6ff;color:#1d4ed8;font-weight:800}.module-card__duration[_ngcontent-%COMP%]{display:inline-flex;padding:8px 11px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:.82rem;font-weight:800;white-space:nowrap}.sidebar-card[_ngcontent-%COMP%]{position:sticky;top:92px;padding:24px}.sidebar-list[_ngcontent-%COMP%]{margin-bottom:18px}.sidebar-tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px}.sidebar-tags[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.84rem;font-weight:700}.button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:50px;border:0;border-radius:18px;background:#1d4ed8;color:#fff;text-decoration:none;font-size:.96rem;font-weight:800;cursor:pointer}.button[_ngcontent-%COMP%] + .button[_ngcontent-%COMP%]{margin-top:12px}.button--secondary[_ngcontent-%COMP%]{background:#eff6ff;color:#1d4ed8}.course-not-found[_ngcontent-%COMP%]{min-height:100vh;display:grid;place-items:center;padding:24px}.course-not-found__card[_ngcontent-%COMP%]{max-width:520px;padding:32px;text-align:center}.course-not-found__card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 0 12px}.course-not-found__card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 20px;color:#64748b}@media(max-width:1024px){.course-intro__inner[_ngcontent-%COMP%], .detail-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.sidebar-card[_ngcontent-%COMP%]{position:static}}@media(max-width:768px){.course-intro__inner[_ngcontent-%COMP%]{padding:40px 20px 28px}.detail-tabs[_ngcontent-%COMP%]{gap:18px;overflow-x:auto;padding:0 20px}.detail-layout[_ngcontent-%COMP%]{padding:22px 20px 56px}.intro-stats[_ngcontent-%COMP%], .detail-facts[_ngcontent-%COMP%], .detail-columns[_ngcontent-%COMP%], .learning-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.detail-panel[_ngcontent-%COMP%], .sidebar-card[_ngcontent-%COMP%], .course-not-found__card[_ngcontent-%COMP%]{border-radius:22px}.detail-panel[_ngcontent-%COMP%]{padding:22px}.panel-header--split[_ngcontent-%COMP%], .module-card[_ngcontent-%COMP%]{grid-template-columns:1fr}.module-card__duration[_ngcontent-%COMP%]{justify-self:start}}"]})};var w_=e=>["/cursos",e];function JM(e,t){if(e&1){let n=le();f(0,"article",34)(1,"button",35),A("click",function(){let o=Q(n).index,i=E(2);return Y(i.scrollToModule(o))}),f(2,"span",36),g(3),p(),f(4,"div",37)(5,"h3"),g(6),p(),f(7,"p"),g(8),p()()()()}if(e&2){let n=t.$implicit,r=t.index,o=E(2);ue("module-nav__item--active",r===o.currentModuleIndex()),h(3),O(r+1),h(3),O(n.title),h(2),O(n.duration)}}function XM(e,t){if(e&1&&(f(0,"li"),g(1),p()),e&2){let n=t.$implicit;h(),O(n)}}function eS(e,t){if(e&1&&$(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,Ln)}}function tS(e,t){if(e&1&&(f(0,"li"),g(1),p()),e&2){let n=t.$implicit;h(),re(" ",n," ")}}function nS(e,t){if(e&1&&(f(0,"ul",24),U(1,tS,2,1,"li",25),p()),e&2){let n=E().ngIf;h(),_("ngForOf",n.bullets)}}function rS(e,t){if(e&1){let n=le();f(0,"img",50),A("click",function(){Q(n);let o=E().ngIf,i=E(3);return Y(i.openZoomedImage(o.imagem6))}),p()}if(e&2){let n=E().ngIf;_("src",n.imagem6,fe)}}function oS(e,t){if(e&1){let n=le();f(0,"img",50),A("click",function(){Q(n);let o=E().ngIf,i=E(3);return Y(i.openZoomedImage(o.imagem4))}),p()}if(e&2){let n=E().ngIf;_("src",n.imagem4,fe)}}function iS(e,t){if(e&1&&(f(0,"video",51),$(1,"source",52),g(2," O seu navegador n\xE3o suporta v\xEDdeos. "),p()),e&2){let n=E().ngIf;h(),_("src",n.video)}}function sS(e,t){if(e&1&&$(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,Ln)}}function aS(e,t){if(e&1){let n=le();f(0,"img",50),A("click",function(){Q(n);let o=E().ngIf,i=E(3);return Y(i.openZoomedImage(o.imagem))}),p()}if(e&2){let n=E().ngIf;_("src",n.imagem,fe)}}function cS(e,t){if(e&1){let n=le();f(0,"img",50),A("click",function(){Q(n);let o=E().ngIf,i=E(3);return Y(i.openZoomedImage(o.imagem5))}),p()}if(e&2){let n=E().ngIf;_("src",n.imagem5,fe)}}function lS(e,t){if(e&1&&$(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,Ln)}}function uS(e,t){if(e&1&&(f(0,"li"),g(1),p()),e&2){let n=t.$implicit;h(),re(" ",n," ")}}function dS(e,t){if(e&1&&(f(0,"ul",24),U(1,uS,2,1,"li",25),p()),e&2){let n=E().ngIf;h(),_("ngForOf",n.bullets2)}}function fS(e,t){if(e&1&&$(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,Ln)}}function pS(e,t){if(e&1&&(f(0,"li"),g(1),p()),e&2){let n=t.$implicit;h(),re(" ",n," ")}}function hS(e,t){if(e&1&&(f(0,"ul",24),U(1,pS,2,1,"li",25),p()),e&2){let n=E().ngIf;h(),_("ngForOf",n.bullets3)}}function gS(e,t){if(e&1&&$(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,Ln)}}function mS(e,t){if(e&1){let n=le();f(0,"img",50),A("click",function(){Q(n);let o=E().ngIf,i=E(3);return Y(i.openZoomedImage(o.imagem2))}),p()}if(e&2){let n=E().ngIf;_("src",n.imagem2,fe)}}function vS(e,t){if(e&1&&$(0,"p",49),e&2){let n=t.$implicit;_("innerHTML",n,Ln)}}function yS(e,t){if(e&1&&(f(0,"li"),g(1),p()),e&2){let n=t.$implicit;h(),re(" ",n," ")}}function _S(e,t){if(e&1&&(f(0,"ul",24),U(1,yS,2,1,"li",25),p()),e&2){let n=E().ngIf;h(),_("ngForOf",n.bullets4)}}function bS(e,t){if(e&1){let n=le();f(0,"img",50),A("click",function(){Q(n);let o=E().ngIf,i=E(3);return Y(i.openZoomedImage(o.imagem3))}),p()}if(e&2){let n=E().ngIf;_("src",n.imagem3,fe)}}function CS(e,t){if(e&1){let n=le();f(0,"section",53)(1,"div",54)(2,"div")(3,"span",22),g(4,"Apresenta\xE7\xE3o interativa"),p()(),f(5,"span",55),g(6),p()(),f(7,"div",56)(8,"img",57),A("click",function(){Q(n);let o=E().ngIf,i=E().index,s=E(2);return Y(s.openZoomedImageGallery(o.presentationImages,s.getPresentationImageIndex(i)))}),p()(),f(9,"div",58)(10,"button",59),A("click",function(){Q(n);let o=E(2).index,i=E(2);return Y(i.previousPresentationImage(o))}),g(11," Anterior "),p(),f(12,"button",59),A("click",function(){Q(n);let o=E().ngIf,i=E().index,s=E(2);return Y(s.nextPresentationImage(i,o.presentationImages))}),g(13," Seguinte "),p()()()}if(e&2){let n=E().ngIf,r=E().index,o=E(2);h(6),Tt(" Imagem ",o.getPresentationImageIndex(r)+1," / ",n.presentationImages.length," "),h(2),_("src",o.getPresentationImage(r,n.presentationImages),fe),h(2),_("disabled",o.getPresentationImageIndex(r)===0),h(2),_("disabled",o.getPresentationImageIndex(r)>=n.presentationImages.length-1)}}function DS(e,t){if(e&1&&(f(0,"section",43),U(1,eS,1,1,"p",44)(2,nS,2,1,"ul",45)(3,rS,1,1,"img",46)(4,oS,1,1,"img",46)(5,iS,3,1,"video",47)(6,sS,1,1,"p",44)(7,aS,1,1,"img",46)(8,cS,1,1,"img",46)(9,lS,1,1,"p",44)(10,dS,2,1,"ul",45)(11,fS,1,1,"p",44)(12,hS,2,1,"ul",45)(13,gS,1,1,"p",44)(14,mS,1,1,"img",46)(15,vS,1,1,"p",44)(16,_S,2,1,"ul",45)(17,bS,1,1,"img",46)(18,CS,14,5,"section",48),p()),e&2){let n=t.ngIf;h(),_("ngForOf",n.paragraphs),h(),_("ngIf",n.bullets),h(),_("ngIf",n.imagem6&&n.imagem6.trim()!==""),h(),_("ngIf",n.imagem4&&n.imagem4.trim()!==""),h(),_("ngIf",n.video&&n.video.trim()!==""),h(),_("ngForOf",n.paragraphs2),h(),_("ngIf",n.imagem&&n.imagem.trim()!==""),h(),_("ngIf",n.imagem5&&n.imagem5.trim()!==""),h(),_("ngForOf",n.paragraphs3),h(),_("ngIf",n.bullets2),h(),_("ngForOf",n.paragraphs4),h(),_("ngIf",n.bullets3),h(),_("ngForOf",n.paragraphs5),h(),_("ngIf",n.imagem2&&n.imagem2.trim()!==""),h(),_("ngForOf",n.paragraphs6),h(),_("ngIf",n.bullets4),h(),_("ngIf",n.imagem3&&n.imagem3.trim()!==""),h(),_("ngIf",n.presentationImages==null?null:n.presentationImages.length)}}function ES(e,t){if(e&1&&(f(0,"article",38)(1,"div",39)(2,"span",40),g(3),p(),f(4,"span",41),g(5),p()(),U(6,DS,19,18,"section",42),p()),e&2){let n=t.$implicit,r=t.index;un("data-module-index",r),h(3),re("M\xF3dulo ",r+1+" "+n.module.title),h(2),O(n.module.duration),h(),_("ngIf",n.section)}}function wS(e,t){if(e&1&&(f(0,"a",60)(1,"span",61),_a(),f(2,"svg",62),$(3,"path",63)(4,"path",64)(5,"path",65)(6,"path",66),p()(),ba(),f(7,"span",67)(8,"strong"),g(9),p()(),f(10,"span",68),g(11,"Download"),p()()),e&2){let n=E().ngIf;_("href",n.pdfPath,fe),un("download",n.pdfDownloadName??"")("aria-label","Descarregar "+(n.pdfTitle??"documento PDF")),h(9),O(n.pdfTitle??"Documento PDF")}}function IS(e,t){if(e&1){let n=le();f(0,"button",73),A("click",function(){let o=Q(n).index,i=E().index,s=E(2);return Y(s.selectAnswer(i,o))}),g(1),p()}if(e&2){let n=t.$implicit,r=t.index,o=E().index,i=E(2);ue("question-option--correct",i.isCorrectOption(o,r))("question-option--incorrect",i.isWrongSelectedOption(o,r)),_("disabled",i.isQuestionAnswered(o)),h(),re(" ",n," ")}}function xS(e,t){if(e&1&&(f(0,"article",69)(1,"span",40),g(2),p(),f(3,"h3"),g(4),p(),f(5,"div",70),U(6,IS,2,6,"button",71),p(),f(7,"p",72),g(8),p()()),e&2){let n=t.$implicit,r=t.index;h(2),re("Pergunta ",r+1),h(2),O(n.prompt),h(2),_("ngForOf",n.options),h(2),O(n.note)}}function MS(e,t){if(e&1){let n=le();uo(0),f(1,"div",4)(2,"header",5)(3,"div",6)(4,"div")(5,"a",7),g(6,"Voltar aos detalhes do curso"),p(),f(7,"p",8),g(8),p(),f(9,"h1"),g(10),p()()()(),f(11,"main",9)(12,"aside",10)(13,"div",11)(14,"div",12)(15,"span",13),g(16,"Conte\xFAdo da Forma\xE7\xE3o"),p(),f(17,"strong"),g(18),p()(),f(19,"div",14),U(20,JM,9,5,"article",15),f(21,"div",16)(22,"span",17),g(23,"Progress\xE3o atual"),p(),f(24,"strong"),g(25),p(),f(26,"div",18),$(27,"span"),p()()()()(),f(28,"section",19)(29,"div",20)(30,"div",21)(31,"div")(32,"span",22),g(33,"Percurso da Forma\xE7\xE3o"),p(),f(34,"h2"),g(35,"Contextualiza\xE7\xE3o"),p()()(),f(36,"p",23),g(37),p(),f(38,"ul",24),U(39,XM,2,1,"li",25),p(),f(40,"section",26),U(41,ES,7,4,"article",27),p()(),U(42,wS,12,4,"a",28),f(43,"div",20)(44,"div",21)(45,"div")(46,"span",22),g(47,"Valida\xE7\xE3o de Conhecimentos"),p()()(),f(48,"div",29),U(49,xS,9,4,"article",30),p()(),f(50,"div",31)(51,"a",32),g(52,"Voltar ao curso"),p(),f(53,"button",33),A("click",function(){Q(n);let o=E();return Y(o.scrollToModule(0))}),g(54,"Voltar ao primeiro modulo"),p()()()()(),fo()}if(e&2){let n=t.ngIf,r=E();h(5),_("routerLink",Un(14,w_,n.slug)),h(3),O(n.category),h(2),O(n.title),h(8),re("",n.modules.length," m\xF3dulos"),h(2),_("ngForOf",n.modules),h(5),O(r.progressLabel()),h(2),qt("width",r.progressPercentage(),"%"),h(10),O(n.summary),h(2),_("ngForOf",n.topics),h(2),_("ngForOf",r.modulesWithSections()),h(),_("ngIf",n.pdfPath),h(7),_("ngForOf",r.visibleQuestions()),h(2),_("routerLink",Un(16,w_,n.slug))}}function SS(e,t){if(e&1){let n=le();f(0,"button",83),A("click",function(){Q(n);let o=E(2);return Y(o.showPreviousZoomedImage())}),g(1," Anterior "),p()}if(e&2){let n=E(2);_("disabled",n.zoomedImageIndex()===0)}}function TS(e,t){if(e&1&&(f(0,"span",84),g(1),p()),e&2){let n=E(2);h(),Tt(" ",n.zoomedImageIndex()+1," / ",n.zoomedimageset().length," ")}}function AS(e,t){if(e&1){let n=le();f(0,"button",83),A("click",function(){Q(n);let o=E(2);return Y(o.showNextZoomedImage())}),g(1," Seguinte "),p()}if(e&2){let n=E(2);_("disabled",n.zoomedImageIndex()>=n.zoomedimageset().length-1)}}function NS(e,t){if(e&1){let n=le();f(0,"div",74),A("click",function(){Q(n);let o=E();return Y(o.closeZoomedImage())}),f(1,"div",75),A("click",function(o){return o.stopPropagation()}),f(2,"div",76),U(3,SS,2,1,"button",77)(4,TS,2,2,"span",78),f(5,"button",79),A("click",function(){Q(n);let o=E();return Y(o.zoomOutImage())}),g(6,"-"),p(),f(7,"button",79),A("click",function(){Q(n);let o=E();return Y(o.resetImageZoom())}),g(8,"100%"),p(),f(9,"button",79),A("click",function(){Q(n);let o=E();return Y(o.zoomInImage())}),g(10,"+"),p(),U(11,AS,2,1,"button",77),f(12,"button",80),A("click",function(){Q(n);let o=E();return Y(o.closeZoomedImage())}),g(13,"Fechar"),p()(),f(14,"div",81),A("wheel",function(o){Q(n);let i=dn(16),s=E();return Y(s.handleImageZoomWheel(o,i))}),f(15,"img",82,1),A("click",function(o){Q(n);let i=dn(16),s=E();return Y(s.handleImageZoomClick(o,i))}),p()()()()}if(e&2){let n=t.ngIf,r=E();h(3),_("ngIf",r.zoomedimageset().length>1),h(),_("ngIf",r.zoomedimageset().length>1),h(7),_("ngIf",r.zoomedimageset().length>1),h(4),qt("transform","scale("+r.zoomScale()+")")("transform-origin",r.zoomOrigin()),_("src",n,fe)}}function OS(e,t){e&1&&(f(0,"div",85)(1,"div",86)(2,"h1"),g(3,"Percurso nao encontrado"),p(),f(4,"p"),g(5,"O percurso pedido nao esta disponivel neste momento."),p(),f(6,"a",87),g(7,"Voltar aos cursos"),p()()())}var ol=class e{static QUESTIONS_PER_SESSION=5;static MIN_ZOOM_SCALE=1;static MAX_ZOOM_SCALE=3;static ZOOM_STEP=.25;route=y(it);paramMap=nl(this.route.paramMap);selectedAnswers=P({});presentationImageIndexes=P({});visibleQuestions=P([]);currentModuleIndex=P(0);zoomedimageset=P([]);zoomedImageIndex=P(0);zoomedImageSrc=Ce(()=>this.zoomedimageset()[this.zoomedImageIndex()]??null);zoomScale=P(1);zoomOrigin=P("50% 50%");resetAnswersOnCourseChange=gi(()=>{let t=this.paramMap()?.get("slug")??null,n=ls(t);this.selectedAnswers.set({}),this.presentationImageIndexes.set({}),this.currentModuleIndex.set(0),this.zoomedimageset.set([]),this.zoomedImageIndex.set(0),this.zoomScale.set(1),this.zoomOrigin.set("50% 50%"),this.visibleQuestions.set(this.pickRandomQuestions(n?.questions??[])),setTimeout(()=>this.updateCurrentModuleFromScroll(),0)});course=Ce(()=>{let t=this.paramMap()?.get("slug")??null;return ls(t)});modulesWithSections=Ce(()=>{let t=this.course();if(!t)return[];let n=t.lessonSections[t.lessonSections.length-1]??null;return t.modules.map((r,o)=>({module:r,section:t.lessonSections[o]??n}))});progressLabel=Ce(()=>{let t=this.course();return t?`${this.currentModuleIndex()+1} of ${t.modules.length} m\xF3dulos`:"0% complete"});progressPercentage=Ce(()=>{let t=this.course();return!t||t.modules.length===0?0:(this.currentModuleIndex()+1)/t.modules.length*100});scrollToModule(t){let n=document.querySelector(`[data-module-index="${t}"]`);n&&n.scrollIntoView({behavior:"smooth",block:"start"})}onWindowScroll(){this.updateCurrentModuleFromScroll()}onEscapeKey(){this.closeZoomedImage()}onArrowLeftKey(){this.showPreviousZoomedImage()}onArrowRightKey(){this.showNextZoomedImage()}updateCurrentModuleFromScroll(){let t=Array.from(document.querySelectorAll("[data-module-index]"));if(t.length===0)return;let n=window.scrollY+window.innerHeight*.35,r=0;t.forEach((o,i)=>{o.offsetTop<=n&&(r=i)}),r!==this.currentModuleIndex()&&this.currentModuleIndex.set(r)}selectAnswer(t,n){let r=this.selectedAnswers();r[t]===void 0&&this.selectedAnswers.set(R(b({},r),{[t]:n}))}isQuestionAnswered(t){return this.selectedAnswers()[t]!==void 0}isCorrectOption(t,n){let r=this.visibleQuestions()[t];return!r||!this.isQuestionAnswered(t)?!1:r.correctOptionIndex===n}isWrongSelectedOption(t,n){let r=this.selectedAnswers()[t];if(r===void 0)return!1;let o=this.visibleQuestions()[t];if(!o)return!1;let i=o.correctOptionIndex;return r===n&&r!==i}openZoomedImage(t){this.openZoomedImageGallery([t],0)}openZoomedImageGallery(t,n){this.zoomedimageset.set(t),this.zoomedImageIndex.set(n),this.zoomScale.set(1),this.zoomOrigin.set("50% 50%")}closeZoomedImage(){this.zoomedimageset.set([]),this.zoomedImageIndex.set(0),this.zoomScale.set(1),this.zoomOrigin.set("50% 50%")}showPreviousZoomedImage(){let t=this.zoomedimageset(),n=this.zoomedImageIndex();t.length<=1||n===0||(this.zoomedImageIndex.set(n-1),this.resetImageZoom())}showNextZoomedImage(){let t=this.zoomedimageset(),n=this.zoomedImageIndex();t.length<=1||n>=t.length-1||(this.zoomedImageIndex.set(n+1),this.resetImageZoom())}previousPresentationImage(t){let n=this.getPresentationImageIndex(t);n!==0&&this.presentationImageIndexes.update(r=>R(b({},r),{[t]:n-1}))}nextPresentationImage(t,n){let r=this.getPresentationImageIndex(t);r>=n.length-1||this.presentationImageIndexes.update(o=>R(b({},o),{[t]:r+1}))}getPresentationImage(t,n){return n[this.getPresentationImageIndex(t)]??n[0]??""}getPresentationImageIndex(t){return this.presentationImageIndexes()[t]??0}zoomInImage(){this.zoomScale.update(t=>Math.min(t+e.ZOOM_STEP,e.MAX_ZOOM_SCALE))}zoomOutImage(){this.zoomScale.update(t=>Math.max(t-e.ZOOM_STEP,e.MIN_ZOOM_SCALE))}resetImageZoom(){this.zoomScale.set(1),this.zoomOrigin.set("50% 50%")}handleImageZoomWheel(t,n){if(t.preventDefault(),this.updateZoomOriginFromPointer(t,n),t.deltaY<0){this.zoomInImage();return}this.zoomOutImage()}handleImageZoomClick(t,n){this.updateZoomOriginFromPointer(t,n),this.zoomInImage()}updateZoomOriginFromPointer(t,n){let r=n.getBoundingClientRect();if(r.width===0||r.height===0)return;let o=(t.clientX-r.left)/r.width*100,i=(t.clientY-r.top)/r.height*100,s=Math.min(Math.max(o,0),100),a=Math.min(Math.max(i,0),100);this.zoomOrigin.set(`${s}% ${a}%`)}pickRandomQuestions(t){let n=[...t];for(let r=n.length-1;r>0;r-=1){let o=Math.floor(Math.random()*(r+1));[n[r],n[o]]=[n[o],n[r]]}return n.slice(0,e.QUESTIONS_PER_SESSION)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=be({type:e,selectors:[["app-course-learning-page"]],hostBindings:function(n,r){n&1&&A("scroll",function(){return r.onWindowScroll()},lo)("keydown.escape",function(){return r.onEscapeKey()},lo)("keydown.arrowleft",function(){return r.onArrowLeftKey()},lo)("keydown.arrowright",function(){return r.onArrowRightKey()},lo)},decls:4,vars:3,consts:[["notfound",""],["zoomedimageelement",""],[4,"ngIf","ngIfElse"],["class","image-lightbox",3,"click",4,"ngIf"],[1,"learning-page"],[1,"learning-header"],[1,"learning-header__inner"],[1,"back-link",3,"routerLink"],[1,"course-kicker",2,"display","none"],[1,"learning-layout"],[1,"learning-sidebar"],[1,"sidebar-panel"],[1,"sidebar-panel__top"],[1,"sidebar-panel__eyebrow"],[1,"module-nav"],["class","module-nav__item",3,"module-nav__item--active",4,"ngFor","ngForOf"],[1,"progress-card"],[1,"progress-card__label"],[1,"progress-bar"],[1,"learning-main"],[1,"content-panel"],[1,"content-panel__header"],[1,"content-panel__eyebrow"],[1,"content-intro"],[1,"course-topics"],[4,"ngFor","ngForOf"],[1,"module-sequence"],["class","learning-module",4,"ngFor","ngForOf"],["class","resource-download-card",3,"href",4,"ngIf"],[1,"question-list"],["class","question-card",4,"ngFor","ngForOf"],[1,"lesson-actions"],[1,"button","button--secondary",3,"routerLink"],["type","button",1,"button",3,"click"],[1,"module-nav__item"],["type","button",1,"module-nav__trigger",3,"click"],[1,"module-nav__index"],[1,"module-nav__content"],[1,"learning-module"],[1,"learning-module__header"],[1,"question-card__number"],[1,"lesson-duration"],["class","lesson-section",4,"ngIf"],[1,"lesson-section"],[3,"innerHTML",4,"ngFor","ngForOf"],["class","course-topics",4,"ngIf"],["class","lesson-image","alt","Imagem da secao",3,"src","click",4,"ngIf"],["controls","","width","100%","class","video-aula",4,"ngIf"],["class","presentation-viewer",4,"ngIf"],[3,"innerHTML"],["alt","Imagem da secao",1,"lesson-image",3,"click","src"],["controls","","width","100%",1,"video-aula"],["type","video/mp4",3,"src"],[1,"presentation-viewer"],[1,"presentation-viewer__header"],[1,"presentation-viewer__counter"],[1,"presentation-viewer__stage"],["alt","Imagem da apresentacao",1,"presentation-viewer__slide",3,"click","src"],[1,"presentation-viewer__actions"],["type","button",1,"presentation-viewer__button",3,"click","disabled"],[1,"resource-download-card",3,"href"],["aria-hidden","true",1,"resource-download-card__icon"],["viewBox","0 0 24 24","focusable","false"],["d","M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"],["d","M14 3v5h5"],["d","M12 11v6"],["d","m9.5 14.5 2.5 2.5 2.5-2.5"],[1,"resource-download-card__content"],[1,"resource-download-card__action"],[1,"question-card"],[1,"question-options"],["type","button","class","question-option",3,"question-option--correct","question-option--incorrect","disabled","click",4,"ngFor","ngForOf"],[1,"question-note"],["type","button",1,"question-option",3,"click","disabled"],[1,"image-lightbox",3,"click"],[1,"image-lightbox__dialog",3,"click"],[1,"image-lightbox__toolbar"],["type","button","class","image-lightbox__action",3,"disabled","click",4,"ngIf"],["class","image-lightbox__counter",4,"ngIf"],["type","button",1,"image-lightbox__action",3,"click"],["type","button",1,"image-lightbox__close",3,"click"],[1,"image-lightbox__viewport",3,"wheel"],["alt","Imagem ampliada",1,"image-lightbox__image",3,"click","src"],["type","button",1,"image-lightbox__action",3,"click","disabled"],[1,"image-lightbox__counter"],[1,"course-not-found"],[1,"course-not-found__card"],["routerLink","/formacoes",1,"button"]],template:function(n,r){if(n&1&&U(0,MS,55,18,"ng-container",2)(1,NS,17,8,"div",3)(2,OS,8,0,"ng-template",null,0,Sr),n&2){let o=dn(3);_("ngIf",r.course())("ngIfElse",o),h(),_("ngIf",r.zoomedImageSrc())}},dependencies:[Ve,Ze,Nt,gt],styles:['[_nghost-%COMP%]{display:block;min-height:100vh;background:#f8fafc;color:#0f172a}*[_ngcontent-%COMP%]{box-sizing:border-box}.learning-page[_ngcontent-%COMP%]{min-height:100vh}.video-aula[_ngcontent-%COMP%]{margin-top:20px;border-radius:12px;box-shadow:0 4px 20px #0003}.learning-header[_ngcontent-%COMP%]{border-bottom:1px solid #e2e8f0;background:radial-gradient(circle at top left,rgba(37,99,235,.12),transparent 28%),linear-gradient(180deg,#fff,#f8fbff)}.learning-header__inner[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:24px;max-width:1280px;margin:0 auto;padding:40px 24px 28px}.back-link[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:18px;color:#2563eb;text-decoration:none;font-weight:700}.course-kicker[_ngcontent-%COMP%]{margin:0 0 10px;color:#2563eb;font-size:.82rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.learning-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:clamp(2.2rem,4vw,3.6rem);line-height:1.06;letter-spacing:-.03em}.progress-card[_ngcontent-%COMP%]{min-width:260px;padding:18px 20px;border:1px solid #dbe4f0;border-radius:24px;background:#fff;box-shadow:0 16px 30px #0f172a0d}.progress-card__label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;color:#64748b;font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.progress-card[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;margin-bottom:14px;font-size:1rem}.progress-bar[_ngcontent-%COMP%]{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}.progress-bar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:24%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1d4ed8,#3b82f6)}.learning-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px;max-width:1280px;margin:0 auto;padding:28px 24px 64px}.learning-sidebar[_ngcontent-%COMP%]{position:relative}.sidebar-panel[_ngcontent-%COMP%], .content-panel[_ngcontent-%COMP%], .course-not-found__card[_ngcontent-%COMP%]{border:1px solid #dbe4f0;border-radius:28px;background:#fff;box-shadow:0 14px 34px #0f172a0d}.sidebar-panel[_ngcontent-%COMP%]{position:sticky;top:24px;padding:22px}.sidebar-panel__top[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.sidebar-panel__eyebrow[_ngcontent-%COMP%]{color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.module-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.module-nav__item[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr);padding:0;border:1px solid #e5edf6;border-radius:20px;background:#f8fafc}.module-nav__trigger[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;width:100%;padding:14px;border:0;border-radius:inherit;background:transparent;text-align:left;cursor:pointer}.module-nav__item--active[_ngcontent-%COMP%]{border-color:#bfdbfe;background:#eff6ff}.module-nav__index[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;background:#fff;color:#1d4ed8;font-weight:800}.module-nav__content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 6px;font-size:.98rem}.module-nav__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#64748b;font-size:.9rem}.learning-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:22px}.content-panel[_ngcontent-%COMP%]{padding:28px}.content-panel__header[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.content-panel__eyebrow[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:10px;color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.content-panel__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.8rem;line-height:1.15}.lesson-duration[_ngcontent-%COMP%]{display:inline-flex;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.84rem;font-weight:800;white-space:nowrap}.content-intro[_ngcontent-%COMP%]{margin:0 0 18px;color:#475569;line-height:1.75;white-space:pre-line;text-align:justify}.resource-download-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin:0 0 22px;padding:18px 20px;border:1px solid #bfdbfe;border-radius:22px;background:linear-gradient(135deg,#eff6ff,#fff);color:inherit;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.resource-download-card[_ngcontent-%COMP%]:hover{transform:translateY(-1px);border-color:#60a5fa;box-shadow:0 16px 32px #2563eb1f}.resource-download-card__icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 56px;width:56px;height:56px;border-radius:18px;background:#dbeafe;color:#1d4ed8}.resource-download-card__icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:28px;height:28px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.resource-download-card__content[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.resource-download-card__eyebrow[_ngcontent-%COMP%]{color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.resource-download-card__content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:1rem}.resource-download-card__content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:#64748b;line-height:1.5}.resource-download-card__action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;background:#1d4ed8;color:#fff;font-size:.88rem;font-weight:800;white-space:nowrap}.course-topics[_ngcontent-%COMP%]{margin:0 0 18px;color:#64748b;line-height:1.75;text-align:justify;padding-left:20px}.course-topics[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:6px}.course-topics[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"\\2713";color:#64748b;margin:0 0 18px}.content-icons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}.content-icons__item[_ngcontent-%COMP%]{width:auto;height:26px}.lesson-section[_ngcontent-%COMP%] + .lesson-section[_ngcontent-%COMP%]{margin-top:20px;padding-top:20px;border-top:1px solid #e5edf6}.module-sequence[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:18px}.learning-module[_ngcontent-%COMP%]{scroll-margin-top:28px;padding:20px;border:1px solid #e5edf6;border-radius:24px;background:#fff}.learning-module__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.module-description[_ngcontent-%COMP%]{margin:0 0 14px;color:#475569;line-height:1.7}.lesson-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .question-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 10px;font-size:1.16rem}.lesson-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .question-note[_ngcontent-%COMP%]{margin:0;color:#64748b;line-height:1.75;text-align:justify;white-space:pre-line}.lesson-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%] + p[_ngcontent-%COMP%]{margin-top:12px}.lesson-image[_ngcontent-%COMP%]{display:block;width:min(100%,860px);margin:18px auto;border-radius:18px;box-shadow:0 18px 40px #0f172a1f;cursor:zoom-in;transition:transform .2s ease,box-shadow .2s ease}.lesson-image[_ngcontent-%COMP%]:hover{transform:scale(1.01);box-shadow:0 22px 48px #0f172a29}.presentation-viewer[_ngcontent-%COMP%]{margin-top:24px;padding:22px;border:1px solid #dbe4f0;border-radius:24px;background:linear-gradient(180deg,#eff6ff,#fff)}.presentation-viewer__header[_ngcontent-%COMP%]{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}.presentation-viewer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.12rem}.presentation-viewer__counter[_ngcontent-%COMP%], .image-lightbox__counter[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.82rem;font-weight:800;white-space:nowrap}.presentation-viewer__stage[_ngcontent-%COMP%]{overflow:hidden;border-radius:20px;background:#0f172a;box-shadow:inset 0 0 0 1px #ffffff14}.presentation-viewer__slide[_ngcontent-%COMP%]{display:block;width:100%;aspect-ratio:16 / 9;object-fit:contain;background:#0f172a;cursor:zoom-in}.presentation-viewer__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.presentation-viewer__button[_ngcontent-%COMP%]{min-height:44px;padding:0 18px;border:0;border-radius:14px;background:#1d4ed8;color:#fff;font-size:.9rem;font-weight:800;cursor:pointer}.presentation-viewer__button[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}.image-lightbox[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:#0f172ad1;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.image-lightbox__dialog[_ngcontent-%COMP%]{position:relative;max-width:min(1200px,100%);max-height:100%}.image-lightbox__toolbar[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px;z-index:1;display:flex;align-items:center;gap:8px}.image-lightbox__action[_ngcontent-%COMP%], .image-lightbox__close[_ngcontent-%COMP%]{min-width:48px;min-height:40px;padding:0 14px;border:0;border-radius:999px;background:#fff;color:#0f172a;font-size:.86rem;font-weight:800;cursor:pointer;box-shadow:0 10px 24px #0f172a33}.image-lightbox__close[_ngcontent-%COMP%]{min-width:96px}.image-lightbox__viewport[_ngcontent-%COMP%]{overflow:auto;max-width:min(1200px,calc(100vw - 48px));max-height:calc(100vh - 48px);border-radius:20px;cursor:zoom-in}.image-lightbox__image[_ngcontent-%COMP%]{display:block;max-width:min(1200px,calc(100vw - 48px));max-height:calc(100vh - 48px);border-radius:20px;box-shadow:0 28px 70px #0f172a59;transition:transform .18s ease;-webkit-user-select:none;user-select:none}.question-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.question-card[_ngcontent-%COMP%]{padding:20px;border:1px solid #e5edf6;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff)}.question-card__number[_ngcontent-%COMP%]{display:inline-flex;margin-bottom:12px;color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.question-options[_ngcontent-%COMP%]{display:grid;gap:10px;margin:16px 0 14px}.question-option[_ngcontent-%COMP%]{min-height:50px;border:1px solid #dbe4f0;border-radius:16px;background:#fff;color:#0f172a;font-size:.95rem;font-weight:700;text-align:left;padding:0 16px;cursor:pointer}.question-option[_ngcontent-%COMP%]:hover{border-color:#93c5fd;background:#f8fbff}.question-option[_ngcontent-%COMP%]:disabled{opacity:1;cursor:default}.question-option.question-option--correct[_ngcontent-%COMP%]{border-color:#16a34a;background:#dcfce7;color:#166534}.question-option.question-option--incorrect[_ngcontent-%COMP%]{border-color:#dc2626;background:#fee2e2;color:#991b1b}.lesson-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px}.button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-width:180px;min-height:50px;padding:0 20px;border:0;border-radius:18px;background:#1d4ed8;color:#fff;text-decoration:none;font-size:.96rem;font-weight:800;cursor:pointer}.button[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.button--secondary[_ngcontent-%COMP%]{background:#eff6ff;color:#1d4ed8}.course-not-found[_ngcontent-%COMP%]{min-height:100vh;display:grid;place-items:center;padding:24px}.course-not-found__card[_ngcontent-%COMP%]{max-width:520px;padding:32px;text-align:center}.course-not-found__card[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 0 12px}.course-not-found__card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 20px;color:#64748b}@media(max-width:1024px){.learning-header__inner[_ngcontent-%COMP%], .learning-layout[_ngcontent-%COMP%]{grid-template-columns:1fr;display:grid}.progress-card[_ngcontent-%COMP%], .sidebar-panel[_ngcontent-%COMP%]{position:static}}@media(max-width:768px){.learning-header__inner[_ngcontent-%COMP%], .learning-layout[_ngcontent-%COMP%]{padding-left:20px;padding-right:20px}.learning-header__inner[_ngcontent-%COMP%]{padding-top:32px;padding-bottom:24px}.content-panel[_ngcontent-%COMP%], .sidebar-panel[_ngcontent-%COMP%], .course-not-found__card[_ngcontent-%COMP%]{border-radius:22px}.content-panel[_ngcontent-%COMP%]{padding:22px}.content-panel__header[_ngcontent-%COMP%], .lesson-actions[_ngcontent-%COMP%], .presentation-viewer__header[_ngcontent-%COMP%], .presentation-viewer__actions[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.resource-download-card[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}.resource-download-card__action[_ngcontent-%COMP%]{width:100%}}']})};var Lr=()=>{let e=y(mt),t=y(Ue);return e.isLoggedIn().then(n=>n?!0:t.createUrlTree(["/"]))};var R_=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(k(wr),k(Mt))};static \u0275dir=ve({type:e})}return e})(),P_=(()=>{class e extends R_{static \u0275fac=(()=>{let n;return function(o){return(n||(n=an(e)))(o||e)}})();static \u0275dir=ve({type:e,features:[St]})}return e})(),Cp=new w(""),RS={provide:Cp,useExisting:Ft(()=>Dp),multi:!0},Dp=(()=>{class e extends P_{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=an(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&A("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Mr([RS]),St]})}return e})(),PS={provide:Cp,useExisting:Ft(()=>jo),multi:!0};function kS(){let e=ft()?ft().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var FS=new w(""),jo=(()=>{class e extends R_{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!kS())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(k(wr),k(Mt),k(FS,8))};static \u0275dir=ve({type:e,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(r,o){r&1&&A("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Mr([PS]),St]})}return e})();function LS(e){return e==null||jS(e)===0}function jS(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Ep=new w(""),k_=new w("");function VS(e){return LS(e.value)?{required:!0}:null}function I_(e){return null}function F_(e){return e!=null}function L_(e){return jn(e)?ce(e):e}function j_(e){let t={};return e.forEach(n=>{t=n!=null?b(b({},t),n):t}),Object.keys(t).length===0?null:t}function V_(e,t){return t.map(n=>n(e))}function BS(e){return!e.validate}function B_(e){return e.map(t=>BS(t)?t:n=>t.validate(n))}function US(e){if(!e)return null;let t=e.filter(F_);return t.length==0?null:function(n){return j_(V_(n,t))}}function wp(e){return e!=null?US(B_(e)):null}function HS(e){if(!e)return null;let t=e.filter(F_);return t.length==0?null:function(n){let r=V_(n,t).map(L_);return Hl(r).pipe(Z(j_))}}function Ip(e){return e!=null?HS(B_(e)):null}function x_(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function $S(e){return e._rawValidators}function zS(e){return e._rawAsyncValidators}function _p(e){return e?Array.isArray(e)?e:[e]:[]}function sl(e,t){return Array.isArray(e)?e.includes(t):e===t}function M_(e,t){let n=_p(t);return _p(e).forEach(o=>{sl(n,o)||n.push(o)}),n}function S_(e,t){return _p(t).filter(n=>!sl(e,n))}var al=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(t){this._rawValidators=t||[],this._composedValidatorFn=wp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ip(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control?.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Lo=class extends al{name;get formDirective(){return null}get path(){return null}},gs=class extends al{_parent=null;name=null;valueAccessor=null},cl=class{_cd;constructor(t){this._cd=t}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}};var pl=(()=>{class e extends cl{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(k(gs,2))};static \u0275dir=ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ue("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:[St]})}return e})(),U_=(()=>{class e extends cl{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(k(Lo,10))};static \u0275dir=ve({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ue("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)("ng-submitted",o.isSubmitted)},standalone:!1,features:[St]})}return e})();var us="VALID",il="INVALID",ko="PENDING",ds="DISABLED",Zn=class{},ll=class extends Zn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},ps=class extends Zn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},hs=class extends Zn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Fo=class extends Zn{status;source;constructor(t,n){super(),this.status=t,this.source=n}},bp=class extends Zn{source;constructor(t){super(),this.source=t}},ul=class extends Zn{source;constructor(t){super(),this.source=t}};function H_(e){return(hl(e)?e.validators:e)||null}function qS(e){return Array.isArray(e)?wp(e):e||null}function $_(e,t){return(hl(t)?t.asyncValidators:e)||null}function GS(e){return Array.isArray(e)?Ip(e):e||null}function hl(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function WS(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,"");if(!r[n])throw new C(1001,"")}function ZS(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new C(1002,"")})}var dl=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ee(this.statusReactive)}set status(t){ee(()=>this.statusReactive.set(t))}_status=Ce(()=>this.statusReactive());statusReactive=P(void 0);get valid(){return this.status===us}get invalid(){return this.status===il}get pending(){return this.status==ko}get disabled(){return this.status===ds}get enabled(){return this.status!==ds}errors;get pristine(){return ee(this.pristineReactive)}set pristine(t){ee(()=>this.pristineReactive.set(t))}_pristine=Ce(()=>this.pristineReactive());pristineReactive=P(!0);get dirty(){return!this.pristine}get touched(){return ee(this.touchedReactive)}set touched(t){ee(()=>this.touchedReactive.set(t))}_touched=Ce(()=>this.touchedReactive());touchedReactive=P(!1);get untouched(){return!this.touched}_events=new ge;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(M_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(M_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(S_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(S_(t,this._rawAsyncValidators))}hasValidator(t){return sl(this._rawValidators,t)}hasAsyncValidator(t){return sl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(R(b({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new hs(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new hs(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(R(b({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ps(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new ps(!0,r))}markAsPending(t={}){this.status=ko;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Fo(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(R(b({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ds,this.errors=null,this._forEachChild(o=>{o.disable(R(b({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ll(this.value,r)),this._events.next(new Fo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(R(b({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=us,this._forEachChild(r=>{r.enable(R(b({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(R(b({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},n),this._parent?._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===us||this.status===ko)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ll(this.value,n)),this._events.next(new Fo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(R(b({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ds:us}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=ko,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=L_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r?.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Fo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new me,this.statusChanges=new me}_calculateStatus(){return this._allControlsDisabled()?ds:this.errors?il:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ko)?ko:this._anyControlsHaveStatus(il)?il:us}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,t.onlySelf||this._parent?._updatePristine(t,n),o&&this._events.next(new ps(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new hs(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){hl(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=qS(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=GS(this._rawAsyncValidators)}},fl=class extends dl{constructor(t,n,r){super(H_(n),$_(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){ZS(this,!0,t),Object.keys(t).forEach(r=>{WS(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,R(b({},n),{onlySelf:!0}))}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n),n?.emitEvent!==!1&&this._events.next(new ul(this))}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var xp=new w("",{factory:()=>Mp}),Mp="always";function QS(e,t){return[...t.path,e]}function z_(e,t,n=Mp){q_(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),KS(e,t),XS(e,t),JS(e,t),YS(e,t)}function T_(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function YS(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function q_(e,t){let n=$S(e);t.validator!==null?e.setValidators(x_(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=zS(e);t.asyncValidator!==null?e.setAsyncValidators(x_(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();T_(t._rawValidators,o),T_(t._rawAsyncValidators,o)}function KS(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&G_(e,t)})}function JS(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&G_(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function G_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function XS(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function eT(e,t){e==null,q_(e,t)}function tT(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function nT(e){return Object.getPrototypeOf(e.constructor)===P_}function rT(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function oT(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===jo?n=i:nT(i)?r=i:o=i}),o||r||n||null}var iT={provide:Lo,useExisting:Ft(()=>Sp)},fs=Promise.resolve(),Sp=(()=>{class e extends Lo{callSetDisabledState;get submitted(){return ee(this.submittedReactive)}_submitted=Ce(()=>this.submittedReactive());submittedReactive=P(!1);_directives=new Set;form;ngSubmit=new me;options;constructor(n,r,o){super(),this.callSetDisabledState=o,this.form=new fl({},wp(n),Ip(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){fs.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),z_(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){fs.then(()=>{this._findContainer(n.path)?.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){fs.then(()=>{let r=this._findContainer(n.path),o=new fl({});eT(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){fs.then(()=>{this._findContainer(n.path)?.removeControl?.(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){fs.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),rT(this.form,this._directives),this.ngSubmit.emit(n),this.form._events.next(new bp(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}static \u0275fac=function(r){return new(r||e)(k(Ep,10),k(k_,10),k(xp,8))};static \u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&A("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Mr([iT]),St]})}return e})();function A_(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function N_(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var sT=class extends dl{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(H_(n),$_(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(N_(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new ul(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){A_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){A_(this._onDisabledChange,t)}_forEachChild(t){}_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(t){N_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var aT={provide:gs,useExisting:Ft(()=>ms)},O_=Promise.resolve(),ms=(()=>{class e extends gs{_changeDetectorRef;callSetDisabledState;control=new sT;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new me;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=oT(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),tT(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_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(){z_(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(n){O_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Tr(r);O_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?QS(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(k(Lo,9),k(Ep,10),k(k_,10),k(Cp,10),k(mo,8),k(xp,8))};static \u0275dir=ve({type:e,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:[Mr([aT]),St,sn]})}return e})();var W_=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var cT=(()=>{class e{_validator=I_;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):I_,this._onChange?.()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=ve({type:e,features:[sn]})}return e})();var lT={provide:Ep,useExisting:Ft(()=>Tp),multi:!0};var Tp=(()=>{class e extends cT{required;inputName="required";normalizeInput=Tr;createValidator=n=>VS;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=an(e)))(o||e)}})();static \u0275dir=ve({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&un("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Mr([lT]),St]})}return e})();var uT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=zt({type:e});static \u0275inj=Dt({})}return e})();var gl=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:xp,useValue:n.callSetDisabledState??Mp}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=zt({type:e});static \u0275inj=Dt({imports:[uT]})}return e})();function dT(e,t){if(e&1&&(f(0,"p",13),g(1),p()),e&2){let n=E();h(),O(n.errorMessage())}}var ml=class e{constructor(t,n){this.authService=t;this.router=n}email="";password="";rememberSession=!0;submitted=P(!1);errorMessage=P("");async ngOnInit(){await this.authService.isLoggedIn()&&this.router.navigateByUrl("/formacoes")}async login(){this.submitted.set(!0),this.errorMessage.set("");let t=this.email.trim();if(!t||!this.password){this.errorMessage.set("Preencha o email e a palavra-passe.");return}try{await this.authService.login(t,this.password,this.rememberSession),this.router.navigateByUrl("/pagina-principal")}catch{this.errorMessage.set("Email ou palavra-passe incorretos.")}}static \u0275fac=function(n){return new(n||e)(k(mt),k(Ue))};static \u0275cmp=be({type:e,selectors:[["app-login-page"]],decls:26,vars:8,consts:[[1,"login-page"],["aria-labelledby","login-title",1,"login-card"],["src","/logo-metacase-cor.svg","alt","Metacase",1,"login-logo"],[1,"login-header"],["id","login-title"],["novalidate","",1,"login-form",3,"ngSubmit"],[1,"field"],["type","email","name","email","autocomplete","email","placeholder","nome@empresa.pt","required","",3,"ngModelChange","ngModel"],["type","password","name","password","autocomplete","current-password","placeholder","Palavra-passe","required","",3,"ngModelChange","ngModel"],[1,"remember-row"],["type","checkbox","name","rememberSession",3,"ngModelChange","ngModel"],["class","error-message",4,"ngIf"],["type","submit"],[1,"error-message"]],template:function(n,r){n&1&&(f(0,"main",0)(1,"section",1),$(2,"img",2),f(3,"div",3)(4,"span"),g(5,"Multipurpose hub"),p(),f(6,"h1",4),g(7,"Iniciar sessao"),p(),f(8,"p"),g(9,"Entre para aceder as formacoes TargetOne."),p()(),f(10,"form",5),A("ngSubmit",function(){return r.login()}),f(11,"label",6)(12,"span"),g(13,"Email"),p(),f(14,"input",7),Bn("ngModelChange",function(i){return xr(r.email,i)||(r.email=i),i}),p()(),f(15,"label",6)(16,"span"),g(17,"Palavra-passe"),p(),f(18,"input",8),Bn("ngModelChange",function(i){return xr(r.password,i)||(r.password=i),i}),p()(),f(19,"label",9)(20,"input",10),Bn("ngModelChange",function(i){return xr(r.rememberSession,i)||(r.rememberSession=i),i}),p(),f(21,"span"),g(22,"Manter sessao iniciada"),p()(),U(23,dT,2,1,"p",11),f(24,"button",12),g(25,"Entrar"),p()()()()),n&2&&(h(14),ue("field--invalid",r.submitted()&&!r.email.trim()),Vn("ngModel",r.email),h(4),ue("field--invalid",r.submitted()&&!r.password),Vn("ngModel",r.password),h(2),Vn("ngModel",r.rememberSession),h(3),_("ngIf",r.errorMessage()))},dependencies:[Ve,Nt,gl,W_,jo,Dp,pl,U_,Tp,ms,Sp],styles:["[_nghost-%COMP%]{display:block;min-height:100vh;background:linear-gradient(135deg,#0f172adb,#1e40afad),url(/screenshots/Pagina\\ Principal.jpg) center / cover no-repeat;color:#0f172a}.login-page[_ngcontent-%COMP%]{display:flex;min-height:100vh;align-items:center;justify-content:center;padding:24px}.login-card[_ngcontent-%COMP%]{width:min(100%,420px);border:1px solid rgba(226,232,240,.86);border-radius:8px;background:#fffffff5;padding:32px;box-shadow:0 24px 70px #0f172a47}.login-logo[_ngcontent-%COMP%]{display:block;width:170px;height:auto}.login-header[_ngcontent-%COMP%]{margin-top:30px}.login-header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;border-radius:999px;background:#dbeafe;padding:7px 11px;color:#1d4ed8;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.login-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:18px 0 0;font-size:2rem;line-height:1.1;font-weight:800}.login-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0 0;color:#64748b;line-height:1.6}.login-form[_ngcontent-%COMP%]{display:grid;gap:18px;margin-top:28px}.field[_ngcontent-%COMP%]{display:grid;gap:8px;color:#334155;font-size:.92rem;font-weight:700}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{min-height:52px;width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:0 14px;color:#0f172a;font:inherit;font-weight:500;outline:none;transition:border-color .2s ease,box-shadow .2s ease}.field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb29}.field[_ngcontent-%COMP%] input.field--invalid[_ngcontent-%COMP%]{border-color:#dc2626}.remember-row[_ngcontent-%COMP%]{display:inline-flex;width:fit-content;align-items:center;gap:9px;color:#475569;font-size:.92rem;font-weight:600}.remember-row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:16px;height:16px;accent-color:#2563eb}.error-message[_ngcontent-%COMP%]{margin:0;border-radius:8px;background:#fee2e2;padding:12px 14px;color:#991b1b;font-size:.92rem;font-weight:700}.login-form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-height:54px;cursor:pointer;border:0;border-radius:8px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-size:1rem;font-weight:800;transition:opacity .2s ease,transform .2s ease}.login-form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{opacity:.94;transform:translateY(-1px)}@media(max-width:520px){.login-card[_ngcontent-%COMP%]{padding:24px}.login-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.75rem}}"]})};function fT(e,t){if(e&1){let n=le();f(0,"button",19),A("click",function(){let o=Q(n).$implicit,i=E();return Y(i.activateShortcut(o))}),$(1,"img",20),f(2,"span",21),g(3),p(),f(4,"span",22),g(5),p()()}if(e&2){let n=t.$implicit,r=E();qt("--orbit-angle",n.angle),ue("orbit-menu__item--open",r.leftOrbitOpen()),h(),_("src",n.image,fe)("alt",n.label),h(2),O(n.label),h(2),O(n.caption)}}function pT(e,t){if(e&1){let n=le();f(0,"button",23),A("click",function(){let o=Q(n).$implicit,i=E();return Y(i.activateShortcut(o))}),$(1,"img",20),f(2,"span",21),g(3),p(),f(4,"span",22),g(5),p()()}if(e&2){let n=t.$implicit,r=E();qt("--orbit-angle",n.angle),ue("orbit-menu__item--open",r.rightOrbitOpen()),h(),_("src",n.image,fe)("alt",n.label),h(2),O(n.label),h(2),O(n.caption)}}var vl=class e{constructor(t,n){this.authService=t;this.router=n}leftOrbitOpen=P(!1);rightOrbitOpen=P(!1);leftCoreImage="/imagenscursos/learninghub.png";rightCoreImage="/imagenscursos/operationframework.png";leftShortcuts=[{label:"Formacoes",caption:"Learning Hub",image:"/imagenscursos/LearningHub (2).png",route:"/formacoes",angle:"0deg"},{label:"Vitoria AI",caption:"LLM",image:"/imagenscursos/VitoriaAI.png",route:"/vitoria-ai",angle:"90deg"}];rightShortcuts=[{label:"Conversor de Extratos",caption:"Por entidade bancaria",image:"/imagenscursos/outconversor.png",route:"/conversor-extratos",angle:"0deg"},{label:"Tradutor",caption:"Tradutor de textos",image:"/imagenscursos/Reportcreator.png",route:"/cursos/formacao-plataforma",angle:"90deg"},{label:"Report Creator",caption:"Report digitalization",image:"/imagenscursos/Digitalizationreport.png",route:"/cursos/formacao-plataforma",angle:"180deg"}];toggleLeftOrbit(){this.leftOrbitOpen.update(t=>!t)}toggleRightOrbit(){this.rightOrbitOpen.update(t=>!t)}activateShortcut(t){if(t.route){this.router.navigateByUrl(t.route);return}t.href&&window.open(t.href,"_blank","noopener")}logout(){this.authService.logout(),this.router.navigateByUrl("/")}static \u0275fac=function(n){return new(n||e)(k(mt),k(Ue))};static \u0275cmp=be({type:e,selectors:[["app-pagina-principal"]],decls:30,vars:10,consts:[[1,"hub-page"],[1,"hub-page__backdrop"],[1,"hub-topbar"],[1,"hub-topbar__brand"],["src","/logo-metacase-cor.svg","alt","Metacase",1,"hub-topbar__logo"],["type","button",1,"hub-topbar__logout",3,"click"],[1,"hub-hero"],[1,"hub-hero__copy"],[1,"hub-hero__eyebrow"],[1,"hub-grid"],[1,"orbit-card","orbit-card--left"],[1,"orbit-card__header"],[1,"orbit-shell"],["type","button",1,"orbit-core",3,"click"],[1,"sr-only"],["type","button","class","orbit-menu__item",3,"orbit-menu__item--open","--orbit-angle","click",4,"ngFor","ngForOf"],[1,"orbit-card","orbit-card--right"],[1,"orbit-shell","orbit-shell--right"],["type","button","class","orbit-menu__item orbit-menu__item--right",3,"orbit-menu__item--open","--orbit-angle","click",4,"ngFor","ngForOf"],["type","button",1,"orbit-menu__item",3,"click"],[1,"orbit-menu__image",3,"src","alt"],[1,"orbit-menu__label"],[1,"orbit-menu__caption"],["type","button",1,"orbit-menu__item","orbit-menu__item--right",3,"click"]],template:function(n,r){n&1&&(f(0,"div",0),$(1,"div",1),f(2,"header",2)(3,"div",3),$(4,"img",4),p(),f(5,"button",5),A("click",function(){return r.logout()}),g(6,"Sair"),p()(),f(7,"section",6)(8,"div",7)(9,"span",8),g(10,"Multipurpose Hub"),p()()(),f(11,"section",9)(12,"article",10)(13,"div",11)(14,"span"),g(15,"Learning Hub"),p()(),f(16,"div",12)(17,"button",13),A("click",function(){return r.toggleLeftOrbit()}),f(18,"span",14),g(19,"Abrir atalhos Learning Hub"),p()(),U(20,fT,6,8,"button",15),p()(),f(21,"article",16)(22,"div",11)(23,"span"),g(24,"Operational Framework"),p()(),f(25,"div",17)(26,"button",13),A("click",function(){return r.toggleRightOrbit()}),f(27,"span",14),g(28,"Abrir atalhos Operational Framework"),p()(),U(29,pT,6,8,"button",18),p()()()()),n&2&&(h(17),qt("background-image","url("+r.leftCoreImage+")"),ue("orbit-core--open",r.leftOrbitOpen()),h(3),_("ngForOf",r.leftShortcuts),h(6),qt("background-image","url("+r.rightCoreImage+")"),ue("orbit-core--open",r.rightOrbitOpen()),h(3),_("ngForOf",r.rightShortcuts))},dependencies:[Ve,Ze],styles:["[_nghost-%COMP%]{display:block}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hub-page[_ngcontent-%COMP%]{position:relative;min-height:100vh;padding:32px;color:#0f172a;background:radial-gradient(circle at top left,rgba(59,130,246,.16),transparent 28%),radial-gradient(circle at top right,rgba(56,189,248,.18),transparent 26%),linear-gradient(180deg,#f8fbff,#eef4ff 44%,#f8fafc)}.hub-page__backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,#ffffffa3,#fff0),radial-gradient(circle at center,rgba(15,23,42,.03),transparent 54%)}.hub-topbar[_ngcontent-%COMP%], .hub-hero[_ngcontent-%COMP%], .hub-grid[_ngcontent-%COMP%]{position:relative;z-index:1}.hub-topbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.hub-topbar__brand[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:14px 18px;border:1px solid rgba(191,219,254,.7);border-radius:999px;background:#ffffffd6;box-shadow:0 20px 48px #0f172a14;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.hub-topbar__logo[_ngcontent-%COMP%]{width:clamp(170px,18vw,260px);height:auto}.hub-topbar__logout[_ngcontent-%COMP%]{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:linear-gradient(135deg,#1d4ed8,#2563eb);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 16px 34px #2563eb3d}.hub-hero[_ngcontent-%COMP%]{max-width:760px;margin:44px auto 0;text-align:center}.hub-hero__eyebrow[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:#2563eb1a;color:#1d4ed8;font-size:.82rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.hub-hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:18px 0 0;font-size:clamp(2.4rem,4vw,4rem);line-height:1.05;font-weight:900}.hub-hero[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:18px auto 0;max-width:640px;color:#fff;font-size:1.05rem;line-height:1.8}.hub-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start;margin-top:54px}.orbit-card[_ngcontent-%COMP%]{position:relative;min-height:620px;padding:28px;border:1px solid rgba(148,163,184,.2);border-radius:36px;background:#fff;box-shadow:0 28px 70px #0f172a14;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.orbit-card__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:center;display:block;color:#0f172a;font-size:1.4rem;font-weight:900}.orbit-card__header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin:8px 0 0;color:#e2e8f0;line-height:1.65}.orbit-shell[_ngcontent-%COMP%]{--orbit-radius: 190px;position:relative;display:flex;align-items:center;justify-content:center;min-height:500px}.orbit-core[_ngcontent-%COMP%]{width:250px;height:250px;border:0;border-radius:50%;background-color:#fff;background-position:center;background-repeat:no-repeat;background-size:contain;box-shadow:0 30px 60px #0f172a2e;cursor:pointer;transition:transform .24s ease,box-shadow .24s ease}.orbit-core[_ngcontent-%COMP%]:hover, .orbit-core--open[_ngcontent-%COMP%]{transform:scale(1.03);box-shadow:0 34px 78px #2563eb3d}.orbit-menu__item[_ngcontent-%COMP%]{--orbit-angle: 0deg;position:absolute;top:50%;left:50%;width:170px;min-height:120px;padding:14px 16px;border:1px solid rgba(255,255,255);border-radius:24px;background:#fffffffa;box-shadow:0 22px 42px #0f172a1f;opacity:0;pointer-events:none;transform:translate(-50%,-50%) rotate(var(--orbit-angle)) translate(30px) rotate(calc(var(--orbit-angle) * -1)) scale(.72);transition:transform .28s ease,opacity .28s ease}.orbit-menu__item--open[_ngcontent-%COMP%]{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) rotate(var(--orbit-angle)) translate(var(--orbit-radius)) rotate(calc(var(--orbit-angle) * -1)) scale(1)}.orbit-menu__image[_ngcontent-%COMP%]{width:100%;height:52px;object-fit:contain}.orbit-menu__label[_ngcontent-%COMP%]{display:block;margin-top:10px;color:#0f172a;font-weight:900;font-size:.96rem}.orbit-menu__caption[_ngcontent-%COMP%]{display:block;margin-top:4px;color:#64748b;font-size:.78rem;line-height:1.4}@media(max-width:1180px){.hub-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media(max-width:768px){.hub-page[_ngcontent-%COMP%]{padding:18px}.hub-topbar[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.hub-topbar__brand[_ngcontent-%COMP%]{justify-content:center}.orbit-shell[_ngcontent-%COMP%]{--orbit-radius: 150px;min-height:430px}.orbit-core[_ngcontent-%COMP%]{width:200px;height:200px}.orbit-menu__item[_ngcontent-%COMP%]{width:150px;min-height:112px}}"]})};var yl=class e{http=y(Do);endpoint="/api/vitoria-ai/perguntar";requestTimeoutMs=24e4;sendMessage(t,n=[]){let r={pergunta:t,history:n};return this.http.post(this.endpoint,r).pipe(Z(o=>({pergunta:o.pergunta??t,resposta:o.resposta??o.answer??o.message??"",fontes:o.fontes??o.sources??[]}))).pipe(Go(this.requestTimeoutMs))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})};var hT=["scrollContainer"];function gT(e,t){if(e&1&&(f(0,"button",20),g(1),p()),e&2){let n=t.$implicit;h(),re(" ",n," ")}}function mT(e,t){if(e&1&&(f(0,"div",18),U(1,gT,2,1,"button",19),p()),e&2){let n=E();h(),_("ngForOf",n.conversations)}}function vT(e,t){e&1&&(f(0,"div",21),g(1,"Sem hist\xF3rico recente."),p())}function yT(e,t){if(e&1&&(f(0,"li"),g(1),p()),e&2){let n=t.$implicit;h(),sc(" ",n.nome_pdf," \xB7 ",n.categoria," \xB7 Chunk ",n.chunk_id," ")}}function _T(e,t){if(e&1&&(f(0,"ul",26),U(1,yT,2,3,"li",27),p()),e&2){let n=E().$implicit;h(),_("ngForOf",n.sources)}}function bT(e,t){if(e&1&&(f(0,"article",22)(1,"div",23)(2,"span"),g(3),p(),f(4,"span"),g(5),gf(6,"date"),p()(),f(7,"p",24),g(8),p(),U(9,_T,2,1,"ul",25),p()),e&2){let n=t.$implicit;ue("message-card--user",n.role==="user")("message-card--error",n.isError),h(3),O(n.role==="user"?"Utilizador":"Vitoria AI"),h(2),O(mf(6,8,n.createdAt,"HH:mm")),h(3),O(n.content),h(),_("ngIf",n.sources==null?null:n.sources.length)}}function CT(e,t){e&1&&(f(0,"div",28),g(1,"A gerar resposta..."),p())}var _l=class e{scrollContainer;chatService=y(yl);appName="Vitoria AI";badge="Beta Release";prompt="";isLoading=!1;conversations=[];messages=[{id:crypto.randomUUID(),role:"assistant",content:"Ola. Sou a Vitoria AI, uma assistente virtual para a area da formacao. Em que posso ajudar?",createdAt:new Date}];newChat(){this.prompt="",this.isLoading=!1,this.messages=[{id:crypto.randomUUID(),role:"assistant",content:"Nova conversa iniciada. Em que posso ajudar?",createdAt:new Date}],this.scrollToBottom()}send(){let t=this.prompt.trim();if(!t||this.isLoading)return;let n={id:crypto.randomUUID(),role:"user",content:t,createdAt:new Date};this.messages=[...this.messages,n],this.prompt="",this.isLoading=!0,this.trackConversation(t),this.scrollToBottom(),this.chatService.sendMessage(t,this.messages.map(({role:r,content:o,createdAt:i})=>({role:r,content:o,createdAt:i}))).pipe(Rt(()=>this.isLoading=!1)).subscribe({next:r=>{let o={id:crypto.randomUUID(),role:"assistant",content:r.resposta||"Sem resposta do servico.",createdAt:new Date,sources:r.fontes??[]};this.messages=[...this.messages,o],this.scrollToBottom()},error:r=>{let o={id:crypto.randomUUID(),role:"assistant",content:this.getErrorMessage(r),createdAt:new Date,isError:!0};this.messages=[...this.messages,o],this.scrollToBottom()}})}handleKeyDown(t){t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),this.send())}trackByMessage(t,n){return n.id}trackConversation(t){let n=t.slice(0,60);this.conversations=[n,...this.conversations.filter(r=>r!==n)].slice(0,6)}scrollToBottom(){queueMicrotask(()=>{let t=this.scrollContainer?.nativeElement;t&&(t.scrollTop=t.scrollHeight)})}getErrorMessage(t){if(t&&typeof t=="object"&&"name"in t&&t.name==="TimeoutError")return"O backend demorou demasiado tempo a responder. Verifica a latencia do modelo e do endpoint Python.";if(t instanceof Gt){let n=typeof t.error?.detail=="string"?t.error.detail:typeof t.error?.message=="string"?t.error.message:typeof t.error=="string"?t.error:"";return t.status===0?"Nao foi possivel ligar ao backend da Vitoria AI. Confirma que o servico Python esta em execucao e acessivel para este servidor.":n?`Erro do backend (${t.status}): ${n}`:`Erro do backend (${t.status}).`}return"O pedido falhou por um erro inesperado ao comunicar com o backend."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=be({type:e,selectors:[["app-vitoria-ai-page"]],viewQuery:function(n,r){if(n&1&&po(hT,5),n&2){let o;ho(o=go())&&(r.scrollContainer=o.first)}},decls:32,vars:10,consts:[["noConversations",""],["scrollContainer",""],[1,"ai-page"],[1,"ai-header"],[1,"ai-header__badge"],[1,"ai-header__actions"],["routerLink","/pagina-principal",1,"nav-link"],["type","button",1,"new-chat-button",3,"click"],[1,"ai-layout"],[1,"conversation-panel"],["class","conversation-list",4,"ngIf","ngIfElse"],[1,"chat-panel"],[1,"message-stream"],["class","message-card",3,"message-card--user","message-card--error",4,"ngFor","ngForOf","ngForTrackBy"],["class","message-loading",4,"ngIf"],[1,"chat-composer"],["placeholder","Escreve a tua pergunta...","rows","4",3,"ngModelChange","keydown","ngModel"],["type","button",1,"send-button",3,"click","disabled"],[1,"conversation-list"],["type","button","class","conversation-chip",4,"ngFor","ngForOf"],["type","button",1,"conversation-chip"],[1,"conversation-empty"],[1,"message-card"],[1,"message-card__meta"],[1,"message-card__content"],["class","message-card__sources",4,"ngIf"],[1,"message-card__sources"],[4,"ngFor","ngForOf"],[1,"message-loading"]],template:function(n,r){if(n&1){let o=le();f(0,"div",2)(1,"header",3)(2,"div")(3,"span",4),g(4),p(),f(5,"h1"),g(6),p(),f(7,"p"),g(8,"Assistente conversacional para apoio \xE0 navega\xE7\xE3o e aos conte\xFAdos da \xE1rea de forma\xE7\xE3o."),p()(),f(9,"div",5)(10,"a",6),g(11,"Pagina principal"),p(),f(12,"button",7),A("click",function(){return r.newChat()}),g(13,"Nova conversa"),p()()(),f(14,"section",8)(15,"aside",9)(16,"h2"),g(17,"Conversas recentes"),p(),f(18,"p"),g(19,"Os \xFAltimos prompts enviados ficam resumidos aqui."),p(),U(20,mT,2,1,"div",10)(21,vT,2,0,"ng-template",null,0,Sr),p(),f(23,"div",11)(24,"div",12,1),U(26,bT,10,11,"article",13)(27,CT,2,0,"div",14),p(),f(28,"div",15)(29,"textarea",16),Bn("ngModelChange",function(s){return Q(o),xr(r.prompt,s)||(r.prompt=s),Y(s)}),A("keydown",function(s){return r.handleKeyDown(s)}),p(),f(30,"button",17),A("click",function(){return r.send()}),g(31),p()()()()()}if(n&2){let o=dn(22);h(4),O(r.badge),h(2),O(r.appName),h(14),_("ngIf",r.conversations.length)("ngIfElse",o),h(6),_("ngForOf",r.messages)("ngForTrackBy",r.trackByMessage),h(),_("ngIf",r.isLoading),h(2),Vn("ngModel",r.prompt),h(),_("disabled",r.isLoading||!r.prompt.trim()),h(),re(" ",r.isLoading?"A aguardar...":"Enviar"," ")}},dependencies:[Ve,Ze,Nt,gl,jo,pl,ms,gt,Af],styles:["[_nghost-%COMP%]{display:block}.ai-page[_ngcontent-%COMP%]{min-height:100vh;padding:28px;background:radial-gradient(circle at top right,rgba(37,99,235,.12),transparent 22%),linear-gradient(180deg,#0f172a,#111827 28%,#e2e8f0 28%,#f8fafc)}.ai-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;max-width:1240px;margin:0 auto 28px;padding:30px;border-radius:32px;background:#0f172ac7;color:#fff;box-shadow:0 24px 60px #0f172a3d}.ai-header__badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:#3b82f62e;color:#bfdbfe;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.ai-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:16px 0 0;font-size:clamp(2rem,3.2vw,3.4rem);line-height:1.05;font-weight:900}.ai-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:12px 0 0;max-width:620px;color:#cbd5e1;line-height:1.7}.ai-header__actions[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center}.nav-link[_ngcontent-%COMP%], .new-chat-button[_ngcontent-%COMP%], .send-button[_ngcontent-%COMP%], .conversation-chip[_ngcontent-%COMP%]{border:0;cursor:pointer}.nav-link[_ngcontent-%COMP%], .new-chat-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;text-decoration:none;font-weight:800}.nav-link[_ngcontent-%COMP%]{background:#ffffff14;color:#fff}.new-chat-button[_ngcontent-%COMP%], .send-button[_ngcontent-%COMP%]{background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;box-shadow:0 16px 36px #2563eb38}.ai-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;max-width:1240px;margin:0 auto}.conversation-panel[_ngcontent-%COMP%], .chat-panel[_ngcontent-%COMP%]{border:1px solid rgba(148,163,184,.18);border-radius:28px;background:#fffffff0;box-shadow:0 24px 60px #0f172a14}.conversation-panel[_ngcontent-%COMP%]{padding:24px}.conversation-panel[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:900}.conversation-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:10px 0 0;color:#64748b;line-height:1.6}.conversation-list[_ngcontent-%COMP%]{display:grid;gap:10px;margin-top:20px}.conversation-chip[_ngcontent-%COMP%], .conversation-empty[_ngcontent-%COMP%]{width:100%;padding:14px 16px;border-radius:18px;background:#eff6ff;color:#1e3a8a;text-align:left;font-weight:700}.conversation-empty[_ngcontent-%COMP%]{margin-top:20px;color:#64748b;background:#f8fafc}.chat-panel[_ngcontent-%COMP%]{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:680px}.message-stream[_ngcontent-%COMP%]{overflow-y:auto;padding:24px}.message-card[_ngcontent-%COMP%]{max-width:80%;margin-bottom:16px;padding:18px;border-radius:24px;background:#f8fafc;box-shadow:0 16px 34px #0f172a0f}.message-card--user[_ngcontent-%COMP%]{margin-left:auto;background:linear-gradient(135deg,#dbeafe,#eff6ff)}.message-card--error[_ngcontent-%COMP%]{background:linear-gradient(135deg,#fee2e2,#fef2f2)}.message-card__meta[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#64748b;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.message-card__content[_ngcontent-%COMP%]{margin:12px 0 0;color:#0f172a;white-space:pre-wrap;line-height:1.7}.message-card__sources[_ngcontent-%COMP%]{margin:14px 0 0;padding-left:16px;color:#475569}.message-card__sources[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:6px}.message-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:800}.chat-composer[_ngcontent-%COMP%]{display:grid;gap:14px;padding:22px 24px 24px;border-top:1px solid rgba(226,232,240,.8)}.chat-composer[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;min-height:120px;padding:16px 18px;border:1px solid rgba(148,163,184,.32);border-radius:22px;resize:vertical;background:#fff}.send-button[_ngcontent-%COMP%]{justify-self:end;min-height:46px;padding:0 22px;border-radius:999px;font-weight:800}.send-button[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:not-allowed}@media(max-width:980px){.ai-layout[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media(max-width:768px){.ai-page[_ngcontent-%COMP%]{padding:16px}.ai-header[_ngcontent-%COMP%]{flex-direction:column}.ai-header__actions[_ngcontent-%COMP%]{width:100%;flex-wrap:wrap}.message-card[_ngcontent-%COMP%]{max-width:100%}}"]})};var bl=class e{http=y(Do);endpoint="/api/conversor-extratos/executar";requestTimeoutMs=6e5;executeConverter(t,n){let r=new Wt({"Content-Type":n.type||"application/pdf","X-Bank-Key":t,"X-File-Name":encodeURIComponent(n.name)});return this.http.post(this.endpoint,n,{headers:r,observe:"response",responseType:"blob"}).pipe(Go(this.requestTimeoutMs))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})};var DT=["pdfInput"];function ET(e,t){e&1&&(f(0,"span",40),g(1," Selecionado "),p())}function wT(e,t){if(e&1){let n=le();f(0,"article",27)(1,"button",28),A("click",function(){let o=Q(n).$implicit,i=E();return Y(i.handleCardClick(o))}),f(2,"div",29),$(3,"img",30)(4,"div",31),f(5,"div",32),g(6),p()(),f(7,"div",33)(8,"h3",34),g(9),p(),f(10,"p",35),g(11),p(),f(12,"div",36)(13,"span",37),g(14),p(),U(15,ET,2,0,"span",38),p(),f(16,"span",39),g(17),p()()()()}if(e&2){let n=t.$implicit,r=E();h(),ue("bank-card__button--active",r.selectedBankKey===n.bankKey)("bank-card__button--disabled",!n.available),_("disabled",r.isLoading),h(2),_("src",n.image,fe)("alt",n.title),h(2),ue("bank-card__badge--muted",!n.available),h(),re(" ",n.available?"Disponivel":"Em breve"," "),h(3),re(" ",n.title," "),h(2),re(" ",n.description," "),h(3),re(" ",n.available?"PDF para Excel":"Configuracao pendente"," "),h(),_("ngIf",r.selectedBankKey===n.bankKey),h(),ue("bank-card__action--muted",!n.available),h(),re(" ",r.isLoading&&r.selectedBankKey===n.bankKey?"A processar...":n.available?"Selecionar PDF":"Em breve"," ")}}var Cl=class e{pdfInput;authService=y(mt);router=y(Ue);conversorService=y(bl);converterCards=[{bankKey:"millennium-bcp",title:"Millennium BCP",description:"Em breve.",image:"/imagenscursos/Millenniumbcp.png",available:!1},{bankKey:"caixa-geral-depositos",title:"Caixa Geral",description:"Em breve.",image:"/imagenscursos/cgd.png",available:!1},{bankKey:"bankinter",title:"Bankinter",description:"Em breve.",image:"/imagenscursos/bankinter.png",available:!1},{bankKey:"novo-banco",title:"Novo Banco",description:"Em breve.",image:"/imagenscursos/novobanco.png",available:!1},{bankKey:"bpi",title:"BPI",description:"Em breve.",image:"/imagenscursos/BPI.png",available:!1},{bankKey:"bic",title:"BIC",description:"Clique, selecione o PDF e descarregue o Excel final.",image:"/imagenscursos/bic.png",available:!0},{bankKey:"abanca",title:"ABanca",description:"Clique, selecione o PDF e descarregue o Excel final.",image:"/imagenscursos/ABanca.png",available:!0}];selectedBankKey="";isLoading=!1;statusTitle="2 Bancos disponiveis";statusMessage="Clique no cartao para selecionar o PDF a converter.";logout(){this.authService.logout(),this.router.navigateByUrl("/")}trackByBankKey(t,n){return n.bankKey}handleCardClick(t){if(!this.isLoading){if(this.selectedBankKey=t.bankKey,!t.available){this.setStatus(`${t.title} ainda nao disponivel`,"Replica o mesmo padrao do ABanca quando tiveres o script pronto.");return}this.setStatus(`${t.title} selecionado`,"Escolhe o PDF do extrato para iniciar a conversao."),this.resetInput(),this.pdfInput?.nativeElement.click()}}onFileSelected(t){let r=t.target.files?.[0],o=this.converterCards.find(i=>i.bankKey===this.selectedBankKey);if(!r||!o||!o.available){this.resetInput();return}if(!r.name.toLowerCase().endsWith(".pdf")){this.setStatus("Ficheiro invalido","Seleciona um ficheiro PDF para continuar."),this.resetInput();return}this.isLoading=!0,this.setStatus(`A processar ${o.title}`,`A converter o ficheiro ${r.name}. Aguarda pelo download.`),this.conversorService.executeConverter(o.bankKey,r).pipe(Rt(()=>{this.isLoading=!1,this.resetInput()})).subscribe({next:i=>{let s=this.getDownloadFileName(i,o);this.downloadBlob(i.body,s),this.setStatus("Conversao concluida",`O ficheiro ${s} foi gerado com sucesso.`)},error:i=>{this.setStatus("Conversao falhou",this.getErrorMessage(i))}})}resetInput(){let t=this.pdfInput?.nativeElement;t&&(t.value="")}setStatus(t,n){this.statusTitle=t,this.statusMessage=n}getDownloadFileName(t,n){let r=t.headers.get("content-disposition")||"",o=r.match(/filename\*=UTF-8''([^;]+)/i);if(o?.[1])return decodeURIComponent(o[1]);let i=r.match(/filename="?([^"]+)"?/i);return i?.[1]?i[1]:`${this.slugify(n.title)}-resultado.xlsx`}downloadBlob(t,n){if(!t)throw new Error("O backend nao devolveu nenhum ficheiro.");let r=URL.createObjectURL(t),o=document.createElement("a");o.href=r,o.download=n,o.click(),setTimeout(()=>URL.revokeObjectURL(r),0)}slugify(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}getErrorMessage(t){if(t&&typeof t=="object"&&"name"in t&&t.name==="TimeoutError")return"O script demorou demasiado tempo a responder. Confirma o ambiente Python e o tamanho do PDF.";if(t instanceof Gt){let n=typeof t.error=="string"?t.error:typeof t.error?.detail=="string"?t.error.detail:typeof t.error?.message=="string"?t.error.message:"";return t.status===0?"Nao foi possivel comunicar com o backend do conversor.":n?`Erro do backend (${t.status}): ${n}`:`Erro do backend (${t.status}).`}return"O pedido falhou por um erro inesperado."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=be({type:e,selectors:[["app-conversor-extratos-page"]],viewQuery:function(n,r){if(n&1&&po(DT,5),n&2){let o;ho(o=go())&&(r.pdfInput=o.first)}},decls:40,vars:8,consts:[["pdfInput",""],[1,"min-h-screen","bg-slate-50","text-slate-900"],["type","file","accept",".pdf,application/pdf",1,"hidden-file-input",3,"change"],[1,"relative","overflow-hidden","bg-slate-950"],[1,"absolute","inset-0","bg-gradient-to-r","from-indigo-700/20","via-cyan-500/10","to-purple-700/20"],[1,"hero-logo-badge"],["type","button",1,"logout-button",3,"click"],["href","https://www.metacase.pt","target","_blank","rel","noopener"],["src","/logo-metacase-cor.svg","alt","Metacase",1,"hero-logo"],[1,"relative","mx-auto","max-w-7xl","px-6","py-20","lg:px-8"],[1,"max-w-3xl"],[1,"inline-flex","rounded-full","border","border-white/20","bg-white/10","px-4","py-1","text-sm","font-medium","text-white"],[1,"mt-6","text-4xl","font-bold","tracking-tight","text-white","sm:text-5xl","lg:text-6xl"],[1,"mt-6","text-lg","leading-8","text-slate-300"],["routerLink","/pagina-principal",1,"back-link"],[1,"mx-auto","max-w-7xl","px-6","py-10","lg:px-8"],[1,"flex","flex-col","gap-4","md:flex-row","md:items-center","md:justify-between"],[1,"text-3xl","font-bold","tracking-tight","text-slate-900"],[1,"mt-2","text-slate-600"],[1,"inline-flex","w-fit","items-center","rounded-2xl","border","border-slate-200","bg-white","px-4","py-3","shadow-sm"],[1,"text-sm","font-semibold","text-slate-700"],[1,"converter-status"],[1,"converter-status__eyebrow"],[1,"converter-status__message"],[1,"mx-auto","max-w-7xl","px-6","pb-16","lg:px-8"],[1,"bank-grid"],["class","group overflow-hidden rounded-3xl border border-slate-200 bg-white shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl",4,"ngFor","ngForOf","ngForTrackBy"],[1,"group","overflow-hidden","rounded-3xl","border","border-slate-200","bg-white","shadow-sm","transition","duration-300","hover:-translate-y-1","hover:shadow-xl"],["type","button",1,"bank-card__button",3,"click","disabled"],[1,"relative","h-56","overflow-hidden"],[1,"h-full","w-full","bg-slate-50","object-contain","transition","duration-500","group-hover:scale-105",3,"src","alt"],[1,"absolute","inset-0","bg-gradient-to-t","from-black/10","via-transparent","to-transparent"],[1,"bank-card__badge"],[1,"p-6"],[1,"mt-2","text-xl","font-bold","text-slate-900"],[1,"mt-3","text-sm","leading-6","text-slate-600"],[1,"mt-5","flex","flex-wrap","gap-2"],[1,"rounded-full","bg-slate-100","px-3","py-1","text-xs","font-semibold","text-slate-700"],["class","rounded-full bg-blue-50 px-3 py-1 text-xs font-semibold text-blue-700",4,"ngIf"],[1,"bank-card__action"],[1,"rounded-full","bg-blue-50","px-3","py-1","text-xs","font-semibold","text-blue-700"]],template:function(n,r){n&1&&(f(0,"div",1)(1,"input",2,0),A("change",function(i){return r.onFileSelected(i)}),p(),f(3,"section",3),$(4,"div",4),f(5,"div",5)(6,"button",6),A("click",function(){return r.logout()}),g(7,"Sair"),p(),f(8,"a",7),$(9,"img",8),p()(),f(10,"div",9)(11,"div",10)(12,"span",11),g(13," Operacional Framework "),p(),f(14,"h1",12),g(15," Conversor de Extratos "),p(),f(16,"p",13),g(17," Area dedicada a conversao de extratos bancarios a partir de PDF com exportacao final para Excel. "),p(),f(18,"a",14),$(19,"br")(20,"br"),g(21,"Voltar ao menu do Multipurpose Hub"),p()()()(),f(22,"section",15)(23,"div",16)(24,"div")(25,"h2",17),g(26,"Entidades Bancarias"),p(),f(27,"p",18),g(28),p()(),f(29,"div",19)(30,"span",20),g(31),p()()(),f(32,"div",21)(33,"p",22),g(34),p(),f(35,"p",23),g(36),p()()(),f(37,"section",24)(38,"div",25),U(39,wT,18,17,"article",26),p()()()),n&2&&(h(28),Tt(" Atualmente encontram-se disponiveis ",r.converterCards.length," ",r.converterCards.length===1?"entidade bancaria":"entidades bancarias",". "),h(3),Tt(" ",r.converterCards.length," ",r.converterCards.length===1?"banco":"bancos"," "),h(3),O(r.isLoading?"A processar":r.statusTitle),h(2),O(r.statusMessage),h(3),_("ngForOf",r.converterCards)("ngForTrackBy",r.trackByBankKey))},dependencies:[Ve,Ze,Nt,gt],styles:[".hidden-file-input[_ngcontent-%COMP%]{display:none}.hero-logo-badge[_ngcontent-%COMP%]{position:absolute;top:24px;right:24px;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:10px 16px;border:1px solid rgba(191,219,254,.55);border-radius:999px;background:#eff6ffe0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 24px #0f172a1f}.hero-logo[_ngcontent-%COMP%]{width:clamp(120px,16vw,190px);height:auto;display:block;object-fit:contain}.back-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-bottom:20px;color:#f8f8f8;text-decoration:none;font-weight:700}.logout-button[_ngcontent-%COMP%]{min-height:34px;cursor:pointer;border:0;border-radius:999px;background:#1d4ed8;padding:0 14px;color:#fff;font-size:.88rem;font-weight:800;transition:background-color .2s ease,transform .2s ease}.logout-button[_ngcontent-%COMP%]:hover{background:#1e40af;transform:translateY(-1px)}.converter-status[_ngcontent-%COMP%]{margin-top:1.5rem;border-radius:1.5rem;border:1px solid rgb(226 232 240);background:#fff;padding:1rem 1.25rem;box-shadow:0 10px 24px #0f172a0f}.converter-status__eyebrow[_ngcontent-%COMP%]{margin:0;color:#0f172a;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.converter-status__message[_ngcontent-%COMP%]{margin:.45rem 0 0;color:#475569;font-size:.95rem;line-height:1.6}.bank-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2rem}.bank-card__button[_ngcontent-%COMP%]{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.bank-card__button--active[_ngcontent-%COMP%]{outline:2px solid rgba(37,99,235,.35);outline-offset:-2px}.bank-card__button--disabled[_ngcontent-%COMP%]{opacity:.82}.bank-card__badge[_ngcontent-%COMP%]{position:absolute;top:16px;left:16px;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 14px;border-radius:999px;background:#16a34aeb;color:#fff;font-size:.74rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.bank-card__badge--muted[_ngcontent-%COMP%]{background:#64748beb}.bank-card__action[_ngcontent-%COMP%]{display:block;width:100%;margin-top:1.5rem;border-radius:1rem;background:linear-gradient(to right,#4f46e5,#7c3aed);padding:.85rem 1rem;color:#fff;font-size:.9rem;font-weight:700;text-align:center}.bank-card__action--muted[_ngcontent-%COMP%]{background:linear-gradient(to right,#94a3b8,#64748b)}@media(max-width:1400px){.bank-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1180px){.bank-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.bank-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:768px){.hero-logo-badge[_ngcontent-%COMP%]{top:16px;right:16px;padding:8px 14px;gap:10px}.hero-logo[_ngcontent-%COMP%]{width:120px}.bank-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]})};var Q_=[{path:"",component:ml},{path:"formacoes",canActivate:[Lr],component:tl},{path:"pagina-principal",canActivate:[Lr],component:vl},{path:"vitoria-ai",canActivate:[Lr],component:_l},{path:"conversor-extratos",canActivate:[Lr],component:Cl},{path:"cursos/:slug",canActivate:[Lr],component:rl},{path:"cursos/:slug/percurso",canActivate:[Lr],component:ol},{path:"**",redirectTo:""}];var Y_={providers:[qu(),$f(),gp(Q_)]};var Dl=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=be({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){n&1&&$(0,"router-outlet")},dependencies:[ss],encapsulation:2})};jf(Dl,Y_).catch(e=>console.error(e));