@bloomscorp/blooms-ai-embed 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ var nd=Object.defineProperty,rd=Object.defineProperties;var od=Object.getOwnPropertyDescriptors;var on=Object.getOwnPropertySymbols;var ks=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable;var Os=(e,t,n)=>t in e?nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X=(e,t)=>{for(var n in t||={})ks.call(t,n)&&Os(e,n,t[n]);if(on)for(var n of on(t))Fs.call(t,n)&&Os(e,n,t[n]);return e},ee=(e,t)=>rd(e,od(t));var hv=(e,t)=>{var n={};for(var r in e)ks.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&on)for(var r of on(e))t.indexOf(r)<0&&Fs.call(e,r)&&(n[r]=e[r]);return n};function E(e){return typeof e=="function"}function sn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var an=sn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function He(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(E(r))try{r()}catch(i){t=i instanceof an?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ps(i)}catch(s){t=t??[],s instanceof an?t=[...t,...s.errors]:t.push(s)}}if(t)throw new an(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ps(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&He(n,t)}remove(t){let{_finalizers:n}=this;n&&He(n,t),t instanceof e&&t._removeParent(this)}};$.EMPTY=(()=>{let e=new $;return e.closed=!0,e})();var Br=$.EMPTY;function cn(e){return e instanceof $||e&&"closed"in e&&E(e.remove)&&E(e.add)&&E(e.unsubscribe)}function Ps(e){E(e)?e():e.unsubscribe()}var le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var nt={setTimeout(e,t,...n){let{delegate:r}=nt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=nt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function un(e){nt.setTimeout(()=>{let{onUnhandledError:t}=le;if(t)t(e);else throw e})}function Mt(){}var Ls=Hr("C",void 0,void 0);function js(e){return Hr("E",void 0,e)}function Vs(e){return Hr("N",e,void 0)}function Hr(e,t,n){return{kind:e,value:t,error:n}}var $e=null;function rt(e){if(le.useDeprecatedSynchronousErrorHandling){let t=!$e;if(t&&($e={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=$e;if($e=null,n)throw r}}else e()}function Bs(e){le.useDeprecatedSynchronousErrorHandling&&$e&&($e.errorThrown=!0,$e.error=e)}var Ue=class extends ${constructor(t){super(),this.isStopped=!1,t?(this.destination=t,cn(t)&&t.add(this)):this.destination=ad}static create(t,n,r){return new Me(t,n,r)}next(t){this.isStopped?Ur(Vs(t),this):this._next(t)}error(t){this.isStopped?Ur(js(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ur(Ls,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},id=Function.prototype.bind;function $r(e,t){return id.call(e,t)}var zr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ln(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ln(r)}else ln(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ln(n)}}},Me=class extends Ue{constructor(t,n,r){super();let o;if(E(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&le.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&$r(t.next,i),error:t.error&&$r(t.error,i),complete:t.complete&&$r(t.complete,i)}):o=t}this.destination=new zr(o)}};function ln(e){le.useDeprecatedSynchronousErrorHandling?Bs(e):un(e)}function sd(e){throw e}function Ur(e,t){let{onStoppedNotification:n}=le;n&&nt.setTimeout(()=>n(e,t))}var ad={closed:!0,next:Mt,error:sd,complete:Mt};var ot=typeof Symbol=="function"&&Symbol.observable||"@@observable";function it(e){return e}function Hs(e){return e.length===0?it:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var A=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=ud(n)?n:new Me(n,r,o);return rt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=$s(r),new r((o,i)=>{let s=new Me({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ot](){return this}pipe(...n){return Hs(n)(this)}toPromise(n){return n=$s(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function $s(e){var t;return(t=e??le.Promise)!==null&&t!==void 0?t:Promise}function cd(e){return e&&E(e.next)&&E(e.error)&&E(e.complete)}function ud(e){return e&&e instanceof Ue||cd(e)&&cn(e)}var Us=sn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var de=(()=>{class e extends A{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new dn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Us}next(n){rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){rt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Br:(this.currentObservers=null,i.push(n),new $(()=>{this.currentObservers=null,He(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new A;return n.source=this,n}}return e.create=(t,n)=>new dn(t,n),e})(),dn=class extends de{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Br}};var{isArray:ld}=Array,{getPrototypeOf:dd,prototype:fd,keys:pd}=Object;function zs(e){if(e.length===1){let t=e[0];if(ld(t))return{args:t,keys:null};if(hd(t)){let n=pd(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hd(e){return e&&typeof e=="object"&&dd(e)===fd}function Ws(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(f){s(f)}}function c(l){try{u(r.throw(l))}catch(f){s(f)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Gs(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ze(e){return this instanceof ze?(this.v=e,this):new ze(e)}function qs(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(h){return Promise.resolve(h).then(d,f)}}function a(d,h){r[d]&&(o[d]=function(g){return new Promise(function(b,D){i.push([d,g,b,D])>1||c(d,g)})},h&&(o[d]=h(o[d])))}function c(d,h){try{u(r[d](h))}catch(g){p(i[0][3],g)}}function u(d){d.value instanceof ze?Promise.resolve(d.value.v).then(l,f):p(i[0][2],d)}function l(d){c("next",d)}function f(d){c("throw",d)}function p(d,h){d(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Zs(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Gs=="function"?Gs(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var fn=e=>e&&typeof e.length=="number"&&typeof e!="function";function pn(e){return E(e?.then)}function hn(e){return E(e[ot])}function gn(e){return Symbol.asyncIterator&&E(e?.[Symbol.asyncIterator])}function mn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function gd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var yn=gd();function vn(e){return E(e?.[yn])}function Dn(e){return qs(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ze(n.read());if(o)return yield ze(void 0);yield yield ze(r)}}finally{n.releaseLock()}})}function En(e){return E(e?.getReader)}function R(e){if(e instanceof A)return e;if(e!=null){if(hn(e))return md(e);if(fn(e))return yd(e);if(pn(e))return vd(e);if(gn(e))return Ys(e);if(vn(e))return Dd(e);if(En(e))return Ed(e)}throw mn(e)}function md(e){return new A(t=>{let n=e[ot]();if(E(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function yd(e){return new A(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function vd(e){return new A(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,un)})}function Dd(e){return new A(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ys(e){return new A(t=>{Id(e,t).catch(n=>t.error(n))})}function Ed(e){return Ys(Dn(e))}function Id(e,t){var n,r,o,i;return Ws(this,void 0,void 0,function*(){try{for(n=Zs(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function In(e){return e&&E(e.schedule)}function Gr(e){return e[e.length-1]}function Qs(e){return E(Gr(e))?e.pop():void 0}function wn(e){return In(Gr(e))?e.pop():void 0}function Ks(e,t){return typeof Gr(e)=="number"?e.pop():t}function F(e,t,n,r,o){return new Wr(e,t,n,r,o)}var Wr=class extends Ue{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function wd(e){return E(e?.lift)}function k(e){return t=>{if(wd(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ge(e,t){return k((n,r)=>{let o=0;n.subscribe(F(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Cd}=Array;function bd(e,t){return Cd(t)?e(...t):e(t)}function Js(e){return Ge(t=>bd(e,t))}function Xs(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function _d(...e){let t=Qs(e),{args:n,keys:r}=zs(e),o=new A(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let f=!1;R(n[l]).subscribe(F(i,p=>{f||(f=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!f)&&(u||i.next(r?Xs(r,a):a),i.complete())}))}});return t?o.pipe(Js(t)):o}function Md(e){return k((t,n)=>{R(e).subscribe(F(n,()=>n.complete(),Mt)),!n.closed&&t.subscribe(n)})}var St=class extends de{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Tt={now(){return(Tt.delegate||Date).now()},delegate:void 0};var qr=class extends de{constructor(t=1/0,n=1/0,r=Tt){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Cn=class extends ${constructor(t,n){super()}schedule(t,n=0){return this}};var Nt={setInterval(e,t,...n){let{delegate:r}=Nt;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Nt;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var bn=class extends Cn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Nt.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Nt.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,He(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var st=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};st.now=Tt.now;var _n=class extends st{constructor(t,n=st.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Zr=new _n(bn),ea=Zr;var ta=new A(e=>e.complete());function re(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Mn(e,t=0){return k((n,r)=>{n.subscribe(F(r,o=>re(r,e,()=>r.next(o),t),()=>re(r,e,()=>r.complete(),t),o=>re(r,e,()=>r.error(o),t)))})}function Sn(e,t=0){return k((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function na(e,t){return R(e).pipe(Sn(t),Mn(t))}function ra(e,t){return R(e).pipe(Sn(t),Mn(t))}function oa(e,t){return new A(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ia(e,t){return new A(n=>{let r;return re(n,t,()=>{r=e[yn](),re(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>E(r?.return)&&r.return()})}function Tn(e,t){if(!e)throw new Error("Iterable cannot be null");return new A(n=>{re(n,t,()=>{let r=e[Symbol.asyncIterator]();re(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function sa(e,t){return Tn(Dn(e),t)}function aa(e,t){if(e!=null){if(hn(e))return na(e,t);if(fn(e))return oa(e,t);if(pn(e))return ra(e,t);if(gn(e))return Tn(e,t);if(vn(e))return ia(e,t);if(En(e))return sa(e,t)}throw mn(e)}function xt(e,t){return t?aa(e,t):R(e)}function Sd(...e){let t=wn(e);return xt(e,t)}function Td(e,t){let n=E(e)?e:()=>e,r=o=>o.error(n());return new A(t?o=>t.schedule(r,0,o):r)}function ca(e){return e instanceof Date&&!isNaN(e)}function ua(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,f=!1,p=()=>{f&&!c.length&&!u&&t.complete()},d=g=>u<r?h(g):c.push(g),h=g=>{i&&t.next(g),u++;let b=!1;R(n(g,l++)).subscribe(F(t,D=>{o?.(D),i?d(D):t.next(D)},()=>{b=!0},void 0,()=>{if(b)try{for(u--;c.length&&u<r;){let D=c.shift();s?re(t,s,()=>h(D)):h(D)}p()}catch(D){t.error(D)}}))};return e.subscribe(F(t,d,()=>{f=!0,p()})),()=>{a?.()}}function at(e,t,n=1/0){return E(t)?at((r,o)=>Ge((i,s)=>t(r,i,o,s))(R(e(r,o))),n):(typeof t=="number"&&(n=t),k((r,o)=>ua(r,o,e,n)))}function la(e=1/0){return at(it,e)}function At(e=0,t,n=ea){let r=-1;return t!=null&&(In(t)?n=t:r=t),new A(o=>{let i=ca(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Nd(e=0,t=Zr){return e<0&&(e=0),At(e,e,t)}function xd(...e){let t=wn(e),n=Ks(e,1/0),r=e;return r.length?r.length===1?R(r[0]):la(n)(xt(r,t)):ta}function Ad(e,t){return k((n,r)=>{let o=0;n.subscribe(F(r,i=>e.call(t,i,o++)&&r.next(i)))})}function da(e){return k((t,n)=>{let r=null,o=!1,i;r=t.subscribe(F(n,void 0,void 0,s=>{i=R(e(s,da(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Rd(e,t){return E(t)?at(e,t,1):at(e,1)}function Od(e){return k((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function kd(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=!1}=t;return n<=0?it:k((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(F(s,f=>{o&&(a=0),s.next(f)},void 0,f=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,u()):l=!0};if(r!=null){let d=typeof r=="number"?At(r):R(r(f,a)),h=F(s,()=>{h.unsubscribe(),p()},()=>{s.complete()});d.subscribe(h)}else p()}else s.error(f)})),l&&(c.unsubscribe(),c=null,u())};u()})}function fa(e={}){let{connector:t=()=>new de,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,f=!1,p=()=>{a?.unsubscribe(),a=void 0},d=()=>{p(),s=c=void 0,l=f=!1},h=()=>{let g=s;d(),g?.unsubscribe()};return k((g,b)=>{u++,!f&&!l&&p();let D=c=c??t();b.add(()=>{u--,u===0&&!f&&!l&&(a=Yr(h,o))}),D.subscribe(b),!s&&u>0&&(s=new Me({next:H=>D.next(H),error:H=>{f=!0,p(),a=Yr(d,n,H),D.error(H)},complete:()=>{l=!0,p(),a=Yr(d,r),D.complete()}}),R(g).subscribe(s))})(i)}}function Yr(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Me({next:()=>{r.unsubscribe(),e()}});return R(t(...n)).subscribe(r)}function pa(e,t){return k((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(F(r,c=>{o?.unsubscribe();let u=0,l=i++;R(e(c,l)).subscribe(o=F(r,f=>r.next(t?t(c,f,l,u++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ha(e,t=!1){return k((n,r)=>{let o=0;n.subscribe(F(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function Xr(e,t){return Object.is(e,t)}var j=null,Nn=!1,eo=1,fe=Symbol("SIGNAL");function y(e){let t=j;return j=e,t}function to(){return j}var Ot={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function An(e){if(Nn)throw new Error("");if(j===null)return;j.consumerOnSignalRead(e);let t=j.nextProducerIndex++;if(kn(j),t<j.producerNode.length&&j.producerNode[t]!==e&&Rt(j)){let n=j.producerNode[t];On(n,j.producerIndexOfThis[t])}j.producerNode[t]!==e&&(j.producerNode[t]=e,j.producerIndexOfThis[t]=Rt(j)?ma(e,j,t):0),j.producerLastReadVersion[t]=e.version}function ga(){eo++}function no(e){if(!(Rt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===eo)){if(!e.producerMustRecompute(e)&&!so(e)){Jr(e);return}e.producerRecomputeValue(e),Jr(e)}}function ro(e){if(e.liveConsumerNode===void 0)return;let t=Nn;Nn=!0;try{for(let n of e.liveConsumerNode)n.dirty||Fd(n)}finally{Nn=t}}function oo(){return j?.consumerAllowSignalWrites!==!1}function Fd(e){e.dirty=!0,ro(e),e.consumerMarkedDirty?.(e)}function Jr(e){e.dirty=!1,e.lastCleanEpoch=eo}function Rn(e){return e&&(e.nextProducerIndex=0),y(e)}function io(e,t){if(y(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Rt(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)On(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function so(e){kn(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(no(n),r!==n.version))return!0}return!1}function ao(e){if(kn(e),Rt(e))for(let t=0;t<e.producerNode.length;t++)On(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function ma(e,t,n){if(ya(e),e.liveConsumerNode.length===0&&va(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=ma(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function On(e,t){if(ya(e),e.liveConsumerNode.length===1&&va(e))for(let r=0;r<e.producerNode.length;r++)On(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];kn(o),o.producerIndexOfThis[r]=t}}function Rt(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function kn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ya(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function va(e){return e.producerNode!==void 0}function co(e,t){let n=Object.create(Pd);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(no(n),An(n),n.value===xn)throw n.error;return n.value};return r[fe]=n,r}var Qr=Symbol("UNSET"),Kr=Symbol("COMPUTING"),xn=Symbol("ERRORED"),Pd=ee(X({},Ot),{value:Qr,dirty:!0,error:null,equal:Xr,kind:"computed",producerMustRecompute(e){return e.value===Qr||e.value===Kr},producerRecomputeValue(e){if(e.value===Kr)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Kr;let n=Rn(e),r,o=!1;try{r=e.computation(),y(null),o=t!==Qr&&t!==xn&&r!==xn&&e.equal(t,r)}catch(i){r=xn,e.error=i}finally{io(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Ld(){throw new Error}var Da=Ld;function Ea(e){Da(e)}function uo(e){Da=e}var jd=null;function lo(e,t){let n=Object.create(po);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(An(n),n.value);return r[fe]=n,r}function Fn(e,t){oo()||Ea(e),e.equal(e.value,t)||(e.value=t,Vd(e))}function fo(e,t){oo()||Ea(e),Fn(e,t(e.value))}var po=ee(X({},Ot),{equal:Xr,value:void 0,kind:"signal"});function Vd(e){e.version++,ga(),ro(e),jd?.()}function ho(e){let t=y(null);try{return e()}finally{y(t)}}var go;function kt(){return go}function Se(e){let t=go;return go=e,t}var Pn=Symbol("NotFound");var cc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",_=class extends Error{code;constructor(t,n){super(zd(t,n)),this.code=t}};function Ud(e){return`NG0${Math.abs(e)}`}function zd(e,t){return`${Ud(e)}${t?": "+t:""}`}function yr(e){return{toString:e}.toString()}var Le=globalThis;function O(e){for(let t in e)if(e[t]===O)return t;throw Error("Could not find renamed property on target object.")}function Gd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function oe(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(oe).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Ao(e,t){return e?t?`${e} ${t}`:e:t||""}var Wd=O({__forward_ref__:O});function uc(e){return e.__forward_ref__=uc,e.toString=function(){return oe(this())},e}function W(e){return lc(e)?e():e}function lc(e){return typeof e=="function"&&e.hasOwnProperty(Wd)&&e.__forward_ref__===uc}function te(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function dc(e){return{providers:e.providers||[],imports:e.imports||[]}}function xi(e){return Ia(e,fc)||Ia(e,pc)}function Ia(e,t){return e.hasOwnProperty(t)?e[t]:null}function qd(e){let t=e&&(e[fc]||e[pc]);return t||null}function wa(e){return e&&(e.hasOwnProperty(Ca)||e.hasOwnProperty(Zd))?e[Ca]:null}var fc=O({\u0275prov:O}),Ca=O({\u0275inj:O}),pc=O({ngInjectableDef:O}),Zd=O({ngInjectorDef:O}),M=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=te({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function hc(e){return e&&!!e.\u0275providers}var Yd=O({\u0275cmp:O}),Qd=O({\u0275dir:O}),Kd=O({\u0275pipe:O});var Wn=O({\u0275fac:O}),jt=O({__NG_ELEMENT_ID__:O}),ba=O({__NG_ENV_ID__:O});function De(e){return typeof e=="string"?e:e==null?"":String(e)}function Jd(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():De(e)}function gc(e,t){throw new _(-200,e)}function Ai(e,t){throw new _(-201,!1)}var I=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(I||{}),Ro;function mc(){return Ro}function Z(e){let t=Ro;return Ro=e,t}function yc(e,t,n){let r=xi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&I.Optional)return null;if(t!==void 0)return t;Ai(e,"Injector")}var Xd={},qe=Xd,ef="__NG_DI_FLAG__",qn=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?Pn:qe,r)}},Zn="ngTempTokenPath",tf="ngTokenPath",nf=/\n/gm,rf="\u0275",_a="__source";function of(e,t=I.Default){if(kt()===void 0)throw new _(-203,!1);if(kt()===null)return yc(e,void 0,t);{let n=kt(),r;return n instanceof qn?r=n.injector:r=n,r.get(e,t&I.Optional?null:void 0,t)}}function Te(e,t=I.Default){return(mc()||of)(W(e),t)}function S(e,t=I.Default){return Te(e,vr(t))}function vr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Oo(e){let t=[];for(let n=0;n<e.length;n++){let r=W(e[n]);if(Array.isArray(r)){if(r.length===0)throw new _(900,!1);let o,i=I.Default;for(let s=0;s<r.length;s++){let a=r[s],c=sf(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(Te(o,i))}else t.push(Te(r))}return t}function sf(e){return e[ef]}function af(e,t,n,r){let o=e[Zn];throw t[_a]&&o.unshift(t[_a]),e.message=cf(`
5
+ `+e.message,o,n,r),e[tf]=o,e[Zn]=null,e}function cf(e,t,n,r=null){e=e&&e.charAt(0)===`
6
+ `&&e.charAt(1)==rf?e.slice(2):e;let o=oe(t);if(Array.isArray(t))o=t.map(oe).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):oe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(nf,`
7
+ `)}`}function Ze(e,t){let n=e.hasOwnProperty(Wn);return n?e[Wn]:null}function Ri(e,t){e.forEach(n=>Array.isArray(n)?Ri(n,t):t(n))}function uf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function vc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function lf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Dr(e,t,n){let r=Zt(e,t);return r>=0?e[r|1]=n:(r=~r,lf(e,r,t,n)),r}function mo(e,t){let n=Zt(e,t);if(n>=0)return e[n|1]}function Zt(e,t){return df(e,t,1)}function df(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Ye={},Y=[],Yn=new M(""),Dc=new M("",-1),Ec=new M(""),Qn=class{get(t,n=qe){if(n===qe){let r=new Error(`NullInjectorError: No provider for ${oe(t)}!`);throw r.name="NullInjectorError",r}return n}};function Oi(e){return e[Yd]||null}function ff(e){return e[Qd]||null}function pf(e){return e[Kd]||null}function hf(e){return{\u0275providers:e}}function gf(...e){return{\u0275providers:Ic(!0,e),\u0275fromNgModule:!0}}function Ic(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ri(t,s=>{let a=s;ko(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&wc(o,i),n}function wc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ki(o,i=>{t(i,r)})}}function ko(e,t,n,r){if(e=W(e),!e)return!1;let o=null,i=wa(e),s=!i&&Oi(e);if(!i&&!s){let c=e.ngModule;if(i=wa(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ko(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ri(i.imports,l=>{ko(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&wc(u,t)}if(!a){let u=Ze(o)||(()=>new o);t({provide:o,useFactory:u,deps:Y},o),t({provide:Ec,useValue:o,multi:!0},o),t({provide:Yn,useValue:()=>Te(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ki(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ki(e,t){for(let n of e)hc(n)&&(n=n.\u0275providers),Array.isArray(n)?ki(n,t):t(n)}var mf=O({provide:String,useValue:O});function Cc(e){return e!==null&&typeof e=="object"&&mf in e}function yf(e){return!!(e&&e.useExisting)}function vf(e){return!!(e&&e.useFactory)}function ft(e){return typeof e=="function"}function Df(e){return!!e.useClass}var bc=new M(""),Hn={},Ma={},yo;function Fi(){return yo===void 0&&(yo=new Qn),yo}var Qe=class{},Vt=class extends Qe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Po(t,s=>this.processProvider(s)),this.records.set(Dc,ct(void 0,this)),o.has("environment")&&this.records.set(Qe,ct(void 0,this));let i=this.records.get(bc);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ec,Y,I.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?Pn:qe,r)}destroy(){Pt(this),this._destroyed=!0;let t=y(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),y(t)}}onDestroy(t){return Pt(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Pt(this);let n=Se(this),r=Z(void 0),o;try{return t()}finally{Se(n),Z(r)}}get(t,n=qe,r=I.Default){if(Pt(this),t.hasOwnProperty(ba))return t[ba](this);r=vr(r);let o,i=Se(this),s=Z(void 0);try{if(!(r&I.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=bf(t)&&xi(t);u&&this.injectableDefInScope(u)?c=ct(Fo(t),Hn):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,r)}let a=r&I.Self?Fi():this.parent;return n=r&I.Optional&&n===qe?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Zn]=a[Zn]||[]).unshift(oe(t)),i)throw a;return af(a,t,"R3InjectorError",this.source)}else throw a}finally{Z(s),Se(i)}}resolveInjectorInitializers(){let t=y(null),n=Se(this),r=Z(void 0),o;try{let i=this.get(Yn,Y,I.Self);for(let s of i)s()}finally{Se(n),Z(r),y(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=W(t);let n=ft(t)?t:W(t&&t.provide),r=If(t);if(!ft(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ct(void 0,Hn,!0),o.factory=()=>Oo(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=y(null);try{return n.value===Ma?gc(oe(t)):n.value===Hn&&(n.value=Ma,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Cf(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{y(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=W(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Fo(e){let t=xi(e),n=t!==null?t.factory:Ze(e);if(n!==null)return n;if(e instanceof M)throw new _(204,!1);if(e instanceof Function)return Ef(e);throw new _(204,!1)}function Ef(e){if(e.length>0)throw new _(204,!1);let n=qd(e);return n!==null?()=>n.factory(e):()=>new e}function If(e){if(Cc(e))return ct(void 0,e.useValue);{let t=_c(e);return ct(t,Hn)}}function _c(e,t,n){let r;if(ft(e)){let o=W(e);return Ze(o)||Fo(o)}else if(Cc(e))r=()=>W(e.useValue);else if(vf(e))r=()=>e.useFactory(...Oo(e.deps||[]));else if(yf(e))r=(o,i)=>Te(W(e.useExisting),i!==void 0&&i&I.Optional?I.Optional:void 0);else{let o=W(e&&(e.useClass||e.provide));if(wf(e))r=()=>new o(...Oo(e.deps));else return Ze(o)||Fo(o)}return r}function Pt(e){if(e.destroyed)throw new _(205,!1)}function ct(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wf(e){return!!e.deps}function Cf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function bf(e){return typeof e=="function"||typeof e=="object"&&e instanceof M}function Po(e,t){for(let n of e)Array.isArray(n)?Po(n,t):n&&hc(n)?Po(n.\u0275providers,t):t(n)}function Mc(e,t){let n;e instanceof Vt?(Pt(e),n=e):n=new qn(e);let r,o=Se(n),i=Z(void 0);try{return t()}finally{Se(o),Z(i)}}function _f(){return mc()!==void 0||kt()!=null}var Re=0,w=1,m=2,ae=3,ge=4,we=5,Bt=6,Kn=7,V=8,pt=9,Ne=10,B=11,Ht=12,Sa=13,Et=14,me=15,ht=16,ut=17,gt=18,Er=19,Sc=20,Ve=21,vo=22,Jn=23,ie=24,Do=25,U=26,Tc=1;var $t=7,Mf=8,Xn=9,Q=10;function Be(e){return Array.isArray(e)&&typeof e[Tc]=="object"}function tt(e){return Array.isArray(e)&&e[Tc]===!0}function Nc(e){return(e.flags&4)!==0}function It(e){return e.componentOffset>-1}function Pi(e){return(e.flags&1)===1}function Ee(e){return!!e.template}function er(e){return(e[m]&512)!==0}function wt(e){return(e[m]&256)===256}var Lo=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function xc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Sf=(()=>{let e=()=>Ac;return e.ngInherit=!0,e})();function Ac(e){return e.type.prototype.ngOnChanges&&(e.setInput=Nf),Tf}function Tf(){let e=Oc(this),t=e?.current;if(t){let n=e.previous;if(n===Ye)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Nf(e,t,n,r,o){let i=this.declaredInputs[r],s=Oc(e)||xf(e,{previous:Ye,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Lo(u&&u.currentValue,n,c===Ye),xc(e,t,o,n)}var Rc="__ngSimpleChanges__";function Oc(e){return e[Rc]||null}function xf(e,t){return e[Rc]=t}var Ta=null;var N=function(e,t=null,n){Ta?.(e,t,n)},kc="svg",Af="math";function xe(e){for(;Array.isArray(e);)e=e[Re];return e}function Fc(e,t){return xe(t[e])}function Oe(e,t){return xe(t[e.index])}function Li(e,t){return e.data[t]}function ji(e,t){return e[t]}function Rf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Ie(e,t){let n=t[e];return Be(n)?n:n[Re]}function Vi(e){return(e[m]&128)===128}function mt(e,t){return t==null?null:e[t]}function Pc(e){e[ut]=0}function Bi(e){e[m]&1024||(e[m]|=1024,Vi(e)&&Ir(e))}function Of(e,t){for(;e>0;)t=t[Et],e--;return t}function Yt(e){return!!(e[m]&9216||e[ie]?.dirty)}function jo(e){e[Ne].changeDetectionScheduler?.notify(8),e[m]&64&&(e[m]|=1024),Yt(e)&&Ir(e)}function Ir(e){e[Ne].changeDetectionScheduler?.notify(0);let t=Ke(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!Vi(t)));)t=Ke(t)}function Lc(e,t){if(wt(e))throw new _(911,!1);e[Ve]===null&&(e[Ve]=[]),e[Ve].push(t)}function kf(e,t){if(e[Ve]===null)return;let n=e[Ve].indexOf(t);n!==-1&&e[Ve].splice(n,1)}function Ke(e){let t=e[ae];return tt(t)?t[ae]:t}function jc(e){return e[Kn]??=[]}function Vc(e){return e.cleanup??=[]}var v={lFrame:Zc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Vo=!1;function Ff(){return v.lFrame.elementDepthCount}function Pf(){v.lFrame.elementDepthCount++}function Lf(){v.lFrame.elementDepthCount--}function Bc(){return v.bindingsEnabled}function jf(){return v.skipHydrationRootTNode!==null}function Vf(e){return v.skipHydrationRootTNode===e}function Bf(){v.skipHydrationRootTNode=null}function C(){return v.lFrame.lView}function z(){return v.lFrame.tView}function NC(e){return v.lFrame.contextLView=e,e[V]}function xC(e){return v.lFrame.contextLView=null,e}function Ce(){let e=Hc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Hc(){return v.lFrame.currentTNode}function Hf(){let e=v.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Qt(e,t){let n=v.lFrame;n.currentTNode=e,n.isParent=t}function $c(){return v.lFrame.isParent}function $f(){v.lFrame.isParent=!1}function Uc(){return Vo}function Na(e){let t=Vo;return Vo=e,t}function wr(){let e=v.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function zc(){return v.lFrame.bindingIndex}function Uf(e){return v.lFrame.bindingIndex=e}function Ct(){return v.lFrame.bindingIndex++}function Cr(e){let t=v.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function zf(){return v.lFrame.inI18n}function Gf(e,t){let n=v.lFrame;n.bindingIndex=n.bindingRootIndex=e,Bo(t)}function Wf(){return v.lFrame.currentDirectiveIndex}function Bo(e){v.lFrame.currentDirectiveIndex=e}function qf(e){let t=v.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Gc(e){v.lFrame.currentQueryIndex=e}function Zf(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[we]:null}function Wc(e,t,n){if(n&I.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&I.Host);)if(o=Zf(i),o===null||(i=i[Et],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=v.lFrame=qc();return r.currentTNode=t,r.lView=e,!0}function Hi(e){let t=qc(),n=e[w];v.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function qc(){let e=v.lFrame,t=e===null?null:e.child;return t===null?Zc(e):t}function Zc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Yc(){let e=v.lFrame;return v.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Qc=Yc;function $i(){let e=Yc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Yf(e){return(v.lFrame.contextLView=Of(e,v.lFrame.contextLView))[V]}function be(){return v.lFrame.selectedIndex}function Je(e){v.lFrame.selectedIndex=e}function Ui(){let e=v.lFrame;return Li(e.tView,e.selectedIndex)}function AC(){v.lFrame.currentNamespace=kc}function RC(){Qf()}function Qf(){v.lFrame.currentNamespace=null}function Kf(){return v.lFrame.currentNamespace}var Kc=!0;function zi(){return Kc}function Gi(e){Kc=e}function Jf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Ac(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Jc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function $n(e,t,n){Xc(e,t,3,n)}function Un(e,t,n,r){(e[m]&3)===n&&Xc(e,t,n,r)}function Eo(e,t){let n=e[m];(n&3)===t&&(n&=16383,n+=1,e[m]=n)}function Xc(e,t,n,r){let o=r!==void 0?e[ut]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[ut]+=65536),(a<i||i==-1)&&(Xf(e,n,t,c),e[ut]=(e[ut]&4294901760)+c+2),c++}function xa(e,t){N(4,e,t);let n=y(null);try{t.call(e)}finally{y(n),N(5,e,t)}}function Xf(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[m]>>14<e[ut]>>16&&(e[m]&3)===t&&(e[m]+=16384,xa(a,i)):xa(a,i)}var dt=-1,Xe=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function ep(e){return(e.flags&8)!==0}function tp(e){return(e.flags&16)!==0}function np(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];op(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function rp(e){return e===3||e===4||e===6}function op(e){return e.charCodeAt(0)===64}function Ut(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Aa(e,n,o,null,t[++r]):Aa(e,n,o,null,null))}}return e}function Aa(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function ip(e){return e!==dt}function Ho(e){return e&32767}function sp(e){return e>>16}function $o(e,t){let n=sp(e),r=t;for(;n>0;)r=r[Et],n--;return r}var Uo=!0;function tr(e){let t=Uo;return Uo=e,t}var ap=256,eu=ap-1,tu=5,cp=0,ve={};function up(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(jt)&&(r=n[jt]),r==null&&(r=n[jt]=cp++);let o=r&eu,i=1<<o;t.data[e+(o>>tu)]|=i}function nr(e,t){let n=nu(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,Io(r.data,e),Io(t,null),Io(r.blueprint,null));let o=ru(e,t),i=e.injectorIndex;if(ip(o)){let s=Ho(o),a=$o(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Io(e,t){e.push(0,0,0,0,0,0,0,0,t)}function nu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ru(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=cu(o),r===null)return dt;if(n++,o=o[Et],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return dt}function zo(e,t,n){up(e,t,n)}function ou(e,t,n){if(n&I.Optional||e!==void 0)return e;Ai(t,"NodeInjector")}function iu(e,t,n,r){if(n&I.Optional&&r===void 0&&(r=null),(n&(I.Self|I.Host))===0){let o=e[pt],i=Z(void 0);try{return o?o.get(t,r,n&I.Optional):yc(t,r,n&I.Optional)}finally{Z(i)}}return ou(r,t,n)}function su(e,t,n,r=I.Default,o){if(e!==null){if(t[m]&2048&&!(r&I.Self)){let s=hp(e,t,n,r,ve);if(s!==ve)return s}let i=au(e,t,n,r,ve);if(i!==ve)return i}return iu(t,n,r,o)}function au(e,t,n,r,o){let i=fp(n);if(typeof i=="function"){if(!Wc(t,e,r))return r&I.Host?ou(o,n,r):iu(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&I.Optional))Ai(n);else return s}finally{Qc()}}else if(typeof i=="number"){let s=null,a=nu(e,t),c=dt,u=r&I.Host?t[me][we]:null;for((a===-1||r&I.SkipSelf)&&(c=a===-1?ru(e,t):t[a+8],c===dt||!Oa(r,!1)?a=-1:(s=t[w],a=Ho(c),t=$o(c,t)));a!==-1;){let l=t[w];if(Ra(i,a,l.data)){let f=lp(a,t,n,s,r,u);if(f!==ve)return f}c=t[a+8],c!==dt&&Oa(r,t[w].data[a+8]===u)&&Ra(i,a,t)?(s=l,a=Ho(c),t=$o(c,t)):a=-1}}return o}function lp(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?It(a)&&Uo:r!=s&&(a.type&3)!==0,u=o&I.Host&&i===a,l=dp(a,s,n,c,u);return l!==null?rr(t,s,l,a,o):ve}function dp(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,p=o?a+l:u;for(let d=f;d<p;d++){let h=s[d];if(d<c&&n===h||d>=c&&h.type===n)return d}if(o){let d=s[c];if(d&&Ee(d)&&d.type===n)return c}return null}function rr(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Xe){let a=i;a.resolving&&gc(Jd(s[n]));let c=tr(a.canSeeViewProviders);a.resolving=!0;let u,l=a.injectImpl?Z(a.injectImpl):null,f=Wc(e,r,I.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Jf(n,s[n],t)}finally{l!==null&&Z(l),tr(c),a.resolving=!1,Qc()}}return i}function fp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(jt)?e[jt]:void 0;return typeof t=="number"?t>=0?t&eu:pp:t}function Ra(e,t,n){let r=1<<e;return!!(n[t+(e>>tu)]&r)}function Oa(e,t){return!(e&I.Self)&&!(e&I.Host&&t)}var or=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return su(this._tNode,this._lView,t,vr(r),n)}};function pp(){return new or(Ce(),C())}function OC(e){return yr(()=>{let t=e.prototype.constructor,n=t[Wn]||Go(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Wn]||Go(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Go(e){return lc(e)?()=>{let t=Go(W(e));return t&&t()}:Ze(e)}function hp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!er(s);){let a=au(i,s,n,r|I.Self,ve);if(a!==ve)return a;let c=i.parent;if(!c){let u=s[Sc];if(u){let l=u.get(n,ve,r);if(l!==ve)return l}c=cu(s),s=s[Et]}i=c}return o}function cu(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[we]:null}function ka(e,t=null,n=null,r){let o=gp(e,t,n,r);return o.resolveInjectorInitializers(),o}function gp(e,t=null,n=null,r,o=new Set){let i=[n||Y,gf(e)];return r=r||(typeof e=="object"?void 0:oe(e)),new Vt(i,t||Fi(),r||null,o)}var zt=class e{static THROW_IF_NOT_FOUND=qe;static NULL=new Qn;static create(t,n){if(Array.isArray(t))return ka({name:""},n,t,"");{let r=t.name??"";return ka({name:r},t.parent,t.providers,r)}}static \u0275prov=te({token:e,providedIn:"any",factory:()=>Te(Dc)});static __NG_ELEMENT_ID__=-1};var mp=new M("");mp.__NG_ELEMENT_ID__=e=>{let t=Ce();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&I.Optional)return null;throw new _(204,!1)};var uu=!1,lu=(()=>{class e{static __NG_ELEMENT_ID__=yp;static __NG_ENV_ID__=n=>n}return e})(),Wo=class extends lu{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return wt(n)?(t(),()=>{}):(Lc(n,t),()=>kf(n,t))}};function yp(){return new Wo(C())}var yt=class{},Wi=new M("",{providedIn:"root",factory:()=>!1});var du=new M(""),qi=new M(""),br=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new St(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})();var qo=class extends de{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,_f()&&(this.destroyRef=S(lu,{optional:!0})??void 0,this.pendingTasks=S(br,{optional:!0})??void 0)}emit(t){let n=y(null);try{super.next(t)}finally{y(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof $&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},je=qo;function ir(...e){}function fu(e){let t,n;function r(){e=ir;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Fa(e){return queueMicrotask(()=>e()),()=>{e=ir}}var Zi="isAngularZone",sr=Zi+"_ID",vp=0,se=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new je(!1);onMicrotaskEmpty=new je(!1);onStable=new je(!1);onError=new je(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=uu}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Ip(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Zi)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Dp,ir,ir);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Dp={};function Yi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ep(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){fu(()=>{e.callbackScheduled=!1,Zo(e),e.isCheckStableRunning=!0,Yi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Zo(e)}function Ip(e){let t=()=>{Ep(e)},n=vp++;e._inner=e._inner.fork({name:"angular",properties:{[Zi]:!0,[sr]:n,[sr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(wp(c))return r.invokeTask(i,s,a,c);try{return Pa(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),La(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Pa(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Cp(c)&&t(),La(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Zo(e),Yi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Zo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Pa(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function La(e){e._nesting--,Yi(e)}var ar=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new je;onMicrotaskEmpty=new je;onStable=new je;onError=new je;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function wp(e){return pu(e,"__ignore_ng_zone__")}function Cp(e){return pu(e,"__scheduler_tick__")}function pu(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var vt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},bp=new M("",{providedIn:"root",factory:()=>{let e=S(se),t=S(vt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function _p(){return hu(Ce(),C())}function hu(e,t){return new gu(Oe(e,t))}var gu=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=_p}return e})();function Mp(e){return typeof e=="function"&&e[fe]!==void 0}function Qi(e,t){let n=lo(e,t?.equal),r=n[fe];return n.set=o=>Fn(r,o),n.update=o=>fo(r,o),n.asReadonly=Sp.bind(n),n}function Sp(){let e=this[fe];if(e.readonlyFn===void 0){let t=()=>this();t[fe]=e,e.readonlyFn=t}return e.readonlyFn}function mu(e){return Mp(e)&&typeof e.set=="function"}function yu(e){return(e.flags&128)===128}var vu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(vu||{}),Du=new Map,Tp=0;function Np(){return Tp++}function xp(e){Du.set(e[Er],e)}function Yo(e){Du.delete(e[Er])}var ja="__ngContext__";function Kt(e,t){Be(t)?(e[ja]=t[Er],xp(t)):e[ja]=t}function Eu(e){return wu(e[Ht])}function Iu(e){return wu(e[ge])}function wu(e){for(;e!==null&&!tt(e);)e=e[ge];return e}var Qo;function kC(e){Qo=e}function Cu(){if(Qo!==void 0)return Qo;if(typeof document<"u")return document;throw new _(210,!1)}var FC=new M("",{providedIn:"root",factory:()=>Ap}),Ap="ng",Rp=new M(""),PC=new M("",{providedIn:"platform",factory:()=>"unknown"});var LC=new M("",{providedIn:"root",factory:()=>Cu().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Op="h",kp="b";var bu=!1,Fp=new M("",{providedIn:"root",factory:()=>bu});var _u=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(_u||{}),Mu=new M(""),Va=new Set;function _r(e){Va.has(e)||(Va.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Pp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})();var Lp=(e,t,n,r)=>{};function jp(e,t,n,r){Lp(e,t,n,r)}var Vp=()=>null;function Su(e,t,n=!1){return Vp(e,t,n)}function Tu(e,t){let n=e.contentQueries;if(n!==null){let r=y(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Gc(i),a.contentQueries(2,t[s],s)}}}finally{y(r)}}}function Ko(e,t,n){Gc(0);let r=y(null);try{t(e,n)}finally{y(r)}}function Nu(e,t,n){if(Nc(t)){let r=y(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{y(r)}}}var Gt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Gt||{});var Ln;function Bp(){if(Ln===void 0&&(Ln=null,Le.trustedTypes))try{Ln=Le.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ln}function Mr(e){return Bp()?.createHTML(e)||e}var jn;function Hp(){if(jn===void 0&&(jn=null,Le.trustedTypes))try{jn=Le.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jn}function Ba(e){return Hp()?.createHTML(e)||e}var Ae=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cc})`}},Jo=class extends Ae{getTypeName(){return"HTML"}},Xo=class extends Ae{getTypeName(){return"Style"}},ei=class extends Ae{getTypeName(){return"Script"}},ti=class extends Ae{getTypeName(){return"URL"}},ni=class extends Ae{getTypeName(){return"ResourceURL"}};function Sr(e){return e instanceof Ae?e.changingThisBreaksApplicationSecurity:e}function xu(e,t){let n=$p(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${cc})`)}return n===t}function $p(e){return e instanceof Ae&&e.getTypeName()||null}function jC(e){return new Jo(e)}function VC(e){return new Xo(e)}function BC(e){return new ei(e)}function HC(e){return new ti(e)}function $C(e){return new ni(e)}function Up(e){let t=new oi(e);return zp()?new ri(t):t}var ri=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Mr(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},oi=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Mr(t),n}};function zp(){try{return!!new window.DOMParser().parseFromString(Mr(""),"text/html")}catch{return!1}}var Gp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Au(e){return e=String(e),e.match(Gp)?e:"unsafe:"+e}function ke(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Jt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Ru=ke("area,br,col,hr,img,wbr"),Ou=ke("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ku=ke("rp,rt"),Wp=Jt(ku,Ou),qp=Jt(Ou,ke("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")),Zp=Jt(ku,ke("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")),Ha=Jt(Ru,qp,Zp,Wp),Fu=ke("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Yp=ke("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"),Qp=ke("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"),Kp=Jt(Fu,Yp,Qp),Jp=ke("script,style,template");var ii=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=th(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=eh(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=$a(t).toLowerCase();if(!Ha.hasOwnProperty(n))return this.sanitizedSomething=!0,!Jp.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!Kp.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;Fu[a]&&(c=Au(c)),this.buf.push(" ",s,'="',Ua(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=$a(t).toLowerCase();Ha.hasOwnProperty(n)&&!Ru.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Ua(t))}};function Xp(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function eh(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Pu(t);return t}function th(e){let t=e.firstChild;if(t&&Xp(e,t))throw Pu(t);return t}function $a(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Pu(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var nh=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rh=/([^\#-~ |!])/g;function Ua(e){return e.replace(/&/g,"&amp;").replace(nh,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(rh,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Vn;function oh(e,t){let n=null;try{Vn=Vn||Up(e);let r=t?String(t):"";n=Vn.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Vn.getInertBodyElement(r)}while(r!==i);let a=new ii().sanitizeChildren(za(n)||n);return Mr(a)}finally{if(n){let r=za(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function za(e){return"content"in e&&ih(e)?e.content:null}function ih(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}function sh(e,t){return e.createText(t)}function ah(e,t,n){e.setValue(t,n)}function Lu(e,t,n){return e.createElement(t,n)}function si(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ju(e,t,n){e.appendChild(t,n)}function Ga(e,t,n,r,o){r!==null?si(e,t,n,r,o):ju(e,t,n)}function ch(e,t,n){e.removeChild(null,t,n)}function uh(e,t,n){e.setAttribute(t,"style",n)}function lh(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Vu(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&np(e,t,r),o!==null&&lh(e,t,o),i!==null&&uh(e,t,i)}var Ki=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ki||{});function UC(e){let t=Bu();return t?Ba(t.sanitize(Ki.HTML,e)||""):xu(e,"HTML")?Ba(Sr(e)):oh(Cu(),De(e))}function zC(e){let t=Bu();return t?t.sanitize(Ki.URL,e)||"":xu(e,"URL")?Sr(e):Au(De(e))}function Bu(){let e=C();return e&&e[Ne].sanitizer}function GC(e){return e.ownerDocument}function dh(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Hu="ng-template";function fh(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&dh(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Ji(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Ji(e){return e.type===4&&e.value!==Hu}function ph(e,t,n){let r=e.type===4&&!n?Hu:e.value;return t===r}function hh(e,t,n){let r=4,o=e.attrs,i=o!==null?yh(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!pe(r)&&!pe(c))return!1;if(s&&pe(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!ph(e,c,n)||c===""&&t.length===1){if(pe(r))return!1;s=!0}}else if(r&8){if(o===null||!fh(e,o,c,n)){if(pe(r))return!1;s=!0}}else{let u=t[++a],l=gh(c,o,Ji(e),n);if(l===-1){if(pe(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":f=o[l+1].toLowerCase(),r&2&&u!==f){if(pe(r))return!1;s=!0}}}}return pe(r)||s}function pe(e){return(e&1)===0}function gh(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return vh(t,e)}function mh(e,t,n=!1){for(let r=0;r<t.length;r++)if(hh(e,t[r],n))return!0;return!1}function yh(e){for(let t=0;t<e.length;t++){let n=e[t];if(rp(n))return t}return e.length}function vh(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Wa(e,t){return e?":not("+t.trim()+")":t}function Dh(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!pe(s)&&(t+=Wa(i,o),o=""),r=s,i=i||!pe(r);n++}return o!==""&&(t+=Wa(i,o)),t}function Eh(e){return e.map(Dh).join(",")}function Ih(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!pe(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var q={};function Xi(e,t,n,r,o,i,s,a,c,u,l){let f=U+r,p=f+o,d=wh(f,p),h=typeof u=="function"?u():u;return d[w]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l}}function wh(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:q);return n}function Ch(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Xi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function es(e,t,n,r,o,i,s,a,c,u,l){let f=t.blueprint.slice();return f[Re]=o,f[m]=r|4|128|8|64|1024,(u!==null||e&&e[m]&2048)&&(f[m]|=2048),Pc(f),f[ae]=f[Et]=e,f[V]=n,f[Ne]=s||e&&e[Ne],f[B]=a||e&&e[B],f[pt]=c||e&&e[pt]||null,f[we]=i,f[Er]=Np(),f[Bt]=l,f[Sc]=u,f[me]=t.type==2?e[me]:f,f}function bh(e,t,n){let r=Oe(t,e),o=Ch(n),i=e[Ne].rendererFactory,s=zu(e,es(e,o,null,$u(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function $u(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Uu(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function zu(e,t){return e[Ht]?e[Sa][ge]=t:e[Ht]=t,e[Sa]=t,t}function WC(e=1){Gu(z(),C(),be()+e,!1)}function Gu(e,t,n,r){if(!r)if((t[m]&3)===3){let i=e.preOrderCheckHooks;i!==null&&$n(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Un(t,i,0,n)}Je(n)}var Tr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Tr||{});function ai(e,t,n,r){let o=y(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Tr.SignalBased)!==0&&(c=t[i][fe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):xc(t,c,i,r)}finally{y(o)}}function Wu(e,t,n,r,o){let i=be(),s=r&2;try{Je(-1),s&&t.length>U&&Gu(e,t,U,!1),N(s?2:0,o),n(r,o)}finally{Je(i),N(s?3:1,o)}}function ts(e,t,n){xh(e,t,n),(n.flags&64)===64&&Ah(e,t,n)}function qu(e,t,n=Oe){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function _h(e,t,n,r){let i=r.get(Fp,bu)||n===Gt.ShadowDom,s=e.selectRootElement(t,i);return Mh(s),s}function Mh(e){Sh(e)}var Sh=()=>null;function Th(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Zu(e,t,n,r,o,i,s,a){if(!a&&ns(t,e,n,r,o)){It(t)&&Nh(n,t.index);return}if(t.type&3){let c=Oe(t,n);r=Th(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function Nh(e,t){let n=Ie(t,e);n[m]&16||(n[m]|=64)}function xh(e,t,n){let r=n.directiveStart,o=n.directiveEnd;It(n)&&bh(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||nr(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=rr(t,e,s,n);if(Kt(c,t),i!==null&&Fh(t,s-r,c,a,n,i),Ee(a)){let u=Ie(n.index,t);u[V]=rr(t,e,s,n)}}}function Ah(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Wf();try{Je(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Bo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Rh(c,u)}}finally{Je(-1),Bo(s)}}function Rh(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Yu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];mh(t,i.selectors,!1)&&(r??=[],Ee(i)?r.unshift(i):r.push(i))}return r}function Oh(e,t,n,r,o,i){let s=Oe(e,t);kh(t[B],s,i,e.value,n,r,o)}function kh(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?De(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function Fh(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];ai(r,n,c,u)}}function Ph(e,t){let n=e[pt],r=n?n.get(vt,null):null;r&&r.handleError(t)}function ns(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],f=t.data[u];ai(f,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];ai(l,u,r,o),a=!0}return a}function Lh(e,t){let n=Ie(t,e),r=n[w];jh(r,n);let o=n[Re];o!==null&&n[Bt]===null&&(n[Bt]=Su(o,n[pt])),N(18),rs(r,n,n[V]),N(19,n[V])}function jh(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function rs(e,t,n){Hi(t);try{let r=e.viewQuery;r!==null&&Ko(1,r,n);let o=e.template;o!==null&&Wu(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[gt]?.finishViewCreation(e),e.staticContentQueries&&Tu(e,t),e.staticViewQueries&&Ko(2,e.viewQuery,n);let i=e.components;i!==null&&Vh(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[m]&=-5,$i()}}function Vh(e,t){for(let n=0;n<t.length;n++)Lh(e,t[n])}function os(e,t,n,r){let o=y(null);try{let i=t.tView,a=e[m]&4096?4096:16,c=es(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[ht]=u;let l=e[gt];return l!==null&&(c[gt]=l.createEmbeddedView(i)),rs(i,c,n),c}finally{y(o)}}function is(e,t){return!t||t.firstChild===null||yu(e)}var Bh;function ss(e,t){return Bh(e,t)}var cr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(cr||{});function Qu(e){return(e.flags&32)===32}function lt(e,t,n,r,o){if(r!=null){let i,s=!1;tt(r)?i=r:Be(r)&&(s=!0,r=r[Re]);let a=xe(r);e===0&&n!==null?o==null?ju(t,n,a):si(t,n,a,o||null,!0):e===1&&n!==null?si(t,n,a,o||null,!0):e===2?ch(t,a,s):e===3&&t.destroyNode(a),i!=null&&Jh(t,e,i,n,o)}}function Hh(e,t){Ku(e,t),t[Re]=null,t[we]=null}function $h(e,t,n,r,o,i){r[Re]=o,r[we]=t,Nr(e,r,n,1,o,i)}function Ku(e,t){t[Ne].changeDetectionScheduler?.notify(9),Nr(e,t,t[B],2,null,null)}function Uh(e){let t=e[Ht];if(!t)return wo(e[w],e);for(;t;){let n=null;if(Be(t))n=t[Ht];else{let r=t[Q];r&&(n=r)}if(!n){for(;t&&!t[ge]&&t!==e;)Be(t)&&wo(t[w],t),t=t[ae];t===null&&(t=e),Be(t)&&wo(t[w],t),n=t&&t[ge]}t=n}}function as(e,t){let n=e[Xn],r=n.indexOf(t);n.splice(r,1)}function cs(e,t){if(wt(t))return;let n=t[B];n.destroyNode&&Nr(e,t,n,3,null,null),Uh(t)}function wo(e,t){if(wt(t))return;let n=y(null);try{t[m]&=-129,t[m]|=256,t[ie]&&ao(t[ie]),Gh(e,t),zh(e,t),t[w].type===1&&t[B].destroy();let r=t[ht];if(r!==null&&tt(t[ae])){r!==t[ae]&&as(r,t);let o=t[gt];o!==null&&o.detachView(e)}Yo(t)}finally{y(n)}}function zh(e,t){let n=e.cleanup,r=t[Kn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Kn]=null);let o=t[Ve];if(o!==null){t[Ve]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Jn];if(i!==null){t[Jn]=null;for(let s of i)s.destroy()}}function Gh(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Xe)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];N(4,a,c);try{c.call(a)}finally{N(5,a,c)}}else{N(4,o,i);try{i.call(o)}finally{N(5,o,i)}}}}}function Wh(e,t,n){return qh(e,t.parent,n)}function qh(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Re];if(It(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Gt.None||o===Gt.Emulated)return null}return Oe(r,n)}function Zh(e,t,n){return Qh(e,t,n)}function Yh(e,t,n){return e.type&40?Oe(e,n):null}var Qh=Yh,qa;function us(e,t,n,r){let o=Wh(e,r,t),i=t[B],s=r.parent||t[we],a=Zh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Ga(i,o,n[c],a,!1);else Ga(i,o,n,a,!1);qa!==void 0&&qa(i,r,t,n,o)}function Lt(e,t){if(t!==null){let n=t.type;if(n&3)return Oe(t,e);if(n&4)return ci(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Lt(e,r);{let o=e[t.index];return tt(o)?ci(-1,o):xe(o)}}else{if(n&128)return Lt(e,t.next);if(n&32)return ss(t,e)()||xe(e[t.index]);{let r=Ju(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ke(e[me]);return Lt(o,r)}else return Lt(e,t.next)}}}return null}function Ju(e,t){if(t!==null){let r=e[me][we],o=t.projection;return r.projection[o]}return null}function ci(e,t){let n=Q+e+1;if(n<t.length){let r=t[n],o=r[w].firstChild;if(o!==null)return Lt(r,o)}return t[$t]}function ls(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Kt(xe(a),r),n.flags|=2),!Qu(n))if(c&8)ls(e,t,n.child,r,o,i,!1),lt(t,e,o,a,i);else if(c&32){let u=ss(n,r),l;for(;l=u();)lt(t,e,o,l,i);lt(t,e,o,a,i)}else c&16?Kh(e,t,r,n,o,i):lt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Nr(e,t,n,r,o,i){ls(n,r,e.firstChild,t,o,i,!1)}function Kh(e,t,n,r,o,i){let s=n[me],c=s[we].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];lt(t,e,o,l,i)}else{let u=c,l=s[ae];yu(r)&&(u.flags|=128),ls(e,t,u,l,o,i,!0)}}function Jh(e,t,n,r,o){let i=n[$t],s=xe(n);i!==s&&lt(t,e,r,i,o);for(let a=Q;a<n.length;a++){let c=n[a];Nr(c[w],c,e,t,r,i)}}function Xh(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:cr.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=cr.Important),e.setStyle(n,r,o,i))}}function ur(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(xe(i)),tt(i)&&eg(i,r);let s=n.type;if(s&8)ur(e,t,n.child,r);else if(s&32){let a=ss(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Ju(t,n);if(Array.isArray(a))r.push(...a);else{let c=Ke(t[me]);ur(c[w],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function eg(e,t){for(let n=Q;n<e.length;n++){let r=e[n],o=r[w].firstChild;o!==null&&ur(r[w],r,o,t)}e[$t]!==e[Re]&&t.push(e[$t])}function Xu(e){if(e[Do]!==null){for(let t of e[Do])t.impl.addSequence(t);e[Do].length=0}}var el=[];function tg(e){return e[ie]??ng(e)}function ng(e){let t=el.pop()??Object.create(og);return t.lView=e,t}function rg(e){e.lView[ie]!==e&&(e.lView=null,el.push(e))}var og=ee(X({},Ot),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Ir(e.lView)},consumerOnSignalRead(){this.lView[ie]=this}});function ig(e){let t=e[ie]??Object.create(sg);return t.lView=e,t}var sg=ee(X({},Ot),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ke(e.lView);for(;t&&!tl(t[w]);)t=Ke(t);t&&Bi(t)},consumerOnSignalRead(){this.lView[ie]=this}});function tl(e){return e.type!==2}function nl(e){if(e[Jn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Jn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[m]&8192)}}var ag=100;function rl(e,t=!0,n=0){let o=e[Ne].rendererFactory,i=!1;i||o.begin?.();try{cg(e,n)}catch(s){throw t&&Ph(e,s),s}finally{i||o.end?.()}}function cg(e,t){let n=Uc();try{Na(!0),ui(e,t);let r=0;for(;Yt(e);){if(r===ag)throw new _(103,!1);r++,ui(e,1)}}finally{Na(n)}}function ug(e,t,n,r){if(wt(t))return;let o=t[m],i=!1,s=!1;Hi(t);let a=!0,c=null,u=null;i||(tl(e)?(u=tg(t),c=Rn(u)):to()===null?(a=!1,u=ig(t),c=Rn(u)):t[ie]&&(ao(t[ie]),t[ie]=null));try{Pc(t),Uf(e.bindingStartIndex),n!==null&&Wu(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let d=e.preOrderCheckHooks;d!==null&&$n(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Un(t,d,0,null),Eo(t,0)}if(s||lg(t),nl(t),ol(t,0),e.contentQueries!==null&&Tu(e,t),!i)if(l){let d=e.contentCheckHooks;d!==null&&$n(t,d)}else{let d=e.contentHooks;d!==null&&Un(t,d,1),Eo(t,1)}fg(e,t);let f=e.components;f!==null&&sl(t,f,0);let p=e.viewQuery;if(p!==null&&Ko(2,p,r),!i)if(l){let d=e.viewCheckHooks;d!==null&&$n(t,d)}else{let d=e.viewHooks;d!==null&&Un(t,d,2),Eo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[vo]){for(let d of t[vo])d();t[vo]=null}i||(Xu(t),t[m]&=-73)}catch(l){throw i||Ir(t),l}finally{u!==null&&(io(u,c),a&&rg(u)),$i()}}function ol(e,t){for(let n=Eu(e);n!==null;n=Iu(n))for(let r=Q;r<n.length;r++){let o=n[r];il(o,t)}}function lg(e){for(let t=Eu(e);t!==null;t=Iu(t)){if(!(t[m]&2))continue;let n=t[Xn];for(let r=0;r<n.length;r++){let o=n[r];Bi(o)}}}function dg(e,t,n){N(18);let r=Ie(t,e);il(r,n),N(19,r[V])}function il(e,t){Vi(e)&&ui(e,t)}function ui(e,t){let r=e[w],o=e[m],i=e[ie],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&so(i)),s||=!1,i&&(i.dirty=!1),e[m]&=-9217,s)ug(r,e,r.template,e[V]);else if(o&8192){nl(e),ol(e,1);let a=r.components;a!==null&&sl(e,a,1),Xu(e)}}function sl(e,t,n){for(let r=0;r<t.length;r++)dg(e,t[r],n)}function fg(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Je(~o);else{let i=o,s=n[++r],a=n[++r];Gf(s,i);let c=t[i];N(24,c),a(2,c),N(25,c)}}}finally{Je(-1)}}function ds(e,t){let n=Uc()?64:1088;for(e[Ne].changeDetectionScheduler?.notify(t);e;){e[m]|=n;let r=Ke(e);if(er(e)&&!r)return e;e=r}return null}function pg(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function al(e,t){let n=Q+t;if(n<e.length)return e[n]}function fs(e,t,n,r=!0){let o=t[w];if(hg(o,t,e,n),r){let s=ci(n,e),a=t[B],c=a.parentNode(e[$t]);c!==null&&$h(o,e[we],a,t,c,s)}let i=t[Bt];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function cl(e,t){let n=ps(e,t);return n!==void 0&&cs(n[w],n),n}function ps(e,t){if(e.length<=Q)return;let n=Q+t,r=e[n];if(r){let o=r[ht];o!==null&&o!==e&&as(o,r),t>0&&(e[n-1][ge]=r[ge]);let i=vc(e,Q+t);Hh(r[w],r);let s=i[gt];s!==null&&s.detachView(i[w]),r[ae]=null,r[ge]=null,r[m]&=-129}return r}function hg(e,t,n,r){let o=Q+r,i=n.length;r>0&&(n[o-1][ge]=t),r<i-Q?(t[ge]=n[o],uf(n,Q+r,t)):(n.push(t),t[ge]=null),t[ae]=n;let s=t[ht];s!==null&&n!==s&&ul(s,t);let a=t[gt];a!==null&&a.insertView(e),jo(t),t[m]|=128}function ul(e,t){let n=e[Xn],r=t[ae];if(Be(r))e[m]|=2;else{let o=r[ae][me];t[me]!==o&&(e[m]|=2)}n===null?e[Xn]=[t]:n.push(t)}var li=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[w];return ur(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[V]}set context(t){this._lView[V]=t}get destroyed(){return wt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ae];if(tt(t)){let n=t[Mf],r=n?n.indexOf(this):-1;r>-1&&(ps(t,r),vc(n,r))}this._attachedToViewContainer=!1}cs(this._lView[w],this._lView)}onDestroy(t){Lc(this._lView,t)}markForCheck(){ds(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[m]&=-129}reattach(){jo(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,rl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=er(this._lView),n=this._lView[ht];n!==null&&!t&&as(n,this._lView),Ku(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;let n=er(this._lView),r=this._lView[ht];r!==null&&!n&&ul(r,this._lView),jo(this._lView)}};function ZC(e){return Yt(e._lView)||!!(e._lView[m]&64)}function YC(e){Bi(e._cdRefInjectingView||e._lView)}function hs(e,t,n,r,o){let i=e.data[t];if(i===null)i=gg(e,t,n,r,o),zf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Hf();i.injectorIndex=s===null?-1:s.injectorIndex}return Qt(i,!0),i}function gg(e,t,n,r,o){let i=Hc(),s=$c(),a=s?i:i&&i.parent,c=e.data[t]=yg(e,a,n,t,r,o);return mg(e,c,i,s),c}function mg(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function yg(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return jf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var QC=new RegExp(`^(\\d+)*(${kp}|${Op})*(.*)`);var vg=()=>null;function gs(e,t){return vg(e,t)}var Dg=class{},ll=class{},di=class{resolveComponentFactory(t){throw Error(`No component factory found for ${oe(t)}.`)}},ms=class{static NULL=new di},lr=class{},Eg=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Ig()}return e})();function Ig(){let e=C(),t=Ce(),n=Ie(t.index,e);return(Be(n)?n:e)[B]}var wg=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>null})}return e})();var Co={},fi=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=vr(r);let o=this.injector.get(t,Co,r);return o!==Co||n===Co?o:this.parentInjector.get(t,n,r)}};function Za(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Ao(o,a);else if(i==2){let c=a,u=t[++s];r=Ao(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Fe(e,t=I.Default){let n=C();if(n===null)return Te(e,t);let r=Ce();return su(r,n,W(e),t)}function dl(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,u=null,l=bg(s);l===null?a=s:[a,c,u]=l,Sg(e,t,n,a,i,c,u)}i!==null&&r!==null&&Cg(n,r,i)}function Cg(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new _(-301,!1);r.push(t[o],i)}}function bg(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&Ee(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,_g(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function _g(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function Mg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Sg(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let d=r[p];!c&&Ee(d)&&(c=!0,Mg(e,n,p)),zo(nr(n,t),e,d.type)}Og(n,e.data.length,a);for(let p=0;p<a;p++){let d=r[p];d.providersResolver&&d.providersResolver(d)}let u=!1,l=!1,f=Uu(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let d=r[p];if(n.mergedAttrs=Ut(n.mergedAttrs,d.hostAttrs),Ng(e,n,t,f,d),Rg(f,d,o),s!==null&&s.has(d)){let[g,b]=s.get(d);n.directiveToIndex.set(d.type,[f,g+n.directiveStart,b+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let h=d.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),f++}Tg(e,n,i)}function Tg(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Ya(0,t,o,r),Ya(1,t,o,r),Ka(t,r,!1);else{let i=n.get(o);Qa(0,t,i,r),Qa(1,t,i,r),Ka(t,r,!0)}}}function Ya(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),fl(t,i)}}function Qa(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),fl(t,s)}}function fl(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ka(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Ji(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Ng(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Ze(o.type,!0)),s=new Xe(i,Ee(o),Fe);e.blueprint[r]=s,n[r]=s,xg(e,t,r,Uu(e,n,o.hostVars,q),o)}function xg(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Ag(s)!=a&&s.push(a),s.push(n,r,i)}}function Ag(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Rg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ee(t)&&(n[""]=e)}}function Og(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function pl(e,t,n,r,o,i,s,a){let c=t.consts,u=mt(c,s),l=hs(t,e,2,r,u);return i&&dl(t,n,l,mt(c,a),o),l.mergedAttrs=Ut(l.mergedAttrs,l.attrs),l.attrs!==null&&Za(l,l.attrs,!1),l.mergedAttrs!==null&&Za(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function hl(e,t){Jc(e,t),Nc(t)&&e.queries.elementEnd(t)}var pi=class extends ms{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Oi(t);return new hi(n,this.ngModule)}};function kg(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Tr.SignalBased)!==0};return o&&(i.transform=o),i})}function Fg(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Pg(e,t,n){let r=t instanceof Qe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new fi(n,r):n}function Lg(e){let t=e.get(lr,null);if(t===null)throw new _(407,!1);let n=e.get(wg,null),r=e.get(yt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function jg(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Lu(t,n,n==="svg"?kc:n==="math"?Af:null)}var hi=class extends ll{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=kg(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Fg(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Eh(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){N(22);let i=y(null);try{let s=this.componentDef,a=r?["ng-version","19.2.20"]:Ih(this.componentDef.selectors[0]),c=Xi(0,null,null,1,0,null,null,null,null,[a],null),u=Pg(s,o||this.ngModule,t),l=Lg(u),f=l.rendererFactory.createRenderer(null,s),p=r?_h(f,r,s.encapsulation,u):jg(s,f),d=es(null,c,null,512|$u(s),null,null,l,f,u,null,Su(p,u,!0));d[U]=p,Hi(d);let h=null;try{let g=pl(U,c,d,"#host",()=>[this.componentDef],!0,0);p&&(Vu(f,p,g),Kt(p,d)),ts(c,d,g),Nu(c,g,d),hl(c,g),n!==void 0&&Vg(g,this.ngContentSelectors,n),h=Ie(g.index,d),d[V]=h[V],rs(c,d,null)}catch(g){throw h!==null&&Yo(h),Yo(d),g}finally{N(23),$i()}return new gi(this.componentType,d)}finally{y(i)}}},gi=class extends Dg{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Li(n[w],U),this.location=hu(this._tNode,n),this.instance=Ie(this._tNode.index,n)[V],this.hostView=this.changeDetectorRef=new li(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=ns(r,o[w],o,t,n);this.previousInputValues.set(t,n);let s=Ie(r.index,o);ds(s,1)}get injector(){return new or(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Vg(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Bg=()=>!1;function Hg(e,t,n){return Bg(e,t,n)}var dr=class{};var fr=class extends dr{injector;componentFactoryResolver=new pi(this);instance=null;constructor(t){super();let n=new Vt([...t.providers,{provide:dr,useValue:this},{provide:ms,useValue:this.componentFactoryResolver}],t.parent||Fi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function $g(e,t,n=null){return new fr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Ug=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Ic(!1,n.type),o=r.length>0?$g([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=te({token:e,providedIn:"environment",factory:()=>new e(Te(Qe))})}return e})();function tb(e){return yr(()=>{let t=ml(e),n=ee(X({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===vu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Ug).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Gt.Emulated,styles:e.styles||Y,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&_r("NgStandalone"),yl(n);let r=e.dependencies;return n.directiveDefs=Ja(r,!1),n.pipeDefs=Ja(r,!0),n.id=Yg(n),n})}function zg(e){return Oi(e)||ff(e)}function Gg(e){return e!==null}function gl(e){return yr(()=>({type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Wg(e,t){if(e==null)return Ye;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Tr.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function qg(e){if(e==null)return Ye;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Zg(e){return yr(()=>{let t=ml(e);return yl(t),t})}function bt(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function ml(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Ye,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wg(e.inputs,t),outputs:qg(e.outputs),debugInfo:null}}function yl(e){e.features?.forEach(t=>t(e))}function Ja(e,t){if(!e)return null;let n=t?pf:zg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Gg)}function Yg(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Qg(e){return Object.getPrototypeOf(e.prototype).constructor}function Kg(e){let t=Qg(e.type),n=!0,r=[e];for(;t;){let o;if(Ee(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=bo(e.inputs),s.declaredInputs=bo(e.declaredInputs),s.outputs=bo(e.outputs);let a=o.hostBindings;a&&nm(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&em(e,c),u&&tm(e,u),Jg(e,o),Gd(e.outputs,o.outputs),Ee(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Kg&&(n=!1)}}t=Object.getPrototypeOf(t)}Xg(r)}function Jg(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function Xg(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ut(o.hostAttrs,n=Ut(n,o.hostAttrs))}}function bo(e){return e===Ye?{}:e===Y?[]:e}function em(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function tm(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function nm(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function xr(e,t,n){return e[t]=n}function rm(e,t){return e[t]}function ce(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ys(e,t,n,r){let o=ce(e,t,n);return ce(e,t+1,r)||o}function vl(e,t,n,r,o){let i=ys(e,t,n,r);return ce(e,t+2,o)||i}function om(e,t,n,r,o,i,s,a,c){let u=t.consts,l=hs(t,e,4,s||null,a||null);Bc()&&dl(t,n,l,mt(u,c),Yu),l.mergedAttrs=Ut(l.mergedAttrs,l.attrs),Jc(t,l);let f=l.tView=Xi(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}function mi(e,t,n,r,o,i,s,a,c,u){let l=n+U,f=t.firstCreatePass?om(l,t,e,r,o,i,s,a,c):t.data[l];Qt(f,!1);let p=sm(t,e,f,n);zi()&&us(t,e,p,f),Kt(p,e);let d=pg(p,e,p,f);return e[l]=d,zu(e,d),Hg(d,f,e),Pi(f)&&ts(t,e,f),c!=null&&qu(e,f,u),f}function im(e,t,n,r,o,i,s,a){let c=C(),u=z(),l=mt(u.consts,i);return mi(c,u,e,t,n,r,o,l,s,a),im}var sm=am;function am(e,t,n,r){return Gi(!0),t[B].createComment("")}var cm=new M("");var um=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>new yi})}return e})(),yi=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function vs(e){return!!e&&typeof e.then=="function"}function Dl(e){return!!e&&typeof e.subscribe=="function"}var lm=new M("");var El=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=S(lm,{optional:!0})??[];injector=S(zt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Mc(this.injector,o);if(vs(i))n.push(i);else if(Dl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dm=new M("");function fm(){uo(()=>{throw new _(600,!1)})}function pm(e){return e.isBoundToModule}var hm=10;var Wt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=S(bp);afterRenderManager=S(Pp);zonelessEnabled=S(Wi);rootEffectScheduler=S(um);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new de;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=S(br).hasPendingTasks.pipe(Ge(n=>!n));constructor(){S(Mu,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=S(Qe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=zt.NULL){N(10);let i=n instanceof ll;if(!this._injector.get(El).done){let d="";throw new _(405,d)}let a;i?a=n:a=this._injector.get(ms).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=pm(a)?void 0:this._injector.get(dr),u=r||a.selector,l=a.create(o,[],u,c),f=l.location.nativeElement,p=l.injector.get(cm,null);return p?.registerApplication(f),l.onDestroy(()=>{this.detachView(l.hostView),zn(this.components,l),p?.unregisterApplication(f)}),this._loadComponent(l),N(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){N(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(_u.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _(101,!1);let n=y(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,y(n),this.afterTick.next(),N(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(lr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<hm;)N(14),this.synchronizeOnce(),N(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)gm(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Yt(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;zn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(dm,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>zn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function gm(e,t,n,r){if(!n&&!Yt(e))return;rl(e,t,n&&!r?0:1)}function mm(e,t,n,r){let o=C(),i=Ct();if(ce(o,i,t)){let s=z(),a=Ui();Oh(a,o,e,t,n,r)}return mm}function Il(e,t,n,r){return ce(e,Ct(),n)?t+De(n)+r:q}function ym(e,t,n,r,o,i){let s=zc(),a=ys(e,s,n,o);return Cr(2),a?t+De(n)+r+De(o)+i:q}function vm(e,t,n,r,o,i,s,a){let c=zc(),u=vl(e,c,n,o,s);return Cr(3),u?t+De(n)+r+De(o)+i+De(s)+a:q}function Bn(e,t){return e<<17|t<<2}function et(e){return e>>17&32767}function Dm(e){return(e&2)==2}function Em(e,t){return e&131071|t<<17}function vi(e){return e|2}function Dt(e){return(e&131068)>>2}function _o(e,t){return e&-131069|t<<2}function Im(e){return(e&1)===1}function Di(e){return e|1}function wm(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=et(s),c=Dt(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let f=n;l=f[1],(l===null||Zt(f,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=et(e[a+1]);e[r+1]=Bn(p,a),p!==0&&(e[p+1]=_o(e[p+1],r)),e[a+1]=Em(e[a+1],r)}else e[r+1]=Bn(a,0),a!==0&&(e[a+1]=_o(e[a+1],r)),a=r;else e[r+1]=Bn(c,0),a===0?a=r:e[c+1]=_o(e[c+1],r),c=r;u&&(e[r+1]=vi(e[r+1])),Xa(e,l,r,!0),Xa(e,l,r,!1),Cm(t,l,e,r,i),s=Bn(a,c),i?t.classBindings=s:t.styleBindings=s}function Cm(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Zt(i,t)>=0&&(n[r+1]=Di(n[r+1]))}function Xa(e,t,n,r){let o=e[n+1],i=t===null,s=r?et(o):Dt(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];bm(c,t)&&(a=!0,e[s+1]=r?Di(u):vi(u)),s=r?et(u):Dt(u)}a&&(e[n+1]=r?vi(o):Di(o))}function bm(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Zt(e,t)>=0:!1}var he={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _m(e){return e.substring(he.key,he.keyEnd)}function Mm(e){return Sm(e),wl(e,Cl(e,0,he.textEnd))}function wl(e,t){let n=he.textEnd;return n===t?-1:(t=he.keyEnd=Tm(e,he.key=t,n),Cl(e,t,n))}function Sm(e){he.key=0,he.keyEnd=0,he.value=0,he.valueEnd=0,he.textEnd=e.length}function Cl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Tm(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Nm(e,t,n){let r=C(),o=Ct();if(ce(r,o,t)){let i=z(),s=Ui();Zu(i,s,r,e,t,r[B],n,!1)}return Nm}function Ei(e,t,n,r,o){ns(t,e,n,o?"class":"style",r)}function xm(e,t,n){return _l(e,t,n,!1),xm}function Am(e,t){return _l(e,t,null,!0),Am}function nb(e){Ml(Lm,bl,e,!0)}function bl(e,t){for(let n=Mm(t);n>=0;n=wl(t,n))Dr(e,_m(t),!0)}function _l(e,t,n,r){let o=C(),i=z(),s=Cr(2);if(i.firstUpdatePass&&Tl(i,e,s,r),t!==q&&ce(o,s,t)){let a=i.data[be()];Nl(i,a,o,o[B],e,o[s+1]=Vm(t,n),r,s)}}function Ml(e,t,n,r){let o=z(),i=Cr(2);o.firstUpdatePass&&Tl(o,null,i,r);let s=C();if(n!==q&&ce(s,i,n)){let a=o.data[be()];if(xl(a,r)&&!Sl(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Ao(c,n||"")),Ei(o,a,s,n,r)}else jm(o,a,s,s[B],s[i+1],s[i+1]=Pm(e,t,n),r,i)}}function Sl(e,t){return t>=e.expandoStartIndex}function Tl(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[be()],s=Sl(e,n);xl(i,r)&&t===null&&!s&&(t=!1),t=Rm(o,i,t,r),wm(o,i,t,n,s,r)}}function Rm(e,t,n,r){let o=qf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Mo(null,e,t,n,r),n=qt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Mo(o,e,t,n,r),i===null){let c=Om(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Mo(null,e,t,c[1],r),c=qt(c,t.attrs,r),km(e,t,r,c))}else i=Fm(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Om(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Dt(r)!==0)return e[et(r)]}function km(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[et(o)]=r}function Fm(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=qt(r,s,n)}return qt(r,t.attrs,n)}function Mo(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=qt(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function qt(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Dr(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Pm(e,t,n){if(n==null||n==="")return Y;let r=[],o=Sr(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function Lm(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Dr(e,r,n)}function jm(e,t,n,r,o,i,s,a){o===q&&(o=Y);let c=0,u=0,l=0<o.length?o[0]:null,f=0<i.length?i[0]:null;for(;l!==null||f!==null;){let p=c<o.length?o[c+1]:void 0,d=u<i.length?i[u+1]:void 0,h=null,g;l===f?(c+=2,u+=2,p!==d&&(h=f,g=d)):f===null||l!==null&&l<f?(c+=2,h=l):(u+=2,h=f,g=d),h!==null&&Nl(e,t,n,r,h,g,s,a),l=c<o.length?o[c]:null,f=u<i.length?i[u]:null}}function Nl(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=Im(u)?ec(c,t,n,o,Dt(u),s):void 0;if(!pr(l)){pr(i)||Dm(u)&&(i=ec(c,null,n,o,a,s));let f=Fc(be(),n);Xh(r,s,f,o,i)}}function ec(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,f=l===null,p=n[o+1];p===q&&(p=f?Y:void 0);let d=f?mo(p,r):l===r?p:void 0;if(u&&!pr(d)&&(d=mo(c,r)),pr(d)&&(a=d,s))return a;let h=e[o+1];o=s?et(h):Dt(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=mo(c,r))}return a}function pr(e){return e!==void 0}function Vm(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=oe(Sr(e)))),e}function xl(e,t){return(e.flags&(t?8:16))!==0}function rb(e,t,n){let r=C(),o=Il(r,e,t,n);Ml(Dr,bl,o,!0)}var Ii=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function So(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Bm(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],f=So(i,u,i,l,n);if(f!==0){f<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),d=t[c],h=So(s,p,c,d,n);if(h!==0){h<0&&e.updateValue(s,d),s--,c--;continue}let g=n(i,u),b=n(s,p),D=n(i,l);if(Object.is(D,b)){let H=n(c,d);Object.is(H,g)?(e.swap(i,s),e.updateValue(s,d),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new hr,o??=nc(e,i,s,n),wi(e,r,i,D))e.updateValue(i,l),i++,s++;else if(o.has(D))r.set(g,e.detach(i)),s--;else{let H=e.create(i,t[i]);e.attach(i,H),i++,s++}}for(;i<=c;)tc(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),f=u.value,p=So(i,l,i,f,n);if(p!==0)p<0&&e.updateValue(i,f),i++,u=c.next();else{r??=new hr,o??=nc(e,i,s,n);let d=n(i,f);if(wi(e,r,i,d))e.updateValue(i,f),i++,s++,u=c.next();else if(!o.has(d))e.attach(i,e.create(i,f)),i++,s++,u=c.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!u.done;)tc(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function wi(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function tc(e,t,n,r,o){if(wi(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function nc(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var hr=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function ob(e,t){_r("NgControlFlow");let n=C(),r=Ct(),o=n[r]!==q?n[r]:-1,i=o!==-1?gr(n,U+o):void 0,s=0;if(ce(n,r,e)){let a=y(null);try{if(i!==void 0&&cl(i,s),e!==-1){let c=U+e,u=gr(n,c),l=Mi(n[w],c),f=gs(u,l.tView.ssrId),p=os(n,l,t,{dehydratedView:f});fs(u,p,s,is(l,f))}}finally{y(a)}}else if(i!==void 0){let a=al(i,s);a!==void 0&&(a[V]=t)}}var Ci=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Q}};function ib(e){return e}function sb(e,t){return t}var bi=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ab(e,t,n,r,o,i,s,a,c,u,l,f,p){_r("NgControlFlow");let d=C(),h=z(),g=c!==void 0,b=C(),D=a?s.bind(b[me][V]):s,H=new bi(g,D);b[U+e]=H,mi(d,h,e+1,t,n,r,o,mt(h.consts,i)),g&&mi(d,h,e+2,c,u,l,f,mt(h.consts,p))}var _i=class extends Ii{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-Q}at(t){return this.getLView(t)[V].$implicit}attach(t,n){let r=n[Bt];this.needsIndexUpdate||=t!==this.length,fs(this.lContainer,n,t,is(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Hm(this.lContainer,t)}create(t,n){let r=gs(this.lContainer,this.templateTNode.tView.ssrId),o=os(this.hostLView,this.templateTNode,new Ci(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){cs(t[w],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[V].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[V].$index=t}getLView(t){return $m(this.lContainer,t)}};function cb(e){let t=y(null),n=be();try{let r=C(),o=r[w],i=r[n],s=n+1,a=gr(r,s);if(i.liveCollection===void 0){let u=Mi(o,s);i.liveCollection=new _i(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(Bm(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let u=Ct(),l=c.length===0;if(ce(r,u,l)){let f=n+2,p=gr(r,f);if(l){let d=Mi(o,f),h=gs(p,d.tView.ssrId),g=os(r,d,void 0,{dehydratedView:h});fs(p,g,0,is(d,h))}else cl(p,0)}}}finally{y(t)}}function gr(e,t){return e[t]}function Hm(e,t){return ps(e,t)}function $m(e,t){return al(e,t)}function Mi(e,t){return Li(e,t)}function Al(e,t,n,r){let o=C(),i=z(),s=U+e,a=o[B],c=i.firstCreatePass?pl(s,i,o,t,Yu,Bc(),n,r):i.data[s],u=zm(i,o,c,a,t,e);o[s]=u;let l=Pi(c);return Qt(c,!0),Vu(a,u,c),!Qu(c)&&zi()&&us(i,o,u,c),(Ff()===0||l)&&Kt(u,o),Pf(),l&&(ts(i,o,c),Nu(i,c,o)),r!==null&&qu(o,c),Al}function Rl(){let e=Ce();$c()?$f():(e=e.parent,Qt(e,!1));let t=e;Vf(t)&&Bf(),Lf();let n=z();return n.firstCreatePass&&hl(n,t),t.classesWithoutHost!=null&&ep(t)&&Ei(n,t,C(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&tp(t)&&Ei(n,t,C(),t.stylesWithoutHost,!1),Rl}function Um(e,t,n,r){return Al(e,t,n,r),Rl(),Um}var zm=(e,t,n,r,o,i)=>(Gi(!0),Lu(r,o,Kf()));function ub(){return C()}var We=void 0;function Gm(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Wm=["en",[["a","p"],["AM","PM"],We],[["AM","PM"],We,We],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],We,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],We,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",We,"{1} 'at' {0}",We],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Gm],To={};function ne(e){let t=qm(e),n=rc(t);if(n)return n;let r=t.split("-")[0];if(n=rc(r),n)return n;if(r==="en")return Wm;throw new _(701,!1)}function rc(e){return e in To||(To[e]=Le.ng&&Le.ng.common&&Le.ng.common.locales&&Le.ng.common.locales[e]),To[e]}var P=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(P||{});function qm(e){return e.toLowerCase().replace(/_/g,"-")}var mr="en-US";var Zm=mr;function Ym(e){typeof e=="string"&&(Zm=e.toLowerCase().replace(/_/g,"-"))}function oc(e,t,n){return function r(o){if(o===Function)return n;let i=It(e)?Ie(e.index,t):t;ds(i,5);let s=t[V],a=ic(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=ic(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function ic(e,t,n,r){let o=y(null);try{return N(6,t,n),n(r)!==!1}catch(i){return Qm(e,i),!1}finally{N(7,t,n),y(o)}}function Qm(e,t){let n=e[pt],r=n?n.get(vt,null):null;r&&r.handleError(t)}function sc(e,t,n,r,o,i){let s=t[n],a=t[w],u=a.data[n].outputs[r],l=s[u],f=a.firstCreatePass?Vc(a):null,p=jc(t),d=l.subscribe(i),h=p.length;p.push(i,d),f&&f.push(o,e.index,h,-(h+1))}function Km(e,t,n,r){let o=C(),i=z(),s=Ce();return Ol(i,o,o[B],s,e,t,r),Km}function Jm(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Kn],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Ol(e,t,n,r,o,i,s){let a=Pi(r),u=e.firstCreatePass?Vc(e):null,l=jc(t),f=!0;if(r.type&3||s){let p=Oe(r,t),d=s?s(p):p,h=l.length,g=s?D=>s(xe(D[r.index])):r.index,b=null;if(!s&&a&&(b=Jm(e,t,o,r.index)),b!==null){let D=b.__ngLastListenerFn__||b;D.__ngNextListenerFn__=i,b.__ngLastListenerFn__=i,f=!1}else{i=oc(r,t,i),jp(t,d,o,i);let D=n.listen(d,o,i);l.push(i,D),u&&u.push(o,g,h,h+1)}}else i=oc(r,t,i);if(f){let p=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h<d.length;h+=2){let g=d[h],b=d[h+1];sc(r,t,g,b,o,i)}if(p&&p.length)for(let h of p)sc(r,t,h,o,o,i)}}function lb(e=1){return Yf(e)}function db(e,t=""){let n=C(),r=z(),o=e+U,i=r.firstCreatePass?hs(r,o,1,t,null):r.data[o],s=Xm(r,n,i,t,e);n[o]=s,zi()&&us(r,n,s,i),Qt(i,!1)}var Xm=(e,t,n,r,o)=>(Gi(!0),sh(t[B],r));function ey(e){return kl("",e,""),ey}function kl(e,t,n){let r=C(),o=Il(r,e,t,n);return o!==q&&Ds(r,be(),o),kl}function ty(e,t,n,r,o){let i=C(),s=ym(i,e,t,n,r,o);return s!==q&&Ds(i,be(),s),ty}function ny(e,t,n,r,o,i,s){let a=C(),c=vm(a,e,t,n,r,o,i,s);return c!==q&&Ds(a,be(),c),ny}function Ds(e,t,n){let r=Fc(t,e);ah(e[B],r,n)}function ry(e,t,n){mu(t)&&(t=t());let r=C(),o=Ct();if(ce(r,o,t)){let i=z(),s=Ui();Zu(i,s,r,e,t,r[B],n,!1)}return ry}function fb(e,t){let n=mu(e);return n&&e.set(t),n}function oy(e,t){let n=C(),r=z(),o=Ce();return Ol(r,n,n[B],o,e,t),oy}function iy(e,t,n){let r=z();if(r.firstCreatePass){let o=Ee(e);Si(n,r.data,r.blueprint,o,!0),Si(t,r.data,r.blueprint,o,!1)}}function Si(e,t,n,r,o){if(e=W(e),Array.isArray(e))for(let i=0;i<e.length;i++)Si(e[i],t,n,r,o);else{let i=z(),s=C(),a=Ce(),c=ft(e)?e:W(e.provide),u=_c(e),l=a.providerIndexes&1048575,f=a.directiveStart,p=a.providerIndexes>>20;if(ft(e)||!e.multi){let d=new Xe(u,o,Fe),h=xo(c,t,o?l:l+p,f);h===-1?(zo(nr(a,s),i,c),No(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[h]=d,s[h]=d)}else{let d=xo(c,t,l+p,f),h=xo(c,t,l,l+p),g=d>=0&&n[d],b=h>=0&&n[h];if(o&&!b||!o&&!g){zo(nr(a,s),i,c);let D=cy(o?ay:sy,n.length,o,r,u);!o&&b&&(n[h].providerFactory=D),No(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else{let D=Fl(n[o?h:d],u,!o&&r);No(i,e,d>-1?d:h,D)}!o&&r&&b&&n[h].componentProviders++}}}function No(e,t,n,r){let o=ft(t),i=Df(t);if(o||i){let c=(i?W(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Fl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function xo(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function sy(e,t,n,r,o){return Ti(this.multi,[])}function ay(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=rr(r,r[w],this.providerFactory.index,o);s=c.slice(0,a),Ti(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],Ti(i,s);return s}function Ti(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function cy(e,t,n,r,o){let i=new Xe(e,n,Fe);return i.multi=[],i.index=t,i.componentProviders=0,Fl(i,o,r&&!n),i}function pb(e,t=[]){return n=>{n.providersResolver=(r,o)=>iy(r,o?o(e):e,t)}}function hb(e,t,n){let r=wr()+e,o=C();return o[r]===q?xr(o,r,n?t.call(n):t()):rm(o,r)}function Es(e,t){let n=e[t];return n===q?void 0:n}function uy(e,t,n,r,o,i){let s=t+n;return ce(e,s,o)?xr(e,s+1,i?r.call(i,o):r(o)):Es(e,s+1)}function ly(e,t,n,r,o,i,s){let a=t+n;return ys(e,a,o,i)?xr(e,a+2,s?r.call(s,o,i):r(o,i)):Es(e,a+2)}function dy(e,t,n,r,o,i,s,a){let c=t+n;return vl(e,c,o,i,s)?xr(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):Es(e,c+3)}function gb(e,t){let n=z(),r,o=e+U;n.firstCreatePass?(r=fy(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Ze(r.type,!0)),s,a=Z(Fe);try{let c=tr(!1),u=i();return tr(c),Rf(n,C(),o,u),u}finally{Z(a)}}function fy(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function mb(e,t,n){let r=e+U,o=C(),i=ji(o,r);return Is(o,r)?uy(o,wr(),t,i.transform,n,i):i.transform(n)}function yb(e,t,n,r){let o=e+U,i=C(),s=ji(i,o);return Is(i,o)?ly(i,wr(),t,s.transform,n,r,s):s.transform(n,r)}function vb(e,t,n,r,o){let i=e+U,s=C(),a=ji(s,i);return Is(s,i)?dy(s,wr(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Is(e,t){return e[w].data[t].pure}var py=(()=>{class e{zone=S(se);changeDetectionScheduler=S(yt);applicationRef=S(Wt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hy({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new se(ee(X({},gy()),{scheduleInRootZone:n})),[{provide:se,useFactory:e},{provide:Yn,multi:!0,useFactory:()=>{let r=S(py,{optional:!0});return()=>r.initialize()}},{provide:Yn,multi:!0,useFactory:()=>{let r=S(my);return()=>{r.initialize()}}},t===!0?{provide:du,useValue:!0}:[],{provide:qi,useValue:n??uu}]}function gy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var my=(()=>{class e{subscription=new $;initialized=!1;zone=S(se);pendingTasks=S(br);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(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Pl=(()=>{class e{appRef=S(Wt);taskService=S(br);ngZone=S(se);zonelessEnabled=S(Wi);tracing=S(Mu,{optional:!0});disableScheduling=S(du,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new $;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(sr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(S(qi,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ar||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Fa:fu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(sr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Fa(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Db(){return _r("NgZoneless"),hf([{provide:yt,useExisting:Pl},{provide:se,useClass:ar},{provide:Wi,useValue:!0},{provide:qi,useValue:!1},[]])}function yy(){return typeof $localize<"u"&&$localize.locale||mr}var Xt=new M("",{providedIn:"root",factory:()=>S(Xt,I.Optional|I.SkipSelf)||yy()});var Ni=new M(""),vy=new M("");function Ft(e){return!e.moduleRef}function Dy(e){let t=Ft(e)?e.r3Injector:e.moduleRef.injector,n=t.get(se);return n.run(()=>{Ft(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(vt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Ft(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ni);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ni);s.add(i),e.moduleRef.onDestroy(()=>{zn(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Iy(r,n,()=>{let i=t.get(El);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Xt,mr);if(Ym(s||mr),!t.get(vy,!0))return Ft(e)?t.get(Wt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Ft(e)){let c=t.get(Wt);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return Ey(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Ey(e,t){let n=e.injector.get(Wt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new _(-403,!1);t.push(e)}function Iy(e,t,n){try{let r=n();return vs(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Gn=null;function wy(e=[],t){return zt.create({name:t,providers:[{provide:bc,useValue:"platform"},{provide:Ni,useValue:new Set([()=>Gn=null])},...e]})}function Cy(e=[]){if(Gn)return Gn;let t=wy(e);return Gn=t,fm(),by(t),t}function by(e){let t=e.get(Rp,null);Mc(e,()=>{t?.forEach(n=>n())})}var _y=(()=>{class e{static __NG_ELEMENT_ID__=My}return e})();function My(e){return Sy(Ce(),C(),(e&16)===16)}function Sy(e,t,n){if(It(e)&&!n){let r=Ie(e.index,t);return new li(r,r)}else if(e.type&175){let r=t[me];return new li(r,t)}return null}function Eb(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;N(8);try{let i=o?.injector??Cy(r),s=[hy({}),{provide:yt,useExisting:Pl},...n||[]],a=new fr({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return Dy({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{N(9)}}function Ib(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Ty(e){return ho(e)}function _t(e,t){return co(e,t?.equal)}var ac=class{[fe];constructor(t){this[fe]=t}destroy(){this[fe].destroy()}};var xy=new M("");var Ll=null;function Ay(){return Ll}function Ry(e){Ll??=e}var ws=class{};var Ts=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(Ts||{});var G=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(G||{}),T=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(T||{}),K=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(K||{}),J={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Bl(e){return ne(e)[P.LocaleId]}function Hl(e,t,n){let r=ne(e),o=[r[P.DayPeriodsFormat],r[P.DayPeriodsStandalone]],i=ue(o,t);return ue(i,n)}function $l(e,t,n){let r=ne(e),o=[r[P.DaysFormat],r[P.DaysStandalone]],i=ue(o,t);return ue(i,n)}function Ul(e,t,n){let r=ne(e),o=[r[P.MonthsFormat],r[P.MonthsStandalone]],i=ue(o,t);return ue(i,n)}function zl(e,t){let r=ne(e)[P.Eras];return ue(r,t)}function en(e,t){let n=ne(e);return ue(n[P.DateFormat],t)}function tn(e,t){let n=ne(e);return ue(n[P.TimeFormat],t)}function nn(e,t){let r=ne(e)[P.DateTimeFormat];return ue(r,t)}function _e(e,t){let n=ne(e),r=n[P.NumberSymbols][t];if(typeof r>"u"){if(t===J.CurrencyDecimal)return n[P.NumberSymbols][J.Decimal];if(t===J.CurrencyGroup)return n[P.NumberSymbols][J.Group]}return r}function Gl(e,t){return ne(e)[P.NumberFormats][t]}function Wl(e){if(!e[P.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[P.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ql(e){let t=ne(e);return Wl(t),(t[P.ExtraData][2]||[]).map(r=>typeof r=="string"?Cs(r):[Cs(r[0]),Cs(r[1])])}function Zl(e,t,n){let r=ne(e);Wl(r);let o=[r[P.ExtraData][0],r[P.ExtraData][1]],i=ue(o,t)||[];return ue(i,n)||[]}function ue(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Cs(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Oy=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ar={},ky=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Yl(e,t,n,r){let o=Uy(e);t=Pe(n,t)||t;let s=[],a;for(;t;)if(a=ky.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Kl(r,c),o=$y(o,r));let u="";return s.forEach(l=>{let f=By(l);u+=f?f(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Pr(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Pe(e,t){let n=Bl(e);if(Ar[n]??={},Ar[n][t])return Ar[n][t];let r="";switch(t){case"shortDate":r=en(e,K.Short);break;case"mediumDate":r=en(e,K.Medium);break;case"longDate":r=en(e,K.Long);break;case"fullDate":r=en(e,K.Full);break;case"shortTime":r=tn(e,K.Short);break;case"mediumTime":r=tn(e,K.Medium);break;case"longTime":r=tn(e,K.Long);break;case"fullTime":r=tn(e,K.Full);break;case"short":let o=Pe(e,"shortTime"),i=Pe(e,"shortDate");r=Rr(nn(e,K.Short),[o,i]);break;case"medium":let s=Pe(e,"mediumTime"),a=Pe(e,"mediumDate");r=Rr(nn(e,K.Medium),[s,a]);break;case"long":let c=Pe(e,"longTime"),u=Pe(e,"longDate");r=Rr(nn(e,K.Long),[c,u]);break;case"full":let l=Pe(e,"fullTime"),f=Pe(e,"fullDate");r=Rr(nn(e,K.Full),[l,f]);break}return r&&(Ar[n][t]=r),r}function Rr(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function ye(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Fy(e,t){return ye(e,3).substring(0,t)}function L(e,t,n=0,r=!1,o=!1){return function(i,s){let a=Py(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Fy(a,t);let c=_e(s,J.MinusSign);return ye(a,t,c,r,o)}}function Py(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function x(e,t,n=G.Format,r=!1){return function(o,i){return Ly(o,i,e,t,n,r)}}function Ly(e,t,n,r,o,i){switch(n){case 2:return Ul(t,o,r)[e.getMonth()];case 1:return $l(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=ql(t),l=Zl(t,o,r),f=u.findIndex(p=>{if(Array.isArray(p)){let[d,h]=p,g=s>=d.hours&&a>=d.minutes,b=s<h.hours||s===h.hours&&a<h.minutes;if(d.hours<h.hours){if(g&&b)return!0}else if(g||b)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(f!==-1)return l[f]}return Hl(t,o,r)[s<12?0:1];case 3:return zl(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new Error(`unexpected translation type ${c}`)}}function Or(e){return function(t,n,r){let o=-1*r,i=_e(n,J.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+ye(s,2,i)+ye(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+ye(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+ye(s,2,i)+":"+ye(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+ye(s,2,i)+":"+ye(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var jy=0,Fr=4;function Vy(e){let t=Pr(e,jy,1).getDay();return Pr(e,0,1+(t<=Fr?Fr:Fr+7)-t)}function Ql(e){let t=e.getDay(),n=t===0?-3:Fr-t;return Pr(e.getFullYear(),e.getMonth(),e.getDate()+n)}function bs(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Ql(n),s=Vy(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return ye(o,e,_e(r,J.MinusSign))}}function kr(e,t=!1){return function(n,r){let i=Ql(n).getFullYear();return ye(i,e,_e(r,J.MinusSign),t)}}var _s={};function By(e){if(_s[e])return _s[e];let t;switch(e){case"G":case"GG":case"GGG":t=x(3,T.Abbreviated);break;case"GGGG":t=x(3,T.Wide);break;case"GGGGG":t=x(3,T.Narrow);break;case"y":t=L(0,1,0,!1,!0);break;case"yy":t=L(0,2,0,!0,!0);break;case"yyy":t=L(0,3,0,!1,!0);break;case"yyyy":t=L(0,4,0,!1,!0);break;case"Y":t=kr(1);break;case"YY":t=kr(2,!0);break;case"YYY":t=kr(3);break;case"YYYY":t=kr(4);break;case"M":case"L":t=L(1,1,1);break;case"MM":case"LL":t=L(1,2,1);break;case"MMM":t=x(2,T.Abbreviated);break;case"MMMM":t=x(2,T.Wide);break;case"MMMMM":t=x(2,T.Narrow);break;case"LLL":t=x(2,T.Abbreviated,G.Standalone);break;case"LLLL":t=x(2,T.Wide,G.Standalone);break;case"LLLLL":t=x(2,T.Narrow,G.Standalone);break;case"w":t=bs(1);break;case"ww":t=bs(2);break;case"W":t=bs(1,!0);break;case"d":t=L(2,1);break;case"dd":t=L(2,2);break;case"c":case"cc":t=L(7,1);break;case"ccc":t=x(1,T.Abbreviated,G.Standalone);break;case"cccc":t=x(1,T.Wide,G.Standalone);break;case"ccccc":t=x(1,T.Narrow,G.Standalone);break;case"cccccc":t=x(1,T.Short,G.Standalone);break;case"E":case"EE":case"EEE":t=x(1,T.Abbreviated);break;case"EEEE":t=x(1,T.Wide);break;case"EEEEE":t=x(1,T.Narrow);break;case"EEEEEE":t=x(1,T.Short);break;case"a":case"aa":case"aaa":t=x(0,T.Abbreviated);break;case"aaaa":t=x(0,T.Wide);break;case"aaaaa":t=x(0,T.Narrow);break;case"b":case"bb":case"bbb":t=x(0,T.Abbreviated,G.Standalone,!0);break;case"bbbb":t=x(0,T.Wide,G.Standalone,!0);break;case"bbbbb":t=x(0,T.Narrow,G.Standalone,!0);break;case"B":case"BB":case"BBB":t=x(0,T.Abbreviated,G.Format,!0);break;case"BBBB":t=x(0,T.Wide,G.Format,!0);break;case"BBBBB":t=x(0,T.Narrow,G.Format,!0);break;case"h":t=L(3,1,-12);break;case"hh":t=L(3,2,-12);break;case"H":t=L(3,1);break;case"HH":t=L(3,2);break;case"m":t=L(4,1);break;case"mm":t=L(4,2);break;case"s":t=L(5,1);break;case"ss":t=L(5,2);break;case"S":t=L(6,1);break;case"SS":t=L(6,2);break;case"SSS":t=L(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Or(0);break;case"ZZZZZ":t=Or(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Or(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Or(2);break;default:return null}return _s[e]=t,t}function Kl(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Hy(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function $y(e,t,n){let o=e.getTimezoneOffset(),i=Kl(t,o);return Hy(e,-1*(i-o))}function Uy(e){if(jl(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Pr(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Oy))return zy(r)}let t=new Date(e);if(!jl(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function zy(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function jl(e){return e instanceof Date&&!isNaN(e.valueOf())}var Gy=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Vl=22,Lr=".",rn="0",Wy=";",qy=",",Ms="#";function Zy(e,t,n,r,o,i,s=!1){let a="",c=!1;if(!isFinite(e))a=_e(n,J.Infinity);else{let u=Ky(e);s&&(u=Qy(u));let l=t.minInt,f=t.minFrac,p=t.maxFrac;if(i){let H=i.match(Gy);if(H===null)throw new Error(`${i} is not a valid digit info`);let As=H[1],Vr=H[3],Rs=H[5];As!=null&&(l=Ss(As)),Vr!=null&&(f=Ss(Vr)),Rs!=null?p=Ss(Rs):Vr!=null&&f>p&&(p=f)}Jy(u,f,p);let d=u.digits,h=u.integerLen,g=u.exponent,b=[];for(c=d.every(H=>!H);h<l;h++)d.unshift(0);for(;h<0;h++)d.unshift(0);h>0?b=d.splice(h,d.length):(b=d,d=[0]);let D=[];for(d.length>=t.lgSize&&D.unshift(d.splice(-t.lgSize,d.length).join(""));d.length>t.gSize;)D.unshift(d.splice(-t.gSize,d.length).join(""));d.length&&D.unshift(d.join("")),a=D.join(_e(n,r)),b.length&&(a+=_e(n,o)+b.join("")),g&&(a+=_e(n,J.Exponential)+"+"+g)}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function Jl(e,t,n){let r=Gl(t,Ts.Decimal),o=Yy(r,_e(t,J.MinusSign));return Zy(e,o,t,J.Group,J.Decimal,n)}function Yy(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(Wy),o=r[0],i=r[1],s=o.indexOf(Lr)!==-1?o.split(Lr):[o.substring(0,o.lastIndexOf(rn)+1),o.substring(o.lastIndexOf(rn)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Ms));for(let l=0;l<c.length;l++){let f=c.charAt(l);f===rn?n.minFrac=n.maxFrac=l+1:f===Ms?n.maxFrac=l+1:n.posSuf+=f}let u=a.split(qy);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,f=i.indexOf(Ms);n.negPre=i.substring(0,f).replace(/'/g,""),n.negSuf=i.slice(f+l).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function Qy(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function Ky(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Lr))>-1&&(t=t.replace(Lr,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===rn;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===rn;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Vl&&(r=r.splice(0,Vl-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function Jy(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let f=s;f<r.length;f++)r[f]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let f=1;f<s;f++)r[f]=0}if(a>=5)if(s-1<0){for(let f=0;f>s;f--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(f,p,d,h){return p=p+f,h[d]=p<10?p:p-10,c&&(h[d]===0&&d>=u?h.pop():c=!1),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++)}function Ss(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function jr(e,t){return new _(2100,!1)}var Xy=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,ev=(()=>{class e{transform(n){if(n==null)return null;if(typeof n!="string")throw jr(e,n);return n.replace(Xy,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=bt({name:"titlecase",type:e,pure:!0})}return e})();var tv="mediumDate",Xl=new M(""),ed=new M(""),nv=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??tv,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Yl(n,s,i||this.locale,a)}catch(s){throw jr(e,s.message)}}static \u0275fac=function(r){return new(r||e)(Fe(Xt,16),Fe(Xl,24),Fe(ed,24))};static \u0275pipe=bt({name:"date",type:e,pure:!0})}return e})();var rv=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=bt({name:"json",type:e,pure:!1})}return e})();var ov=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,o){if(!iv(n))return null;o||=this._locale;try{let i=sv(n);return Jl(i,o,r)}catch(i){throw jr(e,i.message)}}static \u0275fac=function(r){return new(r||e)(Fe(Xt,16))};static \u0275pipe=bt({name:"number",type:e,pure:!0})}return e})();function iv(e){return!(e==null||e===""||e!==e)}function sv(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var av=(()=>{class e{transform(n,r,o){if(n==null)return null;if(!(typeof n=="string"||Array.isArray(n)))throw jr(e,n);return n.slice(r,o)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=bt({name:"slice",type:e,pure:!1})}return e})();var cv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=gl({type:e});static \u0275inj=dc({})}return e})();function uv(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var lv="browser",td="server";function dv(e){return e===td}var Ns=class{};var pv="blooms_embed_session",xs=class{constructor(){this._session=Qi(null);this._config=Qi(null);this.session=this._session.asReadonly();this.config=this._config.asReadonly();this.isSignedIn=_t(()=>this._session()!==null);this.user=_t(()=>this._session()?.user??null);this.project=_t(()=>this._session()?.project??null);this.grantedKeys=_t(()=>this._session()?.grantedKeys??[]);this.projects=_t(()=>{let t=this._session();return t?t.projects?.length?t.projects:[ee(X({},t.project),{grantedKeys:t.grantedKeys,isOwner:t.isProjectOwner})]:[]});this.listeners=new Set;this.memory=null;this.configResolve=null;this.configReady=new Promise(t=>{this.configResolve=t})}setConfig(t){this._config.set(t),this.restore(),this.configResolve?.(t),this.configResolve=null}whenConfigured(){let t=this._config();return t?Promise.resolve(t):this.configReady}requireConfig(){let t=this._config();if(!t)throw new Error("[BloomsEmbed] Call BloomsEmbed.configure({ token }) before using any component.");return t}set(t){this._session.set(t),this.persist(t),this.emit({type:"session",session:t,mode:this._config()?.mode??"element"})}clear(){this.set(null)}isStale(t=0){let n=this._session();return n?Date.now()+t>=n.expiresAt:!1}can(t,n){let r=n?this.projects().find(o=>o.id===n)?.grantedKeys??[]:this.grantedKeys();return r.includes(t)||r.includes("owner")||r.includes("manager")}setProject(t){let n=this._session();if(!n)return!1;let r=this.projects().find(o=>o.id===t);return r?(this.set(ee(X({},n),{project:{id:r.id,name:r.name},grantedKeys:r.grantedKeys,isProjectOwner:r.isOwner})),!0):!1}on(t){return this.listeners.add(t),()=>this.listeners.delete(t)}emit(t){for(let n of this.listeners)try{n(t)}catch(r){console.error("[BloomsEmbed] listener threw",r)}}storageKey(){let t=this._config();return`${pv}:${t?.token??"unconfigured"}`}area(){let t=this._config()?.storage??"local";if(t==="memory")return null;try{return t==="session"?window.sessionStorage:window.localStorage}catch{return null}}persist(t){this.memory=t;let n=this.area();if(n)try{t?n.setItem(this.storageKey(),JSON.stringify(t)):n.removeItem(this.storageKey())}catch{}}restore(){if(this.memory){this._session.set(this.memory);return}let t=this.area();if(t)try{let n=t.getItem(this.storageKey());if(!n)return;let r=JSON.parse(n);r?.refreshToken&&r?.user&&(this._session.set(r),this.memory=r)}catch{try{t.removeItem(this.storageKey())}catch{}}}},G_=new xs;export{X as a,ee as b,hv as c,A as d,de as e,qr as f,xt as g,Sd as h,Td as i,Ge as j,_d as k,At as l,Nd as m,xd as n,Ad as o,da as p,Rd as q,Od as r,kd as s,fa as t,pa as u,Md as v,ha as w,_ as x,uc as y,te as z,dc as A,M as B,Te as C,S as D,hf as E,bc as F,Qe as G,Mc as H,Sf as I,NC as J,xC as K,AC as L,RC as M,OC as N,zt as O,lu as P,yt as Q,br as R,je as S,se as T,vt as U,gu as V,Qi as W,kC as X,FC as Y,Rp as Z,PC as _,LC as $,Mu as aa,Gt as ba,Sr as ca,xu as da,jC as ea,VC as fa,BC as ga,HC as ha,$C as ia,Au as ja,oh as ka,Ki as la,UC as ma,zC as na,GC as oa,WC as pa,cr as qa,ZC as ra,YC as sa,ms as ta,lr as ua,Eg as va,Fe as wa,tb as xa,gl as ya,Zg as za,bt as Aa,Kg as Ba,im as Ca,vs as Da,Wt as Ea,mm as Fa,Nm as Ga,xm as Ha,Am as Ia,nb as Ja,rb as Ka,ob as La,ib as Ma,sb as Na,ab as Oa,cb as Pa,Al as Qa,Rl as Ra,Um as Sa,ub as Ta,Km as Ua,lb as Va,db as Wa,ey as Xa,kl as Ya,ty as Za,ny as _a,ry as $a,fb as ab,oy as bb,pb as cb,hb as db,gb as eb,mb as fb,yb as gb,vb as hb,Db as ib,_y as jb,Eb as kb,Ib as lb,Ty as mb,_t as nb,xy as ob,Ay as pb,Ry as qb,ws as rb,ev as sb,nv as tb,rv as ub,ov as vb,av as wb,cv as xb,uv as yb,lv as zb,dv as Ab,Ns as Bb,G_ as Cb};
@@ -0,0 +1,2 @@
1
+ import{Cb as s,a as l}from"./chunk-WQW7QCHM.js";var i=null,c=new WeakSet;function a(){return`${s.config()?.assetBase??""}/blooms-embed.css`}async function S(){await s.whenConfigured();let t;try{let e=await fetch(a(),{credentials:"omit"});if(!e.ok&&e.status!==304)throw new Error(`status ${e.status}`);t=await e.text()}catch(e){return console.error(`[BloomsEmbed] Could not load ${a()} \u2014 components will be unstyled. Check that /elements/* is served with CORS enabled.`,e),null}if(typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype)try{let e=new CSSStyleSheet;return e.replaceSync(t),e}catch{}return t}async function y(t){if(!t||c.has(t))return;c.add(t),await s.whenConfigured(),h(t),i??=S();let e=await i;if(e){if(typeof e=="string"){let n=document.createElement("style");n.textContent=e,t.prepend(n);return}try{t.adoptedStyleSheets=[...t.adoptedStyleSheets,e]}catch{let n=document.createElement("style");n.textContent=Array.from({length:e.cssRules.length},(r,o)=>e.cssRules[o].cssText).join(`
2
+ `),t.prepend(n)}}}function h(t,e){let n=l(l({},s.config()?.theme??{}),e??{}),r=t.host;if(r)for(let[o,d]of Object.entries(n))o.startsWith("--")&&r.style.setProperty(o,String(d))}export{y as a,h as b};
@@ -0,0 +1,3 @@
1
+ import{a as U}from"./chunk-OBI6OSSF.js";import{c as M}from"./chunk-SPLW6L45.js";import{Ca as p,Cb as v,D as _,Ga as B,Ha as x,J as f,Ja as j,K as h,La as d,Oa as y,Pa as w,Qa as n,Ra as i,S as C,Sa as m,Ta as S,Ua as E,V as T,Va as c,W as u,Wa as a,Xa as s,Ya as A,Za as I,a as O,eb as G,gb as k,na as z,nb as D,pa as r,tb as F,xa as P,xb as $,z as R}from"./chunk-WQW7QCHM.js";var b=class o{constructor(){this.http=_(M)}listForProject(e){return this.http.get(`/api/integrations/project/${e}`)}getGoogleAuthUrl(e,t){return this.http.get("/api/integrations/google/auth-url",{params:{projectId:e,type:t}})}connectGoogle(e,t,l){return this.http.post("/api/integrations/google/connect",{code:e,projectId:t,type:l})}setGAProperty(e,t,l){return this.http.patch(`/api/integrations/${e}/ga-property`,{gaPropertyId:t,gaPropertyName:l})}listGAProperties(e){return this.http.get(`/api/integrations/${e}/ga-properties`)}listGSCSites(e){return this.http.get(`/api/integrations/${e}/gsc-sites`)}disconnect(e){return this.http.delete(`/api/integrations/${e}`)}getGmcOverview(e){return this.http.get(`/api/integrations/project/${e}/gmc/overview`)}setGscSite(e,t){return this.http.patch("/api/gsc/site",{integrationId:e,siteUrl:t})}getGscOverview(e){return this.http.get(`/api/gsc/project/${e}/overview`)}getGoogleAdsOverview(e){return this.http.get(`/api/google-ads/project/${e}/overview`)}listGoogleAdsCustomers(e){return this.http.get(`/api/google-ads/project/${e}/customers`)}setGoogleAdsCustomer(e,t){return this.http.post(`/api/google-ads/project/${e}/customer`,{customerId:t})}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=R({token:o,factory:o.\u0275fac,providedIn:"root"})}};var L=(o,e)=>e.description,H=(o,e)=>e.productId;function q(o,e){if(o&1&&(n(0,"div",5),m(1,"span",8),n(2,"span"),a(3),i()()),o&2){let t=c();r(3),s(t.data().integration.accountEmail)}}function W(o,e){o&1&&(n(0,"div",6),m(1,"app-loading-spinner"),i())}function J(o,e){if(o&1){let t=S();n(0,"div",9),a(1,"\u{1F50C}"),i(),n(2,"h3"),a(3,"Google Merchant Center not connected"),i(),n(4,"p"),a(5,"Connect your GMC account from the Integrations page to start tracking your product feed."),i(),n(6,"button",10),E("click",function(){f(t);let g=c(2);return h(g.goToIntegrations())}),a(7,"Go to Integrations"),i()}}function K(o,e){if(o&1){let t=S();n(0,"div",9),a(1,"\u26A0\uFE0F"),i(),n(2,"h3"),a(3,"Could not load Merchant Center data"),i(),n(4,"p"),a(5),i(),n(6,"button",11),E("click",function(){f(t);let g=c(2);return h(g.load())}),a(7,"Retry"),i()}if(o&2){let t=c(2);r(5),s(t.error())}}function Q(o,e){if(o&1&&(n(0,"div",7),p(1,J,8,0)(2,K,8,1),i()),o&2){let t=c();r(),d(t.notConnected()?1:2)}}function X(o,e){if(o&1&&(n(0,"div",13)(1,"span",14),a(2,"Account Name"),i(),n(3,"span",15),a(4),i()()),o&2){let t=c(2);r(4),s(t.data().accountName)}}function Y(o,e){if(o&1&&(n(0,"div",13)(1,"span",14),a(2,"Website"),i(),n(3,"a",36),a(4),i()()),o&2){let t=c(2);r(3),B("href",t.data().websiteUrl,z),r(),s(t.data().websiteUrl)}}function Z(o,e){if(o&1&&(n(0,"div",16)(1,"span",14),a(2,"Last synced"),i(),n(3,"span",15),a(4),G(5,"date"),i()()),o&2){let t=c(2);r(4),s(k(5,1,t.data().integration.lastSyncedAt,"medium"))}}function tt(o,e){if(o&1&&(n(0,"div",28)(1,"div",19),a(2),i(),n(3,"div",20),a(4,"\u26A0\uFE0F Expiring"),i()()),o&2){let t=c(2);r(2),s(t.data().stats.expiring)}}function et(o,e){if(o&1&&(n(0,"div",38)(1,"div",39),a(2),i(),n(3,"div",40),a(4),i(),n(5,"div",41),a(6),i(),n(7,"div",42),m(8,"div",43),i()()),o&2){let t=e.$implicit,l=e.$index,g=c(3);r(2),s(l+1),r(2),s(t.description),r(2),I("",t.count," product",t.count!==1?"s":"",""),r(2),x("width",g.pct(t.count,g.data().topIssues[0].count),"%")}}function it(o,e){if(o&1&&(n(0,"div",30)(1,"div",31)(2,"h3",32),a(3,"\u26A0\uFE0F Top Product Issues"),i(),n(4,"span",33),a(5,"Most frequent disapproval / warning reasons"),i()(),n(6,"div",37),y(7,et,9,6,"div",38,L),i()()),o&2){let t=c(2);r(7),w(t.data().topIssues)}}function nt(o,e){o&1&&(n(0,"div",34),a(1,"No products found in your Merchant Center account."),i())}function ot(o,e){if(o&1&&(n(0,"span",49),a(1),i()),o&2){let t=c().$implicit;r(),I("",t.issueCount," issue",t.issueCount!==1?"s":"","")}}function at(o,e){o&1&&(n(0,"span",50),a(1,"\u2014"),i())}function rt(o,e){if(o&1&&(n(0,"tr")(1,"td",45)(2,"div",46),a(3),i(),n(4,"div",47),a(5),i()(),n(6,"td")(7,"span",48),a(8),i()(),n(9,"td"),p(10,ot,2,2,"span",49)(11,at,2,0,"span",50),i(),n(12,"td",51),a(13),G(14,"date"),i()()),o&2){let t=e.$implicit,l=c(3);r(3),s(t.title||t.productId),r(2),s(t.productId),r(2),j("gmc__status-badge--"+t.status),r(),A(" ",l.statusLabel(t.status)," "),r(2),d(t.issueCount>0?10:11),r(3),A(" ",t.lastUpdated?k(14,7,t.lastUpdated,"mediumDate"):"\u2014"," ")}}function ct(o,e){if(o&1&&(n(0,"div",35)(1,"table",44)(2,"thead")(3,"tr")(4,"th"),a(5,"Product"),i(),n(6,"th"),a(7,"Status"),i(),n(8,"th"),a(9,"Issues"),i(),n(10,"th"),a(11,"Last Updated"),i()()(),n(12,"tbody"),y(13,rt,15,10,"tr",null,H),i()()()),o&2){let t=c(2);r(13),w(t.data().recentProducts)}}function st(o,e){if(o&1&&(n(0,"div",12)(1,"div",13)(2,"span",14),a(3,"Merchant ID"),i(),n(4,"code",15),a(5),i()(),p(6,X,5,1,"div",13)(7,Y,5,2,"div",13)(8,Z,6,4,"div",16),i(),n(9,"div",17)(10,"div",18)(11,"div",19),a(12),i(),n(13,"div",20),a(14,"Total Products"),i()(),n(15,"div",21)(16,"div",19),a(17),i(),n(18,"div",20),a(19,"\u2705 Approved"),i(),n(20,"div",22),m(21,"div",23),i()(),n(22,"div",24)(23,"div",19),a(24),i(),n(25,"div",20),a(26,"\u274C Disapproved"),i(),n(27,"div",22),m(28,"div",25),i()(),n(29,"div",26)(30,"div",19),a(31),i(),n(32,"div",20),a(33,"\u23F3 Pending"),i(),n(34,"div",22),m(35,"div",27),i()(),p(36,tt,5,1,"div",28),i(),n(37,"div",29),p(38,it,9,0,"div",30),n(39,"div",30)(40,"div",31)(41,"h3",32),a(42,"\u{1F4E6} Recent Products"),i(),n(43,"span",33),a(44,"Showing up to 30 products"),i()(),p(45,nt,2,0,"div",34)(46,ct,15,0,"div",35),i()()),o&2){let t=c();r(5),s(t.data().merchantId),r(),d(t.data().accountName?6:-1),r(),d(t.data().websiteUrl?7:-1),r(),d(t.data().integration.lastSyncedAt?8:-1),r(4),s(t.data().stats.total),r(5),s(t.data().stats.approved),r(4),x("width",t.pct(t.data().stats.approved,t.data().stats.total),"%"),r(3),s(t.data().stats.disapproved),r(4),x("width",t.pct(t.data().stats.disapproved,t.data().stats.total),"%"),r(3),s(t.data().stats.pending),r(4),x("width",t.pct(t.data().stats.pending,t.data().stats.total),"%"),r(),d(t.data().stats.expiring>0?36:-1),r(2),d(t.data().topIssues.length>0?38:-1),r(7),d(t.data().recentProducts.length===0?45:46)}}var N=class o{constructor(){this.integrationService=_(b);this.host=_(T);this.bloomsnavigate=new C;this.bloomserror=new C;this.needsSignIn=D(()=>v.config()!==null&&v.session()===null);this.data=u(null);this.loading=u(!0);this.error=u("");this.notConnected=u(!1)}get activeProjectId(){return this.projectId||v.project()?.id||""}goToIntegrations(){let e={feature:"integrations",view:"list",params:{}};this.bloomsnavigate.emit(e),v.emit(O({type:"navigate"},e))}ngOnInit(){this.load()}load(){this.loading.set(!0),this.error.set(""),this.notConnected.set(!1),this.integrationService.getGmcOverview(this.activeProjectId).subscribe({next:e=>{this.data.set(e.data),this.loading.set(!1)},error:e=>{this.loading.set(!1),e.status===404?(this.notConnected.set(!0),this.error.set("Not connected")):this.error.set(e.error?.message||"Failed to load Merchant Center data.")}})}pct(e,t){return t===0?0:Math.round(e/t*100)}statusLabel(e){return{approved:"Approved",disapproved:"Disapproved",pending:"Pending",expiring:"Expiring"}[e]??e}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=P({type:o,selectors:[["blooms-gmc-analytics"]],inputs:{projectId:"projectId"},outputs:{bloomsnavigate:"bloomsnavigate",bloomserror:"bloomserror"},decls:11,vars:2,consts:[[1,"gmc"],[1,"gmc__header"],[1,"gmc__header-left"],[1,"gmc__title"],[1,"gmc__desc"],[1,"gmc__account-chip"],[1,"gmc__loading"],[1,"gmc__error-state"],[1,"gmc__account-dot"],[1,"gmc__empty-icon"],["type","button",1,"btn","btn-primary",3,"click"],[1,"btn","btn-outline",3,"click"],[1,"gmc__account-bar"],[1,"gmc__account-info"],[1,"gmc__account-label"],[1,"gmc__account-value"],[1,"gmc__account-info","gmc__account-info--right"],[1,"gmc__stats-grid"],[1,"gmc__stat-card"],[1,"gmc__stat-value"],[1,"gmc__stat-label"],[1,"gmc__stat-card","gmc__stat-card--approved"],[1,"gmc__stat-bar"],[1,"gmc__stat-bar-fill","gmc__stat-bar-fill--approved"],[1,"gmc__stat-card","gmc__stat-card--disapproved"],[1,"gmc__stat-bar-fill","gmc__stat-bar-fill--disapproved"],[1,"gmc__stat-card","gmc__stat-card--pending"],[1,"gmc__stat-bar-fill","gmc__stat-bar-fill--pending"],[1,"gmc__stat-card","gmc__stat-card--expiring"],[1,"gmc__body"],[1,"gmc__card"],[1,"gmc__card-header"],[1,"gmc__card-title"],[1,"gmc__card-subtitle"],[1,"gmc__empty"],[1,"gmc__table-wrap"],["target","_blank",1,"gmc__account-value","gmc__account-link",3,"href"],[1,"gmc__issues-list"],[1,"gmc__issue-row"],[1,"gmc__issue-rank"],[1,"gmc__issue-desc"],[1,"gmc__issue-count"],[1,"gmc__issue-bar-wrap"],[1,"gmc__issue-bar"],[1,"gmc__table"],[1,"gmc__table-product"],[1,"gmc__product-title"],[1,"gmc__product-id"],[1,"gmc__status-badge"],[1,"gmc__issue-count-badge"],[1,"gmc__no-issues"],[1,"gmc__table-date"]],template:function(t,l){t&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),a(4,"\u{1F6CD}\uFE0F Merchant Center"),i(),n(5,"p",4),a(6,"Product feed health, approval status, and top issues from your Google Merchant Center account."),i()(),p(7,q,4,1,"div",5),i(),p(8,W,2,0,"div",6)(9,Q,3,1,"div",7)(10,st,47,17),i()),t&2&&(r(7),d(l.data()?7:-1),r(),d(l.loading()?8:l.error()?9:l.data()?10:-1))},dependencies:[$,F,U],styles:[`@charset "UTF-8";:host{--color-text: var(--color-text, #5d5f71);--color-text-muted: var(--color-text-muted, #9395a5);--color-bg: var(--color-bg, #f7f5fb);--color-card-bg: var(--color-card-bg, #ffffff);--color-border: var(--color-border, #ede9f6);--color-hover: var(--color-hover, #f5f2fb);--color-accent: var(--color-accent, #e84855);--radius-sm: var(--radius-sm, 6px);--radius-md: var(--radius-md, 10px);--radius-lg: var(--radius-lg, 16px);display:block;font-family:var(--font-sans, "Poppins", system-ui, -apple-system, sans-serif);color:var(--color-text)}:host>*{letter-spacing:normal;word-spacing:normal;line-height:1.5;text-transform:none;text-indent:0;font-style:normal;font-weight:400;font-variant:normal;text-align:left;white-space:normal}*,*:before,*:after{box-sizing:border-box}.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:var(--radius-md);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;border:1px solid transparent;transition:background .15s,border-color .15s,box-shadow .15s,opacity .15s;text-decoration:none;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn-sm{padding:6px 12px;font-size:12px}.btn-primary{background:var(--color-accent);color:#fff;border-color:var(--color-accent)}.btn-primary:hover:not(:disabled){background:#d13d4a;border-color:#d13d4a;box-shadow:0 2px 8px color-mix(in srgb,var(--color-accent) 30%,transparent)}.btn-outline{background:transparent;color:var(--color-text);border-color:var(--color-border)}.btn-outline:hover:not(:disabled){background:var(--color-hover);border-color:#d5d0e4}.btn-ghost{background:transparent;color:var(--color-text-muted);border-color:transparent}.btn-ghost:hover:not(:disabled){background:var(--color-hover);color:var(--color-text)}
2
+ `,`.gmc{display:flex;flex-direction:column;gap:24px}.gmc__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.gmc__title{font-size:20px;font-weight:700;color:var(--color-text);margin-bottom:4px}.gmc__desc{font-size:13px;color:var(--color-text-muted)}.gmc__account-chip{display:flex;align-items:center;gap:7px;padding:6px 12px;border-radius:99px;background:var(--color-primary-soft);font-size:12px;font-weight:500;color:var(--color-text);white-space:nowrap}.gmc__account-dot{width:7px;height:7px;border-radius:50%;background:#16a34a;flex-shrink:0}.gmc__loading{display:flex;align-items:center;justify-content:center;padding:80px 0}.gmc__error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:80px 24px;text-align:center}.gmc__empty-icon{font-size:48px;opacity:.5}.gmc__error-state h3{font-size:16px;font-weight:700;color:var(--color-text)}.gmc__error-state p{font-size:13px;color:var(--color-text-muted);max-width:360px;line-height:1.6}.gmc__account-bar{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:14px 20px;background:var(--color-card-bg);border:1px solid var(--color-border);border-radius:12px}.gmc__account-info{display:flex;flex-direction:column;gap:2px}.gmc__account-info--right{margin-left:auto}.gmc__account-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-muted)}.gmc__account-value{font-size:13px;font-weight:500;color:var(--color-text)}.gmc__account-link{color:var(--color-accent);text-decoration:none}.gmc__account-link:hover{text-decoration:underline}code.gmc__account-value{font-family:monospace;font-size:12px;background:var(--color-primary-soft);padding:1px 6px;border-radius:4px}.gmc__stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.gmc__stat-card{background:var(--color-card-bg);border:1px solid var(--color-border);border-radius:12px;padding:18px 20px}.gmc__stat-value{font-size:28px;font-weight:800;color:var(--color-text);line-height:1;margin-bottom:6px}.gmc__stat-label{font-size:12px;font-weight:500;color:var(--color-text-muted);margin-bottom:10px}.gmc__stat-bar{height:4px;background:var(--color-border);border-radius:99px;overflow:hidden}.gmc__stat-bar-fill{height:100%;border-radius:99px;transition:width .4s ease}.gmc__stat-card--approved{border-top:3px solid #16a34a}.gmc__stat-card--approved .gmc__stat-value{color:#16a34a}.gmc__stat-bar-fill--approved{background:#16a34a}.gmc__stat-card--disapproved{border-top:3px solid #dc2626}.gmc__stat-card--disapproved .gmc__stat-value{color:#dc2626}.gmc__stat-bar-fill--disapproved{background:#dc2626}.gmc__stat-card--pending{border-top:3px solid #d97706}.gmc__stat-card--pending .gmc__stat-value{color:#d97706}.gmc__stat-bar-fill--pending{background:#d97706}.gmc__stat-card--expiring{border-top:3px solid #ea580c}.gmc__stat-card--expiring .gmc__stat-value{color:#ea580c}.gmc__body{display:flex;flex-direction:column;gap:20px}.gmc__card{background:var(--color-card-bg);border:1px solid var(--color-border);border-radius:12px;overflow:hidden}.gmc__card-header{padding:18px 20px 14px;border-bottom:1px solid var(--color-border);display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.gmc__card-title{font-size:14px;font-weight:700;color:var(--color-text)}.gmc__card-subtitle{font-size:12px;color:var(--color-text-muted)}.gmc__issues-list{padding:12px 16px;display:flex;flex-direction:column;gap:8px}.gmc__issue-row{display:grid;grid-template-columns:24px 1fr 90px 120px;align-items:center;gap:10px;padding:6px 4px}.gmc__issue-rank{font-size:11px;font-weight:700;color:var(--color-text-muted);text-align:center}.gmc__issue-desc{font-size:12px;color:var(--color-text);font-weight:500}.gmc__issue-count{font-size:11px;color:var(--color-text-muted);text-align:right;white-space:nowrap}.gmc__issue-bar-wrap{height:6px;background:var(--color-border);border-radius:99px;overflow:hidden}.gmc__issue-bar{height:100%;background:var(--color-accent);border-radius:99px;transition:width .3s}.gmc__table-wrap{overflow-x:auto}.gmc__table{width:100%;border-collapse:collapse;font-size:13px}.gmc__table thead tr{border-bottom:1px solid var(--color-border);background:var(--color-hover)}.gmc__table th{padding:10px 16px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);text-align:left;white-space:nowrap}.gmc__table tbody tr{border-bottom:1px solid var(--color-border);transition:background .12s}.gmc__table tbody tr:last-child{border-bottom:none}.gmc__table tbody tr:hover{background:var(--color-hover)}.gmc__table td{padding:10px 16px;vertical-align:middle}.gmc__table-product{min-width:220px}.gmc__product-title{font-weight:500;color:var(--color-text);margin-bottom:2px}.gmc__product-id{font-size:11px;color:var(--color-text-muted);font-family:monospace}.gmc__table-date{font-size:12px;color:var(--color-text-muted);white-space:nowrap}.gmc__empty{padding:40px 20px;text-align:center;font-size:13px;color:var(--color-text-muted)}.gmc__status-badge{display:inline-block;padding:2px 9px;border-radius:99px;font-size:11px;font-weight:700}.gmc__status-badge--approved{background:#dcfce7;color:#166534}.gmc__status-badge--disapproved{background:#fee2e2;color:#991b1b}.gmc__status-badge--pending{background:#fef3c7;color:#92400e}.gmc__status-badge--expiring{background:#fff7ed;color:#9a3412}.gmc__issue-count-badge{font-size:11px;color:#dc2626;font-weight:600;background:#fee2e2;padding:2px 7px;border-radius:99px}.gmc__no-issues{color:var(--color-text-muted)}
3
+ `],encapsulation:3,changeDetection:0})}};export{N as BloomsGmcAnalyticsComponent};
@@ -0,0 +1,3 @@
1
+ import{d as z,i as x}from"./chunk-QVZ2D36I.js";import{a as F,b as j}from"./chunk-X2Q5WSIJ.js";import{c as L,d as E,e as A,f as R,i as O,l as P,m as M,r as V,t as U}from"./chunk-VQEBAAHK.js";import{Ca as p,Cb as y,D as C,Fa as _,Ga as u,Ia as I,J as h,K as v,La as d,Qa as r,Ra as n,S as k,Sa as f,Ta as S,Ua as w,V as T,Va as c,W as b,Wa as s,Xa as m,Ya as N,na as B,nb as g,pa as a,xa as D}from"./chunk-WQW7QCHM.js";function K(o,t){o&1&&(r(0,"div",1),f(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",6)(5,"div",7),n())}function Y(o,t){if(o&1){let e=S();r(0,"div",2)(1,"div",8),s(2),n(),r(3,"div",9)(4,"strong"),s(5),n(),r(6,"span"),s(7),n()(),r(8,"button",10),w("click",function(){h(e);let l=c();return v(l.signOut())}),s(9,"Sign out"),n()()}if(o&2){let e,i,l=c();a(2),m(l.initials()),a(3),m((e=l.user())==null?null:e.name),a(2),m((i=l.user())==null?null:i.email)}}function q(o,t){o&1&&(r(0,"div",12)(1,"span",26),s(2,"\u273F"),n(),r(3,"span",27),s(4,"blooms"),r(5,"span"),s(6,".ai"),n()()())}function J(o,t){if(o&1&&(r(0,"div",15)(1,"span",28),s(2,"\u26A0\uFE0F"),n(),r(3,"div")(4,"strong"),s(5),n(),r(6,"p"),s(7),n()()()),o&2){let e=c(2);a(5),m(e.error().title),a(2),m(e.error().detail)}}function H(o,t){o&1&&(r(0,"span",19),s(1,"Enter a valid email address"),n())}function $(o,t){o&1&&(r(0,"span",19),s(1,"Password is required"),n())}function W(o,t){o&1&&(f(0,"span",29),s(1," Signing in\u2026 "))}function Q(o,t){o&1&&s(0," Sign in ")}function X(o,t){if(o&1&&(r(0,"a",24),s(1," Forgot password? "),n()),o&2){let e=c(2);u("href",e.forgotUrl(),B)}}function Z(o,t){o&1&&(r(0,"p",25),s(1,"Secured by blooms.ai"),n())}function ee(o,t){if(o&1){let e=S();r(0,"form",11),w("ngSubmit",function(){h(e);let l=c();return v(l.submit())}),p(1,q,7,0,"div",12),r(2,"h1",13),s(3),n(),r(4,"p",14),s(5),n(),p(6,J,8,2,"div",15),r(7,"label",16)(8,"span",17),s(9,"Email"),n(),f(10,"input",18),p(11,H,2,0,"span",19),n(),r(12,"label",16)(13,"span",17),s(14,"Password"),n(),r(15,"span",20),f(16,"input",21),r(17,"button",22),w("click",function(){h(e);let l=c();return v(l.showPassword.set(!l.showPassword()))}),s(18),n()(),p(19,$,2,0,"span",19),n(),r(20,"button",23),p(21,W,2,0)(22,Q,1,0),n(),p(23,X,2,1,"a",24)(24,Z,2,0,"p",25),n()}if(o&2){let e=c();u("formGroup",e.form),a(),d(e.hideBranding()?-1:1),a(2),m(e.heading||"Sign in"),a(2),N(" ",e.subheading||e.defaultSubheading()," "),a(),d(e.error()?6:-1),a(4),_("aria-invalid",e.invalid("email")),a(),d(e.invalid("email")?11:-1),a(5),u("type",e.showPassword()?"text":"password"),_("aria-invalid",e.invalid("password")),a(),_("aria-label",e.showPassword()?"Hide password":"Show password"),a(),m(e.showPassword()?"\u{1F648}":"\u{1F441}\uFE0F"),a(),d(e.invalid("password")?19:-1),a(),u("disabled",e.busy()),a(),d(e.busy()?21:22),a(2),d(e.forgotUrl()?23:-1),a(),d(e.hideBranding()?-1:24)}}var G=class o{constructor(){this.fb=C(V);this.host=C(T);this.heading="";this.subheading="";this.compact=!1;this.bloomssession=new k;this.bloomserror=new k;this.form=this.fb.nonNullable.group({email:["",[E.required,E.email]],password:["",[E.required]]});this.phase=b("loading");this.busy=b(!1);this.showPassword=b(!1);this.error=b(null);this.manifest=b(null);this.user=y.user;this.initials=g(()=>(this.user()?.name??"").split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0].toUpperCase()).join("")||"\xB7");this.hideBranding=g(()=>this.manifest()?.hideBranding??!1);this.forgotUrl=g(()=>{let t=this.manifest()?.portalUrl;return t?`${t}/auth/forgot-password`:""});this.defaultSubheading=g(()=>{let t=this.manifest()?.project?.name;return t?`Continue to ${t}`:"Use your blooms.ai account"})}async ngOnInit(){let t=this.host.nativeElement.shadowRoot;t&&F(t),await y.whenConfigured(),y.on(i=>{i.type==="session"&&(this.phase.set(i.session?"signed-in":"signed-out"),this.bloomssession.emit(i.session)),i.type==="error"&&this.bloomserror.emit(i)});try{let i=await x.manifest();this.manifest.set(i),t&&j(t,i.theme)}catch(i){this.setError(i),this.phase.set("signed-out");return}let e=await x.resume();this.phase.set(e?"signed-in":"signed-out")}invalid(t){let e=this.form.get(t);return!!(e?.invalid&&e?.touched)}async submit(){if(!this.busy()&&(this.form.markAllAsTouched(),!this.form.invalid)){this.busy.set(!0),this.error.set(null);try{let{email:t,password:e}=this.form.getRawValue();await x.login({email:t,password:e}),this.form.reset(),this.phase.set("signed-in")}catch(t){this.setError(t)}finally{this.busy.set(!1)}}}async signOut(){await x.logout(),this.phase.set("signed-out")}setError(t){let e=t instanceof z?t.code:"EMBED_ERROR",i=t instanceof Error?t.message:"Something went wrong.",l={EMBED_CREDENTIALS_INVALID:{title:"Incorrect email or password",detail:"Check your details and try again."},EMBED_NO_PROJECT_ACCESS:{title:"No access to this workspace",detail:"Your blooms.ai account exists, but it has not been given access to this project. Ask the project owner to grant it."},EMBED_FEATURE_DISABLED:{title:"Nothing available here yet",detail:"Your account has no features enabled for this integration. Ask the project owner to widen your access."},EMBED_USER_NOT_PERMITTED:{title:"This account cannot be used here",detail:"Administrator accounts cannot sign in through an embedded component."},ACCOUNT_BLOCKED:{title:"Account unavailable",detail:i},ACCOUNT_DEACTIVATED:{title:"Account deactivated",detail:i},ACCOUNT_BANNED:{title:"Account suspended",detail:i},EMBED_RATE_LIMITED:{title:"Too many attempts",detail:"Sign-in has been temporarily throttled. Please wait a few minutes and try again."},EMBED_TOKEN_REVOKED:{title:"Integration disabled",detail:"This blooms.ai integration has been turned off. Contact your administrator."},EMBED_ORIGIN_REJECTED:{title:"Integration not configured for this site",detail:"This page's address is not registered for the integration. Contact your administrator."},CORS_ORIGIN_REJECTED:{title:"Integration not configured for this site",detail:"This page's address is not registered for the integration. Contact your administrator."},EMBED_NETWORK:{title:"Cannot reach blooms.ai",detail:i}};this.error.set(l[e]??{title:"Something went wrong",detail:i}),this.bloomserror.emit({code:e,message:i})}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=D({type:o,selectors:[["blooms-login"]],inputs:{heading:"heading",subheading:"subheading",compact:"compact"},outputs:{bloomssession:"bloomssession",bloomserror:"bloomserror"},decls:4,vars:5,consts:[[1,"wrap"],["role","status","aria-label","Loading",1,"skeleton"],[1,"signed-in"],["novalidate","",1,"card",3,"formGroup"],[1,"sk","sk--logo"],[1,"sk","sk--title"],[1,"sk","sk--field"],[1,"sk","sk--btn"],["aria-hidden","true",1,"avatar"],[1,"signed-in__who"],["type","button",1,"btn","btn--ghost",3,"click"],["novalidate","",1,"card",3,"ngSubmit","formGroup"],[1,"brand"],[1,"title"],[1,"subtitle"],["role","alert",1,"alert"],[1,"field"],[1,"field__label"],["type","email","formControlName","email","placeholder","you@company.com","autocomplete","email","spellcheck","false"],[1,"field__error"],[1,"field__input-wrap"],["formControlName","password","placeholder","\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022","autocomplete","current-password",3,"type"],["type","button",1,"reveal",3,"click"],["type","submit",1,"btn","btn--primary",3,"disabled"],["target","_blank","rel","noopener noreferrer",1,"forgot",3,"href"],[1,"foot"],["aria-hidden","true",1,"brand__mark"],[1,"brand__name"],["aria-hidden","true",1,"alert__icon"],["aria-hidden","true",1,"spinner"]],template:function(e,i){e&1&&(r(0,"div",0),p(1,K,6,0,"div",1)(2,Y,10,3,"div",2)(3,ee,25,16,"form",3),n()),e&2&&(I("wrap--compact",i.compact),a(),d(i.phase()==="loading"?1:-1),a(),d(i.phase()==="signed-in"?2:-1),a(),d(i.phase()==="signed-out"?3:-1))},dependencies:[U,O,L,A,R,P,M],styles:[`@charset "UTF-8";:host{--color-text: var(--color-text, #5d5f71);--color-text-muted: var(--color-text-muted, #9395a5);--color-bg: var(--color-bg, #f7f5fb);--color-card-bg: var(--color-card-bg, #ffffff);--color-border: var(--color-border, #ede9f6);--color-hover: var(--color-hover, #f5f2fb);--color-accent: var(--color-accent, #e84855);--radius-sm: var(--radius-sm, 6px);--radius-md: var(--radius-md, 10px);--radius-lg: var(--radius-lg, 16px);display:block;font-family:var(--font-sans, "Poppins", system-ui, -apple-system, sans-serif);color:var(--color-text)}:host>*{letter-spacing:normal;word-spacing:normal;line-height:1.5;text-transform:none;text-indent:0;font-style:normal;font-weight:400;font-variant:normal;text-align:left;white-space:normal}*,*:before,*:after{box-sizing:border-box}.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:var(--radius-md);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;border:1px solid transparent;transition:background .15s,border-color .15s,box-shadow .15s,opacity .15s;text-decoration:none;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn-sm{padding:6px 12px;font-size:12px}.btn-primary{background:var(--color-accent);color:#fff;border-color:var(--color-accent)}.btn-primary:hover:not(:disabled){background:#d13d4a;border-color:#d13d4a;box-shadow:0 2px 8px color-mix(in srgb,var(--color-accent) 30%,transparent)}.btn-outline{background:transparent;color:var(--color-text);border-color:var(--color-border)}.btn-outline:hover:not(:disabled){background:var(--color-hover);border-color:#d5d0e4}.btn-ghost{background:transparent;color:var(--color-text-muted);border-color:transparent}.btn-ghost:hover:not(:disabled){background:var(--color-hover);color:var(--color-text)}
2
+ `,`@charset "UTF-8";:host{--be-bg: var(--color-card-bg, #ffffff);--be-surface: var(--color-bg, #f7f5fb);--be-text: var(--color-text, #5d5f71);--be-muted: var(--color-text-muted, #9395a5);--be-border: var(--color-border, #ede9f6);--be-hover: var(--color-hover, #f5f2fb);--be-primary: var(--color-accent, #e84855);--be-primary-hover: #d13d4a;--be-primary-fg: #ffffff;--be-danger: var(--color-accent, #e84855);--be-alert-bg: #fff1f2;--be-alert-border: #fecdd3;--be-alert-text: #be123c;--be-placeholder: #c0bdc8;--be-radius: var(--radius-lg, 16px);--be-radius-field: 8px;--be-radius-btn: var(--radius-md, 10px);--be-shadow: 0 4px 24px rgba(0, 0, 0, .06);--be-font: var(--font-sans, "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);display:block;font-family:var(--be-font);color:var(--be-text);line-height:1.5;-webkit-font-smoothing:antialiased;container-type:inline-size}:host>*{letter-spacing:normal;word-spacing:normal;line-height:1.5;text-transform:none;text-indent:0;font-style:normal;font-weight:400;font-variant:normal;text-align:left;white-space:normal}*,*:before,*:after{box-sizing:border-box}.wrap{display:flex;justify-content:center;width:100%}.card{width:100%;max-width:420px;padding:40px;background:var(--be-bg);border:1px solid var(--be-border);border-radius:var(--be-radius);box-shadow:var(--be-shadow);display:flex;flex-direction:column;gap:16px}.wrap--compact .card{padding:22px 20px;box-shadow:none}.brand{display:flex;align-items:center;gap:10px;margin-bottom:8px}.brand__mark{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:var(--be-primary);color:var(--be-primary-fg);font-size:19px}.brand__name{font-size:20px;font-weight:700}.brand__name span{color:var(--be-primary)}.title{margin:4px 0 0;font-size:22px;font-weight:700}.subtitle{margin:0;color:var(--be-muted);font-size:14px}.field{display:flex;flex-direction:column;gap:6px}.field__label{font-size:13px;font-weight:500;color:var(--be-text)}.field__input-wrap{position:relative;display:block}input{width:100%;padding:10px 14px;font:inherit;font-size:14px;color:var(--be-text);background:var(--be-surface);border:1px solid var(--be-border);border-radius:var(--be-radius-field);transition:border-color .15s,box-shadow .15s}input::placeholder{color:var(--be-placeholder)}input:focus-visible{outline:none;border-color:var(--be-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--be-primary) 10%,transparent)}input[aria-invalid=true]{border-color:var(--be-danger)}.field__input-wrap input{padding-right:42px}.reveal{position:absolute;top:50%;right:6px;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:30px;padding:0;font-size:14px;line-height:1;background:none;border:0;border-radius:8px;cursor:pointer;color:var(--be-muted);transition:color .15s}.reveal:hover{color:var(--be-text)}.field__error{font-size:12px;color:var(--be-danger)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 18px;font:inherit;font-size:13px;font-weight:600;border-radius:var(--be-radius-btn);border:1px solid transparent;cursor:pointer;transition:transform .12s,filter .15s,background .15s}.btn:active{transform:translateY(1px)}.btn--primary{background:var(--be-primary);color:var(--be-primary-fg);border-color:var(--be-primary)}.btn--primary:hover:not(:disabled){background:var(--be-primary-hover);border-color:var(--be-primary-hover);box-shadow:0 2px 8px color-mix(in srgb,var(--be-primary) 30%,transparent)}.btn--primary:disabled{opacity:.5;cursor:not-allowed}.btn--ghost{background:transparent;color:var(--be-text);border-color:var(--be-border);padding:8px 12px;font-size:13px}.btn--ghost:hover{background:var(--be-hover);border-color:#d5d0e4}.spinner{width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.spinner{animation-duration:2s}}.alert{display:flex;gap:10px;align-items:flex-start;padding:10px 14px;background:var(--be-alert-bg);border:1px solid var(--be-alert-border);border-radius:var(--be-radius-field);font-size:13px;color:var(--be-alert-text)}.alert strong{display:block}.alert p{margin:2px 0 0}.alert__icon{line-height:1.35}.foot{margin:0;text-align:center;font-size:11.5px;color:var(--be-muted)}.forgot{align-self:center;font-size:12.5px;color:var(--be-muted);text-decoration:none}.forgot:hover{color:var(--be-primary);text-decoration:underline}.signed-in{display:flex;align-items:center;gap:12px;width:100%;max-width:420px;padding:12px 14px;background:var(--be-bg);border:1px solid var(--be-border);border-radius:var(--be-radius)}.avatar{flex:0 0 auto;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--be-primary);color:var(--be-primary-fg);font-size:13px;font-weight:640}.signed-in__who{display:flex;flex-direction:column;min-width:0;flex:1}.signed-in__who strong{font-size:14px}.signed-in__who span{font-size:12px;color:var(--be-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.skeleton{width:100%;max-width:420px;padding:32px 28px;border:1px solid var(--be-border);border-radius:var(--be-radius);display:flex;flex-direction:column;gap:14px}.sk{background:linear-gradient(90deg,var(--be-border) 25%,color-mix(in srgb,var(--be-border) 45%,transparent) 50%,var(--be-border) 75%);background-size:200% 100%;animation:shimmer 1.3s linear infinite;border-radius:8px}@keyframes shimmer{to{background-position:-200% 0}}.sk--logo{width:110px;height:22px}.sk--title{width:60%;height:26px}.sk--field{height:42px}.sk--btn{height:42px;width:100%}@media (prefers-reduced-motion: reduce){.sk{animation:none}}@container (max-width: 360px){.card{padding:22px 18px}.title{font-size:20px}}
3
+ `],encapsulation:3,changeDetection:0})}};export{G as BloomsLoginComponent};