1var ZE=Object.defineProperty,KE=Object.defineProperties;var YE=Object.getOwnPropertyDescriptors;var $a=Object.getOwnPropertySymbols;var w0=Object.prototype.hasOwnProperty,b0=Object.prototype.propertyIsEnumerable;var y0=(t,e,i)=>e in t?ZE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_=(t,e)=>{for(var i in e||={})w0.call(e,i)&&y0(t,i,e[i]);if($a)for(var i of $a(e))b0.call(e,i)&&y0(t,i,e[i]);return t},W=(t,e)=>KE(t,YE(e));var ts=(t,e)=>{var i={};for(var n in t)w0.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&$a)for(var n of $a(t))e.indexOf(n)<0&&b0.call(t,n)&&(i[n]=t[n]);return i};var y=(t,e)=>()=>(t&&(e=t(t=0)),e);var JE=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var dt=(t,e,i)=>new Promise((n,r)=>{var o=l=>{try{a(i.next(l))}catch(c){r(c)}},s=l=>{try{a(i.throw(l))}catch(c){r(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((i=i.apply(t,e)).next())});function C0(t,e){return Object.is(t,e)}function pe(t){let e=ht;return ht=t,e}function XE(){return ns}function gd(t){if(ns)throw new Error("");if(ht===null)return;ht.consumerOnSignalRead(t);let e=ht.nextProducerIndex++;if(qr(ht),e<ht.producerNode.length&&ht.producerNode[e]!==t&&is(ht)){let i=ht.producerNode[e];Ga(i,ht.producerIndexOfThis[e])}ht.producerNode[e]!==t&&(ht.producerNode[e]=t,ht.producerIndexOfThis[e]=is(ht)?S0(t,ht,e):0),ht.producerLastReadVersion[e]=t.version}function ex(){Ba++}function _0(t){if(!(is(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ba)){if(!t.producerMustRecompute(t)&&!za(t)){t.dirty=!1,t.lastCleanEpoch=Ba;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ba}}function D0(t){if(t.liveConsumerNode===void 0)return;let e=ns;ns=!0;try{for(let i of t.liveConsumerNode)i.dirty||x0(i)}finally{ns=e}}function E0(){return ht?.consumerAllowSignalWrites!==!1}function x0(t){t.dirty=!0,D0(t),t.consumerMarkedDirty?.(t)}function Ua(t){return t&&(t.nextProducerIndex=0),pe(t)}function qa(t,e){if(pe(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(is(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)Ga(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function za(t){qr(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(_0(i),n!==i.version))return!0}return!1}function vd(t){if(qr(t),is(t))for(let e=0;e<t.producerNode.length;e++)Ga(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function S0(t,e,i){if(I0(t),qr(t),t.liveConsumerNode.length===0)for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=S0(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function Ga(t,e){if(I0(t),qr(t),t.liveConsumerNode.length===1)for(let n=0;n<t.producerNode.length;n++)Ga(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],r=t.liveConsumerNode[e];qr(r),r.producerIndexOfThis[n]=e}}function is(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function qr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function I0(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function T0(t){let e=Object.create(tx);e.computation=t;let i=()=>{if(_0(e),gd(e),e.value===Ha)throw e.error;return e.value};return i[Pn]=e,i}function nx(){throw new Error}function A0(){M0()}function N0(t){M0=t}function R0(t){let e=Object.create(O0);e.value=t;let i=()=>(gd(e),e.value);return i[Pn]=e,i}function yd(t,e){E0()||A0(),t.equal(t.value,e)||(t.value=e,rx(t))}function k0(t,e){E0()||A0(),yd(t,e(t.value))}function rx(t){t.version++,ex(),D0(t),ix?.()}
1function F0(t,e,i){let n=Object.create(ox);i&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let r=l=>{n.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(vd(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=md)}let a=()=>{if(n.fn===null)return;if(XE())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!za(n))return;n.hasRun=!0;let l=Ua(n);try{n.cleanupFn(),n.cleanupFn=md,n.fn(r)}finally{qa(n,l)}};return n.ref={notify:()=>x0(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[Pn]:n},n.ref}var ht,ns,Ba,Pn,rs,fd,pd,Ha,tx,M0,ix,O0,md,ox,P0=y(()=>{"use strict";ht=null,ns=!1,Ba=1,Pn=Symbol("SIGNAL");rs={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};fd=Symbol("UNSET"),pd=Symbol("COMPUTING"),Ha=Symbol("ERRORED"),tx=W(_({},rs),{value:fd,dirty:!0,error:null,equal:C0,producerMustRecompute(t){return t.value===fd||t.value===pd},producerRecomputeValue(t){if(t.value===pd)throw new Error("Detected cycle in computations.");let e=t.value;t.value=pd;let i=Ua(t),n;try{n=t.computation()}catch(r){n=Ha,t.error=r}finally{qa(t,i)}if(e!==fd&&e!==Ha&&n!==Ha&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});M0=nx;ix=null;O0=W(_({},rs),{equal:C0,value:void 0});md=()=>{},ox=W(_({},rs),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:md})});function oe(t){return typeof t=="function"}var st=y(()=>{"use strict"});function zr(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Wa=y(()=>{"use strict"});var Qa,L0=y(()=>{"use strict";Wa();Qa=zr(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription: 2${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(` 3 `)}`:"",this.name="UnsubscriptionError",this.errors=i})});function ir(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var Za=y(()=>{"use strict"});function Ka(t){return t instanceof Ve||t&&"closed"in t&&oe(t.remove)&&oe(t.add)&&oe(t.unsubscribe)}function V0(t){oe(t)?t():t.unsubscribe()}var Ve,wd,rr=y(()=>{"use strict";st();L0();Za();Ve=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let o of i)o.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(oe(n))try{n()}catch(o){e=o instanceof Qa?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{V0(o)}catch(s){e=e??[],s instanceof Qa?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Qa(e)}}add(e){var i;if(e&&e!==this)if(this.closed)V0(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&ir(i,e)}remove(e){let{_finalizers:i}=this;i&&ir(i,e),e instanceof t&&e._removeParent(this)}};Ve.EMPTY=(()=>{let t=new Ve;return t.closed=!0,t})();wd=Ve.EMPTY});var wn,os=y(()=>{"use strict";wn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Gr,bd=y(()=>{"use strict";Gr={setTimeout(t,e,...i){let{delegate:n}=Gr;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=Gr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0}});function Ya(t){Gr.setTimeout(()=>{let{onUnhandledError:e}=wn;if(e)e(t);else throw t})}var Cd=y(()=>{"use strict";os();bd()});function or(){}var Ja=y(()=>{"use strict"});function $0(t){return _d("E",void 0,t)}function B0(t){return _d("N",t,void 0)}
vendor: 13,668 bytes, line 3
3function _d(t,e,i){return{kind:t,value:e,error:i}}var j0,H0=y(()=>{"use strict";j0=_d("C",void 0,void 0)});function Wr(t){if(wn.useDeprecatedSynchronousErrorHandling){let e=!sr;if(e&&(sr={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=sr;if(sr=null,i)throw n}}else t()}function U0(t){wn.useDeprecatedSynchronousErrorHandling&&sr&&(sr.errorThrown=!0,sr.error=t)}var sr,Xa=y(()=>{"use strict";os();sr=null});function Dd(t,e){return sx.call(t,e)}function el(t){wn.useDeprecatedSynchronousErrorHandling?U0(t):Ya(t)}function ax(t){throw t}function Ed(t,e){let{onStoppedNotification:i}=wn;i&&Gr.setTimeout(()=>i(t,e))}var ar,sx,xd,ei,lx,tl=y(()=>{"use strict";st();rr();os();Cd();Ja();H0();bd();Xa();ar=class extends Ve{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ka(e)&&e.add(this)):this.destination=lx}static create(e,i,n){return new ei(e,i,n)}next(e){this.isStopped?Ed(B0(e),this):this._next(e)}error(e){this.isStopped?Ed($0(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ed(j0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},sx=Function.prototype.bind;xd=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){el(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){el(n)}else el(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){el(i)}}},ei=class extends ar{constructor(e,i,n){super();let r;if(oe(e)||!e)r={next:e??void 0,error:i??void 0,complete:n??void 0};else{let o;this&&wn.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Dd(e.next,o),error:e.error&&Dd(e.error,o),complete:e.complete&&Dd(e.complete,o)}):r=e}this.destination=new xd(r)}};lx={closed:!0,next:or,error:ax,complete:or}});var Qr,nl=y(()=>{"use strict";Qr=typeof Symbol=="function"&&Symbol.observable||"@@observable"});function at(t){return t}var ti=y(()=>{"use strict"});function Sd(...t){return Id(t)}function Id(t){return t.length===0?at:t.length===1?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}var Td=y(()=>{"use strict";ti()});function q0(t){var e;return(e=t??wn.Promise)!==null&&e!==void 0?e:Promise}function cx(t){return t&&oe(t.next)&&oe(t.error)&&oe(t.complete)}function ux(t){return t&&t instanceof ar||cx(t)&&Ka(t)}var me,Rt=y(()=>{"use strict";tl();rr();nl();Td();os();st();Xa();me=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){let o=ux(i)?i:new ei(i,n,r);return Wr(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=q0(n),new n((r,o)=>{let s=new ei({next:a=>{try{i(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[Qr](){return this}pipe(...i){return Id(i)(this)}toPromise(i){return i=q0(i),new i((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return t.create=e=>new t(e),t})()});function Md(t){return oe(t?.lift)}function de(t){return e=>{if(Md(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var We=y(()=>{"use strict";st()});function le(t,e,i,n,r){return new Ad(t,e,i,n,r)}var Ad,nt=y(()=>{"use strict";tl();Ad=class extends ar{constructor(e,i,n,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}}});function Zr(){return de((t,e)=>{let i=null;t._refCount++;let n=le(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){i=null;return}let r=t._connection,o=i;i=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(i=t.connect())})}var Nd=y(()=>{"use strict";We();nt()});var Kr,z0=y(()=>{"use strict";Rt();rr();Nd();nt();We();Kr=class extends me{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Md(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ve;let i=this.getSubject();e.add(this.source.subscribe(le(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ve.EMPTY)}return e}refCount(){return Zr()(this)}}});var G0,W0=y(()=>{"use strict";Wa();G0=zr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})});var ge,il,ss=y(()=>{"use strict";Rt();rr();W0();Za();Xa();ge=(()=>{class t extends me{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new il(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new G0}next(i){Wr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){Wr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Wr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:r,observers:o}=this;return n||r?wd:(this.currentObservers=null,o.push(i),new Ve(()=>{this.currentObservers=null,ir(o,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:r,isStopped:o}=this;n?i.error(r):o&&i.complete()}asObservable(){let i=new me;return i.source=this,i}}return t.create=(e,i)=>new il(e,i),t})(),il=class extends ge{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:wd}}});var Pe,Q0=y(()=>{"use strict";ss();Pe=class extends ge{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}}});var as,Rd=y(()=>{"use strict";as={now(){return(as.delegate||Date).now()},delegate:void 0}});var en,kd=y(()=>{"use strict";ss();Rd();en=class extends ge{constructor(e=1/0,i=1/0,n=as){super(),this._bufferSize=e,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,i)}next(e){let{isStopped:i,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;i||(n.push(e),!r&&n.push(o.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let i=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!e.closed;s+=n?1:2)e.next(o[s]);return this._checkFinalizedStatuses(e),i}_trimBuffer(){let{_bufferSize:e,_timestampProvider:i,_buffer:n,_infiniteTimeWindow:r}=this,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){let s=i.now(),a=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}}}});var rl,Z0=y(()=>{"use strict";rr();rl=class extends Ve{constructor(e,i){super()}schedule(e,i=0){return this}}});var ls,K0=y(()=>{"use strict";ls={setInterval(t,e,...i){let{delegate:n}=ls;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=ls;return(e?.clearInterval||clearInterval)(t)},delegate:void 0}});var ol,Y0=y(()=>{"use strict";Z0();K0();Za();ol=class extends rl{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,i),this}requestAsyncId(e,i,n=0){return ls.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&ls.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,r;try{this.work(e)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,ir(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}}});var Yr,J0=y(()=>{"use strict";Rd();Yr=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};Yr.now=as.now});var sl,X0=y(()=>{"use strict";J0();sl=class extends Yr{constructor(e,i=Yr.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}}});var Od,ev,Fd=y(()=>{"use strict";Y0();X0();Od=new sl(ol),ev=Od});var yt,cs=y(()=>{"use strict";Rt();yt=new me(t=>t.complete())});function al(t){return t&&oe(t.schedule)}var Pd=y(()=>{"use strict";st()});function Ld(t){return t[t.length-1]}function ll(t){return oe(Ld(t))?t.pop():void 0}function Ln(t){return al(Ld(t))?t.pop():void 0}function tv(t,e){return typeof Ld(t)=="number"?t.pop():e}var lr=y(()=>{"use strict";st();Pd()});function iv(t,e,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function a(u){try{c(n.next(u))}catch(d){s(d)}}function l(u){try{c(n.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function nv(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function cr(t){return this instanceof cr?(this.v=t,this):new cr(t)}function rv(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,o=[];return r={},a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(v){return function(w){return Promise.resolve(w).then(v,d)}}function a(v,w){n[v]&&(r[v]=function(D){return new Promise(function(S,O){o.push([v,D,S,O])>1||l(v,D)})},w&&(r[v]=w(r[v])))}function l(v,w){try{c(n[v](w))}catch(D){g(o[0][3],D)}}function c(v){v.value instanceof cr?Promise.resolve(v.value.v).then(u,d):g(o[0][2],v)}function u(v){l("next",v)}function d(v){l("throw",v)}function g(v,w){v(w),o.shift(),o.length&&l(o[0][0],o[0][1])}}function ov(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof nv=="function"?nv(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var Vd=y(()=>{"use strict"});var cl,jd=y(()=>{"use strict";cl=t=>t&&typeof t.length=="number"&&typeof t!="function"});function ul(t){return oe(t?.then)}var $d=y(()=>{"use strict";st()});function dl(t){return oe(t[Qr])}var Bd=y(()=>{"use strict";nl();st()});function hl(t){return Symbol.asyncIterator&&oe(t?.[Symbol.asyncIterator])}var Hd=y(()=>{"use strict";st()});function fl(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invali
3d object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}var Ud=y(()=>{"use strict"});function dx(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var pl,qd=y(()=>{"use strict";pl=dx()});function ml(t){return oe(t?.[pl])}var zd=y(()=>{"use strict";qd();st()});function gl(t){return rv(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:r}=yield cr(i.read());if(r)return yield cr(void 0);yield yield cr(n)}}finally{i.releaseLock()}})}function vl(t){return oe(t?.getReader)}var yl=y(()=>{"use strict";Vd();st()});function Ie(t){if(t instanceof me)return t;if(t!=null){if(dl(t))return hx(t);if(cl(t))return fx(t);if(ul(t))return px(t);if(hl(t))return sv(t);if(ml(t))return mx(t);if(vl(t))return gx(t)}throw fl(t)}function hx(t){return new me(e=>{let i=t[Qr]();if(oe(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function fx(t){return new me(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function px(t){return new me(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,Ya)})}function mx(t){return new me(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function sv(t){return new me(e=>{vx(t,e).catch(i=>e.error(i))})}function gx(t){return sv(gl(t))}function vx(t,e){var i,n,r,o;return iv(this,void 0,void 0,function*(){try{for(i=ov(t);n=yield i.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}e.complete()})}var kt=y(()=>{"use strict";Vd();jd();$d();Rt();Bd();Hd();Ud();zd();yl();st();Cd();nl()});function Bt(t,e,i,n=0,r=!1){let o=e.schedule(function(){i(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}var Jr=y(()=>{"use strict"});function wl(t,e=0){return de((i,n)=>{i.subscribe(le(n,r=>Bt(n,t,()=>n.next(r),e),()=>Bt(n,t,()=>n.complete(),e),r=>Bt(n,t,()=>n.error(r),e)))})}var Gd=y(()=>{"use strict";Jr();We();nt()});function bl(t,e=0){return de((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}var Wd=y(()=>{"use strict";We()});function av(t,e){return Ie(t).pipe(bl(e),wl(e))}var lv=y(()=>{"use strict";kt();Gd();Wd()});function cv(t,e){return Ie(t).pipe(bl(e),wl(e))}var uv=y(()=>{"use strict";kt();Gd();Wd()});function dv(t,e){return new me(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}var hv=y(()=>{"use strict";Rt()});function fv(t,e){return new me(i=>{let n;return Bt(i,e,()=>{n=t[pl](),Bt(i,e,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){i.error(s);return}o?i.complete():i.next(r)},0,!0)}),()=>oe(n?.return)&&n.return()})}var pv=y(()=>{"use strict";Rt();qd();st();Jr()});function Cl(t,e){if(!t)throw new Error("Iterable cannot be null");return new me(i=>{Bt(i,e,()=>{let n=t[Symbol.asyncIterator]();Bt(i,e,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}var Qd=y(()=>{"use strict";Rt();Jr()});function mv(t,e){return Cl(gl(t),e)}var gv=y(()=>{"use strict";Qd();yl()});function vv(t,e){if(t!=null){if(dl(t))return av(t,e);if(cl(t))return dv(t,e);if(ul(t))return cv(t,e);if(hl(t))return Cl(t,e);if(ml(t))return fv(t,e);if(vl(t))return mv(t,e)}throw fl(t)}var yv=y(()=>{"use strict";lv();uv();hv();pv();Qd();Bd();$d();jd();zd();Hd();Ud();yl();gv()});function De(t,e){return e?vv(t,e):Ie(t)}var Xr=y(()=>{"use strict";yv();kt()});function G(...t){let e=Ln(t);return De(t,e)}var wv=y(()=>{"use strict";lr();Xr()});function eo(t,e){let i=oe(t)?t:()=>t,n=r=>r.error(i());return new me(e?r=>e.schedule(n,0,r):n)}var bv=y(()=>{"use strict";Rt();st()});function Zd(t){return!!t&&(t instanceof me||oe(t.lift)&&oe(t.subscribe))}var Cv=y(()=>{"use strict";Rt();st()});var ni,us=y(()=>{"use strict";Wa();ni=zr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"})});function _v(t){return t instanceof Date&&!isNaN(t)}var Dv=y(()=>{"use strict"});function z(t,e){return de((i,n)=>{let r=0;i.subscribe(le(n,o=>{n.next(t.call(e,o,r++))}))})}var to=y(()=>{"use strict";We();nt()});function wx(t,e){return yx(e)?t(...e):t(e)}function _l(t){return z(e=>wx(t,e))}var yx,Kd=y(()=>{"use strict";to();({isArray:yx}=Array)});function Dl(t){if(t.length===1){let e=t[0];if(bx(e))return{args:e,keys:null};if(Ex(e)){let i=Dx(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function Ex(t){return t&&typeof t=="object"&&Cx(t)===_x}var bx,Cx,_x,Dx,Yd=y(()=>{"use strict";({isArray:bx}=Array),{getPrototypeOf:Cx,prototype:_x,keys:Dx}=Object});function El(t,e){return t.reduce((i,n,r)=>
3(i[n]=e[r],i),{})}var Jd=y(()=>{"use strict"});function no(...t){let e=Ln(t),i=ll(t),{args:n,keys:r}=Dl(t);if(n.length===0)return De([],e);let o=new me(xx(n,e,r?s=>El(r,s):at));return i?o.pipe(_l(i)):o}function xx(t,e,i=at){return n=>{Ev(e,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)Ev(e,()=>{let c=De(t[l],e),u=!1;c.subscribe(le(n,d=>{o[l]=d,u||(u=!0,a--),a||n.next(i(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Ev(t,e,i){t?Bt(i,t,e):e()}var xv=y(()=>{"use strict";Rt();Yd();Xr();ti();Kd();lr();Jd();nt();Jr()});function Sv(t,e,i,n,r,o,s,a){let l=[],c=0,u=0,d=!1,g=()=>{d&&!l.length&&!c&&e.complete()},v=D=>c<n?w(D):l.push(D),w=D=>{o&&e.next(D),c++;let S=!1;Ie(i(D,u++)).subscribe(le(e,O=>{r?.(O),o?v(O):e.next(O)},()=>{S=!0},void 0,()=>{if(S)try{for(c--;l.length&&c<n;){let O=l.shift();s?Bt(e,s,()=>w(O)):w(O)}g()}catch(O){e.error(O)}}))};return t.subscribe(le(e,v,()=>{d=!0,g()})),()=>{a?.()}}var Iv=y(()=>{"use strict";kt();Jr();nt()});function Be(t,e,i=1/0){return oe(e)?Be((n,r)=>z((o,s)=>e(n,o,r,s))(Ie(t(n,r))),i):(typeof e=="number"&&(i=e),de((n,r)=>Sv(n,r,t,i)))}var io=y(()=>{"use strict";to();kt();We();Iv();st()});function ds(t=1/0){return Be(at,t)}var Xd=y(()=>{"use strict";io();ti()});function Tv(){return ds(1)}var Mv=y(()=>{"use strict";Xd()});function Vn(...t){return Tv()(De(t,Ln(t)))}var xl=y(()=>{"use strict";Mv();lr();Xr()});function Sl(t){return new me(e=>{Ie(t()).subscribe(e)})}var Av=y(()=>{"use strict";Rt();kt()});function bn(...t){let e=ll(t),{args:i,keys:n}=Dl(t),r=new me(o=>{let{length:s}=i;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;Ie(i[u]).subscribe(le(o,g=>{d||(d=!0,c--),a[u]=g},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(n?El(n,a):a),o.complete())}))}});return e?r.pipe(_l(e)):r}var Nv=y(()=>{"use strict";Rt();Yd();kt();lr();nt();Kd();Jd()});function ur(t=0,e,i=ev){let n=-1;return e!=null&&(al(e)?i=e:n=e),new me(r=>{let o=_v(t)?+t-i.now():t;o<0&&(o=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}var Il=y(()=>{"use strict";Rt();Fd();Pd();Dv()});function eh(...t){let e=Ln(t),i=tv(t,1/0),n=t;return n.length?n.length===1?Ie(n[0]):ds(i)(De(n,e)):yt}var Rv=y(()=>{"use strict";Xd();kt();cs();lr();Xr()});function it(t,e){return de((i,n)=>{let r=0;i.subscribe(le(n,o=>t.call(e,o,r++)&&n.next(o)))})}var hs=y(()=>{"use strict";We();nt()});var kv=y(()=>{"use strict"});function tn(t){return de((e,i)=>{let n=null,r=!1,o;n=e.subscribe(le(i,void 0,void 0,s=>{o=Ie(t(s,tn(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(i))})}var th=y(()=>{"use strict";kt();nt();We()});function Ov(t,e,i,n,r){return(o,s)=>{let a=i,l=e,c=0;o.subscribe(le(s,u=>{let d=c++;l=a?t(l,u,d):(a=!0,u),n&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}var Fv=y(()=>{"use strict";nt()});function hn(t,e){return oe(e)?Be(t,e,1):Be(t,1)}var nh=y(()=>{"use strict";io();st()});function Di(t){return de((e,i)=>{let n=!1;e.subscribe(le(i,r=>{n=!0,i.next(r)},()=>{n||i.next(t),i.complete()}))})}var Tl=y(()=>{"use strict";We();nt()});function Je(t){return t<=0?()=>yt:de((e,i)=>{let n=0;e.subscribe(le(i,r=>{++n<=t&&(i.next(r),t<=n&&i.complete())}))})}var fs=y(()=>{"use strict";cs();We();nt()});function Pv(){return de((t,e)=>{t.subscribe(le(e,or))})}var Lv=y(()=>{"use strict";We();nt();Ja()});function ps(t){return z(()=>t)}var ih=y(()=>{"use strict";to()});function rh(t,e){return e?i=>Vn(e.pipe(Je(1),Pv()),i.pipe(rh(t))):Be((i,n)=>Ie(t(i,n)).pipe(Je(1),ps(i)))}var Vv=y(()=>{"use strict";xl();fs();Lv();ih();io();kt()});function Ei(t,e=Od){let i=ur(t,e);return rh(()=>i)}var jv=y(()=>{"use strict";Fd();Vv();Il()});function Ml(t=Sx){return de((e,i)=>{let n=!1;e.subscribe(le(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(t())))})}function Sx(){return new ni}var oh=y(()=>{"use strict";us();We();nt()});function xi(t){return de((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}var $v=y(()=>{"use strict";We()});function jn(t,e){let i=arguments.length>=2;return n=>n.pipe(t?it((r,o)=>t(r,o,n)):at,Je(1),i?Di(e):Ml(()=>new ni))}var Bv=y(()=>{"use strict";us();hs();fs();Tl();oh();ti()});function ro(t){return t<=0?()=>yt:de((e,i)=>{let n=[];e.subscribe(le(i,r=>{n.push(r),t<n.length&&n.shift()},()=>{for(let r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}var sh=y(()=>{"use strict";cs();We();nt()});function ah(t,e){let i=arguments.length>=2;return n=>n.pipe(t?it((r,o)=>t(r,o,n)):at,ro(1),i?Di(e):Ml(()=>new ni))}var Hv=y(()=>{"use strict";us();hs();sh();oh();Tl();ti()});function ms(t=1/0){let e;t&&typeof t=="object"?e=t:e={count:t};let{count:i=1/0,delay:n,resetOnSuccess:r=!1}=e;return i<=0?at:de((o,s)=>{let a=0,l,c=()=>{let u=!1;l=o.subscribe(le(s,d=>{r&&(a=0),s.next(d)},void 0,d=>{if(a++<i){let g=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(n!=null){let v=typeof n=="number"?ur(n):Ie(n(d,a)),w=le(s,()=>{w.unsubscribe(),g()},()=>{s.complete()});v.subscribe(w)}else g()}else s.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}var Uv=y(()=>{"use strict";We();nt();ti();Il();kt()});function oo(t,e){return de(Ov(t,e,arguments.length>=2,!0))}var lh=y(()=>{"use strict";We();Fv()});function qv(t={}){let{connector:e=()=>new ge,resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,u=!1,d=!1,g=()=>{a?.unsubscribe(),a=void 0},v=()=>{g(),s=l=void 0,u=d=!1},w=()=>{let D=s;v(),D?.unsubscribe()};return de((D,S)=>{c++,!d&&!u&&g();let O=l=l??e();S.add(()=>{c--,c===0&&!d&&!u&&(a=ch(w,r))}),O.subscribe(S),!s&&c>0&&(s=new ei({next:K=>O.next(K),error:K=>{d=!0,g(),a=ch(v,i,K),O.error(K)},complete:()=>{u=!0,g(),a=ch(v,n),O.complete()}}),Ie(D).subscribe(s))})(o)}}function ch(t,e,...i){if(e===!0){t();return}if(e===!1)return;let n=new ei({next:()=>{n.unsubscribe(),t()}});return Ie(e(...i)).subscribe(n)}var zv=y(()=>{"use strict";kt();ss();tl();We()});
3function Si(t,e,i){let n,r=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:r=!1,scheduler:i}=t:n=t??1/0,qv({connector:()=>new en(n,e,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}var Gv=y(()=>{"use strict";kd();zv()});function uh(...t){let e=Ln(t);return de((i,n)=>{(e?Vn(t,i,e):Vn(t,i)).subscribe(n)})}var Wv=y(()=>{"use strict";xl();lr();We()});function Qe(t,e){return de((i,n)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&n.complete();i.subscribe(le(n,l=>{r?.unsubscribe();let c=0,u=o++;Ie(t(l,u)).subscribe(r=le(n,d=>n.next(e?e(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}var dh=y(()=>{"use strict";kt();We();nt()});function gs(t){return de((e,i)=>{Ie(t).subscribe(le(i,()=>i.complete(),or)),!i.closed&&e.subscribe(i)})}var Qv=y(()=>{"use strict";We();nt();kt();Ja()});function ze(t,e,i){let n=oe(t)||e||i?{next:t,error:e,complete:i}:t;return n?de((r,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;r.subscribe(le(o,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),o.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,l),o.error(l)},()=>{var l,c;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):at}var hh=y(()=>{"use strict";st();We();nt();ti()});var rt=y(()=>{"use strict";Rt();z0();ss();Q0();kd();rr();Td();ti();Cv();us();xv();xl();Av();Nv();Xr();Rv();wv();bv();Il();cs();kv();th();nh();jv();hs();to();io();Uv();lh();Gv();dh();fs();hh()});var Ii=y(()=>{"use strict";th();nh();Tl();hs();$v();Bv();Hv();to();ih();io();Nd();lh();Wv();dh();fs();sh();Qv();hh()});function lc(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Fs(t){return{toString:t}.toString()}function Ix(t){return function(...i){if(t){let n=t(...i);for(let r in n)this[r]=n[r]}}}
3function Vy(t,e,i){return Fs(()=>{let n=Ix(e);function r(...o){if(this instanceof r)return n.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(l,c,u){let d=l.hasOwnProperty(Al)?l[Al]:Object.defineProperty(l,Al,{value:[]})[Al];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function Re(t){for(let e in t)if(t[e]===Re)return e;throw Error("Could not find renamed property on target object.")}function Tx(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function Ft(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ft).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(` 4`);return i===-1?e:e.substring(0,i)}function Th(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}function fn(t){return t.__forward_ref__=fn,t.toString=function(){return Ft(this())},t}function Ot(t){return jy(t)?t():t}function jy(t){return typeof t=="function"&&t.hasOwnProperty(Mx)&&t.__forward_ref__===fn}function k(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Pt(t){return{providers:t.providers||[],imports:t.imports||[]}}function cc(t){return Zv(t,By)||Zv(t,Hy)}function $y(t){return cc(t)!==null}function Zv(t,e){return t.hasOwnProperty(e)?t[e]:null}function Ax(t){let e=t&&(t[By]||t[Hy]);return e||null}function Kv(t){return t&&(t.hasOwnProperty(Yv)||t.hasOwnProperty(Nx))?t[Yv]:null}function Uy(t){return t&&!!t.\u0275providers}function Ut(t){return typeof t=="string"?t:t==null?"":String(t)}function Px(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ut(t)}function Lx(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new R(-200,t)}function Lf(t,e){throw new R(-201,!1)}function qy(){return Mh}function Ht(t){let e=Mh;return Mh=t,e}function zy(t,e,i){let n=cc(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&fe.Optional)return null;if(e!==void 0)return e;Lf(t,"Injector")}function Hx(){return co}function Ti(t){let e=co;return co=t,e}function Ux(t,e=fe.Default){if(co===void 0)throw new R(-203,!1);return co===null?zy(t,void 0,e):co.get(t,e&fe.Optional?null:void 0,e)}function M(t,e=fe.Default){return(qy()||Ux)(Ot(t),e)}function T(t,e=fe.Default){return M(t,uc(e))}function uc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Nh(t){let e=[];for(let i=0;i<t.length;i++){let n=Ot(t[i]);if(Array.isArray(n)){if(n.length===0)throw new R(900,!1);let r,o=fe.Default;for(let s=0;s<n.length;s++){let a=n[s],l=qx(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}e.push(M(r,o))}else e.push(M(n))}return e}function Gy(t,e){return t[Ah]=e,t.prototype[Ah]=e,t}function qx(t){return t[Ah]}function zx(t,e,i,n){let r=t[ql];throw e[Xv]&&r.unshift(e[Xv]),t.message=Gx(` 5`+t.message,r,i,n),t[jx]=r,t[ql]=null,t}function Gx(t,e,i,n=null){t=t&&t.charAt(0)===` 6`&&t.charAt(1)==Bx?t.slice(2):t;let r=Ft(e);if(Array.isArray(e))r=e.map(Ft).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ft(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace($x,` 7 `)}`}function fr(t,e){let i=t.hasOwnProperty(Ul);return i?t[Ul]:null}function Wx(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=e[n];if(i&&(r=i(r),o=i(o)),o!==r)return!1}return!0}function Qx(t){return t.flat(Number.POSITIVE_INFINITY)}function jf(t,e){t.forEach(i=>Array.isArray(i)?jf(i,e):e(i))}function Qy(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function zl(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Zx(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(r===1)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){let o=r-2;t[r]=t[o],r--}t[e]=i,t[e+1]=n}}function dc(t,e,i){let n=Ps(t,e);return n>=0?t[n|1]=i:(n=~n,Zx(t,n,e,i)),n}function fh(t,e){let i=Ps(t,e);if(i>=0)return t[i|1]}function Ps(t,e){return Kx(t,e,1)}function Kx(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let o=n+(r-n>>1),s=t[o<<i];if(e===s)return o<<i;s>e?r=o:n=o+1}return~(r<<i)}
vendor: 4,106 bytes, line 7
7function Yx(t,e,i){let n=t.length;for(;;){let r=t.indexOf(e,i);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=e.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}i=r+1}}function Rh(t,e,i){let n=0;for(;n<i.length;){let r=i[n];if(typeof r=="number"){if(r!==0)break;n++;let o=i[n++],s=i[n++],a=i[n++];t.setAttribute(e,s,a,o)}else{let o=r,s=i[++n];Jx(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),n++}}return n}function Jy(t){return t===3||t===4||t===6}function Jx(t){return t.charCodeAt(0)===64}function ws(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let r=e[n];typeof r=="number"?i=r:i===0||(i===-1||i===2?ey(t,i,r,null,e[++n]):ey(t,i,r,null,null))}}return t}function ey(t,e,i,n,r){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===i){if(n===null){r!==null&&(t[o+1]=r);return}else if(n===t[o+1]){t[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,i),n!==null&&t.splice(o++,0,n),r!==null&&t.splice(o++,0,r)}function Xx(t,e,i,n){let r=0;if(n){for(;r<e.length&&typeof e[r]=="string";r+=2)if(e[r]==="class"&&Yx(e[r+1].toLowerCase(),i,0)!==-1)return!0}else if($f(t))return!1;if(r=e.indexOf(1,r),r>-1){let o;for(;++r<e.length&&typeof(o=e[r])=="string";)if(o.toLowerCase()===i)return!0}return!1}function $f(t){return t.type===4&&t.value!==Xy}function eS(t,e,i){let n=t.type===4&&!i?Xy:t.value;return e===n}function tS(t,e,i){let n=4,r=t.attrs,o=r!==null?rS(r):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!Cn(n)&&!Cn(l))return!1;if(s&&Cn(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!eS(t,l,i)||l===""&&e.length===1){if(Cn(n))return!1;s=!0}}else if(n&8){if(r===null||!Xx(t,r,l,i)){if(Cn(n))return!1;s=!0}}else{let c=e[++a],u=nS(l,r,$f(t),i);if(u===-1){if(Cn(n))return!1;s=!0;continue}if(c!==""){let d;if(u>o?d="":d=r[u+1].toLowerCase(),n&2&&c!==d){if(Cn(n))return!1;s=!0}}}}return Cn(n)||s}function Cn(t){return(t&1)===0}function nS(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let o=!1;for(;r<e.length;){let s=e[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++r];for(;typeof a=="string";)a=e[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return oS(e,t)}function iS(t,e,i=!1){for(let n=0;n<e.length;n++)if(tS(t,e[n],i))return!0;return!1}function rS(t){for(let e=0;e<t.length;e++){let i=t[e];if(Jy(i))return e}return t.length}function oS(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function ty(t,e){return t?":not("+e.trim()+")":e}function sS(t){let e=t[0],i=1,n=2,r="",o=!1;for(;i<t.length;){let s=t[i];if(typeof s=="string")if(n&2){let a=t[++i];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?r+="."+s:n&4&&(r+=" "+s);else r!==""&&!Cn(s)&&(e+=ty(o,r),r=""),n=s,o=o||!Cn(n);i++}return r!==""&&(e+=ty(o,r)),e}function aS(t){return t.map(sS).join(",")}function lS(t){let e=[],i=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&e.push(o,t[++n]):r===8&&i.push(o);else{if(!Cn(r))break;r=o}n++}return{attrs:e,classes:i}}function B(t){return Fs(()=>{let e=r1(t),i=W(_({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Yy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Hn.Emulated,styles:t.styles||qt,_:null,schemas:t.schemas||null,tView:null,id:""});o1(i);let n=t.dependencies;return i.directiveDefs=iy(n,!1),i.pipeDefs=iy(n,!0),i.id=dS(i),i})}function cS(t){return pr(t)||e1(t)}function uS(t){return t!==null}function Lt(t){return Fs(()=>({type:t.type,bootstrap:t.bootstrap||qt,declarations:t.declarations||qt,imports:t.imports||qt,exports:t.exports||qt,transitiveCompileScopes:null,
7schemas:t.schemas||null,id:t.id||null}))}function ny(t,e){if(t==null)return ho;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,s,a=Te.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(i[o]=a!==Te.None?[n,a]:n,e[o]=s):i[o]=n}return i}function xe(t){return Fs(()=>{let e=r1(t);return o1(e),e})}function _r(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function pr(t){return t[Rx]||null}function e1(t){return t[kx]||null}function t1(t){return t[Ox]||null}function n1(t){let e=pr(t)||e1(t)||t1(t);return e!==null?e.standalone:!1}function i1(t,e){let i=t[Fx]||null;if(!i&&e===!0)throw new Error(`Type ${Ft(t)} does not have '\u0275mod' property.`);return i}function r1(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||ho,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||qt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ny(t.inputs,e),outputs:ny(t.outputs),debugInfo:null}}function o1(t){t.features?.forEach(e=>e(t))}function iy(t,e){if(!t)return null;let i=e?t1:cS;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(uS)}function dS(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Vt(t){return{\u0275providers:t}}function hS(...t){return{\u0275providers:s1(!0,t),\u0275fromNgModule:!0}}function s1(t,...e){let i=[],n=new Set,r,o=s=>{i.push(s)};return jf(e,s=>{let a=s;kh(a,o,[],n)&&(r||=[],r.push(a))}),r!==void 0&&a1(r,o),i}function a1(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:r}=t[i];Bf(r,o=>{e(o,n)})}}function kh(t,e,i,n){if(t=Ot(t),!t)return!1;let r=null,o=Kv(t),s=!o&&pr(t);if(!o&&!s){let l=t.ngModule;if(o=Kv(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)kh(c,e,i,n)}}else if(o){if(o.imports!=null&&!a){n.add(r);let c;try{jf(o.imports,u=>{kh(u,e,i,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&a1(c,e)}if(!a){let c=fr(r)||(()=>new r);e({provide:r,useFactory:c,deps:qt},r),e({provide:Ky,useValue:r,multi:!0},r),e({provide:fo,useValue:()=>M(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=t;Bf(l,u=>{e(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function Bf(t,e){for(let i of t)Uy(i)&&(i=i.\u0275providers),Array.isArray(i)?Bf(i,e):e(i)}function l1(t){return t!==null&&typeof t=="object"&&fS in t}function pS(t){return!!(t&&t.useExisting)}function mS(t){return!!(t&&t.useFactory)}function po(t){return typeof t=="function"}function gS(t){return!!t.useClass}function Hf(){return ph===void 0&&(ph=new Gl),ph}function Oh(t){let e=cc(t),i=e!==null?e.factory:fr(t);if(i!==null)return i;if(t instanceof $)throw new R(204,!1);if(t instanceof Function)return yS(t);throw new R(204,!1)}function yS(t){if(t.length>0)throw new R(204,!1);let i=Ax(t);return i!==null?()=>i.factory(t):()=>new t}function wS(t){if(l1(t))return so(void 0,t.useValue);{let e=c1(t);return so(e,Pl)}}function c1(t,e,i){let n;if(po(t)){let r=Ot(t);return fr(r)||Oh(r)}else if(l1(t))n=()=>Ot(t.useValue);else if(mS(t))n=()=>t.useFactory(...Nh(t.deps||[]));else if(pS(t))n=()=>M(Ot(t.useExisting));else{let r=Ot(t&&(t.useClass||t.provide));if(bS(t))n=()=>new r(...Nh(t.deps));else return fr(r)||Oh(r)}return n}function so(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function bS(t){return!!t.deps}function CS(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function _S(t){return typeof t=="function"||typeof t=="object"&&t instanceof $}function Fh(t,e){for(let i of t)Array.isArray(i)?Fh(i,e):i&&Uy(i)?Fh(i.\u0275providers,e):e(i)}function ci(t,e){t instanceof bs&&t.assertNotDestroyed();let i,n=Ti(t),r=Ht(void 0);try{return e()}finally{Ti(n),Ht(r)}}function u1(){return qy()!==void 0||Hx()!=null}function fc(t){if(!u1())throw new R(-203,!1)}function DS(t){return typeof t=="function"}function dr(t){return Array.isArray(t)&&typeof t[Uf]=="object"}function ui(t){return Array.isArray(t)&&t[Uf]===!0}function zf(t){return(t.flags&4)!==0}
vendor: 9,877 bytes, line 7
7function mc(t){return t.componentOffset>-1}function gc(t){return(t.flags&1)===1}function oi(t){return!!t.template}function ES(t){return(t[J]&512)!==0}function h1(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function ot(){return f1}function f1(t){return t.type.prototype.ngOnChanges&&(t.setInput=SS),xS}function xS(){let t=m1(this),e=t?.current;if(e){let i=t.previous;if(i===ho)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function SS(t,e,i,n,r){let o=this.declaredInputs[n],s=m1(t)||IS(t,{previous:ho,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new Es(c&&c.currentValue,i,l===ho),h1(t,e,r,i)}function m1(t){return t[p1]||null}function IS(t,e){return t[p1]=e}function AS(){return MS}function Un(t){for(;Array.isArray(t);)t=t[zn];return t}function NS(t){for(;Array.isArray(t);){if(typeof t[Uf]=="object")return t;t=t[zn]}return null}function v1(t,e){return Un(e[t])}function pn(t,e){return Un(e[t.index])}function Gf(t,e){return t.data[e]}function vc(t,e){return t[e]}function Ri(t,e){let i=e[t];return dr(i)?i:i[zn]}function RS(t){return(t[J]&4)===4}function Wf(t){return(t[J]&128)===128}function kS(t){return ui(t[wt])}function vo(t,e){return e==null?null:t[e]}function y1(t){t[ao]=0}function OS(t){t[J]&1024||(t[J]|=1024,Wf(t)&&xs(t))}function FS(t,e){for(;t>0;)e=e[bo],t--;return e}function Qf(t){return!!(t[J]&9216||t[mr]?.dirty)}function Ph(t){t[Dn].changeDetectionScheduler?.notify(1),Qf(t)?xs(t):t[J]&64&&(AS()?(t[J]|=1024,xs(t)):t[Dn].changeDetectionScheduler?.notify())}function xs(t){t[Dn].changeDetectionScheduler?.notify();let e=Ss(t);for(;e!==null&&!(e[J]&8192||(e[J]|=8192,!Wf(e)));)e=Ss(e)}function w1(t,e){if((t[J]&256)===256)throw new R(911,!1);t[Mi]===null&&(t[Mi]=[]),t[Mi].push(e)}function PS(t,e){if(t[Mi]===null)return;let i=t[Mi].indexOf(e);i!==-1&&t[Mi].splice(i,1)}function Ss(t){let e=t[wt];return ui(e)?e[wt]:e}function LS(){return ae.lFrame.elementDepthCount}function VS(){ae.lFrame.elementDepthCount++}function jS(){ae.lFrame.elementDepthCount--}function b1(){return ae.bindingsEnabled}function $S(){return ae.skipHydrationRootTNode!==null}function BS(t){return ae.skipHydrationRootTNode===t}function HS(){ae.skipHydrationRootTNode=null}function X(){return ae.lFrame.lView}function Xe(){return ae.lFrame.tView}function F(t){return ae.lFrame.contextLView=t,t[St]}function P(t){return ae.lFrame.contextLView=null,t}function jt(){let t=C1();for(;t!==null&&t.type===64;)t=t.parent;return t}function C1(){return ae.lFrame.currentTNode}function US(){let t=ae.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Dr(t,e){let i=ae.lFrame;i.currentTNode=t,i.isParent=e}function Zf(){return ae.lFrame.isParent}function _1(){ae.lFrame.isParent=!1}function qS(){return ae.lFrame.contextLView}function ki(){let t=ae.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Kf(){return ae.lFrame.bindingIndex}function zS(t){return ae.lFrame.bindingIndex=t}function Er(){return ae.lFrame.bindingIndex++}function Vs(t){let e=ae.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function GS(){return ae.lFrame.inI18n}function WS(t,e){let i=ae.lFrame;i.bindingIndex=i.bindingRootIndex=t,Lh(e)}function QS(){return ae.lFrame.currentDirectiveIndex}function Lh(t){ae.lFrame.currentDirectiveIndex=t}function D1(t){let e=ae.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function E1(){return ae.lFrame.currentQueryIndex}function Yf(t){ae.lFrame.currentQueryIndex=t}function ZS(t){let e=t[ne];return e.type===2?e.declTNode:e.type===1?t[Sn]:null}function x1(t,e,i){if(i&fe.SkipSelf){let r=e,o=t;for(;r=r.parent,r===null&&!(i&fe.Host);)if(r=ZS(o),r===null||(o=o[bo],r.type&10))break;if(r===null)return!1;e=r,t=o}let n=ae.lFrame=S1();return n.currentTNode=e,n.lView=t,!0}function Jf(t){let e=S1(),i=t[ne];ae.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function S1(){let t=ae.lFrame,e=t===null?null:t.child;return e===null?I1(t):e}function I1(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function T1(){let t=ae.lFrame;return ae.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}function Xf(){let t=T1();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function KS(t){return(ae.lFrame.contextLView=FS(t,ae.lFrame.contextLView))[St]}function In(){return ae.lFrame.selectedIndex}function vr(t){ae.lFrame.selectedIndex=t}function js(){let t=ae.lFrame;return Gf(t.tView,t.selectedIndex)}function ce(){ae.lFrame.currentNamespace=g1}function Me(){YS()}function YS(){ae.lFrame.currentNamespace=null}function JS(){return ae.lFrame.currentNamespace}function yc(){return A1}function wc(t){A1=t}function XS(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){let s=f1(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}r&&(i.preOrderHooks??=[]).push(0-t,r),o&&((i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o))}function bc(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let o=t.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(t.contentHooks??=[]).push(-i,s),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),l&&(t.viewHooks??=[]).push(-i,l),c&&((t.viewHooks??=[]).push(i,c),(t.viewCheckHooks??=[]).push(i,c)),u!=null&&(t.destroyHooks??=[]).push(i,u)}}function Vl(t,e,i){N1(t,e,3,i)}function jl(t,e,i,n){(t[J]&3)===i&&N1(t,e,i,n)}function mh(t,e){let i=t[J];(i&3)===e&&(i&=16383,i+=1,t[J]=i)}function N1(t,e,i,n){let r=n!==void 0?t[ao]&65535:0,o=n??-1,s=e.length-1,a=0;for(let l=r;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],n!=null&&a>=n)break}else e[l]<0&&(t[ao]+=65536),(a<o||o==-1)&&(e2(t,i,e,l),t[ao]=(t[ao]&4294901760)+l+2),l++}function sy(t,e){$n(4,t,e);let i=pe(null);try{e.call(t)}finally{pe(i),$n(5,t,e)}}function e2(t,e,i,n){let r=i[n]<0,o=i[n+1],s=r?-i[n]:i[n],a=t[s];r?t[J]>>14<t[ao]>>16&&(t[J]&3)===e&&(t[J]+=16384,sy(a,o)):sy(a,o)}function t2(t){return t instanceof yr}function n2(t){return(t.flags&8)!==0}function i2(t){return(t.flags&16)!==0}function R1(t){return t!==uo}function Ql(t){return t&32767}function r2(t){return t>>16}function Zl(t,e){let i=r2(t),n=e;for(;i>0;)n=n[bo],i--;return n}function Kl(t){let e=Vh;return Vh=t,e}function a2(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(vs)&&(n=i[vs]),n==null&&(n=i[vs]=s2++);let r=n&k1,o=1<<r;e.data[t+(r>>O1)]|=o}function Yl(t,e){let i=F1(t,e);if(i!==-1)return i;let n=e[ne];n.firstCreatePass&&(t.injectorIndex=e.length,gh(n.data,t),gh(e,null),gh(n.blueprint,null));let r=ep(t,e),o=t.injectorIndex;if(R1(r)){let s=Ql(r),a=Zl(r,e),l=a[ne].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function gh(t,e){t.push(0,0,0,0,0,0,0,0,e)}function F1(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ep(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=$1(r),n===null)return uo;if(i++,r=r[bo],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return uo}function jh(t,e,i){a2(t,e,i)}function l2(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r<n;){let o=i[r];if(Jy(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof i[r]=="string";)r++;else{if(o===e)return i[r+1];r=r+2}}}return null}function P1(t,e,i){if(i&fe.Optional||t!==void 0)return t;Lf(e,"NodeInjector")}function L1(t,e,i,n){if(i&fe.Optional&&n===void 0&&(n=null),!(i&(fe.Self|fe.Host))){let r=t[mo],o=Ht(void 0);try{return r?r.get(e,n,i&fe.Optional):zy(e,n,i&fe.Optional)}finally{Ht(o)}}return P1(n,e,i)}function V1(t,e,i,n=fe.Default,r){if(t!==null){if(e[J]&2048&&!(n&fe.Self)){let s=h2(t,e,i,n,Bn);if(s!==Bn)return s}let o=j1(t,e,i,n,Bn);if(o!==Bn)return o}return L1(e,i,n,r)}function j1(t,e,i,n,r){let o=u2(i);if(typeof o=="function"){if(!x1(e,t,n))return n&fe.Host?P1(r,i,n):L1(e,i,n,r);try{let s;if(s=o(n),s==null&&!(n&fe.Optional))Lf(i);else return s}finally{M1()}}else if(typeof o=="number"){let s=null,a=F1(t,e),l=uo,c=n&fe.Host?e[En][Sn]:null;for((a===-1||n&fe.SkipSelf)&&(l=a===-1?ep(t,e):e[a+8],l===uo||!ly(n,!1)?a=-1:(s=e[ne],a=Ql(l),e=Zl(l,e)));a!==-1;){let u=e[ne];if(ay(o,a,u.data)){let d=c2(a,e,i,s,n,c);if(d!==Bn)return d}l=e[a+8],l!==uo&&ly(n,e[ne].data[a+8]===c)&&ay(o,a,e)?(s=u,a=Ql(l),e=Zl(l,e)):a=-1}}return r}function c2(t,e,i,n,r,o){let s=e[ne],a=s.data[t+8],l=n==null?mc(a)&&Vh:n!=s&&(a.type&3)!==0,c=r&fe.Host&&o===a,u=$l(a,s,i,l,c);return u!==null?wr(e,s,u,a):Bn}function $l(t,e,i,n,r){let o=t.providerIndexes,s=e.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,u=o>>20,d=n?a:a+u,g=r?a+u:c;for(let v=d;v<g;v++){let w=s[v];if(v<l&&i===w||v>=l&&w.type===i)return v}if(r){let v=s[l];if(v&&oi(v)&&v.type===i)return l}return null}function wr(t,e,i,n){let r=t[i],o=e.data;if(t2(r)){let s=r;s.resolving&&Lx(Px(o[i]));let a=Kl(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Ht(s.injectImpl):null,u=x1(t,n,fe.Default);try{r=t[i]=s.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&XS(i,o[i],e)}finally{c!==null&&Ht(c),Kl(a),s.resolving=!1,M1()}}return r}function u2(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(vs)?t[vs]:void 0;return typeof e=="number"?e>=0?e&k1:d2:e}function ay(t,e,i){let n=1<<t;return!!(i[e+(t>>
7O1)]&n)}function ly(t,e){return!(t&fe.Self)&&!(t&fe.Host&&e)}function d2(){return new hr(jt(),X())}function Tn(t){return Fs(()=>{let e=t.prototype.constructor,i=e[Ul]||$h(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[Ul]||$h(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function $h(t){return jy(t)?()=>{let e=$h(Ot(t));return e&&e()}:fr(t)}function h2(t,e,i,n,r){let o=t,s=e;for(;o!==null&&s!==null&&s[J]&2048&&!(s[J]&512);){let a=j1(o,s,i,n|fe.Self,Bn);if(a!==Bn)return a;let l=o.parent;if(!l){let c=s[d1];if(c){let u=c.get(i,Bn,n);if(u!==Bn)return u}l=$1(s),s=s[bo]}o=l}return r}function $1(t){let e=t[ne],i=e.type;return i===2?e.declTNode:i===1?t[Sn]:null}function tp(t){return l2(jt(),t)}function cy(t,e=null,i=null,n){let r=B1(t,e,i,n);return r.resolveInjectorInitializers(),r}function B1(t,e=null,i=null,n,r=new Set){let o=[i||qt,hS(t)];return n=n||(typeof t=="object"?void 0:Ft(t)),new bs(o,e||Hf(),n||null,r)}function vh(t){return t[f2]}function p2(){return new Bh(X())}function m2(){return Co(jt(),X())}function Co(t,e){return new ke(pn(t,e))}function g2(t){return t instanceof ke?t.nativeElement:t}function yh(t){return e=>{setTimeout(t,void 0,e)}}function v2(){return this._results[Symbol.iterator]()}function U1(t){return(t.flags&128)===128}function w2(){return y2++}function b2(t){q1.set(t[pc],t)}function C2(t){q1.delete(t[pc])}function Ai(t,e){dr(e)?(t[uy]=e[pc],b2(e)):t[uy]=e}function z1(t){return W1(t[Ds])}function G1(t){return W1(t[_n])}function W1(t){for(;t!==null&&!ui(t);)t=t[_n];return t}function Q1(t){qh=t}function Z1(){if(qh!==void 0)return qh;if(typeof document<"u")return document;throw new R(210,!1)}function sp(t,e,i=!1){return x2(t,e,i)}function I2(){if(Nl===void 0&&(Nl=null,ii.trustedTypes))try{Nl=ii.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Nl}function Cc(t){return I2()?.createHTML(t)||t}function Y1(){if(Rl===void 0&&(Rl=null,ii.trustedTypes))try{Rl=ii.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Rl}function dy(t){return Y1()?.createHTML(t)||t}function hy(t){return Y1()?.createScriptURL(t)||t}function nn(t){return t instanceof si?t.changingThisBreaksApplicationSecurity:t}function hi(t,e){let i=T2(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${Ly})`)}return i===e}function T2(t){return t instanceof si&&t.getTypeName()||null}function J1(t){return new zh(t)}function X1(t){return new Gh(t)}function ew(t){return new Wh(t)}function tw(t){return new Qh(t)}function nw(t){return new Zh(t)}function M2(t){let e=new Yh(t);return A2()?new Kh(e):e}function A2(){try{return!!new window.DOMParser().parseFromString(Cc(""),"text/html")}catch{return!1}}function _c(t){return t=String(t),t.match(N2)?t:"unsafe:"+t}function fi(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function $s(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}function j2(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function $2(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw aw(e);return e}function B2(t){let e=t.firstChild;if(e&&j2(t,e))throw aw(e);return e}function py(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function aw(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}function my(t){return t.replace(/&/g,"&").replace(H2,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(U2,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function ap(t,e){let i=null;try{kl=kl||M2(t);let n=e?String(e):"";i=kl.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=kl.getInertBodyElement(n)}while(n!==o);let a=new Jh().sanitizeChildren(gy(i)||i);return Cc(a)}finally{if(i){let n=gy(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function gy(t){return"content"in t&&q2(t)?t.content:null}function q2(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}function Le(t){let e=lp();return e?dy(e.sanitize(rn.HTML,t)||""):hi(t,"HTML")?dy(nn(t)):ap(Z1(),Ut(t))}function Fi(t){let e=lp();return e?e.sanitize(rn.URL,t)||"":hi(t,"URL")?nn(t):_c(Ut(t))}function z2(t){let e=lp();if(e)return hy(e.sanitize(rn.RESOURCE_URL,t)||"");if(hi(t,"ResourceURL"))return hy(nn(t));throw new R(904,!1)}function G2(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?z2:Fi}function lw(t,e,i){return G2(e,i)(t)}function lp(){let t=X();return t&&t[Dn].sanitizer}function K2(t){return t.replace(W2,e=>e.replace(Q2,Z2))}function _o(t){return t.ownerDocument.defaultView}function Dc(t){return t.ownerDocument}function cw(t){return t instanceof Function?t():t}function cp(t,e){return Y2(t,e)}
vendor: 5,301 bytes, line 7
7function lo(t,e,i,n,r){if(n!=null){let o,s=!1;ui(n)?o=n:dr(n)&&(s=!0,n=n[zn]);let a=Un(n);t===0&&i!==null?r==null?fw(e,i,a):Jl(e,i,a,r||null,!0):t===1&&i!==null?Jl(e,i,a,r||null,!0):t===2?mI(e,a,s):t===3&&e.destroyNode(a),o!=null&&vI(e,t,o,i,r)}}function J2(t,e){return t.createText(e)}function X2(t,e,i){t.setValue(e,i)}function eI(t,e){return t.createComment(K2(e))}function uw(t,e,i){return t.createElement(e,i)}function tI(t,e){dw(t,e),e[zn]=null,e[Sn]=null}function nI(t,e,i,n,r,o){n[zn]=r,n[Sn]=e,Sc(t,n,i,1,r,o)}function dw(t,e){e[Dn].changeDetectionScheduler?.notify(1),Sc(t,e,e[Ge],2,null,null)}function iI(t){let e=t[Ds];if(!e)return wh(t[ne],t);for(;e;){let i=null;if(dr(e))i=e[Ds];else{let n=e[It];n&&(i=n)}if(!i){for(;e&&!e[_n]&&e!==t;)dr(e)&&wh(e[ne],e),e=e[wt];e===null&&(e=t),dr(e)&&wh(e[ne],e),i=e&&e[_n]}e=i}}function rI(t,e,i,n){let r=It+n,o=i.length;n>0&&(i[r-1][_n]=e),n<o-It?(e[_n]=i[r],Qy(i,It+n,e)):(i.push(e),e[_n]=null),e[wt]=i;let s=e[Ls];s!==null&&i!==s&&oI(s,e);let a=e[ri];a!==null&&a.insertView(t),Ph(e),e[J]|=128}function oI(t,e){let i=t[go],r=e[wt][wt][En];e[En]!==r&&(t[J]|=qf.HasTransplantedViews),i===null?t[go]=[e]:i.push(e)}function hw(t,e){let i=t[go],n=i.indexOf(e);i.splice(n,1)}function Is(t,e){if(t.length<=It)return;let i=It+e,n=t[i];if(n){let r=n[Ls];r!==null&&r!==t&&hw(r,n),e>0&&(t[i-1][_n]=n[_n]);let o=zl(t,It+e);tI(n[ne],n);let s=o[ri];s!==null&&s.detachView(o[ne]),n[wt]=null,n[_n]=null,n[J]&=-129}return n}function Ec(t,e){if(!(e[J]&256)){let i=e[Ge];i.destroyNode&&Sc(t,e,i,3,null,null),iI(e)}}function wh(t,e){if(e[J]&256)return;let i=pe(null);try{e[J]&=-129,e[J]|=256,e[mr]&&vd(e[mr]),aI(t,e),sI(t,e),e[ne].type===1&&e[Ge].destroy();let n=e[Ls];if(n!==null&&ui(e[wt])){n!==e[wt]&&hw(n,e);let r=e[ri];r!==null&&r.detachView(t)}C2(e)}finally{pe(i)}}function sI(t,e){let i=t.cleanup,n=e[_s];if(i!==null)for(let o=0;o<i.length-1;o+=2)if(typeof i[o]=="string"){let s=i[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[i[o+1]];i[o].call(s)}n!==null&&(e[_s]=null);let r=e[Mi];if(r!==null){e[Mi]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function aI(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let r=e[i[n]];if(!(r instanceof yr)){let o=i[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],l=o[s+1];$n(4,a,l);try{l.call(a)}finally{$n(5,a,l)}}else{$n(4,r,o);try{o.call(r)}finally{$n(5,r,o)}}}}}function lI(t,e,i){return cI(t,e.parent,i)}function cI(t,e,i){let n=e;for(;n!==null&&n.type&40;)e=n,n=e.parent;if(n===null)return i[zn];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=t.data[n.directiveStart+r];if(o===Hn.None||o===Hn.Emulated)return null}return pn(n,i)}}function Jl(t,e,i,n,r){t.insertBefore(e,i,n,r)}function fw(t,e,i){t.appendChild(e,i)}function vy(t,e,i,n,r){n!==null?Jl(t,e,i,n,r):fw(t,e,i)}function uI(t,e,i,n){t.removeChild(e,i,n)}function up(t,e){return t.parentNode(e)}function dI(t,e){return t.nextSibling(e)}function hI(t,e,i){return pI(t,e,i)}function fI(t,e,i){return t.type&40?pn(t,i):null}function xc(t,e,i,n){let r=lI(t,n,e),o=e[Ge],s=n.parent||e[Sn],a=hI(s,n,e);if(r!=null)if(Array.isArray(i))for(let l=0;l<i.length;l++)vy(o,r,i[l],a,!1);else vy(o,r,i,a,!1);yy!==void 0&&yy(o,n,e,i,r)}function Bl(t,e){if(e!==null){let i=e.type;if(i&3)return pn(e,t);if(i&4)return Xh(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Bl(t,n);{let r=t[e.index];return ui(r)?Xh(-1,r):Un(r)}}else{if(i&32)return cp(e,t)()||Un(t[e.index]);{let n=pw(t,e);if(n!==null){if(Array.isArray(n))return n[0];let r=Ss(t[En]);return Bl(r,n)}else return Bl(t,e.next)}}}return null}function pw(t,e){if(e!==null){let n=t[En][Sn],r=e.projection;return n.projection[r]}return null}function Xh(t,e){let i=It+t+1;if(i<e.length){let n=e[i],r=n[ne].firstChild;if(r!==null)return Bl(n,r)}return e[gr]}function mI(t,e,i){let n=up(t,e);n&&uI(t,n,e,i)}function dp(t,e,i,n,r,o,s){for(;i!=null;){let a=n[i.index],l=i.type;if(s&&e===0&&(a&&Ai(Un(a),n),i.flags|=2),(i.flags&32)!==32)if(l&8)dp(t,e,i.child,n,r,o,!1),lo(e,t,r,a,o);else if(l&32){let c=cp(i,n),u;for(;u=c();)lo(e,t,r,u,o);lo(e,t,r,a,o)}else l&16?gI(t,e,n,i,r,o):lo(e,t,r,a,o);i=s?i.projectionNext:i.next}}function Sc(t,e,i,n,r,o){dp(i,n,t.firstChild,e,r,o,!1)}function gI(t,e,i,n,r,o){let s=i[En],l=s[Sn].projection[n.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];lo(e,t,r,u,o)}else{let c=l,u=s[wt];U1(n)&&(c.flags|=128),dp(t,e,c,u,r,o,!0)}}function vI(t,e,i,n,r){let o=i[gr],s=Un(i);o!==s&&lo(e,t,n,o,r);for(let a=It;a<i.length;a++){let l=i[a];Sc(l[ne],l,t,e,n,o)}}function yI(t,e,i,n,r){if(e)r?t.addClass(i,n):t.removeClass(i,n);else{let o=n.indexOf("-")===-1?void 0:ai.DashCase;r==null?t.removeStyle(i,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=ai.Important),t.setStyle(i,n,r,o))}}function wI(t,e,i){t.setAttribute(e,"style",i)}function mw(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function gw(t,e,i){let{mergedAttrs:n,classes:r,styles:o}=i;n!==null&&Rh(t,e,n),r!==null&&mw(t,e,r),o!==null&&wI(t,e,o)}function f(t=1){vw(Xe(),X(),In()+t,!1)}function vw(t,e,i,n){if(!n)if((e[J]&3)===3){let o=t.preOrderCheckHooks;o!==null&&Vl(e,o,i)}else{let o=t.preOrderHooks;o!==null&&jl(e,o,0,i)}vr(i)}function b(t,e=fe.Default){let i=X();if(i===null)return M(t,e);
7let n=jt();return V1(n,i,Ot(t),e)}function yw(t,e,i,n,r,o){let s=pe(null);try{let a=null;r&Te.SignalBased&&(a=e[n][Pn]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&Te.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(e,o)),t.setInput!==null?t.setInput(e,a,o,i,n):h1(e,a,n,o)}finally{pe(s)}}function bI(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let r=i[n];if(r<0)vr(~r);else{let o=r,s=i[++n],a=i[++n];WS(s,o);let l=e[o];a(2,l)}}}finally{vr(-1)}}function Ic(t,e,i,n,r,o,s,a,l,c,u){let d=e.blueprint.slice();return d[zn]=r,d[J]=n|4|128|8|64,(c!==null||t&&t[J]&2048)&&(d[J]|=2048),y1(d),d[wt]=d[bo]=t,d[St]=i,d[Dn]=s||t&&t[Dn],d[Ge]=a||t&&t[Ge],d[mo]=l||t&&t[mo]||null,d[Sn]=o,d[pc]=w2(),d[Cs]=u,d[d1]=c,d[En]=e.type==2?t[En]:d,d}function Bs(t,e,i,n,r){let o=t.data[e];if(o===null)o=CI(t,e,i,n,r),GS()&&(o.flags|=32);else if(o.type&64){o.type=i,o.value=n,o.attrs=r;let s=US();o.injectorIndex=s===null?-1:s.injectorIndex}return Dr(o,!0),o}function CI(t,e,i,n,r){let o=C1(),s=Zf(),a=s?o:o&&o.parent,l=t.data[e]=II(t,a,i,e,n,r);return t.firstChild===null&&(t.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function ww(t,e,i,n){if(i===0)return-1;let r=e.length;for(let o=0;o<i;o++)e.push(n),t.blueprint.push(n),t.data.push(null);return r}function bw(t,e,i,n,r){let o=In(),s=n&2;try{vr(-1),s&&e.length>bt&&vw(t,e,bt,!1),$n(s?2:0,r),i(n,r)}finally{vr(o),$n(s?3:1,r)}}function hp(t,e,i){if(zf(e)){let n=pe(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=i[s];a.contentQueries(1,l,s)}}}finally{pe(n)}}}function fp(t,e,i){b1()&&(kI(t,e,i,pn(i,e)),(i.flags&64)===64&&Dw(t,e,i))}function pp(t,e,i=pn){let n=e.localNames;if(n!==null){let r=e.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?i(e,t):t[s];t[r++]=a}}}function Cw(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=mp(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function mp(t,e,i,n,r,o,s,a,l,c,u){let d=bt+n,g=d+r,v=_I(d,g),w=typeof c=="function"?c():c;return v[ne]={type:t,blueprint:v,template:i,queries:null,viewQuery:a,declTNode:e,data:v.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:g,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 o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:w,incompleteFirstPass:!1,ssrId:u}}function _I(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:Ct);return i}function DI(t,e,i,n){let o=n.get(S2,K1)||i===Hn.ShadowDom,s=t.selectRootElement(e,o);return EI(s),s}function EI(t){xI(t)}function SI(t,e,i,n){let r=Sw(e);r.push(i),t.firstCreatePass&&Iw(t).push(n,r.length-1)}function II(t,e,i,n,r,o){let s=e?e.injectorIndex:-1,a=0;return $S()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function wy(t,e,i,n,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,l=Te.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(r!==null){if(!r.hasOwnProperty(o))continue;c=r[o]}t===0?by(n,i,c,a,l):by(n,i,c,a)}return n}function by(t,e,i,n,r){let o;t.hasOwnProperty(i)?(o=t[i]).push(e,n):o=t[i]=[e,n],r!==void 0&&o.push(r)}function TI(t,e,i){let n=e.directiveStart,r=e.directiveEnd,o=t.data,s=e.attrs,a=[],l=null,c=null;for(let u=n;u<r;
7u++){let d=o[u],g=i?i.get(d):null,v=g?g.inputs:null,w=g?g.outputs:null;l=wy(0,d.inputs,u,l,v),c=wy(1,d.outputs,u,c,w);let D=l!==null&&s!==null&&!$f(e)?qI(l,u,s):null;a.push(D)}l!==null&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=c}function MI(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Tc(t,e,i,n,r,o,s,a){let l=pn(e,i),c=e.inputs,u;!a&&c!=null&&(u=c[n])?(vp(t,i,u,n,r),mc(e)&&AI(i,e.index)):e.type&3?(n=MI(n),r=s!=null?s(r,e.value||"",n):r,o.setProperty(l,n,r)):e.type&12}function AI(t,e){let i=Ri(e,t);i[J]&16||(i[J]|=64)}function gp(t,e,i,n){if(b1()){let r=n===null?null:{"":-1},o=FI(t,i),s,a;o===null?s=a=null:[s,a]=o,s!==null&&_w(t,e,i,s,r,a),r&&PI(i,n,r)}i.mergedAttrs=ws(i.mergedAttrs,i.attrs)}function _w(t,e,i,n,r,o){for(let c=0;c<n.length;c++)jh(Yl(i,e),t,n[c].type);VI(i,t.data.length,n.length);for(let c=0;c<n.length;c++){let u=n[c];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,l=ww(t,e,n.length,null);for(let c=0;c<n.length;c++){let u=n[c];i.mergedAttrs=ws(i.mergedAttrs,u.hostAttrs),jI(t,i,e,l,u),LI(l,u,r),u.contentQueries!==null&&(i.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(i.flags|=64);let d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),l++}TI(t,i,o)}function NI(t,e,i,n,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;RI(s)!=a&&s.push(a),s.push(i,n,o)}}function RI(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function kI(t,e,i,n){let r=i.directiveStart,o=i.directiveEnd;mc(i)&&$I(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||Yl(i,e),Ai(n,e);let s=i.initialInputs;for(let a=r;a<o;a++){let l=t.data[a],c=wr(e,t,a,i);if(Ai(c,e),s!==null&&UI(e,a-r,c,l,i,s),oi(l)){let u=Ri(i.index,e);u[St]=wr(e,t,a,i)}}}function Dw(t,e,i){let n=i.directiveStart,r=i.directiveEnd,o=i.index,s=QS();try{vr(o);for(let a=n;a<r;a++){let l=t.data[a],c=e[a];Lh(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&OI(l,c)}}finally{vr(-1),Lh(s)}}function OI(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function FI(t,e){let i=t.directiveRegistry,n=null,r=null;if(i)for(let o=0;o<i.length;o++){let s=i[o];if(iS(e,s.selectors,!1))if(n||(n=[]),oi(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),n.unshift(...a,s);let l=a.length;ef(t,e,l)}else n.unshift(s),ef(t,e,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return n===null?null:[n,r]}function ef(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function PI(t,e,i){if(e){let n=t.localNames=[];for(let r=0;r<e.length;r+=2){let o=i[e[r+1]];if(o==null)throw new R(-301,!1);n.push(e[r],o)}}}function LI(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;oi(e)&&(i[""]=t)}}function VI(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function jI(t,e,i,n,r){t.data[n]=r;let o=r.factory||(r.factory=fr(r.type,!0)),s=new yr(o,oi(r),b);t.blueprint[n]=s,i[n]=s,NI(t,e,n,ww(t,i,r.hostVars,Ct),r)}function $I(t,e,i){let n=pn(e,t),r=Cw(i),o=t[Dn].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=Mc(t,Ic(t,r,null,s,n,e,null,o.createRenderer(n,i),null,null,null));t[e.index]=a}function BI(t,e,i,n,r,o){let s=pn(t,e);HI(e[Ge],s,o,t.value,i,n,r)}function HI(t,e,i,n,r,o,s){if(o==null)t.removeAttribute(e,r,i);else{let a=s==null?Ut(o):s(o,n||"",r);t.setAttribute(e,r,a,i)}}function UI(t,e,i,n,r,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],u=s[a++],d=s[a++];yw(n,i,l,c,u,d)}}function qI(t,e,i){let n=null,r=0;for(;r<i.length;){let o=i[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(o,s[a+1],s[a+2],i[r+1]);break}}r+=2}return n}
7function Ew(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function xw(t,e){let i=t.contentQueries;if(i!==null){let n=pe(null);try{for(let r=0;r<i.length;r+=2){let o=i[r],s=i[r+1];if(s!==-1){let a=t.data[s];Yf(o),a.contentQueries(2,e[s],s)}}}finally{pe(n)}}}function Mc(t,e){return t[Ds]?t[ry][_n]=e:t[Ds]=e,t[ry]=e,e}function tf(t,e,i){Yf(0);let n=pe(null);try{e(t,i)}finally{pe(n)}}function Sw(t){return t[_s]||(t[_s]=[])}function Iw(t){return t.cleanup||(t.cleanup=[])}function zI(t,e,i){return(t===null||oi(t))&&(i=NS(i[e.index])),i[Ge]}function Tw(t,e){let i=t[mo],n=i?i.get(qn,null):null;n&&n.handleError(e)}function vp(t,e,i,n,r){for(let o=0;o<i.length;){let s=i[o++],a=i[o++],l=i[o++],c=e[s],u=t.data[s];yw(u,c,n,a,l,r)}}function Ac(t,e,i){let n=v1(e,t);X2(t[Ge],n,i)}function GI(t,e){let i=Ri(e,t),n=i[ne];WI(n,i);let r=i[zn];r!==null&&i[Cs]===null&&(i[Cs]=sp(r,i[mo])),yp(n,i,i[St])}function WI(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function yp(t,e,i){Jf(e);try{let n=t.viewQuery;n!==null&&tf(1,n,i);let r=t.template;r!==null&&bw(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[ri]?.finishViewCreation(t),t.staticContentQueries&&xw(t,e),t.staticViewQueries&&tf(2,t.viewQuery,i);let o=t.components;o!==null&&QI(e,o)}
7catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[J]&=-5,Xf()}}function QI(t,e){for(let i=0;i<e.length;i++)GI(t,e[i])}function Nc(t,e,i,n){let r=pe(null);try{let o=e.tView,a=t[J]&4096?4096:16,l=Ic(t,o,i,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),c=t[e.index];l[Ls]=c;let u=t[ri];return u!==null&&(l[ri]=u.createEmbeddedView(o)),yp(o,l,i),l}finally{pe(r)}}function Mw(t,e){let i=It+e;if(i<t.length)return t[i]}function Ts(t,e){return!e||e.firstChild===null||U1(t)}function Rc(t,e,i,n=!0){let r=e[ne];if(rI(r,e,t,i),n){let s=Xh(i,t),a=e[Ge],l=up(a,t[gr]);l!==null&&nI(r,t[Sn],a,e,l,s)}let o=e[Cs];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Aw(t,e){let i=Is(t,e);return i!==void 0&&Ec(i[ne],i),i}function Xl(t,e,i,n,r=!1){for(;i!==null;){let o=e[i.index];o!==null&&n.push(Un(o)),ui(o)&&ZI(o,n);let s=i.type;if(s&8)Xl(t,e,i.child,n);else if(s&32){let a=cp(i,e),l;for(;l=a();)n.push(l)}else if(s&16){let a=pw(e,i);if(Array.isArray(a))n.push(...a);else{let l=Ss(e[En]);Xl(l[ne],l,a,n,!0)}}i=r?i.projectionNext:i.next}return n}function ZI(t,e){for(let i=It;i<t.length;i++){let n=t[i],r=n[ne].firstChild;r!==null&&Xl(n[ne],n,r,e)}t[gr]!==t[zn]&&e.push(t[gr])}function KI(t){return t[mr]??YI(t)}function YI(t){let e=Nw.pop()??Object.create(XI);return e.lView=t,e}function JI(t){t.lView[mr]!==t&&(t.lView=null,Nw.push(t))}function kw(t,e=!0,i=0){let n=t[Dn],r=n.rendererFactory,o=!1;o||r.begin?.();try{eT(t,i)}catch(s){throw e&&Tw(t,s),s}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function eT(t,e){nf(t,e);let i=0;for(;Qf(t);){if(i===Rw)throw new R(103,!1);i++,nf(t,1)}}function tT(t,e,i,n){let r=e[J];if((r&256)===256)return;let o=!1;!o&&e[Dn].inlineEffectRunner?.flush(),Jf(e);let s=null,a=null;!o&&nT(t)&&(a=KI(e),s=Ua(a));try{y1(e),zS(t.bindingStartIndex),i!==null&&bw(t,e,i,2,n);let l=(r&3)===3;if(!o)if(l){let d=t.preOrderCheckHooks;d!==null&&Vl(e,d,null)}else{let d=t.preOrderHooks;d!==null&&jl(e,d,0,null),mh(e,0)}if(iT(e),Ow(e,0),t.contentQueries!==null&&xw(t,e),!o)if(l){let d=t.contentCheckHooks;d!==null&&Vl(e,d)}else{let d=t.contentHooks;d!==null&&jl(e,d,1),mh(e,1)}bI(t,e);let c=t.components;c!==null&&Pw(e,c,0);let u=t.viewQuery;if(u!==null&&tf(2,u,n),!o)if(l){let d=t.viewCheckHooks;d!==null&&Vl(e,d)}else{let d=t.viewHooks;d!==null&&jl(e,d,2),mh(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ll]){for(let d of e[Ll])d();e[Ll]=null}o||(e[J]&=-73)}catch(l){throw xs(e),l}finally{a!==null&&(qa(a,s),JI(a)),Xf()}}function nT(t){return t.type!==2}function Ow(t,e){for(let i=z1(t);i!==null;i=G1(i))for(let n=It;n<i.length;n++){let r=i[n];Fw(r,e)}}function iT(t){for(let e=z1(t);e!==null;e=G1(e)){if(!(e[J]&qf.HasTransplantedViews))continue;let i=e[go];for(let n=0;n<i.length;n++){let r=i[n],o=r[wt];OS(r)}}}function rT(t,e,i){let n=Ri(e,t);Fw(n,i)}function Fw(t,e){Wf(t)&&nf(t,e)}function nf(t,e){let n=t[ne],r=t[J],o=t[mr],s=!!(e===0&&r&16);if(s||=!!(r&64&&e===0),s||=!!(r&1024),s||=!!(o?.dirty&&za(o)),o&&(o.dirty=!1),t[J]&=-9217,s)tT(n,t,n.template,t[St]);else if(r&8192){Ow(t,1);let a=n.components;a!==null&&Pw(t,a,1)}}function Pw(t,e,i){for(let n=0;n<e.length;n++)rT(t,e[n],i)}function wp(t){for(t[Dn].changeDetectionScheduler?.notify();t;){t[J]|=64;let e=Ss(t);if(ES(t)&&!e)return t;t=e}return null}function aT(){return bp(jt(),X())}function bp(t,e){return t.type&4?new sT(e,t,Co(t,e)):null}function Ms(t,e){return lT(t,e)}function cT(t){let e=Error(`No component factory found for ${Ft(t)}.`);return e[uT]=t,e}function dT(){let t=X(),e=jt(),i=Ri(e.index,t);return(dr(i)?i:t)[Ge]}function Gn(t){Cy.has(t)||(Cy.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function _y(...t){}function fT(){let t=typeof ii.requestAnimationFrame=="function",e=ii[t?"requestAnimationFrame":"setTimeout"],i=ii[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}function Cp(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function mT(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(ii,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,sf(t),t.isCheckStableRunning=!0,Cp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),sf(t))}function gT(t){let e=()=>{mT(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>
7{if(vT(a))return i.invokeTask(r,o,s,a);try{return Dy(t),i.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Ey(t)}},onInvoke:(i,n,r,o,s,a,l)=>{try{return Dy(t),i.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Ey(t)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,sf(t),Cp(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function sf(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Dy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ey(t){t._nesting--,Cp(t)}function vT(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function tc(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)r=Th(r,a);else if(o==2){let l=a,c=e[++s];n=Th(n,l+": "+c+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}function xy(t){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let n=t[i];n!==void 0&&e.push({propName:Array.isArray(n)?n[0]:n,templateName:i})}return e}function yT(t){let e=t.toLowerCase();return e==="svg"?g1:e==="math"?TS:null}function wT(t,e){let i=t[ne],n=bt;return t[n]=e,Bs(i,n,2,"#host",null)}function bT(t,e,i,n,r,o,s){let a=r[ne];CT(n,t,e,s);let l=null;e!==null&&(l=sp(e,r[mo]));let c=o.rendererFactory.createRenderer(e,i),u=16;i.signals?u=4096:i.onPush&&(u=64);let d=Ic(r,Cw(i),null,u,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&ef(a,t,n.length-1),Mc(r,d),r[t.index]=d}function CT(t,e,i,n){for(let r of t)e.mergedAttrs=ws(e.mergedAttrs,r.hostAttrs);e.mergedAttrs!==null&&(tc(e,e.mergedAttrs,!0),i!==null&&gw(n,i,e))}function _T(t,e,i,n,r,o){let s=jt(),a=r[ne],l=pn(s,r);_w(a,r,s,i,null,n);for(let u=0;u<i.length;u++){let d=s.directiveStart+u,g=wr(r,a,d,s);Ai(g,r)}Dw(a,r,s),l&&Ai(l,r);let c=wr(r,a,s.directiveStart+s.componentOffset,s);if(t[St]=r[St]=c,o!==null)for(let u of o)u(c,e);return hp(a,s,r),c}function DT(t,e,i,n){if(n)Rh(t,i,["ng-version","17.3.11"]);else{let{attrs:r,classes:o}=lS(e.selectors[0]);r&&Rh(t,i,r),o&&o.length>0&&mw(t,i,o.join(" "))}}function ET(t,e,i){let n=t.projection=[];for(let r=0;r<e.length;r++){let o=i[r];n.push(o!=null?Array.from(o):null)}}function xT(){let t=jt();bc(X()[ne],t)}function ST(){let t=jt();return jw(t,X())}function Sy(t){return t[Wl]}function Ch(t){return t[Wl]||(t[Wl]=[])}function jw(t,e){let i,n=e[t.index];return ui(n)?i=n:(i=Ew(n,e,null,t),e[t.index]=i,Mc(e,i)),MT(i,e,t,n),new Vw(i,t,e)}function TT(t,e){let i=t[Ge],n=i.createComment(""),r=pn(e,t),o=up(i,r);return Jl(i,o,n,dI(i,r),!1),n}function NT(t,e,i){return AT(t,e,i)}function RT(t,e,i,n){if(t[gr])return;let r;i.type&8?r=Un(n):r=TT(e,i),t[gr]=r}function kT(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function OT(t,e){return t.type&11?Co(t,e):t.type&4?bp(t,e):null}function FT(t,e,i,n){return i===-1?OT(e,t):i===-2?PT(t,e,n):wr(t,t[ne],i,e)}function PT(t,e,i){if(i===ke)return Co(e,t);if(i===xn)return bp(e,t);if(i===Mn)return jw(e,t)}function $w(t,e,i,n){let r=e[ri].queries[n];if(r.matches===null){let o=t.data,s=i.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let u=o[c];a.push(FT(e,u,s[l+1],i.metadata.read))}}r.matches=a}return r.matches}function pf(t,e,i,n){let r=t.queries.getByIndex(i),o=r.matches;if(o!==null){let s=$w(t,e,r,i);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)n.push(s[a/2]);else{let c=o[a+1],u=e[-l];for(let d=It;d<u.length;d++){let g=u[d];g[Ls]===g[wt]&&pf(g[ne],g,c,n)}if(u[go]!==null){let d=u[go];for(let g=0;g<d.length;g++){let v=d[g];pf(v[ne],v,c,n)}}}}}return n}function LT(t,e){return t[ri].queries[e].queryList}function VT(t,e,i){let n=new Uh((i&4)===4);return SI(t,e,n,n.destroy),(e[ri]??=new uf).queries.push(new cf(n))-1}function jT(t,e,i){let n=Xe();return n.firstCreatePass&&(BT(n,new df(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),VT(n,X(),e)}function $T(t){return t.split(",").map(e=>e.trim())}function BT(t,e,i){t.queries===null&&(t.queries=new hf),t.queries.track(new ff(e,i))}function _p(t,e){return t.queries.getByIndex(e)}function HT(t,e){let i=t[ne],n=_p(i,e);return n.crossesNgTemplate?pf(i,t,e,[]):$w(i,t,n,e)}function UT(t){return typeof t=="function"&&t[Pn]!==void 0}function Hs(t,e){Gn("NgSignals");let i=R0(t),n=i[Pn];return e?.equal&&(n.equal=e.equal),i.set=r=>yd(n,r),i.update=r=>k0(n,r),i.asReadonly=qT.bind(i),i}function qT(){let t=this[Pn];if(t.readonlyFn===void 0){let e=()=>this();e[Pn]=t,t.readonlyFn=e}return t.readonlyFn}function Bw(t){return UT(t)&&typeof t.set=="function"}function zT(t){return Object.getPrototypeOf(t.prototype).constructor}function Wt(t){let e=zT(t.type),i=!0,n=[t];for(;e;){let r;if(oi(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new R(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let s=t;s.inputs=Ol(t.inputs),s.inputTransforms=Ol(t.inputTransforms),s.declaredInputs=Ol(t.declaredInputs),s.outputs=Ol(t.outputs);let a=r.hostBindings;a&&KT(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&QT(t,l),c&&ZT(t,c),GT(t,r),Tx(t.outputs,r.outputs),oi(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Wt&&(i=!1)}}e=Object.getPrototypeOf(e)}WT(n)}function GT(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.input
vendor: 11,528 bytes, line 7
7s.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=e.inputTransforms[r]}}}function WT(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=ws(r.hostAttrs,i=ws(i,r.hostAttrs))}}function Ol(t){return t===ho?{}:t===qt?[]:t}function QT(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function ZT(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,o)=>{e(n,r,o),i(n,r,o)}:t.contentQueries=e}function KT(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function Dp(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}function Ep(t,e,i=null){return new ic({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function Hw(t){return JT(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function YT(t,e){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{let i=t[Symbol.iterator](),n;for(;!(n=i.next()).done;)e(n.value)}}function JT(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Us(t,e,i){return t[e]=i}function Uw(t,e){return t[e]}function Gt(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function ks(t,e,i,n){let r=Gt(t,e,i);return Gt(t,e+1,n)||r}function qw(t,e,i,n,r){let o=ks(t,e,i,n);return Gt(t,e+2,r)||o}function zw(t,e,i,n,r,o){let s=ks(t,e,i,n);return ks(t,e+2,r,o)||s}function XT(t){return(t.flags&32)===32}function eM(t,e,i,n,r,o,s,a,l){let c=e.consts,u=Bs(e,t,4,s||null,vo(c,a));gp(e,i,u,vo(c,l)),bc(e,u);let d=u.tView=mp(2,u,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}function I(t,e,i,n,r,o,s,a){let l=X(),c=Xe(),u=t+bt,d=c.firstCreatePass?eM(u,c,l,e,i,n,r,o,s):c.data[u];Dr(d,!1);let g=tM(c,l,d,t);yc()&&xc(c,l,g,d),Ai(g,l);let v=Ew(g,l,g,d);return l[u]=v,Mc(l,v),NT(v,d,l),gc(d)&&fp(c,l,d),s!=null&&pp(l,d,a),I}function nM(t,e,i,n){return wc(!0),e[Ge].createComment("")}function V(t,e,i,n){let r=X(),o=Er();if(Gt(r,o,e)){let s=Xe(),a=js();BI(a,r,t,e,i,n)}return V}function Gw(t,e,i,n){return Gt(t,Er(),i)?e+Ut(i)+n:Ct}function iM(t,e,i,n,r,o){let s=Kf(),a=ks(t,s,i,r);return Vs(2),a?e+Ut(i)+n+Ut(r)+o:Ct}function rM(t,e,i,n,r,o,s,a){let l=Kf(),c=qw(t,l,i,r,s);return Vs(3),c?e+Ut(i)+n+Ut(r)+o+Ut(s)+a:Ct}function oM(t,e,i,n,r,o,s,a,l,c){let u=Kf(),d=zw(t,u,i,r,s,l);return Vs(4),d?e+Ut(i)+n+Ut(r)+o+Ut(s)+a+Ut(l)+c:Ct}function Fl(t,e){return t<<17|e<<2}function Cr(t){return t>>17&32767}function sM(t){return(t&2)==2}function aM(t,e){return t&131071|e<<17}function vf(t){return t|2}function yo(t){return(t&131068)>>2}function _h(t,e){return t&-131069|e<<2}function lM(t){return(t&1)===1}function yf(t){return t|1}function cM(t,e,i,n,r,o){let s=o?e.classBindings:e.styleBindings,a=Cr(s),l=yo(s);t[n]=i;let c=!1,u;if(Array.isArray(i)){let d=i;u=d[1],(u===null||Ps(d,u)>0)&&(c=!0)}else u=i;if(r)if(l!==0){let g=Cr(t[a+1]);t[n+1]=Fl(g,a),g!==0&&(t[g+1]=_h(t[g+1],n)),t[a+1]=aM(t[a+1],n)}else t[n+1]=Fl(a,0),a!==0&&(t[a+1]=_h(t[a+1],n)),a=n;else t[n+1]=Fl(l,0),a===0?a=n:t[l+1]=_h(t[l+1],n),l=n;c&&(t[n+1]=vf(t[n+1])),Iy(t,u,n,!0),Iy(t,u,n,!1),uM(e,u,t,n,o),s=Fl(a,l),o?e.classBindings=s:e.styleBindings=s}function uM(t,e,i,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Ps(o,e)>=0&&(i[n+1]=yf(i[n+1]))}function Iy(t,e,i,n){let r=t[i+1],o=e===null,s=n?Cr(r):yo(r),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];dM(l,e)&&(a=!0,t[s+1]=n?yf(c):vf(c)),s=n?Cr(c):yo(c)}a&&(t[i+1]=n?vf(r):yf(r))}function dM(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Ps(t,e)>=0:!1}function Ww(t){return t.substring(lt.key,lt.keyEnd)}function hM(t){return t.substring(lt.value,lt.valueEnd)}function fM(t){return Kw(t),Qw(t,wo(t,0,lt.textEnd))}function Qw(t,e){let i=lt.textEnd;return i===e?-1:(e=lt.keyEnd=mM(t,lt.key=e,i),wo(t,e,i))}function pM(t){return Kw(t),Zw(t,wo(t,0,lt.textEnd))}function Zw(t,e){let i=lt.textEnd,n=lt.key=wo(t,e,i);return i===n?-1:(n=lt.keyEnd=gM(t,n,i),n=Ty(t,n,i,58),n=lt.value=wo(t,n,i),n=lt.valueEnd=vM(t,n,i),Ty(t,n,i,59))}function Kw(t){lt.key=0,lt.keyEnd=0,lt.value=0,lt.valueEnd=0,lt.textEnd=t.length}function wo(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function mM(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function gM(t,e,i){let n;for(;e<i&&((n=t.charCodeAt(e))===45||n===95||(n&-33)>=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function Ty(t,e,i,n){return e=wo(t,e,i),e<i&&e++,e}function vM(t,e,i){let n=-1,r=-1,o=-1,s=e,a=s;for(;s<i;){let l=t.charCodeAt(s++);if(l===59)return a;l===34||l===39?a=s=My(t,l,s,i):e===s-4&&o===85&&r===82&&n===76&&l===40?a=s=My(t,41,s,i):l>32&&(a=s),o=r,r=n,n=l&-33}return a}function My(t,e,i,n){let r=-1,o=i;for(;o<n;){let s=t.charCodeAt(o++);if(s==e&&r!==92)return o;s==92&&r===92?r=0:r=s}throw new Error}function E(t,e,i){let n=X(),r=Er();if(Gt(n,r,e)){let o=Xe(),s=js();Tc(o,s,n,t,e,n[Ge],i,!1)}return E}function wf(t,e,i,n,r){let o=e.inputs,s=r?"class":"style";vp(t,i,o[s],s,n)}function xr(t,e,i){return Yw(t,e,i,!1),xr}function kc(t,e){return Yw(t,e,null,!0),kc}function qs(t){Jw(tb,yM,t,!1)}function yM(t,e){for(let i=pM(e);i>=0;i=Zw(e,i))tb(t,Ww(e),hM(e))}function mi(t){Jw(xM,wM,t,!0)}function wM(t,e){for(let i=fM(e);i>=0;i=Qw(e,i))dc(t,Ww(e),!0)}function Yw(t,e,i,n){let r=X(),o=Xe(),s=Vs(2);if(o.firstUpdatePass&&eb(o,t,s,n),e!==Ct&&Gt(r,s,e)){let a=o.data[In()];nb(o,a,r,r[Ge],t,r[s+1]=IM(e,i),n,s)}}function Jw(t,e,i,n){let r=Xe(),o=Vs(2);r.firstUpdatePass&&eb(r,null,o,n);let s=X();if(i!==Ct&&Gt(s,o,i)){let a=r.data[In()];if(ib(a,n)&&!Xw(r,o)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=Th(l,i||"")),wf(r,a,s,i,n)}else SM(r,a,s,s[Ge],s[o+1],s[o+1]=EM(t,e,i),n,o)}}function Xw(t,e){return e>=t.expandoStartIndex}function eb(t,e,i,n){let r=t.data;if(r[i+1]===null){let o=r[In()],s=Xw(t,i);ib(o,n)&&e===null&&!s&&(e=!1),e=bM(r,o,e,n),cM(r,o,e,i,s,n)}}function bM(t,e,i,n){let r=D1(t),o=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Dh(null,t,e,i,n),i=Os(i,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==r)if(i=Dh(r,t,e,i,n),o===null){let l=CM(t,e,n);l!==void 0&&Array.isArray(l)&&(l=Dh(null,t,e,l[1],n),l=Os(l,e.attrs,n),_M(t,e,n,l))}else o=DM(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),i}function CM(t,e,i){let n=i?e.classBindings:e.styleBindings;if(yo(n)!==0)return t[Cr(n)]}function _M(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[Cr(r)]=n}function DM(t,e,i){let n,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;n=Os(n,s,i)}return Os(n,e.attrs,i)}function Dh(t,e,i,n,r){let o=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(o=e[a],n=Os(n,o.hostAttrs,r),o!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function Os(t,e,i){let n=i?1:2,r=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?r=s:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),dc(t,s,i?!0:e[++o]))}return t===void 0?null:t}function EM(t,e,i){if(i==null||i==="")return qt;let n=[],r=nn(i);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(n,o,r[o]);else typeof r=="string"&&e(n,r);return n}function tb(t,e,i){dc(t,e,nn(i))}function xM(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&dc(t,n,i)}function SM(t,e,i,n,r,o,s,a){r===Ct&&(r=qt);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;u!==null||d!==null;){let g=l<r.length?r[l+1]:void 0,v=c<o.length?o[c+1]:void 0,w=null,D;u===d?(l+=2,c+=2,g!==v&&(w=d,D=v)):d===null||u!==null&&u<d?(l+=2,w=u):(c+=2,w=d,D=v),w!==null&&nb(t,e,i,n,w,D,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}function nb(t,e,i,n,r,o,s,a){if(!(e.type&3))return;let l=t.data,c=l[a+1],u=lM(c)?Ay(l,e,i,r,yo(c),s):void 0;if(!rc(u)){rc(o)||sM(c)&&(o=Ay(l,null,i,r,a,s));let d=v1(In(),i);yI(n,s,d,r,o)}}function Ay(t,e,i,n,r,o){let s=e===null,a;for(;r>0;){let l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=u===null,g=i[r+1];g===Ct&&(g=d?qt:void 0);let v=d?fh(g,n):u===n?g:void 0;if(c&&!rc(v)&&(v=fh(l,n)),rc(v)&&(a=v,s))return a;let w=t[r+1];r=s?Cr(w):yo(w)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=fh(l,n))}return a}function rc(t){return t!==void 0}function IM(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Ft(nn(t)))),t}function ib(t,e){return(t.flags&(e?8:16))!==0}function Eh(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function TM(t,e,i){let n,r,o=0,s=t.length-1;if(Array.isArray(e)){let a=e.length-1;for(;o<=s&&o<=a;){let l=t.at(o),c=e[o],u=Eh(o,l,o,c,i);if(u!==0){u<0&&t.updateValue(o,c),o++;continue}let d=t.at(s),g=e[a],v=Eh(s,d,a,g,i);if(v!==0){v<0&&t.updateValue(s,g),s--,a--;continue}let w=i(o,l),D=i(s,d),S=i(o,c);if(Object.is(S,D)){let O=i(a,g);Object.is(O,w)?(t.swap(o,s),t.updateValue(s,g),a--,s--):t.move(s,o),t.updateValue(o,c),o++;continue}if(n??=new oc,r??=Ry(t,o,s,i),Cf(t,n,o,S))t.updateValue(o,c),o++,s++;else if(r.has(S))n.set(w,t.detach(o)),s--;else{let O=t.create(o,e[o]);t.attach(o,O),o++,s++}}for(;o<=a;)Ny(t,n,i,o,e[o]),o++}else if(e!=null){let a=e[Symbol.iterator](),l=a.next();for(;!l.done&&o<=s;){let c=t.at(o),u=l.value,d=Eh(o,c,o,u,i);if(d!==0)d<0&&t.updateValue(o,u),o++,l=a.next();else{n??=new oc,r??=Ry(t,o,s,i);let g=i(o,u);if(Cf(t,n,o,g))t.updateValue(o,u),o++,s++,l=a.next();else if(!r.has(g))t.attach(o,t.create(o,u)),o++,s++,l=a.next();else{let v=i(o,c);n.set(v,t.detach(o)),s--}}}for(;!l.done;)Ny(t,n,i,t.length,l.value),l=a.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(a=>{t.destroy(a)})}function Cf(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function Ny(t,e,i,n,r){if(Cf(t,e,n,i(n,r)))t.updateValue(n,r);else{let o=t.create(n,r);t.attach(n,o)}}function Ry(t,e,i,n){let r=new Set;for(let o=e;o<=i;o++)r.add(n(o,t.at(o)));return r}function j(t,e,i){Gn("NgControlFlow");let n=X(),r=Er(),o=xf(n,bt+t),s=0;if(Gt(n,r,e)){let a=pe(null);try{if(Aw(o,s),e!==-1){let l=Sf(n[ne],bt+e),c=Ms(o,l.tView.ssrId),u=Nc(n,l,i,{dehydratedView:c});Rc(o,u,s,Ts(l,c))}}finally{pe(a)}}else{let a=Mw(o,s);a!==void 0&&(a[St]=i)}}function pt(t,e){return e}function Oe(t,e,i,n,r,o,s,a,l,c,u,d,g){Gn("NgControlFlow");let v=l!==void 0,w=X(),D=a?s.bind(w[En][St]):s,S=new Df(v,D);w[bt+t]=S,I(t+1,e,i,n,r,o),v&&I(t+2,l,c,u,d,g)}function Fe(t){let e=pe(null),i=In();try{let n=X(),r=n[ne],o=n[i];if(o.liveCollection===void 0){let a=i+1,l=xf(n,a),c=Sf(r,a);o.liveCollection=new Ef(l,n,c)}else o.liveCollection.reset();let s=o.liveCollection;if(TM(s,t,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){let a=Er(),l=s.length===0;if(Gt(n,a,l)){let c=i+2,u=xf(n,c);if(l){let d=Sf(r,c),g=Ms(u,d.tView.ssrId),v=Nc(n,d,void 0,{dehydratedView:g});Rc(u,v,0,Ts(d,g))}else Aw(u,0)}}}finally{pe(e)}}function xf(t,e){return t[e]}function MM(t,e){return Is(t,e)}function AM(t,e){return Mw(t,e)}function Sf(t,e){return Gf(t,e)}function NM(t,e,i,n,r,o){let s=e.consts,a=vo(s,r),l=Bs(e,t,2,n,a);return gp(e,i,l,vo(s,o)),l.attrs!==null&&tc(l,l.attrs,!1),l.mergedAttrs!==null&&tc(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}
7function h(t,e,i,n){let r=X(),o=Xe(),s=bt+t,a=r[Ge],l=o.firstCreatePass?NM(s,o,r,e,i,n):o.data[s],c=RM(o,r,l,a,e,t);r[s]=c;let u=gc(l);return Dr(l,!0),gw(a,c,l),!XT(l)&&yc()&&xc(o,r,c,l),LS()===0&&Ai(c,r),VS(),u&&(fp(o,r,l),hp(o,l,r)),n!==null&&pp(r,l),h}function p(){let t=jt();Zf()?_1():(t=t.parent,Dr(t,!1));let e=t;BS(e)&&HS(),jS();let i=Xe();return i.firstCreatePass&&(bc(i,t),zf(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&n2(e)&&wf(i,e,X(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&i2(e)&&wf(i,e,X(),e.stylesWithoutHost,!1),p}function x(t,e,i,n){return h(t,e,i,n),p(),x}function kM(t,e,i,n,r){let o=e.consts,s=vo(o,n),a=Bs(e,t,8,"ng-container",s);s!==null&&tc(a,s,!0);let l=vo(o,r);return gp(e,i,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function Li(t,e,i){let n=X(),r=Xe(),o=t+bt,s=r.firstCreatePass?kM(o,r,n,e,i):r.data[o];Dr(s,!0);let a=OM(r,n,s,t);return n[o]=a,yc()&&xc(r,n,a,s),Ai(a,n),gc(s)&&(fp(r,n,s),hp(r,s,n)),i!=null&&pp(n,s),Li}function Vi(){let t=jt(),e=Xe();return Zf()?_1():(t=t.parent,Dr(t,!1)),e.firstCreatePass&&(bc(e,t),zf(t)&&e.queries.elementEnd(t)),Vi}function U(){return X()}function xp(t,e,i){let n=X(),r=Er();if(Gt(n,r,e)){let o=Xe(),s=js(),a=D1(o.data),l=zI(a,s,n);Tc(o,s,n,t,e,l,i,!0)}return xp}function PM(t){typeof t=="string"&&(FM=t.toLowerCase().replace(/_/g,"-"))}function A(t,e,i,n){let r=X(),o=Xe(),s=jt();return rb(o,r,r[Ge],s,t,e,n),A}function LM(t,e,i,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===i&&r[o+1]===n){let a=e[_s],l=r[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function rb(t,e,i,n,r,o,s){let a=gc(n),c=t.firstCreatePass&&Iw(t),u=e[St],d=Sw(e),g=!0;if(n.type&3||s){let D=pn(n,e),S=s?s(D):D,O=d.length,K=s?se=>s(Un(se[n.index])):n.index,be=null;if(!s&&a&&(be=LM(t,e,r,n.index)),be!==null){let se=be.__ngLastListenerFn__||be;se.__ngNextListenerFn__=o,be.__ngLastListenerFn__=o,g=!1}else{o=Oy(n,e,u,o,!1);let se=i.listen(S,r,o);d.push(o,se),c&&c.push(r,K,O,O+1)}}else o=Oy(n,e,u,o,!1);let v=n.outputs,w;if(g&&v!==null&&(w=v[r])){let D=w.length;if(D)for(let S=0;S<D;S+=2){let O=w[S],K=w[S+1],vt=e[O][K].subscribe(o),je=d.length;d.push(o,vt),c&&c.push(r,n.index,je,-(je+1))}}}function ky(t,e,i,n){let r=pe(null);try{return $n(6,e,i),i(n)!==!1}catch(o){return Tw(t,o),!1}finally{$n(7,e,i),pe(r)}}function Oy(t,e,i,n,r){return function o(s){if(s===Function)return n;let a=t.componentOffset>-1?Ri(t.index,e):e;wp(a);let l=ky(e,i,n,s),c=o.__ngNextListenerFn__;for(;c;)l=ky(e,i,c,s)&&l,c=c.__ngNextListenerFn__;return r&&l===!1&&s.preventDefault(),l}}function m(t=1){return KS(t)}function Oc(t,e,i){return ob(t,"",e,"",i),Oc}function ob(t,e,i,n,r){let o=X(),s=Gw(o,e,i,n);if(s!==Ct){let a=Xe(),l=js();Tc(a,l,o,t,s,o[Ge],r,!1)}return ob}function et(t,e,i){jT(t,e,i)}function Ze(t){let e=X(),i=Xe(),n=E1();Yf(n+1);let r=_p(i,n);if(t.dirty&&RS(e)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=HT(e,n);t.reset(o,g2),t.notifyOnChanges()}return!0}return!1}function Ke(){return LT(X(),E1())}function VM(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function sb(t){let e=qS();return vc(e,bt+t)}function C(t,e=""){let i=X(),n=Xe(),r=t+bt,o=n.firstCreatePass?Bs(n,r,1,e,null):n.data[r],s=jM(n,i,o,e,t);i[r]=s,yc()&&xc(n,i,s,o),Dr(o,!1)}function N(t){return ie("",t,""),N}function ie(t,e,i){let n=X(),r=Gw(n,t,e,i);return r!==Ct&&Ac(n,In(),r),ie}function Sp(t,e,i,n,r){let o=X(),s=iM(o,t,e,i,n,r);return s!==Ct&&Ac(o,In(),s),Sp}function Ip(t,e,i,n,r,o,s){let a=X(),l=rM(a,t,e,i,n,r,o,s);return l!==Ct&&Ac(a,In(),l),Ip}function Tp(t,e,i,n,r,o,s,a,l){let c=X(),u=oM(c,t,e,i,n,r,o,s,a,l);return u!==Ct&&Ac(c,In(),u),Tp}function Do(t,e,i){Bw(e)&&(e=e());let n=X(),r=Er();if(Gt(n,r,e)){let o=Xe(),s=js();Tc(o,s,n,t,e,n[Ge],i,!1)}return Do}function zs(t,e){let i=Bw(t);return i&&t.set(e),i}function Eo(t,e){let i=X(),n=Xe(),r=jt();return rb(n,i,i[Ge],r,t,e),Eo}function $M(t,e,i){let n=Xe();if(n.firstCreatePass){let r=oi(t);If(i,n.data,n.blueprint,r,!0),If(e,n.data,n.blueprint,r,!1)}}function If(t,e,i,n,r){if(t=Ot(t),Array.isArray(t))for(let o=0;o<t.length;
vendor: 4,688 bytes, line 7
7o++)If(t[o],e,i,n,r);else{let o=Xe(),s=X(),a=jt(),l=po(t)?t:Ot(t.provide),c=c1(t),u=a.providerIndexes&1048575,d=a.directiveStart,g=a.providerIndexes>>20;if(po(t)||!t.multi){let v=new yr(c,r,b),w=Sh(l,e,r?u:u+g,d);w===-1?(jh(Yl(a,s),o,l),xh(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(v),s.push(v)):(i[w]=v,s[w]=v)}else{let v=Sh(l,e,u+g,d),w=Sh(l,e,u,u+g),D=v>=0&&i[v],S=w>=0&&i[w];if(r&&!S||!r&&!D){jh(Yl(a,s),o,l);let O=UM(r?HM:BM,i.length,r,n,c);!r&&S&&(i[w].providerFactory=O),xh(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(O),s.push(O)}else{let O=ab(i[r?w:v],c,!r&&n);xh(o,t,v>-1?v:w,O)}!r&&n&&S&&i[w].componentProviders++}}}function xh(t,e,i,n){let r=po(e),o=gS(e);if(r||o){let l=(o?Ot(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=c.indexOf(i);u===-1?c.push(i,[n,l]):c[u+1].push(n,l)}else c.push(i,l)}}}function ab(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Sh(t,e,i,n){for(let r=i;r<n;r++)if(e[r]===t)return r;return-1}function BM(t,e,i,n){return Tf(this.multi,[])}function HM(t,e,i,n){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=wr(i,i[ne],this.providerFactory.index,n);o=a.slice(0,s),Tf(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Tf(r,o);return o}function Tf(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function UM(t,e,i,n,r){let o=new yr(t,i,b);return o.multi=[],o.index=e,o.componentProviders=0,ab(o,r,n&&!i),o}function Qt(t,e=[]){return i=>{i.providersResolver=(n,r)=>$M(n,r?r(t):t,e)}}function H(t){Gn("NgStandalone"),t.getStandaloneInjector=e=>e.get(qM).getOrCreateStandaloneInjector(t)}function gi(t,e,i){let n=ki()+t,r=X();return r[n]===Ct?Us(r,n,i?e.call(i):e()):Uw(r,n)}function Ae(t,e,i,n){return cb(X(),ki(),t,e,i,n)}function Tt(t,e,i,n,r){return ub(X(),ki(),t,e,i,n,r)}function lb(t,e,i,n,r,o){return db(X(),ki(),t,e,i,n,r,o)}function Fc(t,e,i,n,r,o,s,a){let l=ki()+t,c=X(),u=zw(c,l,i,n,r,o);return Gt(c,l+4,s)||u?Us(c,l+5,a?e.call(a,i,n,r,o,s):e(i,n,r,o,s)):Uw(c,l+5)}function Mp(t,e){let i=t[e];return i===Ct?void 0:i}function cb(t,e,i,n,r,o){let s=e+i;return Gt(t,s,r)?Us(t,s+1,o?n.call(o,r):n(r)):Mp(t,s+1)}function ub(t,e,i,n,r,o,s){let a=e+i;return ks(t,a,r,o)?Us(t,a+2,s?n.call(s,r,o):n(r,o)):Mp(t,a+2)}function db(t,e,i,n,r,o,s,a){let l=e+i;return qw(t,l,r,o,s)?Us(t,l+3,a?n.call(a,r,o,s):n(r,o,s)):Mp(t,l+3)}function An(t,e){let i=Xe(),n,r=t+bt;i.firstCreatePass?(n=zM(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let o=n.factory||(n.factory=fr(n.type,!0)),s,a=Ht(b);try{let l=Kl(!1),c=o();return Kl(l),VM(i,X(),r,c),c}finally{Ht(a)}}function zM(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Gs(t,e,i){let n=t+bt,r=X(),o=vc(r,n);return Ap(r,n)?cb(r,ki(),e,o.transform,i,o):o.transform(i)}function Pc(t,e,i,n){let r=t+bt,o=X(),s=vc(o,r);return Ap(o,r)?ub(o,ki(),e,s.transform,i,n,s):s.transform(i,n)}function hb(t,e,i,n,r){let o=t+bt,s=X(),a=vc(s,o);return Ap(s,o)?db(s,ki(),e,a.transform,i,n,r,a):a.transform(i,n,r)}function Ap(t,e){return t[ne].data[e].pure}function ji(t){return!!t&&typeof t.then=="function"}function Np(t){return!!t&&typeof t.subscribe=="function"}function GM(){N0(()=>{throw new R(600,!1)})}function WM(t){return t.isBoundToModule}function QM(t,e,i){try{let n=i();return ji(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function Ih(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function ZM(t,e,i){!e&&!Mf(t)||KM(t,i,e)}function Mf(t){return Qf(t)}function KM(t,e,i){let n;i?(n=0,t[J]|=1024):t[J]&64?n=0:n=1,kw(t,e,n)}function JM(t){return[{provide:Ee,useFactory:t},{provide:fo,multi:!0,useFactory:()=>{let e=T(YM,{optional:!0});return()=>e.initialize()}},{provide:fo,multi:!0,useFactory:()=>{let e=T(nA);return()=>{e.initialize()}}},{provide:H1,useFactory:XM}]}function XM(){let t=T(Ee),e=T(qn);return i=>t.runOutsideAngular(()=>e.handleError(i))}function eA(t){let e=JM(()=>new Ee(tA(t)));return Vt([[],e])}function tA(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function iA(){return typeof $localize<"u"&&$localize.locale||sc}function rA(t=[],e){return ft.create({name:e,providers:[{provide:hc,useValue:"platform"},{provide:mb,useValue:new Set([()=>Hl=null])},...t]})}function oA(t=[]){if(Hl)return Hl;let e=rA(t);return Hl=e,GM(),sA(e),e}function sA(t){t.get(ip,null)?.forEach(i=>
7i())}function jc(){return!1}function aA(t){return lA(jt(),X(),(t&16)===16)}function lA(t,e,i){if(mc(t)&&!i){let n=Ri(t.index,e);return new br(n,n)}else if(t.type&47){let n=e[En];return new br(n,e)}return null}function Fy(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+e+r}function Py(){return new Op([new Nf])}function gb(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,r=oA(n),o=[eA(),...i||[]],a=new ic({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(Ee);return l.run(()=>{a.resolveInjectorInitializers();let c=a.get(qn,null),u;l.runOutsideAngular(()=>{u=l.onError.subscribe({next:v=>{c.handleError(v)}})});let d=()=>a.destroy(),g=r.get(mb);return g.add(d),a.onDestroy(()=>{u.unsubscribe(),g.delete(d)}),QM(c,l,()=>{let v=a.get(pb);return v.runInitializers(),v.donePromise.then(()=>{let w=a.get(kp,sc);PM(w||sc);let D=a.get(Zt);return e!==void 0&&D.bootstrap(e),D})})})}catch(e){return Promise.reject(e)}}function $i(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Fp(t,e){Gn("NgSignals");let i=T0(t);return e?.equal&&(i[Pn].equal=e.equal),i}function xo(t){let e=pe(null);try{return t()}finally{pe(e)}}function Qs(t,e){Gn("NgSignals"),!e?.injector&&fc(Qs);let i=e?.injector??T(ft),n=e?.manualCleanup!==!0?i.get(Oi):null,r=new Pf(i.get(uA),t,typeof Zone>"u"?null:Zone.current,n,i,e?.allowSignalWrites??!1),o=i.get(Dt,null,{optional:!0});return!o||!(o._lView[J]&8)?r.watcher.notify():(o._lView[Ll]??=[]).push(r.watcher.notify),r}var Ly,R,Al,ii,Mx,By,Yv,Hy,Nx,$,Rx,kx,Ox,Fx,Ul,vs,Jv,fe,Mh,Vx,ys,Ah,ql,jx,$x,Bx,Xv,co,Vf,Wy,ho,qt,fo,Zy,Ky,Gl,Yy,Hn,Te,Xy,fS,hc,Pl,vS,ph,zt,bs,zn,ne,J,wt,_n,Sn,Cs,_s,St,mo,Dn,Ge,Ds,ry,bo,En,Ls,ao,ri,pc,d1,Mi,Ll,mr,bt,Uf,gr,Wl,go,It,qf,Es,p1,oy,$n,g1,TS,MS,ae,M1,A1,uo,yr,Vh,o2,k1,O1,s2,Bn,hr,ft,f2,qn,H1,Oi,Bh,ke,Hh,_e,Uh,q1,y2,uy,qh,np,_2,ip,di,rp,op,D2,E2,x2,K1,S2,Nl,Rl,si,zh,Gh,Wh,Qh,Zh,Kh,Yh,N2,iw,rw,ow,R2,k2,O2,fy,sw,F2,P2,L2,V2,Jh,H2,U2,kl,rn,W2,Q2,Z2,ai,Y2,pI,yy,Ct,xI,Nw,XI,Rw,br,xn,oT,sT,bj,lT,As,rf,ec,uT,of,pi,li,_t,hT,bh,Cy,Ee,pT,Lw,nc,af,Ns,lf,Mn,IT,Vw,MT,AT,cf,uf,df,hf,ff,Ni,Rs,mf,gf,ic,Pi,tM,lt,bf,oc,_f,Df,Ef,RM,OM,sc,FM,jM,qM,Lc,fb,Ws,pb,Vc,Zt,Af,Rp,YM,nA,kp,mb,Hl,Dt,Nf,cA,Rf,kf,Of,ac,Op,uA,dA,Ff,Pf,L=y(()=>{"use strict";P0();rt();Ii();Ly="https://g.co/ng/security#xss",R=class extends Error{constructor(e,i){super(lc(e,i)),this.code=e}};Al="__parameters__";ii=globalThis;Mx=Re({__forward_ref__:Re});By=Re({\u0275prov:Re}),Yv=Re({\u0275inj:Re}),Hy=Re({ngInjectableDef:Re}),Nx=Re({ngInjectorDef:Re}),$=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=k({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};Rx=Re({\u0275cmp:Re}),kx=Re({\u0275dir:Re}),Ox=Re({\u0275pipe:Re}),Fx=Re({\u0275mod:Re}),Ul=Re({\u0275fac:Re}),vs=Re({__NG_ELEMENT_ID__:Re}),Jv=Re({__NG_ENV_ID__:Re});fe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fe||{});Vx={},ys=Vx,Ah="__NG_DI_FLAG__",ql="ngTempTokenPath",jx="ngTokenPath",$x=/\n/gm,Bx="\u0275",Xv="__source";Vf=Gy(Vy("Optional"),8),Wy=Gy(Vy("SkipSelf"),4);ho={},qt=[],fo=new $(""),Zy=new $("",-1),Ky=new $(""),Gl=class{get(e,i=ys){if(i===ys){let n=new Error(`NullInjectorError: No provider for ${Ft(e)}!`);throw n.name="NullInjectorError",n}return i}},Yy=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Yy||{}),Hn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Hn||{}),Te=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(Te||{});Xy="ng-template";fS=Re({provide:String,useValue:Re});hc=new $(""),Pl={},vS={};zt=class{},bs=class extends zt{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fh(e,s=>this.processProvider(s)),this.records.set(Zy,so(void 0,this)),r.has("environment")&&this.records.set(zt,so(void 0,this));let o=this.records.get(hc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ky,qt,fe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=pe(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),pe(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=Ti(this),n=Ht(void 0),r;try{return e()}finally{Ti(i),Ht(n)}}get(e,i=ys,n=fe.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Jv))return e[Jv](this);n=uc(n);let r,o=Ti(this),s=Ht(void 0);try{if(!(n&fe.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=_S(e)&&cc(e);c&&this.injectableDefInScope(c)?l=so(Oh(e),Pl):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&fe.Self?Hf():this.parent;return i=n&fe.Optional&&i===ys?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[ql]=a[ql]||[]).unshift(Ft(e)),o)throw a;return zx(a,e,"R3InjectorError",this.source)}else throw a}finally{Ht(s),Ti(o)}}
7resolveInjectorInitializers(){let e=pe(null),i=Ti(this),n=Ht(void 0),r;try{let o=this.get(fo,qt,fe.Self);for(let s of o)s()}finally{Ti(i),Ht(n),pe(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(Ft(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new R(205,!1)}processProvider(e){e=Ot(e);let i=po(e)?e:Ot(e&&e.provide),n=wS(e);if(!po(e)&&e.multi===!0){let r=this.records.get(i);r||(r=so(void 0,Pl,!0),r.factory=()=>Nh(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=pe(null);try{return i.value===Pl&&(i.value=vS,i.value=i.factory()),typeof i.value=="object"&&i.value&&CS(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{pe(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=Ot(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};zn=0,ne=1,J=2,wt=3,_n=4,Sn=5,Cs=6,_s=7,St=8,mo=9,Dn=10,Ge=11,Ds=12,ry=13,bo=14,En=15,Ls=16,ao=17,ri=18,pc=19,d1=20,Mi=21,Ll=22,mr=23,bt=25,Uf=1,gr=7,Wl=8,go=9,It=10,qf=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(qf||{});Es=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};ot.ngInherit=!0;p1="__ngSimpleChanges__";oy=null,$n=function(t,e,i){oy?.(t,e,i)},g1="svg",TS="math",MS=!1;ae={lFrame:I1(null),bindingsEnabled:!0,skipHydrationRootTNode:null};M1=T1;A1=!0;uo=-1,yr=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};Vh=!0;o2=256,k1=o2-1,O1=5,s2=0,Bn={};hr=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return V1(this._tNode,this._lView,e,uc(n),i)}};ft=(()=>{let e=class e{static create(n,r){if(Array.isArray(n))return cy({name:""},r,n,"");{let o=n.name??"";return cy({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=ys,e.NULL=new Gl,e.\u0275prov=k({token:e,providedIn:"any",factory:()=>M(Zy)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();f2="ngOriginalError";qn=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&vh(e);for(;i&&vh(i);)i=vh(i);return i||null}},H1=new $("",{providedIn:"root",factory:()=>T(qn).handleError.bind(void 0)}),Oi=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=p2,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Bh=class extends Oi{constructor(e){super(),this._lView=e}onDestroy(e){return w1(this._lView,e),()=>PS(this._lView,e)}};ke=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=m2;let t=e;return t})();Hh=class extends ge{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,u1()&&(this.destroyRef=T(Oi,{optional:!0})??void 0)}emit(e){let i=pe(null);try{super.next(e)}finally{pe(i)}}subscribe(e,i,n){let r=e,o=i||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=yh(o),r&&(r=yh(r)),s&&(s=yh(s)));let a=super.subscribe({next:r,error:o,complete:s});return e instanceof Ve&&e.add(a),a}};_e=Hh;Uh=class t{get changes(){return this._changes??=new _e}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=v2)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=Qx(e);(this._changesDetected=!Wx(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};q1=new Map,y2=0;uy="__ngContext__";np=new $("",{providedIn:"root",factory:()=>_2}),_2="ng",ip=new $(""),di=new $("",{providedIn:"platform",factory:()=>"unknown"}),rp=new $(""),op=new $("",{providedIn:"root",factory:()=>Z1().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),D2="h",E2="b",x2=()=>null;K1=!1,S2=new $("",{providedIn:"root",factory:()=>K1});si=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ly})`}},zh=class extends si{getTypeName(){return"HTML"}},Gh=class extends si{getTypeName(){return"Style"}}
7,Wh=class extends si{getTypeName(){return"Script"}},Qh=class extends si{getTypeName(){return"URL"}},Zh=class extends si{getTypeName(){return"ResourceURL"}};Kh=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(Cc(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},Yh=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=Cc(e),i}};N2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;iw=fi("area,br,col,hr,img,wbr"),rw=fi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ow=fi("rp,rt"),R2=$s(ow,rw),k2=$s(rw,fi("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")),O2=$s(ow,fi("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")),fy=$s(iw,k2,O2,R2),sw=fi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),F2=fi("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"),P2=fi("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"),L2=$s(sw,F2,P2),V2=fi("script,style,template"),Jh=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,r=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){r.push(i),i=B2(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let o=$2(i);if(o){i=o;break}i=r.pop()}}return this.buf.join("")}startElement(e){let i=py(e).toLowerCase();if(!fy.hasOwnProperty(i))return this.sanitizedSomething=!0,!V2.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),s=o.name,a=s.toLowerCase();if(!L2.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;sw[a]&&(l=_c(l)),this.buf.push(" ",s,'="',my(l),'"')}return this.buf.push(">"),!0}endElement(e){let i=py(e).toLowerCase();fy.hasOwnProperty(i)&&!iw.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(my(e))}};H2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,U2=/([^\#-~ |!])/g;rn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(rn||{});W2=/^>|^->|<!--|-->|--!>|<!-$/g,Q2=/(<|>)/g,Z2="\u200B$1\u200B";ai=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ai||{});pI=fI;Ct={};xI=()=>null;Nw=[];XI=W(_({},rs),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{xs(t.lView)},consumerOnSignalRead(){this.lView[mr]=this}}),Rw=100;br=class{get rootNodes(){let e=this._lView,i=e[ne];return Xl(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[St]}set context(e){this._lView[St]=e}get destroyed(){return(this._lView[J]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[wt];
7if(ui(e)){let i=e[Wl],n=i?i.indexOf(this):-1;n>-1&&(Is(e,n),zl(i,n))}this._attachedToViewContainer=!1}Ec(this._lView[ne],this._lView)}onDestroy(e){w1(this._lView,e)}markForCheck(){wp(this._cdRefInjectingView||this._lView)}detach(){this._lView[J]&=-129}reattach(){Ph(this._lView),this._lView[J]|=128}detectChanges(){this._lView[J]|=1024,kw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new R(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,dw(this._lView[ne],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new R(902,!1);this._appRef=e,Ph(this._lView)}},xn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=aT;let t=e;return t})(),oT=xn,sT=class extends oT{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=Nc(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new br(r)}};bj=new RegExp(`^(\\d+)*(${E2}|${D2})*(.*)`),lT=()=>null;As=class{},rf=class{},ec=class{};uT="ngComponent",of=class{resolveComponentFactory(e){throw cT(e)}},pi=(()=>{let e=class e{};e.NULL=new of;let t=e;return t})(),li=class{},_t=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>dT();let t=e;return t})();hT=(()=>{let e=class e{};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),bh={},Cy=new Set;Ee=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),typeof Zone>"u")throw new R(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=fT().nativeRequestAnimationFrame,gT(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new R(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new R(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,pT,_y,_y);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},pT={};Lw=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();nc=class extends pi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=pr(e);return new Ns(i,this.ngModule)}};af=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=uc(n);let r=this.injector.get(e,bh,n);return r!==bh||i===bh?r:this.parentInjector.get(e,i,n)}},Ns=class extends ec{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=xy(e.inputs);if(i!==null)for(let r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return xy(this.componentDef.outputs)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=aS(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,r){let o=pe(null);try{r=r||this.ngModule;let s=r instanceof zt?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new af(e,s):e,l=a.get(li,null);if(l===null)throw new R(407,!1);let c=a.get(hT,null),u=a.get(Lw,null),d=a.get(As,null),g={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,afterRe
7nderEventManager:u,changeDetectionScheduler:d},v=l.createRenderer(null,this.componentDef),w=this.componentDef.selectors[0][0]||"div",D=n?DI(v,n,this.componentDef.encapsulation,a):uw(v,w,yT(w)),S=512;this.componentDef.signals?S|=4096:this.componentDef.onPush||(S|=16);let O=null;D!==null&&(O=sp(D,a,!0));let K=mp(0,null,null,1,0,null,null,null,null,null,null),be=Ic(null,K,null,S,null,null,g,v,a,null,O);Jf(be);let se,vt;try{let je=this.componentDef,$e,ct=null;je.findHostDirectiveDefs?($e=[],ct=new Map,je.findHostDirectiveDefs(je,$e,ct),$e.push(je)):$e=[je];let Xn=wT(be,D),Ci=bT(Xn,D,je,$e,be,g,v);vt=Gf(K,bt),D&&DT(v,je,D,n),i!==void 0&&ET(vt,this.ngContentSelectors,i),se=_T(Ci,je,$e,ct,be,[xT]),yp(K,be,null)}finally{Xf()}return new lf(this.componentType,se,Co(vt,be),be,vt)}finally{pe(o)}}},lf=class extends rf{constructor(e,i,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new br(r,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,r;if(n!==null&&(r=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let o=this._rootLView;vp(o[ne],o,r,e,i),this.previousInputValues.set(e,i);let s=Ri(this._tNode.index,o);wp(s)}}get injector(){return new hr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};Mn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=ST;let t=e;return t})();IT=Mn,Vw=class extends IT{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return Co(this._hostTNode,this._hostLView)}get injector(){return new hr(this._hostTNode,this._hostLView)}get parentInjector(){let e=ep(this._hostTNode,this._hostLView);if(R1(e)){let i=Zl(e,this._hostLView),n=Ql(e),r=i[ne].data[n+8];return new hr(r,i)}else return new hr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=Sy(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-It}createEmbeddedView(e,i,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let s=Ms(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},o,s);return this.insertImpl(a,r,Ts(this._hostTNode,s)),a}createComponent(e,i,n,r,o){let s=e&&!DS(e),a;if(s)a=i;else{let w=i||{};a=w.index,n=w.injector,r=w.projectableNodes,o=w.environmentInjector||w.ngModuleRef}let l=s?e:new Ns(pr(e)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let D=(s?c:this.parentInjector).get(zt,null);D&&(o=D)}let u=pr(l.componentType??{}),d=Ms(this._lContainer,u?.id??null),g=d?.firstChild??null,v=l.create(c,r,g,o);return this.insertImpl(v.hostView,a,Ts(this._hostTNode,d)),v}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(kS(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=r[wt],c=new Vw(l,l[Sn],l[wt]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(i),s=this._lContainer;return Rc(s,r,o,n),e.attachToViewContainerRef(),Qy(Ch(s),o,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=Sy(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=Is(this._lContainer,i);n&&(zl(Ch(this._lContainer),i),Ec(n[ne],n))}detach(e){let i=this._adjustIndex(e,-1),n=Is(this._lContainer,i);return n&&zl(Ch(this._lContainer),i)!=null?new br(n):null}_adjustIndex(e,i=0){return e??this.length+i}};MT=RT,AT=()=>!1;cf=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},uf=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let o=0;o<n;o++){let s=i.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)_p(e,i).matches!==null&&this.queries[i].setDirty()}},df=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=$T(e):this.predicate=e}},hf=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let r=i!==null?i.length:0,o=this.getByIndex(n).embeddedTView(e,r);o&&(o.indexInDeclarationView=n,i!==null?i.push(o):i=[o])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},ff=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}
vendor: 4,210 bytes, line 7
7matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(e,i,kT(i,o)),this.matchTNodeWithReadOption(e,i,$l(i,e,o,!1,!1))}else n===xn?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,$l(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===ke||r===Mn||r===xn&&i.type&4)this.addMatch(i.index,-2);else{let o=$l(i,e,r,!1,!1);o!==null&&this.addMatch(i.index,o)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};Ni=class{},Rs=class{},mf=class extends Ni{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nc(this);let r=i1(e);this._bootstrapComponents=cw(r.bootstrap),this._r3Injector=B1(e,i,[{provide:Ni,useValue:this},{provide:pi,useValue:this.componentFactoryResolver},...n],Ft(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},gf=class extends Rs{constructor(e){super(),this.moduleType=e}create(e){return new mf(this.moduleType,e,[])}},ic=class extends Ni{constructor(e){super(),this.componentFactoryResolver=new nc(this),this.instance=null;let i=new bs([...e.providers,{provide:Ni,useValue:this},{provide:pi,useValue:this.componentFactoryResolver}],e.parent||Hf(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};Pi=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Pe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();tM=nM;lt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};bf=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),o=this.detach(r);if(r-n>1){let s=this.detach(n);this.attach(n,o),this.attach(r,s)}else this.attach(n,o)}move(e,i){this.attach(i,this.detach(e))}};oc=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};_f=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-It}};Df=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};Ef=class extends bf{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-It}at(e){return this.getLView(e)[St].$implicit}attach(e,i){let n=i[Cs];this.needsIndexUpdate||=e!==this.length,Rc(this.lContainer,i,e,Ts(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,MM(this.lContainer,e)}create(e,i){let n=Ms(this.lContainer,this.templateTNode.tView.ssrId);return Nc(this.hostLView,this.templateTNode,new _f(this.lContainer,i,e),{dehydratedView:n})}destroy(e){Ec(e[ne],e)}updateValue(e,i){this.getLView(e)[St].$implicit=i}reset(){this.needsIndexUpdate=!1}
7updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[St].$index=e}getLView(e){return AM(this.lContainer,e)}};RM=(t,e,i,n,r,o)=>(wc(!0),uw(n,r,JS()));OM=(t,e,i,n)=>(wc(!0),eI(e[Ge],""));sc="en-US",FM=sc;jM=(t,e,i,n,r)=>(wc(!0),J2(e[Ge],n));qM=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=s1(!1,n.type),o=r.length>0?Ep([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=k({token:e,providedIn:"environment",factory:()=>new e(M(zt))});let t=e;return t})();Lc=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),fb=new $("");Ws=new $(""),pb=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=T(Ws,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(ji(s))n.push(s);else if(Np(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Vc=new $("");Zt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=T(H1),this.afterRenderEffectManager=T(Lw),this.externalTestViews=new Set,this.beforeRender=new ge,this.afterTick=new ge,this.componentTypes=[],this.components=[],this.isStable=T(Pi).hasPendingTasks.pipe(z(n=>!n)),this._injector=T(zt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof ec;if(!this._injector.get(pb).done){let v=!o&&n1(n),w=!1;throw new R(405,w)}let a;o?a=n:a=this._injector.get(pi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=WM(a)?void 0:this._injector.get(Ni),c=r||a.selector,u=a.create(ft.NULL,[],c,l),d=u.location.nativeElement,g=u.injector.get(fb,null);return g?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Ih(this.components,u),g?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new R(101,!1);let r=pe(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,pe(r)}}detectChangesInAttachedViews(n){let r=0,o=this.afterRenderEffectManager;for(;;){if(r===Rw)throw new R(103,!1);if(n){let s=r===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)ZM(a,s,l)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Mf(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Mf(s))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ih(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Vc,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ih(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new R(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();Af=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},Rp=(()=>{let e=class e{compileModuleSync(n){return new gf(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=i1(n),s=cw(o.declarations).reduce((a,l)=>{let c=pr(l);return c&&a.push(new Ns(c)),a},[]);return new Af(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),YM=(()=>{let e=class e{constructor(){this.zone=T(Ee),this.applicationRef=T(Zt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();nA=(()=>{let e=class e{constructor(){this.subscription=new Ve,this.initialized=!1,this.zone=T(Ee),this.pendingTasks=T(Pi)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ee.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}
vendor: 6,819 bytes, line 7
7))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ee.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();kp=new $("",{providedIn:"root",factory:()=>T(kp,fe.Optional|fe.SkipSelf)||iA()}),mb=new $(""),Hl=null;Dt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=aA;let t=e;return t})();Nf=class{constructor(){}supports(e){return Hw(e)}create(e){return new Rf(e)}},cA=(t,e)=>e,Rf=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||cA}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){let s=!n||i&&i.currentIndex<Fy(n,r,o)?i:n,a=Fy(s,r,o),l=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,s.previousIndex==null)r++;else{o||(o=[]);let c=a-r,u=l-r;if(c!=u){for(let g=0;g<c;g++){let v=g<o.length?o[g]:o[g]=0,w=v+g;u<=w&&w<c&&(o[g]=v+1)}let d=s.previousIndex;o[d]=u-c}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let i;for(i=this._previousItHead;i!==null;i=i._nextPrevious)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachMovedItem(e){let i;for(i=this._movesHead;i!==null;i=i._nextMoved)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}forEachIdentityChange(e){let i;for(i=this._identityChangesHead;i!==null;i=i._nextIdentityChange)e(i)}diff(e){if(e==null&&(e=[]),!Hw(e))throw new R(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._itHead,n=!1,r,o,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,o,s,a),n=!0):(n&&(i=this._verifyReinsertion(i,o,s,a)),Object.is(i.item,o)||this._addIdentityChange(i,o)),i=i._next}else r=0,YT(e,a=>{s=this._trackByFn(r,a),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,a,s,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,o,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,o,r)):e=this._addAfter(new kf(i,n),o,r)),e}_verifyReinsertion(e,i,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,o=e._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new ac),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ac),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},kf=class{constructor(e,i){this.item=e,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Of=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},ac=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);
7n||(n=new Of,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};Op=(()=>{let e=class e{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:r=>e.create(n,r||Py()),deps:[[e,new Wy,new Vf]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new R(901,!1)}};e.\u0275prov=k({token:e,providedIn:"root",factory:Py});let t=e;return t})();uA=new $("",{providedIn:"root",factory:()=>T(dA)}),dA=(()=>{let e=class e{};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>new Ff});let t=e;return t})(),Ff=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=T(Pi),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(e){let i=e.creationZone;this.queues.has(i)||this.queues.set(i,new Set);let n=this.queues.get(i);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,i]of this.queues)e===null?this.flushQueue(i):e.run(()=>this.flushQueue(i))}flushQueue(e){for(let i of e)e.delete(i),this.queuedEffectCount--,i.run()}},Pf=class{constructor(e,i,n,r,o,s){this.scheduler=e,this.effectFn=i,this.creationZone=n,this.injector=o,this.watcher=F0(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(i){this.injector.get(qn,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}});function vi(){return _b}function Db(t){_b??=t}function Eb(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function vb(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function Bi(t){return t&&t[0]!=="?"?"?"+t:t}function pA(){return new Io(M(Wn))}function mA(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function yb(t){return t.replace(/\/index.html$/,"")}function gA(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}function Hc(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,o]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}function bb(t,e){t.context.$implicit=e.item}function Cb(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ft(e)}'.`)}function Sb(t,e){return new R(2100,!1)}function bA(t){return t===qp}function qc(t){return t===wA}function CA(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=n.nextNode()}}return null}var _b,$c,He,Up,hA,Wn,fA,xb,Io,Pp,wb,mt,Lp,Uc,Sr,Vp,jp,$p,vA,yA,Ib,Tb,ve,qp,wA,zp,Bp,Hp,So,he=y(()=>{"use strict";L();L();_b=null;$c=class{},He=new $(""),Up=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:()=>T(hA),providedIn:"platform"});let t=e;return t})(),hA=(()=>{let e=class e extends Up{constructor(){super(),this._doc=T(He),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vi().getBaseHref(this._doc)}onPopState(n){let r=vi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=vi().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}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();Wn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:()=>T(xb),providedIn:"root"});let t=e;return t})(),fA=new $(""),xb=(()=>{let e=class e extends Wn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??T(He).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.on
vendor: 3,587 bytes, line 7
7HashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Eb(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Bi(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+Bi(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+Bi(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(M(Up),M(fA,8))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Io=(()=>{let e=class e{constructor(n){this._subject=new _e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=gA(vb(yb(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Bi(r))}normalize(n){return e.stripTrailingSlash(mA(this._basePath,yb(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+Bi(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bi(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}};e.normalizeQueryParams=Bi,e.joinWithSlash=Eb,e.stripTrailingSlash=vb,e.\u0275fac=function(r){return new(r||e)(M(Wn))},e.\u0275prov=k({token:e,factory:()=>pA(),providedIn:"root"});let t=e;return t})();Pp=/\s+/,wb=[],mt=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=wb,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Pp):wb}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Pp):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>
70&&n.split(Pp).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(b(ke),b(_t))},e.\u0275dir=xe({type:e,selectors:[["","ngClass",""]],inputs:{klass:[Te.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})(),Lp=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}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}},Uc=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else 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,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Lp(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,a),bb(l,o)}});for(let o=0,s=r.length;o<s;o++){let l=r.get(o).context;l.index=o,l.count=s,l.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let s=r.get(o.currentIndex);bb(s,o)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(b(Mn),b(xn),b(Op))},e.\u0275dir=xe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();Sr=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new Vp,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Cb("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Cb("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(b(Mn),b(xn))},e.\u0275dir=xe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Vp=class{constructor(){this.$implicit=null,this.ngIf=null}};jp=class{createSubscription(e,i){return xo(()=>e.subscribe({next:i,error:n=>{throw n}}))}dispose(e){xo(()=>e.unsubscribe())}},$p=class{createSubscription(e,i){return e.then(i,n=>{throw n})}dispose(e){}},vA=new $p,yA=new jp,Ib=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(ji(n))return vA;if(Np(n))return yA;throw Sb(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(b(Dt,16))},e.\u0275pipe=_r({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})(),Tb=(()=>{let e=class e{transform(n,r,o){if(n==null)return null;if(!this.supports(n))throw Sb(e,n);return n.slice(r,o)}supports(n){return typeof n=="string"||Array.isArray(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=_r({name:"slice",type:e,pure:!1,standalone:!0});let t=e;return t})(),ve=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=Pt({});let t=e;return t})(),qp="browser",wA="server";zp=(()=>{let e=class e{};e.\u0275prov=k({token:e,providedIn:"root",factory:()=>bA(T(di))?new Bp(T(He),window):new Hp});let t=e;return t})(),Bp=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=CA(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};Hp=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},So=class{}});function Ui(t,e){return{type:re.Trigger,name:t,definitions:e,options:{}}}function yi(t,e=null){return{type:re.Animate,styles:e,timings:t}}function Mb(t,e=null){return{type:re.Sequence,steps:t,options:e}}function Mt(t){return{type:re.Style,styles:t,offset:null}}function zc(t,e,i){return{type:re.State,name:t,styles:e,options:i}}
7function wi(t,e,i=null){return{type:re.Transition,expr:t,animation:e,options:i}}function Ab(t,e,i=null){return{type:re.Query,selector:t,animation:e,options:i}}function Nb(t,e){return{type:re.Stagger,timings:t,animation:e}}var re,Qn,Hi,Zs,Gc,To=y(()=>{"use strict";re=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(re||{}),Qn="*";Hi=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Zs=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Gc="!"});function EA(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}function Rb(t){return encodeURIComponent(t).replace(xA,(e,i)=>SA[i]??e)}function Wc(t){return`${t}`}function IA(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function kb(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Ob(t){return typeof Blob<"u"&&t instanceof Blob}function Fb(t){return typeof FormData<"u"&&t instanceof FormData}function TA(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Gp(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}function jb(t,e){return e(t)}function MA(t,e){return(i,n)=>e.intercept(i,{handle:r=>
7t(r,n)})}function AA(t,e,i){return(n,r)=>ci(i,()=>e(n,o=>t(o,r)))}function kA(){let t=null;return(e,i)=>{t===null&&(t=(T(Xs,{optional:!0})??[]).reduceRight(MA,jb));let n=T(Pi),r=n.add();return t(e,i).pipe(xi(()=>n.remove(r)))}}function FA(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function BA(t,e){let i=t.url.toLowerCase();if(!T($b)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=T(Yc).getToken(),r=T(jA);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}function HA(t,e){return{\u0275kind:t,\u0275providers:e}}function Hb(...t){let e=[Tr,Lb,Pb,{provide:Ys,useExisting:Pb},{provide:Qc,useExisting:Lb},{provide:Kp,useValue:BA,multi:!0},{provide:$b,useValue:!0},{provide:Yc,useClass:$A}];for(let i of t)e.push(...i.\u0275providers);return Vt(e)}function Ub(){return HA(Bb.LegacyInterceptors,[{provide:Vb,useFactory:kA},{provide:Kp,useExisting:Vb,multi:!0}])}var Ys,Qc,Ir,Wp,xA,SA,qi,Qp,Ks,zi,Js,Zp,Zc,Gi,Kc,Tr,Xs,Kp,NA,RA,Pb,OA,Lb,$b,PA,LA,VA,jA,Yc,$A,Bb,Vb,Mr=y(()=>{"use strict";L();L();rt();Ii();he();he();Ys=class{},Qc=class{},Ir=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` 8`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}},Wp=class{encodeKey(e){return Rb(e)}encodeValue(e){return Rb(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};xA=/%(\d[a-f0-9])/gi,SA={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};qi=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Wp,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=EA(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>
vendor: 10,574 bytes, line 8
8{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Wc):[Wc(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Wc(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Wc(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}},Qp=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};Ks=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(IA(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Ir,this.context??=new Qp,!this.params)this.params=new qi,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||kb(this.body)||Ob(this.body)||Fb(this.body)||TA(this.body)?this.body:this.body instanceof qi?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||Fb(this.body)?null:Ob(this.body)?this.body.type||null:kb(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof qi?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,o=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress,c=e.headers||this.headers,u=e.params||this.params,d=e.context??this.context;return e.setHeaders!==void 0&&(c=Object.keys(e.setHeaders).reduce((g,v)=>g.set(v,e.setHeaders[v]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((g,v)=>g.set(v,e.setParams[v]),u)),new t(i,n,s,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},zi=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(zi||{}),Js=class{constructor(e,i=Kc.Ok,n="OK"){this.headers=e.headers||new Ir,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Zp=class t extends Js{constructor(e={}){super(e),this.type=zi.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Zc=class t extends Js{constructor(e={}){super(e),this.type=zi.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Gi=class extends Js{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Kc=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Kc||{});Tr=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Ks)s=n;else{let c;o.headers instanceof Ir?c=o.headers:c=new Ir(o.headers);let u;o.params&&(o.params instanceof qi?u=o.params:u=new qi({fromObject:o.params})),s=new Ks(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=G(s).pipe(hn(c=>this.handler.handle(c)));if(n instanceof Ks||o.observe==="events")return a;let l=a.pipe(it(c=>c instanceof Zc));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(z(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(z(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(z(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(z(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}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 qi().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,Gp(o,r))}post(n,r,o={}){return this.request("POST",n,Gp(o,r))}put(n,r,o={}){return this.request("PUT",n,Gp(o,r))}};e.\u0275fac=function(r){return new(r||e)(M(Ys))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})();Xs=new $(""),Kp=new $(""),NA=new $(""),RA=new $("");Pb=(()=>{let e=class e extends Ys{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=T(Pi);let o=T(RA,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Kp),...this.injector.get(NA,[])]));this.chain=o.reduceRight((s,a)=>AA(s,a,this.injector),jb)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(xi(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(M(Qc),M(zt))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),OA=/^\)\]\}',?\n/;Lb=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new R(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?De(r.\u0275loadImpl()):G(null)).pipe(Qe(()=>new me(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEac
8h((S,O)=>a.setRequestHeader(S,O.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let S=n.detectContentTypeHeader();S!==null&&a.setRequestHeader("Content-Type",S)}if(n.responseType){let S=n.responseType.toLowerCase();a.responseType=S!=="json"?S:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let S=a.statusText||"OK",O=new Ir(a.getAllResponseHeaders()),K=FA(a)||n.url;return c=new Zp({headers:O,status:a.status,statusText:S,url:K}),c},d=()=>{let{headers:S,status:O,statusText:K,url:be}=u(),se=null;O!==Kc.NoContent&&(se=typeof a.response>"u"?a.responseText:a.response),O===0&&(O=se?Kc.Ok:0);let vt=O>=200&&O<300;if(n.responseType==="json"&&typeof se=="string"){let je=se;se=se.replace(OA,"");try{se=se!==""?JSON.parse(se):null}catch($e){se=je,vt&&(vt=!1,se={error:$e,text:se})}}vt?(s.next(new Zc({body:se,headers:S,status:O,statusText:K,url:be||void 0})),s.complete()):s.error(new Gi({error:se,headers:S,status:O,statusText:K,url:be||void 0}))},g=S=>{let{url:O}=u(),K=new Gi({error:S,status:a.status||0,statusText:a.statusText||"Unknown Error",url:O||void 0});s.error(K)},v=!1,w=S=>{v||(s.next(u()),v=!0);let O={type:zi.DownloadProgress,loaded:S.loaded};S.lengthComputable&&(O.total=S.total),n.responseType==="text"&&a.responseText&&(O.partialText=a.responseText),s.next(O)},D=S=>{let O={type:zi.UploadProgress,loaded:S.loaded};S.lengthComputable&&(O.total=S.total),s.next(O)};return a.addEventListener("load",d),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),n.reportProgress&&(a.addEventListener("progress",w),l!==null&&a.upload&&a.upload.addEventListener("progress",D)),a.send(l),s.next({type:zi.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",d),a.removeEventListener("timeout",g),n.reportProgress&&(a.removeEventListener("progress",w),l!==null&&a.upload&&a.upload.removeEventListener("progress",D)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(M(So))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),$b=new $(""),PA="XSRF-TOKEN",LA=new $("",{providedIn:"root",factory:()=>PA}),VA="X-XSRF-TOKEN",jA=new $("",{providedIn:"root",factory:()=>VA}),Yc=class{},$A=(()=>{let e=class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hc(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(M(He),M(di),M(LA))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})();Bb=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Bb||{});Vb=new $("")});function UA(){return ea=ea||document.querySelector("base"),ea?ea.getAttribute("href"):null}function qA(t){return new URL(t,document.baseURI).pathname}function KA(t){return WA.replace(im,t)}function YA(t){return GA.replace(im,t)}function Kb(t,e){return e.map(i=>i.replace(im,t))}function zb(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}function Yb(t){return gb(n3(t))}function n3(t){return{appProviders:[...a3,...t?.providers??[]],platformProviders:s3}}function i3(){em.makeCurrent()}function r3(){return new qn}function o3(){return Q1(document),document}var Xp,em,ea,zA,tm,Wb,Jc,Yp,Qb,Jp,im,Zb,GA,WA,QA,ZA,Xc,ta,nm,na,eu,JA,Gb,XA,e3,t3,s3,a3,Jb,ia,l3,Mo=y(()=>{"use strict";L();L();he();Xp=class extends $c{constructor(){super(...arguments),this.supportsDOMEvents=!0}},em=class t extends Xp{static makeCurrent(){Db(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}
8isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=UA();return i==null?null:qA(i)}resetBaseElement(){ea=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Hc(document.cookie,e)}},ea=null;zA=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),tm=new $(""),Wb=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new R(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(M(tm),M(Ee))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),Jc=class{constructor(e){this._doc=e}},Yp="ng-app-id",Qb=(()=>{let e=class e{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=qc(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Yp}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(Yp),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Yp,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(M(He),M(np),M(op,8),M(di))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),Jp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},im=/%COMP%/g,Zb="%COMP%",GA=`_nghost-${Zb}`,WA=`_ngcontent-${Zb}`,QA=!0,ZA=new $("",{providedIn:"root",factory:()=>QA});Xc=(()=>{let e=class e{constructor(n,r,o,s,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=qc(l),this.defaultRenderer=new ta(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Hn.ShadowDom&&(r=W(_({},r),{encapsulation:Hn.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof eu?o.applyToHost(n):o instanceof na&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(r.encapsulation){case Hn.Emulated:s=new eu(c,u,r,this.appId,d,a,l,g);break;case Hn.ShadowDom:return new nm(c,u,n,r,a,l,this.nonce,g);default:s=new na(c,u,r,d,a,l,g);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};
8e.\u0275fac=function(r){return new(r||e)(M(Wb),M(Qb),M(np),M(ZA),M(He),M(di),M(Ee),M(op))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),ta=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Jp[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(zb(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(zb(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new R(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let o=Jp[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Jp[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(ai.DashCase|ai.Important)?e.style.setProperty(i,n,r&ai.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&ai.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=vi().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};nm=class extends ta{constructor(e,i,n,r,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Kb(r.id,r.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},na=class extends ta{constructor(e,i,n,r,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?Kb(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},eu=class extends na{constructor(e,i,n,r,o,s,a,l){let c=r+"-"+n.id;super(e,i,n,o,s,a,l,c),this.contentAttr=KA(c),this.hostAttr=YA(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},JA=(()=>{let e=class e extends Jc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(M(He))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),Gb=["alt","control","meta","shift"],XA={"\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"},e3={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},t3=(()=>{let e=class e extends Jc{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vi().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),Gb.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=s,r.length!=0||s.length===0)return null;
8let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let o=XA[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Gb.forEach(a=>{if(a!==o){let l=e3[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(M(He))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})();s3=[{provide:di,useValue:qp},{provide:ip,useValue:i3,multi:!0},{provide:He,useFactory:o3,deps:[]}],a3=[{provide:hc,useValue:"root"},{provide:qn,useFactory:r3,deps:[]},{provide:tm,useClass:JA,multi:!0,deps:[He,Ee,di]},{provide:tm,useClass:t3,multi:!0,deps:[He]},Xc,Qb,Wb,{provide:li,useExisting:Xc},{provide:So,useClass:zA,deps:[]},[]],Jb=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(M(He))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ia=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=M(l3),o},providedIn:"root"});let t=e;return t})(),l3=(()=>{let e=class e extends ia{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case rn.NONE:return r;case rn.HTML:return hi(r,"HTML")?nn(r):ap(this._doc,String(r)).toString();case rn.STYLE:return hi(r,"Style")?nn(r):r;case rn.SCRIPT:if(hi(r,"Script"))return nn(r);throw new R(5200,!1);case rn.URL:return hi(r,"URL")?nn(r):_c(String(r));case rn.RESOURCE_URL:if(hi(r,"ResourceURL"))return nn(r);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(n){return J1(n)}bypassSecurityTrustStyle(n){return X1(n)}bypassSecurityTrustScript(n){return ew(n)}bypassSecurityTrustUrl(n){return tw(n)}bypassSecurityTrustResourceUrl(n){return nw(n)}};e.\u0275fac=function(r){return new(r||e)(M(He))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});function c3(t,e){if(t&1){let i=U();h(0,"button",5),A("click",function(){F(i);let r=m();return P(r.remove())}),h(1,"span",6),C(2,"\xD7"),p()()}}function u3(t,e){if(t&1&&(Li(0),C(1),Vi()),t&2){let i=m(2);f(),ie("[",i.duplicatesCount+1,"]")}}function d3(t,e){if(t&1&&(h(0,"div"),C(1),I(2,u3,2,1,"ng-container",4),p()),t&2){let i=m();mi(i.options.titleClass),V("aria-label",i.title),f(),ie(" ",i.title," "),f(),E("ngIf",i.duplicatesCount)}}function h3(t,e){if(t&1&&x(0,"div",7),t&2){let i=m();mi(i.options.messageClass),E("innerHTML",i.message,Le)}}function f3(t,e){if(t&1&&(h(0,"div",8),C(1),p()),t&2){let i=m();mi(i.options.messageClass),V("aria-label",i.message),f(),ie(" ",i.message," ")}}function p3(t,e){if(t&1&&(h(0,"div"),x(1,"div",9),p()),t&2){let i=m();f(),xr("width",i.width+"%")}}function m3(t,e){if(t&1){let i=U();h(0,"button",5),A("click",function(){F(i);let r=m();return P(r.remove())}),h(1,"span",6),C(2,"\xD7"),p()()}}function g3(t,e){if(t&1&&(Li(0),C(1),Vi()),t&2){let i=m(2);f(),ie("[",i.duplicatesCount+1,"]")}}function v3(t,e){if(t&1&&(h(0,"div"),C(1),I(2,g3,2,1,"ng-container",4),p()),t&2){let i=m();mi(i.options.titleClass),V("aria-label",i.title),f(),ie(" ",i.title," "),f(),E("ngIf",i.duplicatesCount)}}function y3(t,e){if(t&1&&x(0,"div",7),t&2){let i=m();mi(i.options.messageClass),E("innerHTML",i.message,Le)}}function w3(t,e){if(t&1&&(h(0,"div",8),C(1),p()),t&2){let i=m();mi(i.options.messageClass),V("aria-label",i.message),f(),ie(" ",i.message," ")}}function b3(t,e){if(t&1&&(h(0,"div"),x(1,"div",9),p()),t&2){let i=m();f(),xr("width",i.width+"%")}}var Xb,um,om,sm,am,Ao,eC,tC,lm,C3,cm,_3,No,D3,E3,nC,x3,A$,ra=y(()=>{"use strict";L();L();To();he();rt();Mo();Xb=["toast-component",""];um=(()=>{class t{el;constructor(i){this.el=i}getContainerElement(){return this.el.nativeElement}static \u0275fac=function(n){return new(n||t)(b(ke))};static \u0275dir=xe({type:t,selectors:[["","toastContainer",""]],exportAs:["toastContainer"],standalone:!0})}return t})(),om=class{_attachedHost;component;viewContainerRef;injector;constructor(e,i){this.component=e,this.injector=i}attach(e,i){return this._attachedHost=e,e.attach(this,i)}detach(){let e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},sm=class{_attachedPortal;_disposeFn;attach(e,i){return this._attachedPortal=e,this.attachComponentPortal(e,i)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}},am=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new ge;_activate=new ge;_manualClose=new ge;_resetTimeout=new ge;_countDuplicate=new ge;
8constructor(e){this._overlayRef=e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,i){e&&this._resetTimeout.next(),i&&this._countDuplicate.next(++this.duplicatesCount)}},Ao=class{toastId;config;message;title;toastType;toastRef;_onTap=new ge;_onAction=new ge;constructor(e,i,n,r,o,s){this.toastId=e,this.config=i,this.message=n,this.title=r,this.toastType=o,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}},eC={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},tC=new $("ToastConfig"),lm=class extends sm{_hostDomElement;_componentFactoryResolver;_appRef;constructor(e,i,n){super(),this._hostDomElement=e,this._componentFactoryResolver=i,this._appRef=n}attachComponentPortal(e,i){let n=this._componentFactoryResolver.resolveComponentFactory(e.component),r;return r=n.create(e.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),i?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},C3=(()=>{class t{_document=T(He);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i=this._document.createElement("div");i.classList.add("overlay-container"),i.setAttribute("aria-live","polite"),this._document.body.appendChild(i),this._containerElement=i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cm=class{_portalHost;constructor(e){this._portalHost=e}attach(e,i=!0){return this._portalHost.attach(e,i)}detach(){return this._portalHost.detach()}},_3=(()=>{class t{_overlayContainer=T(C3);_componentFactoryResolver=T(pi);_appRef=T(Zt);_document=T(He);_paneElements=new Map;create(i,n){return this._createOverlayRef(this.getPaneElement(i,n))}getPaneElement(i="",n){return this._paneElements.get(n)||this._paneElements.set(n,{}),this._paneElements.get(n)[i]||(this._paneElements.get(n)[i]=this._createPaneElement(i,n)),this._paneElements.get(n)[i]}_createPaneElement(i,n){let r=this._document.createElement("div");return r.id="toast-container",r.classList.add(i),r.classList.add("toast-container"),n?n.getContainerElement().appendChild(r):this._overlayContainer.getContainerElement().appendChild(r),r}_createPortalHost(i){return new lm(i,this._componentFactoryResolver,this._appRef)}_createOverlayRef(i){return new cm(this._createPortalHost(i))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),No=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(i,n,r,o,s){this.overlay=n,this._injector=r,this.sanitizer=o,this.ngZone=s,this.toastrConfig=_(_({},i.default),i.config),i.config.iconClasses&&(this.toastrConfig.iconClasses=_(_({},i.default.iconClasses),i.config.iconClasses))}show(i,n,r={},o=""){return this._preBuildNotification(o,i,n,this.applyConfig(r))}success(i,n,r={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,i,n,this.applyConfig(r))}error(i,n,r={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,i,n,this.applyConfig(r))}info(i,n,r={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,i,n,this.applyConfig(r))}warning(i,n,r={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,i,n,this.applyConfig(r))}clear(i){for(let n of this.toasts)if(i!==void 0){if(n.toastId===i){n.toastRef.manualClose();return}}else n.toastRef.manualClose()}remove(i){let n=this._findToast(i);if(!n||(n.activeToast.toastRef.close(),this.toasts.splice(n.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let r=this.toasts[this.currentlyActive].toastRef;r.isInactive()||(this.currentlyActive=this.currentlyActive+1,r.activate())}return!0}findDuplicate(i="",n="",r,o){let{includeTitleDuplicates:s}=this.toastrConfig;for(let a of this.toasts){let l=s&&a.title===i;if((!s||l)&&a.message===n)return a.toastRef.onDuplicate(r,o),a}return null}applyConfig(i={}){return _(_({},this.toastrConfig),i)}_findToast(i){for(let n=0;n<this.toasts.length;n++)if(this.toasts[n].toastId===i)return{index:n,activeToast:this.toasts[n]};return null}_preBuildNotification(i,n,r,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(i,n,r,o)):this._buildNotification(i,n,r,o)}_buildNotification(i,n,r,o){if(!o.toastComponent)throw new Error("toastComponent required");let s=this.findDuplicate(r,n,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&r||n)&&this.toastrConfig.preventDuplicates&&s!==null)return s;this.previousToastMessage=n;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let l=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let c=n;n&&o.enableHtml&&(c=this.sanitizer.sanitize(rn.HTML,n));let u=new am(l),d=new Ao(this.index,o,c,r,i,u),g=[{provide:Ao,useValue:d}],v=ft.create({providers:g,parent:this._injector}),w=new om(o.toastComponent,v),D=l.attach(w,o.newestOnTop);u.componentInstance=D.instance;let S={toastId:this.index,title:r||"",message:n||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:D};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{S.toastRef.activate()})),this.toasts.push(S),S}static \u0275fac=function(n){return new(n||t)(M(tC),M(_3),M(ft),M(ia),M(Ee))};static \u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),D3=(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if(this.state.value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;
8constructor(i,n,r){this.toastrService=i,this.toastPackage=n,this.ngZone=r,this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses=`${n.toastType} ${n.config.toastClass}`,this.sub=n.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=W(_({},this.state),{value:"active"}),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width===0||this.width===100||!this.options.timeOut)return;let i=new Date().getTime(),n=this.hideTime-i;this.width=n/this.options.timeOut*100,this.options.progressAnimation==="increasing"&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=W(_({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state.value!=="removed"&&(clearTimeout(this.timeout),this.state=W(_({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state.value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state.value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state.value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(i,n){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(i),n)):this.timeout=setTimeout(()=>i(),n)}outsideInterval(i,n){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(i),n)):this.intervalId=setInterval(()=>i(),n)}runInsideAngular(i){this.ngZone?this.ngZone.run(()=>i()):i()}static \u0275fac=function(n){return new(n||t)(b(No),b(Ao),b(Ee))};static \u0275cmp=B({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(n,r){n&1&&A("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),n&2&&(xp("@flyInOut",r.state),mi(r.toastClasses),xr("display",r.displayStyle))},standalone:!0,features:[H],attrs:Xb,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(n,r){n&1&&I(0,c3,3,0,"button",0)(1,d3,3,5,"div",1)(2,h3,1,3,"div",2)(3,f3,2,4,"div",3)(4,p3,2,2,"div",4),n&2&&(E("ngIf",r.options.closeButton),f(),E("ngIf",r.title),f(),E("ngIf",r.message&&r.options.enableHtml),f(),E("ngIf",r.message&&!r.options.enableHtml),f(),E("ngIf",r.options.progressBar))},dependencies:[Sr],encapsulation:2,data:{animation:[Ui("flyInOut",[zc("inactive",Mt({opacity:0}
8)),zc("active",Mt({opacity:1})),zc("removed",Mt({opacity:0})),wi("inactive => active",yi("{{ easeTime }}ms {{ easing }}")),wi("active => removed",yi("{{ easeTime }}ms {{ easing }}"))])]}})}return t})(),E3=W(_({},eC),{toastComponent:D3}),nC=(t={})=>Vt([{provide:tC,useValue:{default:E3,config:t}}]),x3=(()=>{class t{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";get displayStyle(){return this.state==="inactive"?"none":null}state="inactive";timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(i,n,r){this.toastrService=i,this.toastPackage=n,this.appRef=r,this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses=`${n.toastType} ${n.config.toastClass}`,this.sub=n.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width===0||this.width===100||!this.options.timeOut)return;let i=new Date().getTime(),n=this.hideTime-i;this.width=n/this.options.timeOut*100,this.options.progressAnimation==="increasing"&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state!=="removed"&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(n){return new(n||t)(b(No),b(Ao),b(Zt))};static \u0275cmp=B({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(n,r){n&1&&A("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),n&2&&(mi(r.toastClasses),xr("display",r.displayStyle))},standalone:!0,features:[H],attrs:Xb,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(n,r){n&1&&I(0,m3,3,0,"button",0)(1,v3,3,5,"div",1)(2,y3,1,3,"div",2)(3,w3,2,4,"div",3)(4,b3,2,2,"div",4),n&2&&(E("ngIf",r.options.closeButton),f(),E("ngIf",r.title),f(),E("ngIf",r.message&&r.options.enableHtml),f(),E("ngIf",r.message&&!r.options.enableHtml),f(),E("ngIf",r.options.progressBar))},dependencies:[Sr],encapsulation:2})}return t})(),A$=W(_({},eC),{toastComponent:x3})});function Po(t){return new mm(t)}function S3(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function I3(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!Zn(t[i],e[i]))return!1;return!0}function Zn(t,e){let i=t?gm(t):void 0,n=e?gm(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!cC(t[r],e[r]))return!1;return!0}function gm(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function cC(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,o)=>n[o]===r)}else return t===e}function uC(t){return t.length>0?t[t.length-1]:null}function Zi(t){return Zd(t)?t:ji(t)?De(Promise.resolve(t)):G(t)}function rC(t,e,i){return T3[i.paths](t.root,e.root,i.matrixParams)&&dC[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function M3(t,e){return Zn(t,e)}function hC(t,e,i){if(!Nr(t.segments,e.segments)||!iu(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;
8for(let n in e.children)if(!t.children[n]||!hC(t.children[n],e.children[n],i))return!1;return!0}function A3(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>cC(t[i],e[i]))}function fC(t,e,i){return pC(t,e,e.segments,i)}function pC(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!Nr(r,i)||e.hasChildren()||!iu(r,i,n))}else if(t.segments.length===i.length){if(!Nr(t.segments,i)||!iu(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!fC(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!Nr(t.segments,r)||!iu(t.segments,r,n)||!t.children[ue]?!1:pC(t.children[ue],e,o,n)}}function iu(t,e,i){return e.every((n,r)=>dC[i](t[r].parameters,n.parameters))}function N3(t,e){return Nr(t,e)&&t.every((i,n)=>Zn(i.parameters,e[n].parameters))}function Nr(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function R3(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===ue&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==ue&&(i=i.concat(e(r,n)))}),i}function ru(t){return t.segments.map(e=>gC(e)).join("/")}function oa(t,e){if(!t.hasChildren())return ru(t);if(e){let i=t.children[ue]?oa(t.children[ue],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==ue&&n.push(`${r}:${oa(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=R3(t,(n,r)=>r===ue?[oa(t.children[ue],!1)]:[`${r}:${oa(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[ue]!=null?`${ru(t)}/${i[0]}`:`${ru(t)}/(${i.join("//")})`}}function mC(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tu(t){return mC(t).replace(/%3B/gi,";")}function O3(t){return encodeURI(t)}function vm(t){return mC(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ou(t){return decodeURIComponent(t)}function oC(t){return ou(t.replace(/\+/g,"%20"))}function gC(t){return`${vm(t.path)}${F3(t.parameters)}`}function F3(t){return Object.entries(t).map(([e,i])=>`;${vm(e)}=${vm(i)}`).join("")}function P3(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${tu(i)}=${tu(r)}`).join("&"):`${tu(i)}=${tu(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}function dm(t){let e=t.match(L3);return e?e[0]:""}function j3(t){let e=t.match(V3);return e?e[0]:""}function B3(t){let e=t.match($3);return e?e[0]:""}function U3(t){let e=t.match(H3);return e?e[0]:""}function vC(t){return t.segments.length>0?new Se([],{[ue]:t}):t}function yC(t){let e={};for(let[n,r]of Object.entries(t.children)){let o=yC(r);if(n===ue&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let i=new Se(t.segments,e);return q3(i)}function q3(t){if(t.numberOfChildren===1&&t.children[ue]){let e=t.children[ue];return new Se(t.segments.concat(e.segments),e.children)}return t}function Lo(t){return t instanceof Wi}function z3(t,e,i=null,n=null){let r=wC(t);return bC(r,e,i,n)}function wC(t){let e;function i(o){let s={};for(let l of o.children){let c=i(l);s[l.outlet]=c}let a=new Se(o.url,s);return o===t&&(e=a),a}let n=i(t.root),r=vC(n);return e??r}function bC(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return hm(r,r,r,i,n);let o=G3(e);if(o.toRoot())return hm(r,r,new Se([],{}),i,n);let s=W3(o,r,t),a=s.processChildren?la(s.segmentGroup,s.index,o.commands):_C(s.segmentGroup,s.index,o.commands);return hm(r,s.segmentGroup,a,i,n)}function au(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function da(t){return typeof t=="object"&&t!=null&&t.outlets}function hm(t,e,i,n,r){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let s;t===e?s=i:s=CC(t,e,i);let a=vC(yC(s));return new Wi(a,o,r)}function CC(t,e,i){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===e?n[r]=i:n[r]=CC(o,e,i)}),new Se(t.segments,n)}function G3(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new lu(!0,0,t);let e=0,i=!1,n=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};
8return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new lu(i,e,n)}function W3(t,e,i){if(t.isAbsolute)return new Oo(e,!0,0);if(!i)return new Oo(e,!1,NaN);if(i.parent===null)return new Oo(i,!0,0);let n=au(t.commands[0])?0:1,r=i.segments.length-1+n;return Q3(i,r,t.numberOfDoubleDots)}function Q3(t,e,i){let n=t,r=e,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new R(4005,!1);r=n.segments.length}return new Oo(n,!1,r-o)}function Z3(t){return da(t[0])?t[0].outlets:{[ue]:t}}function _C(t,e,i){if(t??=new Se([],{}),t.segments.length===0&&t.hasChildren())return la(t,e,i);let n=K3(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new Se(t.segments.slice(0,n.pathIndex),{});return o.children[ue]=new Se(t.segments.slice(n.pathIndex),t.children),la(o,0,r)}else return n.match&&r.length===0?new Se(t.segments,{}):n.match&&!t.hasChildren()?wm(t,e,i):n.match?la(t,0,r):wm(t,e,i)}function la(t,e,i){if(i.length===0)return new Se(t.segments,{});{let n=Z3(i),r={};if(Object.keys(n).some(o=>o!==ue)&&t.children[ue]&&t.numberOfChildren===1&&t.children[ue].segments.length===0){let o=la(t.children[ue],e,i);return new Se(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=_C(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new Se(t.segments,r)}}function K3(t,e,i){let n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return o;let s=t.segments[r],a=i[n];if(da(a))break;let l=`${a}`,c=n<i.length-1?i[n+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!aC(l,c,s))return o;n+=2}else{if(!aC(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function wm(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let o=i[r];if(da(o)){let l=Y3(o.outlets);return new Se(n,l)}if(r===0&&au(i[0])){let l=t.segments[e];n.push(new Ar(l.path,sC(i[0]))),r++;continue}let s=da(o)?o.outlets[ue]:`${o}`,a=r<i.length-1?i[r+1]:null;s&&a&&au(a)?(n.push(new Ar(s,sC(a))),r+=2):(n.push(new Ar(s,{})),r++)}return new Se(n,{})}function Y3(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=wm(new Se([],{}),0,n))}),e}function sC(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function aC(t,e,i){return t==i.path&&Zn(e,i.parameters)}function Rm(t,e){if(t===e.value)return e;for(let i of e.children){let n=Rm(t,i);if(n)return n}return null}function km(t,e){if(t===e.value)return[e];for(let i of e.children){let n=km(t,i);if(n.length)return n.unshift(e),n}return[]}function ko(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}function DC(t){let e=J3(t),i=new Pe([new Ar("",{})]),n=new Pe({}),r=new Pe({}),o=new Pe({}),s=new Pe(""),a=new kr(i,n,o,s,r,ue,t,e.root);return a.snapshot=e.root,new du(new on(a,[]),e)}function J3(t){let e={},i={},n={},r="",o=new ga([],e,n,r,i,ue,t,null,{});return new hu("",new on(o,[]))}function Um(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:_(_({},e.params),t.params),data:_(_({},e.data),t.data),resolve:_(_(_(_({},t.data),e.data),r?.data),t._resolvedData)}:n={params:_({},t.params),data:_({},t.data),resolve:_(_({},t.data),t._resolvedData??{})},r&&xC(r)&&(n.resolve[wa]=r.title),n}function qm(t,e){e.value._routerState=t,e.children.forEach(i=>qm(t,i))}function EC(t){let e=t.children.length>0?` { ${t.children.map(EC).join(", ")} } `:"";return`${t.value}${e}`}function fm(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Zn(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),Zn(e.params,i.params)||t.paramsSubject.next(i.params),I3(e.url,i.url)||t.urlSubject.next(i.url),Zn(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}
8function Om(t,e){let i=Zn(t.params,e.params)&&N3(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||Om(t.parent,e.parent))}function xC(t){return typeof t.title=="string"||t.title===null}function X3(t,e,i){let n=va(t,e._root,i?i._root:void 0);return new du(n,e)}function va(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=eN(t,e,i);return new on(n,r)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>va(t,a)),s}}let n=tN(e.value),r=e.children.map(o=>va(t,o));return new on(n,r)}}function eN(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return va(t,n,r);return va(t,n)})}function tN(t){return new kr(new Pe(t.url),new Pe(t.params),new Pe(t.queryParams),new Pe(t.fragment),new Pe(t.data),t.outlet,t.component,t)}function IC(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=Lo(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=TC(!1,sn.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function TC(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[SC]=!0,i.cancellationCode=e,i}function nN(t){return MC(t)&&Lo(t.url)}function MC(t){return!!t&&t[SC]}function rN(t,e){return t.providers&&!t._injector&&(t._injector=Ep(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Gm(t){let e=t.children&&t.children.map(Gm),i=e?W(_({},t),{children:e}):_({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==ue&&(i.component=iN),i}function Kn(t){return t.outlet||ue}function oN(t,e){let i=t.filter(n=>Kn(n)===e);return i.push(...t.filter(n=>Kn(n)!==e)),i}function ba(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}function aN(t,e,i){let n=t._root,r=e?e._root:null;return sa(n,r,i,[n.value])}function lN(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function jo(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!$y(t)?t:e.get(t):n}function sa(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=ko(e);return t.children.forEach(s=>{cN(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ua(a,i.getContext(s),r)),r}function cN(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=uN(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new fu(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?sa(t,e,a?a.children:null,n,r):sa(t,e,i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Fo(a.outlet.component,s))}else s&&ua(e,a,r),r.canActivateChecks.push(new fu(n)),o.component?sa(t,null,a?a.children:null,n,r):sa(t,null,i,n,r);return r}function uN(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!Nr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Nr(t.url,e.url)||!Zn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Om(t,e)||!Zn(t.queryParams,e.queryParams);case"paramsChange":default:return!Om(t,e)}}
8function ua(t,e,i){let n=ko(t),r=t.value;Object.entries(n).forEach(([o,s])=>{r.component?e?ua(s,e.children.getContext(o),i):ua(s,null,i):ua(s,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Fo(e.outlet.component,r)):i.canDeactivateChecks.push(new Fo(null,r)):i.canDeactivateChecks.push(new Fo(null,r))}function Ca(t){return typeof t=="function"}function dN(t){return typeof t=="boolean"}function hN(t){return t&&Ca(t.canLoad)}function fN(t){return t&&Ca(t.canActivate)}function pN(t){return t&&Ca(t.canActivateChild)}function mN(t){return t&&Ca(t.canDeactivate)}function gN(t){return t&&Ca(t.canMatch)}function AC(t){return t instanceof ni||t?.name==="EmptyError"}function Vo(){return Qe(t=>no(t.map(e=>e.pipe(Je(1),uh(nu)))).pipe(z(e=>{for(let i of e)if(i!==!0){if(i===nu)return nu;if(i===!1||i instanceof Wi)return i}return!0}),it(e=>e!==nu),Je(1)))}function vN(t,e){return Be(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return s.length===0&&o.length===0?G(W(_({},i),{guardsResult:!0})):yN(s,n,r,t).pipe(Be(a=>a&&dN(a)?wN(n,o,t,e):G(a)),z(a=>W(_({},i),{guardsResult:a})))})}function yN(t,e,i,n){return De(t).pipe(Be(r=>EN(r.component,r.route,i,e,n)),jn(r=>r!==!0,!0))}function wN(t,e,i,n){return De(e).pipe(hn(r=>Vn(CN(r.route.parent,n),bN(r.route,n),DN(t,r.path,i),_N(t,r.route,i))),jn(r=>r!==!0,!0))}function bN(t,e){return t!==null&&e&&e(new Mm(t)),G(!0)}function CN(t,e){return t!==null&&e&&e(new Im(t)),G(!0)}function _N(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return G(!0);let r=n.map(o=>Sl(()=>{let s=ba(e)??i,a=jo(o,s),l=fN(a)?a.canActivate(e,t):ci(s,()=>a(e,t));return Zi(l).pipe(jn())}));return G(r).pipe(Vo())}function DN(t,e,i){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>lN(s)).filter(s=>s!==null).map(s=>Sl(()=>{let a=s.guards.map(l=>{let c=ba(s.node)??i,u=jo(l,c),d=pN(u)?u.canActivateChild(n,t):ci(c,()=>u(n,t));return Zi(d).pipe(jn())});return G(a).pipe(Vo())}));return G(o).pipe(Vo())}function EN(t,e,i,n,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return G(!0);let s=o.map(a=>{let l=ba(e)??r,c=jo(a,l),u=mN(c)?c.canDeactivate(t,e,i,n):ci(l,()=>c(t,e,i,n));return Zi(u).pipe(jn())});return G(s).pipe(Vo())}function xN(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return G(!0);let o=r.map(s=>{let a=jo(s,t),l=hN(a)?a.canLoad(e,i):ci(t,()=>a(e,i));return Zi(l)});return G(o).pipe(Vo(),NC(n))}function NC(t){return Sd(ze(e=>{if(Lo(e))throw IC(t,e)}),z(e=>e===!0))}function SN(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return G(!0);let o=r.map(s=>{let a=jo(s,t),l=gN(a)?a.canMatch(e,i):ci(t,()=>a(e,i));return Zi(l)});return G(o).pipe(Vo(),NC(n))}function Ro(t){return eo(new ya(t))}function IN(t){return eo(new R(4e3,!1))}function TN(t){return eo(TC(!1,sn.GuardRejected))}function MN(t,e,i,n,r){let o=Wm(t,e,i);return o.matched?(n=rN(e,n),SN(n,e,i,r).pipe(z(s=>s===!0?o:_({},Vm)))):G(o)}function Wm(t,e,i){if(e.path==="**")return AN(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?_({},Vm):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||S3)(i,t,e);if(!r)return _({},Vm);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?_(_({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function AN(t){return{matched:!0,parameters:t.length>0?uC(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function lC(t,e,i,n){return i.length>0&&kN(t,i,n)?{segmentGroup:new Se(e,RN(n,new Se(i,t.children))),slicedSegments:[]}:i.length===0&&ON(t,i,n)?{segmentGroup:new Se(t.segments,NN(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new Se(t.segments,t.children),slicedSegments:i}}function NN(t,e,i,n){let r={};for(let o of i)if(gu(t,e,o)&&!n[Kn(o)]){let s=new Se([],{});r[Kn(o)]=s}return _(_({},n),r)}function RN(t,e){let i={};i[ue]=e;for(let n of t)if(n.path===""&&Kn(n)!==ue){let r=new Se([],{});i[Kn(n)]=r}return i}
8function kN(t,e,i){return i.some(n=>gu(t,e,n)&&Kn(n)!==ue)}function ON(t,e,i){return i.some(n=>gu(t,e,n))}function gu(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function FN(t,e,i,n){return Kn(t)!==n&&(n===ue||!gu(e,i,t))?!1:Wm(e,t,i).matched}function PN(t,e,i){return e.length===0&&!t.children[i]}function LN(t,e,i,n,r,o,s="emptyOnly"){return new $m(t,e,i,n,r,s,o).recognize()}function jN(t){t.sort((e,i)=>e.value.outlet===ue?-1:i.value.outlet===ue?1:e.value.outlet.localeCompare(i.value.outlet))}function $N(t){let e=t.value.routeConfig;return e&&e.path===""}function RC(t){let e=[],i=new Set;for(let n of t){if(!$N(n)){e.push(n);continue}let r=e.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=RC(n.children);e.push(new on(n.value,r))}return e.filter(n=>!i.has(n))}function BN(t){return t.data||{}}function HN(t){return t.resolve||{}}function UN(t,e,i,n,r,o){return Be(s=>LN(t,e,i,n,s.extractedUrl,r,o).pipe(z(({state:a,tree:l})=>W(_({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function qN(t,e){return Be(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return G(i);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of kC(l))s.add(c);let a=0;return De(s).pipe(hn(l=>o.has(l)?zN(l,n,t,e):(l.data=Um(l,l.parent,t).resolve,G(void 0))),ze(()=>a++),ro(1),Be(l=>a===s.size?G(i):yt))})}function kC(t){let e=t.children.map(i=>kC(i)).flat();return[t,...e]}function zN(t,e,i,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!xC(r)&&(o[wa]=r.title),GN(o,t,e,n).pipe(z(s=>(t._resolvedData=s,t.data=Um(t,t.parent,i).resolve,null)))}function GN(t,e,i,n){let r=gm(t);if(r.length===0)return G({});let o={};return De(r).pipe(Be(s=>WN(t[s],e,i,n).pipe(jn(),ze(a=>{o[s]=a}))),ro(1),ps(o),tn(s=>AC(s)?yt:eo(s)))}function WN(t,e,i,n){let r=ba(e)??n,o=jo(t,r),s=o.resolve?o.resolve(e,i):ci(r,()=>o(e,i));return Zi(s)}function pm(t){return Qe(e=>{let i=t(e);return i?De(i).pipe(z(()=>e)):G(e)})}function KN(t,e,i,n){return Zi(t.loadChildren()).pipe(z(FC),Be(r=>r instanceof Rs||Array.isArray(r)?G(r):De(e.compileModuleAsync(r))),z(r=>{n&&n(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(i).injector,s=o.get(Zm,[],{optional:!0,self:!0}).flat()),{routes:s.map(Gm),injector:o}}))}function YN(t){return t&&typeof t=="object"&&"default"in t}function FC(t){return YN(t)?t.default:t}function tR(t){return t!==ca}function oR(t,e){t.events.pipe(it(i=>i instanceof Yt||i instanceof Qi||i instanceof fa||i instanceof Rr),z(i=>i instanceof Yt||i instanceof Rr?aa.COMPLETE:(i instanceof Qi?i.code===sn.Redirect||i.code===sn.SupersededByNewNavigation:!1)?aa.REDIRECTING:aa.FAILED),it(i=>i!==aa.REDIRECTING),Je(1)).subscribe(()=>{e()})}function sR(t){throw t}function cR(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new R(4008,!1)}function uR(t){return!(t instanceof pa)&&!(t instanceof ma)}function LC(t,...e){return Vt([{provide:Zm,multi:!0,useValue:t},[],{provide:kr,useFactory:hR,deps:[an]},{provide:Vc,multi:!0,useFactory:fR},e.map(i=>i.\u0275providers)])}function hR(t){return t.routerState.root}function fR(){let t=T(ft);return e=>{let i=t.get(Zt);if(e!==i.components[0])return;let n=t.get(an),r=t.get(pR);t.get(mR)===1&&n.initialNavigation(),t.get(gR,null,fe.Optional)?.setUpPreloading(),t.get(dR,null,fe.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ue,wa,mm,T3,dC,Wi,Se,Ar,Hm,su,k3,L3,V3,$3,H3,ym,lu,Oo,ca,Et,mn,ha,Yt,sn,bm,Qi,Rr,fa,cu,Cm,_m,Dm,Em,xm,Sm,Im,Tm,Mm,Am,pa,ma,Nm,mu,uu,on,du,kr,ga,hu,Or,Fm,zm,SC,iN,sN,Pm,fu,Fo,nu,ya,pu,Lm,Vm,jm,VN,$m,OC,QN,Qm,Zm,ZN,Km,JN,XN,eR,nR,Bm,iR,PC,rR,aa,aR,lR,an,$o,dR,pR,mR,gR,At=y(()=>{"use strict";L();L();rt();he();he();Ii();Mo();ue="primary",wa=Symbol("RouteTitle"),mm=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};T3={exact:hC,subset:fC},dC={exact:M3,subset:A3,ignored:()=>!0};Wi=class{constructor(e=new Se([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Po(this.queryParams),this._queryParamMap}toString(){return k3.serialize(this)}},Se=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEac
8h(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ru(this)}},Ar=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Po(this.parameters),this._parameterMap}toString(){return gC(this)}};Hm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:()=>new su,providedIn:"root"});let t=e;return t})(),su=class{parse(e){let i=new ym(e);return new Wi(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${oa(e.root,!0)}`,n=P3(e.queryParams),r=typeof e.fragment=="string"?`#${O3(e.fragment)}`:"";return`${i}${n}${r}`}},k3=new su;L3=/^[^\/()?;#]+/;V3=/^[^\/()?;=#]+/;$3=/^[^=?&#]+/;H3=/^[^&#]+/;ym=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Se([],{}):new Se([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[ue]=new Se(e,i)),n}parseSegment(){let e=dm(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(e),new Ar(ou(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=j3(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=dm(this.remaining);r&&(n=r,this.capture(n))}e[ou(i)]=ou(n)}parseQueryParam(e){let i=B3(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let s=U3(this.remaining);s&&(n=s,this.capture(n))}let r=oC(i),o=oC(n);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=dm(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new R(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(
8o=ue);let s=this.parseChildren();i[o]=Object.keys(s).length===1?s[ue]:new Se([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new R(4011,!1)}};lu=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&au(n[0]))throw new R(4003,!1);let r=n.find(da);if(r&&r!==uC(n))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};Oo=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};ca="imperative",Et=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Et||{}),mn=class{constructor(e,i){this.id=e,this.url=i}},ha=class extends mn{constructor(e,i,n="imperative",r=null){super(e,i),this.type=Et.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Yt=class extends mn{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=Et.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},sn=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(sn||{}),bm=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(bm||{}),Qi=class extends mn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=Et.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Rr=class extends mn{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=Et.NavigationSkipped}},fa=class extends mn{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=Et.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},cu=class extends mn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Et.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Cm=class extends mn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Et.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_m=class extends mn{constructor(e,i,n,r,o){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=Et.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Dm=class extends mn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Et.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Em=class extends mn{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=Et.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xm=class{constructor(e){this.route=e,this.type=Et.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Sm=class{constructor(e){this.route=e,this.type=Et.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Im=class{constructor(e){this.snapshot=e,this.type=Et.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tm=class{constructor(e){this.snapshot=e,this.type=Et.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mm=class{constructor(e){this.snapshot=e,this.type=Et.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Am=class{constructor(e){this.snapshot=e,this.type=Et.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pa=class{},ma=class{constructor(e){this.url=e}},Nm=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new mu,this.attachRef=null}},mu=(()=>{let e=class e{constructor(){this.contexts=new Map}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 Nm,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),uu=class{constructor(e){this._root=e}get root(){return this._root.value}
8parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=Rm(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Rm(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=km(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return km(e,this._root).map(i=>i.value)}};on=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};du=class extends uu{constructor(e,i){super(e),this.snapshot=i,qm(this,e)}toString(){return this.snapshot.toString()}};kr=class{constructor(e,i,n,r,o,s,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(z(c=>c[wa]))??G(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(z(e=>Po(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(z(e=>Po(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};ga=class{get title(){return this.data?.[wa]}constructor(e,i,n,r,o,s,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=Po(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Po(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},hu=class extends uu{constructor(e,i){super(i),this.url=e,qm(this,i)}toString(){return EC(this._root)}};Or=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ue,this.activateEvents=new _e,this.deactivateEvents=new _e,this.attachEvents=new _e,this.detachEvents=new _e,this.parentContexts=T(mu),this.location=T(Mn),this.changeDetector=T(Dt),this.environmentInjector=T(zt),this.inputBinder=T(zm,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}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 R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(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 R(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new Fm(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=xe({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ot]});let t=e;return t})(),Fm=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===kr?this.route:e===mu?this.childContexts:this.parent.get(e,i)}},zm=new $("");SC="ngNavigationCancelingError";iN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["ng-component"]],standalone:!0,features:[H],decls:1,vars:0,template:function(r,o){r&1&&x(0,"router-outlet")},dependencies:[Or],encapsulation:2});let t=e;return t})();sN=(t,e,i,n)=>z(r=>(new Pm(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),Pm=class{constructor(e,i,n,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),fm(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=ko(i);
8e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=ko(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=ko(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=ko(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Am(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Tm(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(fm(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),fm(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=ba(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},fu=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Fo=class{constructor(e,i){this.component=e,this.route=i}};nu=Symbol("INITIAL_VALUE");ya=class{constructor(e){this.segmentGroup=e||null}},pu=class extends Error{constructor(e){super(),this.urlTree=e}};Lm=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return G(n);if(r.numberOfChildren>1||!r.children[ue])return IN(e.redirectTo);r=r.children[ue]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new pu(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let o=this.createSegmentGroup(e,i.root,n,r);return new Wi(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(e,i,n,r){let o=this.createSegments(e,i.segments,n,r),s={};return Object.entries(i.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,r)}),new Se(o,s)}createSegments(e,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new R(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},Vm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};jm=class{};VN=31,$m=class{constructor(e,i,n,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Lm(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new R(4002,`'${e.segmentGroup}'`)}recognize(){let e=lC(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(z(i=>{let n=new ga([],Object.freeze({}),Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,{},ue,this.rootComponentType,null,{}),r=new on(n,i),o=new hu("",r),s=z3(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,ue).pipe(tn(n=>{if(n instanceof pu)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ya?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=Um(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEac
8h(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(z(o=>o instanceof on?[o]:[]))}processChildren(e,i,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return De(r).pipe(hn(o=>{let s=n.children[o],a=oN(i,o);return this.processSegmentGroup(e,a,s,o)}),oo((o,s)=>(o.push(...s),o)),Di(null),ah(),Be(o=>{if(o===null)return Ro(n);let s=RC(o);return jN(s),G(s)}))}processSegment(e,i,n,r,o,s){return De(i).pipe(hn(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,o,s).pipe(tn(l=>{if(l instanceof ya)return G(null);throw l}))),jn(a=>!!a),tn(a=>{if(AC(a))return PN(n,r,o)?G(new jm):Ro(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,o,s,a){return FN(n,r,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s):Ro(r):Ro(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=Wm(i,r,o);if(!a)return Ro(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>VN&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,c);return this.applyRedirects.lineralizeSegments(r,d).pipe(Be(g=>this.processSegment(e,n,i,g.concat(u),s,!1)))}matchSegmentAgainstRoute(e,i,n,r,o){let s=MN(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),s.pipe(Qe(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(Qe(({routes:l})=>{let c=n._loadedInjector??e,{consumedSegments:u,remainingSegments:d,parameters:g}=a,v=new ga(u,g,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,BN(n),Kn(n),n.component??n._loadedComponent??null,n,HN(n)),{segmentGroup:w,slicedSegments:D}=lC(i,u,d,l);if(D.length===0&&w.hasChildren())return this.processChildren(c,l,w).pipe(z(O=>O===null?null:new on(v,O)));if(l.length===0&&D.length===0)return G(new on(v,[]));let S=Kn(n)===o;return this.processSegment(c,l,w,D,S?ue:o,!0).pipe(z(O=>new on(v,O instanceof on?[O]:[])))}))):Ro(i)))}getChildConfig(e,i,n){return i.children?G({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?G({routes:i._loadedRoutes,injector:i._loadedInjector}):xN(e,i,n,this.urlSerializer).pipe(Be(r=>r?this.configLoader.loadChildren(e,i).pipe(ze(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):TN(i))):G({routes:[],injector:e})}};OC=(()=>{let e=class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===ue);return r}getResolvedTitleForRoute(n){return n.data[wa]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:()=>T(QN),providedIn:"root"});let t=e;return t})(),QN=(()=>{let e=class e extends OC{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(M(Jb))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qm=new $("",{providedIn:"root",factory:()=>({})}),Zm=new $(""),ZN=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=T(Rp)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return G(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Zi(n.loadComponent()).pipe(z(FC),ze(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),xi(()=>{this.componentLoaders.delete(n)})),o=new Kr(r,()=>new ge).pipe(Zr());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return G({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=KN(r,this.compiler,n,this.onLoadEndListener).pipe(xi(()=>{this.childrenLoaders.delete(r)})),a=new Kr(s,()=>new ge).pipe(Zr());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();Km=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:()=>T(JN),providedIn:"root"});let t=e;return t})(),JN=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),XN=new $(""),eR=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ge,this.transitionAbortSubject=ne
8w ge,this.configLoader=T(ZN),this.environmentInjector=T(zt),this.urlSerializer=T(Hm),this.rootContexts=T(mu),this.location=T(Io),this.inputBindingEnabled=T(zm,{optional:!0})!==null,this.titleStrategy=T(OC),this.options=T(Qm,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=T(Km),this.createViewTransition=T(XN,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>G(void 0),this.rootComponentType=null;let n=o=>this.events.next(new xm(o)),r=o=>this.events.next(new Sm(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(W(_(_({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new Pe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ca,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(it(s=>s.id!==0),z(s=>W(_({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Qe(s=>{let a=!1,l=!1;return G(s).pipe(Qe(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",sn.SupersededByNewNavigation),yt;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?W(_({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let g="";return this.events.next(new Rr(c.id,this.urlSerializer.serialize(c.rawUrl),g,bm.IgnoredSameUrlNavigation)),c.resolve(null),yt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return G(c).pipe(Qe(g=>{let v=this.transitions?.getValue();return this.events.next(new ha(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),v!==this.transitions?.getValue()?yt:Promise.resolve(g)}),UN(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ze(g=>{s.targetSnapshot=g.targetSnapshot,s.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=W(_({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let v=new cu(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(v)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:g,extractedUrl:v,source:w,restoredState:D,extras:S}=c,O=new ha(g,this.urlSerializer.serialize(v),w,D);this.events.next(O);let K=DC(this.rootComponentType).snapshot;return this.currentTransition=s=W(_({},c),{targetSnapshot:K,urlAfterRedirects:v,extras:W(_({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=v,G(s)}else{let g="";return this.events.next(new Rr(c.id,this.urlSerializer.serialize(c.extractedUrl),g,bm.IgnoredByUrlHandlingStrategy)),c.resolve(null),yt}}),ze(c=>{let u=new Cm(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),z(c=>(this.currentTransition=s=W(_({},c),{guards:aN(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),vN(this.environmentInjector,c=>this.events.next(c)),ze(c=>{if(s.guardsResult=c.guardsResult,Lo(c.guardsResult))throw IC(this.urlSerializer,c.guardsResult);let u=new _m(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),it(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",sn.GuardRejected),!1)),pm(c=>{if(c.guards.canActivateChecks.length)return G(c).pipe(ze(u=>{let d=new Dm(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Qe(u=>{let d=!1;return G(u).pipe(qN(this.paramsInheritanceStrategy,this.environmentInjector),ze({next:()=>d=!0,complete:()=>
8{d||this.cancelNavigationTransition(u,"",sn.NoDataFromResolver)}}))}),ze(u=>{let d=new Em(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),pm(c=>{let u=d=>{let g=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(d.routeConfig).pipe(ze(v=>{d.component=v}),z(()=>{})));for(let v of d.children)g.push(...u(v));return g};return no(u(c.targetSnapshot.root)).pipe(Di(null),Je(1))}),pm(()=>this.afterPreactivation()),Qe(()=>{let{currentSnapshot:c,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?De(d).pipe(z(()=>s)):G(s)}),z(c=>{let u=X3(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=W(_({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),ze(()=>{this.events.next(new pa)}),sN(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Je(1),ze({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Yt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),gs(this.transitionAbortSubject.pipe(ze(c=>{throw c}))),xi(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",sn.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),tn(c=>{if(l=!0,MC(c))this.events.next(new Qi(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),nN(c)?this.events.next(new ma(c.url)):s.resolve(!1);else{this.events.next(new fa(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return yt}))}))}cancelNavigationTransition(n,r,o){let s=new Qi(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();nR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:()=>T(iR),providedIn:"root"});let t=e;return t})(),Bm=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},iR=(()=>{let e=class e extends Bm{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Tn(e)))(o||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),PC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:()=>T(rR),providedIn:"root"});let t=e;return t})(),rR=(()=>{let e=class e extends PC{constructor(){super(...arguments),this.location=T(Io),this.urlSerializer=T(Hm),this.options=T(Qm,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=T(Km),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Wi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=DC(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof ha)this.stateMemento=this.createStateMemento();else if(n instanceof Rr)this.rawUrlTree=r.initialUrl;else if(n instanceof cu){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof pa?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof Qi&&(n.code===sn.GuardRejected||n.c
8ode===sn.NoDataFromResolver)?this.restoreHistory(r):n instanceof fa?this.restoreHistory(r,!0):n instanceof Yt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=_(_({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=_(_({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Tn(e)))(o||e)}})(),e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),aa=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(aa||{});aR={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lR={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},an=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=T(Lc),this.stateManager=T(PC),this.options=T(Qm,{optional:!0})||{},this.pendingTasks=T(Pi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=T(eR),this.urlSerializer=T(Hm),this.location=T(Io),this.urlHandlingStrategy=T(Km),this._events=new ge,this.errorHandler=this.options.errorHandler||sR,this.navigated=!1,this.routeReuseStrategy=T(nR),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=T(Zm,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!T(zm,{optional:!0}),this.eventsSubscription=new Ve,this.isNgZoneEnabled=T(Ee)instanceof Ee&&Ee.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof Qi&&r.code!==sn.Redirect&&r.code!==sn.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Yt)this.navigated=!0;else if(r instanceof ma){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||tR(o.source)};this.scheduleNavigation(a,ca,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}uR(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.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),ca,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=_({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Gm),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(l){case"merge":d=_(_({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let g;try{let v=o?o.snapshot:this.routerState.snapshot.root;g=wC(v)}
8catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),g=this.currentUrlTree.root}return bC(g,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Lo(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ca,null,r)}navigate(n,r={skipLocationChange:!1}){return cR(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.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=_({},aR):r===!1?o=_({},lR):o=r,Lo(n))return rC(this.currentUrlTree,n,o);let s=this.parseUrl(n);return rC(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((g,v)=>{l=g,c=v});let d=this.pendingTasks.add();return oR(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(g=>Promise.reject(g))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();$o=(()=>{let e=class e{constructor(n,r,o,s,a,l){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new ge,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Yt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||r||o||s||a||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(l,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:lw(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,n,r):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(b(an),b(kr),tp("tabindex"),b(_t),b(ke),b(Wn))},e.\u0275dir=xe({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&A("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&V("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Te.HasDecoratorInputTransform,"preserveFragment","preserveFragment",$i],skipLocationChange:[Te.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",$i],replaceUrl:[Te.HasDecoratorInputTransform,"replaceUrl","replaceUrl",$i],routerLink:"routerLink"},standalone:!0,features:[Dp,ot]});let t=e;return t})(),dR=new $("");pR=new $("",{factory:()=>new ge}),mR=new $("",{providedIn:"root",factory:()=>1}),gR=new $("")});function gn(t){t||(fc(gn),t=T(Oi));let e=new me(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(gs(e))}function Ym(t,e){!e?.injector&&fc(Ym);let i=e?.injector??T(ft),n=new en(1),r=Qs(()=>{let o;try{o=t()}catch(s){xo(()=>n.error(s));return}xo(()=>n.next(o))},{injector:i,manualCleanup:!0}
8);return i.get(Oi).onDestroy(()=>{r.destroy(),n.complete()}),n.asObservable()}var vu=y(()=>{"use strict";L();rt();Ii();});function VC(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function jC(t){return t}function Jm(t,e){e=e||{};let i=e.delimiter||".",n=e.maxDepth,r=e.transformKey||jC,o={};function s(a,l,c){c=c||1,Object.keys(a).forEach(function(u){let d=a[u],g=e.safe&&Array.isArray(d),v=Object.prototype.toString.call(d),w=VC(d),D=v==="[object Object]"||v==="[object Array]",S=l?l+i+r(u):r(u);if(!g&&!w&&D&&Object.keys(d).length&&(!e.maxDepth||c<n))return s(d,S,c+1);o[S]=d})}return s(t),o}function Xm(t,e){e=e||{};let i=e.delimiter||".",n=e.overwrite||!1,r=e.transformKey||jC,o={};if(VC(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function a(u){let d=Number(u);return isNaN(d)||u.indexOf(".")!==-1||e.object?u:d}function l(u,d,g){return Object.keys(g).reduce(function(v,w){return v[u+i+w]=g[w],v},d)}function c(u){let d=Object.prototype.toString.call(u),g=d==="[object Array]",v=d==="[object Object]";if(u){if(g)return!u.length;if(v)return!Object.keys(u).length}else return!0}return t=Object.keys(t).reduce(function(u,d){let g=Object.prototype.toString.call(t[d]);return!(g==="[object Object]"||g==="[object Array]")||c(t[d])?(u[d]=t[d],u):l(d,u,Jm(t[d],e))},{}),Object.keys(t).forEach(function(u){let d=u.split(i).map(r),g=a(d.shift()),v=a(d[0]),w=o;for(;v!==void 0;){if(g==="__proto__")return;let D=Object.prototype.toString.call(w[g]),S=D==="[object Object]"||D==="[object Array]";if(!n&&!S&&typeof w[g]<"u")return;(n&&!S||!n&&w[g]==null)&&(w[g]=typeof v=="number"&&!e.object?[]:{}),w=w[g],d.length>0&&(g=a(d.shift()),v=a(d[0]))}w[g]=Xm(t[u],e)}),o}var $C=y(()=>{"use strict"});function eg(t,e){return t&&(Object.prototype.hasOwnProperty.call(t,e)?t[e]:e.split(".").reduce((i,n)=>i?.[n],t))}function vR(t,e,i){t=_({},t);let n=e.split("."),r=n.length-1;return n.reduce((o,s,a)=>(a===r?o[s]=i:o[s]=Array.isArray(o[s])?o[s].slice():_({},o[s]),o&&o[s]),t),t}function qC(t){return t?Array.isArray(t)?t.length:sg(t)?Object.keys(t).length:t?t.length:0:0}function yR(t){return qC(t)===0}function wR(t){return typeof t=="function"}function Bo(t){return typeof t=="string"}function sg(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function zC(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,i)=>i==0?e.toLowerCase():e.toUpperCase()).replace(/\s+|_|-|\//g,"")}function ig(t){return t==null}function BC(t){return ig(t)===!1}function GC(t){return t&&typeof t.scope=="string"}function bR(t){return t&&sg(t.loader)}function CR(t){return Xm(t)}function HC(t){return Jm(t,{safe:!0})}function _R(t={}){return W(_(_({},Da),t),{missingHandler:_(_({},Da.missingHandler),t.missingHandler),flatten:_(_({},Da.flatten),t.flatten)})}function ER(t){let[e,i]=t.interpolation;return new RegExp(`${e}([^${e}${i}]*?)${i}`,"g")}function Ea(t){if(!t)return"";let e=t.split("/");return e.pop(),e.join("/")}function Ki(t){return t?t.split("/").pop():""}function rg(t,e,i="|"){if(Bo(t)){let n=t.split(i),r=n.pop();return r===e?[!0,n.toString()]:[!1,r]}return[!1,""]}function YC(t,e){let[i]=rg(e,"static");return i?!1:!!t.config.reRenderOnLangChange}function JC(t){return t?e=>e:Je(1)}function TR(t,e){return Object.keys(t).reduce((i,n)=>(i[`${e}/${n}`]=t[n],i),{})}function ag(t,e){return bR(t)?TR(t.loader,e):void 0}function tg(t){return{scope:Ea(t)||null,langName:Ki(t)}}function XC(t){let{path:e,inlineLoader:i,mainLoader:n,data:r}=t;if(i){let o=i[e];if(wR(o)===!1)throw`You're using an inline loader but didn't provide a loader for ${e}`;return i[e]().then(s=>s.default?s.default:s)}return n.getTranslation(e,r)}function MR({mainLoader:t,path:e,data:i,fallbackPath:n,inlineLoader:r}){return(n?[e,n]:[e]).map(s=>{let a=XC({path:s,mainLoader:t,inlineLoader:r,data:i});return De(a).pipe(z(l=>({translation:l,lang:s})))})}function i_(t){let e=[FR(DR),LR(xR),VR(SR),PR(IR)];return t.config&&e.push(kR(t.config)),t.loader&&e.push(OR(t.loader)),e}function kR(t){return Vt([{provide:Ho,useValue:_R(t)}])}function OR(t){return Vt([{provide:UC,useClass:t}])}function FR(t){return Vt([{provide:WC,useClass:t,deps:[Ho]}])}function PR(t){return Vt([{provide:KC,useClass:t,deps:[Ho]}])}function LR(t){return Vt([{provide:QC,useClass:t}])}function VR(t){return Vt([{provide:ZC,useClass:t}])}var ng,UC,Ho,Da,WC,DR,QC,xR,ZC,SR,KC,IR,AR,Ye,NR,og,e_,RR,t_,yu,wu,ee,
8n_,ye,bB,CB,te=y(()=>{"use strict";L();L();rt();vu();$C();ng=class{translations;constructor(e){this.translations=e}getTranslation(e){return G(this.translations.get(e)||{})}},UC=new $("TRANSLOCO_LOADER");Ho=new $("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>Da}),Da={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};WC=new $("TRANSLOCO_TRANSPILER"),DR=(()=>{class t{config=T(Ho,{optional:!0})??Da;get interpolationMatcher(){return ER(this.config)}transpile({value:i,params:n={},translation:r,key:o}){if(Bo(i)){let s,a=i;for(;(s=this.interpolationMatcher.exec(a))!==null;){let[l,c]=s;a=a.replace(l,()=>{let u=c.trim(),d=eg(n,u);return BC(d)?d:BC(r[u])?this.transpile({params:n,translation:r,key:o,value:r[u]}):""})}return a}else n&&(sg(i)?i=this.handleObject({value:i,params:n,translation:r,key:o}):Array.isArray(i)&&(i=this.handleArray({value:i,params:n,translation:r,key:o})));return i}handleObject({value:i,params:n={},translation:r,key:o}){let s=i;return Object.keys(n).forEach(a=>{let l=this.transpile({value:eg(s,a),params:eg(n,a),translation:r,key:o});s=vR(s,a,l)}),s}handleArray(r){var o=r,{value:i}=o,n=ts(o,["value"]);return i.map(s=>this.transpile(_({value:s},n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=k({token:t,factory:t.\u0275fac})}return t})();QC=new $("TRANSLOCO_MISSING_HANDLER"),xR=(()=>
8{class t{handle(i,n){if(n.missingHandler.logMissingKey&&!n.prodMode){let r=`Missing translation for '${i}'`;console.warn(`%c ${r}`,"font-size: 12px; color: red")}return i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=k({token:t,factory:t.\u0275fac})}return t})(),ZC=new $("TRANSLOCO_INTERCEPTOR"),SR=(()=>{class t{preSaveTranslation(i){return i}preSaveTranslationKey(i,n){return n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=k({token:t,factory:t.\u0275fac})}return t})(),KC=new $("TRANSLOCO_FALLBACK_STRATEGY"),IR=(()=>{class t{userConfig;constructor(i){this.userConfig=i}getNextLangs(){let i=this.userConfig.fallbackLang;if(!i)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(i)?i:[i]}static \u0275fac=function(n){return new(n||t)(M(Ho))};static \u0275prov=k({token:t,factory:t.\u0275fac})}return t})();Ye=(()=>{class t{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new ge;events$=this.events.asObservable();config;constructor(i,n,r,o,s,a){this.loader=i,this.parser=n,this.missingHandler=r,this.interceptor=o,this.fallbackStrategy=a,this.loader||(this.loader=new ng(this.translations)),AR=this,this.config=JSON.parse(JSON.stringify(s)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Pe(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.events$.pipe(gn()).subscribe(l=>{l.type==="translationLoadSuccess"&&l.wasFailure&&this.setActiveLang(l.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(i){this.defaultLang=i}getActiveLang(){return this.lang.getValue()}setActiveLang(i){return this.parser.onLangChanged?.(i),this.lang.next(i),this.events.next({type:"langChanged",payload:tg(i)}),this}setAvailableLangs(i){this.availableLangs=i}getAvailableLangs(){return this.availableLangs}load(i,n={}){let r=this.cache.get(i);if(r)return r;let o,s=this._isLangScoped(i),a;s&&(a=Ea(i));let l={path:i,mainLoader:this.loader,inlineLoader:n.inlineLoader,data:s?{scope:a}:void 0};if(this.useFallbackTranslation(i)){let u=s?`${a}/${this.firstFallbackLang}`:this.firstFallbackLang,d=MR(W(_({},l),{fallbackPath:u}));o=bn(d)}else{let u=XC(l);o=De(u)}let c=o.pipe(ms(this.config.failedRetries),ze(u=>{if(Array.isArray(u)){u.forEach(d=>{this.handleSuccess(d.lang,d.translation),d.lang!==i&&this.cache.set(d.lang,G({}))});return}this.handleSuccess(i,u)}),tn(u=>(this.config.prodMode||console.error(`Error while trying to load "${i}"`,u),this.handleFailure(i,n))),Si(1));return this.cache.set(i,c),c}translate(i,n={},r=this.getActiveLang()){if(!i)return i;let{scope:o,resolveLang:s}=this.resolveLangAndScope(r);if(Array.isArray(i))return i.map(c=>this.translate(o?`${o}.${c}`:c,n,s));i=o?`${o}.${i}`:i;let a=this.getTranslation(s),l=a[i];return l?this.parser.transpile({value:l,params:n,translation:a,key:i}):this._handleMissingKey(i,l,n)}selectTranslate(i,n,r,o=!1){let s,a=(c,u)=>this.load(c,u).pipe(z(()=>o?this.translateObject(i,n,c):this.translate(i,n,c)));if(ig(r))return this.langChanges$.pipe(Qe(c=>a(c)));if(r=Array.isArray(r)?r[0]:r,GC(r)){let c=r;r=c.scope,s=ag(c,c.scope)}if(r=r,this.isLang(r)||this.isScopeWithLang(r))return a(r);let l=r;return this.langChanges$.pipe(Qe(c=>a(`${l}/${c}`,{inlineLoader:s})))}isScopeWithLang(i){return this.isLang(Ki(i))}translateObject(i,n={},r=this.getActiveLang()){if(Bo(i)||Array.isArray(i)){let{resolveLang:s,scope:a}=this.resolveLangAndScope(r);if(Array.isArray(i))return i.map(u=>this.translateObject(a?`${a}.${u}`:u,n,s));let l=this.getTranslation(s);i=a?`${a}.${i}`:i;let c=CR(this.getObjectByKey(l,i));return yR(c)?this.translate(i,n,r):this.parser.transpile({value:c,params:n,translation:l,key:i})}let o=[];for(let[s,a]of this.getEntries(i))o.push(this.translateObject(s,a,r));return o}selectTranslateObject(i,n,r){if(Bo(i)||Array.isArray(i))return this.selectTranslate(i,n,r,!0);let[[o,s],...a]=this.getEntries(i);
8return this.selectTranslateObject(o,s,r).pipe(z(l=>{let c=[l];for(let[u,d]of a)c.push(this.translateObject(u,d,r));return c}))}getTranslation(i){if(i){if(this.isLang(i))return this.translations.get(i)||{};{let{scope:n,resolveLang:r}=this.resolveLangAndScope(i),o=this.translations.get(r)||{};return this.getObjectByKey(o,n)}}return this.translations}selectTranslation(i){let n=this.langChanges$;if(i){let r=Ki(i)!==i;this.isLang(i)||r?n=G(i):n=this.langChanges$.pipe(z(o=>`${i}/${o}`))}return n.pipe(Qe(r=>this.load(r).pipe(z(()=>this.getTranslation(r)))))}setTranslation(i,n=this.getActiveLang(),r={}){let s=_(_({},{merge:!0,emitChange:!0}),r),a=Ea(n),l=i;if(a){let v=this.getMappedScope(a);l=HC({[v]:i})}let c=a?Ki(n):n,u=_(_({},s.merge&&this.getTranslation(c)),l),d=this.config.flatten.aot?u:HC(u),g=this.interceptor.preSaveTranslation(d,c);this.translations.set(c,g),s.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(i,n,r={}){let o=r.lang||this.getActiveLang(),s=this.interceptor.preSaveTranslationKey(i,n,o),a={[i]:s};this.setTranslation(a,o,W(_({},r),{merge:!0}))}setFallbackLangForMissingTranslation({fallbackLang:i}){let n=Array.isArray(i)?i[0]:i;i&&this.useFallbackTranslation(n)&&(this.firstFallbackLang=n)}_handleMissingKey(i,n,r){if(this.config.missingHandler.allowEmpty&&n==="")return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;let o=this.translate(i,r,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,o}return this.missingHandler.handle(i,this.getMissingHandlerData(),r)}_isLangScoped(i){return this.getAvailableLangsIds().indexOf(i)===-1}isLang(i){return this.getAvailableLangsIds().indexOf(i)!==-1}_loadDependencies(i,n){let r=Ki(i);return this._isLangScoped(i)&&!this.isLoadedTranslation(r)?no([this.load(r),this.load(i,{inlineLoader:n})]):this.load(i,{inlineLoader:n})}_completeScopeWithLang(i){return this._isLangScoped(i)&&!this.isLang(Ki(i))?`${i}/${this.getActiveLang()}`:i}_setScopeAlias(i,n){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[i]=n}ngOnDestroy(){this.cache.clear()}isLoadedTranslation(i){return qC(this.getTranslation(i))}getAvailableLangsIds(){let i=this.getAvailableLangs()[0];return Bo(i)?this.getAvailableLangs():this.getAvailableLangs().map(n=>n.id)}getMissingHandlerData(){return W(_({},this.config),{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(i){return this.config.missingHandler.useFallbackTranslation&&i!==this.firstFallbackLang}handleSuccess(i,n){this.setTranslation(n,i,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:tg(i)}),this.failedLangs.forEach(r=>this.cache.delete(r)),this.failedLangs.clear()}handleFailure(i,n){ig(n.failedCounter)&&(n.failedCounter=0,n.fallbackLangs||(n.fallbackLangs=this.fallbackStrategy.getNextLangs(i)));let r=i.split("/"),s=n.fallbackLangs[n.failedCounter];if(this.failedLangs.add(i),this.cache.has(s))return this.handleSuccess(s,this.getTranslation(s)),yt;let a=s===r[r.length-1];if(!s||a){let c="Unable to load translation and all the fallback languages";throw r.length>1&&(c+=", did you misspelled the scope name?"),new Error(c)}let l=s;return r.length>1&&(r[r.length-1]=s,l=r.join("/")),n.failedCounter++,this.events.next({type:"translationLoadFailure",payload:tg(i)}),this.load(l,n)}getMappedScope(i){let{scopeMapping:n={}}=this.config;return n[i]||zC(i)}resolveLangAndScope(i){let n=i,r;if(this._isLangScoped(i)){let o=Ki(i),s=this.isLang(o);n=s?o:this.getActiveLang(),r=this.getMappedScope(s?Ea(i):i)}return{scope:r,resolveLang:n}}getObjectByKey(i,n){let r={},o=`${n}.`;for(let s in i)s.startsWith(o)&&(r[s.replace(o,"")]=i[s]);return r}getEntries(i){return i instanceof Map?i.entries():Object.entries(i)}static \u0275fac=function(n){return new(n||t)(M(UC,8),M(WC),M(QC),M(ZC),M(Ho),M(KC))};static \u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),NR=(()=>{class t{html;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=B({type:t,selectors:[["ng-component"]],inputs:{html:"html"},standalone:!0,features:[H],decls:1,vars:1,consts:[[1,"transloco-loader-template",3,"innerHTML"]],template:function(n,r){n&1&&x(0,"div",0),n&2&&E("innerHTML",r.html,Le)},encapsulation:2})}return t})(),og=class{view;vcr;constructor(e,i){this.view=e,this.vcr=i}attachView(){if(this.view instanceof xn)this.vcr.createEmbeddedView(this.view);else if(Bo(this.view)){let e=this.vcr.createComponent(NR);e.instance.html=this.view,e.hostView.detectChanges()}else this.vcr.createComponent(this.view)}detachView(){this.vcr.clear()}},e_=new $("TRANSLOCO_LANG"),RR=new $("TRANSLOCO_LOADING_TEMPLATE"),t_=new $("TRANSLOCO_SCOPE"),yu=class{initialized=!1;resolve({inline:e,provider:i,active:n}){let r=n;if(this.initialized)return r=n,r;if(i){let[,o]=rg(i,"static");r=o}if(e){let[,o]=rg(e,"static");r=o}return this.initialized=!0,r}resolveLangBasedOnScope(e){return Ea(e)?Ki(e):e}resolveLangPath(e,i){return i?`${i}/${e}`:e}},wu=class{service;constructor(e){this.service=e}resolve(e){let{inline:i,provider:n}=e;if(i)return i;if(n){if(GC(n)){let{scope:r,alias:o=zC(r)}=n;return this.service._setScopeAlias(r,o),r}return n}}},ee=(()=>{class t{destroyRef=T(Oi);service=T(Ye);tpl=T(xn,{optional:!0});providerLang=T(e_,{optional:!0});providerScope=T(t_,{optional:!0});providedLoadingTpl=T(RR,{optional:!0});cdr=T(Dt);host=T(ke);vcr=T(Mn);renderer=T(_t);view;memo=new Map;key;params={};inlineScope;
8inlineRead;prefix;inlineLang;inlineTpl;currentLang;loaderTplHandler;initialized=!1;path;langResolver=new yu;scopeResolver=new wu(this.service);strategy=this.tpl===null?"attribute":"structural";static ngTemplateContextGuard(i,n){return!0}ngOnInit(){let i=YC(this.service,this.providerLang||this.inlineLang);if(this.service.langChanges$.pipe(Qe(n=>{let r=this.langResolver.resolve({inline:this.inlineLang,provider:this.providerLang,active:n});return Array.isArray(this.providerScope)?bn(this.providerScope.map(o=>this.resolveScope(r,o))):this.resolveScope(r,this.providerScope)}),JC(i),gn(this.destroyRef)).subscribe(()=>{this.currentLang=this.langResolver.resolveLangBasedOnScope(this.path),this.strategy==="attribute"?this.attributeStrategy():this.structuralStrategy(this.currentLang,this.prefix||this.inlineRead),this.cdr.markForCheck(),this.initialized=!0}),!this.initialized){let n=this.resolveLoadingContent();n&&(this.loaderTplHandler=new og(n,this.vcr),this.loaderTplHandler.attachView())}}ngOnChanges(i){this.strategy==="attribute"&&Ob
8ject.keys(i).some(r=>!i[r].firstChange)&&this.attributeStrategy()}attributeStrategy(){this.detachLoader(),this.renderer.setProperty(this.host.nativeElement,"innerText",this.service.translate(this.key,this.params,this.currentLang))}structuralStrategy(i,n){this.memo.clear();let r=this.getTranslateFn(i,n);this.view?(this.view.context.$implicit=r,this.view.context.currentLang=this.currentLang):(this.detachLoader(),this.view=this.vcr.createEmbeddedView(this.tpl,{$implicit:r,currentLang:this.currentLang}))}getTranslateFn(i,n){return(r,o)=>{let s=n?`${n}.${r}`:r,a=o?`${s}${JSON.stringify(o)}`:s;return this.memo.has(a)||this.memo.set(a,this.service.translate(s,o,i)),this.memo.get(a)}}resolveLoadingContent(){return this.inlineTpl||this.providedLoadingTpl}ngOnDestroy(){this.memo.clear()}detachLoader(){this.loaderTplHandler?.detachView()}resolveScope(i,n){let r=this.scopeResolver.resolve({inline:this.inlineScope,provider:n});this.path=this.langResolver.resolveLangPath(i,r);let o=ag(n,r);return this.service._loadDependencies(this.path,o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=xe({type:t,selectors:[["","transloco",""]],inputs:{key:[Te.None,"transloco","key"],params:[Te.None,"translocoParams","params"],inlineScope:[Te.None,"translocoScope","inlineScope"],inlineRead:[Te.None,"translocoRead","inlineRead"],prefix:[Te.None,"translocoPrefix","prefix"],inlineLang:[Te.None,"translocoLang","inlineLang"],inlineTpl:[Te.None,"translocoLoadingTpl","inlineTpl"]},standalone:!0,features:[ot]})}return t})(),n_=(()=>{class t{service;providerScope;providerLang;cdr;subscription=null;
8lastValue="";lastKey;path;langResolver=new yu;scopeResolver;constructor(i,n,r,o){this.service=i,this.providerScope=n,this.providerLang=r,this.cdr=o,this.scopeResolver=new wu(this.service)}transform(i,n,r){if(!i)return i;let o=n?`${i}${JSON.stringify(n)}`:i;if(o===this.lastKey)return this.lastValue;this.lastKey=o,this.subscription?.unsubscribe();let s=YC(this.service,this.providerLang||r);return this.subscription=this.service.langChanges$.pipe(Qe(a=>{let l=this.langResolver.resolve({inline:r,provider:this.providerLang,active:a});return Array.isArray(this.providerScope)?bn(this.providerScope.map(c=>this.resolveScope(l,c))):this.resolveScope(l,this.providerScope)}),JC(s)).subscribe(()=>this.updateValue(i,n)),this.lastValue}ngOnDestroy(){this.subscription?.unsubscribe(),this.subscription=null}updateValue(i,n){let r=this.langResolver.resolveLangBasedOnScope(this.path);this.lastValue=this.service.translate(i,n,r),this.cdr.markForCheck()}resolveScope(i,n){let r=this.scopeResolver.resolve({inline:void 0,provider:n});this.path=this.langResolver.resolveLangPath(i,r);let o=ag(n,r);return this.service._loadDependencies(this.path,o)}static \u0275fac=function(n){return new(n||t)(b(Ye,16),b(t_,24),b(e_,24),b(Dt,16))};static \u0275pipe=_r({name:"transloco",type:t,pure:!1,standalone:!0})}return t})(),ye=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Lt({type:t});static \u0275inj=Pt({})}return t})();bB=new $("TRANSLOCO_TEST_LANGS - Available testing languages"),CB=new $("TRANSLOCO_TEST_OPTIONS - Testing options")});var jR,r_,o_=y(()=>{"use strict";jR=[{userId:"wim",question:"Is sports good for our health?",createdAt:new Date,id:"0"},{userId:"wim",question:"Getting results",createdAt:new Date,id:"1"},{userId:"wim",question:"Summarizing stuff",createdAt:new Date,id:"2"},{id:"3",createdAt:new Date,question:`Yes, sports are good for our health. Engagin g in physical exercise has numerous benefits for our overall well-being. Regular sports activities can help improve cardiovascular health, increase muscle strength and endurance, enhance flexibility and balance, and promote weight management. Sports also have positive effects on mental health, reducing stress and anxiety, improving mood, and boosting self-esteem. 9 10According to the search results, several studies highlight the beneficial effects of physical exercise on various health aspects. One study suggests that combining voluntary physical exercise with vitamin D supplementation can improve body weight management, glucose homeostasis, metabolic inflammation, and liver steatosis in obese mice models[^1]. Another study emphasizes the importance of immediate reporting and removal from athletic activity after a concussion to prevent prolonged recovery[^2]. Additionally, exercise has been found to be beneficial in the prevention and treatment of Alzheimer's disease, as it helps maintain cognition and modulates various brain functions[^3]. Furthermore, physical exercise has been shown to improve physical performance and activities of daily living in individuals with Parkinson's disease[^4]. 11 12It is important to note that while sports and physical exercise have numerous benefits, it is essential to engage in them safely and appropriately. It is recommended to consult with healthcare professionals or trainers to determine the most suitable sports activities and exercise routines based on individual health conditions and goals. 13 14For more information, you can refer to the following search result links: 15 161. [Combined Beneficial Effect of Voluntary Physical Exercise and Vitamin D Supplementation in Diet-induced Obese C57BL/6J Mice](http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2507725074) 172. [Playing through it: Delayed reporting and removal from athletic activity after concussion predicts prolonged recovery](http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_1790457076) 183. [Physical exercise in the prevention and treatment of Alzheimer's disease](http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2433240112) 194. [Is Physical Exercise Beneficial for Persons with Parkinson?s Disease?](http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_19439155)`,answer:{moreQuestions:[],results:[{id:"proquest_miscellaneous_2507725074",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2507725074",title:"Combined Beneficial Effect of Voluntary Physical Exercise and Vitamin D Supplementation in Diet-induced Obese C57BL/6J Mice",description:"Purpose Physical exercise (PE) combined with
19nutritional approaches has beneficial effects that are widely advocated to improve metabolic health. Here we used voluntary PE together with vitamin D (VD) supplementation, which has already shown beneficial effects in primary and tertiary prevention in obese mice models, to study their combined additive effects on body weight management, glucose homeostasis, metabolic inflammation, and liver steatosis as key markers of metabolic health. Methods Ten-week-old male C57BL/6J mice were fed a high-fat/sucrose (HFS) diet for 10 wk, then assigned to a 15-wk intervention period with PE, VD supplementation, or both PE and VD supplementation. Morphological, histological, and molecular phenotype data were characterized. Results The HFS-induced increases in body mass, adiposity, and adipocyte hypertrophy were improved by PE but not by VD supplementation. The HFS-induced inflammation (highlighted by chemokines mRNA levels) in inguinal adipose tissue was decreased by PE and/or VD supplementation. Furthermore, the intervention combining PE and VD showed additive effects on restoring insulin sensitivity and improving hepatic steatosis, as demonstrated through a normalization of size and number of hepatic lipid droplets and triglyceride content and a significant molecular-level decrease in the expression of genes coding for key enzymes in hepatic de novo lipogenesis. Conclusions Taken together, our data show beneficial effects of combining PE and VD supplementation on obesity-associated comorbidities such as insulin resistance and hepatic disease in mice. This combined exercise-nutritional support strategy could prove valuable in obesity management programs.",score:39.64586},{id:"proquest_miscellaneous_1790457076",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_1790457076",title:"Playing through it: Delayed reporting and removal from athletic activity after concussion predicts prolonged recovery",description:"Preclinical research has demonstrated a window of vulnerability in the immediate aftermath of concussion wherein continued activity and stimulation can impair or prolong neurobehavioral recovery. However, this concept has not been quantified in a human population.Context: To examine the effect of delayed reporting and removal from athletic activity after concussion on recovery time.Objective: Cross-sectional study.Design: A National Collegiate Athletic Association Division I university.Setting: Ninety-seven athletes who sustained a sport-related concussion between 2008 and 2015 were analyzed (age = 20.4 \uFFFD\uFFFD 1.3 years). Athletes were grouped as immediate removal from activity (I-RFA) or delayed removal from activity (D-RFA).Patients or Other Participants: Days missed was defined as the number of days between the concussion-causing event and clearance for return to contact. Associations between RFA group and prolonged (8 or more days') versus normal (7 or fewer days') recovery were also analyzed.Main Outcome Measure(s): Fifty (51.5%) of the 97 athletes did not immediately report concussion symptoms. The D-RFA athletes averaged 4.9 more days missed than the I-RFA athletes. Membership in the specific RFA group predicted days missed even after controlling for sex, concussion history, learning disability or attention-deficit/hyperactivity disorder diagnosis, diagnosed psychological disorder, and acute symptom severity (R 2 change = 0.097, \uFFFD\uFFFD = .319, P = .002). The D-RFA athletes were approximately 2.2 times more likely to have a prolonged recovery (8 or more days) compared with the I-RFA athletes (\uFFFD\uFFFD2 = 10.268, P = .001, \uFFFD\uFFFD = 0.325).Results: Athletes who do not immediately report symptoms of a concussion and continue to participate in athletic activity are at risk for longer recoveries than athletes who immediately report symptoms and are immediately removed from activity. Continuing to participate in athletic activity during the immediate aftermath of a concussion potentially exposes the already injured brain to compounded neuropathophysiologic processes.Conclusions:",score:36.868587},{id:"proquest_miscellaneous_2433240112",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2433240112",title:"Physical exercise in the prevention and treatment of Alzheimer's disease",description:" Low levels of physical activity are a risk factor associated with Alzhe
19imer's disease. Older adults who exercise are more likely to maintain cognition. Exercise modulates amyloid \uFFFD\uFFFD turnover, inflammation, synthesis, and release of neurotrophins, and cerebral blood flow. Dementia is one of the greatest global challenges for health and social care in the 21st century. Alzheimer's disease (AD), the most common type of dementia, is by no means an inevitable consequence of growing old. Several lifestyle factors may increase, or reduce, an individual's risk of developing AD. Much has been written over\uFFFD\uFFFDthe ages about the benefits of exercise and physical activity. Among the risk factors associated with AD is a low level of physical activity. The relationship between physical and mental health was established several years ago. In this review, we discuss the role of exercise (aerobic and resistance) training as a therapeutic strategy for the treatment and prevention of AD. Older adults who exercise are more likely to maintain cognition. We address the main protective mechanism on brain function modulated by physical exercise by examining both human and animal studies. We will pay especial attention to the potential role of exercise in the modulation of amyloid \uFFFD\uFFFD turnover, inflammation, synthesis and release of neurotrophins, and improvements in cerebral blood flow. Promoting changes in lifestyle in presymptomatic and predementia disease stages may have the potential for delaying one-third of dementias worldwide. Multimodal interventions that include the adoption of an active lifestyle should be recommended for older populations.",score:35.97483},{id:"proquest_miscellaneous_19439155",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_19439155",title:"Is Physical Exercise Beneficial for Persons with Parkinson's Disease?",description:"To review existing studies evaluating the effectiveness of physical exercise on mortality, strength, balance, mobility, and activities of daily living (ADL) for sufferers of Parkinson's disease (PD). The following databases were searched (1) Cochrane Database of Systematic Reviews, (2) Cumulative Index to Nursing and Allied Health Literature (CINAHL), (3) PubMed and (4) Medline/NARIC (National Rehabilitation Information Center) using combinations of key words Parkinson's disease and physical exercise. Only articles written in English were included. References cited were also examined. Studies were eligible if (1) only patients with PD were included in the intervention study (there were many studies that evaluated the benefits of exercise after stroke, cardiac arrest, sports injuries, surgery, and arthritis, but only a few for patients with PD), (2) the intervention included some form of physical or therapeutic exercise, (3) the effects of the physical exercise were evaluated, and (4) the studies were published in a refereed journal. Because few studies were found that dealt with PD patients exclusively, all studies that evaluated the effectiveness of physical exercise for only PD patients were included. Seven studies met our criteria and were selected. Three of the selected studies were randomized controlled studies, 1 was an open trial, and the other 3 relied on patients' own assessments. Outcomes in the studies were measured in terms of physical improvements in patients with PD, such as improved axial rotation, functional reach, flexibility, balance, muscle strength, short-step gait, and mobility. All studies reviewed show that exercise improves overall performance in PD patients. Improvements were measured using standardized tests and other measurement scales. The results of the present research synthesis support the hypothesis that patients with PD improve their physical performance and activities of daily living through exercise. Future studies should include the development of standardized exercise programs specific for problems associated with PD as well as standardized testing methods for measuring improvements in PD patients. There is also a need for longer term studies (over 1 year) to assess if improvements achieved during the intervention stage are retained long term.",score:35.60303},{id:"proquest_journals_2494054430",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_journals_2494054430",title:"Effects of curcumin supplementation on sport and physical exercise: a systematic review",description:'Curcumin is the main phenolic compound in turmeric. It has been investigated recently due to its numerous medicinal properties and health benefits. However, few studies assessed the effects of curcumin supplementation on physical activity practice. Therefore, the purpose of this review is to assess the available evidence
19s with human beings about the potential effects of curcumin supplementation on sport and physical exercise. This systematic review was conducted within the period from January to February, 2019, following the recommendations of the Preferred Reporting Items for Systematic Reviews and Meta-Analyzes (PRISMA) guidelines. The LILACS, Medline, SciELO and PubMed databases were used for the search, with no publication date limit. The following terms, with the respective Boolean operators, were searched: "curcumin" AND sports; "curcumin" AND exercise; curcumin AND "aerobic exercise"; "curcumin" AND "resistance exercise"; "curcumin" AND "endurance exercise"; "curcumin" AND "strength exercise". Eleven papers were selected for this review. Most of the studies displayed positive effects of the curcumin supplementation for athletes and physical exercise practitioners, and no side effects were reported. Participants supplemented with curcumin displayed reduced inflammation and oxidative stress, decreased pain and muscle damage, superior recovery and muscle performance, better psychological and physiological responses (thermal and cardiovascular) during training and improved gastrointestinal function. Curcumin supplementation appears to be safe and beneficial for sport and physical exercise in human beings. PROSPERO (CRD42019126763).',score:35.361366},{id:"proquest_miscellaneous_1797868274",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_1797868274",title:"Intraocular pressure and glaucoma: Is physical exercise beneficial or a risk?",description:"AbstractIntraocular pressure may become elevated with muscle exertion, changes in body position and increased respiratory volumes, especially when Valsalva manoeuver mechanisms are involved. All of these factors may be present during physical exercise, especially if hydration levels are increased. This review examines the evidence for intraocular pressure changes during and after physical exercise. Intraocular pressure elevation may result in a reduction in ocular perfusion pressure with the associated possibility of mechanical and/or ischaemic damage to the optic nerve head. A key consideration is the possibility that, rather than being beneficial for patients who are susceptible to glaucomatous pathology, any intraocular pressure elevation could be detrimental. Lower intraocular pressure after exercise may result from its elevation causing accelerated aqueous outflow during exercise. Also examined is the possibility that people who have lower frailty are more likely to exercise as well as less likely to have or develop glaucoma. Consequently, lower prevalence of glaucoma would be expected among people who exercise. The evidence base for this topic is deficient and would be greatly improved by the availability of tonometry assessment during dynamic exercise, more studies which control for hydration levels, and methods for assessing the potential general health benefits of exercise against any possibility of exacerbated glaucomatous pathology for individual patients who are susceptible to such changes.",score:35.205303},{id:"proquest_miscellaneous_912920541",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_912920541",title:"Antioxidant supplementation during exercise training: Beneficial or detrimental?",description:"High levels of reactive oxygen species (ROS) produced in skeletal muscle during exercise have been associated with muscle damage and impaired muscle function. Supporting endogenous defence systems with additional oral doses of antioxidants has received much attention as a noninvasive strategy to prevent or reduce oxidative stress, decrease muscle damage and improve exercise performance. Over 150 articles have been published on this topic, with almost all of these being small-scale, low-quality studies. The consistent finding is that antioxidant supplementation attenuates exercise-induced oxidative stress. However, any physiological implications of this have yet to be consistently demonstrated, with most studies reporting no effects on exercise- induced muscle damage and performance. Moreover, a growing body of evidence indicates detrimental effects of antioxidant supplementation on the health and performance benefits of exercise training. Indeed, although ROS are associated with harmful biological events, they are also essential to the development and optimal function of every cell. The aim of this review is to present and discuss 23 studies that have shown that antioxidant supplementation interferes with exercise training-induced adaptations. The main findings of these studies are that, in certain situations, loading the cell with high doses of antioxidants leads to a blunting of the positive effects of exercise training and interferes with important ROS-mediated physiological processes, such as vasodilation and insulin signalling. More research is needed to produce evidence-based guidelines regarding the use of antioxidant supplementation during exercise training. We recommend that an adequate intake of vitamins and minerals through a varied and balanced diet remains the best approach to maintain the optimal antioxidant status in exercising individuals.",score:35.12085},{id:"proquest_journals_229632460",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_journals_229632460",title:"The functional effects of physical exercise training in frail older people : a systematic review",description:"This systematic review describes the effect of exercise training on physical performance in frail older people. Randomized controlled trials were identified from searches in PubMed, EMBASE and CENTRAL from January 1995 through August 2007. Two reviewers independently screened the trials for eligibility, rated their quality, and extracted data. Randomized controlled trials that examined the effects on performance-based measures of physical function among frail older adults were included. The systematic search identified 20 studies, examining 23 different exercise programmes. The methodological qual
19ity score (0-9) of the trials ranged from 2 to 7 points. Sixteen of the studies were scored as high quality. There was a large variety in the studies concerning sample size, degree of frailty, types of interventions and types of assessments. The majority of the programmes were facility-based, group-exercise programmes that were performed three times a week for 45-60 minutes. The intervention programmes comprised resistance training (n = 9), Tai Chi training (n = 2), or multi-component training (n = 12). Six of the total selected 20 studies did not find a beneficial exercise effect on functional performance. This systematic review suggests that older adults with different levels of abilities can improve their functional performance by regular exercise training. To determine the most appropriate design of the exercise programme (type, intensity, frequency and duration of exercise) for functional improvement or prevention of loss of function, more high-quality trials are needed in which different training protocols are compared.",score:35.112484},{id:"proquest_miscellaneous_2656200313",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2656200313",title:"Can Compression Garments Reduce the Deleterious Effects of Physical Exercise on Muscle Strength? A Systematic Review and Meta-Analyses",description:"The use of compression garments (CGs) during or after training and competition has gained popularity in the last few decades. However, the data concerning CGs' beneficial effects on muscle strength-related outcomes after physical exercise remain inconclusive. The aim was to determine whether wearing CGs during or after physical exercise would facilitate the recovery of muscle strength-related outcomes. A systematic literature search was conducted across five databases (PubMed, SPORTDiscus, Web of Science, Scopus, and EBSCOhost). Data from 19 randomized controlled trials (RCTs) including 350 healthy participants were extracted and meta-analytically computed. Weighted between-study standardized mean differences (SMDs) with respect to their standard errors (SEs) were aggregated and corrected for sample size to compute overall SMDs. The type of physical exercise, the body area and timing of CG application, and the time interval between the end of the exercise and subsequent testing were assessed. CGs produced no strength-sparing effects (SMD [95% confidence interval]) at the following time points (t) after physical exercise: immediately t < 24: - 0.02 (- 0.22 to 0.19), p = 0.87; 24 t < 48 : - 0.00 (- 0.22 to 0.21), p = 0.98; 48 t < 72 : - 0.03 (- 0.43 to 0.37), p = 0.87; 72 t < 96 : 0.14 (- 0.21 to 0.49), p = 0.43; 96 t: 0.26 (- 0.33 to 0.85), p = 0.38. The body area where the CG was applied had no strength-sparing effects. CGs revealed weak strength-sparing effects after plyometric exercise. Meta-analytical evidence suggests that wearing a CG during or after training does not seem to facilitate the recovery of muscle strength following physical exercise. Practitioners, athletes, coaches, and trainers should reconsider the use of CG as a tool to reduce the effects of physical exercise on muscle strength. PROSPERO CRD42021246753.",score:35.035316},{id:"proquest_miscellaneous_2186621493",deepLink:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id?record=proquest_miscellaneous_2186621493",title:"The beneficial effects of physical exercise in the brain and related pathophysiological mechanisms in neurodegenerative diseases",description:"Growing evidence has shown the beneficial influence of exercise on humans. Apart from classic cardioprotection, numerous studies have demonstrated that different exercise regimes provide a substantial improvement in various brain functions. Although the underlying mechanism is yet to be determined, emerging evidence for neuroprotection has been established in both humans and experimental animals, with most of the valuable findings in the field of mental health, neurodegenerative diseases, and acquired brain injuries. This review will discuss the recent findings of how exercise could ameliorate brain function in neuro
19pathological states, demonstrated by either clinical or laboratory animal studies. Simultaneously, state-of-the-art molecular mechanisms underlying the exercise-induced neuroprotective effects and comparison between different types of exercise will be discussed in detail. A majority of reports show that physical exercise is associated with enhanced cognition throughout different populations and remains as a fascinating area in scientific research because of its universal protective effects in different brain domain functions. This article is to review what we know about how physical exercise modulates the pathophysiological mechanisms of neurodegeneration.",score:34.911022}]}}],r_=jR});var lg,s_=y(()=>{"use strict";lg={apiUrl:"http://cdi-researchassistant.preview.summon.serialssolutions.com/cda",deeplinkUrl:"http://bo0001.qos.pc.dc04.hosted.exlibrisgroup.com:8080/test/solr-id"}});var a_,l_,c_,u_=y(()=>{"use strict";a_="13.5.2",l_="2026-04-15T07:20:44.773Z",c_="34befa3"});var Uo,bu=y(()=>{"use strict";rt();L();te();Uo=(()=>{let e=class e{constructor(n,r){this.translocoService=r,this.language="en",this.locSubscription=null,this.mapping={afrikaans:"af",arabic:"ar",bengali:"bn",bulgarian:"bg",catalan:"ca",chinese:"zh",croatian:"hr",czech:"cs",danish:"da",dutch:"nl",estonian:"et",english:"en",finnish:"fi",french:"fr",german:"de",greek:"el",hebrew:"he",hindi:"hi",hungarian:"hu",icelandic:"is",indonesian:"id",irish:"ga",italian:"it",japanese:"ja",korean:"ko",latin:"la",latvian:"lv",lithuanian:"lt",luxembourgish:"lb",norwegian:"no",persian:"fa",polish:"pl",portuguese:"pt",portuguese1:"pt1",romanian:"ro",russian:"ru",sanskrit:"sa",serbian:"sr","simplified chinese":"zh-cn",slovak:"sk",slovenian:"sl",spanish:"es",swedish:"sv",tamil:"ta",thai:"th","traditional chinese":"zh-tw",turkish:"tr",ukrainian:"uk",urdu:"ur",vietnamese:"vi",welsh:"cy",yiddish:"yi"},this.availableLanguages=this.translocoService.getAvailableLangs().map(o=>o.toString()),this.renderer2=n.createRenderer(null,null)}getLanguageCode(n){return n&&(n=n.toLowerCase()),this.mapping[n]}changeLanguage(n){this.language=n,this.locSubscription?.unsubscribe(),this.locSubscription=this.translocoService.load(n).pipe(Je(1)).subscribe(()=>{let r=["he","ar","fa"].includes(n)?"rtl":"ltr";this.renderer2.setAttribute(document.documentElement,"dir",r),(document.querySelector("cdi-research-assistant")?.shadowRoot??document).querySelector(".component-container")?.setAttribute("dir",r),this.translocoService.setActiveLang(n)})}};e.\u0275fac=function(r){return new(r||e)(M(li),M(Ye))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var we,gt=y(()=>{"use strict";s_();u_();rt();L();bu();we=(()=>{let e=class e{changeEnv(n){this.debug&&(this.config?.apiParams?this.config.apiParams.environment=n:this.config.apiParams={environment:n})}changeCache(n){this.debugCache=n}get features(){return this.featuresfromApi}get showSideNav(){return this.config.showSideNav??null}get currentConfig(){return this.config}get apiUrl(){return this.config.apiUrl??lg.apiUrl}get product(){return this.config.product}get apiParams(){return this.config.apiParams??{}}get language(){return this.languageService.language}constructor(n){this.languageService=n,this.apiParamsDebug=["environment"],this.featuresfromApi=[],this.featuresFromUrl="",this.debugCache="false",this.debug=!1,this.researchHistoryDays=7,this.maxHistorySizeDefault=200,this.onConfigChange$=new en(1),this.config={isStandalone:!0,apiUrl:lg.apiUrl,height:"100vh",language:n.language,libraryName:"",product:"standalone",showBeta:!0,showSideNav:null,showToast:!0,showAdvanced:!0,streamAnswer:!1,enableOnline:!1,enableHistory:!1,howToCiteLink:"",maxHistorySize:this.maxHistorySizeDefault,researchHistoryDays:this.researchHistoryDays,llmModel:""}}setConfig(n){this.config=_(_({},this.config),n),this.languageService.changeLanguage(this.config.language),this.onConfigChange$.next(this.config)}setStreaming(n){this.config.streamAnswer=n}setLlmModel(n){this.config.llmModel=n,this.onConfigChange$.next(this.config)}toggleSideNav(n){this.config&&(this.config.showSideNav=n)}getVersion(){return`Version ${a_}, commit ${c_}, built at ${l_}`}setDebug(n){if(this.debug=n,n&&this.changeCache("false"),!n)for(let r of this.apiParamsDebug)this.config.apiParams&&this.config.apiParams[r]&&delete this.config.apiParams[r]}setFeatures(n){this.featuresfromApi=n,this.setFeaturesFromString(this.featuresFromUrl)}setFeatureFromString(n){this.featuresFromUrl=n,this.setFeaturesFromString(n)}setFeaturesFromString(n){n&&n.includes(":")&&n.split(",").forEach(r=>{let o=r.split(":"),s=this.featuresfromApi.find(a=>a.key===o[0]);s&&(s.value=o[1])})}};e.\u0275fac=function(r){return new(r||e)(M(Uo))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var d_,h_=y(()=>{"use strict";L();d_=new $("WindowToken",typeof window<"u"&&window.document?{providedIn:"root",factory:()=>window}:{providedIn:"root",factory:()=>{}})});var qo,f_,xa=y(()=>{"use strict";he();L();h_();rt();qo=(()=>{class t{constructor(i,n,r){this.ngZone=i,this.document=n,this.window=r,this.copySubject=ne
19w ge,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(i){this.config=i}copy(i){if(!this.isSupported||!i)return this.pushCopyResponse({isSuccess:!1,content:i});let n=this.copyFromContent(i);return n?this.pushCopyResponse({content:i,isSuccess:n}):this.pushCopyResponse({isSuccess:!1,content:i})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(i){if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement){if(i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(i,n=!0){try{this.selectTarget(i);let r=this.copyText();return this.clearSelection(n?i:void 0,this.window),r&&this.isCopySuccessInIE11()}catch{return!1}}isCopySuccessInIE11(){let i=this.window.clipboardData;return!(i&&i.getData&&!i.getData("Text"))}copyFromContent(i,n=this.document.body){if(this.tempTextArea&&!n.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{n.appendChild(this.tempTextArea)}catch{throw new Error("Container should be a Dom element")}}this.tempTextArea.value=i;let r=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),r}destroy(i=this.document.body){this.tempTextArea&&(i.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(i){return i.select(),i.setSelectionRange(0,i.value.length),i.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(i,n){i&&i.focus(),n.getSelection()?.removeAllRanges()}createTempTextArea(i,n){let r=i.documentElement.getAttribute("dir")==="rtl",o;o=i.createElement("textarea"),o.style.fontSize="12pt",o.style.border="0",o.style.padding="0",o.style.margin="0",o.style.position="absolute",o.style[r?"right":"left"]="-9999px";let s=n.pageYOffset||i.documentElement.scrollTop;return o.style.top=s+"px",o.setAttribute("readonly",""),o}pushCopyResponse(i){this.copySubject.observers.length>0&&this.ngZone.run(()=>{this.copySubject.next(i)})}pushCopyReponse(i){this.pushCopyResponse(i)}}return t.\u0275fac=function(i){return new(i||t)(M(Ee),M(He),M(d_,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),f_=(()=>{class t{}return t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=Lt({type:t}),t.\u0275inj=Pt({imports:[ve]}),t})()});var vn,Fr=y(()=>{"use strict";L();rt();L();ra();gt();xa();te();vn=(()=>{let e=class e{constructor(n,r,o,s){this.toastr=n,this.config=r,this.clipboard=o,this.translocoService=s,this.toastSource$=new ge,this.appEventSource$=new ge,this.onToast$=this.toastSource$.asObservable().pipe(Si(1)),this.appEvents$=this.appEventSource$.asObservable().pipe(Si(1)),this.clipboard.copyResponse$.subscribe(a=>{a.isSuccess&&this.toast({type:"info",title:this.translocoService.translate("action.copytitle"),message:a.successMessage??"Success",options:{}})})}toast(n){this.config.currentConfig?.showToast?this.toastr[n.type](n.message,n.title,_({},n.options)):this.toastSource$.next(n)}log(n,r={},o="info"){jc()&&console[o](n,r)}emitAppEvent(n){this.appEventSource$.next(n)}};e.\u0275fac=function(r){return new(r||e)(M(No),M(we),M(qo),M(Ye))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var Yi,Sa=y(()=>{"use strict";L();Yi=(()=>{let e=class e{get clientKey(){return this.user.clientKey}get userId(){return this.user.userId}get user(){return this._user}get remaining(){return this._user.remaining??-1}set remaining(n){this._user.remaining=n}constructor(){this.setUser({id:"default",remaining:-1,maxRemaining:-1})}setUser(n){this._user=n;let r=this._user?.userId?.toLocaleLowerCase();r?.startsWith("session:")?this._user.type="anonymous":r?.startsWith("anonymous-")?this._user.type="anonymous":this._user.type="logged-in"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var Ne,$t=y(()=>{"use strict";L();rt();Mr();o_();vu();L();Mr();At();gt();Fr();te();Sa();Ne=(()=>{let e=class e{get currentResearchSessionId(){return this.currentResearchSession?.id??"session-not-initialized"}get clientKey(){return this.user.clientKey}get userId(){return this.user.userId}get isDebug(){return this.config.debug??!1}get user(){return this.userService.user}get researchSession(){return this.currentResearchSession}get qandas(){return this.currentResearchSession?.qandas||[]}get onSessionChanged(){return this.currentResearchSession$.asObservable()}get qandaCount(){return this.researchHistory.researchSessions.reduce((n,r)=>{let o=typeof r.count=="string"?parseInt(r.count,10):+r.count||0;return n+o},0)}get maxResearchHistoryReached(){return this.qandaCount>=this.config.currentConfig.maxHistorySize}get quotumLimitExceeded(){return this.user.remaining===0||this.user.remaining<-1}onLoadingChanged(){return this.isLoading$.asObservable()}constructor(n,r,o,s,a,l,c){this.http=n,this.router=r,this.config=o,this.message=s,this.appRef=a,this.translocoService=l,this.userService=c,this.currentResearchSession$=new Pe(void 0),this.debugInfo=[],this.errorStatusTypes=new Map,this.knownAnswers=["aG93IG1hbnkgcm9hZHMgbXVzdCBhIG1hbiB3YWxrIGRvd24=","dWx0aW1hdGUgcXVlc3Rpb24gb2YgbGlmZQ==","bWVhbmluZyBvZiBsaWZl","dWx0aW1hdGUgYW5zd2Vy"].map(u=>
19new RegExp(atob(u),"i")),this.isLoading$=new Pe(!1),this.currentQandA=Hs(void 0),this.currentAdvancedOptions=Fp(()=>this.currentQandA()?.answer?.advanced),this.currentQandA$=Ym(this.currentQandA),this.currentQuestion$=new Pe({question:"",regenerate:!1}),this.initialized=!1,l.selectTranslate("research.status.answering").subscribe(()=>{this.initialized||this.initializeUser(),this.initializeStatusMessages()})}initializeUser(){this.startNewResearchSession(),this.initialized=!0;let n="";this.config.currentConfig?.isStandalone&&(n=`user=${this.user.userId}&clientKey=${this.user.clientKey}`),this.config.debug&&(n!=""&&(n+="&"),n+="debug=true"),this.http.post(`${this.config.apiUrl}/init?${n}`,{}).subscribe({next:r=>{this.config.currentConfig.enableOnline=r.online??!1,this.config.currentConfig.maxHistorySize=r.maxHistorySize??this.config.maxHistorySizeDefault,r.features&&(r.features.forEach(o=>{o.change=s=>{console.log("Feature changed",o.key,s)}}),this.config.setFeatures(r.features)),this.user.maxRemaining=r.maxRemaining,this.user.remaining=r.remaining,r.llmModel&&this.config.setLlmModel(r.llmModel),r.researchSessions?.length>0&&(this.researchHistory.researchSessions=[...this.researchHistory.researchSessions,...r.researchSessions.map(o=>W(_({},o),{qandas:[]}))])},error:r=>{console.error(r)}})}mockChats(n=r_){for(let r of n)r.id=this.getId(r.question,"mock"),this.qandas.push(r)}getAnswerStream(n,r){return dt(this,null,function*(){this.isLoading$.next(!0),this.researchHistory.researchSessions.length===0&&this.startNewResearchSession(),(this.router?.url?.indexOf("research")===-1||this.router?.url?.indexOf("research/new")>-1)&&(yield this.routeIfNeeded("/research"));let o={id:this.getId(n,"user"),question:n,answer:{answer$:new Pe(""),advanced:r??void 0}};this.qandas.push(o),this.cancelOngoingRequests(),this.evtSource&&(this.evtSource.close(),this.appRef.tick()),this.registerStatus(o,"searching");let s="";if(this.config.currentConfig?.showAdvanced&&r)for(let[l,c]of Object.entries(r))typeof c<"u"&&c!==null&&(s+=`&${l}=${encodeURIComponent(c)}`);let a="";this.config.product==="summon"&&(a+=`sessionId=${this.currentResearchSession.id}`),this.evtSource=new EventSource(`${this.config.apiUrl}/answer-stream?query=${n}&user=${this.userId}&clientKey=${this.clientKey}&${a}&ui_language=${this.translocoService.getActiveLang()}${s}`),this.evtSource.onerror=l=>{o.error=!0,console.error(l),this.evtSource.close(),this.handleError(o,l),this.appRef.tick()},this.currentResearchSession.qandas.push(o),this.evtSource.onmessage=l=>{let c=JSON.parse(l.data);if(l===null){console.log("EMPTY!");return}else c.results?(o.answer&&(o.answer.results=c.results),this.registerStatus(o,"answering")):c.error?o.error=!0:c.status==="summary"?(this.runningAnswer="",o.answer=this.pick(c.summary,"id","createdAt","language","moreQuestions","advanced","improvedQuery","improvedQuerySearch","message","results","feedback","answer"),o.answer&&(o.answer.feedback={id:"tempAnswer"+this.currentResearchSession.qandas.findIndex(u=>u.id===o.id),type:"answer"}),o.answer?.results?.map(u=>u.feedback=u.feedback?u.feedback:{id:`${c.id}-${u.id}`,query:n,type:"record"}),this.finalizeGetAnswer(o,c.remaining),this.evtSource.close(),o.answer?.answer$?.complete()):c.status==="answer"&&(c.answer===""&&(c.answer=` 20 21`),this.runningAnswer=this.runningAnswer?this.runningAnswer.concat(c.answer):c.answer,o.answer&&(o.answer.answer=this.runningAnswer?.slice()),o.answer?.answer$?.next(c.answer));this.appRef.tick()}})}setAnswer(n,r=!1){this.currentQuestion$.next({question:n,regenerate:r})}getAnswer(n,r,o=!1,s=5){return dt(this,null,function*(){if(this.cancelOngoingRequests(),this.quotumLimitExceeded)return this.message.toast({message:this.translocoService.translate("research.status.quotalimit"),title:"",options:{},type:"info"}),Promise.resolve(new Ve);if(this.maxResearchHistoryReached)return this.message.toast({message:this.translocoService.translate("research.status.maxhistorysize"),title:"",options:{},type:"info"}),Promise.resolve(new Ve);let a=null;return o&&(a=this.qandas.findLast(l=>l.question===n)),this.config.currentConfig.streamAnswer?(this.getAnswerStream(n,r),Promise.resolve(new Ve)):this.getAnswerNonStreaming(n,r,a,s)})}getAnswerNonStreaming(n,r,o=null,s=5){return dt(this,null,function*(){this.message.emitAppEvent({event:"qanda",status:"requesting",value:n}),this.isLoading$.next(!0),this.researchHistory?.researchSessions?.length===0&&this.startNewResearchSession(),yield this.routeIfNeeded("/research");let a={id:this.getId(n+new Date,"user"),question:n,answer:{advanced:r??void 0}};o&&this.registerStatus(a,"regenerating"),this.registerStatus(a,"searching"),this.qandas.push(a);let l=!o,c=G({}).pipe(Ei(600),z(()=>{this.registerStatus(a,"answering")})),u="";this.config.currentConfig?.isStandalone&&(u=`&user=${this.userId}&clientKey=${this.clientKey}`),this.config.debug?(u+="&debug="+(this.createDebugString()??"true"),u+=`&cache=${this.config.debugCache}`):u+=`&cache=${l}`;let d="";if(this.config.currentConfig?.showAdvanced&&r)for(let[D,S]of Object.entries(r))typeof S<"u"&&S!==null&&(d+=`&${D}=${encodeURIComponent(S)}`);this.config.product==="summon"&&(u+=`&sessionId=${this.currentResearchSession.id}`);let g=`${this.config.apiUrl}/answer?query=${encodeURIComponent(n)}${d}&resultcount=${s}&ui_language=${this.translocoService.getActiveLang()}${u}`,v=this.http.get(g).pipe(ms({count:5,delay:D=>
21{if(D.status===504)return console.log("retrying due to 504"),ur(1e3);throw D}}),z(D=>D),Si()),w=bn([c,v]).pipe(z(D=>D[1]));return this.apiCall=w.subscribe({next:D=>{if(this.message.emitAppEvent({event:"qanda",status:"ready",value:n}),this.optUpdateResearchsessionTopic(n),D.answer){if(this.currentResearchSession.qandas=this.currentResearchSession.qandas.map(S=>{if(S.id===a.id){a=W(_({},a),{answer:this.pick(D,"id","createdAt","advanced","answer","language","moreQuestions","improvedQuery","improvedQuerySearch","message","results","feedback","context")});let O="https://sqa02-na04.alma.exlibrisgroup.com/discovery/search?search_scope=MyInst_and_CI&vid=EXLDEV1_INST:Alma&query=any,contains,"+encodeURIComponent(a.answer?.improvedQuery??"");if(a.answer)if(!a.answer?.improvedQuerySearch)a.answer.improvedQuerySearch=O;else{let K=new URL(a.answer.improvedQuerySearch,window.location.origin);a.answer.improvedQuerySearch=K.toString()}return a.answer?.context?.map(K=>K.message=this.translateContext(K,{improvedQuerySearch:a.answer?.improvedQuerySearch??""})),a.answer&&(a.answer.feedback=D.feedback?D.feedback:{id:D.id,type:"answer",query:n},a.answer.results?.map(K=>K.feedback=K.feedback?K.feedback:{id:`${D.id}-${K.id}`,query:n,type:"record"})),a}else return S}),this.currentResearchSession.count=this.currentResearchSession.qandas.filter(S=>S.answer?.answer).length,this.researchHistory.researchSessions.forEach(S=>{S.id===this.currentResearchSession.id&&(S.count=this.currentResearchSession.count)}),this.config.currentConfig.enableHistory&&this.user.type!=="anonymous"){let S=_({sessionId:this.currentResearchSession.id,topic:this.currentResearchSession.topic},this.pick(a,"answer","question"));this.http.post(`${this.config.apiUrl}/saveQuestion`,S).subscribe({error:O=>{console.error(O,a.id)}})}this.config.debug&&(D.logs?this.debugInfo=[D.originalRequest??"",...D.logs]:this.debugInfo=[D.originalRequest??"","no logs found"])}return this.finalizeGetAnswer(a,D.remaining??-1),a},error:D=>{this.config.debug&&(D.error.logs?this.debugInfo=[g,D.error.error,...D.error.logs]:this.debugInfo=[g,D.error.error,"no logs found"]),this.handleError(a,D)}}),this.apiCall})}handleError(n,r,o=n.question){this.finalizeGetAnswer(n),r instanceof Gi?r.status===429?(this.registerStatus(n,"quotalimit",r.message),this.message.emitAppEvent({event:"qanda",status:"error",error:"quotalimit",value:o})):r.status===422?(this.registerStatus(n,"unsupported",r.message),this.message.emitAppEvent({event:"qanda",status:"error",error:"unsupported",value:o})):r.status===404?(this.registerStatus(n,"noresults"),this.message.emitAppEvent({event:"qanda",status:"error",error:"noresults",value:o})):r.status===401?(this.registerStatus(n,"unauthorized","To use the assistant, please log in."),this.message.emitAppEvent({event:"qanda",status:"error",error:"unauthorized",value:o})):r.status===507?(this.registerStatus(n,"maxhistorysize","Your research history reached the maximum number of answers that can be stored. Please clear some history to continue."),this.message.emitAppEvent({event:"qanda",status:"error",error:"maxhistorysize",value:o})):(this.registerStatus(n,"error",r.message),this.message.emitAppEvent({event:"qanda",status:"error",error:(r.status??"unknown http status")+" - "+r.message,value:o})):(this.registerStatus(n,"error","unknown error"),this.message.emitAppEvent({event:"qanda",status:"error",error:"unknown error",value:o}))}createDebugString(){let r=this.config.features.map(o=>o.value!==o.defaultValue?`${o.key}:${o.value}`:null).filter(o=>o).join(",");return r===""?null:r}finalizeGetAnswer(n,r){this.isLoading$.next(!1),this.currentQandA.set(n),typeof r<"u"&&r!==null&&(this.userService.remaining=r),n&&(n.regenerating=!1,this.optUpdateResearchsessionTopic(n.question),this.visitNewQandA(n))}visitNewQandA(n){this.knownAnswers.find(o=>o.test(n.question))&&(this.message.toast({message:"Psst... don't mind my AI colleague here, the answer is actually just '42'!",title:"The Ultimate Answer",options:{},type:"info"}),this.knownAnswers=[])}routeIfNeeded(n,r){return dt(this,null,function*(){this.router.config.length>0&&(yield this.router.navigate([n],{queryParams:r}))})}createSession(){return{id:this.getId(`${this.user.clientKey}-${this.user.userId}-${new Date().toISOString()}`,"session"),topic:"",qandas:[],count:0,creationDate:new Date().toISOString()}}startNewResearchSession(){this.finalizeGetAnswer(),this.researchHistory||(this.currentResearchSession=this.createSession(),this.currentResearchSession$.next(this.currentResearchSession),this.researchHistory={id:"",researchSessions:[this.currentResearchSession]}),this.currentResearchSession.qandas.length>0&&(this.currentResearchSession=this.createSession(),this.currentResearchSession$.next(this.currentResearchSession),this.researchHistory.researchSessions.push(this.currentResearchSession),this.message.emitAppEvent({event:"session",status:"ready",value:"new"}))}removeHistoryEntry(n){return dt(this,null,function*(){let r=this.researchHistory.researchSessions.findIndex(c=>n.id===c.id);if(r===-1)return;let o=this.researchHistory.researchSessions.filter(c=>Number(c.count)>
210),a=o.length===1&&o[0].id===n.id?-2:r===0?0:r-1;this.cancelOngoingRequests(),this.message.emitAppEvent({event:"session",status:"requesting",value:"remove"});let l=()=>dt(this,null,function*(){this.researchHistory.researchSessions.splice(r,1),this.startNewResearchSession(),yield this.routeIfNeeded("/research/new")});return this.http.delete(`${this.config.apiUrl}/session/${n.id}`).subscribe({next:()=>dt(this,null,function*(){yield l(),this.message.emitAppEvent({event:"session",status:"ready",value:"remove",payload:a})}),error:c=>dt(this,null,function*(){yield l(),this.message.emitAppEvent({event:"session",status:"error",value:"remove",payload:a}),console.error(c)})})})}generateTopicName(n){let r=n.qandas.map(o=>o.question);this.http.post(`${this.config.apiUrl}/session-topic`,r).subscribe({next:o=>{this.message.emitAppEvent({event:"session",status:"ready",value:"topic"}),n.topic=o.topic},error:o=>{console.error(o),this.message.emitAppEvent({event:"session",status:"error",value:"topic"})}})}loadHistoryEntry(n){return dt(this,null,function*(){if(n?.id===this.currentResearchSession?.id)return yield this.routeIfNeeded("/research");let r=this.researchHistory.researchSessions.find(o=>n.id===o.id);this.message.emitAppEvent({event:"session",status:"requesting",value:"load"}),this.cancelOngoingRequests(),r&&(this.currentResearchSession=r,this.currentResearchSession$.next(this.currentResearchSession),this.currentResearchSession.qandas.length>0&&this.currentQandA.set(this.currentResearchSession.qandas[this.currentResearchSession.qandas.length-1]),this.http.get(`${this.config.apiUrl}/session/${n.id}`).subscribe({next:o=>{let s=this.createSession();o.qandas&&(this.currentResearchSession=_(_({},s),o),this.currentResearchSession$.next(this.currentResearchSession),this.currentResearchSession.qandas.length>0&&this.currentQandA.set(this.currentResearchSession.qandas[this.currentResearchSession.qandas.length-1])),this.message.emitAppEvent({event:"session",status:"ready",value:"load"})},error:o=>{console.error(o),this.message.emitAppEvent({event:"session",status:"error",value:"load"})}})),yield this.routeIfNeeded("/research")})}removeFeedback(n){n.reaction="",n.comment="",n.reasons=[],this.message.emitAppEvent({event:"feedback",status:"requesting",value:"remove"});let r="";return this.config.product==="summon"&&(r+=`&sessionId=${this.currentResearchSession.id}`),this.http.delete(`${this.config.apiUrl}/feedback?id=${n.id}${r}`).subscribe({next:()=>{this.message.emitAppEvent({event:"feedback",status:"ready",value:"remove"}),this.message.toast({message:this.translocoService.translate("feedback.removed.success"),title:this.translocoService.translate("feedback.removed.success.title"),options:{},type:"info"})},error:o=>{console.error(o),this.message.emitAppEvent({event:"feedback",status:"error",error:o.message??"unknown",value:"remove"}),this.message.toast({message:this.translocoService.translate("feedback.removed.error"),title:this.translocoService.translate("feedback.removed.error.title"),options:{},type:"error"})}})}sendFeedback(n){n.userId=this.userId,n.clientKey=this.clientKey,this.message.emitAppEvent({event:"feedback",status:"requesting"});let r="";return this.config.product==="summon"&&(r+=`?sessionId=${this.currentResearchSession.id}`),this.http.post(`${this.config.apiUrl}/feedback${r}`,n).subscribe({next:o=>{this.currentResearchSession.qandas=this.currentResearchSession.qandas.map(s=>(s.id===o.id&&(s=W(_({},s),{answer:this.pick(o,"id","createdAt","answer","advanced","moreQuestions","improvedQuery","improvedQuerySearch","results","feedback")}),s.answer&&(s.answer.feedback=o.feedback?o.feedback:{id:o.id,type:"answer"},s.answer.results?.map(a=>{a.feedback=a.feedback?a.feedback:{id:`${o.id}-${a.id}`,query:o.query,type:"record"}}))),s)),this.message.emitAppEvent({event:"feedback",status:"ready"}),this.message.toast({message:this.translocoService.translate("feedback.submitted.success"),title:this.translocoService.translate("feedback.submitted.success.title"),options:{},type:"info"})},error:()=>{this.message.emitAppEvent({event:"feedback",status:"error",value:"Error sending feedback"}),this.message.toast({message:this.translocoService.translate("feedback.submitted.error"),title:this.translocoService.translate("feedback.submitted.error.title"),options:{},type:"error"})}})}close(){this.evtSource&&this.evtSource.close()}getLastQuestion(){if(this.qandas.length){let n=this.qandas[this.qandas.length-1];if(n)return n.question}return""}cancelOngoingRequests(){this.apiCall?.unsubscribe(),this.isLoading$.next(!1),this.evtSource?.close();let n=this.qandas.find(r=>r.question&&!r.answer?.answer);n&&(this.currentResearchSession.qandas=this.currentResearchSession.qandas.filter(r=>
21r.id!==n.id))}registerStatus(n,r,o=""){let s={type:r,text:`research.status.${r}`,error:this.errorStatusTypes.get(r)??!1,info:o};n.statusMessages||(n.statusMessages=[]),n.statusMessages.push(s),n.error=s.error}cyrb53(n,r=0){let o=3735928559^r,s=1103547991^r;for(let a=0,l;a<n.length;a++)l=n.charCodeAt(a),o=Math.imul(o^l,2654435761),s=Math.imul(s^l,1597334677);return o=Math.imul(o^o>>>16,2246822507),o^=Math.imul(s^s>>>13,3266489909),s=Math.imul(s^s>>>16,2246822507),s^=Math.imul(o^o>>>13,3266489909),4294967296*(2097151&s)+(o>>>0)}getId(n,r){return`${r}-${this.cyrb53(n)}`}pick(n,...r){return Object.fromEntries(r.filter(o=>o in n).map(o=>[o,n[o]]))}optUpdateResearchsessionTopic(n){this.currentResearchSession.topic===""&&(this.currentResearchSession.topic=n)}initializeStatusMessages(){this.errorStatusTypes.clear(),this.errorStatusTypes.set("error",!0),this.errorStatusTypes.set("noresults",!0),this.errorStatusTypes.set("quotalimit",!0),this.errorStatusTypes.set("unsupported",!0)}translateContext(n,r){let o=`answer.context.message.${n.type.toLocaleLowerCase()}`,s;if(n.values||r){let a={};if(n.values)for(let l=0;l<n.values.length;l++)a[`value${l}`]=n.values[l];r&&(a=_(_({},a),r)),s=this.translocoService.translate(o,a)}else s=this.translocoService.translate(o);return s&&s!==o?n.type.toLocaleLowerCase()==="info"||n.type.toLocaleLowerCase()==="debug"?`${s} ${n.message}`:s:n.message}};e.\u0275fac=function(r){return new(r||e)(M(Tr),M(an),M(we),M(vn),M(Zt),M(Ye),M(Yi))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});var Ue,ln=y(()=>{"use strict";rt();At();L();Sa();At();$t();Ue=(()=>{let e=class e{onEvent(){return this.statistics.asObservable()}constructor(n,r,o){this.user=n,this.router=r,this.research=o,this.statistics=new en}initialize(){this.trackNavigation().subscribe(n=>{this.pageView(n.url)})}trackNavigation(){return this.router.events.pipe(it(n=>n instanceof Yt),z(n=>({url:n.urlAfterRedirects})),Ei(0))}pageView(n,r="url"){return this.sendEvent({action:"pageView",category:"navigation",label:r,value:n,question:this.research?.qandas[this.research?.qandas?.length-1]?.question??null})}sendEvent(n,r=new Date){n.date=r,n.session=this.research.currentResearchSessionId,this.statistics.next(n)}search(n,r="inputbox"){this.sendEvent({action:r,category:"search",label:"question",value:n,question:n})}};e.\u0275fac=function(r){return new(r||e)(M(Yi),M(an),M(Ne))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});function HR(t,e){if(t&1&&(h(0,"span",4),C(1),p()),t&2){let i=m().$implicit,n=m(2);f(),ie("(",i("research.session.xquestions",Ae(1,BR,n.session.count)),")")}}function UR(t,e){if(t&1){let i=U();h(0,"div",0)(1,"button",2),A("click",function(){F(i);let r=m(2);return P(r.loadHistoryEntry(r.session))}),h(2,"span",3),C(3),p(),I(4,HR,2,3,"span",4),p(),h(5,"button",5),A("click",function(){F(i);let r=m(2);return P(r.removeHistoryEntry(r.session))}),ce(),h(6,"svg",6),x(7,"path",7),p()()()}if(t&2){let i=e.$implicit,n=m(2);E("ngClass",Tt(7,$R,n.session.id===n.currentResearchSession.id,n.session.id!==n.currentResearchSession.id)),V("title",n.session.niceDate),f(),E("id","topic-"+n.session.id),f(2),ie(" ",n.session.topic===""?i("research.session.newsession"):n.session.topic," "),f(),j(4,n.session.count>1?4:-1),f(),V("aria-label",i("research.session.delete"))("aria-describedby","topic-"+n.session.id)}}function qR(t,e){t&1&&I(0,UR,8,10,"div",1)}var $R,BR,p_,m_=y(()=>{"use strict";L();he();te();L();$t();ln();he();$R=(t,e)=>({"gradient-border":t,"border-neutral-200 hover:border-neutral-400 text-neutral-700":e}),BR=t=>({count:t});p_=(()=>{let e=class e{get currentResearchSession(){return this.research.researchSession}constructor(n,r){this.research=n,this.stats=r,this.sessionClicked=new _e}ngOnInit(){this.session.niceDate=new Date(this.session.creationDate).toLocaleString()}removeHistoryEntry(n){this.stats.sendEvent({category:"session",action:"remove",label:"sessionid",value:n.id}),this.research.removeHistoryEntry(n)}loadHistoryEntry(n){this.stats.sendEvent({category:"session",action:"load",label:"sessionid",value:n.id}
21),this.research.loadHistoryEntry(n),this.sessionClicked.emit()}changeName(n){this.stats.sendEvent({category:"session",action:"rename",label:"sessionid",value:n.id}),this.research.generateTopicName(n)}};e.\u0275fac=function(r){return new(r||e)(b(Ne),b(Ue))},e.\u0275cmp=B({type:e,selectors:[["app-research-session"]],inputs:{session:"session"},outputs:{sessionClicked:"sessionClicked"},standalone:!0,features:[H],decls:1,vars:1,consts:[[1,"-mt-2","group/rhb","flex","border-2","items-center","justify-between","rounded-[0.575rem]","p-2","bg-white","text-sm","font-thin","hover:border-cdra-green-main","focus:border-cdra-green-main",3,"ngClass"],["class","-mt-2 group/rhb flex border-2 items-center justify-between rounded-[0.575rem] p-2 bg-white text-sm font-thin hover:border-cdra-green-main focus:border-cdra-green-main",3,"ngClass",4,"transloco"],[1,"t-research-history-entry","text-start","font-normal","leading-5",3,"click","id"],[1,"line-clamp-3"],[1,"font-bold","text-[#666666]"],[1,"t-research-history-entry-remove","right-0","transition-opacity","duration-200","lg:opacity-0","group-hover/rhb:opacity-100","group-focus-within/rhb:opacity-100",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6 19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7H6V19ZM19 4H15.5L14.5 3H9.5L8.5 4H5V6H19V4Z","fill","#595959"]],template:function(r,o){r&1&&I(0,qR,1,0,"div",0),r&2&&j(0,o.session.count>0?0:-1)},dependencies:[ee,ve,mt]});let t=e;return t})()});function QR(t,e){if(t&1&&(h(0,"div",4),C(1),p()),t&2){let i=m(2).$implicit;f(),N(i("researchhistory.disabled"))}}function ZR(t,e){if(t&1&&(h(0,"div",6),C(1),p()),t&2){let i=m(2).$implicit;f(),N(i("researchhistory.anonymous"))}}function KR(t,e){if(t&1&&(h(0,"div",5),C(1),p()),t&2){let i=m(2).$implicit,n=m();f(),ie(" ",i("researchhistory.maxsize.almostreached",Ae(1,GR,n.maxHistorySize-n.qandaCount))," ")}}function YR(t,e){if(t&1&&(h(0,"div",7),C(1),p()),t&2){let i=m(2).$implicit;f(),ie(" ",i("research.status.maxhistorysize")," ")}}function JR(t,e){if(t&1){let i=U();h(0,"app-research-session",10),A("sessionClicked",function(){F(i);let r=m(4);return P(r.onSessionClicked())}),p()}if(t&2){let i=e.$implicit;E("session",i)}}function XR(t,e){if(t&1&&(h(0,"h3",8),C(1),p(),Oe(2,JR,1,1,"app-research-session",9,dg)),t&2){let i=m(2).$implicit,n=m();f(),N(i("researchhistory.today")),f(),Fe(n.researchHistory.today)}}function ek(t,e){if(t&1){let i=U();h(0,"app-research-session",10),A("sessionClicked",function(){F(i);let r=m(4);return P(r.onSessionClicked())}),p()}if(t&2){let i=e.$implicit;E("session",i)}}function tk(t,e){if(t&1&&(h(0,"h3",8),C(1),p(),Oe(2,ek,1,1,"app-research-session",9,dg)),t&2){let i=m(2).$implicit,n=m();f(),N(i("researchhistory.lastxdays",Ae(1,WR,n.days))),f(),Fe(n.researchHistory.lastxdays)}}function nk(t,e){if(t&1){let i=U();h(0,"app-research-session",10),A("sessionClicked",function(){F(i);let r=m(5);return P(r.onSessionClicked())}),p()}if(t&2){let i=e.$implicit;E("session",i)}}function ik(t,e){if(t&1&&(h(0,"h3",8),C(1),p(),Oe(2,nk,1,1,"app-research-session",9,dg)),t&2){let i=e.$implicit;f(),N(i.year),f(),Fe(i.sessions)}}function rk(t,e){if(t&1&&Oe(0,ik,4,1,null,null,zR),t&2){let i=m(3);Fe(i.researchHistory.older)}}function ok(t,e){if(t&1&&I(0,QR,2,1,"div",4)(1,ZR,2,1)(2,KR,2,3,"div",5)(3,YR,2,1)(4,XR,4,1)(5,tk,4,3)(6,rk,2,0),t&2){let i=m(2);
21j(0,i.saveSessionsEnabled?i.anonymousUser?1:-1:0),f(2),j(2,i.shouldShowAlmostMaxSizeWarning?2:i.shouldShowMaxSizeWarning?3:-1),f(2),j(4,i.researchHistory.today.length>0?4:-1),f(),j(5,i.researchHistory.lastxdays.length>0?5:-1),f(),j(6,i.hasOlderSessions?6:-1)}}function sk(t,e){if(t&1&&(h(0,"div",4),C(1),p()),t&2){let i=m().$implicit;f(),N(i("researchhistory.empty"))}}function ak(t,e){if(t&1&&(h(0,"div",1)(1,"h2",2),C(2),p(),h(3,"div",3),I(4,ok,7,5)(5,sk,2,1),p()()),t&2){let i=e.$implicit,n=m();f(2),N(i("researchhistory.title")),f(2),j(4,n.shouldShowSessions?4:5)}}var dg,zR,GR,WR,_u,hg=y(()=>{"use strict";L();he();te();m_();L();$t();gt();dg=(t,e)=>e.id,zR=(t,e)=>e.year,GR=t=>({left:t}),WR=t=>({days:t});_u=(()=>{let e=class e{get days(){return this.config.currentConfig.researchHistoryDays}get qandaCount(){return this.research.qandaCount}get maxHistorySize(){return this.config.currentConfig.maxHistorySize}get shouldShowAlmostMaxSizeWarning(){return this.maxHistorySize-this.qandaCount<=10&&this.maxHistorySize-this.qandaCount>0}get shouldShowMaxSizeWarning(){return this.maxHistorySize-this.qandaCount<=0}get shouldShowSessions(){return this.research.researchHistory.researchSessions.length>0&&this.research.researchHistory.researchSessions.find(n=>Number(n?.count)>0)}get hasOlderSessions(){return this.researchHistory.older&&Object.keys(this.researchHistory.older).length>0}get saveSessionsEnabled(){return this.config.currentConfig.enableHistory}get anonymousUser(){return this.research.user.type==="anonymous"}today(n){let r=new Date;r.setHours(0,0,0,0);let o=n.filter(s=>new Date(s.creationDate)>r&&Number(s?.count)>0);return o.sort((s,a)=>new Date(a.creationDate).getTime()-new Date(s.creationDate).getTime()),o}lastXDays(n,r){let o=new Date;o.setHours(0,0,0,0);let s=new Date(Date.now()-n*24*60*60*1e3);s.setHours(0,0,0,0);let a=r.filter(l=>new Date(l.creationDate)>s&&new Date(l.creationDate)<o&&Number(l?.count)>0);return a.sort((l,c)=>new Date(c.creationDate).getTime()-new Date(l.creationDate).getTime()),a}get researchHistory(){let n=new Date(Date.now()-this.days*24*60*60*1e3);n.setHours(0,0,0,0),this.research.researchHistory.researchSessions.forEach(s=>{s.creationDate.endsWith("Z")||(s.creationDate+="Z")});let r=this.research.researchHistory.researchSessions.filter(s=>new Date(s.creationDate)<n&&Number(s?.count)>0),o={};return r.forEach(s=>{let a=new Date(s.creationDate).getFullYear();o[a]||(o[a]=[]),o[a].push(s)}),{today:this.today(this.research.researchHistory.researchSessions),lastxdays:this.lastXDays(this.days,this.research.researchHistory.researchSessions),older:Object.entries(o).map(([s,a])=>({year:+s,sessions:a})).sort((s,a)=>a.year-s.year)}}get currentResearchSession(){return this.research.researchSession}onSessionClicked(){this.sessionClicked.emit()}constructor(n,r){this.research=n,this.config=r,this.sessionClicked=new _e}};e.\u0275fac=function(r){return new(r||e)(b(Ne),b(we))},e.\u0275cmp=B({type:e,selectors:[["app-research-history"]],outputs:{sessionClicked:"sessionClicked"},standalone:!0,features:[H],decls:1,vars:0,consts:[["class","my-2 pe-1",4,"transloco"],[1,"my-2","pe-1"],[1,"text-xl","font-bold","text-black"],[1,"flex","gap-3","flex-col"],[1,"t-research-history-empty","text-black","mt-2"],[1,"t-research-history-maxsize-almostreached","mt-2","text-black","inline-flex","items-center","gap-1","text-sm","border","border-red-700","p-2","rounded"],[1,"t-research-history-available","text-black","mt-2"],[1,"t-research-history-maxsize-reached","mt-2","text-black","inline-flex","items-center","gap-1","text-sm","border","border-red-700","p-2","rounded"],[1,"me-1","text-gray-500","pt-2","text-sm"],[3,"session"],[3,"sessionClicked","session"]],template:function(r,o){r&1&&I(0,ak,6,2,"div",0)},dependencies:[ve,ee,p_]});let t=e;return t})()});function uk(){let t=vi()?vi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function Ji(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function S_(t){return t!=null&&typeof t.length=="number"}function fk(t){return e=>{if(Ji(e.value)||Ji(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function pk(t){return e=>{if(Ji(e.value)||Ji(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function I_(t){return Ji(t.value)?{required:!0}:null}function mk(t){return t.value===!0?null:{required:!0}}function gk(t){return Ji(t.value)||hk.test(t.value)?null:{email:!0}}function vk(t){return e=>Ji(e.value)||!S_(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function yk(t){return e=>S_(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function wk(t){if(!t)return Eu;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>
21{if(Ji(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function Eu(t){return null}function T_(t){return t!=null}function M_(t){return ji(t)?De(t):t}function A_(t){let e={};return t.forEach(i=>{e=i!=null?_(_({},e),i):e}),Object.keys(e).length===0?null:e}function N_(t,e){return e.map(i=>i(t))}function bk(t){return!t.validate}function R_(t){return t.map(e=>bk(e)?e:i=>e.validate(i))}function k_(t){if(!t)return null;let e=t.filter(T_);return e.length==0?null:function(i){return A_(N_(i,e))}}function O_(t){return t!=null?k_(R_(t)):null}function F_(t){if(!t)return null;let e=t.filter(T_);return e.length==0?null:function(i){let n=N_(i,e).map(M_);return bn(n).pipe(z(A_))}}function P_(t){return t!=null?F_(R_(t)):null}function g_(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function L_(t){return t._rawValidators}function V_(t){return t._rawAsyncValidators}function fg(t){return t?Array.isArray(t)?t:[t]:[]}function xu(t,e){return Array.isArray(t)?t.includes(e):t===e}function v_(t,e){let i=fg(e);return fg(t).forEach(r=>{xu(i,r)||i.push(r)}),i}function y_(t,e){return fg(e).filter(i=>!xu(t,i))}function wg(t){return(ku(t)?t.validators:t)||null}function _k(t){return Array.isArray(t)?O_(t):t||null}function bg(t,e){return(ku(e)?e.asyncValidators:t)||null}function Dk(t){return Array.isArray(t)?P_(t):t||null}function ku(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function j_(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new R(1e3,"");if(!n[i])throw new R(1001,"")}function $_(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new R(1002,"")})}function B_(t,e){return[...e.path,t]}function mg(t,e,i=Fu){Cg(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),xk(t,e),Ik(t,e),Sk(t,e),Ek(t,e)}function w_(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Au(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Mu(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function Ek(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Cg(t,e){let i=L_(t);e.validator!==null?t.setValidators(g_(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=V_(t);e.asyncValidator!==null?t.setAsyncValidators(g_(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();Mu(e._rawValidators,r),Mu(e._rawAsyncValidators,r)}function Au(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=L_(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(i=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=V_(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(i=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Mu(e._rawValidators,n),Mu(e._rawAsyncValidators,n),i}function xk(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&H_(t,e)})}function Sk(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&H_(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function H_(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Ik(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function Tk(t,e){t==null,Cg(t,e)}function Mk(t,e){return Au(t,e)}function U_(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function Ak(t){return Object.getPrototypeOf(t.constructor)===Ma}function Nk(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function q_(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(o=>{o.constructor===Xi?i=o:Ak(o)?n=o:r=o}),r||n||i||null}function Rk(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function b_(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function C_(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}function G_(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function jk(t){return t.split(":")[0]}function D_(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function Bk(t){return t.split(":")[0]}function E_(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var x_,Ma,kn,lk,vg,ck,dk,Xi,Nu,yg,hk,Wo,Su,Pr,Lr,Iu,Ck,DH,Zo,Ru,Ia,Du,Go,Ta,Qo,Tu,pg,Ou,Fu,Rn,kk,Ok,__,_g,Pu,Fk,Dg,z_,Pk,Aa,Lk,Na,Vk,Lu,Vu,$k,W_,ju,Hk,Uk,Eg,Q_,gg,$u,Ko,Bu,Yn=y(()=>{"use strict";L();L();he();rt();Ii();x_=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}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)}};e.\u0275fac=function(r){return new(r||e)(b(_t),b(ke))},e.\u0275dir=xe({type:e});let t=e;return t})(),Ma=(()=>{let e=class e extends x_{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Tn(e)))(o||e)}})(),e.\u0275dir=xe({type:e,features:[Wt]});let t=e;return t})(),kn=new $(""),lk={provide:kn,useExisting:fn(()=>vg),multi:!0},vg=(()=>{let e=class e extends Ma{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Tn(e)))(o||e)}})(),e.\u0275dir=xe({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&A("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[Qt([lk]),Wt]});let t=e;return t})(),ck={provide:kn,useExisting:fn(()=>Xi),multi:!0};dk=new $(""),Xi=(()=>{let e=class e extends x_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!uk())}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)}};e.\u0275fac=function(r){return new(r||e)(b(_t),b(ke),b(dk,8))},e.\u0275dir=xe({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(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Qt([ck]),Wt]});let t=e;return t})();Nu=new $(""),yg=new $(""),hk=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Wo=class{static min(e){return fk(e)}static max(e){return pk(e)}static required(e){return I_(e)}static requiredTrue(e){return mk(e)}static email(e){return gk(e)}static minLength(e){return vk(e)}static maxLength(e){return yk(e)}static pattern(e){return wk(e)}static nullValidator(e){return Eu(e)}static compose(e){return k_(e)}static composeAsync(e){return F_(e)}};Su=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=O_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=P_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}
21_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Pr=class extends Su{get formDirective(){return null}get path(){return null}},Lr=class extends Su{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Iu=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Ck={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},DH=W(_({},Ck),{"[class.ng-submitted]":"isSubmitted"}),Zo=(()=>{let e=class e extends Iu{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(b(Lr,2))},e.\u0275dir=xe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&kc("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)},features:[Wt]});let t=e;return t})(),Ru=(()=>{let e=class e extends Iu{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(b(Pr,10))},e.\u0275dir=xe({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&kc("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)},features:[Wt]});let t=e;return t})(),Ia="VALID",Du="INVALID",Go="PENDING",Ta="DISABLED";Qo=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Ia}get invalid(){return this.status===Du}get pending(){return this.status==Go}get disabled(){return this.status===Ta}get enabled(){return this.status!==Ta}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(v_(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(v_(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(y_(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(y_(e,this._rawAsyncValidators))}hasValidator(e){return xu(this._rawValidators,e)}hasAsyncValidator(e){return xu(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}
21markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Go,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Ta,this.errors=null,this._forEachChild(n=>{n.disable(W(_({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(W(_({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Ia,this._forEachChild(n=>{n.enable(W(_({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(W(_({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ia||this.status===Go)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ta:Ia}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Go,this._hasOwnPendingAsyncValidator=!0;let i=M_(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new _e,this.statusChanges=new _e}_calculateStatus(){return this._allControlsDisabled()?Ta:this.errors?Du:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Go)?Go:this._anyControlsHaveStatus(Du)?Du:Ia}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ku(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=_k(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Dk(this._rawAsyncValidators)}},Tu=class extends Qo{constructor(e,i,n){super(wg(i),bg(n,i)),this.controls=e,this._initOb
vendor: 4,764 bytes, line 21
21servables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){$_(this,!0,e),Object.keys(e).forEach(n=>{j_(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}},pg=class extends Tu{},Ou=new $("CallSetDisabledState",{providedIn:"root",factory:()=>Fu}),Fu="always";Rn=class extends Qo{constructor(e=null,i,n){super(wg(i),bg(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ku(i)&&(i.nonNullable||i.initialValueIsDefault)&&(C_(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){b_(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){b_(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){C_(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},kk=t=>t instanceof Rn,Ok={provide:Lr,useExisting:fn(()=>_g)},__=Promise.resolve(),_g=(()=>{let e=class e extends Lr{constructor(n,r,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new Rn,this._registered=!1,this.name="",this.update=new _e,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=q_(this,s)}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),U_(n,this.viewModel)&&(this._updateV
21alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){mg(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){__.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&$i(r);__.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?B_(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(b(Pr,9),b(Nu,10),b(yg,10),b(kn,10),b(Dt,8),b(Ou,8))},e.\u0275dir=xe({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Te.None,"disabled","isDisabled"],model:[Te.None,"ngModel","model"],options:[Te.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Qt([Ok]),Wt,ot]});let t=e;return t})(),Pu=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=xe({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),Fk={provide:kn,useExisting:fn(()=>Dg),multi:!0},Dg=(()=>{let e=class e extends Ma{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Tn(e)))(o||e)}})(),e.\u0275dir=xe({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&A("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[Qt([Fk]),Wt]});let t=e;return t})(),z_=new $(""),Pk={provide:Pr,useExisting:fn(()=>Aa)},Aa=(()=>{let e=class e extends Pr{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _e,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Au(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return mg(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}
21removeControl(n){w_(n.control||null,n,!1),Rk(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,Nk(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(w_(r||null,n),kk(o)&&(mg(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);Tk(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&Mk(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Cg(this.form,this),this._oldForm&&Au(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(b(Nu,10),b(yg,10),b(Ou,8))},e.\u0275dir=xe({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&A("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[Te.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Qt([Pk]),Wt,ot]});let t=e;return t})(),Lk={provide:Lr,useExisting:fn(()=>Na)},Na=(()=>{let e=class e extends Lr{set isDisabled(n){}constructor(n,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new _e,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=q_(this,s)}ngOnChanges(n){this._added||this._setUpControl(),U_(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return B_(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(b(Pr,13),b(Nu,10),b(yg,10),b(kn,10),b(z_,8))},e.\u0275dir=xe({type:e,selectors:[["","formControlName",""]],inputs:{name:[Te.None,"formControlName","name"],isDisabled:[Te.None,"disabled","isDisabled"],model:[Te.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Qt([Lk]),Wt,ot]});let t=e;return t})(),Vk={provide:kn,useExisting:fn(()=>Lu),multi:!0};Lu=(()=>{let e=class e extends Ma{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r=this._getOptionId(n),o=G_(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=jk(n);return this._optionMap.has(r)?this._optionMap.get(r):n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Tn(e)))(o||e)}})(),e.\u0275dir=xe({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&A("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Qt([Vk]),Wt]});let t=e;return t})(),Vu=(()=>{let e=class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(G_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
21),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(b(ke),b(_t),b(Lu,9))},e.\u0275dir=xe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),$k={provide:kn,useExisting:fn(()=>W_),multi:!0};W_=(()=>{let e=class e extends Ma{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));r=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else r=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],s=r.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l<a.length;l++){let c=a[l],u=this._getOptionValue(c.value);o.push(u)}}else{let a=r.options;for(let l=0;l<a.length;l++){let c=a[l];if(c.selected){let u=this._getOptionValue(c.value);o.push(u)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=Bk(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Tn(e)))(o||e)}})(),e.\u0275dir=xe({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&A("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Qt([$k]),Wt]});let t=e;return t})(),ju=(()=>{let e=class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(D_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(D_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(b(ke),b(_t),b(W_,9))},e.\u0275dir=xe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),Hk=(()=>{let e=class e{constructor(){this._validator=Eu}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):Eu,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=xe({type:e,features:[ot]});let t=e;return t})(),Uk={provide:Nu,useExisting:fn(()=>Eg),multi:!0},Eg=(()=>{let e=class e extends Hk{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=$i,this.createValidator=n=>I_}enabled(n){return n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Tn(e)))(o||e)}})(),e.\u0275dir=xe({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&&V("required",o._enabled?"":null)},inputs:{required:"required"},features:[Qt([Uk]),Wt]});let t=e;return t})(),Q_=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=Pt({});let t=e;return t})(),gg=class extends Qo{constructor(e,i,n){super(wg(i),bg(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}
21){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,n={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){$_(this,!1,e),e.forEach((n,r)=>{j_(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,n)=>{e(i,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};$u=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),s={};return E_(r)?s=r:r!==null&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new Tu(o,s)}record(n,r=null){let o=this._reduceControls(n);return new pg(o,r)}control(n,r,o){let s={};return this.useNonNullable?(E_(r)?s=r:(s.validators=r,s.asyncValidators=o),new Rn(n,W(_({},s),{nonNullable:!0}))):new Rn(n,r,o)}array(n,r,o){let s=n.map(a=>this._createControl(a));return new gg(s,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof Rn)return n;if(n instanceof Qo)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(r,o,s)}else return this.control(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ko=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Ou,useValue:n.callSetDisabledState??Fu}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=Pt({imports:[Q_]});let t=e;return t})(),Bu=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:z_,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Ou,useValue:n.callSetDisabledState??Fu}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=Pt({imports:[Q_]});let t=e;return t})()});function qk(t,e){if(t&1){let i=U();h(0,"input",8),A("change",function(){F(i);let r=m();return P(r.feature.change(r.feature.value))}),Eo("ngModelChange",function(r){F(i);let o=m();return zs(o.feature.value,r)||(o.feature.value=r),P(r)}),p()}if(t&2){let i=m();Do("ngModel",i.feature.value),V("id","form_"+i.feature.key)}}function zk(t,e){if(t&1){let i=U();h(0,"input",9),A("change",function(){F(i);let r=m();return P(r.feature.change(r.feature.value))}),Eo("ngModelChange",function(r){F(i);let o=m();return zs(o.feature.value,r)||(o.feature.value=r),P(r)}),p()}if(t&2){let i=m();Do("ngModel",i.feature.value),V("id","form_"+i.feature.key)}}function Gk(t,e){if(t&1){let i=U();h(0,"input",10),A("change",function(){F(i);let r=m();return P(r.feature.change(r.feature.value))}),Eo("ngModelChange",function(r){F(i);let o=m();return zs(o.feature.value,r)||(o.feature.value=r),P(r)}),p()}if(t&2){let i=m();Do("ngModel",i.feature.value),V("id","form_"+i.feature.key)("step",i.determineStep(i.feature.type))}}function Wk(t,e){if(t&1&&(h(0,"option",12),C(1),p()),t&2){let i=e.$implicit;E("value",i),f(),N(i)}}function Qk(t,e){if(t&1){let i=U();h(0,"select",11),A("change",function(){F(i);let r=m();return P(r.feature.change(r.feature.value))}),Eo("ngModelChange",function(r){F(i);let o=m();return zs(o.feature.value,r)||(o.feature.value=r),P(r)}),Oe(1,Wk,2,2,"option",12,pt),p()}if(t&2){let i=m();Do("ngModel",i.feature.value),V("id","form_"+i.feature.key),f(),Fe(i.feature.valueOptions)}}var Z_,K_=y(()=>{"use strict";Yn();L();Yn();Z_=(()=>{let e=class e{constructor(){}determineStep(n){return n==="double"||n==="float"?.1:1}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-feature"]],inputs:{feature:"feature"},standalone:!0,features:[H],decls:10,vars:7,consts:[[1,"w-full","pb-1","mb-1"],[1,"bg-cdra-blue-light-100","rounded","flex","py-1","me-1"],[1,"text-xs","ps-2","inline-flex","w-full","self-center"],["type","checkbox",1,"t-sidenav-feature-checkbox","text-xs","border","border-gray-400","me-2",3,"ngModel"],["type","text",1,"t-sidenav-feature-input","text-xs","border","border-gray-400","min-w-10","me-2",3,"ngModel"],["type","number",1,"t-sidenav-feature-input","text-xs","border","border-gray-400","min-w-10","me-2",3,"ngModel"],[1,"t-sidenav-feature-select","text-xs","border","border-gray-200","max-w-24","w-fit","me-2",3,"ngModel"],[1,"text-xs","italic","text-center"],["type","checkbox",1,"t-sidenav-feature-checkbox","text-xs","border","border-gray-400","me-2",3,"change","ngModelChange","ngModel"],["type","text",1,"t-sidenav-feature-input","text-xs","border","border-gray-400","min-w-10","me-2",3,"change","ngModelChange","ngModel"],["type","number",1,"t-sidenav-feature-input","text-xs","border","border-gray-400","min-w-10","me-2",3,"change","ngModelChange","ngModel"],[1,"t-sidenav-feature-select","text-xs","border","border-gray-200","max-w-24","w-fit","me-2",3,"change","ngModelChange","ngModel"],[3,"value"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1)(2,"label",2),C(3),p(),I(4,qk,1,2,"input",3)(5,zk,1,2,"input",4)(6,Gk,1,3,"input",5)(7,Qk,3,2,"select",6),p(),h(8,"p",7),C(9),p()()),r&2&&(f(2),V("for","form_"+o.feature.key),f(),ie(" ",o.feature.key,""),f(),j(4,o.feature.type==="boolean"?4:-1),f(),j(5,o.feature.type==="string"?5:-1),f(),j(6,o.feature.type==="integer"||o.feature.type==="double"?6:-1),f(),j(7,o.feature.type==="enum"?7:-1),f(2),N(o.feature.description))},dependencies:[Ko,Vu,ju,Xi,Dg,vg,Lu,Zo,_g],encapsulation:2});let t=e;return t})()});function Zk(t,e){if(t&1&&x(0,"app-feature",2),t&2){let i=e.$implicit;E("feature",i)}}function Kk(t,e){if(t&1&&x(0,"app-feature",2),t&2){let i=e.$implicit;E("feature",i)}}function Yk(t,e){if(t&1&&(h(0,"label",3),C(1,"Logs:"),p(),h(2,"textarea",4),C(3),p()),t&2){let i=m(2);f(3),N(i.debugInfo)}}function Jk(t,e){t&1&&(h(0,"div",5),C(1,"If 'logs' is checked, logs will be shown here."),p())}function Xk(t,e){if(t&1&&(h(0,"h3"),C(1,"Debug"),p(),Oe(2,Kk,1,1,"app-feature",2,pt),I(4,Yk,4,1)(5,Jk,2,0)),t&2){let i=m();f(2),Fe(i.debugFeatures),f(2),j(4,i.showLogs?4:5)}}function eO(t,e){if(t&1&&x(0,"app-feature",2),t&2){let i=e.$implicit;E("feature",i)}}function tO(t,e){if(t&1&&(h(0,"h3"),C(1,"Experimental"),p(),Oe(2,eO,1,1,"app-feature",2,pt)),t&2){let i=m();f(2),Fe(i.experimentalFeatures)}}function nO(t,e){if(t&1&&x(0,"app-feature",2),t&2){let i=e.$implicit;E("feature",i)}}function iO(t,e){if(t&1&&(h(0,"h3",6),C(1,"Features"),p(),Oe(2,nO,1,1,"app-feature",2,pt)),t&2){let i=m();f(2),Fe(i.features)}}var Y_,J_=y(()=>{"use strict";K_();L();$t();bu();gt();Y_=(()=>{let e=class e{get debugInfo(){return JSON.stringify(this.research.debugInfo,null,1)}get debugFeatures(){return this.config?.features.filter(n=>n.featureType==="DEBUG")}get features(){return this.config?.features.filter(n=>n.featureType==="FEATURE")}get showLogs(){return this.config.features.find(n=>n.key==="logs")?.value}get experimentalFeatures(){return this.config?.features.filter(n=>n.featureType==="EXPERIMENTAL")}get currentEnvironment(){return this.config?.apiParams.environment??"prod"}get currentQA(){return this.research.researchSession?.qandas[this.research.researchSession.qandas.length-1]?.answer?.id??"no qanda"}constructor(n,r,o){this.research=n,this.languageService=r,this.config=o,this.envs=["ci","preview","prod","test"],this.uiOnlyDebugFeatures=[{key:"cache",description:"Cache the answer or not",featureType:"DEBUG",type:"boolean",change:s=>this.changeCache(s.toString()),value:this.config.debugCache==="true"},{key:"language",description:"UI Language",featureType:"DEBUG",type:"enum",value:this.languageService.language,change:s=>this.changeLanguage(s.toString()),valueOptions:this.languageService.availableLanguages}]}changeLanguage(n){this.languageService.changeLanguage(n)}changeEnv(n){this.config.changeEnv(n)}changeCache(n){this.config.changeCache(n)}};e.\u0275fac=function(r){return new(r||e)(b(Ne),b(Uo),b(we))},e.\u0275cmp=B({type:e,selectors:[["app-debug-sidebar"]],standalone:!0,features:[H],decls:10,vars:3,consts:[[1,"items-center","gap-2","justify-center","py-3","text-xs"],[1,"uppercase"],[3,"feature"],["for","debugInfo",1,"italic"],["
21id","debugInfo","readonly","",1,"w-full","h-20","border"],[1,"italic"],[1,"border-b"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"h2",1),C(2,"Debug info"),p(),h(3,"h3"),C(4,"UI debug"),p(),Oe(5,Zk,1,1,"app-feature",2,pt),I(7,Xk,6,1)(8,tO,4,0)(9,iO,4,0),p()),r&2&&(f(5),Fe(o.uiOnlyDebugFeatures),f(2),j(7,o.debugFeatures.length?7:-1),f(),j(8,o.experimentalFeatures.length?8:-1),f(),j(9,o.features.length?9:-1))},dependencies:[Z_]});let t=e;return t})()});function oO(t,e){t&1&&x(0,"app-debug-sidebar")}function sO(t,e){if(t&1){let i=U();h(0,"div",1)(1,"button",2),A("click",function(){F(i);let r=m();return P(r.startNewResearchSession())}),h(2,"span",3),C(3),p()(),h(4,"div",4),x(5,"app-research-history"),I(6,oO,1,0,"app-debug-sidebar"),p(),h(7,"div",5)(8,"p"),C(9),p(),h(10,"button",6),A("click",function(){F(i);let r=m();return P(r.log("help",r.helpLink,!1))}),C(11),p(),h(12,"a",7),A("click",function(){F(i);let r=m();return P(r.log("disclaimer","https://clarivate.com/ai/academia/policy/"))}),C(13),p()()()}if(t&2){let i=e.$implicit,n=m();f(),E("routerLink",gi(8,rO)),V("aria-label",i("sidebar.newresearchbutton")),f(2),N(i("sidebar.newresearchbutton")),f(3),j(6,n.debugEnabled?6:-1),f(3),N(i("sidebar.disclaimer")),f(),E("routerLink",n.helpLink),f(),N(i("sidebar.helplink")),f(2),ie(" ",i("sidebar.disclaimer.link")," ")}}var rO,X_,eD=y(()=>{"use strict";At();hg();he();te();J_();L();$t();gt();ln();te();rO=()=>["/research/new"];X_=(()=>{let e=class e{get debugEnabled(){return this.config.debug}constructor(n,r,o){this.research=n,this.config=r,this.stats=o,this.disclaimerLink="/pages/disclaimer",this.helpLink="/pages/help"}startNewResearchSession(){this.research.startNewResearchSession(),this.stats.sendEvent({category:"navigation",action:"new-session",label:"origin",value:"sidebar"})}log(n,r,o=!0){this.stats.sendEvent({category:"navigation",action:n,label:"url",value:r}),o&&this.stats.pageView(r)}};e.\u0275fac=function(r){return new(r||e)(b(Ne),b(we),b(Ue))},e.\u0275cmp=B({type:e,selectors:[["app-sidebar"]],inputs:{disclaimerLink:"disclaimerLink",helpLink:"helpLink",libraryName:"libraryName"},standalone:!0,features:[H],decls:1,vars:0,consts:[["class","t-sidenav grid grid-rows-[auto_5rem] lg:grid-rows-[min-content_auto_8rem] h-[calc(var(--ra-height,100vh)-5rem)]",4,"transloco"],[1,"t-sidenav","grid","grid-rows-[auto_5rem]","lg:grid-rows-[min-content_auto_8rem]","h-[calc(var(--ra-height,100vh)-5rem)]"],[1,"t-header-new-research-button","h-12","gradient-border","border-2","rounded-full","mb-2","p-3","flex-row","text-cdra-blue-light-main","font-bold","hidden","items-center","w-fit","lg:flex",3,"click","routerLink"],[1,"hidden","mx-2","text-center","w-fit","font-bold","leading-4","lg:inline","group-data-[showsidenav=true]:inline"],["tabindex","0",1,"mb-auto","h-full","overflow-y-auto"],[1,"t-sidenav-disclaimer","flex","flex-col","justify-end","gap-1","py-1","h-fit","text-sm"],["id","about-research-assistant-btn",1,"t-sidenav-help-link","text-start","underline","me-2","hover:decoration-2",3,"click","routerLink"],["href","https://clarivate.com/ai/academia/policy/","target","_blank",1,"underline","hover:decoration-2",3,"click"]],template:function(r,o){r&1&&I(0,sO,14,9,"div",0)},dependencies:[ve,Y_,$o,_u,ye,ee],encapsulation:2});let t=e;return t})()});var Yo,Uu=y(()=>{"use strict";At();rt();L();At();Fr();Yo=(()=>{let e=class e{get previousUrl(){return this.urlHistory[this.urlHistory.length-2]}get currentUrl(){return this.urlHistory[this.urlHistory.length-1]}constructor(n,r){this.router=n,this.message=r,this.urlHistory=[]}initialize(){this.router.events.pipe(it(n=>n instanceof Yt)).subscribe(n=>{this.urlHistory.push(n.url),n.url!=="/"&&n.url.indexOf("/research")===-1&&this.message.emitAppEvent({event:"navigation",status:"ready",value:n.url}),setTimeout(()=>{this.focusOnFirstRelevantItem()})})}getRootElement(){return document.getElementsByTagName("cdi-research-assistant").item(0)?.shadowRoot??document}focusOnFirstRelevantItem(){let r=this.getRootElement().querySelectorAll("[data-focus-on-load]").item(0);r&&setTimeout(()=>r.focus(),0)}focusOnElementById(n,r=0){setTimeout(()=>{let s=this.getRootElement().getElementById(n);s?s.focus():console.warn(`NavigationService: Element with id "${n}" not found for focus.`)},r)}goBack(){this.urlHistory.pop();let n=this.urlHistory.pop();n&&(this.router.navigateByUrl(n),this.focusOnElementById("about-research-assistant-btn",100))}};e.\u0275fac=function(r){return new(r||e)(M(an),M(vn))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});function dO(t,e){if(t&1){let i=U();h(0,"button",30),A("click",function(r){F(i);let o=m(2);return r.stopPropagation(),P(o.toggleSideNavMobile())}),ce(),h(1,"svg",31),x(2,"path",27)(3,"path",28)(4,"path",29),p()()}if(t&2){let i=m(2);V("aria-label",i.labelSideNavToggleButton)("aria-expanded",i.sideNavShowing)}}function hO(t,e){if(t&1){let i=U();h(0,"button",32),A("click",function(r){F(i);let o=m(2);return r.stopPropagation(),P(o.toggleHistoryModal())}),ce(),h(1,"svg",33),x(2,"path",34),p(),Me(),h(3,"span",35),C(4),p()()}if(t&2){let i=m().$implicit;V("aria-label",i("researchhistory.title")),f(4),N(i("researchhistory.title"))}}function fO(t,e){if(t&1){let i=U();h(0,"div",10),I(1,dO,5,2,"button",11)(2,hO,5,2,"button",12),h(3,"button",13),A("click",function(){F(i);let r=m();return P(r.startNewResearchSession())}),ce(),h(4,"svg",14),x(5,"path",15)(6,"path",16)(7,"path",17),p(),Me(),h(8,"h1",18),x(9,"span",19),p()(),h(10,"button",20),A("click",function(){F(i);let r=m();return P(r.startNewResearchSession())}),ce(),h(11,"svg",21),x(12,"path",22)(13,"path",23),p(),Me(),h(14,"span",24),C(15),p()(),h(16,"button",25,0),A("click",function(r){F(i);let o=m();return r.stopPropagation(),P(o.toggleSideNav(!1))}),ce(),h(18,"svg",26),x(19,"path",27)(20,"path",28)(21,"path",29),p()()()}if(t&2){let i=e.$implicit,n=m();f(),E("ngIf",!n.isZoomOverlay),f(),E("ngIf",n.isZoomOverlay),f(),E("routerLink",gi(11,xg)),V("aria-label",i("navigation.menu")),f(6),E("innerHTML",i("app.title"),Le),f(),E("routerLink",gi(12,xg)),V("aria-label",i("sidebar.newresearchbutton")),f(),E("ngClass",Ae(13,cO,n.hideNewSessionButton())),f(4),N(i("sidebar.newresearchbutton")),f(),V("aria-label",n.labelSideNavToggleButton)("aria-expanded",n.sideNavShowing)}}function pO(t,e){t&1&&(h(0,"aside",36),x(1,"app-sidebar"),p())}function mO(t,e){if(t&1){let i=U();h(0,"div",38),A("click",function(){F(i);let r=m(2);return P(r.closeHistoryModal())})("keydown.escape",function(){F(i);let r=m(2);return P(r.closeHistoryModal())}),h(1,"div",39),A("click",function(r){return F(i),P(r.stopPropagation())})("keydown",function(r){return F(i),P(r.stopPropagation())}),h(2,"div",40)(3,"div",41)(4,"div",42),ce(),h(5,"svg",14),x(6,"path",15)(7,"path",16)(8,"path",17),p(),Me(),h(9,"h1",43),x(10,"span",19),p()(),h(11,"button",44),A("click",function(){F(i);let r=m(2);return P(r.closeHistoryModal())}),ce(),h(12,"svg",45),x(13,"path",46),p()()(),Me(),h(14,"button",47,1),A("click",function(){F(i);let r=m(2);return r.startNewResearchSession(),P(r.closeHistoryModal())}),C(16),p()(),h(17,"div",48)(18,"app-research-history",49),A("sessionClicked",function(){F(i);let r=m(2);return P(r.closeHistoryModal())}),p()(),h(19,"div",50)(20,"p",51),C(21),p(),h(22,"button",52),A("click",function(){F(i);let r=m(2);return P(r.closeHistoryModal())}),C(23),p(),h(24,"a",53),A("click",function(){F(i);let r=m(2);return P(r.closeHistoryModal())}),C(25),p()()()()}if(t&2){let i=m().$implicit;f(10),E("innerHTML",i("app.title"),Le),f(),V("aria-label",i("close.source.view")),f(3),E("routerLink",gi(9,xg)),V("aria-label",i("sidebar.newresearchbutton")),f(2),ie(" ",i("sidebar.newresearchbutton")," "),f(5),N(i("sidebar.disclaimer")),f(),E("routerLink",gi(10,uO)),f(),ie(" ",i("sidebar.helplink")," "),f(2),ie(" ",i("sidebar.disclaimer.link")," ")}}function gO(t,e){if(t&1&&(Li(0),I(1,mO,26,11,"div",37),Vi()),t&2){let i=m();f(),E("ngIf",i.isZoomOverlay&&i.showHistoryModal)}}var aO,lO,xg,cO,uO,nD,iD=y(()=>{"use strict";At();eD();
21te();he();hg();L();gt();$t();Uu();te();ln();he();aO=["modalNewResearchButton"],lO=["sidenavToggleButton"],xg=()=>["/research/new"],cO=t=>({invisible:t}),uO=()=>["/pages/help"];nD=(()=>{let e=class e{get sideNavShowing(){return this.config.showSideNav}onClick(){this.config.showSideNav===!0&&this.config.toggleSideNav(null)}keyEvent(n){n.key==="Escape"&&this.config.toggleSideNav(null)}constructor(n,r,o,s,a){this.config=n,this.research=r,this.nav=o,this.translocoService=s,this.stats=a,this.isZoomOverlay=!1,this.showHistoryModal=!1,this.labelSideNavToggleButton="",this.detectZoomLevel()}onWindowResize(){this.detectZoomLevel()}detectZoomLevel(){let n=window.outerWidth/window.innerWidth,r=Math.round(n*100);this.isZoomOverlay=r>=200&&r<=400}toggleHistoryModal(){this.showHistoryModal=!this.showHistoryModal,this.stats.sendEvent({category:"navigation",action:"toggle-history-modal",label:"open",value:""+this.showHistoryModal}),this.showHistoryModal&&setTimeout(()=>{this.modalNewResearchButton?.nativeElement&&this.modalNewResearchButton.nativeElement.focus()},0)}closeHistoryModal(){this.showHistoryModal=!1}ngOnInit(){this.setLabel()}hideNewSessionButton(){return this.nav.currentUrl==="/"||this.nav.currentUrl==="/research/new"}toggleSideNav(n){typeof n<"u"?this.config.toggleSideNav(n):this.config.toggleSideNav(!this.config.showSideNav),this.stats.sendEvent({category:"navigation",action:"toggle-sidenav",label:"open",value:""+this.config.showSideNav}),setTimeout(()=>{let r=this.sidenavToggleButtons.find(o=>o?.nativeElement?.checkVisibility()??!1);r&&r.nativeElement.focus()},50),this.setLabel()}toggleSideNavMobile(){this.config.showSideNav===!0?this.config.toggleSideNav(null):this.config.toggleSideNav(!0),this.stats.sendEvent({category:"navigation",action:"toggle-sidenav-mobile",label:"open",value:""+this.config.showSideNav}),this.setLabel()}startNewResearchSession(){this.research.startNewResearchSession(),this.stats.sendEvent({category:"navigation",action:"new-session",label:"origin",value:"header"})}setLabel(){this.translocoService.selectTranslate("sidebar.togglehide").subscribe(n=>{this.labelSideNavToggleButton=n,this.sideNavShowing===!1&&(this.labelSideNavToggleButton=this.translocoService.translate("sidebar.toggleshow"))})}};e.\u0275fac=function(r){return new(r||e)(b(we),b(Ne),b(Yo),b(Ye),b(Ue))},e.\u0275cmp=B({type:e,selectors:[["app-navigation"]],viewQuery:function(r,o){if(r&1&&(et(aO,5),et(lO,5)),r&2){let s;Ze(s=Ke())&&(o.modalNewResearchButton=s.first),Ze(s=Ke())&&(o.sidenavToggleButtons=s)}},hostAttrs:[1,"contents"],hostBindings:function(r,o){r&1&&A("click",function(){return o.onClick()},!1,Dc)("keyup",function(a){return o.keyEvent(a)})("resize",function(){return o.onWindowResize()},!1,_o)},standalone:!0,features:[H],decls:9,vars:3,consts:[["sidenavToggleButton",""],["modalNewResearchButton",""],["class","t-header grid grid-cols-[auto_1fr_auto] gap-2 text-black py-2 justify-items-center group-data-[showsidenav=true]:grid-cols-[1fr_auto] group-data-[showsidenav=true]:px-5 group-data-[showsidenav=true]:justify-items-start group-data-[showsidenav=false]:hidden lg:p-5 lg:grid-cols-[1fr_auto] lg:justify-items-start",4,"transloco"],["aria-controls","sidenav",1,"t-header-sidenav-expand","p-4","bg-cdra-blue-light-100","text-cdra-blue-light-800","rounded-e-md","hidden","lg:group-data-[showsidenav=false]:block","group-data-[showsidenav=true]:hidden",3,"click"],["aria-hidden","true","width","22","height","15","viewBox","0 0 22 15","fill","none","xmlns","http://www.w3.org/2000/svg",1,"-scale-x-100","rtl:scale-x-100","stroke-2","focus:stroke-[3]","hover:stroke-[3]"],["d","M5.83333 7.49548L21 7.49548","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["d","M12.3334 14L5.83337 7.5L12.3334 1","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["d","M1.5 14L1.5 1","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["id","sidenav","class","t-header-sidenav hidden px-5 h-full lg:block group-data-[showsidenav=false]:hidden group-data-[showsidenav=true]:block",4,"ngIf"],[4,"transloco"],[1,"t-header","grid","grid-cols-[auto_1fr_auto]","gap-2","text-black","py-2","justify-items-center","group-data-[showsidenav=true]:grid-cols-[1fr_auto]","group-data-[showsidenav=true]:px-5","group-data-[showsidenav=true]:justify-items-start","group-data-[showsidenav=false]:hidden","lg:p-5","lg:grid-cols-[1fr_auto]","lg:justify-items-start"],["class","t-header-mobile-sidenav-button px-2 order-1 lg:order-2 lg:hidden group-data-[showsidenav=true]:order-2","aria-controls","sidenav",3,"click",4,"ngIf"],["class","t-header-history-button order-1 inline-flex items-center gap-2 rounded-[28px] border border-[#BDBDBD] bg-white px-2 py-1 hover:bg-[rgba(28,26,35,0.08)] hover:border-[#BDBDBD] transition-colors",3,"click",4,"ngIf"],[1,"t-header-header-new-research","order-2","grow","inline-flex","items-center","group-data-[showsidenav=true]:order-1","group-data-[showsidenav=true]:hidden","lg:group-data-[showsidenav=true]:inline-flex","lg:inline-flex","lg:order-1",3,"click","routerLink"],["aria-hidden","true","
21width","30","height","29","viewBox","0 0 30 29","fill","none","xmlns","http://www.w3.org/2000/svg",1,"assistant-logo","shrink-0","text-cdra-blue-light-main"],["fill-rule","evenodd","clip-rule","evenodd","d","M19.5636 18.1855C14.1524 18.1855 9.78182 13.7976 9.78182 8.40369C9.78182 13.7976 5.39388 18.1855 0 18.1855C5.39388 18.1855 9.78182 22.5561 9.78182 27.95C9.78182 22.5561 14.1524 18.1855 19.5636 18.1855Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M29.6055 23.2328C26.6397 23.2328 24.2463 20.8221 24.2463 17.8737C24.2463 20.8221 21.8355 23.2328 18.8871 23.2328C21.8355 23.2328 24.2463 25.6263 24.2463 28.592C24.2463 25.6263 26.6397 23.2328 29.6055 23.2328Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M26.5184 6.92954C22.9109 6.92954 19.9972 4.01581 19.9972 0.408325C19.9972 4.01581 17.0834 6.92954 13.476 6.92954C17.0834 6.92954 19.9972 9.84327 19.9972 13.4508C19.9972 9.84327 22.9109 6.92954 26.5184 6.92954Z","fill","currentColor"],[1,"inline","ps-2","text-xl","font-bold","leading-5","research-header-new"],[3,"innerHTML"],[1,"t-header-landing-link","flex","items-center","pe-2","order-3","flex-row","rounded-full","text-cdra-blue-light-main","lg:hidden","group-data-[showsidenav=true]:gradient-border","group-data-[showsidenav=true]:order-1","group-data-[showsidenav=true]:p-2","group-data-[showsidenav=true]:hover:border-cdra-green-main","group-data-[showsidenav=true]:focus:border-cdra-green-main","group-data-[showsidenav=true]:border-2",3,"click","routerLink"],["aria-hidden","true","width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg",1,"shrink-0","group-data-[showsidenav=true]:hidden",3,"ngClass"],["d","M23.79 14.38C22.4374 14.0998 21.2225 13.3622 20.3501 12.2912C19.4776 11.2202 19.0009 9.88136 19 8.5C18.9993 8.16461 19.0294 7.82987 19.09 7.5H2C1.73502 7.50077 1.48111 7.60637 1.29374 7.79374C1.10637 7.98111 1.00077 8.23502 1 8.5V22.5C1.00077 22.765 1.10637 23.0189 1.29374 23.2063C1.48111 23.3936 1.73502 23.4992 2 23.5H5.53L10.23 29.14C10.3617 29.2981 10.539 29.4117 10.7376 29.4653C10.9362 29.519 11.1466 29.5102 11.34 29.44C11.5339 29.3711 11.7016 29.2436 11.8198 29.0752C11.9381 28.9068 12.001 28.7058 12 28.5V23.5H24C24.265 23.4992 24.5189 23.3936 24.7063 23.2063C24.8936 23.0189 24.9992 22.765 25 22.5V14.5C24.5936 14.5027 24.188 14.4625 23.79 14.38ZM7 17.5C6.60444 17.5 6.21776 17.3827 5.88886 17.1629C5.55996 16.9432 5.30362 16.6308 5.15224 16.2654C5.00087 15.8999 4.96126 15.4978 5.03843 15.1098C5.1156 14.7219 5.30608 14.3655 5.58579 14.0858C5.86549 13.8061 6.22186 13.6156 6.60982 13.5384C6.99778 13.4613 7.39991 13.5009 7.76537 13.6522C8.13082 13.8036 8.44318 14.06 8.66294 14.3889C8.8827 14.7178 9 15.1044 9 15.5C8.99844 16.03 8.78723 16.5378 8.41249 16.9125C8.03776 17.2872 7.52995 17.4984 7 17.5ZM13 17.5C12.6044 17.5 12.2178
2117.3827 11.8889 17.1629C11.56 16.9432 11.3036 16.6308 11.1522 16.2654C11.0009 15.8999 10.9613 15.4978 11.0384 15.1098C11.1156 14.7219 11.3061 14.3655 11.5858 14.0858C11.8655 13.8061 12.2219 13.6156 12.6098 13.5384C12.9978 13.4613 13.3999 13.5009 13.7654 13.6522C14.1308 13.8036 14.4432 14.06 14.6629 14.3889C14.8827 14.7178 15 15.1044 15 15.5C14.9984 16.03 14.7872 16.5378 14.4125 16.9125C14.0378 17.2872 13.53 17.4984 13 17.5ZM19 17.5C18.6044 17.5 18.2178 17.3827 17.8889 17.1629C17.56 16.9432 17.3036 16.6308 17.1522 16.2654C17.0009 15.8999 16.9613 15.4978 17.0384 15.1098C17.1156 14.7219 17.3061 14.3655 17.5858 14.0858C17.8655 13.8061 18.2219 13.6156 18.6098 13.5384C18.9978 13.4613 19.3999 13.5009 19.7654 13.6522C20.1308 13.8036 20.4432 14.06 20.6629 14.3889C20.8827 14.7178 21 15.1044 21 15.5C20.9984 16.03 20.7872 16.5378 20.4125 16.9125C20.0378 17.2872 19.53 17.4984 19 17.5Z","fill","currentColor"],["d","M25.0001 3.5C23.846 3.5001 22.7275 3.89949 21.8344 4.63041C20.9412 5.36132 20.3285 6.37873 20.1001 7.51C20.0312 7.83544 19.9977 8.16736 20.0001 8.5C20.0015 9.65071 20.3988 10.7659 21.1254 11.6582C21.852 12.5505 22.8635 13.1656 23.9901 13.4C24.3221 13.4704 24.6608 13.5039 25.0001 13.5C26.3262 13.5 27.598 12.9732 28.5357 12.0355C29.4733 11.0979 30.0001 9.82608 30.0001 8.5C30.0001 7.17392 29.4733 5.90215 28.5357 4.96447C27.598 4.02678 26.3262 3.5 25.0001 3.5ZM27.0001 9.61H26.0001V10.5C26.0001 10.7652 25.8948 11.0196 25.7072 11.2071C25.5197 11.3946 25.2653 11.5 25.0001 11.5C24.7349 11.5 24.4806 11.3946 24.293 11.2071C24.1055 11.0196 24.0001 10.7652 24.0001 10.5V9.61H23.0001C22.7349 9.61 22.4806 9.50464 22.293 9.31711C22.1055 9.12957 22.0001 8.87522 22.0001 8.61C22.0001 8.34478 22.1055 8.09043 22.293 7.90289C22.4806 7.71536 22.7349 7.61 23.0001 7.61H24.0001V6.5C24.0001 6.23478 24.1055 5.98043 24.293 5.79289C24.4806 5.60536 24.7349 5.5 25.0001 5.5C25.2653 5.5 25.5197 5.60536 25.7072 5.79289C25.8948 5.98043 26.0001 6.23478 26.0001 6.5V7.61H27.0001C27.2653 7.61 27.5197 7.71536 27.7072 7.90289C27.8948 8.09043 28.0001 8.34478 28.0001 8.61C28.0001 8.87522 27.8948 9.12957 27.7072 9.31711C27.5197 9.50464 27.2653 9.61 27.0001 9.61Z","fill","currentColor"],[1,"hidden","mx-2","text-center","w-fit","font-bold","leading-4","lg:inline","group-data-[showsidenav=true]:inline"],["aria-controls","sidenav",1,"t-header-sidenav-button","px-2","order-1","lg:order-2","hidden","lg:block","group-data-[showsidenav=true]:order-2",3,"click"],["aria-hidden","true","width","22","height","15","viewBox","0 0 22 15","fill","none","xmlns","http://www.w3.org/2000/svg",1,"scale-x-100","rtl:-scale-x-100","stroke-2","focus:stroke-[3]","hover:stroke-[3]"],["d","M5.83333 7.49548L21 7.49548","stroke","#898989","stroke-linecap","round","stroke-linejoin","round"],["d","M12.3334 14L5.83337 7.5L12.3334 1","stroke","#898989","stroke-linecap","round","stroke-linejoin","round"],["d","M1.5 14L1.5 1","stroke","#898989","stroke-linecap","round","stroke-linejoin","round"],["aria-controls","sidenav",1,"t-header-mobile-sidenav-button","px-2","order-1","lg:order-2","lg:hidden","group-data-[showsidenav=true]:order-2",3,"click"],["aria-hidden","true","width","22","height","15","viewBox","0 0 22 15","fill","none","xmlns","http://www.w3.org/2000/svg",1,"-scale-x-100","rtl:scale-x-100","group-data-[showsidenav=true]:scale-x-100","rtl:group-data-[showsidenav=true]:-scale-x-100","stroke-2","focus:stroke-[3]","hover:stroke-[3]"],[1,"t-header-history-button","order-1","inline-flex","items-center","gap-2","rounded-[28px]","border","border-[#BDBDBD]","bg-white","px-2","py-1","hover:bg-[rgba(28,26,35,0.08)]","hover:border-[#BDBDBD]","transition-colors",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 18 18","fill","none"],["d","M9.00002 18C6.9 18 5.04167 17.3625 3.425 16.0875C1.80834 14.8125 0.75834 13.1833 0.275 11.2C0.20834 10.95 0.25834 10.7208 0.425 10.5125C0.59167 10.3041 0.81667 10.
211833 1.1 10.15C1.36667 10.1166 1.60834 10.1666 1.825 10.3C2.04167 10.4333 2.19167 10.6333 2.275 10.9C2.675 12.4 3.5 13.625 4.75 14.575C6 15.525 7.41672 16 9.00002 16C10.95 16 12.6042 15.3208 13.9625 13.9625C15.3208 12.6041 16 10.95 16 9.00002C16 7.05002 15.3208 5.39583 13.9625 4.0375C12.6042 2.67916 10.95 2 9.00002 2C7.85002 2 6.775 2.26666 5.775 2.8C4.775 3.33333 3.93334 4.06666 3.25 5H5C5.28334 5 5.52084 5.09583 5.7125 5.2875C5.90417 5.47916 6 5.71666 6 6C6 6.28333 5.90417 6.52083 5.7125 6.7125C5.52084 6.90412 5.28334 7.00002 5 7.00002H1C0.71667 7.00002 0.47917 6.90412 0.2875 6.7125C0.0958399 6.52083 0 6.28333 0 6V2C0 1.71666 0.0958399 1.47916 0.2875 1.2875C0.47917 1.09583 0.71667 1 1 1C1.28334 1 1.52084 1.09583 1.7125 1.2875C1.90417 1.47916 2 1.71666 2 2V3.35C2.85 2.28333 3.8875 1.45833 5.1125 0.875C6.3375 0.29166 7.63332 0 9.00002 0C10.25 0 11.4208 0.2375 12.5125 0.7125C13.6042 1.1875 14.5542 1.82916 15.3625 2.6375C16.1708 3.44583 16.8125 4.39583 17.2875 5.4875C17.7625 6.57916 18 7.75002 18 9.00002C18 10.25 17.7625 11.4208 17.2875 12.5125C16.8125 13.6041 16.1708 14.5541 15.3625 15.3625C14.5542 16.1708 13.6042 16.8125 12.5125 17.2875C11.4208 17.7625 10.25 18 9.00002 18ZM10 8.60002L12.5 11.1C12.6833 11.2833 12.775 11.5166 12.775 11.8C12.775 12.0833 12.6833 12.3166 12.5 12.5C12.3167 12.6833 12.0833 12.775 11.8 12.775C11.5167 12.775 11.2833 12.6833 11.1 12.5L8.30002 9.70002C8.20002 9.60002 8.12502 9.48752 8.07502 9.36252C8.02502 9.23752 8.00002 9.10832 8.00002 8.97502V5C8.00002 4.71666 8.09582 4.47916 8.28752 4.2875C8.47922 4.09583 8.71672 4 9.00002 4C9.28332 4 9.52082 4.09583 9.71252 4.2875C9.90422 4.47916 10 4.71666 10 5V8.60002Z","fill","#1F67A0"],[1,"overflow-hidden","text-ellipsis","whitespace-nowrap","line-clamp-1","text-[#1F67A0]","font-sourcesans","text-[14px]","font-normal","leading-[18px]"],["id","sidenav",1,"t-header-sidenav","hidden","px-5","h-full","lg:block","group-data-[showsidenav=false]:hidden","group-data-[showsidenav=true]:block"],["role","dialog","aria-modal","true","tabindex","-1","class","fixed inset-0 z-[1001] bg-black bg-opacity-50 flex items-center justify-center p-4",3,"click","keydown.escape",4,"ngIf"],["role","dialog","aria-modal","true","tabindex","-1",1,"fixed","inset-0","z-[1001]","bg-black","bg-opacity-50","flex","items-center","justify-center","p-4",3,"click","keydown.escape"],["role","document","tabindex","0",1,"bg-white","rounded-lg","shadow-xl","max-w-4xl","w-full","max-h-[90vh]","overflow-hidden","flex","flex-col",3,"click","keydown"],[1,"sticky","top-0","bg-white","border-b","px-4","py-4","ps-4"],[1,"flex","justify-between","items-center","mb-2"],[1,"flex","items-center","pb-4"],[1,"inline","ps-2","text-xl","font-bold","leading-5","text-black"],[1,"text-gray-500","hover:text-gray-700","pr-4",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M18 6L6 18M6 6L18 18","stroke","currentColor","stroke-width","2","stroke-linecap","round"],[1,"gradient-border","border-2","rounded-full","px-6","text-cdra-blue-light-main","font-bold","flex","items-center","justify-center","h-[37px]","hover:border-cdra-green-main","focus:border-cdra-green-main",3,"click","routerLink"],[1,"px-4","py-2","overflow-y-auto","flex-1"],[3,"sessionClicked"],[1,"sticky","bottom-0","bg-white","border-t","px-4","py-2","text-xs"],[1,"mb-1"],[1,"text-start","underline","hover:decoration-2","block","mb-0.5",3,"click","routerLink"],["href","https://clarivate.com/ai/academia/policy/","target","_blank",1,"underline","hover:decoration-2","block",3,"click"]],template:function(r,o){if(r&1){let s=U();I(0,fO,22,15,"div",2),h(1,"button",3,0),A("click",function(l){return F(s),l.stopPropagation(),P(o.toggleSideNav())}),ce(),h(3,"svg",4),x(4,"path",5)(5,"path",6)(6,"path",7),p()(),I(7,pO,2,0,"aside",8)(8,gO,2,1,"ng-container",9)}r&2&&(f(),V("aria-expanded",o.sideNavShowing)("aria-label",o.labelSideNavToggleButton),f(6),E("ngIf",!o.isZoomOverlay))},dependencies:[ve,mt,Sr,$o,X_,ye,ee,_u],encapsulation:2});let t=e;return t})()});function vO(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,i
21)=>{let n=i.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function yO(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return vO(e)}catch{return atob(e)}}function rD(t,e){if(typeof t!="string")throw new Vr("Invalid token specified: must be a string");e||(e={});let i=e.header===!0?0:1,n=t.split(".")[i];if(typeof n!="string")throw new Vr(`Invalid token specified: missing part #${i+1}`);let r;try{r=yO(n)}catch(o){throw new Vr(`Invalid token specified: invalid base64 for part #${i+1} (${o.message})`)}try{return JSON.parse(r)}catch(o){throw new Vr(`Invalid token specified: invalid json for part #${i+1} (${o.message})`)}}var Vr,oD=y(()=>{"use strict";Vr=class extends Error{};Vr.prototype.name="InvalidTokenError"});function wO(t,e){if(t&1&&(h(0,"div",3),x(1,"div",4),p()),t&2){let i=e.$implicit,n=m();qs(Ae(3,sD,n.height)),V("aria-label",i("app.loader"))}}function bO(t,e){if(t&1){let i=U();h(0,"div",5)(1,"nav",6)(2,"button",7),A("click",function(){F(i);let r=m();return P(r.skipTo("default-search"))}),C(3),p(),x(4,"app-navigation"),p(),x(5,"div",8),h(6,"main",9),x(7,"router-outlet"),p()()}if(t&2){let i=e.$implicit,n=m();qs(Ae(4,sD,n.height)),V("data-showsidenav",n.showSideNavCurrent),f(3),N(i("landing.skiplink"))}}var sD,aD,lD=y(()=>{"use strict";he();L();ra();iD();At();oD();te();rt();L();gt();$t();Fr();ra();At();he();te();ln();Sa();sD=t=>({height:t});aD=(()=>{let e=class e{get showSideNavCurrent(){return this.config.showSideNav}constructor(n,r,o,s,a,l,c,u,d,g,v){this.config=n,this.research=r,this.message=o,this.toastr=s,this.renderer2=a,this.elRef=l,this.router=c,this.viewport=u,this.transloco=d,this.statsService=g,this.userService=v,this.height="100%",this.libraryName="Library",this.clientKey="",this.product="primo",this.language="en",this.apiUrl="/cda",this.showsToasts="true",this.sourceUrl=import.meta.url,this.token="",this.showSideNav="",this.apiParams="",this.showBeta="true",this.apiJwt="",this.query="",this.debug="false",this.streaming="false",this.showAdvanced="false",this.enableHistory="true",this.saveAvailable="true",this.howToCiteLink="",this.researchHistoryDays=this.config.researchHistoryDays.toString(),this.toast=new _e,this.stats=new _e,this.application=new _e,this.elements=[],this.initialQuery="",this.translationLoaded=new Pe(!1),this.router.navigateByUrl("/"),g.onEvent().subscribe(w=>{this.stats.emit(w)}),this.transloco.selectTranslate("research.status.answering").pipe(Je(1)).subscribe(()=>{this.translationLoaded.next(!0)}),o.appEvents$.subscribe(w=>{this.application.emit(w)}),o.emitAppEvent({event:"application",status:"initializing"})}visibilityChangeHandler(){this.elRef.nativeElement.ownerDocument.hidden&&this.research.close()}skipTo(n){this.viewport.scrollToAnchor(n)}ngOnChanges(){this.loadConfigFromInputs()}ngOnInit(){this.loadConfigFromInputs(),this.elRef.nativeElement.ownerDocument?.documentElement?.style?.setProperty("--ra-height",this.height),this.toastr.overlayContainer=this.toastContainer,this.message.onToast$.subscribe(a=>{this.toast.emit(a)});let n=new URL("https://fonts.googleapis.com/css2?family=Source+Sans+3:[email protected]&display=swap",this.sourceUrl);this.addStylesheetElement(n,this.elRef.nativeElement.getRootNode().getElementsByTagName("head")[0]);let r=new URL("cdra-styles.css?version=5f5e6d3757",this.sourceUrl);if(this.addStylesheetElement(r),this.showsToasts){let a=new URL("cdra-toastr.css?version=371323cb86",this.sourceUrl);this.addStylesheetElement(a)}let o=this.renderer2.createElement("style"),s=this.renderer2.createText(`@font-face { 22 font-family: 'RegularClarivate-Bold'; 23 src: url('${new URL("/assets/fonts/RegularClarivate-Bold.woff2",this.sourceUrl)}') format('woff2'), url('${new URL("assets/fonts/RegularClarivate-Bold.woff",this.sourceUrl)}') format('woff'); 24 font-display: swap; 25 }`);o.appendChild(s),this.renderer2.appendChild(this.elRef.nativeElement.getRootNode().getElementsByTagName("head")[0],o),this.elements.push(o),this.message.emitAppEvent({event:"application",status:"ready"})}loadConfigFromInputs(){let n=JSON.parse(this.apiParams);this.translationLoaded.asObservable().pipe().subscribe(s=>{s&&this.query!==this.initialQuery&&(this.initialQuery=this.query,this.statsService.search(this.query,"webcomponent"),this.research.getAnswer(this.query,null).then(()=>{this.query=""}))});let r={};if(this.apiJwt){let s=sessionStorage.getItem(this.apiJwt);if(s)try{r=rD(s)}catch(a){console.error("Issue decoding token from sessionStorage",a)}}let o={id:r.user??n?.user??"session:ui",userId:r.user??n?.user??"session:ui",clientKey:this.clientKey,remaining:-1,maxRemaining:-1};this.userService.setUser(o),this.debug&&this.debug!=="false"&&(this.config.setDebug(!0),this.config.setFeatureFromString(this.debug)),this.config.setConfig({isStandalone:!1,showToast:this.showsToasts==="true",height:this.height,libraryName:this.libraryName,product:this.product,language:this.language,apiUrl:this.apiUrl,showSideNav:null,showBeta:this.showBeta==="true",apiParams:n??{},apiJwt:this.apiJwt,sourceUrl:this.sourceUrl,streamAnswer:this.streaming==="true",showAdvanced:this.showAdvanced==="true",enableHistory:this.enableHistory==="true",howToCiteLink:this.howToCiteLink,maxHistorySize:this.config.maxHistorySizeDefault,researchHistoryDays:this.researchHistoryDays?parseInt(this.researchHistoryDays):this.config.researchHistoryDays})}ngOnDestroy(){for(let n of this.elements)this.renderer2.removeChild(this.elRef.nativeElement.shadowRoot,n)}addStylesheetElement(n,r=this.elRef.nativeElement.shadowRoot){let o=this.renderer2.createElement("link");this.renderer2.setProperty(o,"rel","stylesheet"),this.renderer2.setProperty(o,"href",n),this.renderer2.appendChild(r,o),this.elements.push(o)}};e.\u0275fac=function(r){return new(r||e)(b(we),b(Ne),b(vn),b(No),b(_t),b(ke),b(an),b(zp),b(Ye),b(Ue),b(Yi))},e.\u0275cmp=B({type:e,selectors:[["app-root"]],viewQuery:function(r,o){if(r&1&&et(um,7),r&2){let s;Ze(s=Ke())&&(o.toastContainer=s.first)}},hostBindings:function(r,o){r&1&&A("visibilitychange",function(a){return o.visibilityChangeHandler(a)},!1,Dc)},inputs:{height:"height",libraryName:"libraryName",clientKey:"clientKey",product:"product",language:"language",apiUrl:"apiUrl",showsToasts:"showsToasts",sourceUrl:"sourceUrl",token:"token",showSideNav:"showSideNav",apiParams:"apiParams",showBeta:"showBeta",apiJwt:"apiJwt",query:"query",debug:"debug",streaming:"streaming",showAdvanced:"showAdvanced",enableHistory:"enableHistory",saveAvailable:"saveAvailable",howToCiteLink:"howToCiteLink",researchHistoryDays:"researchHistoryDays"},outputs:{toast:"toast",stats:"stats",application:"application"},standalone:!0,features:[ot,H],decls:3,vars:0,consts:[["class","loader-container",3,"style",4,"transloco"],["aria-live","polite","toastContainer",""],["class","component-container !opacity-100 group h-screen flex-col lg:flex-row bg-zinc-100 gap-x-2 md:gap-x-5 font-sourcesans scale-[1]",3,"style",4,"transloco"],[1,"loader-container"],[1,"loader",2,"height","50px","width","50px"],[1,"component-container","!opacity-100","group","h-screen","flex-col","lg:flex-row","bg-zinc-100","gap-x-2","md:gap-x-5","font-sourcesans","scale-[1]"],[1,"flex","flex-col","w-full","bg-white","border-b-2","border-b-zinc-400","z-20","h-auto","lg:shadow-none","lg:my-5","lg:ms-5","lg:w-1/4","lg:border-none","lg:rounded-lg","group-data-[showsidenav=true]:absolute","group-data-[showsidenav=true]:shadow-xl","group-data-[showsidenav=true]:border-left-1","group-data-[showsidenav=true]:w-3/4","group-data-[showsidenav=true]:h-full","lg:group-data-[showsidenav=true]:w-1/4","lg:group-data-[showsidenav=true]:shadow-none","lg:group-data-[showsidenav=true]:relative","lg:group-data-[showsidenav=true]:h-auto","group-data-[showsidenav=false]:ms-0","group-data-[showsidenav=false]:basis-0","group-data-[showsidenav=false]:bg-transparent"],[1,"skiplink","absolute","left-1/2",3,"click"],[1,"hidden","lg:group-data-[showsidenav=true]:hidden","group-data-[showsidenav=true]:block","group-data-[showsidenav=true]:fixed","inset-0","bg-black","bg-opacity-55","z-10"],[1,"flex","lg:overflow-y-clip","overflow-y-auto","bg-white","w-full","justify-center","h-[calc(100%-4rem)]","lg:w-3/4","lg:h-auto","lg:my-5","lg:me-5","lg:rounded-lg","lg:group-data-[showsidenav=true]:w-3/4","lg:group-data-[showsidenav=false]:w-full"]],template:function(r,o){r&1&&(I(0,wO,2,5,"div",0),x(1,"div",1),I(2,bO,8,6,"div",2))},dependencies:[ve,nD,Or,um,ee],styles:[` 26.component-container { 27 transition : opacity 0.1s linear; 28 opacity: 0; 29} 30.loader-container { 31 display: flex; 32 justify-content: center; 33 align-items: center; 34} 35.loader { 36 border: 2px solid #DCEEFB; 37 border-bottom-color: #135a99; 38 border-radius: 50%; 39 display: inline-block; 40 box-sizing: border-box; 41 animation: rotation 1s linear infinite; 42} 43 44@keyframes rotation { 45 0% { 46 transform: rotate(0deg); 47 } 48 100% { 49 transform: rotate(360deg); 50 } 51} 52/* will be overridden by external CSS to show */ 53.component-container { 54 display: hidden; 55} 56/* webfont is also loaded, but via JS due to path */ 57`],encapsulation:3});let t=e;return t})()});function CO(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function _O(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}function DO(t){return typeof t=="function"}function EO(t,e){if(!Sg){let i=Element.prototype;Sg=i.matches||i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?Sg.call(t,e):!1}function xO(t,e){return t===e||t!==t&&e!==e}function SO(t){let e={};return t.forEach(({propName:i,templateName:n,transform:r})=>{e[CO(n)]=[i,r]}),e}function IO(t,e){return e.get(pi).resolveComponentFactory(t).inputs}function TO(t,e){let i=t.childNodes,n=e.map(()=>[]),r=-1;e.some((o,s)=>o==="*"?(r=s,!0):!1);for(let o=0,s=i.length;o<s;++o){let a=i[o],l=MO(a,e,r);l!==-1&&n[l].push(a)}return n}function MO(t,e,i){let n=i;return _O(t)&&e.some((r,o)=>r!=="*"&&EO(t,r)?(n=o,!0):!1),n}function cD(t,e){let i=IO(t,e.injector),n=e.strategyFactory||new Ig(t,e.injector),r=SO(i),s=class s extends Mg{get ngElementStrategy(){
57if(!this._ngElementStrategy){let l=this._ngElementStrategy=n.create(this.injector||e.injector);i.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let d=this[c];delete this[c],l.setInputValue(c,d,u)})}return this._ngElementStrategy}constructor(l){super(),this.injector=l}attributeChangedCallback(l,c,u,d){let[g,v]=r[l];this.ngElementStrategy.setInputValue(g,u,v)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let c=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(c)})}};s.observedAttributes=Object.keys(r);let o=s;return i.forEach(({propName:a,transform:l})=>{Object.defineProperty(o.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(c){this.ngElementStrategy.setInputValue(a,c,l)},configurable:!0,enumerable:!0})}),o}var qu,Sg,AO,Ig,Tg,Mg,uD=y(()=>{"use strict";L();rt();Ii();qu={schedule(t,e){let i=setTimeout(t,e);return()=>clearTimeout(i)},scheduleBeforeRender(t){if(typeof window>"u")return qu.schedule(t,0);if(typeof window.requestAnimationFrame>"u")return qu.schedule(t,16);let e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};AO=10,Ig=class{constructor(e,i){this.componentFactory=i.get(pi).resolveComponentFactory(e)}create(e){return new Tg(this.componentFactory,e)}},Tg=class{constructor(e,i){this.componentFactory=e,this.injector=i,this.eventEmitters=new en(1),this.events=this.eventEmitters.pipe(Qe(n=>eh(...n))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:n})=>n)),this.ngZone=this.injector.get(Ee),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=qu.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},AO))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,i,n){this.runInZone(()=>{if(n&&(i=n.call(this.componentRef?.instance,i)),this.componentRef===null){this.initialInputValues.set(e,i);return}xO(i,this.getInputValue(e))&&!(i===void 0&&this.unchangedInputs.has(e))||(this.recordInputChange(e,i),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=i,this.scheduleDetectChanges())})}initializeComponent(e){let i=ft.create({providers:[],parent:this.injector}),n=TO(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(i,n,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Dt),this.implementsOnChanges=DO(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Zt).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e,transform:i})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e),i)}),this.initialInputValues.clear()}initializeOutputs(e){let i=this.componentFactory.outputs.map(({propName:n,templateName:r})=>e.instance[n].pipe(z(s=>({name:r,value:s}))));this.eventEmitters.next(i)}callNgOnChanges(e){if(!this.implementsOnChanges||this.inputChanges===null)return;let i=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(i)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=qu.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,i){if(!this.implementsOnChanges)return;this.inputChanges===null&&(this.inputChanges={});let n=this.inputChanges[e];if(n){n.currentValue=i;return}let r=this.unchangedInputs.has(e),o=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Es(o,i,r)}detectChanges(){this.componentRef!==null&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},Mg=class extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}});function dD(t){return new R(3e3,!1)}function NO(){return new R(3100,!1)}function RO(){return new R(3101,!1)}function kO(t){return new R(3001,!1)}function OO(t){return new R(3003,!1)}function FO(t){return new R(3004,!1)}function PO(t,e){return new R(3005,!1)}function LO(){return new R(3006,!1)}function VO(){return new R(3007,!1)}function jO(t,e){return new R(3008,!1)}function $O(t){return new R(3002,!1)}function BO(t,e,i,n,r){return new R(3010,!1)}function HO(){return new R(3011,!1)}function UO(){return new R(3012,!1)}function qO(){return new R(3200,!1)}function zO(){return new R(3202,!1)}function GO(){return new R(3013,!1)}function WO(t){return new R(3014,!1)}function QO(t){return new R(3015,!1)}function ZO(t){return new R(3016,!1)}function KO(t,e){return new R(3404,!1)}function YO(t){return new R(3502,!1)}function JO(t){return new R(3503,!1)}function XO(){return new R(3300,!1)}function eF(t){return new R(3504,!1)}function tF(t){return new R(3301,!1)}function nF(t,e){return new R(3302,!1)}function iF(t){return new R(3303,!1)}function rF(t,e){return new R(3400,!1)}function oF(t){return new R(3401,!1)}function sF(t){return new R(3402,!1)}function aF(t,e){return new R(3505,!1)}function er(t){switch(t.length){case 0:return new Hi;case 1:return t[0];default:return new Zs(t)}}function xD(t,e,i=new Map,n=new Map){let r=[],o=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((g,v)=>{let w=v,D=g;if(v!=="offset")switch(w=t.normalizePropertyName(w,r),D){case Gc:D=i.get(v);break;case Qn:D=n.get(v);break;default:D=t.normalizeStyleValue(v,w,D,r);break}d.set(w,D)}),u||o.push(d),a=d,s=c}),r.length)throw YO(r);return o}function Jg(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Ag(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Ag(i,"done",t)));break;
vendor: 49,031 bytes, line 57
57case"destroy":t.onDestroy(()=>n(i&&Ag(i,"destroy",t)));break}}function Ag(t,e,i){let n=i.totalTime,r=!!i.disabled,o=Xg(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function Xg(t,e,i,n,r="",o=0,s){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function un(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function hD(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}function e0(t){let e=t.parentNode||t.host||null;return e===lF?null:e}function cF(t){return t.substring(1,6)=="ebkit"}function uF(t){jr||(jr=dF()||{},fD=jr.style?"WebkitAppearance"in jr.style:!1);let e=!0;return jr.style&&!cF(t)&&(e=t in jr.style,!e&&fD&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in jr.style)),e}function dF(){return typeof document<"u"?document.body:null}function SD(t,e){for(;e;){if(e===t)return!0;e=e0(e)}return!1}function ID(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}function bi(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Vg(parseFloat(e[1]),e[2])}function Vg(t,e){switch(e){case"s":return t*hF;default:return t}}function Yu(t,e,i){return t.hasOwnProperty("duration")?t:pF(t,e,i)}function pF(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(dD(t)),{duration:0,delay:0,easing:""};r=Vg(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=Vg(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else r=t;if(!i){let a=!1,l=e.length;r<0&&(e.push(NO()),a=!0),o<0&&(e.push(RO()),a=!0),a&&e.splice(l,0,dD(t))}return{duration:r,delay:o,easing:s}}function mF(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function Jn(t,e,i){e.forEach((n,r)=>{let o=n0(r);i&&!i.has(r)&&i.set(r,t.style[o]),t.style[o]=n})}function Br(t,e){e.forEach((i,n)=>{let r=n0(n);t.style[r]=""})}function Ra(t){return Array.isArray(t)?t.length==1?t[0]:Mb(t):t}function gF(t,e,i){let n=e.params||{},r=AD(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||i.push(kO(o))})}function AD(t){let e=[];if(typeof t=="string"){let i;for(;i=jg.exec(t);)e.push(i[1]);jg.lastIndex=0}return e}function Oa(t,e,i){let n=`${t}`,r=n.replace(jg,(o,s)=>{let a=e[s];return a==null&&(i.push(OO(s)),a=""),a.toString()});return r==n?t:r}function n0(t){return t.replace(vF,(...e)=>e[1].toUpperCase())}function yF(t,e){return t===0||e===0}function wF(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;o<e.length;o++){let s=e[o];r.forEach(a=>s.set(a,i0(t,a)))}}return e}function cn(t,e,i){switch(e.type){case re.Trigger:return t.visitTrigger(e,i);case re.State:return t.visitState(e,i);case re.Transition:return t.visitTransition(e,i);case re.Sequence:return t.visitSequence(e,i);case re.Group:return t.visitGroup(e,i);case re.Animate:return t.visitAnimate(e,i);case re.Keyframes:return t.visitKeyframes(e,i);case re.Style:return t.visitStyle(e,i);case re.Reference:return t.visitReference(e,i);case re.AnimateChild:return t.visitAnimateChild(e,i);case re.AnimateRef:return t.visitAnimateRef(e,i);case re.Query:return t.visitQuery(e,i);case re.Stagger:return t.visitStagger(e,i);default:throw FO(e.type)}}function i0(t,e){return window.getComputedStyle(t)[e]}function CF(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>_F(n,i,e)):i.push(t),i}function _F(t,e,i){if(t[0]==":"){let l=DF(t,i);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(QO(t)),e;let r=n[1],o=n[2],s=n[3];e.push(mD(r,s));let a=r==Xu&&s==Xu;o[0]=="<"&&!a&&e.push(mD(s,r))}function DF(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n)<parseFloat(i);default:return e.push(ZO(t)),"* => *"}}function mD(t,e){let i=Gu.has(t)||Wu.has(t),n=Gu.has(e)||Wu.has(e);return(r,o)=>{let s=t==Xu||t==r,a=e==Xu||e==o;return!s&&i&&typeof r=="boolean"&&(s=r?Gu.has(t):Wu.has(t)),!a&&n&&typeof o=="boolean"&&(a=o?Gu.has(e):Wu.has(e)),s&&a}}function RD(t,e,i,n){return new $g(t).build(e,i,n)}function xF(t){let e=!!t.split(/\s*,\s*/).find(i=>i==ND);return e&&(t=t.replace(EF,"")),t=t.replace(/@\*/g,Ku).replace(/@\w+/g,i=>Ku+"-"+i.slice(1)).replace(/:animating/g,Lg),[t,e]}function SF(t){return t?_({},t):null}function IF(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function TF(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Yu(t,e).duration;return Ng(o,0,"")}let i=t;if(i.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Ng(0,0,"");return o.dynamic=!0,o.strValue=i,o}let r=Yu(i,e);return Ng(r.duration,r.delay,r.easing)}function $r(t){return t?(t=_({},t),t.params&&(t.params=SF(t.params))):t={},t}function Ng(t,e,i){return{duration:t,delay:e,easing:i}}function r0(t,e,i,n,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}function kD(t,e,i,n,r,o=new Map,s=new Map,a,l,c=[]){return new Hg().buildKeyframes(t,e,i,n,r,o,s,a,l,c)}function vD(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function OF(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n??=e.keys();for(let o of n)i.set(o,Qn)}else for(let[o,s]of r)i.set(o,s)}),i}function yD(t,e,i,n,r,o,s,a,l,c,u,d,g){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:g}}function FF(t,e,i,n,r){return t.some(o=>o(e,i,n,r))}function OD(t,e){let i=_({},e);return Object.entries(t).forEach(([n,r])=>{r!=null&&(i[n]=r)}),i}function PF(t,e,i){return new Gg(t,e,i)}function LF(t,e,i){let n=[(s,a)=>!0],r={type:re.Sequence,steps:[],options:null},o={type:re.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new nd(t,o,e)}function wD(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}function zF(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function GF(t){return t??null}function Qu(t){return t&&t.nodeType===1}function WF(t){return t=="start"||t=="done"}function CD(t,e){let i=t.style.display;return t.style.display=e??"none",i}function _D(t,e,i,n,r){let o=[];i.forEach(l=>o.push(CD(l)));let s=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let g=e.computeStyle(c,d,r);u.set(d,g),(!g||g.length==0)&&(c[On]=qF,s.push(c))}),t.set(c,u)});let a=0;return i.forEach(l=>CD(l,o[a++])),s}function DD(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,r=new Set(e),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:r.has(c)?l=n:l=s(c),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==n&&i.get(l).push(a)}),i}function yn(t,e){t.classList?.add(e)}function Jo(t,e){t.classList?.remove(e)}function QF(t,e,i){er(i).onDone(()=>t.processLeaveNode(e))}function ZF(t){let e=[];return PD(t,e),e}function PD(t,e){for(let i=0;i<t.length;i++){let n=t[i];n instanceof Zs?PD(n.players,e):e.push(n)}}function KF(t,e){let i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let r=0;r<i.length;r++){let o=i[r];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}function ED(t,e,i){let n=i.get(t);if(!n)return!1;let r=e.get(t);return r?n.forEach(o=>r.add(o)):e.set(t,n),i.delete(t),!0}function YF(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Fg(e[0]),e.length>1&&(n=Fg(e[e.length-1]))):e instanceof Map&&(i=Fg(e)),i||n?new Kg(t,i,n):null}function Fg(t){let e=null;return t.forEach((i,n)=>{JF(n)&&(e=e||new Map,e.set(n,i))}),e}function JF(t){return t==="display"||t==="position"}function XF(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function e4(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var lF,jr,fD,t0,o0,Hr,Ur,hF,TD,fF,MD,Pg,zu,Ku,pD,Lg,jg,vF,bF,Ju,Xu,Gu,Wu,ND,EF,gD,$g,Bg,Fa,MF,AF,NF,RF,kF,Hg,ed,Ug,td,qg,Rg,nd,zg,Gg,VF,Wg,bD,jF,kg,$F,BF,HF,UF,FD,qF,On,Pa,ka,Og,Qg,Zg,La,es,Xo,Kg,id,rd,Zu,LD,od,Yg,sd,s0=y(()=>{"use strict";To();L();L();lF=typeof document>"u"?null:document.documentElement;jr=null,fD=!1;t0=(()=>{let e=class e{validateStyleProperty(n){return uF(n)}matchesElement(n,r){return!1}containsElement(n,r){return SD(n,r)}getParentElement(n){return e0(n)}query(n,r,o){return ID(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,l=[],c){return new Hi(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),o0=class o0{};o0.NOOP=new t0;Hr=o0,Ur=class{},hF=1e3,TD="{{",fF="}}",MD="ng-enter",Pg="ng-leave",zu="ng-trigger",Ku=".ng-trigger",pD="ng-animating",Lg=".ng-animating";jg=new RegExp(`${TD}\\s*(.+?)\\s*${fF}`,"g");vF=/-+([a-z0-9])/g;bF=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ju=class extends Ur{normalizePropertyName(e,i){return n0(e)}normalizeStyleValue(e,i,n,r){let o="",s=n.toString().trim();if(bF.has(i)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(PO(e,n))}return s+o}},Xu="*";Gu=new Set(["true","1"]),Wu=new Set(["false","0"]);ND=":self",EF=new RegExp(`s*${ND}s*,?`,"g");gD="",$g=class{constructor(e){this._driver=e}build(e,i,n){let r=new Bg(i);return this._resetContextStyleTimingState(r),cn(this,Ra(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=gD,e.collectedStyles=new Map,e.collectedStyles.set(gD,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&i.errors.push(LO()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==re.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,i))}),l.name=c}else if(a.type==re.Transition){let l=this.visitTransition(a,i);n+=l.queryCount,r+=l.depCount,s.push(l)}else i.errors.push(VO())}),{type:re.Trigger,name:e.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{AD(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&i.errors.push(jO(e.name,[...o.values()]))}return{type:re.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=cn(this,Ra(e.animation),i),r=CF(e.expr,i.errors);return{type:re.Transition,matchers:r,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:$r(e.options)}}visitSequence(e,i){return{type:re.Sequence,steps:e.steps.map(n=>cn(this,n,i)),options:$r(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,o=e.steps.map(s=>{i.currentTime=n;let a=cn(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:re.Group,steps:o,options:$r(e.options)}}visitAnimate(e,i){let n=TF(e.timings,i.errors);i.currentAnimateTimings=n;let r,o=e.styles?e.styles:Mt({});if(o.type==re.Keyframes)r=this.visitKeyframes(o,i);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Mt(c)}i.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,i);l.isEmptyStep=a,r=l}return i.currentAnimateTimings=null,{type:re.Animate,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===Qn?n.push(a):i.errors.push($O(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(TD)>=0){o=!0;break}}}),{type:re.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,o=i.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(i.errors.push(BO(l,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),i.options&&gF(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:re.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(HO()),n;let r=1,o=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(O=>{let K=this._makeStyleAst(O,i),be=K.offset!=null?K.offset:IF(K.styles),se=0;return be!=null&&(o++,se=K.offset=be),l=l||se<0||se>1,a=a||se<c,c=se,s.push(se),K});l&&i.errors.push(UO()),a&&i.errors.push(qO());let d=e.steps.length,g=0;o>0&&o<d?i.errors.push(zO()):o==0&&(g=r/(d-1));let v=d-1,w=i.currentTime,D=i.currentAnimateTimings,S=D.duration;return u.forEach((O,K)=>{let be=g>0?K==v?1:g*K:s[K],se=be*S;i.currentTime=w+D.delay+se,D.duration=se,this._validateStyleAst(O,i),O.offset=be,n.styles.push(O)}),n}visitReference(e,i){return{type:re.Reference,animation:cn(this,Ra(e.animation),i),options:$r(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:re.AnimateChild,options:$r(e.options)}}visitAnimateRef(e,i){return{type:re.AnimateRef,animation:this.visitReference(e.animation,i),options:$r(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[o,s]=xF(e.selector);i.currentQuerySelector=n.length?n+" "+o:o,un(i.collectedStyles,i.currentQuerySelector,new Map);let a=cn(this,Ra(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:re.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:$r(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(GO());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Yu(e.timings,i.errors,!0);return{type:re.Stagger,animation:cn(this,Ra(e.animation),i),timings:n,options:null}}};Bg=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};Fa=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},MF=1,AF=":enter",NF=new RegExp(AF,"g"),RF=":leave",kF=new RegExp(RF,"g");Hg=class{buildKeyframes(e,i,n,r,o,s,a,l,c,u=[]){c=c||new Fa;let d=new Ug(e,i,c,r,o,u,[]);d.options=l;let g=l.delay?bi(l.delay):0;d.currentTimeline.delayNextStep(g),d.currentTimeline.setStyles([s],null,d.errors,l),cn(this,n,d);let v=d.timelines.filter(w=>w.containsAnimation());if(v.length&&a.size){let w;for(let D=v.length-1;D>=0;D--){let S=v[D];if(S.element===i){w=S;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([a],null,d.errors,l)}return v.length?v.map(w=>w.buildKeyframes()):[r0(i,[],[],[],0,g,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:bi(Oa(o,r?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,i,n){let o=i.currentTimeline.currentTime,s=n.duration!=null?bi(n.duration):null,a=n.delay!=null?bi(n.delay):null;return s!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,i){i.updateOptions(e.options,!0),cn(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,o=e.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==re.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ed);let s=bi(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>cn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,o=e.options&&e.options.delay?bi(e.options.delay):0;e.steps.forEach(s=>{let a=i.createSubContext(e.options);o&&a.delayNextStep(o),cn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?Oa(n,i.params,i.errors):n;return Yu(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let o=e.style;o.type==re.Keyframes?this.visitKeyframes(o,i):(i.incrementTime(n.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,o=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},o=r.delay?bi(r.delay):0;o&&(i.previousNode.type===re.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ed);let s=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{i.currentQueryIndex=u;let d=i.createSubContext(e.options,c);o&&d.delayNextStep(o),c===i.element&&(l=d.currentTimeline),cn(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let g=d.currentTimeline.currentTime;s=Math.max(s,g)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1),l=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=i.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;cn(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-d+(r.startTime-n.currentTimeline.startTime)}},ed={},Ug=class t{constructor(e,i,n,r,o,s,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ed,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new td(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=bi(n.duration)),n.delay!=null&&(r.delay=bi(n.delay));let o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=Oa(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=ed,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new qg(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(NF,"."+this._enterClassName),e=e.replace(kF,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&a.length==0&&s.push(WO(i)),a}},td=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=MF,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Qn),this._currentKeyframe.set(i,Qn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let o=r&&r.params||{},s=OF(e,this._globalTimelineStyles);for(let[a,l]of s){let c=Oa(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Qn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===Gc?e.add(d):u===Qn&&i.add(d)}),n||c.set("offset",l/this.duration),r.push(c)});let o=[...e.values()],s=[...i.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return r0(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},qg=class extends td{constructor(e,i,n,r,o,s,a=!1){super(e,i,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let o=[],s=n+i,a=i/s,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",vD(a)),o.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let g=new Map(e[d]),v=g.get("offset"),w=i+v*n;g.set("offset",vD(w/s)),o.push(g)}n=s,i=0,r="",e=o}return r0(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};Rg={},nd=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return FF(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,o,s,a,l,c,u){let d=[],g=this.ast.options&&this.ast.options.params||Rg,v=a&&a.params||Rg,w=this.buildStyles(n,v,d),D=l&&l.params||Rg,S=this.buildStyles(r,D,d),O=new Set,K=new Map,be=new Map,se=r==="void",vt={params:OD(D,g),delay:this.ast.options?.delay},je=u?[]:kD(e,i,this.ast.animation,o,s,w,S,vt,c,d),$e=0;return je.forEach(ct=>{$e=Math.max(ct.duration+ct.delay,$e)}),d.length?yD(i,this._triggerName,n,r,se,w,S,[],[],K,be,$e,d):(je.forEach(ct=>{let Xn=ct.element,Ci=un(K,Xn,new Set);ct.preStyleProps.forEach(tr=>Ci.add(tr));let p0=un(be,Xn,new Set);ct.postStyleProps.forEach(tr=>p0.add(tr)),Xn!==i&&O.add(Xn)}),yD(i,this._triggerName,n,r,se,w,S,je,[...O.values()],K,be,$e))}};zg=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=OD(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Oa(s,r,i));let l=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,l,s,i),n.set(a,s)})}),n}};Gg=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new zg(r.style,o,n))}),wD(this.states,"true","1"),wD(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new nd(e,r,this.states))}),this.fallbackTransition=LF(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(s=>s.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};VF=new Fa,Wg=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],o=RD(this._driver,i,n,r);if(n.length)throw JO(n);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,i,n){let r=e.element,o=xD(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],o=this._animations.get(e),s,a=new Map;if(o?(s=kD(this._driver,i,o,MD,Pg,new Map,new Map,n,VF,r),s.forEach(u=>{let d=un(a,u.element,new Map);u.postStyleProps.forEach(g=>d.set(g,null))})):(r.push(XO()),s=[]),r.length)throw eF(r);a.forEach((u,d)=>{u.forEach((g,v)=>{u.set(v,this._driver.computeStyle(d,v,Qn))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=er(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw tF(e);return i}listen(e,i,n,r){let o=Xg(i,"","","");return Jg(this._getPlayer(e),n,o,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let s=r[0]||{};this.create(e,i,s);return}let o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},bD="ng-animate-queued",jF=".ng-animate-queued",kg="ng-animate-disabled",$F=".ng-animate-disabled",BF="ng-star-inserted",HF=".ng-star-inserted",UF=[],FD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},On="__ng_removed",Pa=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=GF(r),n){let o=e,{value:s}=o,a=ts(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},ka="void",Og=new Pa(ka),Qg=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,yn(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw nF(n,i);if(n==null||n.length==0)throw iF(i);if(!WF(n))throw rF(n,i);let o=un(this._elementListeners,e,[]),s={name:i,phase:n,callback:r};o.push(s);let a=un(this._engine.statesByElement,e,new Map);return a.has(i)||(yn(e,zu),yn(e,zu+"-"+i),a.set(i,Og)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw oF(e);return i}trigger(e,i,n,r=!0){let o=this._getTrigger(i),s=new La(this.id,i,e),a=this._engine.statesByElement.get(e);a||(yn(e,zu),yn(e,zu+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new Pa(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Og),!(c.value===ka)&&l.value===c.value){if(!KF(l.params,c.params)){let D=[],S=o.matchStyles(l.value,l.params,D),O=o.matchStyles(c.value,c.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{Br(e,S),Jn(e,O)})}return}let g=un(this._engine.playersByElement,e,[]);g.forEach(D=>{D.namespaceId==this.id&&D.triggerName==i&&D.queued&&D.destroy()});let v=o.matchTransition(l.value,c.value,e,c.params),w=!1;if(!v){if(!r)return;v=o.fallbackTransition,w=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:v,fromState:l,toState:c,player:s,isFallbackTransition:w}),w||(yn(e,bD),s.onStart(()=>{Jo(e,bD)})),s.onDone(()=>{let D=this.players.indexOf(s);D>=0&&this.players.splice(D,1);let S=this._engine.playersByElement.get(e);if(S){let O=S.indexOf(s);O>=0&&S.splice(O,1)}}),this.players.push(s),g.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,Ku,!0);n.forEach(r=>{if(r[On])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,ka,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),n&&er(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Og,u=new Pa(ka),d=new La(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let o=e[On];(!o||o===FD)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){yn(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Xg(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Jg(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let o=n.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Zg=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n,r){this.bodyNode=e,this.driver=i,this._normalizer=n,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Qg(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}}return i}trigger(e,i,n,r){if(Qu(i)){let o=this._fetchNamespace(e);if(o)return o.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!Qu(i))return;let o=i[On];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),yn(e,kg)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Jo(e,kg))}removeNode(e,i,n){if(Qu(i)){this.scheduler?.notify();let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let o=this.namespacesByHostElement.get(i);o&&o.id!==e&&o.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,o){this.collectedLeaveElements.push(i),i[On]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,i,n,r,o){return Qu(i)?this._fetchNamespace(e).listen(i,n,r,o):()=>{}}_buildInstruction(e,i,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,o)}destroyInnerAnimations(e){let i=this.driver.query(e,Ku,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,Lg,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return er(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[On];if(i&&i.setForRemoval){if(e[On]=FD,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(kg)&&this.markElementAsDisabled(e,!1),this.driver.query(e,$F,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];yn(r,BF)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{i=this._flushAnimations(n,e)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?er(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw sF(e)}_flushAnimations(e,i){let n=new Fa,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(q=>{u.add(q);let Z=this.driver.query(q,jF,!0);for(let Y=0;Y<Z.length;Y++)u.add(Z[Y])});let d=this.bodyNode,g=Array.from(this.statesByElement.keys()),v=DD(g,this.collectedEnterElements),w=new Map,D=0;v.forEach((q,Z)=>{let Y=MD+D++;w.set(Z,Y),q.forEach(Ce=>yn(Ce,Y))});let S=[],O=new Set,K=new Set;for(let q=0;q<this.collectedLeaveElements.length;q++){let Z=this.collectedLeaveElements[q],Y=Z[On];Y&&Y.setForRemoval&&(S.push(Z),O.add(Z),Y.hasAnimation?this.driver.query(Z,HF,!0).forEach(Ce=>O.add(Ce)):K.add(Z))}let be=new Map,se=DD(g,Array.from(O));se.forEach((q,Z)=>{let Y=Pg+D++;be.set(Z,Y),q.forEach(Ce=>yn(Ce,Y))}),e.push(()=>{v.forEach((q,Z)=>{let Y=w.get(Z);q.forEach(Ce=>Jo(Ce,Y))}),se.forEach((q,Z)=>{let Y=be.get(Z);q.forEach(Ce=>Jo(Ce,Y))}),S.forEach(q=>{this.processLeaveNode(q)})});let vt=[],je=[];for(let q=this._namespaceList.length-1;q>=0;q--)this._namespaceList[q].drainQueuedTransitions(i).forEach(Y=>{let Ce=Y.player,ut=Y.element;if(vt.push(Ce),this.collectedEnterElements.length){let xt=ut[On];if(xt&&xt.setForMove){if(xt.previousTriggersValues&&xt.previousTriggersValues.has(Y.triggerName)){let nr=xt.previousTriggersValues.get(Y.triggerName),dn=this.statesByElement.get(Y.element);if(dn&&dn.has(Y.triggerName)){let ja=dn.get(Y.triggerName);ja.value=nr,dn.set(Y.triggerName,ja)}}Ce.destroy();return}}let Fn=!d||!this.driver.containsElement(d,ut),Xt=be.get(ut),_i=w.get(ut),qe=this._buildInstruction(Y,n,_i,Xt,Fn);if(qe.errors&&qe.errors.length){je.push(qe);return}if(Fn){Ce.onStart(()=>Br(ut,qe.fromStyles)),Ce.onDestroy(()=>Jn(ut,qe.toStyles)),r.push(Ce);return}if(Y.isFallbackTransition){Ce.onStart(()=>Br(ut,qe.fromStyles)),Ce.onDestroy(()=>Jn(ut,qe.toStyles)),r.push(Ce);return}let v0=[];qe.timelines.forEach(xt=>{xt.stretchStartingKeyframe=!0,this.disabledNodes.has(xt.element)||v0.push(xt)}),qe.timelines=v0,n.append(ut,qe.timelines);let QE={instruction:qe,player:Ce,element:ut};s.push(QE),qe.queriedElements.forEach(xt=>un(a,xt,[]).push(Ce)),qe.preStyleProps.forEach((xt,nr)=>{if(xt.size){let dn=l.get(nr);dn||l.set(nr,dn=new Set),xt.forEach((ja,hd)=>dn.add(hd))}}),qe.postStyleProps.forEach((xt,nr)=>{let dn=c.get(nr);dn||c.set(nr,dn=new Set),xt.forEach((ja,hd)=>dn.add(hd))})});if(je.length){let q=[];je.forEach(Z=>{q.push(aF(Z.triggerName,Z.errors))}),vt.forEach(Z=>Z.destroy()),this.reportError(q)}let $e=new Map,ct=new Map;s.forEach(q=>{let Z=q.element;n.has(Z)&&(ct.set(Z,Z),this._beforeAnimationBuild(q.player.namespaceId,q.instruction,$e))}),r.forEach(q=>{let Z=q.element;this._getPreviousPlayers(Z,!1,q.namespaceId,q.triggerName,null).forEach(Ce=>{un($e,Z,[]).push(Ce),Ce.destroy()})});let Xn=S.filter(q=>ED(q,l,c)),Ci=new Map;_D(Ci,this.driver,K,c,Qn).forEach(q=>{ED(q,l,c)&&Xn.push(q)});let tr=new Map;v.forEach((q,Z)=>{_D(tr,this.driver,new Set(q),l,Gc)}),Xn.forEach(q=>{let Z=Ci.get(q),Y=tr.get(q);Ci.set(q,new Map([...Z?.entries()??[],...Y?.entries()??[]]))});let dd=[],m0=[],g0={};s.forEach(q=>{let{element:Z,player:Y,instruction:Ce}=q;if(n.has(Z)){if(u.has(Z)){Y.onDestroy(()=>Jn(Z,Ce.toStyles)),Y.disabled=!0,Y.overrideTotalTime(Ce.totalTime),r.push(Y);return}let ut=g0;if(ct.size>1){let Xt=Z,_i=[];for(;Xt=Xt.parentNode;){let qe=ct.get(Xt);if(qe){ut=qe;break}_i.push(Xt)}_i.forEach(qe=>ct.set(qe,ut))}let Fn=this._buildAnimation(Y.namespaceId,Ce,$e,o,tr,Ci);if(Y.setRealPlayer(Fn),ut===g0)dd.push(Y);else{let Xt=this.playersByElement.get(ut);Xt&&Xt.length&&(Y.parentPlayer=er(Xt)),r.push(Y)}}else Br(Z,Ce.fromStyles),Y.onDestroy(()=>Jn(Z,Ce.toStyles)),m0.push(Y),u.has(Z)&&r.push(Y)}),m0.forEach(q=>{let Z=o.get(q.element);if(Z&&Z.length){let Y=er(Z);q.setRealPlayer(Y)}}),r.forEach(q=>{q.parentPlayer?q.syncPlayerEvents(q.parentPlayer):q.destroy()});for(let q=0;q<S.length;q++){let Z=S[q],Y=Z[On];if(Jo(Z,Pg),Y&&Y.hasAnimation)continue;let Ce=[];if(a.size){let Fn=a.get(Z);Fn&&Fn.length&&Ce.push(...Fn);let Xt=this.driver.query(Z,Lg,!0);for(let _i=0;_i<Xt.length;_i++){let qe=a.get(Xt[_i]);qe&&qe.length&&Ce.push(...qe)}}let ut=Ce.filter(Fn=>!Fn.destroyed);ut.length?QF(this,Z,ut):this.processLeaveNode(Z)}return S.length=0,dd.forEach(q=>{this.players.push(q),q.onDone(()=>{q.destroy();let Z=this.players.indexOf(q);this.players.splice(Z,1)}),q.play()}),dd}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,o){let s=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!o||o==ka;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,i,n){let r=i.triggerName,o=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:r;for(let l of i.timelines){let c=l.element,u=c!==o,d=un(n,c,[]);this._getPreviousPlayers(c,u,s,a,i.toState).forEach(v=>{let w=v.getRealPlayer();w.beforeDestroy&&w.beforeDestroy(),v.destroy(),d.push(v)})}Br(o,i.fromStyles)}_buildAnimation(e,i,n,r,o,s){let a=i.triggerName,l=i.element,c=[],u=new Set,d=new Set,g=i.timelines.map(w=>{let D=w.element;u.add(D);let S=D[On];if(S&&S.removedBeforeQueried)return new Hi(w.duration,w.delay);let O=D!==l,K=ZF((n.get(D)||UF).map($e=>$e.getRealPlayer())).filter($e=>{let ct=$e;return ct.element?ct.element===D:!1}),be=o.get(D),se=s.get(D),vt=xD(this._normalizer,w.keyframes,be,se),je=this._buildPlayer(w,vt,K);if(w.subTimeline&&r&&d.add(D),O){let $e=new La(e,a,D);$e.setRealPlayer(je),c.push($e)}return je});c.forEach(w=>{un(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>zF(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>yn(w,pD));let v=er(g);return v.onDestroy(()=>{u.forEach(w=>Jo(w,pD)),Jn(l,i.toStyles)}),d.forEach(w=>{un(r,w,[]).push(v)}),v}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new Hi(e.duration,e.delay)}},La=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new Hi,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Jg(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){un(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};es=class{constructor(e,i,n,r){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Zg(e.body,i,n,r),this._timelineEngine=new Wg(e.body,i,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(e,i,n,r,o){let s=e+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],u=RD(this._driver,o,l,c);if(l.length)throw KO(r,l);c.length&&void 0,a=PF(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}
57onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[o,s]=hD(n),a=r;this._timelineEngine.command(o,i,s,a)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,o){if(n.charAt(0)=="@"){let[s,a]=hD(n);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(e,i,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};Xo=class Xo{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=Xo.initialStylesByElement.get(e);r||Xo.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Jn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Jn(this._element,this._initialStyles),this._endStyles&&(Jn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Xo.initialStylesByElement.delete(this._element),this._startStyles&&(Br(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Br(this._element,this._endStyles),this._endStyles=null),Jn(this._element,this._initialStyles),this._state=3)}};Xo.initialStylesByElement=new WeakMap;Kg=Xo;id=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:i0(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;
57i.forEach(n=>n()),i.length=0}},rd=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return SD(e,i)}getParentElement(e){return e0(e)}query(e,i,n){return ID(e,i,n)}computeStyle(e,i,n){return i0(e,i)}animate(e,i,n,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(v=>v instanceof id);yF(n,r)&&u.forEach(v=>{v.currentSnapshot.forEach((w,D)=>c.set(D,w))});let d=mF(i).map(v=>new Map(v));d=wF(e,d,c);let g=YF(e,d);return new id(e,d,l,g)}},Zu="@",LD="@.disabled",od=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==Zu&&i==LD?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},Yg=class extends od{constructor(e,i,n,r,o){super(i,n,r,o),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==Zu?i.charAt(1)=="."&&i==LD?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==Zu){let r=XF(e),o=i.slice(1),s="";return o.charAt(0)!=Zu&&([o,s]=e4(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,i,n)}};sd=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,o)=>{let s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new od(n,r,this.engine,d),c.set(r,u)}return u}let o=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return i.data.animation.forEach(a),new Yg(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}});function i4(){return new Ju}function r4(t,e,i){return new sd(t,e,i)}function jD(){return Gn("NgEagerAnimations"),[...o4]}var n4,VD,o4,_U,$D=y(()=>{"use strict";L();L();Mo();s0();s0();he();n4=(()=>{let e=class e extends es{constructor(n,r,o){super(n,r,o,T(As,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(M(He),M(Hr),M(Ur))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})();VD=[{provide:Ur,useFactory:i4},{provide:es,useClass:n4},{provide:li,useFactory:r4,deps:[Xc,es,Ee]}],o4=[{provide:Hr,useFactory:()=>new rd},{provide:rp,useValue:"BrowserAnimations"},...VD],_U=[{provide:Hr,useClass:t0},{provide:rp,useValue:"NoopAnimations"},...VD]});var BD,HD=y(()=>{"use strict";Mr();rt();L();BD=(()=>{let e=class e{constructor(){}intercept(n,r){return r.handle(n).pipe(z(o=>{if(o.type===zi.Response&&o.body?.error)throw new Gi(o.body);return o}
57))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})()});var UD,a0,qD=y(()=>{"use strict";he();L();L();UD=(()=>{let e=class e extends Wn{constructor(){super(),this.internalBaseHref="/",this.internalPath="/",this.internalTitle="",this.urlChanges=[],this._subject=new _e,this.stateChanges=[]}simulatePopState(n){this.internalPath=n,this._subject.emit(new a0(this.path()))}path(n=!1){return this.internalPath}prepareExternalUrl(n){return n.startsWith("/")&&this.internalBaseHref.endsWith("/")?this.internalBaseHref+n.substring(1):this.internalBaseHref+n}pushState(n,r,o,s){this.stateChanges.push(n),this.internalTitle=r;let a=o+(s.length>0?"?"+s:"");this.internalPath=a;let l=this.prepareExternalUrl(a);this.urlChanges.push(l)}replaceState(n,r,o,s){this.stateChanges[(this.stateChanges.length||1)-1]=n,this.internalTitle=r;let a=o+(s.length>0?"?"+s:"");this.internalPath=a;let l=this.prepareExternalUrl(a);this.urlChanges.push("replace: "+l)}onPopState(n){this._subject.subscribe({next:n})}getBaseHref(){return this.internalBaseHref}back(){if(this.urlChanges.length>0){this.urlChanges.pop(),this.stateChanges.pop();let n=this.urlChanges.length>0?this.urlChanges[this.urlChanges.length-1]:"";this.simulatePopState(n)}}forward(){throw"not implemented"}getState(){return this.stateChanges[(this.stateChanges.length||1)-1]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})(),a0=class{constructor(e){this.newUrl=e,this.pop=!0,this.type="popstate"}}});function s4(t,e){if(t&1&&(h(0,"div",1)(1,"h2",2),C(2),p(),x(3,"div",3),p()),t&2){let i=e.$implicit;f(2),N(i("disclaimer.title")),f(),E("innerHTML",i("disclaimer.text"),Le)}}var zD,GD=y(()=>{"use strict";te();L();te();zD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-disclaimer"]],standalone:!0,features:[H],decls:1,vars:0,consts:[["class","flex flex-col gap-3 p-5",4,"transloco"],[1,"flex","flex-col","gap-3","p-5"],[1,"t-page-title","text-2xl","font-bold"],[1,"contents","prose",3,"innerHTML"]],template:function(r,o){r&1&&I(0,s4,4,2,"div",0)},dependencies:[ye,ee],encapsulation:2});let t=e;return t})()});function a4(t,e){if(t&1&&(h(0,"div",1)(1,"h2",2),C(2),p(),h(3,"div"),C(4),p()()),t&2){let i=e.$implicit;f(2),N(i("privacy.title")),f(2),N(i("privacy.page"))}}var WD,QD=y(()=>{"use strict";te();L();te();WD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-privacy"]],standalone:!0,features:[H],decls:1,vars:0,consts:[["class","flex flex-col",4,"transloco"],[1,"flex","flex-col"],[1,"text-3xl","font-bold"]],template:function(r,o){r&1&&I(0,a4,5,2,"div",0)},dependencies:[ye,ee],encapsulation:2});let t=e;return t})()});function l4(t,e){if(t&1&&(h(0,"option",2),C(1),p()),t&2){let i=e.$implicit,n=m().$implicit,r=m();E("selected",r.isSelected(i))("value",i.value),f(),N(n(r.multiOption.translationPrefix+"."+i.value))}}function c4(t,e){if(t&1){let i=U();h(0,"select",1),A("change",function(r){F(i);let o=m();return P(o.onChanged(r))}),Oe(1,l4,2,3,"option",2,pt),p()}if(t&2){let i=e.$implicit,n=m();E("ngClass",n.getClass()),V("aria-label",i(n.multiOption.translationPrefix)),f(),Fe(n.options)}}var ZD,KD=y(()=>{"use strict";he();L();te();Yn();L();he();Yn();ZD=(()=>{let e=class e{writeValue(n){this.multiOption=n,this.options=n.options}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}constructor(n){this._elementRef=n,this.selected=new _e,this.onChanged=r=>{let o=r.target,s=this.multiOption.options.find(a=>a.value===o.value);s&&(this.multiOption.defaultValue===o.value?this.multiOption.selected=null:this.multiOption.selected=o.value,this.selected.emit(s),this.onChange(this.multiOption))}}isSelected(n){return this.multiOption.selected===n.value}getClass(){let n="t-search-dropdown-"+this.multiOption.translationPrefix.replace("dropdown.",""),r=this.multiOption.selected?"text-cdra-blue-light-700":"text-sys-outline",o=this.multiOption.selected?"border-sys-outline":"border-sys-outline-light";return[n,r,o]}};e.\u0275fac=function(r){return new(r||e)(b(ke))},e.\u0275cmp=B({type:e,selectors:[["app-search-dropdown"]],outputs:{selected:"selected"},standalone:!0,features:[Qt([{provide:kn,multi:!0,useExisting:e}]),H],decls:1,vars:0,consts:[["class","form-select appearance-none pr-8 pl-2 py-2 bg-no-repeat rounded-[1.75rem] border hover:border-cdra-blue-light-700 focus-visible:border-cdra-blue-light-700 rtl:pr-2 rtl:pl-8 rtl:bg-left font-normal",3,"ngClass","change",4,"transloco"],[1,"form-select","appearance-none","pr-8","pl-2","py-2","bg-no-repeat","rounded-[1.75rem]","border","hover:border-cdra-blue-light-700","focus-visible:border-cdra-blue-light-700","rtl:pr-2","rtl:pl-8","rtl:bg-left","font-normal",3,"change","ngClass"],[1,"text-neutral-600","leading-tight",3,"selected","value"]],template:function(r,o){r&1&&I(0,c4,3,2,"select",0)},dependencies:[ve,mt,Ko,Vu,ju,ee],encapsulation:2});let t=e;return t})()});function u4(t,e){if(t&1){let i=U();h(0,"label",1)(1,"input",2),A("change",function(){F(i);let r=m();return P(r.select())}),p(),C(2),p()}if(t&2){let i=e.$implicit,n=m();f(),E("checked",n.option.selected),f(),ie(" ",i(n.option.translationPrefix+"."+n.option.value),` 58`)}}var YD,JD=y(()=>{"use strict";L();he();te();Yn();L();YD=(()=>{let e=class e{constructor(){this.disabled=!1,this.selected=new _e}writeValue(n){this.option=n}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n}select(){this.selected.emit(this.option),this.option.selected===this.option.value?(this.option.selected=null,this.onChange(null)):(this.option.selected=this.option.value,this.onChange(this.option))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-search-selectbutton"]],outputs:{selected:"selected"},standalone:!0,features:[Qt([{provide:kn,multi:!0,useExisting:e}]),H],decls:1,vars:0,consts:[["class","h-9 justify-center items-center inline-flex gap-2",4,"transloco"],[1,"h-9","justify-center","items-center","inline-flex","gap-2"],["type","button","type","checkbox",1,"py-1.5","justify-center","items-center","gap-1","flex",3,"change","checked"]],template:function(r,o){r&1&&I(0,u4,3,2,"label",0)},dependencies:[ve,Ko,ee],encapsulation:2});let t=e;return t})()});function y4(t,e){if(t&1&&(h(0,"div",6),C(1),p()),t&2){let i=m().$implicit,n=m();E("ngClass",Tt(2,p4,!n.showAdvanced,n.showAdvanced)),f(),N(i("chat.loadinganswer"))}}function w4(t,e){if(t&1&&(h(0,"div",21)(1,"div",22),C(2),p()()),t&2){let i=m(4);f(2),N(i.advancedAplied)}}function b4(t,e){if(t&1){let i=U();h(0,"button",18),A("click",function(){F(i);let r=m(3);return P(r.toggleAdvanced())}),ce(),h(1,"svg",19),x(2,"path",20),p(),I(3,w4,3,1,"div",21),p()}if(t&2){let i=m(2).$implicit,n=m();E("ariaExpanded",n.showAdvanced),V("aria-label",n.advancedAplied?i("searchbox.button.advanced.amountapplied",Ae(3,g4,n.advancedAplied)):i("searchbox.button.advanced")),f(3),j(3,n.advancedAplied?3:-1)}}function C4(t,e){if(t&1&&(h(0,"div",10),C(1),p()),t&2){let i=m(3);f(),Sp("",i.remaining,"/",i.maxRemaining,"")}}function _4(t,e){if(t&1&&(h(0,"div",27)(1,"label",33),C(2),x(3,"input",34),p(),h(4,"label",33),C(5),x(6,"input",35),p()()),t&2){let i=m(4).$implicit,n=m();f(2),ie("",i("searchbox.date.fromyear")," "),f(),Oc("placeholder",i("searchbox.date.yyyy")),E("ngClass",Ae(8,XD,n.inputForm.controls.fromyear.invali
58d)),V("aria-label",i("searchbox.date.fromyear.full")),f(2),ie("",i("searchbox.date.toyear")," "),f(),Oc("placeholder",i("searchbox.date.yyyy")),E("ngClass",Ae(10,XD,n.inputForm.controls.toyear.invalid)),V("aria-label",i("searchbox.date.toyear.full"))}}function D4(t,e){t&1&&x(0,"app-search-selectbutton",28)}function E4(t,e){t&1&&x(0,"input",36)}function x4(t,e){if(t&1&&(h(0,"div",30),C(1),p()),t&2){let i,n=m(4).$implicit,r=m();f(),ie(" ",n((i=(i=r.inputForm.controls.fromyear.errors==null?null:r.inputForm.controls.fromyear.errors.label)!==null&&i!==void 0?i:r.inputForm.controls.toyear.errors==null?null:r.inputForm.controls.toyear.errors.label)!==null&&i!==void 0?i:"validate.date.invalid")," ")}}function S4(t,e){if(t&1){let i=U();h(0,"button",37),A("click",function(){F(i);let r=m(5);return P(r.resetForm())}),h(1,"span",38),C(2),p(),h(3,"span",39),C(4),p()()}if(t&2){let i=m(4).$implicit;f(2),N(i("searchbox.clearfilter")),f(2),N(i("searchbox.clear"))}}function I4(t,e){if(t&1){let i=U();h(0,"div",23)(1,"div",24),x(2,"app-search-dropdown",25)(3,"app-search-dropdown",26),I(4,_4,7,12,"div",27)(5,D4,1,0,"app-search-selectbutton",28)(6,E4,1,0),h(7,"button",29),A("click",function(){F(i);let r=m(4);return P(r.skipToSearch())}),C(8),p(),I(9,x4,2,1,"div",30),p(),h(10,"div",31),I(11,S4,5,2,"button",32),p()()}if(t&2){let i=m(3).$implicit,n=m();f(4),j(4,(n.inputForm.controls.date.value==null?null:n.inputForm.controls.date.value.selected)==="custom"?4:-1),f(),j(5,n.showOnline?5:6),f(3),N(i("searchbox.skiplink.searchbox")),f(),j(9,n.inputForm.controls.toyear.errors||n.inputForm.controls.fromyear.errors?9:-1),f(2),j(11,n.inputForm.controls.contentType.value!=null&&n.inputForm.controls.contentType.value.selected||n.inputForm.controls.date.value!=null&&n.inputForm.controls.date.value.selected||n.inputForm.controls.online.value!=null&&n.inputForm.controls.online.value.selected?11:-1)}}function T4(t,e){if(t&1&&(h(0,"div",17,1),I(2,I4,12,5,"div",23),p()),t&2){let i=m(3);E("ngClass",Fc(2,v4,!i.showAdvanced,i.showAdvanced,!i.advancedAplied&&i.inChat,i.advancedAplied&&i.inChat,!i.showAdvanced)),f(2),j(2,i.showAdvanced?2:-1)}}function M4(t,e){if(t&1){let i=U();h(0,"div",7),I(1,b4,4,5,"button",8),h(2,"input",9,0),An(4,"transloco"),An(5,"transloco"),A("keyup.arrowup",function(){F(i);let r=m(2);return P(r.getPreviousQuestion())}),p(),I(6,C4,2,2,"div",10),h(7,"button",11),ce(),h(8,"svg",12)(9,"g",13),x(10,"path",14),p(),h(11,"defs")(12,"clipPath",15),x(13,"rect",16),p()()()()(),I(14,T4,3,8,"div",17)}if(t&2){let i=m().$implicit,n=m();f(),j(1,n.showAdvancedSearch&&n.inChat?1:-1),f(),E("ngClass",Ae(13,m4,n.inDebugMode)),V("placeholder",n.quotumLimitExceeded?i("research.status.quotalimit"):i(n.helpText))("aria-label",Gs(4,9,"app.title")+": "+Gs(5,11,n.helpText))("disabled",n.quotumLimitExceeded||n.maxResearchHistoryReached?!0:null),f(4),j(6,n.showQuotum()?6:-1),f(),E("disabled",n.inputForm.touched?n.inputForm.invali
58d:!1),V("aria-label",i("searchbox.askyourquestion")),f(7),j(14,n.showAdvancedSearch?14:-1)}}function A4(t,e){if(t&1&&(h(0,"div",40),C(1),p()),t&2){let i=m().$implicit;f(),N(i("research.status.maxhistorysize"))}}function N4(t,e){if(t&1){let i=U();h(0,"form",4),A("ngSubmit",function(){F(i);let r=m();return P(r.onSubmit())}),h(1,"div",5),I(2,y4,2,5,"div",6)(3,M4,15,15)(4,A4,2,1),p()()}if(t&2){let i=m();E("formGroup",i.inputForm),f(),E("ngClass",lb(4,f4,i.inDebugMode,!i.inDebugMode,i.smallSearchBox)),f(),j(2,i.chatLoading?2:-1),f(),j(3,i.maxResearchHistoryReached?4:3)}}function R4(t,e){if(t&1){let i=U();h(0,"button",42),A("click",function(r){F(i);let o=m(2);return P(o.skipToLastQuestion(r))}),C(1),p()}if(t&2){let i=e.$implicit;f(),N(i("searchbox.skiplink"))}}function k4(t,e){t&1&&I(0,R4,2,1,"button",41)}var d4,h4,f4,p4,m4,g4,v4,XD,ad,l0=y(()=>{"use strict";he();vu();Yn();te();KD();JD();At();Ii();L();$t();Yn();gt();ln();Fr();At();he();te();d4=["searchbox"],h4=["advancedSearch"],f4=(t,e,i)=>({"border-red-700 focus-within:border-red-400 text-red-800":t,"border-[#898989] focus-within:border-2 focus-within:border-[#2b82be] text-neutral-900":e,"xl:w-[calc(85%-2rem)] md:w-[calc(77%-2rem)] sm:w-[calc(70%-2rem)]":i}),p4=(t,e)=>({"bottom-16":t,"bottom-32":e}),m4=t=>({"placeholder-red-700":t}),g4=t=>({amount:t}),v4=(t,e,i,n,r)=>({"h-0 opacity-0 duration-0":t,"h-full min-h-14 opacity-100 border-t-[1px] duration-300":e,"bg-neutral-100":i,"bg-neutral-200":n,"max-sm:hidden":r}),XD=t=>({"outline outline-red-500":t});ad=(()=>{let e=class e{keyEvent(n){n.key==="F8"&&n.shiftKey&&(this.config.currentConfig.streamAnswer=!this.config.currentConfig.streamAnswer,console.log(`Stream answer testing is ${this.config.currentConfig.streamAnswer?"enabled":"disabled"} for now)`)),n.key==="F9"&&n.shiftKey&&(this.config.setDebug(!this.config.debug),this.config.debug&&(this.helpText=this.config.getVersion())),n.key==="/"&&this.searchBox.nativeElement.focus()}get hasAnswer(){return(this.research.researchSession?.qandas??0).length>0}get remaining(){return this.research.user.remaining}get maxRemaining(){return this.research.user.maxRemaining}get quotumLimitExceeded(){return this.research.user.remaining<=0&&this.research.user.remaining<-1}get maxResearchHistoryReached(){return this.research.maxResearchHistoryReached}get lastQuestion(){return this.research.qandas[this.research.qandas.length-1]}get smallSearchBox(){return!this.config.currentConfig.isStandalone}get showAdvancedSearch(){return this.inChat?this.config.currentConfig.showAdvanced:!0}get showOnline(){return this.config.currentConfig.enableOnline}constructor(n,r,o,s,a,l,c){this.research=n,this.formBuilder=r,this.el=o,this.config=s,this.stats=a,this.messageHandlerService=l,this.router=c,this.streamAnswer=!1,this.inDebugMode=!1,this.contentTypeOptions={defaultValue:"alltypes",translationPrefix:"dropdown.contenttype",selected:null,options:[{value:"alltypes"},{value:"articles"},{value:"peer-reviewed"},{value:"books"}]},this.dateOptions={defaultValue:"alldates",translationPrefix:"dropdown.date",selected:null,options:[{value:"alldates",selected:null},{value:"last12months",selected:null},{value:"last5years"},{value:"last10years"},{value:"custom"}]},this.onlineOption={value:"online",selected:null,translationPrefix:"select.search"},this.initialHelpText="searchbox.placeholder.askresearchquestion",this.helpText=this.initialHelpText,this.showAdvanced=!1,this.chatLoading=!1,this.advancedAplied=0,this.inChat=!1,this.inputForm=this.formBuilder.group({input:new Rn("",{updateOn:"change",validators:[Wo.required]}),fromyear:new Rn("",{updateOn:"blur",validators:[this.yearValidator()]}),toyear:new Rn("",{updateOn:"blur",validators:[this.yearValidator()]}),contentType:null,date:null,online:null,regenerate:!1}),this.research.onLoadingChanged().pipe(gn()).subscribe(u=>{this.chatLoading=u}),this.hookupForm(),this.research.currentQandA$.pipe(gn()).subscribe(()=>{this.updateFormWithCurrentQandA(),this.updatePlaceholderText()}),this.research.currentQuestion$.pipe(gn()).subscribe(u=>{this.inputForm.patchValue({input:u.question,regenerate:u.regenerate}),this.searchBox?.nativeElement?.focus()}),this.research.onSessionChanged.pipe(gn()).subscribe(()=>{this.updatePlaceholderText(),this.inputForm.patchValue({input:"",contentType:_({},this.contentTypeOptions),date:_({},this.dateOptions),online:_({},this.onlineOption)}),this.focusIfNeeded()}),this.messageHandlerService.appEvents$.pipe(gn()).subscribe(u=>{u.value==="remove"&&u.payload!==void 0&&setTimeout(()=>{let d=u.payload,g=this.el.nativeElement.getRootNode();if(d===-2){this.focusResearchHistoryHeading(g)||this.focusIfNeeded();return}let v=g.querySelectorAll("app-research-session").item(d)?.querySelector("button");v==null?this.focusIfNeeded():v?.focus()},50)}),this.router.events.pipe(gn(),it(u=>u instanceof Yt)).subscribe(()=>this.updateChatFlag())}updateChatFlag(){try{let n=this.el?.nativeElement;this.inChat=!!n?.closest?.("app-chat")}catch{this.inChat=!1}!this.inChat&&this.showAdvancedSearch&&(this.showAdvanced=!0),this.inChat&&(this.showAdvanced=!1)}focusResearchHistoryHeading(n){let r=n.querySelector("app-research-history h2");return r?(r.setAttribute("tabindex","-1"),r.focus(),!0):!1}shouldDetect(n){let r=n+".detect";
58n==="contentType"&&(r="type.detect");let o=this.inputForm.get(n)?.dirty??!1,s=!0,a=this.research.currentQandA()?.answer?.advanced?.[r];return o&&(this.inputForm.get(n)?.value===null||this.inputForm.get(n)?.value?.selected===null)?s=a??!1:(o||a===!1)&&(s=!1),s}hookupForm(){this.inputForm.valueChanges.pipe(gn()).subscribe(n=>{this.advancedAplied=0,n.contentType?.selected&&this.advancedAplied++,n.date?.selected&&this.advancedAplied++,this.showOnline&&n.online?.selected&&this.advancedAplied++,n.date?.selected!=="custom"&&(this.inputForm.controls.fromyear.setValue("",{emitEvent:!1}),this.inputForm.controls.toyear.setValue("",{emitEvent:!1}))})}showQuotum(){return this.remaining>=0&&this.maxRemaining>0}yearValidator(){return n=>n.value?(this.inputForm.controls.toyear.setErrors(null),this.inputForm.controls.fromyear.setErrors(null),n.value&&!n.value.match(/^\d{4}$/)?{text:"Year should be a number",label:"validate.year.number"}:n.value&&parseInt(n.value)>new Date().getFullYear()?{text:"Year should be in the past",label:"validate.year.past"}:this.inputForm.controls.fromyear.value&&this.inputForm.controls.toyear.value&&parseInt(this.inputForm.controls.toyear.value)-parseInt(this.inputForm.controls.fromyear.value)<0?{text:"The 'from' year must be earlier than the 'to' year.",label:"validate.year.fromsmallerthanto"}:null):null}ngOnInit(){this.updatePlaceholderText(),this.inputForm.updateValueAndValidity()}updateFormWithCurrentQandA(){this.research.currentQandA()?.answer?.advanced?(this.inputForm.patchValue(_({contentType:this.buildContentTypeOptionFromAnswer(this.research.currentQandA()),online:this.buildOnlineOptionFromAnswer(this.research.currentQandA())},this.buildDateOptionFromAnswer(this.research.currentQandA()))),(this.research.currentQandA()?.answer?.advanced?.["date.value"]||this.research.currentQandA()?.answer?.advanced?.["type.value"]||this.research.currentQandA()?.answer?.advanced?.["online.value"])&&(this.research.currentQandA()?.answer?.advanced?.["date.detect"]===!1||this.research.currentQandA()?.answer?.advanced?.["type.detect"]===!1||this.showOnline&&this.research.currentQandA()?.answer?.advanced?.["online.detect"]===!1||this.config.currentConfig.showAdvanced&&this.isAdvanceSearchNotHiddenForMobile()&&(this.showAdvanced=!0))):this.inputForm.patchValue({contentType:_({},this.contentTypeOptions),date:_({},this.dateOptions),online:_({},this.onlineOption)})}isAdvanceSearchNotHiddenForMobile(){return this.advancedSearch?.nativeElement?.offsetParent}ngAfterViewInit(){this.updateChatFlag(),this.focusIfNeeded()}focusIfNeeded(){this.hasAnswer||this.searchBox?.nativeElement?.focus()}updatePlaceholderText(){(this.research.qandas.length??0)===0?this.helpText=this.initialHelpText:this.helpText="searchbox.placeholder.askresearchquestionnext"}getPreviousQuestion(){let n=this.lastQuestion;n&&this.inputForm.setValue(_({input:n.question??"",contentType:this.buildContentTypeOptionFromAnswer(n),online:this.buildOnlineOptionFromAnswer(n),regenerate:!1},this.buildDateOptionFromAnswer(n)))}buildContentTypeOptionFromAnswer(n){return n?W(_({},this.contentTypeOptions),{selected:n.answer?.advanced?.["type.value"]??null}):W(_({},this.contentTypeOptions),{selected:null})}buildDateOptionFromAnswer(n){if(!n)return{date:W(_({},this.dateOptions),{selected:null}),fromyear:"0",toyear:""};let r=n.answer?.advanced?.["date.value"];if(r){let o=this.parseDateToLabel(r);if(o.match(/^\d{4}-\d{4}$/)){let[s,a]=o.split("-");return{date:W(_({},this.dateOptions),{selected:"custom"}),fromyear:s,toyear:a}}else return{date:W(_({},this.dateOptions),{selected:o}),fromyear:"",toyear:""}}return{date:W(_({},this.dateOptions),{selected:n.answer?.advanced?.["date.value"]??null}),fromyear:"",toyear:""}}buildOnlineOptionFromAnswer(n){return n?W(_({},this.onlineOption),{selected:n.answer?.advanced?.["online.value"]}):W(_({},this.onlineOption),{selected:null})}parseDateToLabel(n){let r=n.split("-"),o=parseInt(r[0]),s=parseInt(r[1]),a=new Date().getFullYear();return o===a-1&&s===a?"last12months":o===a-5&&s===a?"last5years":o===a-10&&s===a?"last10years":n}onSubmit(){let n=this.inputForm.value.input;if(!n)return;let r=this.buildAdvancedObject();this.inputForm.patchValue({input:""}),this.research.getAnswer(n,r,this.inputForm?.value?.regenerate??!1).then(()=>{this.updatePlaceholderText(),this.research.qandas.length===1?this.stats.search(n,"inputbox_new"):this.stats.search(n,"inputbox_followup")})}buildAdvancedObject(){let n=this.research.currentQandA(),r=n?.answer?.advanced?.topic??n?.answer?.advanced?.previous??n?.question??"",o=this.buildDateOptionFromAnswer(n),s=this.inputForm.value.fromyear!==""&&this.inputForm.value.toyear
58!==""?this.inputForm.value.fromyear===o.fromyear&&this.inputForm.value.toyear===o.toyear:!0;return{previous:r,"type.detect":this.shouldDetect("contentType"),"type.value":this.inputForm.value.contentType?.selected??null,"online.detect":this.shouldDetect("online"),"online.value":this.inputForm.value.online?.selected??null,"date.detect":this.shouldDetect("date")&&s,"date.value":this.getDateValue(this.inputForm.value.date?.selected,this.inputForm.value.fromyear,this.inputForm.value.toyear)}}resetForm(){this.inputForm.patchValue({contentType:_({},this.contentTypeOptions),date:_({},this.dateOptions),online:_({},this.onlineOption),fromyear:"",toyear:""}),setTimeout(()=>{this.el.nativeElement.querySelector('[formcontrolname="contentType"] > select')?.focus()},50)}toggleAdvanced(){this.showAdvanced=!this.showAdvanced}skipToSearch(){setTimeout(()=>{this.el.nativeElement.querySelector("#default-search")?.focus()},50)}skipToLastQuestion(n){n.currentTarget?.blur();let r=this.el.nativeElement.getRootNode();if(!r){console.warn("Weird! no root doc?");return}let o=r.querySelectorAll(".answer, .t-error"),s=o?.length>0?o[o.length-1]:null;o.length===0&&(s=r.getElementById("chat-container"),s||(s=r.getElementById("landing"))),s&&(s.scrollIntoView({behavior:"smooth"}),s?.focus())}getDateValue(n,r,o){return n==="custom"&&r&&o?`${r}-${o}`:n&&n==="alldates"?null:n&&n==="last12months"?new Date().getFullYear()-1+"-"+new Date().getFullYear():n&&n==="last5years"?new Date().getFullYear()-5+"-"+new Date().getFullYear():n&&n==="last10years"?new Date().getFullYear()-10+"-"+new Date().getFullYear():null}};e.\u0275fac=function(r){return new(r||e)(b(Ne),b($u),b(ke),b(we),b(Ue),b(vn),b(an))},e.\u0275cmp=B({type:e,selectors:[["app-searchbox"]],viewQuery:function(r,o){if(r&1&&(et(d4,5),et(h4,5)),r&2){let s;Ze(s=Ke())&&(o.searchBox=s.first),Ze(s=Ke())&&(o.advancedSearch=s.first)}},hostBindings:function(r,o){r&1&&A("keyup",function(a){return o.keyEvent(a)},!1,_o)},standalone:!0,features:[H],decls:2,vars:1,consts:[["searchbox",""],["advancedSearch",""],["class","flex justify-center",3,"formGroup","ngSubmit",4,"transloco"],["tabindex","0",1,"skiplink","styled","hidden","lg:block","absolute","left-1/2","bottom-20"],[1,"flex","justify-center",3,"ngSubmit","formGroup"],[1,"peer","relative","flex","flex-col","justify-center","items-center","mx-4","mb-2","transition-[height]","h-full","shadow-md","rounded-xl","border","bg-white","w-[calc(100%-2rem)]",3,"ngClass"],[1,"t-qanda-loading","absolute","text-sm","animate-pulse","left-2",3,"ngClass"],[1,"t-searchbox-contents","inline-flex","w-full","h-14","items-center"],["type","button","aria-controls","advanced-search",1,"ms-4","inline-flex","items-center",3,"ariaExpanded"],["type","search","autocomplete","off","formControlName","input","id","default-search","required","",1,"t-searchbox","peer","bg-transparent","grow","h-full","ps-4","pe-2","focus:ring-0","focus-visible:outline-none",3,"keyup.arrowup","ngClass"],[1,"t-search-quotum","text-slate-500","px-4"],["type","submit",1,"t-search-submit","border-2","gradient-border","me-4","rounded-full","p-[2px]","hover:border-cdra-green-main","focus:border-cdra-green-main","disabled:opacity-60",3,"disabled"],["viewBox","0 0 25 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"h-6","w-6","scale-x-100","rtl:-scale-x-100"],["clip-path","url(#clip0_3143_9149)"],["d","M12.5527 4.59192L11.1427 6.00192L16.7227 11.5919H4.55273V13.5919H16.7227L11.1427 19.1819L12.5527 20.5919L20.5527 12.5919L12.5527 4.59192Z","fill","#28739E"],["id","clip0_3143_9149"],["width","24","height","24","fill","currentColor","transform","translate(0.552734 0.591919)"],["id","advanced-search",1,"t-advanced-search","w-full","transition-all","ps-2","items-center","rounded-b-xl","border-gray-400","shadow-inner",3,"ngClass"],["type","button","aria-controls","advanced-search",1,"ms-4","inline-flex","items-center",3,"click","ariaExpanded"],["viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","shrink-0"],["d","M0.75 4.7308H12.169C12.5131 6.29731 13.9121 7.47336 15.5805 7.47336C17.2488 7.47336 18.6478 6.29736 18.9919 4.7308H23.25C23.6642 4.7308 24 4.39498 24 3.9808C24 3.56661 23.6642 3.2308 23.25 3.2308H18.9915C18.6467 1.66508 17.2459 0.488281 15.5805 0.488281C13.9141 0.488281 12.5139 1.66489 12.1693 3.2308H0.75C0.335812 3.2308 0 3.56661 0 3.9808C0 4.39498 0.335812 4.7308 0.75 4.7308ZM13.588 3.98277C13.588 3.98009 13.588 3.97738 13.588 3.9747C13.5913 2.87937 14.4851 1.98833 15.5805 1.98833C16.6743 1.98833 17.5681 2.87816 17.5728 3.97297L17.573 3.98398C17.5712 5.08119 16.6781 5.97341 15.5805 5.97341C14.4833 5.97341 13.5904 5.08208 13.5879 3.98553L13.588 3.98277ZM23.25 20.269H18.9915C18.6467 18.7033 17.2459 17.5265 15.5805 17.5265C13.9141 17.5265 12.5139 18.7031 12.1693 20.269H0.75C0.335812 20.269 0 20.6047 0 21.019C0 21.4332 0.335812 21.769 0.75 21.769H12.169C12.5131 23.3355 13.9121 24.5115 15.5805 24.5115C17.2488 24.5115 18.6478 23.3355 18.9919 21.769H23.25C23.6642 21.769 24 21.4332 24 21.019C24 20.6047 23.6642 20.269 23.25 20.269ZM15.5805 23.0115C14.4833 23.0115 13.5904 22.1202 13.5879 21.0237L13.588 21.0209C13.588 21.0182 13.588 21.0155 13.588 21.0129C13.5913 19.9175 14.4851 19.0265 15.5805 19.0265C16.6743 19.0265 17.5681 19.9163 17.5728 21.011L17.573 21.0221C17.5714 22.1194 16.6782 23.0115 15.5805 23.0115ZM23.25 11.7499H11.831C11.4869 10.1834 10.0879 9.00739 8.41955 9.00739C6.75117 9.00739 5.35223 10.1834 5.00808 11.7499H0.75C0.335812 11.7499 0 12.0857 0 12.4999C0 12.9141 0.335812 13.2499 0.75 13.2499H5.00845C5.35331 14.8156 6.75413 15.9924 8.41955 15.9924C10.0859 15.9924 11.4861 14.8158 11.8307 13.2499H23.25C23.6642 13.2499 24 12.9141 24 12.4999C24 12.0857 23.6642 11.7499 23.25 11.7499ZM10.412 12.4979C10.412 12.5007 10.412 12.5033 10.412 12.506C10.4087 13.6013 9.51492 14.4924 8.41955 14.4924C7.32572 14.4924 6.43191 13.6025 6.42717 12.5078L6.42703 12.4968C6.42867 11.3995 7.32188 10.5074 8.41955 10.5074C9.5167 10.5074 10.4096 11.3987 10.4121 12.4953L10.412 12.4979Z","fill","#929292"],[1,"ms-1","w-4","h-4","bg-cdra-blue-dark-600","rounded-full","text-center","flex","justify-center","items-center"],[1,"text-white","text-xs","font-bold","contents","leading-6"],[1,"grid","grid-cols-[1fr_auto]","items-center","lg:flex","lg:w-full","gap-4","ms-1","my-3"],[1,"flex","flex-wrap","gap-4","items-center"],["formControlName","contentType"],["formControlName","date"],[1,"flex","flex-nowrap","items-center","gap-4"],["formControlName","online"],["type","button",1,"skiplink","hidden","lg:block",3,"click"],["role","alert",1,"text-red-700","text-sm","break-before-auto"],[1,"flex","items-center","self-baseline","pt-2","lg:ms-auto","me-6"],["type","button",1,"t-reset-form","text-cdra-blue-light-700","text-base"],[1,"inline-flex","items-center"],["formControlName","fromyear",1,"t-search-date-from","h-9","ms-1","w-12","text-center",3,"placeholder","ngClass"],["formControlName","toyear",1,"t-search-date-to","h-9","ms-1","w-12","text-center",3,"placeholder","ngClass"],["type","hidden","formControlName","online"],["type","button",1,"t-reset-form","text-cdra-blue-light-700","text-base",3,"click"],[1,"font-medium","hidden","lg:inline"],[1,"font-medium","lg:hidden"],["role","alert",1,"w-full","rounded-xl","text-black","text","break-before-auto","p-5","bg-red-100"],["class","skiplink styled hidden lg:block absolute left-1/2 bottom-20","tabindex","0",3,"click",4,"transloco"],["tabindex","0",1,"skiplink","styled","hidden","lg:block","absolute","left-1/2","bottom-20",3,"click"]],template:function(r,o){r&1&&I(0,N4,5,8,"form",2)(1,k4,1,0,"button",3),r&2&&(f(),j(1,o.hasAnswer?1:-1))},dependencies:[ve,mt,Bu,Pu,Xi,Zo,Ru,Eg,Aa,Na,ye,ee,n_,ZD,YD],encapsulation:2});let t=e;return t})()});function O4(t,e){if(t&1&&(h(0,"div",12),C(1),p()),t&2){let i=m().$implicit;f(),N(i("landing.message.quotalimit"))}}
58function F4(t,e){t&1&&x(0,"app-searchbox")}function P4(t,e){if(t&1){let i=U();h(0,"a",22),A("click",function(r){let o=F(i).$implicit,s=m(2);return P(s.getAnswer(r,o.question))}),h(1,"div",23)(2,"span",24),C(3),p()(),ce(),h(4,"svg",25)(5,"g"),x(6,"path",26),p()()()}if(t&2){let i=e.$implicit;f(3),N(i.question)}}function L4(t,e){if(t&1&&(h(0,"div",1)(1,"div",2)(2,"div",3)(3,"h2",4),ce(),h(4,"svg",5),x(5,"path",6)(6,"path",7)(7,"path",8),p(),Me(),x(8,"span",9),p(),x(9,"p",10),h(10,"div",11),I(11,O4,2,1,"div",12)(12,F4,1,0),p()(),h(13,"div",13)(14,"div",14)(15,"h3",15),C(16),p(),h(17,"div",16),ce(),h(18,"svg",17),x(19,"path",18),p(),Me(),h(20,"button",19),C(21),p()()(),h(22,"div",20),I(23,P4,7,1,"a",21),An(24,"slice"),p()()()()),t&2){let i=e.$implicit,n=m();f(8),E("innerHTML",i("app.title"),Le),f(),E("innerHTML",i("landing.subtitle"),Le),f(2),j(11,n.quotumLimitExceeded?11:12),f(5),N(i("landing.examplequestions.title")),f(4),E("routerLink",n.helpLink),f(),N(i("sidebar.helplink")),f(2),E("ngForOf",hb(24,7,n.initialQuestions,0,4))}}var c0,eE=y(()=>{"use strict";l0();At();he();te();L();$t();te();gt();Sa();ln();he();c0=(()=>{let e=class e{get quotumLimitExceeded(){return this.research.quotumLimitExceeded}constructor(n,r,o,s,a){this.research=n,this.config=o,this.user=s,this.stats=a,this.helpLink="/pages/help",r.selectTranslate("landing.research.question1").subscribe(()=>{this.initialQuestions=[{id:"question1",question:r.translate("landing.research.question1")},{id:"question2",question:r.translate("landing.research.question2")},{id:"question3",question:r.translate("landing.research.question3")},{id:"question4",question:r.translate("landing.research.question4")}]})}getAnswer(n,r){n.preventDefault(),this.research.getAnswer(r,null),this.stats.search(r,"landing")}};e.\u0275fac=function(r){return new(r||e)(b(Ne),b(Ye),b(we),b(Yi),b(Ue))},e.\u0275cmp=B({type:e,selectors:[["app-landing"]],hostAttrs:[1,"contents"],inputs:{helpLink:"helpLink"},standalone:!0,features:[H],decls:1,vars:0,consts:[["id","landing","class","flex flex-col my-auto p-2",4,"transloco"],["id","landing",1,"flex","flex-col","my-auto","p-2"],[1,"flex","flex-col","justify-center","items-center","gap-10"],[1,"w-full","text-center"],[1,"text-3xl","font-bold","hidden","sm:block"],["width","31","height","30","viewBox","0 0 31 30","fill","currentColor","xmlns","http://www.w3.org/2000/svg",1,"inline","me-4","text-cdra-blue-light-main"],["fill-rule","evenodd","clip-rule","evenodd","d","M20.4851 18.6146C14.819 18.6146 10.2425 14.02 10.2425 8.37207C10.2425 14.02 5.64793 18.6146 0 18.6146C5.64793 18.6146 10.2425 23.1911 10.2425 28.839C10.2425 23.1911 14.819 18.6146 20.4851 18.6146Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M31.0001 23.8992C27.8946 23.8992 25.3885 21.3749 25.3885 18.2876C25.3885 21.3749 22.8641 23.8992 19.7769 23.8992C22.8641 23.8992 25.3885 26.4054 25.3885 29.5108C25.3885 26.4054 27.8946 23.8992 31.0001 23.8992Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M27.7676 6.82836C23.9902 6.82836 20.9392 3.77739 20.9392 0C20.9392 3.77739 17.8882 6.82836 14.1108 6.82836C17.8882 6.82836 20.9392 9.87933 20.9392 13.6567C20.9392 9.87933 23.9902 6.82836 27.7676 6.82836Z"],[1,"pe-2",3,"innerHTML"],[1,"text-xl","mt-3","prose",3,"innerHTML"],[1,"t-searchbox","w-full","mt-6"],["aria-live","polite",1,"t-quota-exceeded","p-2","border","border-red-700","bg-red-100","text-red-900","text-lg","text-center"],[1,"m-4","mt-10"],[1,"flex","flex-row","justify-between","items-center","mb-2"],[1,"font-bold","mb-2","lg:text-lg"],[1,"flex","items-start"],["aria-hidden","true","width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0"],["d","M11 18H13V16H11V18ZM12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893
58C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C10.9391 6 9.92172 6.42143 9.17157 7.17157C8.42143 7.92172 8 8.93913 8 10H10C10 9.46957 10.2107 8.96086 10.5858 8.58579C10.9609 8.21071 11.4696 8 12 8C12.5304 8 13.0391 8.21071 13.4142 8.58579C13.7893 8.96086 14 9.46957 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 8.93913 15.5786 7.92172 14.8284 7.17157C14.0783 6.42143 13.0609 6 12 6Z","fill","#424242"],[1,"t-sidenav-help-link","ms-1","underline","hover:decoration-2",3,"routerLink"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-3","scroll-mb-20","items-stretch"],["href","#","class","t-example-question flex flex-row items-center w-full bg-cdra-blue-light-50 shadow rounded-md p-4 text-gray-700 hover:shadow-[0_0_0_2px_inset] hover:shadow-cdra-blue-light-400",3,"click",4,"ngFor","ngForOf"],["href","#",1,"t-example-question","flex","flex-row","items-center","w-full","bg-cdra-blue-light-50","shadow","rounded-md","p-4","text-gray-700","hover:shadow-[0_0_0_2px_inset]","hover:shadow-cdra-blue-light-400",3,"click"],[1,"w-5/6"],[1,"text-base"],["viewBox","0 0 25 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-7","ms-auto","scale-x-100","rtl:-scale-x-100"],["d","M12.0527 4.09192L10.6427 5.50192L16.2227 11.0919H4.0527V13.0919H16.2227L10.6427 18.6819L12.0527 20.0919L20.0527 12.0919L12.0527 4.09192Z","fill","#28739E"]],template:function(r,o){r&1&&I(0,L4,25,11,"div",0)},dependencies:[ve,Uc,Tb,ad,$o,ye,ee],encapsulation:2});let t=e;return t})()});function V4(t,e){if(t&1&&(h(0,"div",1)(1,"h2"),C(2),p()()),t&2){let i=e.$implicit;f(2),N(i("user.title"))}}var tE,nE=y(()=>{"use strict";te();L();te();tE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-user"]],standalone:!0,features:[H],decls:1,vars:0,consts:[["class","flex flex-col gap-4 h-full",4,"transloco"],[1,"flex","flex-col","gap-4","h-full"]],template:function(r,o){r&1&&I(0,V4,3,1,"div",0)},dependencies:[ye,ee],encapsulation:2});let t=e;return t})()});var iE,rE=y(()=>{"use strict";At();L();iE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-research"]],hostAttrs:[1,"contents"],standalone:!0,features:[H],decls:1,vars:0,template:function(r,o){r&1&&x(0,"router-outlet")},dependencies:[Or],encapsulation:2});let t=e;return t})()});var oE,sE=y(()=>{"use strict";L();oE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-history"]],standalone:!0,features:[H],decls:2,vars:0,template:function(r,o){r&1&&(h(0,"p"),C(1,"history works!"),p())}});let t=e;return t})()});var aE,lE=y(()=>{"use strict";L();aE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-bookmarks"]],standalone:!0,features:[H],decls:2,vars:0,template:function(r,o){r&1&&(h(0,"p"),C(1,"bookmarks works!"),p())}});let t=e;return t})()});var cE,uE=y(()=>{"use strict";L();cE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-documents"]],standalone:!0,features:[H],decls:2,vars:0,template:function(r,o){r&1&&(h(0,"p"),C(1,"documents works!"),p())}});let t=e;return t})()});var dE,hE=y(()=>{"use strict";L();dE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-topics"]],standalone:!0,features:[H],decls:2,vars:0,template:function(r,o){r&1&&(h(0,"p"),C(1,"topics works!"),p())}});let t=e;return t})()});function j4(t,e){if(t&1&&(h(0,"div",3)(1,"h3",4),C(2),p()()),t&2){let i=e.$implicit;f(2),N(i("research.related.title"))}}function $4(t,e){if(t&1){let i=U();h(0,"li",2)(1,"button",5),A("click",function(){let r=F(i).$implicit,o=m();return P(o.askQuestion(r))}),ce(),h(2,"svg",6),x(3,"rect",7)(4,"path",8)(5,"path",9),h(6,"defs")(7,"linearGradient",10),x(8,"stop",11)(9,"stop",12),p(),h(10,"linearGradient",13),x(11,"stop",11)(12,"stop",12),p()()(),Me(),h(13,"span"),C(14),p()()()}if(t&2){let i=e.$implicit,n=m();f(13),V("lang",n.language),f(),N(i)}}var fE,pE=y(()=>{"use strict";te();L();$t();ln();te();fE=(()=>{let e=class e{constructor(n,r){this.research=n,this.stats=r,this.language="en"}askQuestion(n){this.research.setAnswer(n),this.stats.search(n,"more-questions")}};e.\u0275fac=function(r){return new(r||e)(b(Ne),b(Ue))},e.\u0275cmp=B({type:e,selectors:[["app-more-questions"]],inputs:{questions:"questions",language:"language"},standalone:!0,features:[H],decls:4,vars:0,consts:[["class","flex items-center mt-8 mb-2",4,"transloco"],[1,"t-follow-up-questions","list-none","flex","flex-wrap","gap-2"],[1,"t-follow-up-question"],[1,"flex","items-center","mt-8","mb-2"],[1,"inline","text-xl","font-bold"],[1,"p-2","bg-cdra-blue-light-200","rounded-lg","text-black","mb-2","w-fit","focus:ring-2","hover:ring-2","ring-cdra-blue-light-main","inline-flex","text-start","gap-2",3,"click"],["width","23","height","22","viewBox","0 0 23 22","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0"],["x","0.105438","width","22","height","22","rx","11","fill","white"],["d","M15.4939 7.64596C15.3752 5.35849 13.487 3.53048 11.1954 3.48428C11.1654 3.48369 11.1356 3.4834 11.1057 3.4834C8.91901 3.4834 7.0562 5.09528 6.75321 7.26662C6.72511 7.46792 6.71088 7.67358 6.71088 7.87793C6.71088 8.60604 7.30112 9.19629 8.02924 9.19629C8.75735 9.19629 9.3476 8.60604 9.3476 7.87793C9.3476 7.79511 9.35331 7.71208 9.36465 7.63107C9.48734 6.75196 10.2501 6.1028 11.1423 6.12047C11.5824 6.12935 12.0025 6.30621 12.3253 6.61855C12.6478
586.93059 12.838 7.34402 12.8607 7.78257C12.8861 8.27095 12.7154 8.73439 12.3801 9.08757C12.0444 9.44106 11.5918 9.63574 11.1054 9.63574C10.3773 9.63574 9.78702 10.226 9.78702 10.9541V13.5615C9.78702 14.2896 10.3773 14.8799 11.1054 14.8799C11.8335 14.8799 12.4237 14.2896 12.4237 13.5615V12.0683C13.129 11.8455 13.7761 11.4467 14.2922 10.9031C15.1303 10.0203 15.5571 8.86359 15.4939 7.64596Z","fill","url(#paint0_linear_3194_923)"],["d","M11.1054 18.5166C11.8335 18.5166 12.4238 17.9264 12.4238 17.1982C12.4238 16.4701 11.8335 15.8799 11.1054 15.8799C10.3773 15.8799 9.78708 16.4701 9.78708 17.1982C9.78708 17.9264 10.3773 18.5166 11.1054 18.5166Z","fill","url(#paint1_linear_3194_923)"],["id","paint0_linear_3194_923","x1","11.1054","y1","3.4834","x2","11.1054","y2","14.8799","gradientUnits","userSpaceOnUse"],["stop-color","#AA99ED"],["offset","1","stop-color","#5EAAE0"],["id","paint1_linear_3194_923","x1","11.1054","y1","15.8799","x2","11.1054","y2","18.5166","gradientUnits","userSpaceOnUse"]],template:function(r,o){r&1&&(I(0,j4,3,1,"div",0),h(1,"ul",1),Oe(2,$4,15,2,"li",2,pt),p()),r&2&&(f(2),Fe(o.questions))},dependencies:[ye,ee]});let t=e;return t})()});function H4(t,e){if(t&1){let i=U();h(0,"label")(1,"input",21),A("change",function(r){F(i);let o=m(3);return P(o.onCheckboxChange(r,o.feedbackGoodReasons))}),p(),h(2,"span"),C(3),p()()}if(t&2){let i=e.$implicit,n=m(2).$implicit;f(),E("value",i.value),f(2),N(n(i.text))}}function U4(t,e){if(t&1&&(h(0,"div",16),C(1),p(),h(2,"form",17),I(3,H4,4,2,"label",18),h(4,"div",19),C(5),p(),x(6,"textarea",20),p()),t&2){let i=m().$implicit,n=m();f(),N(i("helptext.whygood",Ae(5,Va,n.typeLocalization))),f(),E("formGroup",n.feedbackGood),f(),E("ngForOf",n.feedbackGoodOptions[n.type]),f(2),N(i("helptext.explain",Ae(7,Va,n.typeLocalization))),f(),V("placeholder",i("nopersonalinfo"))}}function q4(t,e){if(t&1){let i=U();h(0,"label")(1,"input",21),A("change",function(r){F(i);let o=m(3);return P(o.onCheckboxChange(r,o.feedbackBadReasons))}),p(),h(2,"span"),C(3),p()()}if(t&2){let i=e.$implicit,n=m(2).$implicit;f(),E("value",i.value),f(2),N(n(i.text))}}function z4(t,e){if(t&1&&(h(0,"div",16),C(1),p(),h(2,"form",17),I(3,q4,4,2,"label",18),h(4,"div",19),C(5),p(),x(6,"textarea",20),p()),t&2){let i=m().$implicit,n=m();f(),N(i("helptext.whybad",Ae(5,Va,n.typeLocalization))),f(),E("formGroup",n.feedbackBad),f(),E("ngForOf",n.feedbackBadOptions[n.type]),f(2),N(i("helptext.explain",Ae(7,Va,n.typeLocalization))),f(),V("placeholder",i("nopersonalinfo"))}}function G4(t,e){if(t&1){let i=U();h(0,"dialog",2,0)(2,"button",3),A("click",function(){F(i);let r=m();return P(r.cancel())}),ce(),h(3,"svg",4)(4,"g",5),x(5,"path",6),p(),h(6,"defs")(7,"clipPath",7),x(8,"rect",8),p()()()(),Me(),h(9,"h2",9),C(10),p(),I(11,U4,7,9)(12,z4,7,9),h(13,"div",10)(14,"button",11),A("click",function(){F(i);let r=m();return P(r.submit())}),h(15,"div",12),C(16),p()(),h(17,"button",13),A("click",function(){F(i);let r=m();return P(r.cancel())}),h(18,"div",14),C(19),p()()(),x(20,"br"),h(21,"div",15)(22,"i"),C(23),p()()()}if(t&2){let i=e.$implicit,n=m();f(2),V("aria-label",i("close.dialog")),f(8),N(i("title")),f(),j(11,(n.feedback==null?null:n.feedback.reaction)==="thumbs_up"?11:(n.feedback==null?null:n.feedback.reaction)==="thumbs_down"?12:-1),f(3),E("disabled",n.isFormInvalid()),f(2),N(i("submit")),f(3),N(i("cancel")),f(4),N(i("helptext.terms",Ae(7,Va,n.typeLocalization)))}}var B4,Va,ld,u0=y(()=>{"use strict";he();Yn();te();L();Yn();ln();$t();te();he();B4=["dialog"],Va=t=>({typeLocalization:t});ld=(()=>{let e=class e{constructor(n,r,o,s){this.fb=n,this.stats=r,this.research=o,this.translocoService=s,this.showModal=!1,this.ratingText="",this.feedbackGoodOptions={answer:[{value:"Answered my question/request",text:"good.answered"},{value:"Gave me accurate information",text:"good.accurate"},{value:"Sources met my expectations",text:"good.expectations"},{value:"Made my research task easier",text:"good.easier"},{value:"Other",text:"other"}],record:[{value:"Relevant to my question",text:"good.relevant"},{value:"Gave me accurate information",text:"good.accurate"},{value:"Up to date",text:"good.uptodate"},{value:"I like the author(s), journal or publisher",text:"good.like"},{value:"Other",text:"other"}]},this.feedbackBadOptions={answer:[{value:"Didn\u2019t answer my question/request",text:"bad.didntanswer"},{value:"Offensive, inappropriate or biased",text:"bad.biased"},{value:"Gave me inaccurate information",text:"bad.inaccurate"},{value:"Sources didn\u2019t meet my expectations",text:"bad.expectations"},{value:"Other",text:"other"}],record:[{value:"Not relevant to my question",text:"bad.notrelevant"},{value:"Gave me inaccurate information",text:"bad.inaccurate"},{value:"Out of date",text:"bad.outofdate"},{value:"Issue with the author(s), journal or publisher",text:"bad.unlike"},{value:"Other",text:"other"}]},this.feedbackGood=this.createFeedbackFormGroup(),this.feedbackBad=this.createFeedbackFormGroup()}ngOnInit(){this.feedback&&(this.feedback.reaction==="thumbs_up"&&(this.feedbackGood=this.fb.group({comment:this.feedback.comment??"",reasons:this.fb.array(this.feedback.reasons??[])})),this.feedback.reaction==="thumbs_down"&&(this.feedbackBad=this.fb.group({comment:this.feedback.comment??"",reasons:this.fb.array(this.feedback.reasons??[])})))}get typeLocalization(){return this.type==="answer"?this.translocoService.translate("rating.type.overview"):this.type==="record"?this.translocoService.translate("rating.type.source"):""}get feedbackBadReasons(){return this.feedbackBad.get("reasons")}get feedbackGoodReasons(){return this.feedbackGood.get("reasons")}onCheckboxChange(n,r){let o=n.target;if(o.checked)r.push(new Rn(o.value));else{let s=r.controls.findIndex(a=>a.value===o.value);s!==-1&&r.removeAt(s)}}ngOnChanges(n){this.dialog?.nativeElement&&n.feedback&&typeof n.feedback.currentValue<"u"&&(n.feedback.currentValue?.reaction==="thumbs_down"||n.feedback.currentValue?.reaction==="thumbs_up")&&(this.feedbackGood=this.createFeedbackFormGroup(),this.feedbackBad=this.createFeedbackFormGroup(),this.dialog.nativeElement.showModal())}cancel(){this.feedback&&(this.feedback.reaction=this.currentReaction??void 0),this.close()}close(){this.showModal=!1,this.dialog.nativeElement.close()}submit(){this.feedback&&!this.isFormInvalid()?(this.feedback.reaction==="thumbs_up"&&(this.feedback.comment=this.feedbackGood.get("comment")?.value??"",this.feedback.reasons=this.feedbackGood.get("reasons")?.value??[]),this.feedback.reaction==="thumbs_down"&&(this.feedback.comment=this.feedbackBad.get("comment")?.value??"",this.feedback.reasons=this.feedbackBad.get("reasons")?.value??[]),this.feedback.answer=this.answer?.answer,this.feedback.answerId=this.answer?.id,this.feedback.sourceId=this.sourceId,this.type==="record"?this.stats.sendEvent({category:"feedback",action:this.feedback.reaction,label:"sourceId",value:this.feedback.sourceId,question:this.feedback.query}):this.stats.sendEvent({category:"feedback",action:this.feedback.reaction,label:"answerId",value:this.feedback.answerId,question:this.feedback.query}),this.research.sendFeedback(this.feedback)):(console.warn("weird, there is no feedback?"),this.cancel()),this.close()}isFormInvalid(){return this.feedback?.reaction==="thumbs_down"?this.feedbackBad.invalid:this.feedback?.reaction==="thumbs_up"?this.feedbackGood.invalid:!1}createFeedbackFormGroup(){return this.fb.group({comment:"",reasons:this.fb.array([],Wo.required)})}};e.\u0275fac=function(r){return new(r||e)(b($u),b(Ue),b(Ne),b(Ye))},e.\u0275cmp=B({type:e,selectors:[["app-rating-dialog"]],viewQuery:function(r,o){if(r&1&&et(B4,5),r&2){let s;Ze(s=Ke())&&(o.dialog=s.first)}},inputs:{showModal:"showModal",type:"type",source:"source",feedback:"feedback",currentReaction:"currentReaction",answer:"answer",sourceId:"sourceId"},standalone:!0,features:[ot,H],decls:1,vars:1,consts:[["dialog",""],["class","t-rating-dialog w-[50%] p-5 rounded-lg bg-white shadow border border-neutral-300","role","dialog","aria-labelledby","rating-title",4,"transloco","translocoPrefix"],["role","dialog","aria-labelledby","rating-title",1,"t-rating-dialog","w-[50%]","p-5","rounded-lg","bg-white","shadow","border","border-neutral-300"],[1,"float-end","ms-2",3,"click"],["aria-hidden","true","
58width","24","height","25","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_2589_1608)"],["d","M19 6.84533L17.59 5.43533L12 11.0253L6.41 5.43533L5 6.84533L10.59 12.4353L5 18.0253L6.41 19.4353L12 13.8453L17.59 19.4353L19 18.0253L13.41 12.4353L19 6.84533Z","fill","#828282"],["id","clip0_2589_1608"],["width","24","height","24","fill","white","transform","translate(0 0.435333)"],["id","rating-title",1,"text-xl","font-bold"],[1,"flex","flex-row","gap-2","mt-4"],[1,"t-rating-submit","p-2","bg-cdra-blue-light-main","rounded",3,"click","disabled"],[1,"text-white","text","font-normal","leading-tight"],[1,"t-rating-cancel","p-2","bg-zinc-300","rounded","border","border-zinc-400",3,"click"],[1,"text-black","font-normal","leading-tight"],[1,"mt-4-italic"],[1,"my-4"],[1,"t-rating-reasons","flex","flex-col","gap-2",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"mt-4"],["formControlName","comment",1,"t-rating-comments","p-2","w-full","h-24","mt-2","border","border-zinc-400"],["type","checkbox","required","",1,"me-1",3,"change","value"]],template:function(r,o){r&1&&I(0,G4,24,9,"dialog",1),r&2&&E("translocoPrefix","rating")},dependencies:[ve,Uc,Bu,Pu,Xi,Zo,Ru,Aa,Na,ye,ee]});let t=e;return t})()});var mE,gE=y(()=>{"use strict";L();mE=(()=>{let e=class e{transform(n,r="."){if(n==null)return null;if(typeof n!="string")throw new Error("value for endWithChar not a string");return n&&n+r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=_r({name:"endWithChar",type:e,pure:!0,standalone:!0});let t=e;return t})()});function e5(t,e){if(t&1&&x(0,"h3",13),t&2){let i=e.$implicit;E("innerHTML",i("sources.title"),Le)}}function t5(t,e){if(t&1&&(h(0,"div",7)(1,"div",8),ce(),h(2,"svg",9),x(3,"path",10),p(),I(4,e5,1,1,"h3",11),Me(),h(5,"span",12),C(6),p()()()),t&2){let i=e.$implicit;f(6),ie(" ",i("source.details.description")," ")}}function n5(t,e){t&1&&(ce(),h(0,"svg",56),x(1,"polygon",58),p())}function i5(t,e){if(t&1&&(h(0,"div",67),C(1),p()),t&2){let i=m(2).$implicit;f(),ie("Debug score: ",i.score," ")}}function r5(t,e){if(t&1){let i=U();h(0,"button",84),A("click",function(r){F(i);let o=m(2).$implicit,s=m(2);return P(s.readMore(r,o))}),C(1),p()}if(t&2){let i=m(2).$implicit,n=m().$implicit;V("aria-controls","source_more_"+i.id),f(),N(n("sources.selectedsource.readmore"))}}function o5(t,e){if(t&1){let i=U();h(0,"a",85),A("click",function(){F(i);let r=m(2).$implicit,o=m(2);return P(o.downloadPdf(r))}),ce(),h(1,"svg",86),x(2,"path",87),p(),Me(),h(3,"span",88),C(4),p()()}if(t&2){let i=m(2).$implicit,n=m().$implicit;E("href",i.pdfLink,Fi),f(4),N(n("sources.selectedsource.downloadpdf"))}}function s5(t,e){if(t&1){let i=U();h(0,"a",89),A("click",function(){F(i);let r=m(2).$implicit,o=m(2);return P(o.fullTextOnline(r))}),ce(),h(1,"svg",86),x(2,"path",90),p(),Me(),h(3,"span",88),C(4),p()()}if(t&2){let i=m(2).$implicit,n=m().$implicit;E("href",i.htmlLink,Fi),f(4),N(n("sources.selectedsource.fulltextonline"))}}function a5(t,e){if(t&1){let i=U();h(0,"a",91),A("click",function(){F(i);let r=m(2).$implicit,o=m(2);return P(o.getDeeplink(r))}),C(1),p()}if(t&2){let i=m(2).$implicit,n=m().$implicit;E("href",i==null?null:i.deepLink,Fi),f(),N(n("sources.selectedsource.alldetails"))}}function l5(t,e){if(t&1){let i=U();h(0,"button",92),A("click",function(){F(i);let r=m(2).$implicit,o=m(2);return P(o.getQuickLookLink(r))}),C(1),p()}if(t&2){let i=m(3).$implicit;f(),N(i("sources.selectedsource.alldetails"))}}function c5(t,e){if(t&1){let i=U();h(0,"li",57,1),x(2,"app-rating-dialog",59,2),h(4,"button",60,3),A("click",function(){F(i);let r=m().$implicit,o=m(2);return P(o.closeSourceView(r))}),ce(),h(6,"svg",61)(7,"g",62),x(8,"path",63),p(),h(9,"defs")(10,"clipPath",64),x(11,"rect",65),p()()()(),Me(),h(12,"article")(13,"h4",66),C(14),p(),I(15,i5,2,1,"div",67),h(16,"div",68),C(17),An(18,"endWithChar"),An(19,"endWithChar"),An(20,"endWithChar"),p(),h(21,"div",69)(22,"strong"),C(23),p(),h(24,"div",70,4),C(26),p(),I(27,r5,2,2,"button",71),p(),h(28,"div",72),I(29,o5,5,2,"a",73)(30,s5,5,2,"a",74)(31,a5,2,2,"a",75)(32,l5,2,1,"button",76),h(33,"div",77)(34,"div",78)(35,"button",79),A("click",function(){F(i);let r=m().$implicit,o=m(2);return P(o.rateThisSource(r,"thumbs_up"))}),ce(),h(36,"svg",80),x(37,"path",81),p()(),Me(),h(38,"button",82),A("click",function(){F(i);let r=m().$implicit,o=m(2);return P(o.rateThisSource(r,"thumbs_down"))}),ce(),h(39,"svg",83),x(40,"path",81),p()()()()()()()}if(t&2){let i,n=m(),r=n.$implicit,o=n.$index,s=m().$implicit,a=m();E("ngClass",a.getClassForSourceSelected(o)),V("id","source_"+r.id)("aria-label",s("source.details")),f(2),E("type","record")("feedback",r.feedback)("currentReaction",a.currentReaction)("answer",a.answer)("sourceId",r.id),f(2),V("aria-label",s("close.source.view")),f(8),V("lang",a.getLangCode(r)),f(2),N(r.title),f(),j(15,a.isDebug?15:-1),f(2),Tp("",Pc(18,31,(i=r.authors==null||(i=r.authors.slice(0,3))==null?null:i.join("; "))!==null&&i!==void 0?i:"",".")," ",((i=r.authors==null?null:r.authors.length)!==null&&i!==void 0?i:0)>3?a.authorEtAlLabel:""," ",Pc(19,34,r.publication,".")," ",Pc(20,37,r.year,"."),""),f(6),N(s("sources.selectedsource.abstract")),f(),E("ngClass",Ae(40,X4,r.readmore===!1)),V("id","source_more_"+r.id)("data-id",r.id),f(2),N(r.description),f(),j(27,r.readmore?27:-1),f(2),j(29,r.pdfLink?29:-1),f(),j(30,r.htmlLink?30:-1),f(),j(31,r.deepLink?31:-1),f(),j(32,r.quickLookLink?32:-1),f(2),V("aria-label",s("action.rate.source")),f(),V("aria-label",s("rating.source.thumbsup")),f(),E("ngClass",Tt(42,vE,(r.feedback==null?null:r.feedback.reaction)==="thumbs_up",(r.feedback==null?null:r.feedback.reaction)!=="thumbs_up")),f(2),V("aria-label",s("rating.source.thumbsdown")),f(),E("ngClass",Tt(45,vE,(r.feedback==null?null:r.feedback.reaction)==="thumbs_down",(r.feedback==null?null:r.feedback.reaction)!=="thumbs_down"))}}function u5(t,e){if(t&1){let i=U();h(0,"li",46)(1,"button",47,0),A("click",function(){let r=F(i).$implicit,o=m(2);return P(o.selectSource(r))}),h(3,"article")(4,"div",48)(5,"div",49)(6,"div",50)(7,"div",51),C(8),p()(),h(9,"div",52),C(10),p()()(),h(11,"div",53)(12,"h4",54),C(13),p(),h(14,"div",55),
58C(15),p()()()(),I(16,n5,2,0,":svg:svg",56),p(),I(17,c5,41,48,"li",57)}if(t&2){let i,n=e.$implicit,r=e.$index,o=m(2);E("ngClass",Fc(14,J4,r===0,r===1,r===2,r===3,r===4)),f(),V("aria-label",o.getSourceTitle(r))("title",o.isDebug?n.score:o.getSourceTitle(r))("aria-expanded",n.selected),f(7),ie(" ",n.referenceNumber," "),f(2),ie(" ",o.getContentTypeLocalization(n.contentType)," "),f(2),V("id","source_title_"+n.referenceNumber)("lang",o.getLangCode(n)),f(),ie(" ",n.title," "),f(2),Ip(" ",n.authors==null?null:n.authors[0]," ",((i=n.authors==null?null:n.authors.length)!==null&&i!==void 0?i:0)>1?o.authorEtAlLabel:""," ",n.year," "),f(),j(16,n.selected?16:-1),f(),j(17,n.selected?17:-1)}}function d5(t,e){if(t&1){let i=U();h(0,"ul",14),Oe(1,u5,18,20,null,null,Y4),h(3,"li",15)(4,"a",16),A("click",function(){F(i);let r=m();return P(r.viewRelated())}),ce(),h(5,"svg",17),x(6,"circle",18)(7,"path",19)(8,"path",19)(9,"path",20)(10,"path",21)(11,"path",22)(12,"path",23)(13,"path",24)(14,"path",25)(15,"path",26)(16,"path",27)(17,"path",28)(18,"path",29),h(19,"defs")(20,"linearGradient",30),x(21,"stop")(22,"stop",31),p(),h(23,"linearGradient",32),x(24,"stop",33)(25,"stop",31),p(),h(26,"linearGradient",34),x(27,"stop",33)(28,"stop",31),p(),h(29,"linearGradient",35),x(30,"stop",36)(31,"stop",37),p(),h(32,"linearGradient",38),x(33,"stop",36)(34,"stop",37),p(),h(35,"linearGradient",39),x(36,"stop",36)(37,"stop",37),p(),h(38,"linearGradient",40),x(39,"stop",36)(40,"stop",37),p(),h(41,"linearGradient",41),x(42,"stop")(43,"stop",42),p()()(),Me(),h(44,"div",43)(45,"span",44),C(46),p(),h(47,"span",45),C(48),p()()()()()}if(t&2){let i=e.$implicit,n=m();E("@fadeIn",void 0),f(),Fe(n.sources),f(3),E("href",n.relatedResultsLink,Fi),V("aria-label",n.getRelatedResultsAriaLabel()),f(42),ie(" ",i("sources.relatedresultsfromlibrary.bold"),""),f(2),ie(" ",i("sources.relatedresultsfromlibrary.normal"),"")}}var W4,Q4,Z4,K4,Y4,J4,X4,vE,d0,yE=y(()=>{"use strict";L();he();u0();gE();te();To();L();xa();$t();bu();te();ln();Fr();Mo();gt();he();W4=["selectedSourceEl"],Q4=["ratingdialog"],Z4=["sourceButton"],K4=["abstract"],Y4=(t,e)=>e.id,J4=(t,e,i,n,r)=>({"order-1":t,"order-2":e,"order-3":i,"order-4":n,"order-5":r}),X4=t=>({"line-clamp-none":t}),vE=(t,e)=>({"fill-cdra-blue-light-400":t,"fill-white":e});d0=(()=>{let e=class e{get isDebug(){return this.research.isDebug}constructor(n,r,o,s,a,l,c,u){this.clipboard=n,this.research=r,this.lang=o,this.translocoService=s,this.stats=a,this.message=l,this.domSanitizer=c,this.configService=u,this.authorEtAlLabel=this.translocoService.translate("sources.etal"),this.relatedResultsLink="#",Qs(()=>{this.selectedSource().source!=null&&setTimeout(()=>{this.focusOnSelectedSource(this.selectedSource().index);for(let d of this.abstracts)this.markTextTruncated(d.nativeElement)},0)})}ngOnInit(){if(this.answer&&this.answer.results){let{results:o,improvedQuery:s,improvedQuerySearch:a,id:l}=this.answer;this.sources=o,this.improvedQuery=s,this.improvedQuerySearch=a,this.id=l}let n=this.configService.product!=="summon",r=this.improvedQuerySearch??"#";if(r!=="#")try{let o=new URL(r),s=!1;if((typeof window<"u"&&window.localStorage.getItem("summon_saml")!==null||typeof window<"u"&&window.localStorage.getItem("summon_auth_state_saml")==="auth-login-success")&&o.hash){let l=o.hash.replace(/^#!?/,"");l&&(o.searchParams.set("saml_redirect",l),s=!0)}n&&(o.searchParams.set("lang",this.translocoService.getActiveLang()),s=!0),s&&(r=o.toString())}catch(o){if(console.debug("Failed to parse related results URL. Falling back to string concatenation.",{baseUrl:r,error:o}),n){let s=r.indexOf("#"),l=(s!==-1?r.substring(0,s):r).includes("?")?"&":"?";r+=l+"lang="+encodeURIComponent(this.translocoService.getActiveLang())}}this.relatedResultsLink=this.domSanitizer.bypassSecurityTrustUrl(r)}ngAfterViewInit(){for(let n of this.abstracts)this.markTextTruncated(n.nativeElement)}getLangCode(n){if(n.languages&&n.languages.length>0){let r=n.languages.map(o=>o.toLowerCase());return r.includes("english")?"en":this.lang.getLanguageCode(r[0])??"en"}return"en"}markTextTruncated(n){let r=n.scrollHeight>n.clientHeight,o=n.attributes.getNamedItem("data-id")?.value;if(o){let s=this.sources.find(a=>a.id===o);s&&(s.readmore=r)}}keyEvent(n){if(n.key==="Escape"){let r=this.sources.find(o=>o.selected);r&&this.closeSourceView(r)}}rateThisSource(n,r){n.feedback?(this.currentReaction=n.feedback.reaction,n.feedback.reaction===r?(n.feedback.reaction="",this.stats.sendEvent({category:"feedback-remove",action:r,label:"sourceId",value:n.id,question:this.question}),this.research.removeFeedback(n.feedback)):n.feedback.reaction=r,n.feedback=_({},n.feedback)):console.warn("something odd is happening, source has no feedback")}copyText(){let n=this.sources.find(r=>r.selected);if(n){let r=this.translocoService.translate("sources.selectedsource.abstract"),o=`${n.title}. ${n.authors?.join(", ")??""}${n.description?`\r 59`+r+n.description:""}\r 60$DOI: {selectedSource.doi}`;this.clipboard.copy(o),this.stats.sendEvent({category:"source",action:"copy",label:"sourceId",value:n.id,question:this.question})}}selectSource(n,r=!1){!r&&n?.selected?(this.stats.sendEvent({category:"source",action:"collapse-from-sourcecard",label:"sourceId",value:n?.id,question:this.question}),this.closeSourceView(n)):(this.sources.map(o=>o.selected=!1),n&&(n.selected=!0,r?this.stats.sendEvent({category:"source",action:"expand-from-annotation",label:"sourceId",value:n?.id,question:this.question}):this.stats.sendEvent({category:"source",action:"expand-from-sourcecard",label:"sourceId",value:n.id,question:this.question}),this.selectedSource.set({source:n,index:this.sources.indexOf(n)+1})))}closeSourceView(n){this.sources.map(o=>o.selected=!1);let r=this.sources.indexOf(n);r!==-1&&(this.sourceButtons.toArray()[r]?.nativeElement?.focus(),this.selectedSource.set({source:null,index:-1}))}downloadPdf(n){this.stats.sendEvent({category:"source",action:"pdf",label:"sourceId",value:n.id,question:this.question})}fullTextOnline(n){this.stats.sendEvent({category:"source",action:"fulltext",label:"sourceId",value:n.id,question:this.question})}getDeeplink(n){this.stats.sendEvent({category:"source",action:"deeplink",label:"sourceId",value:n.id,question:this.question}),this.message.emitAppEvent({event:"source",status:"click",value:n.deepLink})}getQuickLookLink(n){this.stats.sendEvent({category:"source",action:"quickLookLink",label:"sourceId",value:n.id,question:this.question}),this.message.emitAppEvent({event:"source",status:"click",value:n.quickLookLink}
60)}viewRelated(){this.stats.sendEvent({category:"source",action:"search-library",label:"answerId",value:this.answer?.id,question:this.question})}getSourceTitle(n){let r=this.answer?.results?.[n]?.title;return r&&r[r.length-1]!=="."&&(r=r+"."),n=n+1,r?this.translocoService.translate("answer.sourcetitle",{index:n,title:r}):this.translocoService.translate("answer.sourcetitledefault",{index:n})}getRelatedResultsAriaLabel(){let n=this.translocoService.translate("sources.relatedresultsfromlibrary")+" for your question";return this.question?`${n}: ${this.question}`:n}readMore(n,r){let o=n.target.parentElement;r.readmore&&setTimeout(()=>{for(let s of this.abstracts)s.nativeElement.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"}),s.nativeElement.focus()},0),r.readmore=!r.readmore,o&&o.focus(),this.stats.sendEvent({category:"source",action:"readmore",label:"sourceId",value:r.id,question:this.question})}getClassForSourceSelected(n){switch(n){case 0:return"order-1 md:order-4";case 1:return"order-2 md:order-4";case 2:return"order-3 md:order-4";case 3:return"order-4 md:order-7";case 4:return"order-5 md:order-7";default:return""}}focusOnSelectedSource(n){n=n-1;let r=this.selectedSourceEl;console.log("focusing on source",n,r),r&&(r.nativeElement.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"}),r.nativeElement.focus({preventScroll:!0}))}getContentTypeLocalization(n){if(!n)return"";n=n.replace(/[^a-zA-Z0-9]/g,"_").toLowerCase();let r=this.translocoService.translate("content_type."+n);return r==="content_type."+n?n:r}};e.\u0275fac=function(r){return new(r||e)(b(qo),b(Ne),b(Uo),b(Ye),b(Ue),b(vn),b(ia),b(we))},e.\u0275cmp=B({type:e,selectors:[["app-sources"]],viewQuery:function(r,o){if(r&1&&(et(W4,5),et(Q4,5),et(Z4,5),et(K4,5)),r&2){let s;Ze(s=Ke())&&(o.selectedSourceEl=s.first),Ze(s=Ke())&&(o.ratingdialogEl=s.first),Ze(s=Ke())&&(o.sourceButtons=s),Ze(s=Ke())&&(o.abstracts=s)}},hostBindings:function(r,o){r&1&&A("keyup",function(a){return o.keyEvent(a)},!1,_o)},inputs:{selectedSource:"selectedSource",answer:"answer",question:"question"},standalone:!0,features:[H],decls:2,vars:0,consts:[["sourceButton",""],["selectedSourceEl",""],["ratingdialog",""],["closeButton",""],["abstract",""],["class","t-answer answer flex flex-col mb-2 mt-6 scroll-m-8","tabindex","-1",4,"transloco"],["role","list","class","t-sources list-none grid grid-cols-1 md:grid-cols-3 lg:grid-cols-6 gap-3 h-fit",4,"transloco"],["tabindex","-1",1,"t-answer","answer","flex","flex-col","mb-2","mt-6","scroll-m-8"],[1,"icon-title-container","flex","items-center"],["width","24px","height","24px","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8 8H13M8 12H16M8 16H11M7.2 4H16.8C17.9201 4 18.4802 4 18.908 4.21799C19.2843 4.40973 19.5903 4.71569 19.782 5.09202C20 5.51984 20 6.0799 20 7.2V16.8C20 17.9201 20 18.4802 19.782 18.908C19.5903 19.2843 19.2843 19.5903 18.908 19.782C18.4802 20 17.9201 20 16.8 20H7.2C6.0799 20 5.51984 20 5.09202 19.782C4.71569 19.5903 4.40973 19.2843 4.21799 18.908C4 18.4802 4 17.9201 4 16.8V7.2C4 6.0799 4 5.51984 4.21799 5.09202C4.40973 4.71569 4.71569 4.40973 5.09202 4.21799C5.51984 4 6.0799 4 7.2 4Z","stroke","#000000","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["class","inline text-xl text-black font-bold mx-2 prose",3,"innerHTML",4,"transloco"],[1,"sr-only"],[1,"inline","text-xl","text-black","font-bold","mx-2","prose",3,"innerHTML"],["role","list",1,"t-sources","list-none","grid","grid-cols-1","md:grid-cols-3","lg:grid-cols-6","gap-3","h-fit"],[1,"t-source-relatedresults","order-6","flex","leading-none","rounded-lg","p-2","text-center","shadow","border-[3px]","gradient-border-blue","hover:border-black","focus:border-black"],["target","_blank",1,"flex","flex-col","items-center","justify-center","w-full",3,"click","href"],["width","66","height","65","viewBox","0 0 66 65","fill","none","xmlns","http://www.w3.org/2000/svg",1,"h-16","w-16","flex-shrink-0","mb-1"],["cx","33","cy","32.5","r","32.5","fill","white"],["d","M31.979 13.5384L48.1621 21.6169L47.6587 22.2047H16.5662L16.0555 21.6085L31.979 13.5384ZM31.9749 12L13.873 21.1739L15.9346 23.5784H48.2913L50.3519 21.1739L31.9749 12Z","fill","#1D1D1B"],["d","M22.8093 21.2604L22.1881 20.0348L31.9978 15.0632L41.7105 19.9118L41.0966 21.1406L32.003 16.6016L22.8093 21.2604Z","fill","url(#paint0_linear_3137_2813)"],["d","M15.6745 29.1065H19.2773V27.7316H16.7952V22.6124H15.6745V29.1065Z","fill","url(#paint1_linear_3137_2813)"],["d","M48.2933 29.0126H43.8773V27.6379H46.9197V22.5194H48.2933V29.0126Z","fill","url(#paint2_linear_3137_2813)"],["d","M24.3446 42.2118H22.9793V26.7896H20.555V42.2118H19.1886V25.4159H24.3446V42.2118Z","fill","url(#paint3_linear_3137_2813)"],["d","M31.2902 42.2117H29.9238V26.7895H27.5006V42.2117H26.1342V25.4158H31.2902V42.2117Z","fill","url(#paint4_linear_3137_2813)"],["d","M38.2348 42.2117H36.8694V26.7895H34.4451V42.2117H33.0787V25.4158H38.2348V42.2117Z","fill","url(#paint5_linear_3137_2813)"],["d","M45.1803 42.2117H43.8139V26.7895H41.3907V42.2117H40.0243V25.4158H45.1803V42.2117Z","fill","url(#paint6_linear_3137_2813)"],["d","M47.3761 44.4191H16.86V45.7865H47.3761V44.4191Z","fill","url(#paint7_linear_3137_2813)"],["d","M43.3958 47.1468H16.3359L18.5944 43.0601H45.0259V41.6927H17.8159L13.9345 48.5142H45.7722","fill","#1D1D1B"],["d","M20.8914 47.1466H47.9504L45.6918 43.0599H34.5939V41.6925H46.4704L50.3517 48.514H18.514","fill","#1D1D1B"],["id","paint0_linear_3137_2813","x1","31.9491","y1","15.1804","x2","31.9491","y2","20.6804","gradientUnits","userSpaceOnUse"],["offset","1","stop-opacity","0"],["id","paint1_linear_3137_2813","x1","17.409","y1","28.2716","x2","15.1966","y2","25.0286","gradientUnits","userSpaceOnUse"],["offset","0.1839"],["id","paint2_linear_3137_2813","x1","46.1673","y1","28.1778","x2","48.1864","y2","24.5497","gradientUnits","userSpaceOnUse"],["id","paint3_linear_3137_2813","x1","19.2458","y1","29.5431","x2","29.2199","y2","46.4394","gradientUnits","userSpaceOnUse"],["offset","6.35783e-07","stop-color","#B175E1"],["offset","1","stop-color","#3
6019AF0"],["id","paint4_linear_3137_2813","x1","24.3874","y1","26.4877","x2","34.3615","y2","43.3841","gradientUnits","userSpaceOnUse"],["id","paint5_linear_3137_2813","x1","29.5289","y1","23.4325","x2","39.503","y2","40.3289","gradientUnits","userSpaceOnUse"],["id","paint6_linear_3137_2813","x1","34.6704","y1","20.3773","x2","44.6445","y2","37.2737","gradientUnits","userSpaceOnUse"],["id","paint7_linear_3137_2813","x1","33.838","y1","45.1031","x2","48.3864","y2","45.1031","gradientUnits","userSpaceOnUse"],["offset","0.9365","stop-opacity","0"],[1,"break-words-deprecated"],[1,"font-bold","text-center"],[1,"text-center"],[1,"relative","flex","justify-center",3,"ngClass"],[1,"t-source","h-full","w-full","bg-cdra-blue-light-100","shadow","rounded-lg","flex-col","inline-flex","p-2","text-start","ring-cdra-blue-light-main","focus:ring-2","hover:ring-2","scroll-mt-10",3,"click"],[1,"flex-col","justify-center","flex","min-h-8","mb-1","w-full","overflow-hidden","text-ellipsis"],[1,"justify-start","gap-1","inline-flex","items-center"],[1,"rounded-full","bg-gradient-to-l","from-cdra-blue-light-main","from-20%","to-cdra-green-main","size-5","inline-flex","justify-center","items-center","flex-shrink-0"],[1,"text-white","text-center","text-sm","font-bold"],[1,"text-cdra-blue-light-main","text-xs","font-bold","uppercase"],[1,"flex","flex-col","gap-2","flex-grow","justify-between"],[1,"t-source-title","text-black","font-sourcesans","leading-[1.1rem]","line-clamp-5","break-words-deprecated"],[1,"t-source-publication","text-neutral-700","leading-none","text-sm","line-clamp-2"],[1,"absolute","bottom-[-13px]","h-[14px]","w-[28px]","fill-cdra-blue-light-100","stroke-cdra-blue-light-main","stroke-[1]"],["tabindex","-1",1,"t-source-selected","gap-x-0","lg:order-7","lg:col-span-6","md:col-span-3","p-4","shadow","bg-cdra-blue-light-100","rounded-lg","border","border-cdra-blue-light-main",3,"ngClass"],["points","14,2 28,15 0,15"],[3,"type","feedback","currentReaction","answer","sourceId"],[1,"t-source-selected-close","float-end","ms-4",3,"click"],["aria-hidden","true","width","24","height","25","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_2589_1608)"],["d","M19 6.84533L17.59 5.43533L12 11.0253L6.41 5.43533L5 6.84533L10.59 12.4353L5 18.0253L6.41 19.4353L12 13.8453L17.59 19.4353L19 18.0253L13.41 12.4353L19 6.84533Z","fill","#828282"],["id","clip0_2589_1608"],["width","24","height","24","fill","white","transform","translate(0 0.435333)"],[1,"t-source-selected-title","text-xl","font-bold","head"],[1,"t-score","text-sm"],[1,"t-source-selected-author","text-base","my-2"],[1,"t-source-selected-abstract","text-base","my-2"],["tabindex","-1",1,"line-clamp-5",3,"ngClass"],["aria-expanded","false",1,"t-source-selected-read-more","font-bold","text-cdra-blue-light-main","underline"],[1,"flex","flex-col","md:flex-row","gap-2","items-center"],["target","_blank",1,"t-source-selected-downloadpdf","inline-flex","justify-center","focus:outline","focus:outline-[3px]","focus:outline-cdra-blue-light-main","p-2","rounded-md","border","border-blue-cdra-light-main","bg-cdra-blue-light-main","text-white",3,"href"],["target","_blank",1,"t-source-selected-fulltext","inline-flex","justify-center","focus:outline","focus:outline-[3px]","focus:outline-cdra-blue-light-main","p-2","rounded-md","border","border-blue-cdra-light-main","bg-cdra-blue-light-main","text-white",3,"href"],["target","_blank",1,"t-source-selected-view-all","inline-flex","justify-center","focus:outline","focus:outline-[3px]","focus:outline-cdra-blue-light-main","p-2","rounded-md","border","border-cdra-blue-light-main",3,"href"],[1,"t-source-selected-view-all","inline-flex","justify-center","focus:outline","focus:outline-[3px]","focus:outline-cdra-blue-light-main","p-2","rounded-md","border","border-cdra-blue-light-main"],[1,"self-center","lg:self-auto","lg:ms-auto","inline-flex","items-center","gap-2","text-stone-500","hover:text-black","focus:text-black","me-4"],["role","group"],[1,"t-source-selected-rating-thumbsup",3,"click"],["aria-hidden","true","height","24","width","24","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg","fill","#000000",1,"stroke-cdra-blue-light-700","hover:stroke-cdra-blue-light-900",3,"ngClass"],["d","M6.956 1.745C7.021.81 7.908.087 8.864.325l.261.066c.463.116.874.456 1.012.965.22.816.533 2.511.062 4.51a9.84 9.84 0 0 1 .443-.051c.713-.065 1.669-.072 2.516.21.518.173.994.681 1.2 1.273.184.532.16 1.162-.234 1.733.058.119.103.242.138.363.077.27.113.567.113.856 0 .289-.036.586-.113.856-.039.135-.09.273-.16.404.169.387.107.819-.003 1.148a3.163 3.163 0 0 1-.488.901c.054.152.076.312.076.465 0 .305-.089.625-.253.912C13.1 15.522 12.437 16 11.5 16H8c-.605 0-1.07-.081-1.466-.218a4.82 4.82 0 0 1-.97-.484l-.048-.03c-.504-.307-.999-.609-2.068-.722C2.682 14.464 2
6013.846 2 13V9c0-.85.685-1.432 1.357-1.615.849-.232 1.574-.787 2.132-1.41.56-.627.914-1.28 1.039-1.639.199-.575.356-1.539.428-2.59z"],[1,"t-source-selected-rating-thumbsdown",3,"click"],["aria-hidden","true","height","24","width","24","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg","fill","#000000",1,"-scale-y-100","stroke-cdra-blue-light-700","hover:stroke-cdra-blue-light-900",3,"ngClass"],["aria-expanded","false",1,"t-source-selected-read-more","font-bold","text-cdra-blue-light-main","underline",3,"click"],["target","_blank",1,"t-source-selected-downloadpdf","inline-flex","justify-center","focus:outline","focus:outline-[3px]","focus:outline-cdra-blue-light-main","p-2","rounded-md","border","border-blue-cdra-light-main","bg-cdra-blue-light-main","text-white",3,"click","href"],["width","20","height","21","viewBox","0 0 20 21","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.377 11.6758L10.3828 11.6484C10.4961 11.1816 10.6387 10.5996 10.5273 10.0723C10.4531 9.65625 10.1465 9.49414 9.88477 9.48242C9.57617 9.46875 9.30078 9.64453 9.23242 9.90039C9.10352 10.3691 9.21875 11.0098 9.42969 11.8262C9.16406 12.459 8.74023 13.3789 8.42969 13.9258C7.85156 14.2246 7.07617 14.6855 6.96094
6015.2676C6.9375 15.375 6.96484 15.5117 7.0293 15.6348C7.10156 15.7715 7.2168 15.877 7.35156 15.9277C7.41016 15.9492 7.48047 15.9668 7.5625 15.9668C7.90625 15.9668 8.46289 15.6895 9.20508 14.416C9.31836 14.3789 9.43555 14.3398 9.54883 14.3008C10.0801 14.1211 10.6309 13.9336 11.1289 13.8496C11.6797 14.1445 12.3066 14.334 12.7324 14.334C13.1543 14.334 13.3203 14.084 13.3828 13.9336C13.4922 13.6699 13.4395 13.3379 13.2617 13.1602C13.0039 12.9062 12.377 12.8398 11.4004 12.9609C10.9199 12.668 10.6055 12.2695 10.377 11.6758ZM8.23438 14.6426C7.96289 15.0371 7.75781 15.2344 7.64648 15.3203C7.77734 15.0801 8.0332 14.8262 8.23438 14.6426ZM9.94531 10.043C10.0469 10.2168 10.0332 10.7422 9.95508 11.0078C9.85938 10.6191 9.8457 10.0684 9.90234 10.0039C9.91797 10.0059 9.93164 10.0176 9.94531 10.043ZM9.91406 12.3965C10.123 12.7578 10.3867 13.0684 10.6777 13.2988C10.2559 13.3945 9.87109 13.5527 9.52734 13.6934C9.44531 13.7266 9.36523 13.7598 9.28711 13.791C9.54688 13.3203 9.76367 12.7871 9.91406 12.3965ZM12.9531 13.6758C12.9551 13.6797 12.957 13.6855 12.9453 13.6934H12.9414L12.9375 13.6992C12.9219 13.709 12.7617 13.8027 12.0723 13.5312C12.8652 13.4941 12.9512 13.6738 12.9531 13.6758ZM16.6914 6.09375L12.4883 1.89063C12.3711 1.77344 12.2129 1.70703 12.0469 1.70703H3.75C3.4043 1.70703 3.125 1.98633 3.125 2.33203V18.582C3.125 18.9277 3.4043 19.207 3.75 19.207H16.25C16.5957 19.207 16.875 18.9277 16.875 18.582V6.53711C16.875 6.37109 16.8086 6.21094 16.6914 6.09375ZM15.4336 6.82422H11.7578V3.14844L15.4336 6.82422ZM15.4688 17.8008H4.53125V3.11328H10.4297V7.33203C10.4297 7.54959 10.5161 7.75824 10.67 7.91208C10.8238 8.06592 11.0324 8.15234 11.25 8.15234H15.4688V17.8008Z","fill","white"],[1,"ms-1"],["target","_blank",1,"t-source-selected-fulltext","inline-flex","justify-center","focus:outline","focus:outline-[3px]","focus:outline-cdra-blue-light-main","p-2","rounded-md","border","border-blue-cdra-light-main","bg-cdra-blue-light-main","text-white",3,"click","href"],["d","M10.654 15.1074C10.7414 15.1945 10.8107 15.298 10.8581 15.412C10.9054 15.5259
6010.9297 15.6481 10.9297 15.7715C10.9297 15.8949 10.9054 16.017 10.8581 16.131C10.8107 16.245 10.7414 16.3484 10.654 16.4355L10.1899 16.8996C9.31057 17.779 8.11791 18.273 6.8743 18.273C5.6307 18.273 4.43804 17.779 3.55868 16.8996C2.67932 16.0202 2.1853 14.8276 2.1853 13.584C2.1853 12.3404 2.67932 11.1477 3.55868 10.2684L5.44305 8.38476C6.28796 7.53776 7.42476 7.04588 8.62057 7.00986C9.81639 6.97383 10.9807 7.39641 11.8751 8.19101C11.9674 8.27309 12.0427 8.37255 12.0966 8.48371C12.1505 8.59488 12.182 8.71557 12.1892 8.8389C12.1965 8.96222 12.1794 9.08577 12.1389 9.20249C12.0984 9.3192 12.0353 9.4268 11.9532 9.51914C11.8711 9.61147 11.7717 9.68674 11.6605 9.74064C11.5493 9.79454 11.4287 9.82601 11.3053 9.83326C11.182 9.84052 11.0585 9.82341 10.9417 9.78292C10.825 9.74242 10.7174 9.67934 10.6251 9.59726C10.0888 9.12096 9.39074 8.86756 8.67377 8.88891C7.9568 8.91026 7.27508 9.20473 6.76805 9.71211L4.88524 11.5934C4.35771 12.1209 4.06135 12.8364 4.06135 13.5824C4.06135 14.3285 4.35771 15.0439 4.88524 15.5715C5.41277 16.099 6.12826 16.3954 6.8743 16.3954C7.62035 16.3954 8.33583 16.099 8.86337 15.5715L9.32743 15.1074C9.4145 15.0203 9.51789 14.9511 9.6317 14.9039C9.74551 14.8567 9.86751 14.8325 9.99071 14.8325C10.1139 14.8325 10.2359 14.8567 10.3497 14.9039C10.4635 14.9511 10.5669 15.0203 10.654 15.1074ZM16.4415 4.01367C15.5614 3.13566 14.369 2.64258 13.1259 2.64258C11.8827 2.64258 10.6903 3.13566 9.81024 4.01367L9.34618 4.47773C9.17006 4.65385 9.07112 4.89272 9.07112 5.14179C9.07112 5.39087 9.17006 5.62974 9.34618 5.80586C9.5223 5.98198 9.76117 6.08092 10.0102 6.08092C10.2593 6.08092 10.4982 5.98198 10.6743 5.80586L11.1384 5.34179C11.
606659 4.81426 12.3814 4.5179 13.1274 4.5179C13.8735 4.5179 14.589 4.81426 15.1165 5.34179C15.644 5.86933 15.9404 6.58481 15.9404 7.33086C15.9404 8.0769 15.644 8.79239 15.1165 9.31992L13.2329 11.2043C12.7254 11.7115 12.0433 12.0055 11.3262 12.0263C10.609 12.047 9.91105 11.793 9.37509 11.316C9.28275 11.2339 9.17515 11.1709 9.05844 11.1304C8.94172 11.0899 8.81817 11.0728 8.69484 11.08C8.57152 11.0873 8.45082 11.1187 8.33966 11.1726C8.2285 11.2265 8.12904 11.3018 8.04696 11.3941C7.96488 11.4865 7.9018 11.5941 7.86131 11.7108C7.82081 11.8275 7.80371 11.9511 7.81096 12.0744C7.81821 12.1977 7.84969 12.3184 7.90359 12.4296C7.95748 12.5407 8.03275 12.6402 8.12509 12.7223C9.01882 13.5167 10.1824 13.9395 11.3776 13.9042C12.5729 13.8689 13.7095 13.3782 14.5548 12.5324L16.4391 10.6488C17.3182 9.76896 17.8121 8.57624 17.8126 7.33251C17.813 6.08879 17.3199 4.89571 16.4415 4.01523V4.01367Z","fill","white"],["target","_blank",1,"t-source-selected-view-all","inline-flex","justify-center","focus:outline","focus:outline-[3px]","focus:outline-cdra-blue-light-main","p-2","rounded-md","border","border-cdra-blue-light-main",3,"click","href"],[1,"t-source-selected-view-all","inline-flex","justify-center","focus:outline","focus:outline-[3px]","focus:outline-cdra-blue-light-main","p-2","rounded-md","border","border-cdra-blue-light-main",3,"click"]],template:function(r,o){r&1&&I(0,t5,7,1,"div",5)(1,d5,49,5,"ul",6)},dependencies:[ve,mt,ld,mE,ye,ee],data:{animation:[Ui("fadeIn",[wi("* => *",[Ab(":enter",[Mt({opacity:0}
60),Nb(100,[yi("0.8s",Mt({opacity:1}))])],{optional:!0})])])]}});let t=e;return t})()});function f5(t,e){if(t&1&&(h(0,"div",8),ce(),h(1,"svg",22),x(2,"path",23),p(),Me(),h(3,"a",24),C(4),p()()),t&2){let i=m(2).$implicit,n=m();f(3),E("href",n.showCiteLink(),Fi),f(),N(i("action.customlink"))}}function p5(t,e){if(t&1){let i=U();x(0,"app-rating-dialog",7,0),I(2,f5,5,2,"div",8),h(3,"div",9)(4,"div",10)(5,"button",11),A("click",function(){F(i);let r=m(2);return P(r.rateThisAnswer("thumbs_up"))}),ce(),h(6,"svg",12),x(7,"path",13),p()(),Me(),h(8,"button",14),A("click",function(){F(i);let r=m(2);return P(r.rateThisAnswer("thumbs_down"))}),ce(),h(9,"svg",15),x(10,"path",13),p()()()(),Me(),h(11,"button",16,1),A("click",function(){F(i);let r=sb(12),o=m(2);return P(o.copyText(r))}),ce(),h(13,"svg",17)(14,"g",18),x(15,"path",19),p(),h(16,"defs")(17,"clipPath",20),x(18,"rect",21),p()()(),Me(),h(19,"span"),C(20),p()()}if(t&2){let i=m().$implicit,n=m();E("type","answer")("feedback",n.qanda.answer==null?null:n.qanda.answer.feedback)("currentReaction",n.currentReaction)("answer",n.qanda.answer),f(2),j(2,n.showCiteLink()?2:-1),f(2),V("aria-label",i("action.rate.answer")),f(),V("aria-label",i("rating.answer.thumbsup")),f(),E("ngClass",Tt(11,wE,(n.qanda.answer==null||n.qanda.answer.feedback==null?null:n.qanda.answer.feedback.reaction)==="thumbs_up",(n.qanda.answer==null||n.qanda.answer.feedback==null?null:n.qanda.answer.feedback.reaction)!=="thumbs_up")),f(2),V("aria-label",i("rating.answer.thumbsdown")),f(),E("ngClass",Tt(14,wE,(n.qanda.answer==null||n.qanda.answer.feedback==null?null:n.qanda.answer.feedback.reaction)==="thumbs_down",(n.qanda.answer==null||n.qanda.answer.feedback==null?null:n.qanda.answer.feedback.reaction)!=="thumbs_down")),f(11),N(i("action.copytext"))}}function m5(t,e){if(t&1){let i=U();h(0,"div",3),I(1,p5,21,17),h(2,"button",4),A("click",function(){F(i);let r=m();return P(r.regenerateAnswer())}),ce(),h(3,"svg",5),x(4,"path",6),p(),Me(),h(5,"span"),C(6),p()()()}if(t&2){let i=e.$implicit,n=m();f(),j(1,n.qanda.error?-1:1),f(5),N(i("action.tryagain"))}}var h5,wE,cd,h0=y(()=>{"use strict";xa();he();u0();te();L();xa();$t();te();gt();ln();he();h5=["ratingdialog"],wE=(t,e)=>({"fill-cdra-blue-light-300 stroke-cdra-blue-light-700":t,"fill-white":e});cd=(()=>{let e=class e{constructor(n,r,o,s,a){this.clipboard=n,this.research=r,this.translocoService=o,this.config=s,this.stats=a}rateThisAnswer(n){this.qanda.regenerating||this.qanda.answer?.feedback&&(this.qanda.answer?.feedback?.reaction===n?(this.stats.sendEvent({category:"feedback-remove",action:n,label:"answerId",value:this.qanda.answer.id,question:this.qanda.question}),this.research.removeFeedback(this.qanda.answer.feedback),this.currentReaction=void 0):(this.currentReaction=this.qanda.answer.feedback.reaction,this.qanda.answer.feedback.reaction=n),this.qanda.answer.feedback=_({},this.qanda.answer.feedback))}showCiteLink(){let n=this.translocoService.translate("action.customlinkuri"),r=this.config.currentConfig.howToCiteLink;return r||(n==="action.customlinkuri"||n==="-"||n?.toLocaleUpperCase()==="NOT_DEFINED"?"":this.translocoService.translate("action.customlinkuri"))}copyText(n){let r=this.translocoService.translate("sources.selectedsource.abstract"),o=new URL(window.location.href),s="";for(let[l,c]of(this.qanda?.answer?.results??[]).entries()){let u="";c.authors&&(u=c.authors.join(", ")),c.year&&(u+=`. ${c.year}.`);let d="";c.description&&(d=`\r 61${r} ${c.description}`),c.deepLink&&(d+=`\r 62${o.origin+c.deepLink}`),s+=`${l+1}. ${c.title}\r 63${u}${d}\r 64\r 65`}let a=`${this.qanda.question}\r 66\r 67${this.qanda.answer?.answer}\r 68\r 69${s}`;this.config.debug&&(a+=`\r 70\r 71QANDA ID: ${this.qanda?.answer?.id}`),this.stats.sendEvent({category:"answer",action:"copy",label:"answerId",value:this.qanda.answer?.id,question:this.qanda.question}),this.clipboard.copy(a),n.focus()}regenerateAnswer(){return dt(this,null,function*(){this.qanda.regenerating||(this.stats.sendEvent({category:"answer",action:"regenerate",label:"answerId",value:this.qanda.answer?.id,question:this.qanda.question}),this.research.setAnswer(this.qanda.question,!0))})}};e.\u0275fac=function(r){return new(r||e)(b(qo),b(Ne),b(Ye),b(we),b(Ue))},e.\u0275cmp=B({type:e,selectors:[["app-action-bar"]],viewQuery:function(r,o){if(r&1&&et(h5,5),r&2){let s;Ze(s=Ke())&&(o.ratingDialog=s.first)}},inputs:{qanda:"qanda"},standalone:!0,features:[H],decls:1,vars:0,consts:[["ratingdialog",""],["copyButton",""],["class","t-action-bar inline-flex gap-2","role","menubar",4,"transloco"],["role","menubar",1,"t-action-bar","inline-flex","gap-2"],["role","menuitem",1,"t-regenerate","inline-flex","items-center","gap-1","text-stone-500","hover:text-black","focus:text-black",3,"click"],["width","22","height","22","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"rtl:[transform:rotateY(180deg)]"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.7071 1.29289C14.0976 1.68342 14.0976 2.31658 13.7071 2.70711L12.4053 4.00896C17.1877 4.22089 21 8.16524 21 13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13C3 12.4477 3.44772 12 4 12C4.55228 12 5 12.4477 5 13C5 16.866 8.13401 20 12 20C15.866 20 19 16.866 19 13C19 9.2774 16.0942 6.23349 12.427 6.01281L13.7071 7.29289C14.0976 7.68342 14.0976 8.31658 13.7071 8.70711C13.3166 9.09763 12.6834 9.09763 12.2929 8.70711L9.29289 5.70711C9.10536 5.51957 9 5.26522 9 5C9 4.73478 9.10536 4.48043 9.29289 4.29289L12.2929 1.29289C12.6834 0.902369 13.3166 0.902369 13.7071 1.29289Z","fill","currentColor"],[3,"type","feedback","currentReaction","answer"],[1,"t-howto-cite","inline-flex","items-center","gap-1","me-2"],[1,"inline-flex","items-center","gap-2","text-stone-500","hover:text-black","focus:text-black","me-1"],["role","group",1,"inline-flex"],["role","menuitem",1,"t-rating-thumbsup","me-1",3,"click"],["aria-hidden","true","height","24","width","24","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg","fill","#000000",1,"stroke-stone-500","hover:stroke-stone-700",3,"ngClass"],["d","M6.956 1.745C7.021.81 7.908.087 8.864.325l.261.066c.463.116.874.456 1.012.965.22.816.533 2.511.062 4.51a9.84 9.84 0 0 1 .443-.051c.713-.065 1.669-.072 2.516.21.518.173.994.681 1.2 1.273.184.532.16 1.162-.234 1.733.058.119.103.242.138.363.077.27.113.567.113.856 0 .289-.036.586-.113.856-.039.135-.09.273-.16.404.169.387.107.819-.003 1.148a3.163 3.163 0 0 1-.488.901c.054.152.076.312.076.465 0 .305-.089.625-.253.912C13.1 15.522 12.437 16 11.5 16H8c-.605 0-1.07-.081-1.466-.218a4.82 4.82 0 0 1-.97-.484l-.048-.03c-.504-.307-.999-.609-2.068-.722C2.682 14.464 2
7113.846 2 13V9c0-.85.685-1.432 1.357-1.615.849-.232 1.574-.787 2.132-1.41.56-.627.914-1.28 1.039-1.639.199-.575.356-1.539.428-2.59z"],["role","menuitem",1,"t-rating-thumbsdown",3,"click"],["aria-hidden","true","height","24","width","24","viewBox","0 0 18 18","xmlns","http://www.w3.org/2000/svg","fill","#000000",1,"-scale-y-100","stroke-stone-500","hover:stroke-stone-700",3,"ngClass"],["role","menuitem",1,"t-copy","inline-flex","items-center","gap-1","text-stone-500","hover:text-black","focus:text-black",3,"click"],["aria-hidden","true","width","22","height","22","viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_787_3972)"],["d","M13.4556 21.9461H5.62158C3.81225 21.9461 2.34033 20.4741 2.34033 18.6648V7.54958C2.34033 5.74024 3.81225 4.26833 5.62158 4.26833H13.4556C15.2649 4.26833 16.7368 5.74024 16.7368 7.54958V18.6648C16.7368 20.4741 15.2649 21.9461 13.4556 21.9461ZM5.62158 5.90895C4.717 5.90895 3.98096 6.64499 3.98096 7.54958V18.6648C3.98096 19.5694 4.717 20.3054 5.62158 20.3054H13.4556C14.3602 20.3054 15.0962 19.5694 15.0962 18.6648V7.54958C15.0962 6.64499 14.3602 5.90895 13.4556 5.90895H5.62158ZM20.0181 16.614V4.22731C20.0181 2.41798 18.5462 0.94606 16.7368 0.94606H7.63135C7.17825 0.94606 6.81104 1.31328 6.81104 1.76637C6.81104 2.21947 7.17825 2.58669 7.63135 2.58669H16.7368C17.6414 2.58669 18.3774 3.32272 18.3774 4.22731V16.614C18.3774 17.0671 18.7447 17.4343 19.1978 17.4343C19.6508 17.4343 20.0181 17.0671 20.0181 16.614Z","fill","currentColor"],["id","clip0_787_3972"],["width","21","height","21","fill","white","transform","translate(0.699707 0.94606)"],["viewBox","0 0 15 14","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4"],["d","M7.96875 0C4.10475 0 0.96875 3.136 0.96875 7C0.96875 10.864 4.10475 14 7.96875 14C11.8327 14 14.9688 10.864 14.9688 7C14.9688 3.136 11.8327 0 7.96875 0ZM8.66875 11.9H7.26875V10.5H8.66875V11.9ZM10.1177 6.475L9.48775 7.119C8.98375 7.63 8.66875 8.05 8.66875 9.1H7.26875V8.75C7.26875 7.98 7.58375 7.28 8.08775 6.769L8.95575 5.887C9.21475 5.635 9.36875 5.285 9.36875 4.9C9.36875 4.13 8.73875 3.5 7.96875 3.5C7.19875 3.5 6.56875 4.13 6.56875 4.9H5.16875C5.16875 3.353 6.42175 2.1 7.96875 2.1C9.51575 2.1 10.7688 3.353 10.7688 4.9C10.7688 5.516 10.5167 6.076 10.1177 6.475Z","fill","#2871A4"],["target","_blank",1,"underline","text-cdra-blue-dark-600",3,"href"]],template:function(r,o){r&1&&I(0,m5,7,2,"div",2)},dependencies:[ve,mt,f_,ld,ye,ee]});let t=e;return t})()});function v5(t,e){if(t&1&&(h(0,"div",1),x(1,"span",2),p()),t&2){let i=e.$implicit,n=m();V("aria-label",n.showAria?i("app.loader"):null),f(),qs(Tt(3,g5,n.height,n.height))}}var g5,ud,f0=y(()=>{"use strict";te();L();g5=(t,e)=>({height:t,width:e});ud=(()=>{let e=class e{constructor(){this.showAria=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-loader"]],inputs:{loading:"loading",message:"message",height:"height",showAria:"showAria"},standalone:!0,features:[H],decls:1,vars:0,consts:[["class","me-2",4,"transloco"],[1,"me-2"],[1,"loader"]],template:function(r,o){r&1&&I(0,v5,2,6,"div",0)},dependencies:[ee]});let t=e;return t})()});function y5(t,e){t&1&&x(0,"app-loader",2),t&2&&E("showAria",!1)}function w5(t,e){if(t&1&&(h(0,"div",0),I(1,y5,1,1,"app-loader",2),h(2,"p",3),C(3),p()()),t&2){let i=e.$implicit,n=m(2);E("@fadeIn",void 0)("ngClass","t-status-message-"+n.status),f(),j(1,n.shouldShowLoader?1:-1),f(2),N(i(n.status.text))}}function b5(t,e){t&1&&I(0,w5,4,4,"div",1)}function C5(t,e){if(t&1&&(h(0,"p",6),C(1),p(),h(2,"h3",7),C(3),p(),h(4,"ul",8)(5,"li"),C(6),p(),h(7,"li"),C(8),p(),h(9,"li"),C(10),p()()),t&2){let i=m().$implicit,n=m(2);f(),N(i(n.status.text)),f(2),N(i("status.suggestions.title")),f(3),N(i("status.noresults.suggestion.tryrephrasing")),f(2),N(i("status.noresults.suggestion.checkspelling")),f(2),N(i("status.noresults.suggestion.askdifferent"))}}function _5(t,e){if(t&1&&(h(0,"p",9),C(1),p(),h(2,"h3",7),C(3),p(),h(4,"ul",8)(5,"li"),C(6),p(),h(7,"li"),C(8),p()()),t&2){let i=m().$implicit,n=m(2);f(),N(i(n.status.text)),f(2),N(i("status.suggestions.title")),f(3),N(i("status.unsupported.suggestion.askdifferent")),f(2),N(i("status.unsupported.suggestion.rephrase"))}}function D5(t,e){if(t&1&&(h(0,"p",10),C(1),p()),t&2){let i=m().$implicit,n=m(2);f(),N(i(n.status.text))}}function E5(t,e){if(t&1&&(h(0,"p",11),C(1),p(),h(2,"h3",7),C(3),p(),h(4,"ul",8)(5,"li"),C(6),p(),h(7,"li"),C(8),p()(),h(9,"div",12),x(10,"app-action-bar",13),p()),t&2){let i=m().$implicit,n=m(2);f(),N(i(n.status.text)),f(2),N(i("status.suggestions.title")),f(3),N(i("status.error.suggestion.retry")),f(2),N(i("status.error.suggestion.contactlibrarian")),f(2),E("qanda",n.qanda)}}function x5(t,e){if(t&1&&(h(0,"div",5),I(1,C5,11,5)(2,_5,9,4)(3,D5,2,1)(4,E5,11,5),p()),t&2){let i=m(2);E("@fadeIn",void 0)("ngClass","t-status-message-"+i.status),f(),j(1,i.status.type==="noresults"?1:i.status.type==="unsupported"?2:i.status.type==="quotalimit"?3:4)}}function S5(t,e){t&1&&I(0,x5,5,3,"div",4)}var bE,CE=y(()=>{"use strict";h0();To();he();te();f0();L();he();te();bE=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-status-message"]],inputs:{qanda:"qanda",status:"status",shouldShowLoader:"shouldShowLoader"},standalone:!0,features:[H],decls:2,vars:1,consts:[["role","alert",1,"t-status-message","flex","items-center","w-full","text-black","transition-opacity","ease-in","duration-700","opacity-100",3,"ngClass"],["class","t-status-message flex items-center w-full text-black transition-opacity ease-in duration-700 opacity-100","role","alert",3,"ngClass",4,"transloco"],["height","16px",3,"showAria"],[1,"t-status-message-text","inline","text-base"],["class","w-full my-2 p-4 bg-cdra-blue-dark-100 border border-cdra-blue-light-300 rounded-md","role","alert",3,"ngClass",4,"transloco"],["role","alert",1,"w-full","my-2","p-4","bg-cdra-blue-dark-100","border","border-cdra-blue-light-300","rounded-md",3,"ngClass"],[1,"t-status-noresults-text"],[1,"font-bold","my-2"],[1,"list-disc","list-inside"],[1,"t-status-unsupported-text"],[1,"t-status-quotalimit-text","inline","text-lg"],[1,"t-message-error-text"],[1,"self-end","mt-4"],[3,"qanda"]
71],template:function(r,o){r&1&&I(0,b5,1,0,"div",0)(1,S5,1,0),r&2&&j(0,o.status.error?1:0)},dependencies:[ve,mt,ud,cd,ye,ee],data:{animation:[Ui("fadeIn",[wi(":enter",[Mt({opacity:.2}),yi("200ms ease-in",Mt({opacity:1}))])])]}});let t=e;return t})()});function T5(t,e){if(t&1&&C(0),t&2){let i=m().$implicit;ie(" ",i," ")}}function M5(t,e){if(t&1){let i=U();h(0,"button",4),A("click",function(){let r=F(i).$implicit,o=m(6);return P(o.parent.selectSource(r))}),h(1,"span",5),C(2),p()()}if(t&2){let i=e.$implicit,n=m(3).$implicit,r=m(3);E("ngClass",Tt(5,I5,r.parent.selectedSourceIndex===i,r.parent.selectedSourceIndex!==i)),V("aria-label",n("answer.sourcetitledefault",Ae(8,_E,i)))("title",n("answer.sourcetitledefault",Ae(10,_E,i)))("aria-describedby","source_title_"+i),f(2),ie(" ",i," ")}}function A5(t,e){if(t&1&&Oe(0,M5,3,12,"button",3,pt),t&2){let i=m().$implicit,n=m(4);Fe(n.getAnnotations(i))}}function N5(t,e){if(t&1&&I(0,T5,1,1)(1,A5,2,0),t&2){let i=e.$implicit,n=m(4);j(0,n.isString(i)?0:1)}}function R5(t,e){if(t&1&&(h(0,"p",1),Oe(1,N5,2,1,null,null,pt),p()),t&2){let i=m().$implicit,n=m(2);V("lang",n.language),f(),Fe(i)}}function k5(t,e){t&1&&I(0,R5,3,1,"p",2)}function O5(t,e){if(t&1&&(Li(0),Oe(1,k5,1,0,"p",1,pt),Vi()),t&2){let i=e.ngIf;f(),Fe(i)}}var I5,_E,DE,EE=y(()=>{"use strict";te();he();rt();L();gt();he();te();I5=(t,e)=>({"bg-gradient-to-l from-cdra-blue-light-main from-20% to-cdra-green-main ":t,"bg-stone-500":e}),_E=t=>({index:t});DE=(()=>{let e=class e{constructor(n,r){this.cdr=n,this.config=r,this.language="en"}ngOnInit(){this.parent.scrolltoRelevantElement(),this.buildAnswer()}isString(n){return typeof n=="string"}getAnnotations(n){return n}buildAnswer(){let n,r=this.config.currentConfig.streamAnswer;this.parent.qanda.answer?.answer$?n=this.parent.qanda.answer?.answer$:(n=G(this.parent.qanda.answer?.answer??""),r=!1),n&&(this.answer$=n.pipe(hn(o=>{let s=o.split(/(\s|\n)/);return De(s).pipe(hn(a=>{let l=this.extractAnnotations(a);return l.length>0?Vn(G(a.split("[")[0]).pipe(r?Ei(10):at),G(a.slice(a.lastIndexOf("]")+1)||""),G(l)):G(a).pipe(r?Ei(10):at)}))}),oo((o,s)=>{o.length===0&&o.push([]);let a=o[o.length-1];return typeof s=="string"?s===` 72`?(a.push(s),o.push([])):typeof a.at(-1)=="string"?a[a.length-1]+=" "+s:a.push(s):a.push(s),o},[[]])).pipe(ze(()=>this.cdr.detectChanges())))}ngOnDestroy(){this.parent.qanda.answer?.answer$?.unsubscribe()}ngOnChanges(n){this.parent.scrolltoRelevantElement()}extractAnnotations(n){let r=[],o;for(;o=this.parent.regex.exec(n);)r=r.concat(o[1].split(/, ?/g).map(s=>parseInt(s)));return r}};e.\u0275fac=function(r){return new(r||e)(b(Dt),b(we))},e.\u0275cmp=B({type:e,selectors:[["app-answer"]],inputs:{answer:"answer",parent:"parent",language:"language"},standalone:!0,features:[ot,H],decls:2,vars:3,consts:[[4,"ngIf"],["aria-live","polite",1,"t-summary","mb-2"],["class","t-summary mb-2","aria-live","polite",4,"transloco"],[1,"t-source-annotation","rounded-full","size-4","me-1","inline-flex","justify-center","items-center","flex-shrink-0","align-super","hover:bg-gradient-to-l","hover:from-cdra-blue-light-main","from-20%","hover:to-cdra-green-main",3,"ngClass"],[1,"t-source-annotation","rounded-full","size-4","me-1","inline-flex","justify-center","items-center","flex-shrink-0","align-super","hover:bg-gradient-to-l","hover:from-cdra-blue-light-main","from-20%","hover:to-cdra-green-main",3,"click","ngClass"],["aria-hidden","true",1,"text-white","text-center","text-sm","font-bold"]],template:function(r,o){r&1&&(I(0,O5,3,0,"ng-container",0),An(1,"async")),r&2&&E("ngIf",Gs(1,1,o.answer$))},dependencies:[ve,mt,Sr,Ib,ye,ee]});let t=e;return t})()});function $5(t,e){if(t&1&&(ce(),h(0,"svg",8)(1,"g",9),x(2,"path",10),p(),h(3,"defs")(4,"clipPath",11),x(5,"rect",12),p()()(),Me(),h(6,"h2",13),C(7),p()),t&2){let i=m().$implicit,n=m();V("aria-label",i("question.title")),f(6),E("id","question-"+(n.qanda.answer==null?null:n.qanda.answer.id)),f(),ie(" ",n.qanda.question," ")}}function B5(t,e){if(t&1&&(h(0,"span",4),C(1),p()),t&2){let i=m().$implicit;f(),N(i("summary.loaded"))}}function H5(t,e){if(t&1&&(h(0,"div",14,0),x(2,"app-status-message",15),p()),t&2){let i=e.$implicit,n=e.$index,r=e.$count,o=m(3);E("ngClass",Ae(4,L5,i.error)),f(2),E("qanda",o.qanda)("status",i)("shouldShowLoader",n===r-1&&!(o.qanda.answer&&o.qanda.answer.answer)&&!i.error)}}function U5(t,e){if(t&1&&Oe(0,H5,3,6,"div",14,pt),t&2){let i=m(2);Fe(i.qanda.statusMessages)}}function q5(t,e){t&1&&(ce(),h(0,"svg",17),x(1,"path",21),h(2,"defs")(3,"linearGradient",22),x(4,"stop",23)(5,"stop",24),p()()())}function z5(t,e){if(t&1){let i=U();h(0,"button",25),A("click",function(r){F(i);let o=m().$implicit,s=m(4);return P(s.readMore(r,o))}),C(1),p()}if(t&2){let i=m().$implicit,n=m(3).$implicit;V("aria-controls","source_more_"+i.type),f(),N(n("sources.selectedsource.readmore"))}}function G5(t,e){if(t&1&&(h(0,"div",16),I(1,q5,6,0,":svg:svg",17),h(2,"div",18),x(3,"p",19,1),I(5,z5,2,2,"button",20),p()()),t&2){let i=e.$implicit,n=e.$index;E("ngClass",Tt(7,V5,i.type!=="DEBUG",i.type==="DEBUG")),f(),j(1,i.type!=="DEBUG"?1:-1),f(2),E("ngClass",Ae(10,j5,i.readmore===!1))("innerHTML",i.message,Le),V("id","context_"+n)("data-id","context_"+n),f(2),j(5,i.readmore?5:-1)}}function W5(t,e){if(t&1&&Oe(0,G5,6,12,"div",16,pt),t&2){let i=m(3);Fe(i.qanda.answer.context)}}function Q5(t,e){if(t&1&&I(0,W5,2,0),t&2){let i=m(2);j(0,i.qanda.answer.context?0:-1)}}function Z5(t,e){if(t&1&&x(0,"app-sources",5),t&2){let i=m(2);E("selectedSource",i.selectedSource)("question",i.qanda.question)("answer",i.qanda.answer)}}function K5(t,e){if(t&1&&(h(0,"div",6,0)(2,"div",26),ce(),h(3,"svg",27),x(4,"path",28)(5,"path",29)(6,"path",30),p(),Me(),x(7,"h3",31),p(),h(8,"div",32),x(9,"app-answer",33),h(10,"div",34),x(11,"app-action-bar",35),p()()()),t&2){let i,n=m().$implicit,r=m();E("@fadeIn",void 0),f(7),E("innerHTML",n("answer.title"),Le),f(2),E("parent",r)("answer",r.qanda.answer.answer)("language",(i=r.qanda.answer.language)!==null&&i!==void 0?i:"en"),f(2),E("qanda",r.qanda)}}function Y5(t,e){if(t&1&&x(0,"app-more-questions",7),t&2){let i,n=m(2);E("@fadeIn",void 0)("questions",n.qanda.answer.moreQuestions)("language",(i=n.qanda.answer.language)!==null&&i!==void 0?i:"en")}}function J5(t,e){if(t&1&&(h(0,"div")(1,"div",3,0),I(3,$5,8,3),p(),I(4,B5,2,1,"span",4)(5,U5,2,0)(6,Q5,1,1)(7,Z5,1,3,"app-sources",5)(8,K5,12,6,"div",6)(9,Y5,1,3,"app-more-questions",7),p()),t&2){let i=m();f(3),j(3,i.qanda.question?3:-1),f(),j(4,i.qanda.answer&&i.qanda.answer.answer?4:5),f(2),j(6,i.qanda.answer&&i.qanda.answer.answer?6:-1),f(),j(7,i.qanda.answer&&i.qanda.answer.results&&i.qanda.answer.results.length>0?7:-1),f(),j(8,i.qanda.answer&&i.qanda.answer.answer?8:-1),f(),j(9,i.qanda.answer&&i.qanda.answer.moreQuestions&&i.qanda.answer.moreQuestions.length>0?9:-1)}}var F5,P5,L5,V5,j5,xE,SE=y(()=>{"use strict";L();pE();yE();h0();he();CE();To();te();EE();L();te();ln();gt();he();F5=["scrollToMe"],P5=["context"],L5=t=>({"t-error":t}),V5=(t,e)=>({"gradient-border-blue bg-cdra-blue-light-200":t,"border-red-500 bg-red-200":e}),j5=t=>({"line-clamp-none":t});xE=(()=>{let e=class e{get selectedSourceIndex(){return this.selectedSource().index}get isStreaming(){return this.config.currentConfig.streamAnswer??!1}constructor(n,r,o,s){this.translocoService=n,this.stats=r,this.renderer=o,this.config=s,this.regex=/\[([1-5](?:,\s*[1-5])*)\]/g,this.selectedSource=Hs({source:null,index:-1}),this.linkClickListeners=[],this.streamingCompleted=!1,this.answer=[]}getSourceTitle(n){let r=this.qanda.answer?.results?.[n-1]?.title;return r?this.translocoService.translate("answer.sourcetitle",{index:n,title:r}):this.translocoService.translate("answer.sourcetitledefault",{index:n})}scrolltoRelevantElement(){let n=this.scrollToMeEls?.last.nativeElement;(n?.classList??null)?.contains("answer")&&(n=this.scrollToMeEls.first.
72nativeElement,n?.focus()),n?.scrollIntoView({behavior:"smooth"}),n?.focus()}ngAfterViewInit(){this.scrolltoRelevantElement(),this.scrollToMeEls.changes.subscribe(()=>{this.scrolltoRelevantElement()})}ngOnChanges(n){n.qanda?.firstChange||(this.createAnswerWithAnnotations(),setTimeout(()=>{this.scrolltoRelevantElement();for(let r of this.contexts){this.markTextTruncated(r.nativeElement);let o=r.nativeElement.getElementsByTagName("a");if(o.length>0)for(let s of o){let a=this.renderer.listen(s,"click",()=>{this.stats.sendEvent({category:"context",action:"click-link",label:"link",value:s.href,question:this.qanda.question}),s.classList.contains("t-context-improved-query-search ")&&this.stats.sendEvent({category:"context",action:"related",label:"answerId",value:this.qanda.answer?.id,question:this.qanda.question})});this.linkClickListeners.push(a)}}}))}ngOnDestroy(){this.linkClickListeners.forEach(n=>n())}createAnswerWithAnnotations(){if(!this.qanda.answer?.answer)return;this.answer=[];let n,r=0;for(;n=this.regex.exec(this.qanda.answer.answer);){let o=n[1].split(/, ?/g).map(a=>parseInt(a)),s=this.qanda.answer.answer.substring(r,n.index);this.answer.length>1&&this.answer[this.answer.length-1].line.length===0&&(this.answer[this.answer.length-1]?.index?.[0]??-1)===o[0]||this.answer.push({line:s.trim(),index:o}),r=this.regex.lastIndex}r>0&&r<this.qanda.answer.answer.length&&this.answer.push({line:this.qanda.answer.answer.substring(r)}),r===0&&this.answer.push({line:this.qanda.answer?.answer})}selectSource(n){n=n-1,this.qanda?.answer?.results?.[n]&&(this.qanda.answer.results.map(r=>r.selected=!1),this.qanda.answer.results[n].selected=!0,this.selectedSource.set({source:this.qanda.answer.results[n],index:n+1}),this.stats.sendEvent({category:"source",action:"select-annotation",label:"sourceId",value:this.qanda.answer.id,question:this.qanda.question}))}readMore(n,r){r.readmore=!r.readmore,this.stats.sendEvent({category:"context",action:"readmore",label:"answerContext",value:r.message,question:this.qanda.question})}markTextTruncated(n){let r=n.scrollHeight>n.clientHeight,o=n.attributes.getNamedItem("data-id")?.value;if(o&&this.qanda.answer?.context){let s=parseInt(o.replace("context_","")),a=this.qanda.answer.context[s];a&&(a.readmore=r)}}};e.\u0275fac=function(r){return new(r||e)(b(Ye),b(Ue),b(_t),b(we))},e.\u0275cmp=B({type:e,selectors:[["app-question-and-answer"]],viewQuery:function(r,o){if(r&1&&(et(d0,5),et(F5,5),et(P5,5)),r&2){let s;Ze(s=Ke())&&(o.sourcesComponent=s.first),Ze(s=Ke())&&(o.scrollToMeEls=s),Ze(s=Ke())&&(o.contexts=s)}},inputs:{qanda:"qanda"},standalone:!0,features:[ot,H],decls:1,vars:0,consts:[["scrollToMe",""],["context",""],[4,"transloco"],["tabindex","-1",1,"t-question","flex","flex-inline","flex-row","items-center","scroll-m-4","mb-4"],["aria-live","polite","aria-atomic","true",1,"sr-only"],[3,"selectedSource","question","answer"],["tabindex","-1",1,"t-answer","answer","flex","flex-col","mb-8","scroll-m-"],[3,"questions","language"],["viewBox","0 0 31 30","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0","inline","me-2","w-8"],["clip-path","url(#clip0_3194_1386)"],["d","M15.1054 2.5C8.20544 2.5 2.60544 8.1 2.60544 15C2.60544 21.9 8.20544 27.5 15.1054 27.5C22.0054 27.5 27.6054 21.9 27.6054 15C27.6054 8.1 22.0054 2.5 15.1054 2.5ZM15.1054 6.25C17.1804 6.25 18.8554 7.925 18.8554 10C18.8554 12.075 17.1804 13.75 15.1054 13.75C13.0304 13.75 11.3554 12.075 11.3554 10C11.3554 7.925 13.0304 6.25 15.1054 6.25ZM15.1054 24C11.9804 24 9.21794 22.4 7.60544 19.975C7.64294 17.4875 12.6054 16.125 15.1054 16.125C17.5929 16.125 22.5679 17.4875 22.6054 19.975C20.9929 22.4 18.2304 24 15.1054 24Z","fill","black"],["id","clip0_3194_1386"],["width","30","height","30","fill","white","transform","translate(0.105438)"],[1,"t-question-text","inline","font-bold","text-2xl","text-black",3,"id"],[1,"t-status-container",3,"ngClass"],[3,"qanda","status","shouldShowLoader"],[1,"t-answer-message","mb-2","border-2","rounded-md","inline-flex","items-center","p-2","w-full",3,"ngClass"],["viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0","w-5","h-5","me-1"],[1,"flex","flex-col","relative"],[1,"line-clamp-2",3,"ngClass","innerHTML"],["aria-expanded","fal
72se",1,"t-answer-message-context-read-more","absolute","bg-gradient-to-l","from-cdra-blue-light-200","from-85%","ps-6","place-self-end","bottom-0","font-bold","text-cdra-blue-light-main","underline"],["d","M10.5523 0.5C4.75407 0.5 0.0527344 5.20133 0.0527344 10.9996C0.0527344 16.7978 4.75407 21.5 10.5523 21.5C16.3505 21.5 21.0527 16.7978 21.0527 10.9996C21.0527 5.20133 16.3505 0.5 10.5523 0.5ZM12.7381 16.7729C12.1976 16.9862 11.7674 17.148 11.4447 17.26C11.123 17.372 10.7487 17.428 10.323 17.428C9.66873 17.428 9.1594 17.268 8.79673 16.9489C8.43407 16.6298 8.25362 16.2253 8.25362 15.7338C8.25362 15.5427 8.26696 15.3471 8.29362 15.148C8.32118 14.9489 8.36473 14.7249 8.42429 14.4733L9.10073 12.084C9.16029 11.8547 9.21185 11.6369 9.25274 11.4342C9.29362 11.2298 9.31318 11.0422 9.31318 10.8716C9.31318 10.5676 9.25007 10.3542 9.12473 10.2342C8.99762 10.1142 8.75851 10.0556 8.40207 10.0556C8.22785 10.0556 8.04829 10.0813 7.86429 10.1356C7.68207 10.1916 7.52385 10.2422 7.39407 10.292L7.57273 9.556C8.0154 9.37556 8.4394 9.22089 8.84385 9.09289C9.24829 8.96311 9.63051 8.89911 9.99051 8.89911C10.6403 8.89911 11.1416 9.05733 11.4945 9.37022C11.8456 9.684 12.0225 10.092 12.0225 10.5933C12.0225 10.6973 12.0101 10.8804 11.9861 11.1418C11.9621 11.404 11.9167 11.6431 11.851 11.8627L11.1781 14.2449C11.123 14.436 11.0741 14.6547 11.0296 14.8991C10.9861 15.1436 10.9647 15.3302 10.9647 15.4556C10.9647 15.772 11.035 15.988 11.1772 16.1027C11.3176 16.2173 11.5638 16.2751 11.9123 16.2751C12.0767 16.2751 12.2607 16.2458 12.4687 16.1889C12.675 16.132 12.8243 16.0813 12.9185 16.0378L12.7381 16.7729ZM12.619 7.10356C12.3052 7.39511 11.9274 7.54089 11.4856 7.54089C11.0447 7.54089 10.6643 7.39511 10.3478 7.10356C10.0332 6.812 9.87407 6.45733 9.87407 6.04311C9.87407 5.62978 10.0341 5.27422 10.3478 4.98C10.6643 4.68489 11.0447 4.53822 11.4856 4.53822C11.9274 4.53822 12.3061 4.68489 12.619 4.98C12.9327 5.27422 13.0901 5.62978 13.0901 6.04311C13.0901 6.45822 12.9327 6.812 12.619 7.10356Z","fill","url(#paint0_linear_3505_5222)"],["id","paint0_linear_3505_5222","x1","10.5527","y1","0.5","x2","10.5527","y2","21.5","gradientUnits","userSpaceOnUse"],["stop-color","#68B7C5"],["offset","1","stop-color","#155C9A"],["aria-expanded","false",1,"t-answer-message-context-read-more","absolute","bg-gradient-to-l","from-cdra-blue-light-200","from-85%","ps-6","place-self-end","bottom-0","font-bold","text-cdra-blue-light-main","underline",3,"click"],[1,"flex","items-center","w-full","mt-8","mb-2"],["aria-hidden","true","viewBox","0 0 31 30","fill","currentColor","xmlns","http://www.w3.org/2000/svg",1,"inline","me-2","text-cdra-blue-light-main","h-5"],["fill-rule","evenodd","clip-rule","evenodd","d","M20.4851 18.6146C14.819 18.6146 10.2425 14.02 10.2425 8.37207C10.2425 14.02 5.64793 18.6146 0 18.6146C5.64793 18.6146 10.2425 23.1911 10.2425 28.839C10.2425 23.1911 14.819 18.6146 20.4851 18.6146Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M31.0001 23.8992C27.8946 23.8992 25.3885 21.3749 25.3885 18.2876C25.3885 21.3749 22.8641 23.8992 19.7769 23.8992C22.8641 23.8992 25.3885 26.4054 25.3885 29.5108C25.3885 26.4054 27.8946 23.8992 31.0001 23.8992Z"],["fill-rule","evenodd","clip-rule","evenodd","d","M27.7676 6.82836C23.9902 6.82836 20.9392 3.77739 20.9392 0C20.9392 3.77739 17.8882 6.82836 14.1108 6.82836C17.8882 6.82836 20.9392 9.87933 20.9392 13.6567C20.9392 9.87933 23.9902 6.82836 27.7676 6.82836Z"],[1,"inline","text-xl","text-black","font-bold","prose",3,"innerHTML"],[1,"flex","flex-col","font-normal","text-black"],[3,"parent","answer","language"],[1,"self-end","mt-4"],[3,"qanda"]],template:function(r,o){r&1&&I(0,J5,10,6,"div",2)},dependencies:[ve,mt,fE,d0,bE,cd,ye,ee,DE],data:{animation:[Ui("fadeIn",[wi(":enter",[Mt({opacity:.2}),yi("200ms ease-in",Mt({opacity:1}))])])]}});let t=e;return t})()});function tP(t,e){if(t&1){let i=U();h(0,"button",8),A("click",function(){F(i);let r=m(3);return P(r.skipToSearch())}),C(1),p(),x(2,"div",9)}if(t&2){let i=m(2).$implicit;f(),N(i("landing.skiplink"))}}function nP(t,e){if(t&1&&(I(0,tP,3,1),h(1,"div",4,0),x(4,"app-question-and-answer",7),p()),t&2){let i,n=e.$implicit,r=e.$index,o=e.$index;
72j(0,o!==0?0:-1),f(),V("id","qanda-"+r)("dir",gi(4,eP).includes((i=n.answer==null?null:n.answer.language)!==null&&i!==void 0?i:"")?"rtl":null),f(3),E("qanda",n)}}function iP(t,e){t&1&&x(0,"app-loader",10)}function rP(t,e){if(t&1&&(h(0,"div",5)(1,"span"),C(2),p(),I(3,iP,1,0,"app-loader",10),p()),t&2){let i=m().$implicit,n=m();f(2),N(i("chat.answerplaceholder")),f(),j(3,n.shouldShowLoader?3:-1)}}function oP(t,e){if(t&1&&(h(0,"div",2)(1,"div",3),Oe(2,nP,5,5,"div",4,X5,!1,rP,4,2,"div",5),p(),h(5,"div",6),x(6,"app-searchbox"),p()()),t&2){let i=m();f(2),Fe(i.qandas)}}var X5,eP,IE,TE=y(()=>{"use strict";l0();he();SE();te();f0();L();$t();Fr();te();X5=(t,e)=>e.id,eP=()=>["he","ar","fa"];IE=(()=>{let e=class e{skipToSearch(){this.el.nativeElement.querySelector("#default-search")?.focus()}get qandas(){return this.research.qandas}constructor(n,r,o){this.research=n,this.messages=r,this.el=o,this.shouldShowLoader=!1,this.messages.appEvents$.subscribe(s=>{s.event==="session"&&(s.status==="requesting"?this.shouldShowLoader=!0:this.shouldShowLoader=!1)})}};e.\u0275fac=function(r){return new(r||e)(b(Ne),b(vn),b(ke))},e.\u0275cmp=B({type:e,selectors:[["app-chat"]],hostAttrs:[1,"contents"],standalone:!0,features:[H],decls:1,vars:0,consts:[["chat","","scrollToMe",""],["class","relative flex flex-col h-full w-full",4,"transloco"],[1,"relative","flex","flex-col","h-full","w-full"],["id","chat-container","aria-live","polite",1,"t-chat-container","mb-auto","w-full","overflow-auto","text-start","p-5"],[1,"t-qanda","me-2"],[1,"t-qanda-empty","text-center","text-gray-400","mt-5"],[1,"t-qanda-searchbox","mt-5","text-center"],[3,"qanda"],["type","button",1,"skiplink","hidden","lg:block",3,"click"],[1,"border","border-gray-300","w-4/5","ms-[10%]","my-8"],["height","16px",1,"mt-2"]],template:function(r,o){r&1&&I(0,oP,7,1,"div",1)},dependencies:[ve,ad,xE,ye,ee,ud],encapsulation:2});let t=e;return t})()});function sP(t,e){if(t&1&&(h(0,"div",1),x(1,"h2",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"div",8),p()),t&2){let i=e.$implicit,n=m();f(),E("innerHTML",i("help.title"),Le),f(),E("innerHTML",i("help.text.intro"),Le),f(),E("innerHTML",i("help.text.howgenerated",n.translationParams),Le),f(),E("innerHTML",i("help.text.formulategoodquestion"),Le),f(),E("innerHTML",i("help.text.supportedquestions",n.translationParams),Le),f(),E("innerHTML",i("help.text.unsupportedquestions"),Le),f(),E("innerHTML",i("help.text.shareyourthoughts"),Le)}}var ME,AE=y(()=>{"use strict";te();L();Mr();gt();te();ME=(()=>{let e=class e{constructor(n,r){this.http=n,this.config=r,this.translationParams={llmModel:""},this.defaultModel="GPT-4.1 Mini"}ngOnInit(){this.config.onConfigChange$.subscribe(n=>{this.translationParams.llmModel=n.llmModel||this.defaultModel}),this.translationParams.llmModel=this.config.currentConfig.llmModel||this.defaultModel}};e.\u0275fac=function(r){return new(r||e)(b(Tr),b(we))},e.\u0275cmp=B({type:e,selectors:[["app-help"]],standalone:!0,features:[H],decls:1,vars:0,consts:[["class","p-5 prose",4,"transloco"],[1,"p-5","prose"],[1,"t-page-title","text-2xl","font-bold",3,"innerHTML"],[1,"t-help-intro","text-base",3,"innerHTML"],[1,"t-help-howgenerated","text-base",3,"innerHTML"],[1,"t-help-formulategoodquestion","text-base",3,"innerHTML"],[1,"t-help-supportedquestions","text-base",3,"innerHTML"],[1,"t-help-unsupportedquestions","text-base",3,"innerHTML"],[1,"t-help-shareyourthoughts","text-base",3,"innerHTML"]],template:function(r,o){r&1&&I(0,sP,8,7,"div",0)},dependencies:[ye,ee]});let t=e;return t})()});function aP(t,e){if(t&1){let i=U();h(0,"button",2),A("click",function(){F(i);let r=m(2);return P(r.goBack())}),C(1),p()}if(t&2){let i=e.$implicit;f(),ie(" ",i("pages.backlink"),"")}}function lP(t,e){t&1&&I(0,aP,2,1,"button",1)}var NE,RE=y(()=>{"use strict";te();L();Uu();te();NE=(()=>{let e=class e{constructor(n){this.navigation=n}shouldShow(){return this.navigation.previousUrl!==void 0}goBack(){this.navigation.goBack()}};e.\u0275fac=function(r){return new(r||e)(b(Yo))},e.\u0275cmp=B({type:e,selectors:[["app-go-back"]],standalone:!0,features:[H],decls:1,vars:1,consts:[[1,"t-go-back","cursor-pointer","font-bold"],["class","t-go-back cursor-pointer font-bold",3,"click",4,"transloco"],[1,"t-go-back","cursor-pointer","font-bold",3,"click"]],template:function(r,o){r&1&&I(0,lP,1,0,"button",0),r&2&&j(0,o.shouldShow()?0:-1)},dependencies:[ye,ee]});let t=e;return t})()});var kE,OE=y(()=>{"use strict";RE();At();L();kE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=B({type:e,selectors:[["app-pages"]],hostAttrs:[1,"contents"],standalone:!0,features:[H],decls:5,vars:0,consts:[["id","page-content","data-focus-on-load","true","tabindex","-1",1,"inline-flex","flex-col"],[1,"p-5"],[1,"overflow-auto"]],template:function(r,o){r&1&&(h(0,"div",0)(1,"div",1),x(2,"app-go-back"),p(),h(3,"div",2),x(4,"router-outlet"),p()())},dependencies:[NE,Or],encapsulation:2});let t=e;return t})()});var FE,PE=y(()=>{"use strict";GD();QD();eE();nE();rE();sE();lE();uE();hE();TE();AE();OE();FE=[{path:"",component:c0},{path:"pages",component:kE,children:[{path:"disclaimer",component:zD},{path:"privacy",component:WD},{path:"help",component:ME},{path:"user",component:tE,children:[]}]},{path:"research",component:iE,children:[{path:"new",component:c0},{path:"bookmarks",component:aE}
72,{path:"documents",component:cE},{path:"history",component:oE},{path:"topics",component:dE},{path:"**",component:IE}]}]});var LE,VE=y(()=>{"use strict";L();gt();LE=(()=>{let e=class e{get jwtToken(){return this.config.currentConfig?.apiJwt}constructor(n){this.config=n}intercept(n,r){return this.jwtToken&&(n=n.clone({setHeaders:{Authorization:"Bearer "+sessionStorage.getItem(this.jwtToken)}})),r.handle(n)}};e.\u0275fac=function(r){return new(r||e)(M(we))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})()});var jE,$E=y(()=>{"use strict";L();gt();jE=(()=>{let e=class e{get apiParams(){return this.config.apiParams}get apiUrl(){return this.config.apiUrl}constructor(n){this.config=n}intercept(n,r){return this.apiParams&&n.url.indexOf(this.apiUrl??"")>-1&&(n=n.clone({setParams:W(_({},this.apiParams),{product:this.config.product})})),r.handle(n)}};e.\u0275fac=function(r){return new(r||e)(M(we))},e.\u0275prov=k({token:e,factory:e.\u0275fac});let t=e;return t})()});var BE,HE=y(()=>{"use strict";L();Mr();gt();rt();L();BE=(()=>{let e=class e{constructor(n){this.injector=n,this.http=T(Tr)}getTranslation(n){return this.injector.get(we).onConfigChange$.pipe(Je(1),Be(o=>{let s=new URLSearchParams,a=o.apiParams;for(let d in a)s.set(d,a[d]);s.set("lang",n);let l=new URL(`assets/i18n/${n}.json`,o.sourceUrl),c=this.http.get(`${o.apiUrl}/translations?${s.toString()}`).pipe(tn(()=>G({}))),u=this.http.get(l.toString());return bn([c,u])}),z(o=>_(_({},o[1]),o[0])))}};e.\u0275fac=function(r){return new(r||e)(M(ft))},e.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})()});function UE(t,e){t.initialize(),e.initialize()}var qE=y(()=>{"use strict"});var zE,GE=y(()=>{"use strict";he();Mr();L();$D();ra();HD();qD();PE();At();VE();$E();HE();te();qE();ln();Uu();zE={providers:[LC(FE),Hb(Ub()),{provide:Xs,useClass:BD,multi:!0},{provide:Xs,useClass:LE,multi:!0},{provide:Xs,useClass:jE,multi:!0},{provide:Wn,useClass:UD},jD(),nC({positionClass:"toast-position",closeButton:!0,preventDuplicates:!0,progressBar:!0,timeOut:7e3}),i_({config:{availableLangs:["ar","ca","cs","cy","da","de","en","es","el","eu","fi","fr","ga","gl","haw","he","hu","hi","is","it","la","ja","ko","lt","mi","ms","nb","nn","no","nl","pl","pt","pt1","ru","sv","th","tr","uk","zh-tw","zh"],defaultLang:"en",reRenderOnLangChange:!0,prodMode:!jc()},loader:BE}),{provide:Ws,useFactory:UE,deps:[Ue,Yo]}]}});var cP=JE(WE=>{lD();Mo();uD();GE();dt(WE,null,function*(){let t=yield Yb(zE),e=cD(aD,{injector:t.injector});customElements.define("cdi-research-assistant",e)})});export default cP(); 73//# sourceMappingURL=main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.