UNPKG

@careevolution/broadview-component

Version:

CareEvolution Broadview web component

17 lines (14 loc) 1.71 MB
// Copyright 2024 CareEvolution(TM), LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. var P9=Object.create;var vS=Object.defineProperty,L9=Object.defineProperties,N9=Object.getOwnPropertyDescriptor,F9=Object.getOwnPropertyDescriptors,V9=Object.getOwnPropertyNames,o0=Object.getOwnPropertySymbols,j9=Object.getPrototypeOf,yS=Object.prototype.hasOwnProperty,T2=Object.prototype.propertyIsEnumerable;var D2=(t,n,e)=>n in t?vS(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,P=(t,n)=>{for(var e in n||={})yS.call(n,e)&&D2(t,e,n[e]);if(o0)for(var e of o0(n))T2.call(n,e)&&D2(t,e,n[e]);return t},G=(t,n)=>L9(t,F9(n));var E2=t=>typeof t=="symbol"?t:t+"",qd=(t,n)=>{var e={};for(var i in t)yS.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&o0)for(var i of o0(t))n.indexOf(i)<0&&T2.call(t,i)&&(e[i]=t[i]);return e};var H9=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports);var B9=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of V9(n))!yS.call(t,r)&&r!==e&&vS(t,r,{get:()=>n[r],enumerable:!(i=N9(n,r))||i.enumerable});return t};var $9=(t,n,e)=>(e=t!=null?P9(j9(t)):{},B9(n||!t||!t.__esModule?vS(e,"default",{value:t,enumerable:!0}):e,t));var J=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{a(e.next(l))}catch(c){r(c)}},s=l=>{try{a(e.throw(l))}catch(c){r(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,n)).next())});var n7=H9((yMt,t7)=>{"use strict";t7.exports=(function(){function t(n,e,i,r,o){return n<e||i<e?n>i?i+1:n+1:r===o?e:e+1}return function(n,e){if(n===e)return 0;if(n.length>e.length){var i=n;n=e,e=i}for(var r=n.length,o=e.length;r>0&&n.charCodeAt(r-1)===e.charCodeAt(o-1);)r--,o--;for(var s=0;s<r&&n.charCodeAt(s)===e.charCodeAt(s);)s++;if(r-=s,o-=s,r===0||o<3)return o;var a=0,l,c,u,h,_,y,w,D,E,A,N,Q,B=[];for(l=0;l<r;l++)B.push(l+1),B.push(n.charCodeAt(s+l));for(var le=B.length-1;a<o-3;)for(E=e.charCodeAt(s+(c=a)),A=e.charCodeAt(s+(u=a+1)),N=e.charCodeAt(s+(h=a+2)),Q=e.charCodeAt(s+(_=a+3)),y=a+=4,l=0;l<le;l+=2)w=B[l],D=B[l+1],c=t(w,c,u,E,D),u=t(c,u,h,A,D),h=t(u,h,_,N,D),y=t(h,_,y,Q,D),B[l]=y,_=h,h=u,u=c,c=w;for(;a<o;)for(E=e.charCodeAt(s+(c=a)),y=++a,l=0;l<le;l+=2)w=B[l],B[l]=y=t(w,c,y,E,B[l+1]),c=w;return y}})()});var Ei=null,s0=!1,xS=1,z9=null,di=Symbol("SIGNAL");function He(t){let n=Ei;return Ei=t,n}function l0(){return Ei}var Kd={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function zf(t){if(s0)throw new Error("");if(Ei===null)return;Ei.consumerOnSignalRead(t);let n=Ei.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=Ei.recomputing;if(i&&(e=n!==void 0?n.nextProducer:Ei.producers,e!==void 0&&e.producer===t)){Ei.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===Ei&&(!i||Y9(r,Ei)))return;let o=Jd(Ei),s={producer:t,consumer:Ei,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};Ei.producersTail=s,n!==void 0?n.nextProducer=s:Ei.producers=s,o&&k2(t,s)}function I2(){xS++}function SS(t){if(!(Jd(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===xS)){if(!t.producerMustRecompute(t)&&!Yf(t)){CS(t);return}t.producerRecomputeValue(t),CS(t)}}function DS(t){if(t.consumers===void 0)return;let n=s0;s0=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||U9(i)}}finally{s0=n}}function TS(){return Ei?.consumerAllowSignalWrites!==!1}function U9(t){t.dirty=!0,DS(t),t.consumerMarkedDirty?.(t)}function CS(t){t.dirty=!1,t.lastCleanEpoch=xS}function Xd(t){return t&&M2(t),He(t)}function M2(t){t.producersTail=void 0,t.recomputing=!0}function Uf(t,n){He(n),t&&R2(t)}function R2(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Jd(t))do e=ES(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function Yf(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(SS(e),i!==e.version))return!0}return!1}function fc(t){if(Jd(t)){let n=t.producers;for(;n!==void 0;)n=ES(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function k2(t,n){let e=t.consumersTail,i=Jd(t);if(e!==void 0?(n.nextConsumer=e.nextConsumer,e.nextConsumer=n):(n.nextConsumer=void 0,t.consumers=n),n.prevConsumer=e,t.consumersTail=n,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)k2(r.producer,r)}function ES(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Jd(n)){let o=n.producers;for(;o!==void 0;)o=ES(o)}return e}function Jd(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function IS(t){z9?.(t)}function Y9(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function MS(t,n){return Object.is(t,n)}function Wf(t,n){let e=Object.create(W9);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(SS(e),zf(e),e.value===a0)throw e.error;return e.value};return i[di]=e,IS(e),i}var bS=Symbol("UNSET"),wS=Symbol("COMPUTING"),a0=Symbol("ERRORED"),W9=G(P({},Kd),{value:bS,dirty:!0,error:null,equal:MS,kind:"computed",producerMustRecompute(t){return t.value===bS||t.value===wS},producerRecomputeValue(t){if(t.value===wS)throw new Error("");let n=t.value;t.value=wS;let e=Xd(t),i,r=!1;try{i=t.computation(),He(null),r=n!==bS&&n!==a0&&i!==a0&&t.equal(n,i)}catch(o){i=a0,t.error=o}finally{Uf(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function G9(){throw new Error}var A2=G9;function O2(t){A2(t)}function RS(t){A2=t}var Q9=null;function kS(t,n){let e=Object.create(c0);e.value=t,n!==void 0&&(e.equal=n);let i=()=>P2(e);return i[di]=e,IS(e),[i,s=>Gf(e,s),s=>L2(e,s)]}function P2(t){return zf(t),t.value}function Gf(t,n){TS()||O2(t),t.equal(t.value,n)||(t.value=n,q9(t))}function L2(t,n){TS()||O2(t),Gf(t,n(t.value))}var c0=G(P({},Kd),{equal:MS,value:void 0,kind:"signal"});function q9(t){t.version++,I2(),DS(t),Q9?.(t)}function AS(t){let n=He(null);try{return t()}finally{He(n)}}var OS=G(P({},Kd),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function PS(t){if(t.dirty=!1,t.version>0&&!Yf(t))return;t.version++;let n=Xd(t);try{t.cleanup(),t.fn()}finally{Uf(t,n)}}function Ae(t){return typeof t=="function"}function Zd(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var d0=Zd(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=e});function hc(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var St=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ae(i))try{i()}catch(o){n=o instanceof d0?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{N2(o)}catch(s){n=n??[],s instanceof d0?n=[...n,...s.errors]:n.push(s)}}if(n)throw new d0(n)}}add(n){var e;if(n&&n!==this)if(this.closed)N2(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&hc(e,n)}remove(n){let{_finalizers:e}=this;e&&hc(e,n),n instanceof t&&n._removeParent(this)}};St.EMPTY=(()=>{let t=new St;return t.closed=!0,t})();var LS=St.EMPTY;function u0(t){return t instanceof St||t&&"closed"in t&&Ae(t.remove)&&Ae(t.add)&&Ae(t.unsubscribe)}function N2(t){Ae(t)?t():t.unsubscribe()}var Io={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var eu={setTimeout(t,n,...e){let{delegate:i}=eu;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=eu;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function p0(t){eu.setTimeout(()=>{let{onUnhandledError:n}=Io;if(n)n(t);else throw t})}function Mo(){}var F2=NS("C",void 0,void 0);function V2(t){return NS("E",void 0,t)}function j2(t){return NS("N",t,void 0)}function NS(t,n,e){return{kind:t,value:n,error:e}}var mc=null;function tu(t){if(Io.useDeprecatedSynchronousErrorHandling){let n=!mc;if(n&&(mc={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=mc;if(mc=null,e)throw i}}else t()}function H2(t){Io.useDeprecatedSynchronousErrorHandling&&mc&&(mc.errorThrown=!0,mc.error=t)}var gc=class extends St{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,u0(n)&&n.add(this)):this.destination=J9}static create(n,e,i){return new Ro(n,e,i)}next(n){this.isStopped?VS(j2(n),this):this._next(n)}error(n){this.isStopped?VS(V2(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?VS(F2,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},K9=Function.prototype.bind;function FS(t,n){return K9.call(t,n)}var jS=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){f0(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){f0(i)}else f0(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){f0(e)}}},Ro=class extends gc{constructor(n,e,i){super();let r;if(Ae(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&Io.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&FS(n.next,o),error:n.error&&FS(n.error,o),complete:n.complete&&FS(n.complete,o)}):r=n}this.destination=new jS(r)}};function f0(t){Io.useDeprecatedSynchronousErrorHandling?H2(t):p0(t)}function X9(t){throw t}function VS(t,n){let{onStoppedNotification:e}=Io;e&&eu.setTimeout(()=>e(t,n))}var J9={closed:!0,next:Mo,error:X9,complete:Mo};var nu=typeof Symbol=="function"&&Symbol.observable||"@@observable";function br(t){return t}function HS(...t){return BS(t)}function BS(t){return t.length===0?br:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var Ee=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=eQ(e)?e:new Ro(e,i,r);return tu(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=B2(i),new i((r,o)=>{let s=new Ro({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[nu](){return this}pipe(...e){return BS(e)(this)}toPromise(e){return e=B2(e),new e((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function B2(t){var n;return(n=t??Io.Promise)!==null&&n!==void 0?n:Promise}function Z9(t){return t&&Ae(t.next)&&Ae(t.error)&&Ae(t.complete)}function eQ(t){return t&&t instanceof gc||Z9(t)&&u0(t)}function tQ(t){return Ae(t?.lift)}function Ne(t){return n=>{if(tQ(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(t,n,e,i,r){return new $S(t,n,e,i,r)}var $S=class extends gc{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};var iu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=iu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new St(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=iu;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=iu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var $2=Zd(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var _e=(()=>{class t extends Ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new h0(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new $2}next(e){tu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){tu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){tu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:i,isStopped:r,observers:o}=this;return i||r?LS:(this.currentObservers=null,o.push(e),new St(()=>{this.currentObservers=null,hc(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new Ee;return e.source=this,e}}return t.create=(n,e)=>new h0(n,e),t})(),h0=class extends _e{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:LS}};var Le=class extends _e{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var Qf={now(){return(Qf.delegate||Date).now()},delegate:void 0};var Wr=class extends _e{constructor(n=1/0,e=1/0,i=Qf){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!n.closed;s+=i?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){let{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){let s=e.now(),a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}};var m0=class extends St{constructor(n,e){super()}schedule(n,e=0){return this}};var qf={setInterval(t,n,...e){let{delegate:i}=qf;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){let{delegate:n}=qf;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};var el=class extends m0{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return qf.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(i!=null&&this.delay===i&&this.pending===!1)return e;e!=null&&qf.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let i=this._execute(n,e);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let i=!1,r;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,hc(i,this),n!=null&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}};var ru=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};ru.now=Qf.now;var tl=class extends ru{constructor(n,e=ru.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var _s=new tl(el),z2=_s;var g0=class extends el{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return i!=null&&i>0||i==null&&this.delay>0?super.requestAsyncId(n,e,i):(n.flush(this),0)}};var _0=class extends tl{};var zS=new _0(g0);var v0=class extends el{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=iu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(iu.cancelAnimationFrame(e),n._scheduled=void 0)}};var y0=class extends tl{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var US=new y0(v0);var Mn=new Ee(t=>t.complete());function b0(t){return t&&Ae(t.schedule)}function YS(t){return t[t.length-1]}function w0(t){return Ae(YS(t))?t.pop():void 0}function vs(t){return b0(YS(t))?t.pop():void 0}function U2(t,n){return typeof YS(t)=="number"?t.pop():n}function ee(t,n,e,i){var r=arguments.length,o=r<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o}function wr(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)}function W2(t,n,e,i){function r(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(h){s(h)}}function l(u){try{c(i.throw(u))}catch(h){s(h)}}function c(u){u.done?o(u.value):r(u.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}function Y2(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _c(t){return this instanceof _c?(this.v=t,this):new _c(t)}function G2(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),r[Symbol.asyncIterator]=function(){return this},r;function s(y){return function(w){return Promise.resolve(w).then(y,h)}}function a(y,w){i[y]&&(r[y]=function(D){return new Promise(function(E,A){o.push([y,D,E,A])>1||l(y,D)})},w&&(r[y]=w(r[y])))}function l(y,w){try{c(i[y](w))}catch(D){_(o[0][3],D)}}function c(y){y.value instanceof _c?Promise.resolve(y.value.v).then(u,h):_(o[0][2],y)}function u(y){l("next",y)}function h(y){l("throw",y)}function _(y,w){y(w),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Q2(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Y2=="function"?Y2(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[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 ou=t=>t&&typeof t.length=="number"&&typeof t!="function";function C0(t){return Ae(t?.then)}function x0(t){return Ae(t[nu])}function S0(t){return Symbol.asyncIterator&&Ae(t?.[Symbol.asyncIterator])}function D0(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function nQ(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var T0=nQ();function E0(t){return Ae(t?.[T0])}function I0(t){return G2(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield _c(e.read());if(r)return yield _c(void 0);yield yield _c(i)}}finally{e.releaseLock()}})}function M0(t){return Ae(t?.getReader)}function ht(t){if(t instanceof Ee)return t;if(t!=null){if(x0(t))return iQ(t);if(ou(t))return rQ(t);if(C0(t))return oQ(t);if(S0(t))return q2(t);if(E0(t))return sQ(t);if(M0(t))return aQ(t)}throw D0(t)}function iQ(t){return new Ee(n=>{let e=t[nu]();if(Ae(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rQ(t){return new Ee(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}function oQ(t){return new Ee(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,p0)})}function sQ(t){return new Ee(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function q2(t){return new Ee(n=>{lQ(t,n).catch(e=>n.error(e))})}function aQ(t){return q2(I0(t))}function lQ(t,n){var e,i,r,o;return W2(this,void 0,void 0,function*(){try{for(e=Q2(t);i=yield e.next(),!i.done;){let s=i.value;if(n.next(s),n.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function Zi(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function vc(t,n=0){return Ne((e,i)=>{e.subscribe($e(i,r=>Zi(i,t,()=>i.next(r),n),()=>Zi(i,t,()=>i.complete(),n),r=>Zi(i,t,()=>i.error(r),n)))})}function R0(t,n=0){return Ne((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function K2(t,n){return ht(t).pipe(R0(n),vc(n))}function X2(t,n){return ht(t).pipe(R0(n),vc(n))}function J2(t,n){return new Ee(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function Z2(t,n){return new Ee(e=>{let i;return Zi(e,n,()=>{i=t[T0](),Zi(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){e.error(s);return}o?e.complete():e.next(r)},0,!0)}),()=>Ae(i?.return)&&i.return()})}function k0(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ee(e=>{Zi(e,n,()=>{let i=t[Symbol.asyncIterator]();Zi(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function eP(t,n){return k0(I0(t),n)}function tP(t,n){if(t!=null){if(x0(t))return K2(t,n);if(ou(t))return J2(t,n);if(C0(t))return X2(t,n);if(S0(t))return k0(t,n);if(E0(t))return Z2(t,n);if(M0(t))return eP(t,n)}throw D0(t)}function Rt(t,n){return n?tP(t,n):ht(t)}function Te(...t){let n=vs(t);return Rt(t,n)}function WS(t,n){let e=Ae(t)?t:()=>t,i=r=>r.error(e());return new Ee(n?r=>n.schedule(i,0,r):i)}function oa(t){return!!t&&(t instanceof Ee||Ae(t.lift)&&Ae(t.subscribe))}var sa=Zd(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Ii(t,n){let e=typeof n=="object";return new Promise((i,r)=>{let o=new Ro({next:s=>{i(s),o.unsubscribe()},error:r,complete:()=>{e?i(n.defaultValue):r(new sa)}});t.subscribe(o)})}function nP(t){return t instanceof Date&&!isNaN(t)}function se(t,n){return Ne((e,i)=>{let r=0;e.subscribe($e(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:cQ}=Array;function dQ(t,n){return cQ(n)?t(...n):t(n)}function su(t){return se(n=>dQ(t,n))}var{isArray:uQ}=Array,{getPrototypeOf:pQ,prototype:fQ,keys:hQ}=Object;function A0(t){if(t.length===1){let n=t[0];if(uQ(n))return{args:n,keys:null};if(mQ(n)){let e=hQ(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function mQ(t){return t&&typeof t=="object"&&pQ(t)===fQ}function O0(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Cn(...t){let n=vs(t),e=w0(t),{args:i,keys:r}=A0(t);if(i.length===0)return Rt([],n);let o=new Ee(gQ(i,n,r?s=>O0(r,s):br));return e?o.pipe(su(e)):o}function gQ(t,n,e=br){return i=>{iP(n,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)iP(n,()=>{let c=Rt(t[l],n),u=!1;c.subscribe($e(i,h=>{o[l]=h,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}function iP(t,n,e){t?Zi(e,t,n):n()}function rP(t,n,e,i,r,o,s,a){let l=[],c=0,u=0,h=!1,_=()=>{h&&!l.length&&!c&&n.complete()},y=D=>c<i?w(D):l.push(D),w=D=>{o&&n.next(D),c++;let E=!1;ht(e(D,u++)).subscribe($e(n,A=>{r?.(A),o?y(A):n.next(A)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&c<i;){let A=l.shift();s?Zi(n,s,()=>w(A)):w(A)}_()}catch(A){n.error(A)}}))};return t.subscribe($e(n,y,()=>{h=!0,_()})),()=>{a?.()}}function tn(t,n,e=1/0){return Ae(n)?tn((i,r)=>se((o,s)=>n(i,o,r,s))(ht(t(i,r))),e):(typeof n=="number"&&(e=n),Ne((i,r)=>rP(i,r,t,e)))}function nl(t=1/0){return tn(br,t)}function oP(){return nl(1)}function ys(...t){return oP()(Rt(t,vs(t)))}function Kf(t){return new Ee(n=>{ht(t()).subscribe(n)})}function GS(...t){let n=w0(t),{args:e,keys:i}=A0(t),r=new Ee(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let h=!1;ht(e[u]).subscribe($e(o,_=>{h||(h=!0,c--),a[u]=_},()=>l--,void 0,()=>{(!l||!h)&&(c||o.next(i?O0(i,a):a),o.complete())}))}});return n?r.pipe(su(n)):r}var _Q=["addListener","removeListener"],vQ=["addEventListener","removeEventListener"],yQ=["on","off"];function ui(t,n,e,i){if(Ae(e)&&(i=e,e=void 0),i)return ui(t,n,e).pipe(su(i));let[r,o]=CQ(t)?vQ.map(s=>a=>t[s](n,a,e)):bQ(t)?_Q.map(sP(t,n)):wQ(t)?yQ.map(sP(t,n)):[];if(!r&&ou(t))return tn(s=>ui(s,n,e))(ht(t));if(!r)throw new TypeError("Invalid event target");return new Ee(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return r(a),()=>o(a)})}function sP(t,n){return e=>i=>t[e](n,i)}function bQ(t){return Ae(t.addListener)&&Ae(t.removeListener)}function wQ(t){return Ae(t.on)&&Ae(t.off)}function CQ(t){return Ae(t.addEventListener)&&Ae(t.removeEventListener)}function er(t=0,n,e=z2){let i=-1;return n!=null&&(b0(n)?e=n:i=n),new Ee(r=>{let o=nP(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function aa(...t){let n=vs(t),e=U2(t,1/0),i=t;return i.length?i.length===1?ht(i[0]):nl(e)(Rt(i,n)):Mn}function Ie(t,n){return Ne((e,i)=>{let r=0;e.subscribe($e(i,o=>t.call(n,o,r++)&&i.next(o)))})}function aP(t){return Ne((n,e)=>{let i=!1,r=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};n.subscribe($e(e,c=>{i=!0,r=c,o||ht(t(c)).subscribe(o=$e(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}function QS(t,n=_s){return aP(()=>er(t,n))}function au(t){return Ne((n,e)=>{let i=null,r=!1,o;i=n.subscribe($e(e,void 0,void 0,s=>{o=ht(t(s,au(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function P0(t,n,e,i,r){return(o,s)=>{let a=e,l=n,c=0;o.subscribe($e(s,u=>{let h=c++;l=a?t(l,u,h):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function lP(t,n){return Ne(P0(t,n,arguments.length>=2,!1,!0))}function il(t,n){return Ae(n)?tn(t,n,1):tn(t,1)}function qS(t){return lP((n,e,i)=>!t||t(e,i)?n+1:n,0)}function Xf(t,n=_s){return Ne((e,i)=>{let r=null,o=null,s=null,a=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=s+t,u=n.now();if(u<c){r=this.schedule(void 0,c-u),i.add(r);return}a()}e.subscribe($e(i,c=>{o=c,s=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function cP(t){return Ne((n,e)=>{let i=!1;n.subscribe($e(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function Et(t){return t<=0?()=>Mn:Ne((n,e)=>{let i=0;n.subscribe($e(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function dP(){return Ne((t,n)=>{t.subscribe($e(n,Mo))})}function uP(t){return se(()=>t)}function KS(t,n){return n?e=>ys(n.pipe(Et(1),dP()),e.pipe(KS(t))):tn((e,i)=>ht(t(e,i)).pipe(Et(1),uP(e)))}function lu(t,n=_s){let e=er(t,n);return KS(()=>e)}function Bt(t,n=br){return t=t??xQ,Ne((e,i)=>{let r,o=!0;e.subscribe($e(i,s=>{let a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function xQ(t,n){return t===n}function pP(t=SQ){return Ne((n,e)=>{let i=!1;n.subscribe($e(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function SQ(){return new sa}function la(t){return Ne((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function ca(t,n){let e=arguments.length>=2;return i=>i.pipe(t?Ie((r,o)=>t(r,o,i)):br,Et(1),e?cP(n):pP(()=>new sa))}function cu(t){return t<=0?()=>Mn:Ne((n,e)=>{let i=[];n.subscribe($e(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function L0(){return Ne((t,n)=>{let e,i=!1;t.subscribe($e(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function XS(t,n){return Ne(P0(t,n,arguments.length>=2,!0))}function yc(t={}){let{connector:n=()=>new _e,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,u=!1,h=!1,_=()=>{a?.unsubscribe(),a=void 0},y=()=>{_(),s=l=void 0,u=h=!1},w=()=>{let D=s;y(),D?.unsubscribe()};return Ne((D,E)=>{c++,!h&&!u&&_();let A=l=l??n();E.add(()=>{c--,c===0&&!h&&!u&&(a=JS(w,r))}),A.subscribe(E),!s&&c>0&&(s=new Ro({next:N=>A.next(N),error:N=>{h=!0,_(),a=JS(y,e,N),A.error(N)},complete:()=>{u=!0,_(),a=JS(y,i),A.complete()}}),ht(D).subscribe(s))})(o)}}function JS(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new Ro({next:()=>{i.unsubscribe(),t()}});return ht(n(...e)).subscribe(i)}function N0(t){return Ie((n,e)=>t<=e)}function bc(...t){let n=vs(t);return Ne((e,i)=>{(n?ys(t,e,n):ys(t,e)).subscribe(i)})}function nn(t,n){return Ne((e,i)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&i.complete();e.subscribe($e(i,l=>{r?.unsubscribe();let c=0,u=o++;ht(t(l,u)).subscribe(r=$e(i,h=>i.next(n?n(l,h,u,c++):h),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Rn(t){return Ne((n,e)=>{ht(t).subscribe($e(e,()=>e.complete(),Mo)),!e.closed&&n.subscribe(e)})}function kn(t,n,e){let i=Ae(t)||n||e?{next:t,error:n,complete:e}:t;return i?Ne((r,o)=>{var s;(s=i.subscribe)===null||s===void 0||s.call(i);let a=!0;r.subscribe($e(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;a=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;a=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;a&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):br}function fP(t,n){return Ne((e,i)=>{let{leading:r=!0,trailing:o=!1}=n??{},s=!1,a=null,l=null,c=!1,u=()=>{l?.unsubscribe(),l=null,o&&(y(),c&&i.complete())},h=()=>{l=null,c&&i.complete()},_=w=>l=ht(t(w)).subscribe($e(i,u,h)),y=()=>{if(s){s=!1;let w=a;a=null,i.next(w),!c&&_(w)}};e.subscribe($e(i,w=>{s=!0,a=w,!(l&&!l.closed)&&(r?y():_(w))},()=>{c=!0,!(o&&s&&l&&!l.closed)&&i.complete()}))})}function F0(t,n=_s,e){let i=er(t,n);return fP(()=>i,e)}var ZS;function V0(){return ZS}function bs(t){let n=ZS;return ZS=t,n}var hP=Symbol("NotFound");function du(t){return t===hP||t?.name==="\u0275NotFound"}var Y0="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",U=class extends Error{code;constructor(n,e){super(Qr(n,e)),this.code=n}};function DQ(t){return`NG0${Math.abs(t)}`}function Qr(t,n){return`${DQ(t)}${n?": "+n:""}`}var Pn=globalThis;function Dt(t){for(let n in t)if(t[n]===Dt)return n;throw Error("")}function yP(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function ua(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(ua).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(` `);return i>=0?e.slice(0,i):e}function W0(t,n){return t?n?`${t} ${n}`:t:n||""}var TQ=Dt({__forward_ref__:Dt});function Lt(t){return t.__forward_ref__=Lt,t.toString=function(){return ua(this())},t}function Bn(t){return pD(t)?t():t}function pD(t){return typeof t=="function"&&t.hasOwnProperty(TQ)&&t.__forward_ref__===Lt}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ve(t){return{providers:t.providers||[],imports:t.imports||[]}}function rh(t){return EQ(t,G0)}function fD(t){return rh(t)!==null}function EQ(t,n){return t.hasOwnProperty(n)&&t[n]||null}function IQ(t){let n=t?.[G0]??null;return n||null}function tD(t){return t&&t.hasOwnProperty(H0)?t[H0]:null}var G0=Dt({\u0275prov:Dt}),H0=Dt({\u0275inj:Dt}),Z=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function hD(t){return t&&!!t.\u0275providers}var mD=Dt({\u0275cmp:Dt}),gD=Dt({\u0275dir:Dt}),_D=Dt({\u0275pipe:Dt}),vD=Dt({\u0275mod:Dt}),Zf=Dt({\u0275fac:Dt}),Dc=Dt({__NG_ELEMENT_ID__:Dt}),mP=Dt({__NG_ENV_ID__:Dt});function yD(t){return q0(t,"@NgModule"),t[vD]||null}function pa(t){return q0(t,"@Component"),t[mD]||null}function Q0(t){return q0(t,"@Directive"),t[gD]||null}function bP(t){return q0(t,"@Pipe"),t[_D]||null}function q0(t,n){if(t==null)throw new U(-919,!1)}function Ao(t){return typeof t=="string"?t:t==null?"":String(t)}function wP(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ao(t)}var CP=Dt({ngErrorCode:Dt}),MQ=Dt({ngErrorMessage:Dt}),RQ=Dt({ngTokenPath:Dt});function bD(t,n){return xP("",-200,n)}function K0(t,n){throw new U(-201,!1)}function xP(t,n,e){let i=new U(n,t);return i[CP]=n,i[MQ]=t,e&&(i[RQ]=e),i}function kQ(t){return t[CP]}var nD;function SP(){return nD}function Ui(t){let n=nD;return nD=t,n}function wD(t,n,e){let i=rh(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;K0(t,"")}var AQ={},wc=AQ,OQ="__NG_DI_FLAG__",iD=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=Cc(e)||0;try{return this.injector.get(n,i&8?null:wc,i)}catch(r){if(du(r))return r;throw r}}};function PQ(t,n=0){let e=V0();if(e===void 0)throw new U(-203,!1);if(e===null)return wD(t,void 0,n);{let i=LQ(n),r=e.retrieve(t,i);if(du(r)){if(i.optional)return null;throw r}return r}}function b(t,n=0){return(SP()||PQ)(Bn(t),n)}function V(t,n){return b(t,Cc(n))}function Cc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function LQ(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function rD(t){let n=[];for(let e=0;e<t.length;e++){let i=Bn(t[e]);if(Array.isArray(i)){if(i.length===0)throw new U(900,!1);let r,o=0;for(let s=0;s<i.length;s++){let a=i[s],l=NQ(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}n.push(b(r,o))}else n.push(b(i))}return n}function NQ(t){return t[OQ]}function rl(t,n){let e=t.hasOwnProperty(Zf);return e?t[Zf]:null}function DP(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function TP(t){return t.flat(Number.POSITIVE_INFINITY)}function X0(t,n){t.forEach(e=>Array.isArray(e)?X0(e,n):n(e))}function CD(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function oh(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function EP(t,n){let e=[];for(let i=0;i<t;i++)e.push(n);return e}function IP(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(r===1)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function J0(t,n,e){let i=pu(t,n);return i>=0?t[i|1]=e:(i=~i,IP(t,i,n,e)),i}function Z0(t,n){let e=pu(t,n);if(e>=0)return t[e|1]}function pu(t,n){return FQ(t,n,1)}function FQ(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}var Oo={},Mi=[],Tc=new Z(""),xD=new Z("",-1),SD=new Z(""),eh=class{get(n,e=wc){if(e===wc){let r=xP("",-201);throw r.name="\u0275NotFound",r}return e}};function Ec(t){return{\u0275providers:t}}function MP(...t){return{\u0275providers:DD(!0,t),\u0275fromNgModule:!0}}function DD(t,...n){let e=[],i=new Set,r,o=s=>{e.push(s)};return X0(n,s=>{let a=s;B0(a,o,[],i)&&(r||=[],r.push(a))}),r!==void 0&&RP(r,o),e}function RP(t,n){for(let e=0;e<t.length;e++){let{ngModule:i,providers:r}=t[e];TD(r,o=>{n(o,i)})}}function B0(t,n,e,i){if(t=Bn(t),!t)return!1;let r=null,o=tD(t),s=!o&&pa(t);if(!o&&!s){let l=t.ngModule;if(o=tD(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)B0(c,n,e,i)}}else if(o){if(o.imports!=null&&!a){i.add(r);let c;X0(o.imports,u=>{B0(u,n,e,i)&&(c||=[],c.push(u))}),c!==void 0&&RP(c,n)}if(!a){let c=rl(r)||(()=>new r);n({provide:r,useFactory:c,deps:Mi},r),n({provide:SD,useValue:r,multi:!0},r),n({provide:Tc,useValue:()=>b(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=t;TD(l,u=>{n(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function TD(t,n){for(let e of t)hD(e)&&(e=e.\u0275providers),Array.isArray(e)?TD(e,n):n(e)}var VQ=Dt({provide:String,useValue:Dt});function kP(t){return t!==null&&typeof t=="object"&&VQ in t}function jQ(t){return!!(t&&t.useExisting)}function HQ(t){return!!(t&&t.useFactory)}function xc(t){return typeof t=="function"}function AP(t){return!!t.useClass}var sh=new Z(""),j0={},gP={},eD;function ah(){return eD===void 0&&(eD=new eh),eD}var rn=class{},Sc=class extends rn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,sD(n,s=>this.processProvider(s)),this.records.set(xD,uu(void 0,this)),r.has("environment")&&this.records.set(rn,uu(void 0,this));let o=this.records.get(sh);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(SD,Mi,{self:!0}))}retrieve(n,e){let i=Cc(e)||0;try{return this.get(n,wc,i)}catch(r){if(du(r))return r;throw r}}destroy(){Jf(this),this._destroyed=!0;let n=He(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),He(n)}}onDestroy(n){return Jf(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Jf(this);let e=bs(this),i=Ui(void 0),r;try{return n()}finally{bs(e),Ui(i)}}get(n,e=wc,i){if(Jf(this),n.hasOwnProperty(mP))return n[mP](this);let r=Cc(i),o,s=bs(this),a=Ui(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let u=YQ(n)&&rh(n);u&&this.injectableDefInScope(u)?c=uu(oD(n),j0):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?ah():this.parent;return e=r&8&&e===wc?null:e,l.get(n,e)}catch(l){let c=kQ(l);throw c===-200||c===-201?new U(c,null):l}finally{Ui(a),bs(s)}}resolveInjectorInitializers(){let n=He(null),e=bs(this),i=Ui(void 0),r;try{let o=this.get(Tc,Mi,{self:!0});for(let s of o)s()}finally{bs(e),Ui(i),He(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(ua(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=Bn(n);let e=xc(n)?n:Bn(n&&n.provide),i=$Q(n);if(!xc(n)&&n.multi===!0){let r=this.records.get(e);r||(r=uu(void 0,j0,!0),r.factory=()=>rD(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=He(null);try{if(e.value===gP)throw bD(ua(n));return e.value===j0&&(e.value=gP,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&UQ(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{He(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Bn(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function oD(t){let n=rh(t),e=n!==null?n.factory:rl(t);if(e!==null)return e;if(t instanceof Z)throw new U(204,!1);if(t instanceof Function)return BQ(t);throw new U(204,!1)}function BQ(t){if(t.length>0)throw new U(204,!1);let e=IQ(t);return e!==null?()=>e.factory(t):()=>new t}function $Q(t){if(kP(t))return uu(void 0,t.useValue);{let n=ED(t);return uu(n,j0)}}function ED(t,n,e){let i;if(xc(t)){let r=Bn(t);return rl(r)||oD(r)}else if(kP(t))i=()=>Bn(t.useValue);else if(HQ(t))i=()=>t.useFactory(...rD(t.deps||[]));else if(jQ(t))i=(r,o)=>b(Bn(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=Bn(t&&(t.useClass||t.provide));if(zQ(t))i=()=>new r(...rD(t.deps));else return rl(r)||oD(r)}return i}function Jf(t){if(t.destroyed)throw new U(205,!1)}function uu(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function zQ(t){return!!t.deps}function UQ(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function YQ(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function sD(t,n){for(let e of t)Array.isArray(e)?sD(e,n):e&&hD(e)?sD(e.\u0275providers,n):n(e)}function $n(t,n){let e;t instanceof Sc?(Jf(t),e=t):e=new iD(t);let i,r=bs(e),o=Ui(void 0);try{return n()}finally{bs(r),Ui(o)}}function ID(){return SP()!==void 0||V0()!=null}var Po=0,Oe=1,Fe=2,Jn=3,qr=4,Yi=5,fu=6,hu=7,pi=8,al=9,ws=10,$t=11,mu=12,MD=13,Ic=14,tr=15,ll=16,Mc=17,Cs=18,cl=19,RD=20,da=21,e_=22,ol=23,Cr=24,Rc=25,lh=26,on=27,OP=1;var dl=7,ch=8,kc=9,Ri=10;function xs(t){return Array.isArray(t)&&typeof t[OP]=="object"}function Lo(t){return Array.isArray(t)&&t[OP]===!0}function kD(t){return(t.flags&4)!==0}function ul(t){return t.componentOffset>-1}function gu(t){return(t.flags&1)===1}function No(t){return!!t.template}function _u(t){return(t[Fe]&512)!==0}function Ac(t){return(t[Fe]&256)===256}var AD="svg",PP="math";function Kr(t){for(;Array.isArray(t);)t=t[Po];return t}function OD(t,n){return Kr(n[t])}function Fo(t,n){return Kr(n[t.index])}function dh(t,n){return t.data[n]}function t_(t,n){return t[n]}function PD(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function Xr(t,n){let e=n[t];return xs(e)?e:e[Po]}function LP(t){return(t[Fe]&4)===4}function n_(t){return(t[Fe]&128)===128}function NP(t){return Lo(t[Jn])}function Ss(t,n){return n==null?null:t[n]}function LD(t){t[Mc]=0}function i_(t){t[Fe]&1024||(t[Fe]|=1024,n_(t)&&Oc(t))}function FP(t,n){for(;t>0;)n=n[Ic],t--;return n}function vu(t){return!!(t[Fe]&9216||t[Cr]?.dirty)}function r_(t){t[ws].changeDetectionScheduler?.notify(8),t[Fe]&64&&(t[Fe]|=1024),vu(t)&&Oc(t)}function Oc(t){t[ws].changeDetectionScheduler?.notify(0);let n=sl(t);for(;n!==null&&!(n[Fe]&8192||(n[Fe]|=8192,!n_(n)));)n=sl(n)}function ND(t,n){if(Ac(t))throw new U(911,!1);t[da]===null&&(t[da]=[]),t[da].push(n)}function VP(t,n){if(t[da]===null)return;let e=t[da].indexOf(n);e!==-1&&t[da].splice(e,1)}function sl(t){let n=t[Jn];return Lo(n)?n[Jn]:n}function FD(t){return t[hu]??=[]}function VD(t){return t.cleanup??=[]}function jP(t,n,e,i){let r=FD(n);r.push(e),t.firstCreatePass&&VD(t).push(i,r.length-1)}var Ze={lFrame:KP(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var aD=!1;function HP(){return Ze.lFrame.elementDepthCount}function BP(){Ze.lFrame.elementDepthCount++}function jD(){Ze.lFrame.elementDepthCount--}function o_(){return Ze.bindingsEnabled}function HD(){return Ze.skipHydrationRootTNode!==null}function BD(t){return Ze.skipHydrationRootTNode===t}function $D(){Ze.skipHydrationRootTNode=null}function Ce(){return Ze.lFrame.lView}function mn(){return Ze.lFrame.tView}function I(t){return Ze.lFrame.contextLView=t,t[pi]}function M(t){return Ze.lFrame.contextLView=null,t}function fi(){let t=zD();for(;t!==null&&t.type===64;)t=t.parent;return t}function zD(){return Ze.lFrame.currentTNode}function $P(){let t=Ze.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function yu(t,n){let e=Ze.lFrame;e.currentTNode=t,e.isParent=n}function UD(){return Ze.lFrame.isParent}function YD(){Ze.lFrame.isParent=!1}function zP(){return Ze.lFrame.contextLView}function WD(){return aD}function th(t){let n=aD;return aD=t,n}function fa(){let t=Ze.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function GD(){return Ze.lFrame.bindingIndex}function UP(t){return Ze.lFrame.bindingIndex=t}function pl(){return Ze.lFrame.bindingIndex++}function uh(t){let n=Ze.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function YP(){return Ze.lFrame.inI18n}function WP(t,n){let e=Ze.lFrame;e.bindingIndex=e.bindingRootIndex=t,s_(n)}function GP(){return Ze.lFrame.currentDirectiveIndex}function s_(t){Ze.lFrame.currentDirectiveIndex=t}function QP(t){let n=Ze.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function a_(){return Ze.lFrame.currentQueryIndex}function ph(t){Ze.lFrame.currentQueryIndex=t}function WQ(t){let n=t[Oe];return n.type===2?n.declTNode:n.type===1?t[Yi]:null}function QD(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=WQ(o),r===null||(o=o[Ic],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=Ze.lFrame=qP();return i.currentTNode=n,i.lView=t,!0}function l_(t){let n=qP(),e=t[Oe];Ze.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function qP(){let t=Ze.lFrame,n=t===null?null:t.child;return n===null?KP(t):n}function KP(t){let n={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=n),n}function XP(){let t=Ze.lFrame;return Ze.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var qD=XP;function c_(){let t=XP();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 JP(t){return(Ze.lFrame.contextLView=FP(t,Ze.lFrame.contextLView))[pi]}function Ds(){return Ze.lFrame.selectedIndex}function fl(t){Ze.lFrame.selectedIndex=t}function fh(){let t=Ze.lFrame;return dh(t.tView,t.selectedIndex)}function d_(){Ze.lFrame.currentNamespace=AD}function ZP(){return Ze.lFrame.currentNamespace}var eL=!0;function u_(){return eL}function hh(t){eL=t}function lD(t,n=null,e=null,i){let r=KD(t,n,e,i);return r.resolveInjectorInitializers(),r}function KD(t,n=null,e=null,i,r=new Set){let o=[e||Mi,MP(t)];return i=i||(typeof t=="object"?void 0:ua(t)),new Sc(o,n||ah(),i||null,r)}var vt=class t{static THROW_IF_NOT_FOUND=wc;static NULL=new eh;static create(n,e){if(Array.isArray(n))return lD({name:""},e,n,"");{let i=n.name??"";return lD({name:i},n.parent,n.providers,i)}}static