Changeset 3186010
- Timestamp:
- 11/11/2024 08:32:54 PM (13 months ago)
- Location:
- luckynode
- Files:
-
- 2 added
- 10 edited
- 1 copied
-
tags/1.0.7 (copied) (copied from luckynode/trunk)
-
tags/1.0.7/dist/luckynodefe/browser/main.js (modified) (1 diff)
-
tags/1.0.7/luckynode.php (modified) (2 diffs)
-
tags/1.0.7/plugin (added)
-
tags/1.0.7/readme.txt (modified) (2 diffs)
-
tags/1.0.7/src/luckynode-optimization-image.php (modified) (12 diffs)
-
tags/1.0.7/src/version.txt (modified) (1 diff)
-
trunk/dist/luckynodefe/browser/main.js (modified) (1 diff)
-
trunk/luckynode.php (modified) (2 diffs)
-
trunk/plugin (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/luckynode-optimization-image.php (modified) (12 diffs)
-
trunk/src/version.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luckynode/tags/1.0.7/dist/luckynodefe/browser/main.js
r3185011 r3186010 1 import{a as Y,b as Se,g as E}from"./chunk-GAL4ENT6.js";function ih(t,e){return Object.is(t,e)}var Ke=null,$s=!1,Gs=1,Tn=Symbol("SIGNAL");function ce(t){let e=Ke;return Ke=t,e}function oh(){return Ke}var jr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ys(t){if($s)throw new Error("");if(Ke===null)return;Ke.consumerOnSignalRead(t);let e=Ke.nextProducerIndex++;if(Zs(Ke),e<Ke.producerNode.length&&Ke.producerNode[e]!==t&&Br(Ke)){let i=Ke.producerNode[e];Ks(i,Ke.producerIndexOfThis[e])}Ke.producerNode[e]!==t&&(Ke.producerNode[e]=t,Ke.producerIndexOfThis[e]=Br(Ke)?lh(t,Ke,e):0),Ke.producerLastReadVersion[e]=t.version}function vy(){Gs++}function rh(t){if(!(Br(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Gs)){if(!t.producerMustRecompute(t)&&!ru(t)){t.dirty=!1,t.lastCleanEpoch=Gs;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Gs}}function sh(t){if(t.liveConsumerNode===void 0)return;let e=$s;$s=!0;try{for(let i of t.liveConsumerNode)i.dirty||yy(i)}finally{$s=e}}function ah(){return Ke?.consumerAllowSignalWrites!==!1}function yy(t){t.dirty=!0,sh(t),t.consumerMarkedDirty?.(t)}function qs(t){return t&&(t.nextProducerIndex=0),ce(t)}function ou(t,e){if(ce(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Br(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)Ks(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ru(t){Zs(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(rh(i),n!==i.version))return!0}return!1}function su(t){if(Zs(t),Br(t))for(let e=0;e<t.producerNode.length;e++)Ks(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function lh(t,e,i){if(ch(t),t.liveConsumerNode.length===0&&uh(t))for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=lh(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function Ks(t,e){if(ch(t),t.liveConsumerNode.length===1&&uh(t))for(let n=0;n<t.producerNode.length;n++)Ks(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];Zs(o),o.producerIndexOfThis[n]=e}}function Br(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Zs(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function ch(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function uh(t){return t.producerNode!==void 0}function dh(t){let e=Object.create(by);e.computation=t;let i=()=>{if(rh(e),Ys(e),e.value===Ws)throw e.error;return e.value};return i[Tn]=e,i}var nu=Symbol("UNSET"),iu=Symbol("COMPUTING"),Ws=Symbol("ERRORED"),by=Se(Y({},jr),{value:nu,dirty:!0,error:null,equal:ih,producerMustRecompute(t){return t.value===nu||t.value===iu},producerRecomputeValue(t){if(t.value===iu)throw new Error("Detected cycle in computations.");let e=t.value;t.value=iu;let i=qs(t),n;try{n=t.computation()}catch(o){n=Ws,t.error=o}finally{ou(t,i)}if(e!==nu&&e!==Ws&&n!==Ws&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function Cy(){throw new Error}var fh=Cy;function ph(){fh()}function hh(t){fh=t}var Dy=null;function mh(t){let e=Object.create(au);e.value=t;let i=()=>(Ys(e),e.value);return i[Tn]=e,i}function Qs(t,e){ah()||ph(),t.equal(t.value,e)||(t.value=e,wy(t))}function gh(t,e){ah()||ph(),Qs(t,e(t.value))}var au=Se(Y({},jr),{equal:ih,value:void 0});function wy(t){t.version++,vy(),sh(t),Dy?.()}function W(t){return typeof t=="function"}function No(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Js=No(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription:1 import{a as Y,b as Se,g as E}from"./chunk-GAL4ENT6.js";function nh(t,e){return Object.is(t,e)}var Ke=null,zs=!1,$s=1,Tn=Symbol("SIGNAL");function ce(t){let e=Ke;return Ke=t,e}function ih(){return Ke}var Ur={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ws(t){if(zs)throw new Error("");if(Ke===null)return;Ke.consumerOnSignalRead(t);let e=Ke.nextProducerIndex++;if(Ks(Ke),e<Ke.producerNode.length&&Ke.producerNode[e]!==t&&jr(Ke)){let i=Ke.producerNode[e];qs(i,Ke.producerIndexOfThis[e])}Ke.producerNode[e]!==t&&(Ke.producerNode[e]=t,Ke.producerIndexOfThis[e]=jr(Ke)?ah(t,Ke,e):0),Ke.producerLastReadVersion[e]=t.version}function vy(){$s++}function oh(t){if(!(jr(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===$s)){if(!t.producerMustRecompute(t)&&!ou(t)){t.dirty=!1,t.lastCleanEpoch=$s;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=$s}}function rh(t){if(t.liveConsumerNode===void 0)return;let e=zs;zs=!0;try{for(let i of t.liveConsumerNode)i.dirty||yy(i)}finally{zs=e}}function sh(){return Ke?.consumerAllowSignalWrites!==!1}function yy(t){t.dirty=!0,rh(t),t.consumerMarkedDirty?.(t)}function Ys(t){return t&&(t.nextProducerIndex=0),ce(t)}function iu(t,e){if(ce(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(jr(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)qs(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ou(t){Ks(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(oh(i),n!==i.version))return!0}return!1}function ru(t){if(Ks(t),jr(t))for(let e=0;e<t.producerNode.length;e++)qs(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function ah(t,e,i){if(lh(t),t.liveConsumerNode.length===0&&ch(t))for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=ah(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function qs(t,e){if(lh(t),t.liveConsumerNode.length===1&&ch(t))for(let n=0;n<t.producerNode.length;n++)qs(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];Ks(o),o.producerIndexOfThis[n]=e}}function jr(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ks(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function lh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function ch(t){return t.producerNode!==void 0}function uh(t){let e=Object.create(Cy);e.computation=t;let i=()=>{if(oh(e),Ws(e),e.value===Gs)throw e.error;return e.value};return i[Tn]=e,i}var tu=Symbol("UNSET"),nu=Symbol("COMPUTING"),Gs=Symbol("ERRORED"),Cy=Se(Y({},Ur),{value:tu,dirty:!0,error:null,equal:nh,producerMustRecompute(t){return t.value===tu||t.value===nu},producerRecomputeValue(t){if(t.value===nu)throw new Error("Detected cycle in computations.");let e=t.value;t.value=nu;let i=Ys(t),n;try{n=t.computation()}catch(o){n=Gs,t.error=o}finally{iu(t,i)}if(e!==tu&&e!==Gs&&n!==Gs&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function by(){throw new Error}var dh=by;function fh(){dh()}function ph(t){dh=t}var Dy=null;function hh(t){let e=Object.create(su);e.value=t;let i=()=>(Ws(e),e.value);return i[Tn]=e,i}function Zs(t,e){sh()||fh(),t.equal(t.value,e)||(t.value=e,wy(t))}function mh(t,e){sh()||fh(),Zs(t,e(t.value))}var su=Se(Y({},Ur),{equal:nh,value:void 0});function wy(t){t.version++,vy(),rh(t),Dy?.()}function W(t){return typeof t=="function"}function Ao(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Qs=Ao(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription: 2 2 ${i.map((n,o)=>`${o+1}) ${n.toString()}`).join(` 3 `)}`:"",this.name="UnsubscriptionError",this.errors=i});function Gi(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var je=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let r of i)r.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(W(n))try{n()}catch(r){e=r instanceof Js?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{_h(r)}catch(s){e=e??[],s instanceof Js?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Js(e)}}add(e){var i;if(e&&e!==this)if(this.closed)_h(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&Gi(i,e)}remove(e){let{_finalizers:i}=this;i&&Gi(i,e),e instanceof t&&e._removeParent(this)}};je.EMPTY=(()=>{let t=new je;return t.closed=!0,t})();var lu=je.EMPTY;function Xs(t){return t instanceof je||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function _h(t){W(t)?t():t.unsubscribe()}var pn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ao={setTimeout(t,e,...i){let{delegate:n}=Ao;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=Ao;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ea(t){Ao.setTimeout(()=>{let{onUnhandledError:e}=pn;if(e)e(t);else throw t})}function $n(){}var vh=cu("C",void 0,void 0);function yh(t){return cu("E",void 0,t)}function bh(t){return cu("N",t,void 0)}function cu(t,e,i){return{kind:t,value:e,error:i}}var Wi=null;function Ro(t){if(pn.useDeprecatedSynchronousErrorHandling){let e=!Wi;if(e&&(Wi={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=Wi;if(Wi=null,i)throw n}}else t()}function Ch(t){pn.useDeprecatedSynchronousErrorHandling&&Wi&&(Wi.errorThrown=!0,Wi.error=t)}var Yi=class extends je{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Xs(e)&&e.add(this)):this.destination=My}static create(e,i,n){return new hn(e,i,n)}next(e){this.isStopped?du(bh(e),this):this._next(e)}error(e){this.isStopped?du(yh(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?du(vh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Ey=Function.prototype.bind;function uu(t,e){return Ey.call(t,e)}var fu=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){ta(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){ta(n)}else ta(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){ta(i)}}},hn=class extends Yi{constructor(e,i,n){super();let o;if(W(e)||!e)o={next:e??void 0,error:i??void 0,complete:n??void 0};else{let r;this&&pn.useDeprecatedNextContext?(r=Object.create(e),r.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&uu(e.next,r),error:e.error&&uu(e.error,r),complete:e.complete&&uu(e.complete,r)}):o=e}this.destination=new fu(o)}};function ta(t){pn.useDeprecatedSynchronousErrorHandling?Ch(t):ea(t)}function Sy(t){throw t}function du(t,e){let{onStoppedNotification:i}=pn;i&&Ao.setTimeout(()=>i(t,e))}var My={closed:!0,next:$n,error:Sy,complete:$n};var ko=typeof Symbol=="function"&&Symbol.observable||"@@observable";function In(t){return t}function Dh(t){return t.length===0?In:t.length===1?t[0]:function(i){return t.reduce((n,o)=>o(n),i)}}var ee=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,o){let r=Iy(i)?i:new hn(i,n,o);return Ro(()=>{let{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=wh(n),new n((o,r)=>{let s=new hn({next:a=>{try{i(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[ko](){return this}pipe(...i){return Dh(i)(this)}toPromise(i){return i=wh(i),new i((n,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>n(r))})}}return t.create=e=>new t(e),t})();function wh(t){var e;return(e=t??pn.Promise)!==null&&e!==void 0?e:Promise}function Ty(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function Iy(t){return t&&t instanceof Yi||Ty(t)&&Xs(t)}function xy(t){return W(t?.lift)}function me(t){return e=>{if(xy(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(t,e,i,n,o){return new pu(t,e,i,n,o)}var pu=class extends Yi{constructor(e,i,n,o,r,s){super(e),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(l){e.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};var Eh=No(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new na(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new Eh}next(i){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:o,observers:r}=this;return n||o?lu:(this.currentObservers=null,r.push(i),new je(()=>{this.currentObservers=null,Gi(r,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:o,isStopped:r}=this;n?i.error(o):r&&i.complete()}asObservable(){let i=new ee;return i.source=this,i}}return t.create=(e,i)=>new na(e,i),t})(),na=class extends he{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:lu}};var qi=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Ur={now(){return(Ur.delegate||Date).now()},delegate:void 0};var Gn=class extends he{constructor(e=1/0,i=1/0,n=Ur){super(),this._bufferSize=e,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,i)}next(e){let{isStopped:i,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;i||(n.push(e),!o&&n.push(r.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let i=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!e.closed;s+=n?1:2)e.next(r[s]);return this._checkFinalizedStatuses(e),i}_trimBuffer(){let{_bufferSize:e,_timestampProvider:i,_buffer:n,_infiniteTimeWindow:o}=this,r=(o?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!o){let s=i.now(),a=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}}};var ia=class extends je{constructor(e,i){super()}schedule(e,i=0){return this}};var Hr={setInterval(t,e,...i){let{delegate:n}=Hr;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=Hr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var oa=class extends ia{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let o=this.id,r=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(r,o,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(r,this.id,i),this}requestAsyncId(e,i,n=0){return Hr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&Hr.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,o;try{this.work(e)}catch(r){n=!0,o=r||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Gi(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var Fo=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};Fo.now=Ur.now;var ra=class extends Fo{constructor(e,i=Fo.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var xn=new ra(oa),hu=xn;var Wn=new ee(t=>t.complete());function sa(t){return t&&W(t.schedule)}function mu(t){return t[t.length-1]}function Po(t){return W(mu(t))?t.pop():void 0}function hi(t){return sa(mu(t))?t.pop():void 0}function Sh(t,e){return typeof mu(t)=="number"?t.pop():e}function Th(t,e,i,n){function o(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function a(p){try{d(n.next(p))}catch(m){s(m)}}function l(p){try{d(n.throw(p))}catch(m){s(m)}}function d(p){p.done?r(p.value):o(p.value).then(a,l)}d((n=n.apply(t,e||[])).next())})}function Mh(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ki(t){return this instanceof Ki?(this.v=t,this):new Ki(t)}function Ih(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),o,r=[];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(g){return function(D){return Promise.resolve(D).then(g,m)}}function a(g,D){n[g]&&(o[g]=function(x){return new Promise(function(O,N){r.push([g,x,O,N])>1||l(g,x)})},D&&(o[g]=D(o[g])))}function l(g,D){try{d(n[g](D))}catch(x){_(r[0][3],x)}}function d(g){g.value instanceof Ki?Promise.resolve(g.value.v).then(p,m):_(r[0][2],g)}function p(g){l("next",g)}function m(g){l("throw",g)}function _(g,D){g(D),r.shift(),r.length&&l(r[0][0],r[0][1])}}function xh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Mh=="function"?Mh(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(r){i[r]=t[r]&&function(s){return new Promise(function(a,l){s=t[r](s),o(a,l,s.done,s.value)})}}function o(r,s,a,l){Promise.resolve(l).then(function(d){r({value:d,done:a})},s)}}var Lo=t=>t&&typeof t.length=="number"&&typeof t!="function";function aa(t){return W(t?.then)}function la(t){return W(t[ko])}function ca(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function ua(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Oy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var da=Oy();function fa(t){return W(t?.[da])}function pa(t){return Ih(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:o}=yield Ki(i.read());if(o)return yield Ki(void 0);yield yield Ki(n)}}finally{i.releaseLock()}})}function ha(t){return W(t?.getReader)}function de(t){if(t instanceof ee)return t;if(t!=null){if(la(t))return Ny(t);if(Lo(t))return Ay(t);if(aa(t))return Ry(t);if(ca(t))return Oh(t);if(fa(t))return ky(t);if(ha(t))return Fy(t)}throw ua(t)}function Ny(t){return new ee(e=>{let i=t[ko]();if(W(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ay(t){return new ee(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function Ry(t){return new ee(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,ea)})}function ky(t){return new ee(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function Oh(t){return new ee(e=>{Py(t,e).catch(i=>e.error(i))})}function Fy(t){return Oh(pa(t))}function Py(t,e){var i,n,o,r;return Th(this,void 0,void 0,function*(){try{for(i=xh(t);n=yield i.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&(yield r.call(i))}finally{if(o)throw o.error}}e.complete()})}function Bt(t,e,i,n=0,o=!1){let r=e.schedule(function(){i(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function ma(t,e=0){return me((i,n)=>{i.subscribe(ue(n,o=>Bt(n,t,()=>n.next(o),e),()=>Bt(n,t,()=>n.complete(),e),o=>Bt(n,t,()=>n.error(o),e)))})}function ga(t,e=0){return me((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function Nh(t,e){return de(t).pipe(ga(e),ma(e))}function Ah(t,e){return de(t).pipe(ga(e),ma(e))}function Rh(t,e){return new ee(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function kh(t,e){return new ee(i=>{let n;return Bt(i,e,()=>{n=t[da](),Bt(i,e,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(s){i.error(s);return}r?i.complete():i.next(o)},0,!0)}),()=>W(n?.return)&&n.return()})}function _a(t,e){if(!t)throw new Error("Iterable cannot be null");return new ee(i=>{Bt(i,e,()=>{let n=t[Symbol.asyncIterator]();Bt(i,e,()=>{n.next().then(o=>{o.done?i.complete():i.next(o.value)})},0,!0)})})}function Fh(t,e){return _a(pa(t),e)}function Ph(t,e){if(t!=null){if(la(t))return Nh(t,e);if(Lo(t))return Rh(t,e);if(aa(t))return Ah(t,e);if(ca(t))return _a(t,e);if(fa(t))return kh(t,e);if(ha(t))return Fh(t,e)}throw ua(t)}function mn(t,e){return e?Ph(t,e):de(t)}function gn(...t){let e=hi(t);return mn(t,e)}function gu(t){return!!t&&(t instanceof ee||W(t.lift)&&W(t.subscribe))}var va=No(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Z(t,e){let i=typeof e=="object";return new Promise((n,o)=>{let r=!1,s;t.subscribe({next:a=>{s=a,r=!0},error:o,complete:()=>{r?n(s):i?n(e.defaultValue):o(new va)}})})}function On(t,e){let i=typeof e=="object";return new Promise((n,o)=>{let r=new hn({next:s=>{n(s),r.unsubscribe()},error:o,complete:()=>{i?n(e.defaultValue):o(new va)}});t.subscribe(r)})}function Lh(t){return t instanceof Date&&!isNaN(t)}function Me(t,e){return me((i,n)=>{let o=0;i.subscribe(ue(n,r=>{n.next(t.call(e,r,o++))}))})}var{isArray:Ly}=Array;function Vy(t,e){return Ly(e)?t(...e):t(e)}function ya(t){return Me(e=>Vy(t,e))}var{isArray:By}=Array,{getPrototypeOf:jy,prototype:Uy,keys:Hy}=Object;function Vh(t){if(t.length===1){let e=t[0];if(By(e))return{args:e,keys:null};if(zy(e)){let i=Hy(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function zy(t){return t&&typeof t=="object"&&jy(t)===Uy}function Bh(t,e){return t.reduce((i,n,o)=>(i[n]=e[o],i),{})}function jh(t,e,i,n,o,r,s,a){let l=[],d=0,p=0,m=!1,_=()=>{m&&!l.length&&!d&&e.complete()},g=x=>d<n?D(x):l.push(x),D=x=>{r&&e.next(x),d++;let O=!1;de(i(x,p++)).subscribe(ue(e,N=>{o?.(N),r?g(N):e.next(N)},()=>{O=!0},void 0,()=>{if(O)try{for(d--;l.length&&d<n;){let N=l.shift();s?Bt(e,s,()=>D(N)):D(N)}_()}catch(N){e.error(N)}}))};return t.subscribe(ue(e,g,()=>{m=!0,_()})),()=>{a?.()}}function gt(t,e,i=1/0){return W(e)?gt((n,o)=>Me((r,s)=>e(n,r,o,s))(de(t(n,o))),i):(typeof e=="number"&&(i=e),me((n,o)=>jh(n,o,t,i)))}function ba(t=1/0){return gt(In,t)}function Uh(){return ba(1)}function Zi(...t){return Uh()(mn(t,hi(t)))}function _u(t){return new ee(e=>{de(t()).subscribe(e)})}function vu(...t){let e=Po(t),{args:i,keys:n}=Vh(t),o=new ee(r=>{let{length:s}=i;if(!s){r.complete();return}let a=new Array(s),l=s,d=s;for(let p=0;p<s;p++){let m=!1;de(i[p]).subscribe(ue(r,_=>{m||(m=!0,d--),a[p]=_},()=>l--,void 0,()=>{(!l||!m)&&(d||r.next(n?Bh(n,a):a),r.complete())}))}});return e?o.pipe(ya(e)):o}var $y=["addListener","removeListener"],Gy=["addEventListener","removeEventListener"],Wy=["on","off"];function xe(t,e,i,n){if(W(i)&&(n=i,i=void 0),n)return xe(t,e,i).pipe(ya(n));let[o,r]=Ky(t)?Gy.map(s=>a=>t[s](e,a,i)):Yy(t)?$y.map(Hh(t,e)):qy(t)?Wy.map(Hh(t,e)):[];if(!o&&Lo(t))return gt(s=>xe(s,e,i))(de(t));if(!o)throw new TypeError("Invalid event target");return new ee(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function Hh(t,e){return i=>n=>t[i](e,n)}function Yy(t){return W(t.addListener)&&W(t.removeListener)}function qy(t){return W(t.on)&&W(t.off)}function Ky(t){return W(t.addEventListener)&&W(t.removeEventListener)}function Qi(t=0,e,i=hu){let n=-1;return e!=null&&(sa(e)?i=e:n=e),new ee(o=>{let r=Lh(t)?+t-i.now():t;r<0&&(r=0);let s=0;return i.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function zr(...t){let e=hi(t),i=Sh(t,1/0),n=t;return n.length?n.length===1?de(n[0]):ba(i)(mn(n,e)):Wn}var{isArray:Zy}=Array;function Ca(t){return t.length===1&&Zy(t[0])?t[0]:t}function _t(t,e){return me((i,n)=>{let o=0;i.subscribe(ue(n,r=>t.call(e,r,o++)&&n.next(r)))})}function Da(...t){return t=Ca(t),t.length===1?de(t[0]):new ee(Qy(t))}function Qy(t){return e=>{let i=[];for(let n=0;i&&!e.closed&&n<t.length;n++)i.push(de(t[n]).subscribe(ue(e,o=>{if(i){for(let r=0;r<i.length;r++)r!==n&&i[r].unsubscribe();i=null}e.next(o)})))}}function $r(...t){let e=Po(t),i=Ca(t);return i.length?new ee(n=>{let o=i.map(()=>[]),r=i.map(()=>!1);n.add(()=>{o=r=null});for(let s=0;!n.closed&&s<i.length;s++)de(i[s]).subscribe(ue(n,a=>{if(o[s].push(a),o.every(l=>l.length)){let l=o.map(d=>d.shift());n.next(e?e(...l):l),o.some((d,p)=>!d.length&&r[p])&&n.complete()}},()=>{r[s]=!0,!o[s].length&&n.complete()}));return()=>{o=r=null}}):Wn}function yu(t,e){return W(e)?gt(t,e,1):gt(t,1)}function Ji(t,e=xn){return me((i,n)=>{let o=null,r=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let d=r;r=null,n.next(d)}};function l(){let d=s+t,p=e.now();if(p<d){o=this.schedule(void 0,d-p),n.add(o);return}a()}i.subscribe(ue(n,d=>{r=d,s=e.now(),o||(o=e.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{r=o=null}))})}function Yn(t){return t<=0?()=>Wn:me((e,i)=>{let n=0;e.subscribe(ue(i,o=>{++n<=t&&(i.next(o),t<=n&&i.complete())}))})}function zh(){return me((t,e)=>{t.subscribe(ue(e,$n))})}function $h(t){return Me(()=>t)}function bu(t,e){return e?i=>Zi(e.pipe(Yn(1),zh()),i.pipe(bu(t))):gt((i,n)=>de(t(i,n)).pipe(Yn(1),$h(i)))}function Cu(t,e=xn){let i=Qi(t,e);return bu(()=>i)}function Vo(t,e=In){return t=t??Jy,me((i,n)=>{let o,r=!0;i.subscribe(ue(n,s=>{let a=e(s);(r||!t(o,a))&&(r=!1,o=a,n.next(s))}))})}function Jy(t,e){return t===e}function Du(...t){return e=>Zi(e,gn(...t))}function wa(t){return me((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function Gh(t={}){let{connector:e=()=>new he,resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let s,a,l,d=0,p=!1,m=!1,_=()=>{a?.unsubscribe(),a=void 0},g=()=>{_(),s=l=void 0,p=m=!1},D=()=>{let x=s;g(),x?.unsubscribe()};return me((x,O)=>{d++,!m&&!p&&_();let N=l=l??e();O.add(()=>{d--,d===0&&!m&&!p&&(a=wu(D,o))}),N.subscribe(O),!s&&d>0&&(s=new hn({next:z=>N.next(z),error:z=>{m=!0,_(),a=wu(g,i,z),N.error(z)},complete:()=>{p=!0,_(),a=wu(g,n),N.complete()}}),de(x).subscribe(s))})(r)}}function wu(t,e,...i){if(e===!0){t();return}if(e===!1)return;let n=new hn({next:()=>{n.unsubscribe(),t()}});return de(e(...i)).subscribe(n)}function Eu(t,e,i){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:i}=t:n=t??1/0,Gh({connector:()=>new Gn(n,e,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Su(t){return _t((e,i)=>t<=i)}function Mu(...t){let e=hi(t);return me((i,n)=>{(e?Zi(t,i,e):Zi(t,i)).subscribe(n)})}function mi(t,e){return me((i,n)=>{let o=null,r=0,s=!1,a=()=>s&&!o&&n.complete();i.subscribe(ue(n,l=>{o?.unsubscribe();let d=0,p=r++;de(t(l,p)).subscribe(o=ue(n,m=>n.next(e?e(l,m,p,d++):m),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ze(t){return me((e,i)=>{de(t).subscribe(ue(i,()=>i.complete(),$n)),!i.closed&&e.subscribe(i)})}function Xi(t,e,i){let n=W(t)||e||i?{next:t,error:e,complete:i}:t;return n?me((o,r)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(ue(r,l=>{var d;(d=n.next)===null||d===void 0||d.call(n,l),r.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var d;a=!1,(d=n.error)===null||d===void 0||d.call(n,l),r.error(l)},()=>{var l,d;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(d=n.finalize)===null||d===void 0||d.call(n)}))}):In}function Wh(t,e){return me((i,n)=>{let{leading:o=!0,trailing:r=!1}=e??{},s=!1,a=null,l=null,d=!1,p=()=>{l?.unsubscribe(),l=null,r&&(g(),d&&n.complete())},m=()=>{l=null,d&&n.complete()},_=D=>l=de(t(D)).subscribe(ue(n,p,m)),g=()=>{if(s){s=!1;let D=a;a=null,n.next(D),!d&&_(D)}};i.subscribe(ue(n,D=>{s=!0,a=D,!(l&&!l.closed)&&(o?g():_(D))},()=>{d=!0,!(r&&s&&l&&!l.closed)&&n.complete()}))})}function Tu(t,e=xn,i){let n=Qi(t,e);return Wh(()=>n,i)}function Gr(...t){let e=Po(t);return me((i,n)=>{let o=t.length,r=new Array(o),s=t.map(()=>!1),a=!1;for(let l=0;l<o;l++)de(t[l]).subscribe(ue(n,d=>{r[l]=d,!a&&!s[l]&&(s[l]=!0,(a=s.every(In))&&(s=null))},$n));i.subscribe(ue(n,l=>{if(a){let d=[l,...r];n.next(e?e(...d):d)}}))})}var Rm="https://g.co/ng/security#xss",q=class extends Error{constructor(e,i){super(sl(e,i)),this.code=e}};function sl(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var km=Symbol("InputSignalNode#UNSET"),Xy=Se(Y({},au),{transformFn:void 0,applyValueToInputSignal(t,e){Qs(t,e)}});function Fm(t,e){let i=Object.create(Xy);i.value=t,i.transformFn=e?.transform;function n(){if(Ys(i),i.value===km)throw new q(-950,!1);return i.value}return n[Tn]=i,n}function is(t){return{toString:t}.toString()}var Ea="__parameters__";function e1(t){return function(...i){if(t){let n=t(...i);for(let o in n)this[o]=n[o]}}}function Pm(t,e,i){return is(()=>{let n=e1(e);function o(...r){if(this instanceof o)return n.apply(this,r),this;let s=new o(...r);return a.annotation=s,a;function a(l,d,p){let m=l.hasOwnProperty(Ea)?l[Ea]:Object.defineProperty(l,Ea,{value:[]})[Ea];for(;m.length<=p;)m.push(null);return(m[p]=m[p]||[]).push(s),l}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var io=globalThis;function Oe(t){for(let e in t)if(t[e]===Oe)return e;throw Error("Could not find renamed property on target object.")}function t1(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function At(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(At).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(`4 `);return i===-1?e:e.substring(0,i)}function zu(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var n1=Oe({__forward_ref__:Oe});function at(t){return t.__forward_ref__=at,t.toString=function(){return At(this())},t}function vt(t){return Lm(t)?t():t}function Lm(t){return typeof t=="function"&&t.hasOwnProperty(n1)&&t.__forward_ref__===at}function L(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ut(t){return{providers:t.providers||[],imports:t.imports||[]}}function Zd(t){return Yh(t,Vm)||Yh(t,Bm)}function Yh(t,e){return t.hasOwnProperty(e)?t[e]:null}function i1(t){let e=t&&(t[Vm]||t[Bm]);return e||null}function qh(t){return t&&(t.hasOwnProperty(Kh)||t.hasOwnProperty(o1))?t[Kh]:null}var Vm=Oe({\u0275prov:Oe}),Kh=Oe({\u0275inj:Oe}),Bm=Oe({ngInjectableDef:Oe}),o1=Oe({ngInjectorDef:Oe}),G=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=L({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function jm(t){return t&&!!t.\u0275providers}var r1=Oe({\u0275cmp:Oe}),s1=Oe({\u0275dir:Oe}),a1=Oe({\u0275pipe:Oe});var Pa=Oe({\u0275fac:Oe}),Yr=Oe({__NG_ELEMENT_ID__:Oe}),Zh=Oe({__NG_ENV_ID__:Oe});function $o(t){return typeof t=="string"?t:t==null?"":String(t)}function l1(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():$o(t)}function c1(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new q(-200,t)}function Qd(t,e){throw new q(-201,!1)}var fe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fe||{}),$u;function Um(){return $u}function Dt(t){let e=$u;return $u=t,e}function Hm(t,e,i){let n=Zd(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&fe.Optional)return null;if(e!==void 0)return e;Qd(t,"Injector")}var u1={},qr=u1,Gu="__NG_DI_FLAG__",La="ngTempTokenPath",d1="ngTokenPath",f1=/\n/gm,p1="\u0275",Qh="__source",Ho;function h1(){return Ho}function gi(t){let e=Ho;return Ho=t,e}function m1(t,e=fe.Default){if(Ho===void 0)throw new q(-203,!1);return Ho===null?Hm(t,void 0,e):Ho.get(t,e&fe.Optional?null:void 0,e)}function H(t,e=fe.Default){return(Um()||m1)(vt(t),e)}function C(t,e=fe.Default){return H(t,al(e))}function al(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Wu(t){let e=[];for(let i=0;i<t.length;i++){let n=vt(t[i]);if(Array.isArray(n)){if(n.length===0)throw new q(900,!1);let o,r=fe.Default;for(let s=0;s<n.length;s++){let a=n[s],l=g1(a);typeof l=="number"?l===-1?o=a.token:r|=l:o=a}e.push(H(o,r))}else e.push(H(n))}return e}function zm(t,e){return t[Gu]=e,t.prototype[Gu]=e,t}function g1(t){return t[Gu]}function _1(t,e,i,n){let o=t[La];throw e[Qh]&&o.unshift(e[Qh]),t.message=v1(`5 `+t.message,o,i,n),t[d1]=o,t[ La]=null,t}function v1(t,e,i,n=null){t=t&&t.charAt(0)===`3 `)}`:"",this.name="UnsubscriptionError",this.errors=i});function Gi(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var Ue=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let r of i)r.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(W(n))try{n()}catch(r){e=r instanceof Qs?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{gh(r)}catch(s){e=e??[],s instanceof Qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Qs(e)}}add(e){var i;if(e&&e!==this)if(this.closed)gh(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&Gi(i,e)}remove(e){let{_finalizers:i}=this;i&&Gi(i,e),e instanceof t&&e._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var au=Ue.EMPTY;function Js(t){return t instanceof Ue||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function gh(t){W(t)?t():t.unsubscribe()}var pn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ro={setTimeout(t,e,...i){let{delegate:n}=Ro;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=Ro;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Xs(t){Ro.setTimeout(()=>{let{onUnhandledError:e}=pn;if(e)e(t);else throw t})}function $n(){}var _h=lu("C",void 0,void 0);function vh(t){return lu("E",void 0,t)}function yh(t){return lu("N",t,void 0)}function lu(t,e,i){return{kind:t,value:e,error:i}}var Wi=null;function ko(t){if(pn.useDeprecatedSynchronousErrorHandling){let e=!Wi;if(e&&(Wi={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=Wi;if(Wi=null,i)throw n}}else t()}function Ch(t){pn.useDeprecatedSynchronousErrorHandling&&Wi&&(Wi.errorThrown=!0,Wi.error=t)}var Yi=class extends Ue{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Js(e)&&e.add(this)):this.destination=My}static create(e,i,n){return new hn(e,i,n)}next(e){this.isStopped?uu(yh(e),this):this._next(e)}error(e){this.isStopped?uu(vh(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?uu(_h,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Ey=Function.prototype.bind;function cu(t,e){return Ey.call(t,e)}var du=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){ea(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){ea(n)}else ea(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){ea(i)}}},hn=class extends Yi{constructor(e,i,n){super();let o;if(W(e)||!e)o={next:e??void 0,error:i??void 0,complete:n??void 0};else{let r;this&&pn.useDeprecatedNextContext?(r=Object.create(e),r.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&cu(e.next,r),error:e.error&&cu(e.error,r),complete:e.complete&&cu(e.complete,r)}):o=e}this.destination=new du(o)}};function ea(t){pn.useDeprecatedSynchronousErrorHandling?Ch(t):Xs(t)}function Sy(t){throw t}function uu(t,e){let{onStoppedNotification:i}=pn;i&&Ro.setTimeout(()=>i(t,e))}var My={closed:!0,next:$n,error:Sy,complete:$n};var Fo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function In(t){return t}function bh(t){return t.length===0?In:t.length===1?t[0]:function(i){return t.reduce((n,o)=>o(n),i)}}var ne=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,o){let r=Iy(i)?i:new hn(i,n,o);return ko(()=>{let{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=Dh(n),new n((o,r)=>{let s=new hn({next:a=>{try{i(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[Fo](){return this}pipe(...i){return bh(i)(this)}toPromise(i){return i=Dh(i),new i((n,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>n(r))})}}return t.create=e=>new t(e),t})();function Dh(t){var e;return(e=t??pn.Promise)!==null&&e!==void 0?e:Promise}function Ty(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function Iy(t){return t&&t instanceof Yi||Ty(t)&&Js(t)}function xy(t){return W(t?.lift)}function me(t){return e=>{if(xy(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(t,e,i,n,o){return new fu(t,e,i,n,o)}var fu=class extends Yi{constructor(e,i,n,o,r,s){super(e),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(l){e.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};var wh=Ao(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends ne{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new ta(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new wh}next(i){ko(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){ko(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){ko(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:o,observers:r}=this;return n||o?au:(this.currentObservers=null,r.push(i),new Ue(()=>{this.currentObservers=null,Gi(r,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:o,isStopped:r}=this;n?i.error(o):r&&i.complete()}asObservable(){let i=new ne;return i.source=this,i}}return t.create=(e,i)=>new ta(e,i),t})(),ta=class extends he{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:au}};var qi=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Hr={now(){return(Hr.delegate||Date).now()},delegate:void 0};var Gn=class extends he{constructor(e=1/0,i=1/0,n=Hr){super(),this._bufferSize=e,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,i)}next(e){let{isStopped:i,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;i||(n.push(e),!o&&n.push(r.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let i=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!e.closed;s+=n?1:2)e.next(r[s]);return this._checkFinalizedStatuses(e),i}_trimBuffer(){let{_bufferSize:e,_timestampProvider:i,_buffer:n,_infiniteTimeWindow:o}=this,r=(o?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!o){let s=i.now(),a=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}}};var na=class extends Ue{constructor(e,i){super()}schedule(e,i=0){return this}};var zr={setInterval(t,e,...i){let{delegate:n}=zr;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=zr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var ia=class extends na{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let o=this.id,r=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(r,o,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(r,this.id,i),this}requestAsyncId(e,i,n=0){return zr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&zr.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,o;try{this.work(e)}catch(r){n=!0,o=r||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Gi(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var Po=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};Po.now=Hr.now;var oa=class extends Po{constructor(e,i=Po.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var xn=new oa(ia),pu=xn;var Wn=new ne(t=>t.complete());function ra(t){return t&&W(t.schedule)}function hu(t){return t[t.length-1]}function Lo(t){return W(hu(t))?t.pop():void 0}function hi(t){return ra(hu(t))?t.pop():void 0}function Eh(t,e){return typeof hu(t)=="number"?t.pop():e}function Mh(t,e,i,n){function o(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function a(p){try{d(n.next(p))}catch(m){s(m)}}function l(p){try{d(n.throw(p))}catch(m){s(m)}}function d(p){p.done?r(p.value):o(p.value).then(a,l)}d((n=n.apply(t,e||[])).next())})}function Sh(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ki(t){return this instanceof Ki?(this.v=t,this):new Ki(t)}function Th(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),o,r=[];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(g){return function(D){return Promise.resolve(D).then(g,m)}}function a(g,D){n[g]&&(o[g]=function(x){return new Promise(function(O,N){r.push([g,x,O,N])>1||l(g,x)})},D&&(o[g]=D(o[g])))}function l(g,D){try{d(n[g](D))}catch(x){_(r[0][3],x)}}function d(g){g.value instanceof Ki?Promise.resolve(g.value.v).then(p,m):_(r[0][2],g)}function p(g){l("next",g)}function m(g){l("throw",g)}function _(g,D){g(D),r.shift(),r.length&&l(r[0][0],r[0][1])}}function Ih(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Sh=="function"?Sh(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(r){i[r]=t[r]&&function(s){return new Promise(function(a,l){s=t[r](s),o(a,l,s.done,s.value)})}}function o(r,s,a,l){Promise.resolve(l).then(function(d){r({value:d,done:a})},s)}}var Vo=t=>t&&typeof t.length=="number"&&typeof t!="function";function sa(t){return W(t?.then)}function aa(t){return W(t[Fo])}function la(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function ca(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Oy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ua=Oy();function da(t){return W(t?.[ua])}function fa(t){return Th(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:o}=yield Ki(i.read());if(o)return yield Ki(void 0);yield yield Ki(n)}}finally{i.releaseLock()}})}function pa(t){return W(t?.getReader)}function de(t){if(t instanceof ne)return t;if(t!=null){if(aa(t))return Ny(t);if(Vo(t))return Ay(t);if(sa(t))return Ry(t);if(la(t))return xh(t);if(da(t))return ky(t);if(pa(t))return Fy(t)}throw ca(t)}function Ny(t){return new ne(e=>{let i=t[Fo]();if(W(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ay(t){return new ne(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function Ry(t){return new ne(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,Xs)})}function ky(t){return new ne(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function xh(t){return new ne(e=>{Py(t,e).catch(i=>e.error(i))})}function Fy(t){return xh(fa(t))}function Py(t,e){var i,n,o,r;return Mh(this,void 0,void 0,function*(){try{for(i=Ih(t);n=yield i.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&(yield r.call(i))}finally{if(o)throw o.error}}e.complete()})}function Bt(t,e,i,n=0,o=!1){let r=e.schedule(function(){i(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function ha(t,e=0){return me((i,n)=>{i.subscribe(ue(n,o=>Bt(n,t,()=>n.next(o),e),()=>Bt(n,t,()=>n.complete(),e),o=>Bt(n,t,()=>n.error(o),e)))})}function ma(t,e=0){return me((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function Oh(t,e){return de(t).pipe(ma(e),ha(e))}function Nh(t,e){return de(t).pipe(ma(e),ha(e))}function Ah(t,e){return new ne(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function Rh(t,e){return new ne(i=>{let n;return Bt(i,e,()=>{n=t[ua](),Bt(i,e,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(s){i.error(s);return}r?i.complete():i.next(o)},0,!0)}),()=>W(n?.return)&&n.return()})}function ga(t,e){if(!t)throw new Error("Iterable cannot be null");return new ne(i=>{Bt(i,e,()=>{let n=t[Symbol.asyncIterator]();Bt(i,e,()=>{n.next().then(o=>{o.done?i.complete():i.next(o.value)})},0,!0)})})}function kh(t,e){return ga(fa(t),e)}function Fh(t,e){if(t!=null){if(aa(t))return Oh(t,e);if(Vo(t))return Ah(t,e);if(sa(t))return Nh(t,e);if(la(t))return ga(t,e);if(da(t))return Rh(t,e);if(pa(t))return kh(t,e)}throw ca(t)}function mn(t,e){return e?Fh(t,e):de(t)}function gn(...t){let e=hi(t);return mn(t,e)}function mu(t){return!!t&&(t instanceof ne||W(t.lift)&&W(t.subscribe))}var _a=Ao(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function K(t,e){let i=typeof e=="object";return new Promise((n,o)=>{let r=!1,s;t.subscribe({next:a=>{s=a,r=!0},error:o,complete:()=>{r?n(s):i?n(e.defaultValue):o(new _a)}})})}function On(t,e){let i=typeof e=="object";return new Promise((n,o)=>{let r=new hn({next:s=>{n(s),r.unsubscribe()},error:o,complete:()=>{i?n(e.defaultValue):o(new _a)}});t.subscribe(r)})}function Ph(t){return t instanceof Date&&!isNaN(t)}function Me(t,e){return me((i,n)=>{let o=0;i.subscribe(ue(n,r=>{n.next(t.call(e,r,o++))}))})}var{isArray:Ly}=Array;function Vy(t,e){return Ly(e)?t(...e):t(e)}function va(t){return Me(e=>Vy(t,e))}var{isArray:By}=Array,{getPrototypeOf:jy,prototype:Uy,keys:Hy}=Object;function Lh(t){if(t.length===1){let e=t[0];if(By(e))return{args:e,keys:null};if(zy(e)){let i=Hy(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function zy(t){return t&&typeof t=="object"&&jy(t)===Uy}function Vh(t,e){return t.reduce((i,n,o)=>(i[n]=e[o],i),{})}function Bh(t,e,i,n,o,r,s,a){let l=[],d=0,p=0,m=!1,_=()=>{m&&!l.length&&!d&&e.complete()},g=x=>d<n?D(x):l.push(x),D=x=>{r&&e.next(x),d++;let O=!1;de(i(x,p++)).subscribe(ue(e,N=>{o?.(N),r?g(N):e.next(N)},()=>{O=!0},void 0,()=>{if(O)try{for(d--;l.length&&d<n;){let N=l.shift();s?Bt(e,s,()=>D(N)):D(N)}_()}catch(N){e.error(N)}}))};return t.subscribe(ue(e,g,()=>{m=!0,_()})),()=>{a?.()}}function gt(t,e,i=1/0){return W(e)?gt((n,o)=>Me((r,s)=>e(n,r,o,s))(de(t(n,o))),i):(typeof e=="number"&&(i=e),me((n,o)=>Bh(n,o,t,i)))}function ya(t=1/0){return gt(In,t)}function jh(){return ya(1)}function Zi(...t){return jh()(mn(t,hi(t)))}function gu(t){return new ne(e=>{de(t()).subscribe(e)})}function _u(...t){let e=Lo(t),{args:i,keys:n}=Lh(t),o=new ne(r=>{let{length:s}=i;if(!s){r.complete();return}let a=new Array(s),l=s,d=s;for(let p=0;p<s;p++){let m=!1;de(i[p]).subscribe(ue(r,_=>{m||(m=!0,d--),a[p]=_},()=>l--,void 0,()=>{(!l||!m)&&(d||r.next(n?Vh(n,a):a),r.complete())}))}});return e?o.pipe(va(e)):o}var $y=["addListener","removeListener"],Gy=["addEventListener","removeEventListener"],Wy=["on","off"];function xe(t,e,i,n){if(W(i)&&(n=i,i=void 0),n)return xe(t,e,i).pipe(va(n));let[o,r]=Ky(t)?Gy.map(s=>a=>t[s](e,a,i)):Yy(t)?$y.map(Uh(t,e)):qy(t)?Wy.map(Uh(t,e)):[];if(!o&&Vo(t))return gt(s=>xe(s,e,i))(de(t));if(!o)throw new TypeError("Invalid event target");return new ne(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function Uh(t,e){return i=>n=>t[i](e,n)}function Yy(t){return W(t.addListener)&&W(t.removeListener)}function qy(t){return W(t.on)&&W(t.off)}function Ky(t){return W(t.addEventListener)&&W(t.removeEventListener)}function Qi(t=0,e,i=pu){let n=-1;return e!=null&&(ra(e)?i=e:n=e),new ne(o=>{let r=Ph(t)?+t-i.now():t;r<0&&(r=0);let s=0;return i.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function $r(...t){let e=hi(t),i=Eh(t,1/0),n=t;return n.length?n.length===1?de(n[0]):ya(i)(mn(n,e)):Wn}var{isArray:Zy}=Array;function Ca(t){return t.length===1&&Zy(t[0])?t[0]:t}function _t(t,e){return me((i,n)=>{let o=0;i.subscribe(ue(n,r=>t.call(e,r,o++)&&n.next(r)))})}function ba(...t){return t=Ca(t),t.length===1?de(t[0]):new ne(Qy(t))}function Qy(t){return e=>{let i=[];for(let n=0;i&&!e.closed&&n<t.length;n++)i.push(de(t[n]).subscribe(ue(e,o=>{if(i){for(let r=0;r<i.length;r++)r!==n&&i[r].unsubscribe();i=null}e.next(o)})))}}function Gr(...t){let e=Lo(t),i=Ca(t);return i.length?new ne(n=>{let o=i.map(()=>[]),r=i.map(()=>!1);n.add(()=>{o=r=null});for(let s=0;!n.closed&&s<i.length;s++)de(i[s]).subscribe(ue(n,a=>{if(o[s].push(a),o.every(l=>l.length)){let l=o.map(d=>d.shift());n.next(e?e(...l):l),o.some((d,p)=>!d.length&&r[p])&&n.complete()}},()=>{r[s]=!0,!o[s].length&&n.complete()}));return()=>{o=r=null}}):Wn}function vu(t,e){return W(e)?gt(t,e,1):gt(t,1)}function Ji(t,e=xn){return me((i,n)=>{let o=null,r=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let d=r;r=null,n.next(d)}};function l(){let d=s+t,p=e.now();if(p<d){o=this.schedule(void 0,d-p),n.add(o);return}a()}i.subscribe(ue(n,d=>{r=d,s=e.now(),o||(o=e.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{r=o=null}))})}function Yn(t){return t<=0?()=>Wn:me((e,i)=>{let n=0;e.subscribe(ue(i,o=>{++n<=t&&(i.next(o),t<=n&&i.complete())}))})}function Hh(){return me((t,e)=>{t.subscribe(ue(e,$n))})}function zh(t){return Me(()=>t)}function yu(t,e){return e?i=>Zi(e.pipe(Yn(1),Hh()),i.pipe(yu(t))):gt((i,n)=>de(t(i,n)).pipe(Yn(1),zh(i)))}function Cu(t,e=xn){let i=Qi(t,e);return yu(()=>i)}function Bo(t,e=In){return t=t??Jy,me((i,n)=>{let o,r=!0;i.subscribe(ue(n,s=>{let a=e(s);(r||!t(o,a))&&(r=!1,o=a,n.next(s))}))})}function Jy(t,e){return t===e}function bu(...t){return e=>Zi(e,gn(...t))}function Da(t){return me((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function $h(t={}){let{connector:e=()=>new he,resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let s,a,l,d=0,p=!1,m=!1,_=()=>{a?.unsubscribe(),a=void 0},g=()=>{_(),s=l=void 0,p=m=!1},D=()=>{let x=s;g(),x?.unsubscribe()};return me((x,O)=>{d++,!m&&!p&&_();let N=l=l??e();O.add(()=>{d--,d===0&&!m&&!p&&(a=Du(D,o))}),N.subscribe(O),!s&&d>0&&(s=new hn({next:z=>N.next(z),error:z=>{m=!0,_(),a=Du(g,i,z),N.error(z)},complete:()=>{p=!0,_(),a=Du(g,n),N.complete()}}),de(x).subscribe(s))})(r)}}function Du(t,e,...i){if(e===!0){t();return}if(e===!1)return;let n=new hn({next:()=>{n.unsubscribe(),t()}});return de(e(...i)).subscribe(n)}function wu(t,e,i){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:i}=t:n=t??1/0,$h({connector:()=>new Gn(n,e,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Eu(t){return _t((e,i)=>t<=i)}function Su(...t){let e=hi(t);return me((i,n)=>{(e?Zi(t,i,e):Zi(t,i)).subscribe(n)})}function mi(t,e){return me((i,n)=>{let o=null,r=0,s=!1,a=()=>s&&!o&&n.complete();i.subscribe(ue(n,l=>{o?.unsubscribe();let d=0,p=r++;de(t(l,p)).subscribe(o=ue(n,m=>n.next(e?e(l,m,p,d++):m),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ze(t){return me((e,i)=>{de(t).subscribe(ue(i,()=>i.complete(),$n)),!i.closed&&e.subscribe(i)})}function Xi(t,e,i){let n=W(t)||e||i?{next:t,error:e,complete:i}:t;return n?me((o,r)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(ue(r,l=>{var d;(d=n.next)===null||d===void 0||d.call(n,l),r.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var d;a=!1,(d=n.error)===null||d===void 0||d.call(n,l),r.error(l)},()=>{var l,d;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(d=n.finalize)===null||d===void 0||d.call(n)}))}):In}function Gh(t,e){return me((i,n)=>{let{leading:o=!0,trailing:r=!1}=e??{},s=!1,a=null,l=null,d=!1,p=()=>{l?.unsubscribe(),l=null,r&&(g(),d&&n.complete())},m=()=>{l=null,d&&n.complete()},_=D=>l=de(t(D)).subscribe(ue(n,p,m)),g=()=>{if(s){s=!1;let D=a;a=null,n.next(D),!d&&_(D)}};i.subscribe(ue(n,D=>{s=!0,a=D,!(l&&!l.closed)&&(o?g():_(D))},()=>{d=!0,!(r&&s&&l&&!l.closed)&&n.complete()}))})}function Mu(t,e=xn,i){let n=Qi(t,e);return Gh(()=>n,i)}function Wr(...t){let e=Lo(t);return me((i,n)=>{let o=t.length,r=new Array(o),s=t.map(()=>!1),a=!1;for(let l=0;l<o;l++)de(t[l]).subscribe(ue(n,d=>{r[l]=d,!a&&!s[l]&&(s[l]=!0,(a=s.every(In))&&(s=null))},$n));i.subscribe(ue(n,l=>{if(a){let d=[l,...r];n.next(e?e(...d):d)}}))})}var Am="https://g.co/ng/security#xss",q=class extends Error{constructor(e,i){super(rl(e,i)),this.code=e}};function rl(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Rm=Symbol("InputSignalNode#UNSET"),Xy=Se(Y({},su),{transformFn:void 0,applyValueToInputSignal(t,e){Zs(t,e)}});function km(t,e){let i=Object.create(Xy);i.value=t,i.transformFn=e?.transform;function n(){if(Ws(i),i.value===Rm)throw new q(-950,!1);return i.value}return n[Tn]=i,n}function os(t){return{toString:t}.toString()}var wa="__parameters__";function e1(t){return function(...i){if(t){let n=t(...i);for(let o in n)this[o]=n[o]}}}function Fm(t,e,i){return os(()=>{let n=e1(e);function o(...r){if(this instanceof o)return n.apply(this,r),this;let s=new o(...r);return a.annotation=s,a;function a(l,d,p){let m=l.hasOwnProperty(wa)?l[wa]:Object.defineProperty(l,wa,{value:[]})[wa];for(;m.length<=p;)m.push(null);return(m[p]=m[p]||[]).push(s),l}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var io=globalThis;function Oe(t){for(let e in t)if(t[e]===Oe)return e;throw Error("Could not find renamed property on target object.")}function t1(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function At(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(At).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(` 4 `);return i===-1?e:e.substring(0,i)}function Hu(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var n1=Oe({__forward_ref__:Oe});function at(t){return t.__forward_ref__=at,t.toString=function(){return At(this())},t}function vt(t){return Pm(t)?t():t}function Pm(t){return typeof t=="function"&&t.hasOwnProperty(n1)&&t.__forward_ref__===at}function L(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ut(t){return{providers:t.providers||[],imports:t.imports||[]}}function Kd(t){return Wh(t,Lm)||Wh(t,Vm)}function Wh(t,e){return t.hasOwnProperty(e)?t[e]:null}function i1(t){let e=t&&(t[Lm]||t[Vm]);return e||null}function Yh(t){return t&&(t.hasOwnProperty(qh)||t.hasOwnProperty(o1))?t[qh]:null}var Lm=Oe({\u0275prov:Oe}),qh=Oe({\u0275inj:Oe}),Vm=Oe({ngInjectableDef:Oe}),o1=Oe({ngInjectorDef:Oe}),G=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=L({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bm(t){return t&&!!t.\u0275providers}var r1=Oe({\u0275cmp:Oe}),s1=Oe({\u0275dir:Oe}),a1=Oe({\u0275pipe:Oe});var Fa=Oe({\u0275fac:Oe}),qr=Oe({__NG_ELEMENT_ID__:Oe}),Kh=Oe({__NG_ENV_ID__:Oe});function Go(t){return typeof t=="string"?t:t==null?"":String(t)}function l1(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Go(t)}function c1(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new q(-200,t)}function Zd(t,e){throw new q(-201,!1)}var fe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fe||{}),zu;function jm(){return zu}function Dt(t){let e=zu;return zu=t,e}function Um(t,e,i){let n=Kd(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&fe.Optional)return null;if(e!==void 0)return e;Zd(t,"Injector")}var u1={},Kr=u1,$u="__NG_DI_FLAG__",Pa="ngTempTokenPath",d1="ngTokenPath",f1=/\n/gm,p1="\u0275",Zh="__source",zo;function h1(){return zo}function gi(t){let e=zo;return zo=t,e}function m1(t,e=fe.Default){if(zo===void 0)throw new q(-203,!1);return zo===null?Um(t,void 0,e):zo.get(t,e&fe.Optional?null:void 0,e)}function H(t,e=fe.Default){return(jm()||m1)(vt(t),e)}function b(t,e=fe.Default){return H(t,sl(e))}function sl(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Gu(t){let e=[];for(let i=0;i<t.length;i++){let n=vt(t[i]);if(Array.isArray(n)){if(n.length===0)throw new q(900,!1);let o,r=fe.Default;for(let s=0;s<n.length;s++){let a=n[s],l=g1(a);typeof l=="number"?l===-1?o=a.token:r|=l:o=a}e.push(H(o,r))}else e.push(H(n))}return e}function Hm(t,e){return t[$u]=e,t.prototype[$u]=e,t}function g1(t){return t[$u]}function _1(t,e,i,n){let o=t[Pa];throw e[Zh]&&o.unshift(e[Zh]),t.message=v1(` 5 `+t.message,o,i,n),t[d1]=o,t[Pa]=null,t}function v1(t,e,i,n=null){t=t&&t.charAt(0)===` 6 6 `&&t.charAt(1)==p1?t.slice(2):t;let o=At(e);if(Array.isArray(e))o=e.map(At).join(" -> ");else if(typeof e=="object"){let r=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];r.push(s+":"+(typeof a=="string"?JSON.stringify(a):At(a)))}o=`{${r.join(", ")}}`}return`${i}${n?"("+n+")":""}[${o}]: ${t.replace(f1,` 7 `)}`}var $m=zm(Pm("Optional"),8);var y1=zm(Pm("SkipSelf"),4);function ro(t,e){let i=t.hasOwnProperty(Pa);return i?t[Pa]:null}function b1(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let o=t[n],r=e[n];if(i&&(o=i(o),r=i(r)),r!==o)return!1}return!0}function C1(t){return t.flat(Number.POSITIVE_INFINITY)}function Jd(t,e){t.forEach(i=>Array.isArray(i)?Jd(i,e):e(i))}function Gm(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Va(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function D1(t,e){let i=[];for(let n=0;n<t;n++)i.push(e);return i}function w1(t,e,i,n){let o=t.length;if(o==e)t.push(i,n);else if(o===1)t.push(n,t[0]),t[0]=i;else{for(o--,t.push(t[o-1],t[o]);o>e;){let r=o-2;t[o]=t[r],o--}t[e]=i,t[e+1]=n}}function ll(t,e,i){let n=os(t,e);return n>=0?t[n|1]=i:(n=~n,w1(t,n,e,i)),n}function Iu(t,e){let i=os(t,e);if(i>=0)return t[i|1]}function os(t,e){return E1(t,e,1)}function E1(t,e,i){let n=0,o=t.length>>i;for(;o!==n;){let r=n+(o-n>>1),s=t[r<<i];if(e===s)return r<<i;s>e?o=r:n=r+1}return~(o<<i)}var Go={},wt=[],Kr=new G(""),Wm=new G("",-1),Ym=new G(""),Ba=class{get(e,i=qr){if(i===qr){let n=new Error(`NullInjectorError: No provider for ${At(e)}!`);throw n.name="NullInjectorError",n}return i}},qm=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(qm||{}),Rn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Rn||{}),yi=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(yi||{});function S1(t,e,i){let n=t.length;for(;;){let o=t.indexOf(e,i);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=e.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}i=o+1}}function Yu(t,e,i){let n=0;for(;n<i.length;){let o=i[n];if(typeof o=="number"){if(o!==0)break;n++;let r=i[n++],s=i[n++],a=i[n++];t.setAttribute(e,s,a,r)}else{let r=o,s=i[++n];M1(r)?t.setProperty(e,r,s):t.setAttribute(e,r,s),n++}}return n}function Km(t){return t===3||t===4||t===6}function M1(t){return t.charCodeAt(0)===64}function Zr(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let o=e[n];typeof o=="number"?i=o:i===0||(i===-1||i===2?Jh(t,i,o,null,e[++n]):Jh(t,i,o,null,null))}}return t}function Jh(t,e,i,n,o){let r=0,s=t.length;if(e===-1)s=-1;else for(;r<t.length;){let a=t[r++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=r-1;break}}}for(;r<t.length;){let a=t[r];if(typeof a=="number")break;if(a===i){if(n===null){o!==null&&(t[r+1]=o);return}else if(n===t[r+1]){t[r+2]=o;return}}r++,n!==null&&r++,o!==null&&r++}s!==-1&&(t.splice(s,0,e),r=s+1),t.splice(r++,0,i),n!==null&&t.splice(r++,0,n),o!==null&&t.splice(r++,0,o)}var Zm="ng-template";function T1(t,e,i,n){let o=0;if(n){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&S1(e[o+1].toLowerCase(),i,0)!==-1)return!0}else if(Xd(t))return!1;if(o=e.indexOf(1,o),o>-1){let r;for(;++o<e.length&&typeof(r=e[o])=="string";)if(r.toLowerCase()===i)return!0}return!1}function Xd(t){return t.type===4&&t.value!==Zm}function I1(t,e,i){let n=t.type===4&&!i?Zm:t.value;return e===n}function x1(t,e,i){let n=4,o=t.attrs,r=o!==null?A1(o):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!_n(n)&&!_n(l))return!1;if(s&&_n(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!I1(t,l,i)||l===""&&e.length===1){if(_n(n))return!1;s=!0}}else if(n&8){if(o===null||!T1(t,o,l,i)){if(_n(n))return!1;s=!0}}else{let d=e[++a],p=O1(l,o,Xd(t),i);if(p===-1){if(_n(n))return!1;s=!0;continue}if(d!==""){let m;if(p>r?m="":m=o[p+1].toLowerCase(),n&2&&d!==m){if(_n(n))return!1;s=!0}}}}return _n(n)||s}function _n(t){return(t&1)===0}function O1(t,e,i,n){if(e===null)return-1;let o=0;if(n||!i){let r=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)r=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=r?1:2}return-1}else return R1(e,t)}function Qm(t,e,i=!1){for(let n=0;n<e.length;n++)if(x1(t,e[n],i))return!0;return!1}function N1(t){let e=t.attrs;if(e!=null){let i=e.indexOf(5);if(!(i&1))return e[i+1]}return null}function A1(t){for(let e=0;e<t.length;e++){let i=t[e];if(Km(i))return e}return t.length}function R1(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function k1(t,e){e:for(let i=0;i<e.length;i++){let n=e[i];if(t.length===n.length){for(let o=0;o<t.length;o++)if(t[o]!==n[o])continue e;return!0}}return!1}function Xh(t,e){return t?":not("+e.trim()+")":e}function F1(t){let e=t[0],i=1,n=2,o="",r=!1;for(;i<t.length;){let s=t[i];if(typeof s=="string")if(n&2){let a=t[++i];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!_n(s)&&(e+=Xh(r,o),o=""),n=s,r=r||!_n(n);i++}return o!==""&&(e+=Xh(r,o)),e}function P1(t){return t.map(F1).join(",")}function L1(t){let e=[],i=[],n=1,o=2;for(;n<t.length;){let r=t[n];if(typeof r=="string")o===2?r!==""&&e.push(r,t[++n]):o===8&&i.push(r);else{if(!_n(o))break;o=r}n++}return{attrs:e,classes:i}}function V(t){return is(()=>{let e=eg(t),i=Se(Y({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===qm.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Rn.Emulated,styles:t.styles||wt,_:null,schemas:t.schemas||null,tView:null,id:""});tg(i);let n=t.dependencies;return i.directiveDefs=tm(n,!1),i.pipeDefs=tm(n,!0),i.id=U1(i),i})}function V1(t){return so(t)||Jm(t)}function B1(t){return t!==null}function Ht(t){return is(()=>({type:t.type,bootstrap:t.bootstrap||wt,declarations:t.declarations||wt,imports:t.imports||wt,exports:t.exports||wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function em(t,e){if(t==null)return Go;let i={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,s,a=yi.None;Array.isArray(o)?(a=o[0],r=o[1],s=o[2]??r):(r=o,s=o),e?(i[r]=a!==yi.None?[n,a]:n,e[r]=s):i[r]=n}return i}function ae(t){return is(()=>{let e=eg(t);return tg(e),e})}function ef(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function so(t){return t[r1]||null}function Jm(t){return t[s1]||null}function Xm(t){return t[a1]||null}function j1(t){let e=so(t)||Jm(t)||Xm(t);return e!==null?e.standalone:!1}function eg(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Go,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||wt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:em(t.inputs,e),outputs:em(t.outputs),debugInfo:null}}function tg(t){t.features?.forEach(e=>e(t))}function tm(t,e){if(!t)return null;let i=e?Xm:V1;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(B1)}function U1(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of i)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function rs(t){return{\u0275providers:t}}function H1(...t){return{\u0275providers:ng(!0,t),\u0275fromNgModule:!0}}function ng(t,...e){let i=[],n=new Set,o,r=s=>{i.push(s)};return Jd(e,s=>{let a=s;qu(a,r,[],n)&&(o||=[],o.push(a))}),o!==void 0&&ig(o,r),i}function ig(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:o}=t[i];tf(o,r=>{e(r,n)})}}function qu(t,e,i,n){if(t=vt(t),!t)return!1;let o=null,r=qh(t),s=!r&&so(t);if(!r&&!s){let l=t.ngModule;if(r=qh(l),r)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let d of l)qu(d,e,i,n)}}else if(r){if(r.imports!=null&&!a){n.add(o);let d;try{Jd(r.imports,p=>{qu(p,e,i,n)&&(d||=[],d.push(p))})}finally{}d!==void 0&&ig(d,e)}if(!a){let d=ro(o)||(()=>new o);e({provide:o,useFactory:d,deps:wt},o),e({provide:Ym,useValue:o,multi:!0},o),e({provide:Kr,useValue:()=>H(o),multi:!0},o)}let l=r.providers;if(l!=null&&!a){let d=t;tf(l,p=>{e(p,d)})}}else return!1;return o!==t&&t.providers!==void 0}function tf(t,e){for(let i of t)jm(i)&&(i=i.\u0275providers),Array.isArray(i)?tf(i,e):e(i)}var z1=Oe({provide:String,useValue:Oe});function og(t){return t!==null&&typeof t=="object"&&z1 in t}function $1(t){return!!(t&&t.useExisting)}function G1(t){return!!(t&&t.useFactory)}function Wo(t){return typeof t=="function"}function W1(t){return!!t.useClass}var cl=new G(""),Oa={},Y1={},xu;function ul(){return xu===void 0&&(xu=new Ba),xu}var Rt=class{},Qr=class extends Rt{get destroyed(){return this._destroyed}constructor(e,i,n,o){super(),this.parent=i,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Zu(e,s=>this.processProvider(s)),this.records.set(Wm,Bo(void 0,this)),o.has("environment")&&this.records.set(Rt,Bo(void 0,this));let r=this.records.get(cl);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Ym,wt,fe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=ce(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ce(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=gi(this),n=Dt(void 0),o;try{return e()}finally{gi(i),Dt(n)}}get(e,i=qr,n=fe.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Zh))return e[Zh](this);n=al(n);let o,r=gi(this),s=Dt(void 0);try{if(!(n&fe.SkipSelf)){let l=this.records.get(e);if(l===void 0){let d=J1(e)&&Zd(e);d&&this.injectableDefInScope(d)?l=Bo(Ku(e),Oa):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&fe.Self?ul():this.parent;return i=n&fe.Optional&&i===qr?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[La]=a[La]||[]).unshift(At(e)),r)throw a;return _1(a,e,"R3InjectorError",this.source)}else throw a}finally{Dt(s),gi(r)}}resolveInjectorInitializers(){let e=ce(null),i=gi(this),n=Dt(void 0),o;try{let r=this.get(Kr,wt,fe.Self);for(let s of r)s()}finally{gi(i),Dt(n),ce(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(At(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(e){e=vt(e);let i=Wo(e)?e:vt(e&&e.provide),n=K1(e);if(!Wo(e)&&e.multi===!0){let o=this.records.get(i);o||(o=Bo(void 0,Oa,!0),o.factory=()=>Wu(o.multi),this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=ce(null);try{return i.value===Oa&&(i.value=Y1,i.value=i.factory()),typeof i.value=="object"&&i.value&&Q1(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{ce(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=vt(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function Ku(t){let e=Zd(t),i=e!==null?e.factory:ro(t);if(i!==null)return i;if(t instanceof G)throw new q(204,!1);if(t instanceof Function)return q1(t);throw new q(204,!1)}function q1(t){if(t.length>0)throw new q(204,!1);let i=i1(t);return i!==null?()=>i.factory(t):()=>new t}function K1(t){if(og(t))return Bo(void 0,t.useValue);{let e=rg(t);return Bo(e,Oa)}}function rg(t,e,i){let n;if(Wo(t)){let o=vt(t);return ro(o)||Ku(o)}else if(og(t))n=()=>vt(t.useValue);else if(G1(t))n=()=>t.useFactory(...Wu(t.deps||[]));else if($1(t))n=()=>H(vt(t.useExisting));else{let o=vt(t&&(t.useClass||t.provide));if(Z1(t))n=()=>new o(...Wu(t.deps));else return ro(o)||Ku(o)}return n}function Bo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Z1(t){return!!t.deps}function Q1(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function J1(t){return typeof t=="function"||typeof t=="object"&&t instanceof G}function Zu(t,e){for(let i of t)Array.isArray(i)?Zu(i,e):i&&jm(i)?Zu(i.\u0275providers,e):e(i)}function sg(t,e){t instanceof Qr&&t.assertNotDestroyed();let i,n=gi(t),o=Dt(void 0);try{return e()}finally{gi(n),Dt(o)}}function ag(){return Um()!==void 0||h1()!=null}function dl(t){if(!ag())throw new q(-203,!1)}function X1(t){return typeof t=="function"}var Qn=0,X=1,Q=2,ht=3,yn=4,Et=5,Yo=6,ja=7,ft=8,qo=9,kn=10,Re=11,Jr=12,nm=13,nr=14,kt=15,ao=16,jo=17,qn=18,fl=19,lg=20,_i=21,Ou=22,jt=23,et=25,cg=1;var lo=7,Ua=8,Ko=9,pt=10,Ha=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Ha||{});function vi(t){return Array.isArray(t)&&typeof t[cg]=="object"}function Jn(t){return Array.isArray(t)&&t[cg]===!0}function nf(t){return(t.flags&4)!==0}function pl(t){return t.componentOffset>-1}function hl(t){return(t.flags&1)===1}function bi(t){return!!t.template}function Qu(t){return(t[Q]&512)!==0}var Ju=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function ug(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function yt(){return dg}function dg(t){return t.type.prototype.ngOnChanges&&(t.setInput=tb),eb}yt.ngInherit=!0;function eb(){let t=pg(this),e=t?.current;if(e){let i=t.previous;if(i===Go)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function tb(t,e,i,n,o){let r=this.declaredInputs[n],s=pg(t)||nb(t,{previous:Go,current:null}),a=s.current||(s.current={}),l=s.previous,d=l[r];a[r]=new Ju(d&&d.currentValue,i,l===Go),ug(t,e,o,i)}var fg="__ngSimpleChanges__";function pg(t){return t[fg]||null}function nb(t,e){return t[fg]=e}var im=null;var Nn=function(t,e,i){im?.(t,e,i)},ib="svg",ob="math";function Fn(t){for(;Array.isArray(t);)t=t[Qn];return t}function hg(t,e){return Fn(e[t])}function zt(t,e){return Fn(e[t.index])}function of(t,e){return t.data[e]}function rf(t,e){return t[e]}function wi(t,e){let i=e[t];return vi(i)?i:i[Qn]}function rb(t){return(t[Q]&4)===4}function sf(t){return(t[Q]&128)===128}function sb(t){return Jn(t[ht])}function Ci(t,e){return e==null?null:t[e]}function mg(t){t[jo]=0}function gg(t){t[Q]&1024||(t[Q]|=1024,sf(t)&&gl(t))}function ab(t,e){for(;t>0;)e=e[nr],t--;return e}function ml(t){return!!(t[Q]&9216||t[jt]?.dirty)}function Xu(t){t[kn].changeDetectionScheduler?.notify(8),t[Q]&64&&(t[Q]|=1024),ml(t)&&gl(t)}function gl(t){t[kn].changeDetectionScheduler?.notify(0);let e=co(t);for(;e!==null&&!(e[Q]&8192||(e[Q]|=8192,!sf(e)));)e=co(e)}function _g(t,e){if((t[Q]&256)===256)throw new q(911,!1);t[_i]===null&&(t[_i]=[]),t[_i].push(e)}function lb(t,e){if(t[_i]===null)return;let i=t[_i].indexOf(e);i!==-1&&t[_i].splice(i,1)}function co(t){let e=t[ht];return Jn(e)?e[ht]:e}var se={lFrame:Mg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var vg=!1;function cb(){return se.lFrame.elementDepthCount}function ub(){se.lFrame.elementDepthCount++}function db(){se.lFrame.elementDepthCount--}function yg(){return se.bindingsEnabled}function bg(){return se.skipHydrationRootTNode!==null}function fb(t){return se.skipHydrationRootTNode===t}function pb(){se.skipHydrationRootTNode=null}function K(){return se.lFrame.lView}function ke(){return se.lFrame.tView}function S(t){return se.lFrame.contextLView=t,t[ft]}function M(t){return se.lFrame.contextLView=null,t}function lt(){let t=Cg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Cg(){return se.lFrame.currentTNode}function hb(){let t=se.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function go(t,e){let i=se.lFrame;i.currentTNode=t,i.isParent=e}function af(){return se.lFrame.isParent}function lf(){se.lFrame.isParent=!1}function mb(){return se.lFrame.contextLView}function Dg(){return vg}function om(t){vg=t}function ss(){let t=se.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function gb(){return se.lFrame.bindingIndex}function _b(t){return se.lFrame.bindingIndex=t}function _o(){return se.lFrame.bindingIndex++}function cf(t){let e=se.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function vb(){return se.lFrame.inI18n}function yb(t,e){let i=se.lFrame;i.bindingIndex=i.bindingRootIndex=t,ed(e)}function bb(){return se.lFrame.currentDirectiveIndex}function ed(t){se.lFrame.currentDirectiveIndex=t}function Cb(t){let e=se.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function wg(){return se.lFrame.currentQueryIndex}function uf(t){se.lFrame.currentQueryIndex=t}function Db(t){let e=t[X];return e.type===2?e.declTNode:e.type===1?t[Et]:null}function Eg(t,e,i){if(i&fe.SkipSelf){let o=e,r=t;for(;o=o.parent,o===null&&!(i&fe.Host);)if(o=Db(r),o===null||(r=r[nr],o.type&10))break;if(o===null)return!1;e=o,t=r}let n=se.lFrame=Sg();return n.currentTNode=e,n.lView=t,!0}function df(t){let e=Sg(),i=t[X];se.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Sg(){let t=se.lFrame,e=t===null?null:t.child;return e===null?Mg(t):e}function Mg(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Tg(){let t=se.lFrame;return se.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ig=Tg;function ff(){let t=Tg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function wb(t){return(se.lFrame.contextLView=ab(t,se.lFrame.contextLView))[ft]}function Xn(){return se.lFrame.selectedIndex}function uo(t){se.lFrame.selectedIndex=t}function as(){let t=se.lFrame;return of(t.tView,t.selectedIndex)}function Eb(){return se.lFrame.currentNamespace}var xg=!0;function _l(){return xg}function vl(t){xg=t}function Sb(t,e,i){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=e.type.prototype;if(n){let s=dg(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}o&&(i.preOrderHooks??=[]).push(0-t,o),r&&((i.preOrderHooks??=[]).push(t,r),(i.preOrderCheckHooks??=[]).push(t,r))}function yl(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let r=t.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:d,ngOnDestroy:p}=r;s&&(t.contentHooks??=[]).push(-i,s),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),l&&(t.viewHooks??=[]).push(-i,l),d&&((t.viewHooks??=[]).push(i,d),(t.viewCheckHooks??=[]).push(i,d)),p!=null&&(t.destroyHooks??=[]).push(i,p)}}function Na(t,e,i){Og(t,e,3,i)}function Aa(t,e,i,n){(t[Q]&3)===i&&Og(t,e,i,n)}function Nu(t,e){let i=t[Q];(i&3)===e&&(i&=16383,i+=1,t[Q]=i)}function Og(t,e,i,n){let o=n!==void 0?t[jo]&65535:0,r=n??-1,s=e.length-1,a=0;for(let l=o;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],n!=null&&a>=n)break}else e[l]<0&&(t[jo]+=65536),(a<r||r==-1)&&(Mb(t,i,e,l),t[jo]=(t[jo]&4294901760)+l+2),l++}function rm(t,e){Nn(4,t,e);let i=ce(null);try{e.call(t)}finally{ce(i),Nn(5,t,e)}}function Mb(t,e,i,n){let o=i[n]<0,r=i[n+1],s=o?-i[n]:i[n],a=t[s];o?t[Q]>>14<t[jo]>>16&&(t[Q]&3)===e&&(t[Q]+=16384,rm(a,r)):rm(a,r)}var zo=-1,fo=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function Tb(t){return t instanceof fo}function Ib(t){return(t.flags&8)!==0}function xb(t){return(t.flags&16)!==0}var Au={},td=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=al(n);let o=this.injector.get(e,Au,n);return o!==Au||i===Au?o:this.parentInjector.get(e,i,n)}};function Ng(t){return t!==zo}function za(t){return t&32767}function Ob(t){return t>>16}function $a(t,e){let i=Ob(t),n=e;for(;i>0;)n=n[nr],i--;return n}var nd=!0;function Ga(t){let e=nd;return nd=t,e}var Nb=256,Ag=Nb-1,Rg=5,Ab=0,An={};function Rb(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(Yr)&&(n=i[Yr]),n==null&&(n=i[Yr]=Ab++);let o=n&Ag,r=1<<o;e.data[t+(o>>Rg)]|=r}function Wa(t,e){let i=kg(t,e);if(i!==-1)return i;let n=e[X];n.firstCreatePass&&(t.injectorIndex=e.length,Ru(n.data,t),Ru(e,null),Ru(n.blueprint,null));let o=pf(t,e),r=t.injectorIndex;if(Ng(o)){let s=za(o),a=$a(o,e),l=a[X].data;for(let d=0;d<8;d++)e[r+d]=a[s+d]|l[s+d]}return e[r+8]=o,r}function Ru(t,e){t.push(0,0,0,0,0,0,0,0,e)}function kg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function pf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,o=e;for(;o!==null;){if(n=Bg(o),n===null)return zo;if(i++,o=o[nr],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return zo}function id(t,e,i){Rb(t,e,i)}function kb(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,o=0;for(;o<n;){let r=i[o];if(Km(r))break;if(r===0)o=o+2;else if(typeof r=="number")for(o++;o<n&&typeof i[o]=="string";)o++;else{if(r===e)return i[o+1];o=o+2}}}return null}function Fg(t,e,i){if(i&fe.Optional||t!==void 0)return t;Qd(e,"NodeInjector")}function Pg(t,e,i,n){if(i&fe.Optional&&n===void 0&&(n=null),!(i&(fe.Self|fe.Host))){let o=t[qo],r=Dt(void 0);try{return o?o.get(e,n,i&fe.Optional):Hm(e,n,i&fe.Optional)}finally{Dt(r)}}return Fg(n,e,i)}function Lg(t,e,i,n=fe.Default,o){if(t!==null){if(e[Q]&2048&&!(n&fe.Self)){let s=Vb(t,e,i,n,An);if(s!==An)return s}let r=Vg(t,e,i,n,An);if(r!==An)return r}return Pg(e,i,n,o)}function Vg(t,e,i,n,o){let r=Pb(i);if(typeof r=="function"){if(!Eg(e,t,n))return n&fe.Host?Fg(o,i,n):Pg(e,i,n,o);try{let s;if(s=r(n),s==null&&!(n&fe.Optional))Qd(i);else return s}finally{Ig()}}else if(typeof r=="number"){let s=null,a=kg(t,e),l=zo,d=n&fe.Host?e[kt][Et]:null;for((a===-1||n&fe.SkipSelf)&&(l=a===-1?pf(t,e):e[a+8],l===zo||!am(n,!1)?a=-1:(s=e[X],a=za(l),e=$a(l,e)));a!==-1;){let p=e[X];if(sm(r,a,p.data)){let m=Fb(a,e,i,s,n,d);if(m!==An)return m}l=e[a+8],l!==zo&&am(n,e[X].data[a+8]===d)&&sm(r,a,e)?(s=p,a=za(l),e=$a(l,e)):a=-1}}return o}function Fb(t,e,i,n,o,r){let s=e[X],a=s.data[t+8],l=n==null?pl(a)&&nd:n!=s&&(a.type&3)!==0,d=o&fe.Host&&r===a,p=Ra(a,s,i,l,d);return p!==null?po(e,s,p,a):An}function Ra(t,e,i,n,o){let r=t.providerIndexes,s=e.data,a=r&1048575,l=t.directiveStart,d=t.directiveEnd,p=r>>20,m=n?a:a+p,_=o?a+p:d;for(let g=m;g<_;g++){let D=s[g];if(g<l&&i===D||g>=l&&D.type===i)return g}if(o){let g=s[l];if(g&&bi(g)&&g.type===i)return l}return null}function po(t,e,i,n){let o=t[i],r=e.data;if(Tb(o)){let s=o;s.resolving&&c1(l1(r[i]));let a=Ga(s.canSeeViewProviders);s.resolving=!0;let l,d=s.injectImpl?Dt(s.injectImpl):null,p=Eg(t,n,fe.Default);try{o=t[i]=s.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&Sb(i,r[i],e)}finally{d!==null&&Dt(d),Ga(a),s.resolving=!1,Ig()}}return o}function Pb(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Yr)?t[Yr]:void 0;return typeof e=="number"?e>=0?e&Ag:Lb:e}function sm(t,e,i){let n=1<<t;return!!(i[e+(t>>Rg)]&n)}function am(t,e){return!(t&fe.Self)&&!(t&fe.Host&&e)}var oo=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return Lg(this._tNode,this._lView,e,al(n),i)}};function Lb(){return new oo(lt(),K())}function $t(t){return is(()=>{let e=t.prototype.constructor,i=e[Pa]||od(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[Pa]||od(o);if(r&&r!==i)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function od(t){return Lm(t)?()=>{let e=od(vt(t));return e&&e()}:ro(t)}function Vb(t,e,i,n,o){let r=t,s=e;for(;r!==null&&s!==null&&s[Q]&2048&&!(s[Q]&512);){let a=Vg(r,s,i,n|fe.Self,An);if(a!==An)return a;let l=r.parent;if(!l){let d=s[lg];if(d){let p=d.get(i,An,n);if(p!==An)return p}l=Bg(s),s=s[nr]}r=l}return o}function Bg(t){let e=t[X],i=e.type;return i===2?e.declTNode:i===1?t[Et]:null}function ls(t){return kb(lt(),t)}function lm(t,e=null,i=null,n){let o=Bb(t,e,i,n);return o.resolveInjectorInitializers(),o}function Bb(t,e=null,i=null,n,o=new Set){let r=[i||wt,H1(t)];return n=n||(typeof t=="object"?void 0:At(t)),new Qr(r,e||ul(),n||null,o)}var to=class to{static create(e,i){if(Array.isArray(e))return lm({name:""},i,e,"");{let n=e.name??"";return lm({name:n},e.parent,e.providers,n)}}};to.THROW_IF_NOT_FOUND=qr,to.NULL=new Ba,to.\u0275prov=L({token:to,providedIn:"any",factory:()=>H(Wm)}),to.__NG_ELEMENT_ID__=-1;var Ue=to;var jb=new G("");jb.__NG_ELEMENT_ID__=t=>{let e=lt();if(e===null)throw new q(204,!1);if(e.type&2)return e.value;if(t&fe.Optional)return null;throw new q(204,!1)};var Ub="ngOriginalError";function ku(t){return t[Ub]}var jg=!0,ei=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Hb,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),rd=class extends ei{constructor(e){super(),this._lView=e}onDestroy(e){return _g(this._lView,e),()=>lb(this._lView,e)}};function Hb(){return new rd(K())}var ir=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new qi(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var sd=class extends he{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,ag()&&(this.destroyRef=C(ei,{optional:!0})??void 0,this.pendingTasks=C(ir,{optional:!0})??void 0)}emit(e){let i=ce(null);try{super.next(e)}finally{ce(i)}}subscribe(e,i,n){let o=e,r=i||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:r,complete:s});return e instanceof je&&e.add(a),a}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},re=sd;function Ya(...t){}function Ug(t){let e,i;function n(){t=Ya;try{i!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(i),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(()=>{t(),n()})),()=>n()}function cm(t){return queueMicrotask(()=>t()),()=>{t=Ya}}var hf="isAngularZone",qa=hf+"_ID",zb=0,ge=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new re(!1),this.onMicrotaskEmpty=new re(!1),this.onStable=new re(!1),this.onError=new re(!1);let{enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=jg}=e;if(typeof Zone>"u")throw new q(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)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&n,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=r,Wb(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(hf)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new q(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,o){let r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,e,$b,Ya,Ya);try{return r.runTask(s,i,n)}finally{r.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},$b={};function mf(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Gb(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Ug(()=>{t.callbackScheduled=!1,ad(t),t.isCheckStableRunning=!0,mf(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),ad(t)}function Wb(t){let e=()=>{Gb(t)},i=zb++;t._inner=t._inner.fork({name:"angular",properties:{[hf]:!0,[qa]:i,[qa+i]:!0},onInvokeTask:(n,o,r,s,a,l)=>{if(Yb(l))return n.invokeTask(r,s,a,l);try{return um(t),n.invokeTask(r,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),dm(t)}},onInvoke:(n,o,r,s,a,l,d)=>{try{return um(t),n.invoke(r,s,a,l,d)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!qb(l)&&e(),dm(t)}},onHasTask:(n,o,r,s)=>{n.hasTask(r,s),o===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ad(t),mf(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,o,r,s)=>(n.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ad(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function um(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dm(t){t._nesting--,mf(t)}var ld=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new re,this.onMicrotaskEmpty=new re,this.onStable=new re,this.onError=new re}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,o){return e.apply(i,n)}};function Yb(t){return Hg(t,"__ignore_ng_zone__")}function qb(t){return Hg(t,"__scheduler_tick__")}function Hg(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Kn=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&ku(e);for(;i&&ku(i);)i=ku(i);return i||null}},Kb=new G("",{providedIn:"root",factory:()=>{let t=C(ge),e=C(Kn);return i=>t.runOutsideAngular(()=>e.handleError(i))}});function fm(t,e){return Fm(t,e)}function Zb(t){return Fm(km,t)}var De=(fm.required=Zb,fm);function Qb(){return or(lt(),K())}function or(t,e){return new ye(zt(t,e))}var ye=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Qb;let t=e;return t})();function Jb(t){return t instanceof ye?t.nativeElement:t}function Xb(){return this._results[Symbol.iterator]()}var cd=class t{get changes(){return this._changes??=new re}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=Xb)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=C1(e);(this._changesDetected=!b1(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zg(t){return(t.flags&128)===128}var $g=new Map,eC=0;function tC(){return eC++}function nC(t){$g.set(t[fl],t)}function ud(t){$g.delete(t[fl])}var pm="__ngContext__";function Di(t,e){vi(e)?(t[pm]=e[fl],nC(e)):t[pm]=e}function Gg(t){return Yg(t[Jr])}function Wg(t){return Yg(t[yn])}function Yg(t){for(;t!==null&&!Jn(t);)t=t[yn];return t}var dd;function qg(t){dd=t}function iC(){if(dd!==void 0)return dd;if(typeof document<"u")return document;throw new q(210,!1)}var gf=new G("",{providedIn:"root",factory:()=>oC}),oC="ng",_f=new G(""),Gt=new G("",{providedIn:"platform",factory:()=>"unknown"});var vf=new G("",{providedIn:"root",factory:()=>iC().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var rC="h",sC="b";var aC=()=>null;function yf(t,e,i=!1){return aC(t,e,i)}var Kg=!1,lC=new G("",{providedIn:"root",factory:()=>Kg});var Sa;function cC(){if(Sa===void 0&&(Sa=null,io.trustedTypes))try{Sa=io.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Sa}function bl(t){return cC()?.createHTML(t)||t}var Zn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rm})`}},fd=class extends Zn{getTypeName(){return"HTML"}},pd=class extends Zn{getTypeName(){return"Style"}},hd=class extends Zn{getTypeName(){return"Script"}},md=class extends Zn{getTypeName(){return"URL"}},gd=class extends Zn{getTypeName(){return"ResourceURL"}};function Vn(t){return t instanceof Zn?t.changingThisBreaksApplicationSecurity:t}function vo(t,e){let i=uC(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${Rm})`)}return i===e}function uC(t){return t instanceof Zn&&t.getTypeName()||null}function Zg(t){return new fd(t)}function Qg(t){return new pd(t)}function Jg(t){return new hd(t)}function Xg(t){return new md(t)}function e0(t){return new gd(t)}function dC(t){let e=new vd(t);return fC()?new _d(e):e}var _d=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(bl(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.firstChild?.remove(),i)}catch{return null}}},vd=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=bl(e),i}};function fC(){try{return!!new window.DOMParser().parseFromString(bl(""),"text/html")}catch{return!1}}var pC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cl(t){return t=String(t),t.match(pC)?t:"unsafe:"+t}function ti(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function cs(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var t0=ti("area,br,col,hr,img,wbr"),n0=ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),i0=ti("rp,rt"),hC=cs(i0,n0),mC=cs(n0,ti("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")),gC=cs(i0,ti("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")),hm=cs(t0,mC,gC,hC),o0=ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_C=ti("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"),vC=ti("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"),yC=cs(o0,_C,vC),bC=ti("script,style,template"),yd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,o=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){o.push(i),i=wC(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=DC(i);if(r){i=r;break}i=o.pop()}}return this.buf.join("")}startElement(e){let i=mm(e).toLowerCase();if(!hm.hasOwnProperty(i))return this.sanitizedSomething=!0,!bC.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let o=0;o<n.length;o++){let r=n.item(o),s=r.name,a=s.toLowerCase();if(!yC.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;o0[a]&&(l=Cl(l)),this.buf.push(" ",s,'="',gm(l),'"')}return this.buf.push(">"),!0}endElement(e){let i=mm(e).toLowerCase();hm.hasOwnProperty(i)&&!t0.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(gm(e))}};function CC(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function DC(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw r0(e);return e}function wC(t){let e=t.firstChild;if(e&&CC(t,e))throw r0(e);return e}function mm(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function r0(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var EC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SC=/([^\#-~ |!])/g;function gm(t){return t.replace(/&/g,"&").replace(EC,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(SC,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ma;function s0(t,e){let i=null;try{Ma=Ma||dC(t);let n=e?String(e):"";i=Ma.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=i.innerHTML,i=Ma.getInertBodyElement(n)}while(n!==r);let a=new yd().sanitizeChildren(_m(i)||i);return bl(a)}finally{if(i){let n=_m(i)||i;for(;n.firstChild;)n.firstChild.remove()}}}function _m(t){return"content"in t&&MC(t)?t.content:null}function MC(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var bn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(bn||{});function Bn(t){let e=TC();return e?e.sanitize(bn.URL,t)||"":vo(t,"URL")?Vn(t):Cl($o(t))}function TC(){let t=K();return t&&t[kn].sanitizer}var IC=/^>|^->|<!--|-->|--!>|<!-$/g,xC=/(<|>)/g,OC="\u200B$1\u200B";function NC(t){return t.replace(IC,e=>e.replace(xC,OC))}function a0(t){return(t??C(Ue)).get(Gt)==="browser"}var Pn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Pn||{}),AC;function bf(t,e){return AC(t,e)}function Uo(t,e,i,n,o){if(n!=null){let r,s=!1;Jn(n)?r=n:vi(n)&&(s=!0,n=n[Qn]);let a=Fn(n);t===0&&i!==null?o==null?f0(e,i,a):Ka(e,i,a,o||null,!0):t===1&&i!==null?Ka(e,i,a,o||null,!0):t===2?WC(e,a,s):t===3&&e.destroyNode(a),r!=null&&qC(e,t,r,i,o)}}function RC(t,e){return t.createText(e)}function kC(t,e,i){t.setValue(e,i)}function FC(t,e){return t.createComment(NC(e))}function l0(t,e,i){return t.createElement(e,i)}function PC(t,e){c0(t,e),e[Qn]=null,e[Et]=null}function LC(t,e,i,n,o,r){n[Qn]=o,n[Et]=e,El(t,n,i,1,o,r)}function c0(t,e){e[kn].changeDetectionScheduler?.notify(9),El(t,e,e[Re],2,null,null)}function VC(t){let e=t[Jr];if(!e)return Fu(t[X],t);for(;e;){let i=null;if(vi(e))i=e[Jr];else{let n=e[pt];n&&(i=n)}if(!i){for(;e&&!e[yn]&&e!==t;)vi(e)&&Fu(e[X],e),e=e[ht];e===null&&(e=t),vi(e)&&Fu(e[X],e),i=e&&e[yn]}e=i}}function BC(t,e,i,n){let o=pt+n,r=i.length;n>0&&(i[o-1][yn]=e),n<r-pt?(e[yn]=i[o],Gm(i,pt+n,e)):(i.push(e),e[yn]=null),e[ht]=i;let s=e[ao];s!==null&&i!==s&&u0(s,e);let a=e[qn];a!==null&&a.insertView(t),Xu(e),e[Q]|=128}function u0(t,e){let i=t[Ko],n=e[ht];if(vi(n))t[Q]|=Ha.HasTransplantedViews;else{let o=n[ht][kt];e[kt]!==o&&(t[Q]|=Ha.HasTransplantedViews)}i===null?t[Ko]=[e]:i.push(e)}function Cf(t,e){let i=t[Ko],n=i.indexOf(e);i.splice(n,1)}function Xr(t,e){if(t.length<=pt)return;let i=pt+e,n=t[i];if(n){let o=n[ao];o!==null&&o!==t&&Cf(o,n),e>0&&(t[i-1][yn]=n[yn]);let r=Va(t,pt+e);PC(n[X],n);let s=r[qn];s!==null&&s.detachView(r[X]),n[ht]=null,n[yn]=null,n[Q]&=-129}return n}function Dl(t,e){if(!(e[Q]&256)){let i=e[Re];i.destroyNode&&El(t,e,i,3,null,null),VC(e)}}function Fu(t,e){if(e[Q]&256)return;let i=ce(null);try{e[Q]&=-129,e[Q]|=256,e[jt]&&su(e[jt]),UC(t,e),jC(t,e),e[X].type===1&&e[Re].destroy();let n=e[ao];if(n!==null&&Jn(e[ht])){n!==e[ht]&&Cf(n,e);let o=e[qn];o!==null&&o.detachView(t)}ud(e)}finally{ce(i)}}function jC(t,e){let i=t.cleanup,n=e[ja];if(i!==null)for(let r=0;r<i.length-1;r+=2)if(typeof i[r]=="string"){let s=i[r+3];s>=0?n[s]():n[-s].unsubscribe(),r+=2}else{let s=n[i[r+1]];i[r].call(s)}n!==null&&(e[ja]=null);let o=e[_i];if(o!==null){e[_i]=null;for(let r=0;r<o.length;r++){let s=o[r];s()}}}function UC(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let o=e[i[n]];if(!(o instanceof fo)){let r=i[n+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){let a=o[r[s]],l=r[s+1];Nn(4,a,l);try{l.call(a)}finally{Nn(5,a,l)}}else{Nn(4,o,r);try{r.call(o)}finally{Nn(5,o,r)}}}}}function d0(t,e,i){return HC(t,e.parent,i)}function HC(t,e,i){let n=e;for(;n!==null&&n.type&168;)e=n,n=e.parent;if(n===null)return i[Qn];{let{componentOffset:o}=n;if(o>-1){let{encapsulation:r}=t.data[n.directiveStart+o];if(r===Rn.None||r===Rn.Emulated)return null}return zt(n,i)}}function Ka(t,e,i,n,o){t.insertBefore(e,i,n,o)}function f0(t,e,i){t.appendChild(e,i)}function vm(t,e,i,n,o){n!==null?Ka(t,e,i,n,o):f0(t,e,i)}function p0(t,e){return t.parentNode(e)}function zC(t,e){return t.nextSibling(e)}function h0(t,e,i){return GC(t,e,i)}function $C(t,e,i){return t.type&40?zt(t,i):null}var GC=$C,ym;function wl(t,e,i,n){let o=d0(t,n,e),r=e[Re],s=n.parent||e[Et],a=h0(s,n,e);if(o!=null)if(Array.isArray(i))for(let l=0;l<i.length;l++)vm(r,o,i[l],a,!1);else vm(r,o,i,a,!1);ym!==void 0&&ym(r,n,e,i,o)}function Wr(t,e){if(e!==null){let i=e.type;if(i&3)return zt(e,t);if(i&4)return bd(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Wr(t,n);{let o=t[e.index];return Jn(o)?bd(-1,o):Fn(o)}}else{if(i&128)return Wr(t,e.next);if(i&32)return bf(e,t)()||Fn(t[e.index]);{let n=m0(t,e);if(n!==null){if(Array.isArray(n))return n[0];let o=co(t[kt]);return Wr(o,n)}else return Wr(t,e.next)}}}return null}function m0(t,e){if(e!==null){let n=t[kt][Et],o=e.projection;return n.projection[o]}return null}function bd(t,e){let i=pt+t+1;if(i<e.length){let n=e[i],o=n[X].firstChild;if(o!==null)return Wr(n,o)}return e[lo]}function WC(t,e,i){t.removeChild(null,e,i)}function Df(t,e,i,n,o,r,s){for(;i!=null;){if(i.type===128){i=i.next;continue}let a=n[i.index],l=i.type;if(s&&e===0&&(a&&Di(Fn(a),n),i.flags|=2),(i.flags&32)!==32)if(l&8)Df(t,e,i.child,n,o,r,!1),Uo(e,t,o,a,r);else if(l&32){let d=bf(i,n),p;for(;p=d();)Uo(e,t,o,p,r);Uo(e,t,o,a,r)}else l&16?g0(t,e,n,i,o,r):Uo(e,t,o,a,r);i=s?i.projectionNext:i.next}}function El(t,e,i,n,o,r){Df(i,n,t.firstChild,e,o,r,!1)}function YC(t,e,i){let n=e[Re],o=d0(t,i,e),r=i.parent||e[Et],s=h0(r,i,e);g0(n,0,e,i,o,s)}function g0(t,e,i,n,o,r){let s=i[kt],l=s[Et].projection[n.projection];if(Array.isArray(l))for(let d=0;d<l.length;d++){let p=l[d];Uo(e,t,o,p,r)}else{let d=l,p=s[ht];zg(n)&&(d.flags|=128),Df(t,e,d,p,o,r,!0)}}function qC(t,e,i,n,o){let r=i[lo],s=Fn(i);r!==s&&Uo(e,t,n,r,o);for(let a=pt;a<i.length;a++){let l=i[a];El(l[X],l,t,e,n,r)}}function KC(t,e,i,n,o){if(e)o?t.addClass(i,n):t.removeClass(i,n);else{let r=n.indexOf("-")===-1?void 0:Pn.DashCase;o==null?t.removeStyle(i,n,r):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=Pn.Important),t.setStyle(i,n,o,r))}}function ZC(t,e,i){t.setAttribute(e,"style",i)}function _0(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function v0(t,e,i){let{mergedAttrs:n,classes:o,styles:r}=i;n!==null&&Yu(t,e,n),o!==null&&_0(t,e,o),r!==null&&ZC(t,e,r)}var St={};function h(t=1){y0(ke(),K(),Xn()+t,!1)}function y0(t,e,i,n){if(!n)if((e[Q]&3)===3){let r=t.preOrderCheckHooks;r!==null&&Na(e,r,i)}else{let r=t.preOrderHooks;r!==null&&Aa(e,r,0,i)}uo(i)}function w(t,e=fe.Default){let i=K();if(i===null)return H(t,e);let n=lt();return Lg(n,i,vt(t),e)}function b0(t,e,i,n,o,r){let s=ce(null);try{let a=null;o&yi.SignalBased&&(a=e[n][Tn]),a!==null&&a.transformFn!==void 0&&(r=a.transformFn(r)),o&yi.HasDecoratorInputTransform&&(r=t.inputTransforms[n].call(e,r)),t.setInput!==null?t.setInput(e,a,r,i,n):ug(e,a,n,r)}finally{ce(s)}}function QC(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let o=i[n];if(o<0)uo(~o);else{let r=o,s=i[++n],a=i[++n];yb(s,r);let l=e[r];a(2,l)}}}finally{uo(-1)}}function Sl(t,e,i,n,o,r,s,a,l,d,p){let m=e.blueprint.slice();return m[Qn]=o,m[Q]=n|4|128|8|64,(d!==null||t&&t[Q]&2048)&&(m[Q]|=2048),mg(m),m[ht]=m[nr]=t,m[ft]=i,m[kn]=s||t&&t[kn],m[Re]=a||t&&t[Re],m[qo]=l||t&&t[qo]||null,m[Et]=r,m[fl]=tC(),m[Yo]=p,m[lg]=d,m[kt]=e.type==2?t[kt]:m,m}function rr(t,e,i,n,o){let r=t.data[e];if(r===null)r=JC(t,e,i,n,o),vb()&&(r.flags|=32);else if(r.type&64){r.type=i,r.value=n,r.attrs=o;let s=hb();r.injectorIndex=s===null?-1:s.injectorIndex}return go(r,!0),r}function JC(t,e,i,n,o){let r=Cg(),s=af(),a=s?r:r&&r.parent,l=t.data[e]=oD(t,a,i,e,n,o);return t.firstChild===null&&(t.firstChild=l),r!==null&&(s?r.child==null&&l.parent!==null&&(r.child=l):r.next===null&&(r.next=l,l.prev=r)),l}function C0(t,e,i,n){if(i===0)return-1;let o=e.length;for(let r=0;r<i;r++)e.push(n),t.blueprint.push(n),t.data.push(null);return o}function D0(t,e,i,n,o){let r=Xn(),s=n&2;try{uo(-1),s&&e.length>et&&y0(t,e,et,!1),Nn(s?2:0,o),i(n,o)}finally{uo(r),Nn(s?3:1,o)}}function wf(t,e,i){if(nf(e)){let n=ce(null);try{let o=e.directiveStart,r=e.directiveEnd;for(let s=o;s<r;s++){let a=t.data[s];if(a.contentQueries){let l=i[s];a.contentQueries(1,l,s)}}}finally{ce(n)}}}function Ef(t,e,i){yg()&&(uD(t,e,i,zt(i,e)),(i.flags&64)===64&&S0(t,e,i))}function Sf(t,e,i=zt){let n=e.localNames;if(n!==null){let o=e.index+1;for(let r=0;r<n.length;r+=2){let s=n[r+1],a=s===-1?i(e,t):t[s];t[o++]=a}}}function w0(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Mf(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Mf(t,e,i,n,o,r,s,a,l,d,p){let m=et+n,_=m+o,g=XC(m,_),D=typeof d=="function"?d():d;return g[X]={type:t,blueprint:g,template:i,queries:null,viewQuery:a,declTNode:e,data:g.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:_,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 r=="function"?r():r,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:D,incompleteFirstPass:!1,ssrId:p}}function XC(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:St);return i}function eD(t,e,i,n){let r=n.get(lC,Kg)||i===Rn.ShadowDom,s=t.selectRootElement(e,r);return tD(s),s}function tD(t){nD(t)}var nD=()=>null;function iD(t,e,i,n){let o=I0(e);o.push(i),t.firstCreatePass&&x0(t).push(n,o.length-1)}function oD(t,e,i,n,o,r){let s=e?e.injectorIndex:-1,a=0;return bg()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function bm(t,e,i,n,o){for(let r in e){if(!e.hasOwnProperty(r))continue;let s=e[r];if(s===void 0)continue;n??={};let a,l=yi.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let d=r;if(o!==null){if(!o.hasOwnProperty(r))continue;d=o[r]}t===0?Cm(n,i,d,a,l):Cm(n,i,d,a)}return n}function Cm(t,e,i,n,o){let r;t.hasOwnProperty(i)?(r=t[i]).push(e,n):r=t[i]=[e,n],o!==void 0&&r.push(o)}function rD(t,e,i){let n=e.directiveStart,o=e.directiveEnd,r=t.data,s=e.attrs,a=[],l=null,d=null;for(let p=n;p<o;p++){let m=r[p],_=i?i.get(m):null,g=_?_.inputs:null,D=_?_.outputs:null;l=bm(0,m.inputs,p,l,g),d=bm(1,m.outputs,p,d,D);let x=l!==null&&s!==null&&!Xd(e)?CD(l,p,s):null;a.push(x)}l!==null&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=d}function sD(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Ml(t,e,i,n,o,r,s,a){let l=zt(e,i),d=e.inputs,p;!a&&d!=null&&(p=d[n])?(If(t,i,p,n,o),pl(e)&&aD(i,e.index)):e.type&3?(n=sD(n),o=s!=null?s(o,e.value||"",n):o,r.setProperty(l,n,o)):e.type&12}function aD(t,e){let i=wi(e,t);i[Q]&16||(i[Q]|=64)}function Tf(t,e,i,n){if(yg()){let o=n===null?null:{"":-1},r=fD(t,i),s,a;r===null?s=a=null:[s,a]=r,s!==null&&E0(t,e,i,s,o,a),o&&pD(i,n,o)}i.mergedAttrs=Zr(i.mergedAttrs,i.attrs)}function E0(t,e,i,n,o,r){for(let d=0;d<n.length;d++)id(Wa(i,e),t,n[d].type);mD(i,t.data.length,n.length);for(let d=0;d<n.length;d++){let p=n[d];p.providersResolver&&p.providersResolver(p)}let s=!1,a=!1,l=C0(t,e,n.length,null);for(let d=0;d<n.length;d++){let p=n[d];i.mergedAttrs=Zr(i.mergedAttrs,p.hostAttrs),gD(t,i,e,l,p),hD(l,p,o),p.contentQueries!==null&&(i.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(i.flags|=64);let m=p.type.prototype;!s&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),s=!0),!a&&(m.ngOnChanges||m.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),l++}rD(t,i,r)}function lD(t,e,i,n,o){let r=o.hostBindings;if(r){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;cD(s)!=a&&s.push(a),s.push(i,n,r)}}function cD(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function uD(t,e,i,n){let o=i.directiveStart,r=i.directiveEnd;pl(i)&&_D(e,i,t.data[o+i.componentOffset]),t.firstCreatePass||Wa(i,e),Di(n,e);let s=i.initialInputs;for(let a=o;a<r;a++){let l=t.data[a],d=po(e,t,a,i);if(Di(d,e),s!==null&&bD(e,a-o,d,l,i,s),bi(l)){let p=wi(i.index,e);p[ft]=po(e,t,a,i)}}}function S0(t,e,i){let n=i.directiveStart,o=i.directiveEnd,r=i.index,s=bb();try{uo(r);for(let a=n;a<o;a++){let l=t.data[a],d=e[a];ed(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&dD(l,d)}}finally{uo(-1),ed(s)}}function dD(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function fD(t,e){let i=t.directiveRegistry,n=null,o=null;if(i)for(let r=0;r<i.length;r++){let s=i[r];if(Qm(e,s.selectors,!1))if(n||(n=[]),bi(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),n.unshift(...a,s);let l=a.length;Cd(t,e,l)}else n.unshift(s),Cd(t,e,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,n,o),n.push(s)}return n===null?null:[n,o]}function Cd(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function pD(t,e,i){if(e){let n=t.localNames=[];for(let o=0;o<e.length;o+=2){let r=i[e[o+1]];if(r==null)throw new q(-301,!1);n.push(e[o],r)}}}function hD(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;bi(e)&&(i[""]=t)}}function mD(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function gD(t,e,i,n,o){t.data[n]=o;let r=o.factory||(o.factory=ro(o.type,!0)),s=new fo(r,bi(o),w);t.blueprint[n]=s,i[n]=s,lD(t,e,n,C0(t,i,o.hostVars,St),o)}function _D(t,e,i){let n=zt(e,t),o=w0(i),r=t[kn].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=Tl(t,Sl(t,o,null,s,n,e,null,r.createRenderer(n,i),null,null,null));t[e.index]=a}function vD(t,e,i,n,o,r){let s=zt(t,e);yD(e[Re],s,r,t.value,i,n,o)}function yD(t,e,i,n,o,r,s){if(r==null)t.removeAttribute(e,o,i);else{let a=s==null?$o(r):s(r,n||"",o);t.setAttribute(e,o,a,i)}}function bD(t,e,i,n,o,r){let s=r[e];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],d=s[a++],p=s[a++],m=s[a++];b0(n,i,l,d,p,m)}}function CD(t,e,i){let n=null,o=0;for(;o<i.length;){let r=i[o];if(r===0){o+=4;continue}else if(r===5){o+=2;continue}if(typeof r=="number")break;if(t.hasOwnProperty(r)){n===null&&(n=[]);let s=t[r];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(r,s[a+1],s[a+2],i[o+1]);break}}o+=2}return n}function M0(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function T0(t,e){let i=t.contentQueries;if(i!==null){let n=ce(null);try{for(let o=0;o<i.length;o+=2){let r=i[o],s=i[o+1];if(s!==-1){let a=t.data[s];uf(r),a.contentQueries(2,e[s],s)}}}finally{ce(n)}}}function Tl(t,e){return t[Jr]?t[nm][yn]=e:t[Jr]=e,t[nm]=e,e}function Dd(t,e,i){uf(0);let n=ce(null);try{e(t,i)}finally{ce(n)}}function I0(t){return t[ja]??=[]}function x0(t){return t.cleanup??=[]}function O0(t,e){let i=t[qo],n=i?i.get(Kn,null):null;n&&n.handleError(e)}function If(t,e,i,n,o){for(let r=0;r<i.length;){let s=i[r++],a=i[r++],l=i[r++],d=e[s],p=t.data[s];b0(p,d,n,a,l,o)}}function N0(t,e,i){let n=hg(e,t);kC(t[Re],n,i)}function DD(t,e){let i=wi(e,t),n=i[X];wD(n,i);let o=i[Qn];o!==null&&i[Yo]===null&&(i[Yo]=yf(o,i[qo])),xf(n,i,i[ft])}function wD(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function xf(t,e,i){df(e);try{let n=t.viewQuery;n!==null&&Dd(1,n,i);let o=t.template;o!==null&&D0(t,e,o,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[qn]?.finishViewCreation(t),t.staticContentQueries&&T0(t,e),t.staticViewQueries&&Dd(2,t.viewQuery,i);let r=t.components;r!==null&&ED(e,r)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[Q]&=-5,ff()}}function ED(t,e){for(let i=0;i<e.length;i++)DD(t,e[i])}function us(t,e,i,n){let o=ce(null);try{let r=e.tView,a=t[Q]&4096?4096:16,l=Sl(t,r,i,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),d=t[e.index];l[ao]=d;let p=t[qn];return p!==null&&(l[qn]=p.createEmbeddedView(r)),xf(r,l,i),l}finally{ce(o)}}function A0(t,e){let i=pt+e;if(i<t.length)return t[i]}function Zo(t,e){return!e||e.firstChild===null||zg(t)}function ds(t,e,i,n=!0){let o=e[X];if(BC(o,e,t,i),n){let s=bd(i,t),a=e[Re],l=p0(a,t[lo]);l!==null&&LC(o,t[Et],a,e,l,s)}let r=e[Yo];r!==null&&r.firstChild!==null&&(r.firstChild=null)}function R0(t,e){let i=Xr(t,e);return i!==void 0&&Dl(i[X],i),i}function Za(t,e,i,n,o=!1){for(;i!==null;){if(i.type===128){i=o?i.projectionNext:i.next;continue}let r=e[i.index];r!==null&&n.push(Fn(r)),Jn(r)&&SD(r,n);let s=i.type;if(s&8)Za(t,e,i.child,n);else if(s&32){let a=bf(i,e),l;for(;l=a();)n.push(l)}else if(s&16){let a=m0(e,i);if(Array.isArray(a))n.push(...a);else{let l=co(e[kt]);Za(l[X],l,a,n,!0)}}i=o?i.projectionNext:i.next}return n}function SD(t,e){for(let i=pt;i<t.length;i++){let n=t[i],o=n[X].firstChild;o!==null&&Za(n[X],n,o,e)}t[lo]!==t[Qn]&&e.push(t[lo])}var k0=[];function MD(t){return t[jt]??TD(t)}function TD(t){let e=k0.pop()??Object.create(xD);return e.lView=t,e}function ID(t){t.lView[jt]!==t&&(t.lView=null,k0.push(t))}var xD=Se(Y({},jr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{gl(t.lView)},consumerOnSignalRead(){this.lView[jt]=this}});function OD(t){let e=t[jt]??Object.create(ND);return e.lView=t,e}var ND=Se(Y({},jr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=co(t.lView);for(;e&&!F0(e[X]);)e=co(e);e&&gg(e)},consumerOnSignalRead(){this.lView[jt]=this}});function F0(t){return t.type!==2}var AD=100;function P0(t,e=!0,i=0){let n=t[kn],o=n.rendererFactory,r=!1;r||o.begin?.();try{RD(t,i)}catch(s){throw e&&O0(t,s),s}finally{r||(o.end?.(),n.inlineEffectRunner?.flush())}}function RD(t,e){let i=Dg();try{om(!0),wd(t,e);let n=0;for(;ml(t);){if(n===AD)throw new q(103,!1);n++,wd(t,1)}}finally{om(i)}}function kD(t,e,i,n){let o=e[Q];if((o&256)===256)return;let r=!1,s=!1;!r&&e[kn].inlineEffectRunner?.flush(),df(e);let a=!0,l=null,d=null;r||(F0(t)?(d=MD(e),l=qs(d)):oh()===null?(a=!1,d=OD(e),l=qs(d)):e[jt]&&(su(e[jt]),e[jt]=null));try{mg(e),_b(t.bindingStartIndex),i!==null&&D0(t,e,i,2,n);let p=(o&3)===3;if(!r)if(p){let g=t.preOrderCheckHooks;g!==null&&Na(e,g,null)}else{let g=t.preOrderHooks;g!==null&&Aa(e,g,0,null),Nu(e,0)}if(s||FD(e),L0(e,0),t.contentQueries!==null&&T0(t,e),!r)if(p){let g=t.contentCheckHooks;g!==null&&Na(e,g)}else{let g=t.contentHooks;g!==null&&Aa(e,g,1),Nu(e,1)}QC(t,e);let m=t.components;m!==null&&B0(e,m,0);let _=t.viewQuery;if(_!==null&&Dd(2,_,n),!r)if(p){let g=t.viewCheckHooks;g!==null&&Na(e,g)}else{let g=t.viewHooks;g!==null&&Aa(e,g,2),Nu(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ou]){for(let g of e[Ou])g();e[Ou]=null}r||(e[Q]&=-73)}catch(p){throw r||gl(e),p}finally{d!==null&&(ou(d,l),a&&ID(d)),ff()}}function L0(t,e){for(let i=Gg(t);i!==null;i=Wg(i))for(let n=pt;n<i.length;n++){let o=i[n];V0(o,e)}}function FD(t){for(let e=Gg(t);e!==null;e=Wg(e)){if(!(e[Q]&Ha.HasTransplantedViews))continue;let i=e[Ko];for(let n=0;n<i.length;n++){let o=i[n];gg(o)}}}function PD(t,e,i){let n=wi(e,t);V0(n,i)}function V0(t,e){sf(t)&&wd(t,e)}function wd(t,e){let n=t[X],o=t[Q],r=t[jt],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(r?.dirty&&ru(r)),s||=!1,r&&(r.dirty=!1),t[Q]&=-9217,s)kD(n,t,n.template,t[ft]);else if(o&8192){L0(t,1);let a=n.components;a!==null&&B0(t,a,1)}}function B0(t,e,i){for(let n=0;n<e.length;n++)PD(t,e[n],i)}function Of(t,e){let i=Dg()?64:1088;for(t[kn].changeDetectionScheduler?.notify(e);t;){t[Q]|=i;let n=co(t);if(Qu(t)&&!n)return t;t=n}return null}var ho=class{get rootNodes(){let e=this._lView,i=e[X];return Za(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ft]}set context(e){this._lView[ft]=e}get destroyed(){return(this._lView[Q]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ht];if(Jn(e)){let i=e[Ua],n=i?i.indexOf(this):-1;n>-1&&(Xr(e,n),Va(i,n))}this._attachedToViewContainer=!1}Dl(this._lView[X],this._lView)}onDestroy(e){_g(this._lView,e)}markForCheck(){Of(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Q]&=-129}reattach(){Xu(this._lView),this._lView[Q]|=128}detectChanges(){this._lView[Q]|=1024,P0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Qu(this._lView),i=this._lView[ao];i!==null&&!e&&Cf(i,this._lView),c0(this._lView[X],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=e;let i=Qu(this._lView),n=this._lView[ao];n!==null&&!i&&u0(n,this._lView),Xu(this._lView)}},Ln=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BD;let t=e;return t})(),LD=Ln,VD=class extends LD{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let o=us(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new ho(o)}};function BD(){return Il(lt(),K())}function Il(t,e){return t.type&4?new VD(e,t,or(t,e)):null}var bL=new RegExp(`^(\\d+)*(${sC}|${rC})*(.*)`);var jD=()=>null;function Qo(t,e){return jD(t,e)}var Jo=class{},xl=new G("",{providedIn:"root",factory:()=>!1});var j0=new G(""),U0=new G(""),Ed=class{},Qa=class{};function UD(t){let e=Error(`No component factory found for ${At(t)}.`);return e[HD]=t,e}var HD="ngComponent";var Sd=class{resolveComponentFactory(e){throw UD(e)}},Bf=class Bf{};Bf.NULL=new Sd;var es=Bf,Xo=class{},Wt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>zD();let t=e;return t})();function zD(){let t=K(),e=lt(),i=wi(e.index,t);return(vi(i)?i:t)[Re]}var $D=(()=>{let e=class e{};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();function Ja(t,e,i){let n=i?t.styles:null,o=i?t.classes:null,r=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")r=a;else if(r==1)o=zu(o,a);else if(r==2){let l=a,d=e[++s];n=zu(n,l+": "+d+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=o:t.classesWithoutHost=o}var Md=class extends es{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=so(e);return new ts(i,this.ngModule)}};function Dm(t,e){let i=[];for(let n in t){if(!t.hasOwnProperty(n))continue;let o=t[n];if(o===void 0)continue;let r=Array.isArray(o),s=r?o[0]:o,a=r?o[1]:yi.None;e?i.push({propName:s,templateName:n,isSignal:(a&yi.SignalBased)!==0}):i.push({propName:s,templateName:n})}return i}function GD(t){let e=t.toLowerCase();return e==="svg"?ib:e==="math"?ob:null}var ts=class extends Qa{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=Dm(e.inputs,!0);if(i!==null)for(let o of n)i.hasOwnProperty(o.propName)&&(o.transform=i[o.propName]);return n}get outputs(){return Dm(this.componentDef.outputs,!1)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=P1(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,o){let r=ce(null);try{o=o||this.ngModule;let s=o instanceof Rt?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new td(e,s):e,l=a.get(Xo,null);if(l===null)throw new q(407,!1);let d=a.get($D,null),p=a.get(Jo,null),m={rendererFactory:l,sanitizer:d,inlineEffectRunner:null,changeDetectionScheduler:p},_=l.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=n?eD(_,n,this.componentDef.encapsulation,a):l0(_,g,GD(g)),x=512;this.componentDef.signals?x|=4096:this.componentDef.onPush||(x|=16);let O=null;D!==null&&(O=yf(D,a,!0));let N=Mf(0,null,null,1,0,null,null,null,null,null,null),z=Sl(null,N,null,x,null,null,m,_,a,null,O);df(z);let le,P,oe=null;try{let $=this.componentDef,pe,Ae=null;$.findHostDirectiveDefs?(pe=[],Ae=new Map,$.findHostDirectiveDefs($,pe,Ae),pe.push($)):pe=[$];let $e=WD(z,D);oe=YD($e,D,$,pe,z,m,_),P=of(N,et),D&&ZD(_,$,D,n),i!==void 0&&QD(P,this.ngContentSelectors,i),le=KD(oe,$,pe,Ae,z,[JD]),xf(N,z,null)}catch($){throw oe!==null&&ud(oe),ud(z),$}finally{ff()}return new Td(this.componentType,le,or(P,z),z,P)}finally{ce(r)}}},Td=class extends Ed{constructor(e,i,n,o,r){super(),this.location=n,this._rootLView=o,this._tNode=r,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new ho(o,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,o;if(n!==null&&(o=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let r=this._rootLView;If(r[X],r,o,e,i),this.previousInputValues.set(e,i);let s=wi(this._tNode.index,r);Of(s,1)}}get injector(){return new oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function WD(t,e){let i=t[X],n=et;return t[n]=e,rr(i,n,2,"#host",null)}function YD(t,e,i,n,o,r,s){let a=o[X];qD(n,t,e,s);let l=null;e!==null&&(l=yf(e,o[qo]));let d=r.rendererFactory.createRenderer(e,i),p=16;i.signals?p=4096:i.onPush&&(p=64);let m=Sl(o,w0(i),null,p,o[t.index],t,r,d,null,null,l);return a.firstCreatePass&&Cd(a,t,n.length-1),Tl(o,m),o[t.index]=m}function qD(t,e,i,n){for(let o of t)e.mergedAttrs=Zr(e.mergedAttrs,o.hostAttrs);e.mergedAttrs!==null&&(Ja(e,e.mergedAttrs,!0),i!==null&&v0(n,i,e))}function KD(t,e,i,n,o,r){let s=lt(),a=o[X],l=zt(s,o);E0(a,o,s,i,null,n);for(let p=0;p<i.length;p++){let m=s.directiveStart+p,_=po(o,a,m,s);Di(_,o)}S0(a,o,s),l&&Di(l,o);let d=po(o,a,s.directiveStart+s.componentOffset,s);if(t[ft]=o[ft]=d,r!==null)for(let p of r)p(d,e);return wf(a,s,o),d}function ZD(t,e,i,n){if(n)Yu(t,i,["ng-version","18.2.11"]);else{let{attrs:o,classes:r}=L1(e.selectors[0]);o&&Yu(t,i,o),r&&r.length>0&&_0(t,i,r.join(" "))}}function QD(t,e,i){let n=t.projection=[];for(let o=0;o<e.length;o++){let r=i[o];n.push(r!=null?Array.from(r):null)}}function JD(){let t=lt();yl(K()[X],t)}var Ei=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=XD;let t=e;return t})();function XD(){let t=lt();return z0(t,K())}var ew=Ei,H0=class extends ew{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return or(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){let e=pf(this._hostTNode,this._hostLView);if(Ng(e)){let i=$a(e,this._hostLView),n=za(e),o=i[X].data[n+8];return new oo(o,i)}else return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=wm(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-pt}createEmbeddedView(e,i,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let s=Qo(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},r,s);return this.insertImpl(a,o,Zo(this._hostTNode,s)),a}createComponent(e,i,n,o,r){let s=e&&!X1(e),a;if(s)a=i;else{let D=i||{};a=D.index,n=D.injector,o=D.projectableNodes,r=D.environmentInjector||D.ngModuleRef}let l=s?e:new ts(so(e)),d=n||this.parentInjector;if(!r&&l.ngModule==null){let x=(s?d:this.parentInjector).get(Rt,null);x&&(r=x)}let p=so(l.componentType??{}),m=Qo(this._lContainer,p?.id??null),_=m?.firstChild??null,g=l.create(d,o,_,r);return this.insertImpl(g.hostView,a,Zo(this._hostTNode,m)),g}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let o=e._lView;if(sb(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=o[ht],d=new H0(l,l[Et],l[ht]);d.detach(d.indexOf(e))}}let r=this._adjustIndex(i),s=this._lContainer;return ds(s,o,r,n),e.attachToViewContainerRef(),Gm(Pu(s),r,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=wm(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=Xr(this._lContainer,i);n&&(Va(Pu(this._lContainer),i),Dl(n[X],n))}detach(e){let i=this._adjustIndex(e,-1),n=Xr(this._lContainer,i);return n&&Va(Pu(this._lContainer),i)!=null?new ho(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function wm(t){return t[Ua]}function Pu(t){return t[Ua]||(t[Ua]=[])}function z0(t,e){let i,n=e[t.index];return Jn(n)?i=n:(i=M0(n,e,null,t),e[t.index]=i,Tl(e,i)),nw(i,e,t,n),new H0(i,t,e)}function tw(t,e){let i=t[Re],n=i.createComment(""),o=zt(e,t),r=p0(i,o);return Ka(i,r,n,zC(i,o),!1),n}var nw=rw,iw=()=>!1;function ow(t,e,i){return iw(t,e,i)}function rw(t,e,i,n){if(t[lo])return;let o;i.type&8?o=Fn(n):o=tw(e,i),t[lo]=o}var Id=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},xd=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,o=[];for(let r=0;r<n;r++){let s=i.getByIndex(r),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)Nf(e,i).matches!==null&&this.queries[i].setDirty()}},Xa=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=pw(e):this.predicate=e}},Od=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let o=i!==null?i.length:0,r=this.getByIndex(n).embeddedTView(e,o);r&&(r.indexInDeclarationView=n,i!==null?i.push(r):i=[r])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Nd=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let o=0;o<n.length;o++){let r=n[o];this.matchTNodeWithReadOption(e,i,sw(i,r)),this.matchTNodeWithReadOption(e,i,Ra(i,e,r,!1,!1))}else n===Ln?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,Ra(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let o=this.metadata.read;if(o!==null)if(o===ye||o===Ei||o===Ln&&i.type&4)this.addMatch(i.index,-2);else{let r=Ra(i,e,o,!1,!1);r!==null&&this.addMatch(i.index,r)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};function sw(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function aw(t,e){return t.type&11?or(t,e):t.type&4?Il(t,e):null}function lw(t,e,i,n){return i===-1?aw(e,t):i===-2?cw(t,e,n):po(t,t[X],i,e)}function cw(t,e,i){if(i===ye)return or(e,t);if(i===Ln)return Il(e,t);if(i===Ei)return z0(e,t)}function $0(t,e,i,n){let o=e[qn].queries[n];if(o.matches===null){let r=t.data,s=i.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let d=s[l];if(d<0)a.push(null);else{let p=r[d];a.push(lw(e,p,s[l+1],i.metadata.read))}}o.matches=a}return o.matches}function Ad(t,e,i,n){let o=t.queries.getByIndex(i),r=o.matches;if(r!==null){let s=$0(t,e,o,i);for(let a=0;a<r.length;a+=2){let l=r[a];if(l>0)n.push(s[a/2]);else{let d=r[a+1],p=e[-l];for(let m=pt;m<p.length;m++){let _=p[m];_[ao]===_[ht]&&Ad(_[X],_,d,n)}if(p[Ko]!==null){let m=p[Ko];for(let _=0;_<m.length;_++){let g=m[_];Ad(g[X],g,d,n)}}}}}return n}function uw(t,e){return t[qn].queries[e].queryList}function G0(t,e,i){let n=new cd((i&4)===4);return iD(t,e,n,n.destroy),(e[qn]??=new xd).queries.push(new Id(n))-1}function dw(t,e,i){let n=ke();return n.firstCreatePass&&(W0(n,new Xa(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),G0(n,K(),e)}function fw(t,e,i,n){let o=ke();if(o.firstCreatePass){let r=lt();W0(o,new Xa(e,i,n),r.index),hw(o,t),(i&2)===2&&(o.staticContentQueries=!0)}return G0(o,K(),i)}function pw(t){return t.split(",").map(e=>e.trim())}function W0(t,e,i){t.queries===null&&(t.queries=new Od),t.queries.track(new Nd(e,i))}function hw(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Nf(t,e){return t.queries.getByIndex(e)}function mw(t,e){let i=t[X],n=Nf(i,e);return n.crossesNgTemplate?Ad(i,t,e,[]):$0(i,t,n,e)}var Em=new Set;function jn(t){Em.has(t)||(Em.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function gw(t){return typeof t=="function"&&t[Tn]!==void 0}function Si(t,e){jn("NgSignals");let i=mh(t),n=i[Tn];return e?.equal&&(n.equal=e.equal),i.set=o=>Qs(n,o),i.update=o=>gh(n,o),i.asReadonly=_w.bind(i),i}function _w(){let t=this[Tn];if(t.readonlyFn===void 0){let e=()=>this();e[Tn]=t,t.readonlyFn=e}return t.readonlyFn}function Y0(t){return gw(t)&&typeof t.set=="function"}function vw(t){return Object.getPrototypeOf(t.prototype).constructor}function tt(t){let e=vw(t.type),i=!0,n=[t];for(;e;){let o;if(bi(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new q(903,!1);o=e.\u0275dir}if(o){if(i){n.push(o);let s=t;s.inputs=Ta(t.inputs),s.inputTransforms=Ta(t.inputTransforms),s.declaredInputs=Ta(t.declaredInputs),s.outputs=Ta(t.outputs);let a=o.hostBindings;a&&ww(t,a);let l=o.viewQuery,d=o.contentQueries;if(l&&Cw(t,l),d&&Dw(t,d),yw(t,o),t1(t.outputs,o.outputs),bi(o)&&o.data.animation){let p=t.data;p.animation=(p.animation||[]).concat(o.data.animation)}}let r=o.features;if(r)for(let s=0;s<r.length;s++){let a=r[s];a&&a.ngInherit&&a(t),a===tt&&(i=!1)}}e=Object.getPrototypeOf(e)}bw(n)}function yw(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let o=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=e.inputTransforms[o]}}}function bw(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=Zr(o.hostAttrs,i=Zr(i,o.hostAttrs))}}function Ta(t){return t===Go?{}:t===wt?[]:t}function Cw(t,e){let i=t.viewQuery;i?t.viewQuery=(n,o)=>{e(n,o),i(n,o)}:t.viewQuery=e}function Dw(t,e){let i=t.contentQueries;i?t.contentQueries=(n,o,r)=>{e(n,o,r),i(n,o,r)}:t.contentQueries=e}function ww(t,e){let i=t.hostBindings;i?t.hostBindings=(n,o)=>{e(n,o),i(n,o)}:t.hostBindings=e}var er=class{};var el=class extends er{constructor(e){super(),this.componentFactoryResolver=new Md(this),this.instance=null;let i=new Qr([...e.providers,{provide:er,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],e.parent||ul(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ew(t,e,i=null){return new el({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function q0(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Ol(t,e,i){return t[e]=i}function Sw(t,e){return t[e]}function Ft(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function Af(t,e,i,n){let o=Ft(t,e,i);return Ft(t,e+1,n)||o}function Mw(t,e,i,n,o){let r=Af(t,e,i,n);return Ft(t,e+2,o)||r}function Tw(t){return(t.flags&32)===32}function Iw(t,e,i,n,o,r,s,a,l){let d=e.consts,p=rr(e,t,4,s||null,a||null);Tf(e,i,p,Ci(d,l)),yl(e,p);let m=p.tView=Mf(2,p,n,o,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,d,null);return e.queries!==null&&(e.queries.template(e,p),m.queries=e.queries.embeddedTView(p)),p}function tl(t,e,i,n,o,r,s,a,l,d){let p=i+et,m=e.firstCreatePass?Iw(p,e,t,n,o,r,s,a,l):e.data[p];go(m,!1);let _=xw(e,t,m,i);_l()&&wl(e,t,_,m),Di(_,t);let g=M0(_,t,_,m);return t[p]=g,Tl(t,g),ow(g,m,t),hl(m)&&Ef(e,t,m),l!=null&&Sf(t,m,d),m}function T(t,e,i,n,o,r,s,a){let l=K(),d=ke(),p=Ci(d.consts,r);return tl(l,d,t,e,i,n,o,p,s,a),T}var xw=Ow;function Ow(t,e,i,n){return vl(!0),e[Re].createComment("")}var Nt=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Nt||{}),K0=(()=>{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})(),no=class no{constructor(){this.ngZone=C(ge),this.scheduler=C(Jo),this.errorHandler=C(Kn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of no.PHASES)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[e]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>i.hooks[e](i.pipelinedValue))}catch(n){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};no.PHASES=[Nt.EarlyRead,Nt.Write,Nt.MixedReadWrite,Nt.Read],no.\u0275prov=L({token:no,providedIn:"root",factory:()=>new no});var Rd=no,kd=class{constructor(e,i,n,o){this.impl=e,this.hooks=i,this.once=n,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Nl(t,e){!e?.injector&&dl(Nl);let i=e?.injector??C(Ue);return a0(i)?(jn("NgAfterRender"),Z0(t,i,e,!1)):Q0}function sr(t,e){!e?.injector&&dl(sr);let i=e?.injector??C(Ue);return a0(i)?(jn("NgAfterNextRender"),Z0(t,i,e,!0)):Q0}function Nw(t,e){if(t instanceof Function){let i=[void 0,void 0,void 0,void 0];return i[e]=t,i}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function Z0(t,e,i,n){let o=e.get(K0);o.impl??=e.get(Rd);let r=i?.phase??Nt.MixedReadWrite,s=i?.manualCleanup!==!0?e.get(ei):null,a=new kd(o.impl,Nw(t,r),n,s);return o.impl.register(a),a}var Q0={destroy(){}};function Mt(t,e,i,n){let o=K(),r=_o();if(Ft(o,r,e)){let s=ke(),a=as();vD(a,o,t,e,i,n)}return Mt}function Rf(t,e,i,n){return Ft(t,_o(),i)?e+$o(i)+n:St}function Aw(t,e,i,n,o,r){let s=gb(),a=Af(t,s,i,o);return cf(2),a?e+$o(i)+n+$o(o)+r:St}function Ia(t,e){return t<<17|e<<2}function mo(t){return t>>17&32767}function Rw(t){return(t&2)==2}function kw(t,e){return t&131071|e<<17}function Fd(t){return t|2}function tr(t){return(t&131068)>>2}function Lu(t,e){return t&-131069|e<<2}function Fw(t){return(t&1)===1}function Pd(t){return t|1}function Pw(t,e,i,n,o,r){let s=r?e.classBindings:e.styleBindings,a=mo(s),l=tr(s);t[n]=i;let d=!1,p;if(Array.isArray(i)){let m=i;p=m[1],(p===null||os(m,p)>0)&&(d=!0)}else p=i;if(o)if(l!==0){let _=mo(t[a+1]);t[n+1]=Ia(_,a),_!==0&&(t[_+1]=Lu(t[_+1],n)),t[a+1]=kw(t[a+1],n)}else t[n+1]=Ia(a,0),a!==0&&(t[a+1]=Lu(t[a+1],n)),a=n;else t[n+1]=Ia(l,0),a===0?a=n:t[l+1]=Lu(t[l+1],n),l=n;d&&(t[n+1]=Fd(t[n+1])),Sm(t,p,n,!0),Sm(t,p,n,!1),Lw(e,p,t,n,r),s=Ia(a,l),r?e.classBindings=s:e.styleBindings=s}function Lw(t,e,i,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof e=="string"&&os(r,e)>=0&&(i[n+1]=Pd(i[n+1]))}function Sm(t,e,i,n){let o=t[i+1],r=e===null,s=n?mo(o):tr(o),a=!1;for(;s!==0&&(a===!1||r);){let l=t[s],d=t[s+1];Vw(l,e)&&(a=!0,t[s+1]=n?Pd(d):Fd(d)),s=n?mo(d):tr(d)}a&&(t[i+1]=n?Fd(o):Pd(o))}function Vw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?os(t,e)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bw(t){return t.substring(vn.key,vn.keyEnd)}function jw(t){return Uw(t),J0(t,X0(t,0,vn.textEnd))}function J0(t,e){let i=vn.textEnd;return i===e?-1:(e=vn.keyEnd=Hw(t,vn.key=e,i),X0(t,e,i))}function Uw(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function X0(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function Hw(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function A(t,e,i){let n=K(),o=_o();if(Ft(n,o,e)){let r=ke(),s=as();Ml(r,s,n,t,e,n[Re],i,!1)}return A}function Ld(t,e,i,n,o){let r=e.inputs,s=o?"class":"style";If(t,i,r[s],s,n)}function be(t,e,i){return t_(t,e,i,!1),be}function Qe(t,e){return t_(t,e,null,!0),Qe}function ar(t){n_(qw,e_,t,!0)}function e_(t,e){for(let i=jw(e);i>=0;i=J0(e,i))ll(t,Bw(e),!0)}function t_(t,e,i,n){let o=K(),r=ke(),s=cf(2);if(r.firstUpdatePass&&o_(r,t,s,n),e!==St&&Ft(o,s,e)){let a=r.data[Xn()];r_(r,a,o,o[Re],t,o[s+1]=Zw(e,i),n,s)}}function n_(t,e,i,n){let o=ke(),r=cf(2);o.firstUpdatePass&&o_(o,null,r,n);let s=K();if(i!==St&&Ft(s,r,i)){let a=o.data[Xn()];if(s_(a,n)&&!i_(o,r)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=zu(l,i||"")),Ld(o,a,s,i,n)}else Kw(o,a,s,s[Re],s[r+1],s[r+1]=Yw(t,e,i),n,r)}}function i_(t,e){return e>=t.expandoStartIndex}function o_(t,e,i,n){let o=t.data;if(o[i+1]===null){let r=o[Xn()],s=i_(t,i);s_(r,n)&&e===null&&!s&&(e=!1),e=zw(o,r,e,n),Pw(o,r,e,i,s,n)}}function zw(t,e,i,n){let o=Cb(t),r=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(i=Vu(null,t,e,i,n),i=ns(i,e.attrs,n),r=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(i=Vu(o,t,e,i,n),r===null){let l=$w(t,e,n);l!==void 0&&Array.isArray(l)&&(l=Vu(null,t,e,l[1],n),l=ns(l,e.attrs,n),Gw(t,e,n,l))}else r=Ww(t,e,n)}return r!==void 0&&(n?e.residualClasses=r:e.residualStyles=r),i}function $w(t,e,i){let n=i?e.classBindings:e.styleBindings;if(tr(n)!==0)return t[mo(n)]}function Gw(t,e,i,n){let o=i?e.classBindings:e.styleBindings;t[mo(o)]=n}function Ww(t,e,i){let n,o=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<o;r++){let s=t[r].hostAttrs;n=ns(n,s,i)}return ns(n,e.attrs,i)}function Vu(t,e,i,n,o){let r=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(r=e[a],n=ns(n,r.hostAttrs,o),r!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function ns(t,e,i){let n=i?1:2,o=-1;if(e!==null)for(let r=0;r<e.length;r++){let s=e[r];typeof s=="number"?o=s:o===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),ll(t,s,i?!0:e[++r]))}return t===void 0?null:t}function Yw(t,e,i){if(i==null||i==="")return wt;let n=[],o=Vn(i);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(n,o[r],!0);else if(typeof o=="object")for(let r in o)o.hasOwnProperty(r)&&t(n,r,o[r]);else typeof o=="string"&&e(n,o);return n}function qw(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&ll(t,n,i)}function Kw(t,e,i,n,o,r,s,a){o===St&&(o=wt);let l=0,d=0,p=0<o.length?o[0]:null,m=0<r.length?r[0]:null;for(;p!==null||m!==null;){let _=l<o.length?o[l+1]:void 0,g=d<r.length?r[d+1]:void 0,D=null,x;p===m?(l+=2,d+=2,_!==g&&(D=m,x=g)):m===null||p!==null&&p<m?(l+=2,D=p):(d+=2,D=m,x=g),D!==null&&r_(t,e,i,n,D,x,s,a),p=l<o.length?o[l]:null,m=d<r.length?r[d]:null}}function r_(t,e,i,n,o,r,s,a){if(!(e.type&3))return;let l=t.data,d=l[a+1],p=Fw(d)?Mm(l,e,i,o,tr(d),s):void 0;if(!nl(p)){nl(r)||Rw(d)&&(r=Mm(l,null,i,o,a,s));let m=hg(Xn(),i);KC(n,s,m,o,r)}}function Mm(t,e,i,n,o,r){let s=e===null,a;for(;o>0;){let l=t[o],d=Array.isArray(l),p=d?l[1]:l,m=p===null,_=i[o+1];_===St&&(_=m?wt:void 0);let g=m?Iu(_,n):p===n?_:void 0;if(d&&!nl(g)&&(g=Iu(l,n)),nl(g)&&(a=g,s))return a;let D=t[o+1];o=s?mo(D):tr(D)}if(e!==null){let l=r?e.residualClasses:e.residualStyles;l!=null&&(a=Iu(l,n))}return a}function nl(t){return t!==void 0}function Zw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=At(Vn(t)))),t}function s_(t,e){return(t.flags&(e?8:16))!==0}function lr(t,e,i){let n=K(),o=Rf(n,t,e,i);n_(ll,e_,o,!0)}var Vd=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),o=Math.max(e,i),r=this.detach(o);if(o-n>1){let s=this.detach(n);this.attach(n,r),this.attach(o,s)}else this.attach(n,r)}move(e,i){this.attach(i,this.detach(e))}};function Bu(t,e,i,n,o){return t===i&&Object.is(e,n)?1:Object.is(o(t,e),o(i,n))?-1:0}function Qw(t,e,i){let n,o,r=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;r<=s&&r<=l;){let d=t.at(r),p=e[r],m=Bu(r,d,r,p,i);if(m!==0){m<0&&t.updateValue(r,p),r++;continue}let _=t.at(s),g=e[l],D=Bu(s,_,l,g,i);if(D!==0){D<0&&t.updateValue(s,g),s--,l--;continue}let x=i(r,d),O=i(s,_),N=i(r,p);if(Object.is(N,O)){let z=i(l,g);Object.is(z,x)?(t.swap(r,s),t.updateValue(s,g),l--,s--):t.move(s,r),t.updateValue(r,p),r++;continue}if(n??=new il,o??=Im(t,r,s,i),Bd(t,n,r,N))t.updateValue(r,p),r++,s++;else if(o.has(N))n.set(x,t.detach(r)),s--;else{let z=t.create(r,e[r]);t.attach(r,z),r++,s++}}for(;r<=l;)Tm(t,n,i,r,e[r]),r++}else if(e!=null){let l=e[Symbol.iterator](),d=l.next();for(;!d.done&&r<=s;){let p=t.at(r),m=d.value,_=Bu(r,p,r,m,i);if(_!==0)_<0&&t.updateValue(r,m),r++,d=l.next();else{n??=new il,o??=Im(t,r,s,i);let g=i(r,m);if(Bd(t,n,r,g))t.updateValue(r,m),r++,s++,d=l.next();else if(!o.has(g))t.attach(r,t.create(r,m)),r++,s++,d=l.next();else{let D=i(r,p);n.set(D,t.detach(r)),s--}}}for(;!d.done;)Tm(t,n,i,t.length,d.value),d=l.next()}for(;r<=s;)t.destroy(t.detach(s--));n?.forEach(l=>{t.destroy(l)})}function Bd(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function Tm(t,e,i,n,o){if(Bd(t,e,n,i(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Im(t,e,i,n){let o=new Set;for(let r=e;r<=i;r++)o.add(n(r,t.at(r)));return o}var il=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),e(n,i)}}};function I(t,e){jn("NgControlFlow");let i=K(),n=_o(),o=i[n]!==St?i[n]:-1,r=o!==-1?ol(i,et+o):void 0,s=0;if(Ft(i,n,t)){let a=ce(null);try{if(r!==void 0&&R0(r,s),t!==-1){let l=et+t,d=ol(i,l),p=zd(i[X],l),m=Qo(d,p.tView.ssrId),_=us(i,p,e,{dehydratedView:m});ds(d,_,s,Zo(p,m))}}finally{ce(a)}}else if(r!==void 0){let a=A0(r,s);a!==void 0&&(a[ft]=e)}}var jd=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-pt}};function Yt(t){return t}function fs(t,e){return e}var Ud=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function te(t,e,i,n,o,r,s,a,l,d,p,m,_){jn("NgControlFlow");let g=K(),D=ke(),x=l!==void 0,O=K(),N=a?s.bind(O[kt][ft]):s,z=new Ud(x,N);O[et+t]=z,tl(g,D,t+1,e,i,n,o,Ci(D.consts,r)),x&&tl(g,D,t+2,l,d,p,m,Ci(D.consts,_))}var Hd=class extends Vd{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-pt}at(e){return this.getLView(e)[ft].$implicit}attach(e,i){let n=i[Yo];this.needsIndexUpdate||=e!==this.length,ds(this.lContainer,i,e,Zo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Jw(this.lContainer,e)}create(e,i){let n=Qo(this.lContainer,this.templateTNode.tView.ssrId),o=us(this.hostLView,this.templateTNode,new jd(this.lContainer,i,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(e){Dl(e[X],e),this.operationsCounter?.recordDestroy()}updateValue(e,i){this.getLView(e)[ft].$implicit=i}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[ft].$index=e}getLView(e){return Xw(this.lContainer,e)}};function ne(t){let e=ce(null),i=Xn();try{let n=K(),o=n[X],r=n[i],s=i+1,a=ol(n,s);if(r.liveCollection===void 0){let d=zd(o,s);r.liveCollection=new Hd(a,n,d)}else r.liveCollection.reset();let l=r.liveCollection;if(Qw(l,t,r.trackByFn),l.updateIndexes(),r.hasEmptyBlock){let d=_o(),p=l.length===0;if(Ft(n,d,p)){let m=i+2,_=ol(n,m);if(p){let g=zd(o,m),D=Qo(_,g.tView.ssrId),x=us(n,g,void 0,{dehydratedView:D});ds(_,x,0,Zo(g,D))}else R0(_,0)}}}finally{ce(e)}}function ol(t,e){return t[e]}function Jw(t,e){return Xr(t,e)}function Xw(t,e){return A0(t,e)}function zd(t,e){return of(t,e)}function eE(t,e,i,n,o,r){let s=e.consts,a=Ci(s,o),l=rr(e,t,2,n,a);return Tf(e,i,l,Ci(s,r)),l.attrs!==null&&Ja(l,l.attrs,!1),l.mergedAttrs!==null&&Ja(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function c(t,e,i,n){let o=K(),r=ke(),s=et+t,a=o[Re],l=r.firstCreatePass?eE(s,r,o,e,i,n):r.data[s],d=tE(r,o,l,a,e,t);o[s]=d;let p=hl(l);return go(l,!0),v0(a,d,l),!Tw(l)&&_l()&&wl(r,o,d,l),cb()===0&&Di(d,o),ub(),p&&(Ef(r,o,l),wf(r,l,o)),n!==null&&Sf(o,l),c}function u(){let t=lt();af()?lf():(t=t.parent,go(t,!1));let e=t;fb(e)&&pb(),db();let i=ke();return i.firstCreatePass&&(yl(i,t),nf(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&Ib(e)&&Ld(i,e,K(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&xb(e)&&Ld(i,e,K(),e.stylesWithoutHost,!1),u}function v(t,e,i,n){return c(t,e,i,n),u(),v}var tE=(t,e,i,n,o,r)=>(vl(!0),l0(n,o,Eb()));function nE(t,e,i,n,o){let r=e.consts,s=Ci(r,n),a=rr(e,t,8,"ng-container",s);s!==null&&Ja(a,s,!0);let l=Ci(r,o);return Tf(e,i,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function kf(t,e,i){let n=K(),o=ke(),r=t+et,s=o.firstCreatePass?nE(r,o,n,e,i):o.data[r];go(s,!0);let a=iE(o,n,s,t);return n[r]=a,_l()&&wl(o,n,a,s),Di(a,n),hl(s)&&(Ef(o,n,s),wf(o,s,n)),i!=null&&Sf(n,s),kf}function Ff(){let t=lt(),e=ke();return af()?lf():(t=t.parent,go(t,!1)),e.firstCreatePass&&(yl(e,t),nf(t)&&e.queries.elementEnd(t)),Ff}var iE=(t,e,i,n)=>(vl(!0),FC(e[Re],""));function U(){return K()}function Mi(t,e,i){let n=K(),o=_o();if(Ft(n,o,e)){let r=ke(),s=as();Ml(r,s,n,t,e,n[Re],i,!0)}return Mi}var eo=void 0;function oE(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var rE=["en",[["a","p"],["AM","PM"],eo],[["AM","PM"],eo,eo],[["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"]],eo,[["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"]],eo,[["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}",eo,"{1} 'at' {0}",eo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",oE],ju={};function qt(t){let e=sE(t),i=xm(e);if(i)return i;let n=e.split("-")[0];if(i=xm(n),i)return i;if(n==="en")return rE;throw new q(701,!1)}function xm(t){return t in ju||(ju[t]=io.ng&&io.ng.common&&io.ng.common.locales&&io.ng.common.locales[t]),ju[t]}var He=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(He||{});function sE(t){return t.toLowerCase().replace(/_/g,"-")}var rl="en-US";var aE=rl;function lE(t){typeof t=="string"&&(aE=t.toLowerCase().replace(/_/g,"-"))}var cE=(t,e,i)=>{};function b(t,e,i,n){let o=K(),r=ke(),s=lt();return a_(r,o,o[Re],s,t,e,n),b}function uE(t,e,i,n){let o=t.cleanup;if(o!=null)for(let r=0;r<o.length-1;r+=2){let s=o[r];if(s===i&&o[r+1]===n){let a=e[ja],l=o[r+2];return a.length>l?a[l]:null}typeof s=="string"&&(r+=2)}return null}function a_(t,e,i,n,o,r,s){let a=hl(n),d=t.firstCreatePass&&x0(t),p=e[ft],m=I0(e),_=!0;if(n.type&3||s){let x=zt(n,e),O=s?s(x):x,N=m.length,z=s?P=>s(Fn(P[n.index])):n.index,le=null;if(!s&&a&&(le=uE(t,e,o,n.index)),le!==null){let P=le.__ngLastListenerFn__||le;P.__ngNextListenerFn__=r,le.__ngLastListenerFn__=r,_=!1}else{r=Nm(n,e,p,r),cE(x,o,r);let P=i.listen(O,o,r);m.push(r,P),d&&d.push(o,z,N,N+1)}}else r=Nm(n,e,p,r);let g=n.outputs,D;if(_&&g!==null&&(D=g[o])){let x=D.length;if(x)for(let O=0;O<x;O+=2){let N=D[O],z=D[O+1],oe=e[N][z].subscribe(r),$=m.length;m.push(r,oe),d&&d.push(o,n.index,$,-($+1))}}}function Om(t,e,i,n){let o=ce(null);try{return Nn(6,e,i),i(n)!==!1}catch(r){return O0(t,r),!1}finally{Nn(7,e,i),ce(o)}}function Nm(t,e,i,n){return function o(r){if(r===Function)return n;let s=t.componentOffset>-1?wi(t.index,e):e;Of(s,5);let a=Om(e,i,n,r),l=o.__ngNextListenerFn__;for(;l;)a=Om(e,i,l,r)&&a,l=l.__ngNextListenerFn__;return a}}function y(t=1){return wb(t)}function dE(t,e){let i=null,n=N1(t);for(let o=0;o<e.length;o++){let r=e[o];if(r==="*"){i=o;continue}if(n===null?Qm(t,r,!0):k1(n,r))return o}return i}function Al(t){let e=K()[kt][Et];if(!e.projection){let i=t?t.length:1,n=e.projection=D1(i,null),o=n.slice(),r=e.child;for(;r!==null;){if(r.type!==128){let s=t?dE(r,t):0;s!==null&&(o[s]?o[s].projectionNext=r:n[s]=r,o[s]=r)}r=r.next}}}function cr(t,e=0,i,n,o,r){let s=K(),a=ke(),l=n?t+1:null;l!==null&&tl(s,a,l,n,o,r,null,i);let d=rr(a,et+t,16,null,i||null);d.projection===null&&(d.projection=e),lf();let m=!s[Yo]||bg();s[kt][Et].projection[d.projection]===null&&l!==null?fE(s,a,l):m&&(d.flags&32)!==32&&YC(a,s,d)}function fE(t,e,i){let n=et+i,o=e.data[n],r=t[n],s=Qo(r,o.tView.ssrId),a=us(t,o,void 0,{dehydratedView:s});ds(r,a,0,Zo(o,s))}function ni(t,e,i,n,o){let r=K(),s=Rf(r,e,i,n);if(s!==St){let a=ke(),l=as();Ml(a,l,r,t,s,r[Re],o,!1)}return ni}function yo(t,e,i,n){fw(t,e,i,n)}function ur(t,e,i){dw(t,e,i)}function Kt(t){let e=K(),i=ke(),n=wg();uf(n+1);let o=Nf(i,n);if(t.dirty&&rb(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let r=mw(e,n);t.reset(r,Jb),t.notifyOnChanges()}return!0}return!1}function Zt(){return uw(K(),wg())}function pE(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function dr(t){let e=mb();return rf(e,et+t)}function f(t,e=""){let i=K(),n=ke(),o=t+et,r=n.firstCreatePass?rr(n,o,1,e,null):n.data[o],s=hE(n,i,r,e,t);i[o]=s,_l()&&wl(n,i,s,r),go(r,!1)}var hE=(t,e,i,n,o)=>(vl(!0),RC(e[Re],n));function J(t){return B("",t,""),J}function B(t,e,i){let n=K(),o=Rf(n,t,e,i);return o!==St&&N0(n,Xn(),o),B}function Tt(t,e,i,n,o){let r=K(),s=Aw(r,t,e,i,n,o);return s!==St&&N0(r,Xn(),s),Tt}function R(t,e,i){Y0(e)&&(e=e());let n=K(),o=_o();if(Ft(n,o,e)){let r=ke(),s=as();Ml(r,s,n,t,e,n[Re],i,!1)}return R}function F(t,e){let i=Y0(t);return i&&t.set(e),i}function k(t,e){let i=K(),n=ke(),o=lt();return a_(n,i,i[Re],o,t,e),k}function mE(t,e,i){let n=ke();if(n.firstCreatePass){let o=bi(t);$d(i,n.data,n.blueprint,o,!0),$d(e,n.data,n.blueprint,o,!1)}}function $d(t,e,i,n,o){if(t=vt(t),Array.isArray(t))for(let r=0;r<t.length;r++)$d(t[r],e,i,n,o);else{let r=ke(),s=K(),a=lt(),l=Wo(t)?t:vt(t.provide),d=rg(t),p=a.providerIndexes&1048575,m=a.directiveStart,_=a.providerIndexes>>20;if(Wo(t)||!t.multi){let g=new fo(d,o,w),D=Hu(l,e,o?p:p+_,m);D===-1?(id(Wa(a,s),r,l),Uu(r,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),i.push(g),s.push(g)):(i[D]=g,s[D]=g)}else{let g=Hu(l,e,p+_,m),D=Hu(l,e,p,p+_),x=g>=0&&i[g],O=D>=0&&i[D];if(o&&!O||!o&&!x){id(Wa(a,s),r,l);let N=vE(o?_E:gE,i.length,o,n,d);!o&&O&&(i[D].providerFactory=N),Uu(r,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),i.push(N),s.push(N)}else{let N=l_(i[o?D:g],d,!o&&n);Uu(r,t,g>-1?g:D,N)}!o&&n&&O&&i[D].componentProviders++}}}function Uu(t,e,i,n){let o=Wo(e),r=W1(e);if(o||r){let l=(r?vt(e.useClass):e).prototype.ngOnDestroy;if(l){let d=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let p=d.indexOf(i);p===-1?d.push(i,[n,l]):d[p+1].push(n,l)}else d.push(i,l)}}}function l_(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Hu(t,e,i,n){for(let o=i;o<n;o++)if(e[o]===t)return o;return-1}function gE(t,e,i,n){return Gd(this.multi,[])}function _E(t,e,i,n){let o=this.multi,r;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=po(i,i[X],this.providerFactory.index,n);r=a.slice(0,s),Gd(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],Gd(o,r);return r}function Gd(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function vE(t,e,i,n,o){let r=new fo(t,i,w);return r.multi=[],r.index=e,r.componentProviders=0,l_(r,o,n&&!i),r}function nt(t,e=[]){return i=>{i.providersResolver=(n,o)=>mE(n,o?o(t):t,e)}}var yE=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=ng(!1,n.type),r=o.length>0?Ew([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,r)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=L({token:e,providedIn:"environment",factory:()=>new e(H(Rt))});let t=e;return t})();function j(t){jn("NgStandalone"),t.getStandaloneInjector=e=>e.get(yE).getOrCreateStandaloneInjector(t)}function fr(t,e,i){let n=ss()+t,o=K();return o[n]===St?Ol(o,n,i?e.call(i):e()):Sw(o,n)}function c_(t,e,i,n){return d_(K(),ss(),t,e,i,n)}function u_(t,e,i,n,o,r){return CE(K(),ss(),t,e,i,n,o,r)}function Pf(t,e){let i=t[e];return i===St?void 0:i}function d_(t,e,i,n,o,r){let s=e+i;return Ft(t,s,o)?Ol(t,s+1,r?n.call(r,o):n(o)):Pf(t,s+1)}function bE(t,e,i,n,o,r,s){let a=e+i;return Af(t,a,o,r)?Ol(t,a+2,s?n.call(s,o,r):n(o,r)):Pf(t,a+2)}function CE(t,e,i,n,o,r,s,a){let l=e+i;return Mw(t,l,o,r,s)?Ol(t,l+3,a?n.call(a,o,r,s):n(o,r,s)):Pf(t,l+3)}function Qt(t,e){let i=ke(),n,o=t+et;i.firstCreatePass?(n=DE(e,i.pipeRegistry),i.data[o]=n,n.onDestroy&&(i.destroyHooks??=[]).push(o,n.onDestroy)):n=i.data[o];let r=n.factory||(n.factory=ro(n.type,!0)),s,a=Dt(w);try{let l=Ga(!1),d=r();return Ga(l),pE(i,K(),o,d),d}finally{Dt(a)}}function DE(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Ti(t,e,i){let n=t+et,o=K(),r=rf(o,n);return f_(o,n)?d_(o,ss(),e,r.transform,i,r):r.transform(i)}function Rl(t,e,i,n){let o=t+et,r=K(),s=rf(r,o);return f_(r,o)?bE(r,ss(),e,s.transform,i,n,s):s.transform(i,n)}function f_(t,e){return t[X].data[e].pure}function p_(t,e){return Il(t,e)}var h_=new G("");function ps(t){return!!t&&typeof t.then=="function"}function m_(t){return!!t&&typeof t.subscribe=="function"}var wE=new G(""),g_=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=C(wE,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let r of this.appInits){let s=r();if(ps(s))n.push(s);else if(m_(s)){let a=new Promise((l,d)=>{s.subscribe({complete:l,error:d})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(r=>{this.reject(r)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),__=new G("");function EE(){hh(()=>{throw new q(600,!1)})}function SE(t){return t.isBoundToModule}var ME=10;function TE(t,e,i){try{let n=i();return ps(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var ii=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(Kb),this.afterRenderManager=C(K0),this.zonelessEnabled=C(xl),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new he,this.afterTick=new he,this.componentTypes=[],this.components=[],this.isStable=C(ir).hasPendingTasks.pipe(Me(n=>!n)),this._injector=C(Rt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(o=>{n=this.isStable.subscribe({next:r=>{r&&o()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,o){let r=n instanceof Qa;if(!this._injector.get(g_).done){let g=!r&&j1(n),D=!1;throw new q(405,D)}let a;r?a=n:a=this._injector.get(es).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=SE(a)?void 0:this._injector.get(er),d=o||a.selector,p=a.create(Ue.NULL,[],d,l),m=p.location.nativeElement,_=p.injector.get(h_,null);return _?.registerApplication(m),p.onDestroy(()=>{this.detachView(p.hostView),ka(this.components,p),_?.unregisterApplication(m)}),this._loadComponent(p),p}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new q(101,!1);let n=ce(null);try{this._runningTick=!0,this.synchronize()}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,ce(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Xo,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let o=0;for(;this.dirtyFlags!==0&&o++<ME;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let o=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(o);for(let{_lView:r,notifyErrorHandler:s}of this._views)IE(r,s,o,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>ml(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;ka(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(__,[]);[...this._bootstrapListeners,...o].forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ka(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new q(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ka(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function IE(t,e,i,n){if(!i&&!ml(t))return;P0(t,e,i&&!n?0:1)}var xE=(()=>{let e=class e{constructor(){this.zone=C(ge),this.changeDetectionScheduler=C(Jo),this.applicationRef=C(ii)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),OE=new G("",{factory:()=>!1});function v_({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:i}){return t??=()=>new ge(Se(Y({},b_()),{scheduleInRootZone:i})),[{provide:ge,useFactory:t},{provide:Kr,multi:!0,useFactory:()=>{let n=C(xE,{optional:!0});return()=>n.initialize()}},{provide:Kr,multi:!0,useFactory:()=>{let n=C(NE);return()=>{n.initialize()}}},e===!0?{provide:j0,useValue:!0}:[],{provide:U0,useValue:i??jg}]}function y_(t){let e=t?.ignoreChangesOutsideZone,i=t?.scheduleInRootZone,n=v_({ngZoneFactory:()=>{let o=b_(t);return o.scheduleInRootZone=i,o.shouldCoalesceEventChangeDetection&&jn("NgZone_CoalesceEvent"),new ge(o)},ignoreChangesOutsideZone:e,scheduleInRootZone:i});return rs([{provide:OE,useValue:!0},{provide:xl,useValue:!1},n])}function b_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var NE=(()=>{let e=class e{constructor(){this.subscription=new je,this.initialized=!1,this.zone=C(ge),this.pendingTasks=C(ir)}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(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var AE=(()=>{let e=class e{constructor(){this.appRef=C(ii),this.taskService=C(ir),this.ngZone=C(ge),this.zonelessEnabled=C(xl),this.disableScheduling=C(j0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new je,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(qa):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(U0,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 ld||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?cm:Ug;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(qa+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,cm(()=>{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)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RE(){return typeof $localize<"u"&&$localize.locale||rl}var hs=new G("",{providedIn:"root",factory:()=>C(hs,fe.Optional|fe.SkipSelf)||RE()});var Wd=new G("");function xa(t){return!t.moduleRef}function kE(t){let e=xa(t)?t.r3Injector:t.moduleRef.injector,i=e.get(ge);return i.run(()=>{xa(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(Kn,null),o;if(i.runOutsideAngular(()=>{o=i.onError.subscribe({next:r=>{n.handleError(r)}})}),xa(t)){let r=()=>e.destroy(),s=t.platformInjector.get(Wd);s.add(r),e.onDestroy(()=>{o.unsubscribe(),s.delete(r)})}else{let r=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Wd);s.add(r),t.moduleRef.onDestroy(()=>{ka(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(r)})}return TE(n,i,()=>{let r=e.get(g_);return r.runInitializers(),r.donePromise.then(()=>{let s=e.get(hs,rl);if(lE(s||rl),xa(t)){let a=e.get(ii);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return FE(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function FE(t,e){let i=t.injector.get(ii);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>i.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(i);else throw new q(-403,!1);e.push(t)}var Fa=null;function PE(t=[],e){return Ue.create({name:e,providers:[{provide:cl,useValue:"platform"},{provide:Wd,useValue:new Set([()=>Fa=null])},...t]})}function LE(t=[]){if(Fa)return Fa;let e=PE(t);return Fa=e,EE(),VE(e),e}function VE(t){t.get(_f,null)?.forEach(i=>i())}var Jt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BE;let t=e;return t})();function BE(t){return jE(lt(),K(),(t&16)===16)}function jE(t,e,i){if(pl(t)&&!i){let n=wi(t.index,e);return new ho(n,n)}else if(t.type&175){let n=e[kt];return new ho(n,e)}return null}var Yd=class{constructor(){}supports(e){return e instanceof Map||q0(e)}create(){return new qd}},qd=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let i;for(i=this._mapHead;i!==null;i=i._next)e(i)}forEachPreviousItem(e){let i;for(i=this._previousMapHead;i!==null;i=i._nextPrevious)e(i)}forEachChangedItem(e){let i;for(i=this._changesHead;i!==null;i=i._nextChanged)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||q0(e)))throw new q(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,o)=>{if(i&&i.key===o)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let r=this._getOrCreateRecordForKey(o,n);i=this._insertBeforeOrAppend(i,r)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){let n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,i);let r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}let n=new Kd(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}},Kd=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Am(){return new Lf([new Yd])}var Lf=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o){let r=o.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Am()),deps:[[e,new y1,new $m]]}}find(n){let o=this.factories.find(r=>r.supports(n));if(o)return o;throw new q(901,!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:Am});let t=e;return t})();function C_(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,o=LE(n),r=[v_({}),{provide:Jo,useExisting:AE},...i||[]],s=new el({providers:r,parent:o,debugName:"",runEnvironmentInitializers:!1});return kE({r3Injector:s.injector,platformInjector:o,rootComponent:e})}catch(e){return Promise.reject(e)}}function Vf(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function pr(t,e){jn("NgSignals");let i=dh(t);return e?.equal&&(i[Tn].equal=e.equal),i}function Un(t){let e=ce(null);try{return t()}finally{ce(e)}}function kl(t,e){let i=so(t),n=e.elementInjector||ul();return new ts(i).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}var M_=null;function mr(){return M_}function T_(t){M_??=t}var zl=class{};var Fe=new G("");var bt=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(bt||{}),Ee=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Ee||{}),Pt=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Pt||{}),Ii={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 HE(t){return qt(t)[He.LocaleId]}function zE(t,e,i){let n=qt(t),o=[n[He.DayPeriodsFormat],n[He.DayPeriodsStandalone]],r=Xt(o,e);return Xt(r,i)}function $E(t,e,i){let n=qt(t),o=[n[He.DaysFormat],n[He.DaysStandalone]],r=Xt(o,e);return Xt(r,i)}function GE(t,e,i){let n=qt(t),o=[n[He.MonthsFormat],n[He.MonthsStandalone]],r=Xt(o,e);return Xt(r,i)}function WE(t,e){let n=qt(t)[He.Eras];return Xt(n,e)}function Fl(t,e){let i=qt(t);return Xt(i[He.DateFormat],e)}function Pl(t,e){let i=qt(t);return Xt(i[He.TimeFormat],e)}function Ll(t,e){let n=qt(t)[He.DateTimeFormat];return Xt(n,e)}function Gl(t,e){let i=qt(t),n=i[He.NumberSymbols][e];if(typeof n>"u"){if(e===Ii.CurrencyDecimal)return i[He.NumberSymbols][Ii.Decimal];if(e===Ii.CurrencyGroup)return i[He.NumberSymbols][Ii.Group]}return n}function I_(t){if(!t[He.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[He.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function YE(t){let e=qt(t);return I_(e),(e[He.ExtraData][2]||[]).map(n=>typeof n=="string"?jf(n):[jf(n[0]),jf(n[1])])}function qE(t,e,i){let n=qt(t);I_(n);let o=[n[He.ExtraData][0],n[He.ExtraData][1]],r=Xt(o,e)||[];return Xt(r,i)||[]}function Xt(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function jf(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}var KE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Vl={},ZE=/((?:[^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]*)/,ri=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ri||{}),ve=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ve||{}),_e=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(_e||{});function x_(t,e,i,n){let o=rS(t);e=oi(i,e)||e;let s=[],a;for(;e;)if(a=ZE.exec(e),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;e=p}else{s.push(e);break}let l=o.getTimezoneOffset();n&&(l=N_(n,l),o=oS(o,n,!0));let d="";return s.forEach(p=>{let m=nS(p);d+=m?m(o,i,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function $l(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function oi(t,e){let i=HE(t);if(Vl[i]??={},Vl[i][e])return Vl[i][e];let n="";switch(e){case"shortDate":n=Fl(t,Pt.Short);break;case"mediumDate":n=Fl(t,Pt.Medium);break;case"longDate":n=Fl(t,Pt.Long);break;case"fullDate":n=Fl(t,Pt.Full);break;case"shortTime":n=Pl(t,Pt.Short);break;case"mediumTime":n=Pl(t,Pt.Medium);break;case"longTime":n=Pl(t,Pt.Long);break;case"fullTime":n=Pl(t,Pt.Full);break;case"short":let o=oi(t,"shortTime"),r=oi(t,"shortDate");n=Bl(Ll(t,Pt.Short),[o,r]);break;case"medium":let s=oi(t,"mediumTime"),a=oi(t,"mediumDate");n=Bl(Ll(t,Pt.Medium),[s,a]);break;case"long":let l=oi(t,"longTime"),d=oi(t,"longDate");n=Bl(Ll(t,Pt.Long),[l,d]);break;case"full":let p=oi(t,"fullTime"),m=oi(t,"fullDate");n=Bl(Ll(t,Pt.Full),[p,m]);break}return n&&(Vl[i][e]=n),n}function Bl(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function Cn(t,e,i="-",n,o){let r="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,r=i));let s=String(t);for(;s.length<e;)s="0"+s;return n&&(s=s.slice(s.length-e)),r+s}function QE(t,e){return Cn(t,3).substring(0,e)}function Ge(t,e,i=0,n=!1,o=!1){return function(r,s){let a=JE(t,r);if((i>0||a>-i)&&(a+=i),t===ve.Hours)a===0&&i===-12&&(a=12);else if(t===ve.FractionalSeconds)return QE(a,e);let l=Gl(s,Ii.MinusSign);return Cn(a,e,l,n,o)}}function JE(t,e){switch(t){case ve.FullYear:return e.getFullYear();case ve.Month:return e.getMonth();case ve.Date:return e.getDate();case ve.Hours:return e.getHours();case ve.Minutes:return e.getMinutes();case ve.Seconds:return e.getSeconds();case ve.FractionalSeconds:return e.getMilliseconds();case ve.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Te(t,e,i=bt.Format,n=!1){return function(o,r){return XE(o,r,t,e,i,n)}}function XE(t,e,i,n,o,r){switch(i){case _e.Months:return GE(e,o,n)[t.getMonth()];case _e.Days:return $E(e,o,n)[t.getDay()];case _e.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(r){let d=YE(e),p=qE(e,o,n),m=d.findIndex(_=>{if(Array.isArray(_)){let[g,D]=_,x=s>=g.hours&&a>=g.minutes,O=s<D.hours||s===D.hours&&a<D.minutes;if(g.hours<D.hours){if(x&&O)return!0}else if(x||O)return!0}else if(_.hours===s&&_.minutes===a)return!0;return!1});if(m!==-1)return p[m]}return zE(e,o,n)[s<12?0:1];case _e.Eras:return WE(e,n)[t.getFullYear()<=0?0:1];default:let l=i;throw new Error(`unexpected translation type ${l}`)}}function jl(t){return function(e,i,n){let o=-1*n,r=Gl(i,Ii.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case ri.Short:return(o>=0?"+":"")+Cn(s,2,r)+Cn(Math.abs(o%60),2,r);case ri.ShortGMT:return"GMT"+(o>=0?"+":"")+Cn(s,1,r);case ri.Long:return"GMT"+(o>=0?"+":"")+Cn(s,2,r)+":"+Cn(Math.abs(o%60),2,r);case ri.Extended:return n===0?"Z":(o>=0?"+":"")+Cn(s,2,r)+":"+Cn(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}var eS=0,Hl=4;function tS(t){let e=$l(t,eS,1).getDay();return $l(t,0,1+(e<=Hl?Hl:Hl+7)-e)}function O_(t){let e=t.getDay(),i=e===0?-3:Hl-e;return $l(t.getFullYear(),t.getMonth(),t.getDate()+i)}function Uf(t,e=!1){return function(i,n){let o;if(e){let r=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,s=i.getDate();o=1+Math.floor((s+r)/7)}else{let r=O_(i),s=tS(r.getFullYear()),a=r.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Cn(o,t,Gl(n,Ii.MinusSign))}}function Ul(t,e=!1){return function(i,n){let r=O_(i).getFullYear();return Cn(r,t,Gl(n,Ii.MinusSign),e)}}var Hf={};function nS(t){if(Hf[t])return Hf[t];let e;switch(t){case"G":case"GG":case"GGG":e=Te(_e.Eras,Ee.Abbreviated);break;case"GGGG":e=Te(_e.Eras,Ee.Wide);break;case"GGGGG":e=Te(_e.Eras,Ee.Narrow);break;case"y":e=Ge(ve.FullYear,1,0,!1,!0);break;case"yy":e=Ge(ve.FullYear,2,0,!0,!0);break;case"yyy":e=Ge(ve.FullYear,3,0,!1,!0);break;case"yyyy":e=Ge(ve.FullYear,4,0,!1,!0);break;case"Y":e=Ul(1);break;case"YY":e=Ul(2,!0);break;case"YYY":e=Ul(3);break;case"YYYY":e=Ul(4);break;case"M":case"L":e=Ge(ve.Month,1,1);break;case"MM":case"LL":e=Ge(ve.Month,2,1);break;case"MMM":e=Te(_e.Months,Ee.Abbreviated);break;case"MMMM":e=Te(_e.Months,Ee.Wide);break;case"MMMMM":e=Te(_e.Months,Ee.Narrow);break;case"LLL":e=Te(_e.Months,Ee.Abbreviated,bt.Standalone);break;case"LLLL":e=Te(_e.Months,Ee.Wide,bt.Standalone);break;case"LLLLL":e=Te(_e.Months,Ee.Narrow,bt.Standalone);break;case"w":e=Uf(1);break;case"ww":e=Uf(2);break;case"W":e=Uf(1,!0);break;case"d":e=Ge(ve.Date,1);break;case"dd":e=Ge(ve.Date,2);break;case"c":case"cc":e=Ge(ve.Day,1);break;case"ccc":e=Te(_e.Days,Ee.Abbreviated,bt.Standalone);break;case"cccc":e=Te(_e.Days,Ee.Wide,bt.Standalone);break;case"ccccc":e=Te(_e.Days,Ee.Narrow,bt.Standalone);break;case"cccccc":e=Te(_e.Days,Ee.Short,bt.Standalone);break;case"E":case"EE":case"EEE":e=Te(_e.Days,Ee.Abbreviated);break;case"EEEE":e=Te(_e.Days,Ee.Wide);break;case"EEEEE":e=Te(_e.Days,Ee.Narrow);break;case"EEEEEE":e=Te(_e.Days,Ee.Short);break;case"a":case"aa":case"aaa":e=Te(_e.DayPeriods,Ee.Abbreviated);break;case"aaaa":e=Te(_e.DayPeriods,Ee.Wide);break;case"aaaaa":e=Te(_e.DayPeriods,Ee.Narrow);break;case"b":case"bb":case"bbb":e=Te(_e.DayPeriods,Ee.Abbreviated,bt.Standalone,!0);break;case"bbbb":e=Te(_e.DayPeriods,Ee.Wide,bt.Standalone,!0);break;case"bbbbb":e=Te(_e.DayPeriods,Ee.Narrow,bt.Standalone,!0);break;case"B":case"BB":case"BBB":e=Te(_e.DayPeriods,Ee.Abbreviated,bt.Format,!0);break;case"BBBB":e=Te(_e.DayPeriods,Ee.Wide,bt.Format,!0);break;case"BBBBB":e=Te(_e.DayPeriods,Ee.Narrow,bt.Format,!0);break;case"h":e=Ge(ve.Hours,1,-12);break;case"hh":e=Ge(ve.Hours,2,-12);break;case"H":e=Ge(ve.Hours,1);break;case"HH":e=Ge(ve.Hours,2);break;case"m":e=Ge(ve.Minutes,1);break;case"mm":e=Ge(ve.Minutes,2);break;case"s":e=Ge(ve.Seconds,1);break;case"ss":e=Ge(ve.Seconds,2);break;case"S":e=Ge(ve.FractionalSeconds,1);break;case"SS":e=Ge(ve.FractionalSeconds,2);break;case"SSS":e=Ge(ve.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=jl(ri.Short);break;case"ZZZZZ":e=jl(ri.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=jl(ri.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=jl(ri.Long);break;default:return null}return Hf[t]=e,e}function N_(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function iS(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function oS(t,e,i){let n=i?-1:1,o=t.getTimezoneOffset(),r=N_(e,o);return iS(t,n*(r-o))}function rS(t){if(D_(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,r=1,s=1]=t.split("-").map(a=>+a);return $l(o,r-1,s)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(KE))return sS(n)}let e=new Date(t);if(!D_(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function sS(t){let e=new Date(0),i=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),d=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return r.call(e,s,a,l,d),e}function D_(t){return t instanceof Date&&!isNaN(t.valueOf())}function Wl(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[o,r]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(o.trim()===e)return decodeURIComponent(r)}return null}var zf=/\s+/,w_=[],Gf=(()=>{let e=class e{constructor(n,o){this._ngEl=n,this._renderer=o,this.initialClasses=w_,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(zf):w_}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(zf):n}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let o of n)this._updateState(o,!0);else if(n!=null)for(let o of Object.keys(n))this._updateState(o,!!n[o]);this._applyStateDiff()}_updateState(n,o){let r=this.stateMap.get(n);r!==void 0?(r.enabled!==o&&(r.changed=!0,r.enabled=o),r.touched=!0):this.stateMap.set(n,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let o=n[0],r=n[1];r.changed?(this._toggleClass(o,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),r.touched=!1}}_toggleClass(n,o){n=n.trim(),n.length>0&&n.split(zf).forEach(r=>{o?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt))},e.\u0275dir=ae({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var gr=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new $f,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){E_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){E_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(w(Ei),w(Ln))},e.\u0275dir=ae({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),$f=class{constructor(){this.$implicit=null,this.ngIf=null}};function E_(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${At(e)}'.`)}var A_=(()=>{let e=class e{constructor(n,o,r){this._ngEl=n,this._differs=o,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,o){let[r,s]=n.split("."),a=r.indexOf("-")===-1?void 0:Pn.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(n){n.forEachRemovedItem(o=>this._setStyle(o.key,null)),n.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),n.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Lf),w(Wt))},e.\u0275dir=ae({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),Wf=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,o,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,r):!1,get:(n,o,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,r)}})}};e.\u0275fac=function(o){return new(o||e)(w(Ei))},e.\u0275dir=ae({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[yt]});let t=e;return t})();function R_(t,e){return new q(2100,!1)}var aS=/(?:[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,_r=(()=>{let e=class e{transform(n){if(n==null)return null;if(typeof n!="string")throw R_(e,n);return n.replace(aS,o=>o[0].toUpperCase()+o.slice(1).toLowerCase())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275pipe=ef({name:"titlecase",type:e,pure:!0,standalone:!0});let t=e;return t})();var lS="mediumDate",cS=new G(""),uS=new G(""),Yl=(()=>{let e=class e{constructor(n,o,r){this.locale=n,this.defaultTimezone=o,this.defaultOptions=r}transform(n,o,r,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??lS,l=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return x_(n,a,s||this.locale,l)}catch(a){throw R_(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(w(hs,16),w(cS,24),w(uS,24))},e.\u0275pipe=ef({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var k_="browser",dS="server";function vr(t){return t===dS}var hr=class{};var gs=class{},Kl=class{},si=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`8 `).forEach(i=>{let n=i.indexOf(":");if(n>0){let o=i.slice(0,n),r=o.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let o=(e.op==="a"?this.headers.get(i):void 0)||[];o.push(...n),this.headers.set(i,o);break;case"d":let r=e.value;if(!r)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>r.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(r=>r.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var qf=class{encodeKey(e){return F_(e)}encodeValue(e){return F_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function pS(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[s,a]=r==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,r)),e.decodeValue(o.slice(r+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}var hS=/%(\d[a-f0-9])/gi,mS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function F_(t){return encodeURIComponent(t).replace(hS,(e,i)=>mS[i]??e)}function ql(t){return`${t}`}var Oi=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new qf,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=pS(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],o=Array.isArray(n)?n.map(ql):[ql(n)];this.map.set(i,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(r=>{i.push({param:n,value:r,op:"a"})}):i.push({param:n,value:o,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(ql(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(ql(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Kf=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function gS(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function P_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function L_(t){return typeof Blob<"u"&&t instanceof Blob}function V_(t){return typeof FormData<"u"&&t instanceof FormData}function _S(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ms=class t{constructor(e,i,n,o){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let r;if(gS(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new si,this.context??=new Kf,!this.params)this.params=new Oi,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||P_(this.body)||L_(this.body)||V_(this.body)||_S(this.body)?this.body:this.body instanceof Oi?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||V_(this.body)?null:L_(this.body)?this.body.type||null:P_(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Oi?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,o=e.responseType||this.responseType,r=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress,d=e.headers||this.headers,p=e.params||this.params,m=e.context??this.context;return e.setHeaders!==void 0&&(d=Object.keys(e.setHeaders).reduce((_,g)=>_.set(g,e.setHeaders[g]),d)),e.setParams&&(p=Object.keys(e.setParams).reduce((_,g)=>_.set(g,e.setParams[g]),p)),new t(i,n,s,{params:p,headers:d,context:m,reportProgress:l,responseType:o,withCredentials:a,transferCache:r})}},Ni=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ni||{}),_s=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new si,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Zl=class t extends _s{constructor(e={}){super(e),this.type=Ni.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},vs=class t extends _s{constructor(e={}){super(e),this.type=Ni.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},xi=class extends _s{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},H_=200,vS=204;function Yf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Ve=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,r={}){let s;if(n instanceof ms)s=n;else{let d;r.headers instanceof si?d=r.headers:d=new si(r.headers);let p;r.params&&(r.params instanceof Oi?p=r.params:p=new Oi({fromObject:r.params})),s=new ms(n,o,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:p,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let a=gn(s).pipe(yu(d=>this.handler.handle(d)));if(n instanceof ms||r.observe==="events")return a;let l=a.pipe(_t(d=>d instanceof vs));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Me(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return l.pipe(Me(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return l.pipe(Me(d=>{if(d.body!==null&&typeof d.body!="string")throw new Error("Response is not a string.");return d.body}));case"json":default:return l.pipe(Me(d=>d.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Oi().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,r={}){return this.request("PATCH",n,Yf(r,o))}post(n,o,r={}){return this.request("POST",n,Yf(r,o))}put(n,o,r={}){return this.request("PUT",n,Yf(r,o))}};e.\u0275fac=function(o){return new(o||e)(H(gs))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),yS=/^\)\]\}',?\n/,bS="X-Request-URL";function B_(t){if(t.url)return t.url;let e=bS.toLocaleLowerCase();return t.headers.get(e)}var CS=(()=>{let e=class e{constructor(){this.fetchImpl=C(Zf,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=C(ge)}handle(n){return new ee(o=>{let r=new AbortController;return this.doRequest(n,r.signal,o).then(Qf,s=>o.error(new xi({error:s}))),()=>r.abort()})}doRequest(n,o,r){return E(this,null,function*(){let s=this.createRequestInit(n),a;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Y({signal:o},s)));DS(D),r.next({type:Ni.Sent}),a=yield D}catch(D){r.error(new xi({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let l=new si(a.headers),d=a.statusText,p=B_(a)??n.urlWithParams,m=a.status,_=null;if(n.reportProgress&&r.next(new Zl({headers:l,status:m,statusText:d,url:p})),a.body){let D=a.headers.get("content-length"),x=[],O=a.body.getReader(),N=0,z,le,P=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>E(this,null,function*(){for(;;){let{done:$,value:pe}=yield O.read();if($)break;if(x.push(pe),N+=pe.length,n.reportProgress){le=n.responseType==="text"?(le??"")+(z??=new TextDecoder).decode(pe,{stream:!0}):void 0;let Ae=()=>r.next({type:Ni.DownloadProgress,total:D?+D:void 0,loaded:N,partialText:le});P?P.run(Ae):Ae()}}}));let oe=this.concatChunks(x,N);try{let $=a.headers.get("Content-Type")??"";_=this.parseBody(n,oe,$)}catch($){r.error(new xi({error:$,headers:new si(a.headers),status:a.status,statusText:a.statusText,url:B_(a)??n.urlWithParams}));return}}m===0&&(m=_?H_:0),m>=200&&m<300?(r.next(new vs({body:_,headers:l,status:m,statusText:d,url:p})),r.complete()):r.error(new xi({error:_,headers:l,status:m,statusText:d,url:p}))})}parseBody(n,o,r){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(yS,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:r});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},r=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>o[s]=a.join(",")),n.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:r}}concatChunks(n,o){let r=new Uint8Array(o),s=0;for(let a of n)r.set(a,s),s+=a.length;return r}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Zf=class{};function Qf(){}function DS(t){t.then(Qf,Qf)}function wS(t,e){return e(t)}function ES(t,e,i){return(n,o)=>sg(i,()=>e(n,r=>t(r,o)))}var Jf=new G(""),SS=new G(""),MS=new G("",{providedIn:"root",factory:()=>!0});var j_=(()=>{let e=class e extends gs{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=C(ir),this.contributeToStability=C(MS)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Jf),...this.injector.get(SS,[])]));this.chain=o.reduceRight((r,s)=>ES(r,s,this.injector),wS)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,r=>this.backend.handle(r)).pipe(wa(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(H(Kl),H(Rt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();var TS=/^\)\]\}',?\n/;function IS(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var U_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new q(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?mn(o.\u0275loadImpl()):gn(null)).pipe(mi(()=>new ee(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((O,N)=>a.setRequestHeader(O,N.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let O=n.detectContentTypeHeader();O!==null&&a.setRequestHeader("Content-Type",O)}if(n.responseType){let O=n.responseType.toLowerCase();a.responseType=O!=="json"?O:"text"}let l=n.serializeBody(),d=null,p=()=>{if(d!==null)return d;let O=a.statusText||"OK",N=new si(a.getAllResponseHeaders()),z=IS(a)||n.url;return d=new Zl({headers:N,status:a.status,statusText:O,url:z}),d},m=()=>{let{headers:O,status:N,statusText:z,url:le}=p(),P=null;N!==vS&&(P=typeof a.response>"u"?a.responseText:a.response),N===0&&(N=P?H_:0);let oe=N>=200&&N<300;if(n.responseType==="json"&&typeof P=="string"){let $=P;P=P.replace(TS,"");try{P=P!==""?JSON.parse(P):null}catch(pe){P=$,oe&&(oe=!1,P={error:pe,text:P})}}oe?(s.next(new vs({body:P,headers:O,status:N,statusText:z,url:le||void 0})),s.complete()):s.error(new xi({error:P,headers:O,status:N,statusText:z,url:le||void 0}))},_=O=>{let{url:N}=p(),z=new xi({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:N||void 0});s.error(z)},g=!1,D=O=>{g||(s.next(p()),g=!0);let N={type:Ni.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(N.total=O.total),n.responseType==="text"&&a.responseText&&(N.partialText=a.responseText),s.next(N)},x=O=>{let N={type:Ni.UploadProgress,loaded:O.loaded};O.lengthComputable&&(N.total=O.total),s.next(N)};return a.addEventListener("load",m),a.addEventListener("error",_),a.addEventListener("timeout",_),a.addEventListener("abort",_),n.reportProgress&&(a.addEventListener("progress",D),l!==null&&a.upload&&a.upload.addEventListener("progress",x)),a.send(l),s.next({type:Ni.Sent}),()=>{a.removeEventListener("error",_),a.removeEventListener("abort",_),a.removeEventListener("load",m),a.removeEventListener("timeout",_),n.reportProgress&&(a.removeEventListener("progress",D),l!==null&&a.upload&&a.upload.removeEventListener("progress",x)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(H(hr))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),z_=new G(""),xS="XSRF-TOKEN",OS=new G("",{providedIn:"root",factory:()=>xS}),NS="X-XSRF-TOKEN",AS=new G("",{providedIn:"root",factory:()=>NS}),Ql=class{},RS=(()=>{let e=class e{constructor(n,o,r){this.doc=n,this.platform=o,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wl(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(H(Fe),H(Gt),H(OS))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function kS(t,e){let i=t.url.toLowerCase();if(!C(z_)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=C(Ql).getToken(),o=C(AS);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var $_=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}($_||{});function FS(t,e){return{\u0275kind:t,\u0275providers:e}}function G_(...t){let e=[Ve,U_,j_,{provide:gs,useExisting:j_},{provide:Kl,useFactory:()=>C(CS,{optional:!0})??C(U_)},{provide:Jf,useValue:kS,multi:!0},{provide:z_,useValue:!0},{provide:Ql,useClass:RS}];for(let i of t)e.push(...i.\u0275providers);return rs(e)}function W_(t){return FS($_.Interceptors,t.map(e=>({provide:Jf,useValue:e,multi:!0})))}var tp=class extends zl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},np=class t extends tp{static makeCurrent(){T_(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.remove()}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=LS();return i==null?null:VS(i)}resetBaseElement(){ys=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wl(document.cookie,e)}},ys=null;function LS(){return ys=ys||document.querySelector("base"),ys?ys.getAttribute("href"):null}function VS(t){return new URL(t,document.baseURI).pathname}var BS=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),ip=new G(""),Z_=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(r=>{r.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,r){return this._findPluginFor(o).addEventListener(n,o,r)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new q(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(H(ip),H(ge))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Jl=class{constructor(e){this._doc=e}},Xf="ng-app-id",Q_=(()=>{let e=class e{constructor(n,o,r,s={}){this.doc=n,this.appId=o,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=vr(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(r=>r.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Xf}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(r=>{r.textContent!=null&&o.set(r.textContent,r)}),o}return null}changeUsageCount(n,o){let r=this.styleRef;if(r.has(n)){let s=r.get(n);return s.usage+=o,s.usage}return r.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let r=this.styleNodesInDOM,s=r?.get(o);if(s?.parentNode===n)return r.delete(o),s.removeAttribute(Xf),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Xf,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let r=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(r):s.set(o,{elements:[r],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(H(Fe),H(gf),H(vf,8),H(Gt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),ep={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},rp=/%COMP%/g,J_="%COMP%",jS=`_nghost-${J_}`,US=`_ngcontent-${J_}`,HS=!0,zS=new G("",{providedIn:"root",factory:()=>HS});function $S(t){return US.replace(rp,t)}function GS(t){return jS.replace(rp,t)}function X_(t,e){return e.map(i=>i.replace(rp,t))}var Y_=(()=>{let e=class e{constructor(n,o,r,s,a,l,d,p=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=d,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=vr(l),this.defaultRenderer=new bs(n,a,d,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Rn.ShadowDom&&(o=Se(Y({},o),{encapsulation:Rn.Emulated}));let r=this.getOrCreateRenderer(n,o);return r instanceof Xl?r.applyToHost(n):r instanceof Cs&&r.applyStyles(),r}getOrCreateRenderer(n,o){let r=this.rendererByCompId,s=r.get(o.id);if(!s){let a=this.doc,l=this.ngZone,d=this.eventManager,p=this.sharedStylesHost,m=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(o.encapsulation){case Rn.Emulated:s=new Xl(d,p,o,this.appId,m,a,l,_);break;case Rn.ShadowDom:return new op(d,p,n,o,a,l,this.nonce,_);default:s=new Cs(d,p,o,m,a,l,_);break}r.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(H(Z_),H(Q_),H(gf),H(zS),H(Fe),H(Gt),H(ge),H(vf))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),bs=class{constructor(e,i,n,o){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(ep[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(q_(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(q_(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){i.remove()}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new q(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,o){if(o){i=o+":"+i;let r=ep[o];r?e.setAttributeNS(r,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let o=ep[n];o?e.removeAttributeNS(o,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,o){o&(Pn.DashCase|Pn.Important)?e.style.setProperty(i,n,o&Pn.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Pn.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=mr().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function q_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var op=class extends bs{constructor(e,i,n,o,r,s,a,l){super(e,r,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=X_(o.id,o.styles);for(let p of d){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=p,this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(null,i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Cs=class extends bs{constructor(e,i,n,o,r,s,a,l){super(e,r,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=o,this.styles=l?X_(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Xl=class extends Cs{constructor(e,i,n,o,r,s,a,l){let d=o+"-"+n.id;super(e,i,n,r,s,a,l,d),this.contentAttr=$S(d),this.hostAttr=GS(d)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},WS=(()=>{let e=class e extends Jl{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,r){return n.addEventListener(o,r,!1),()=>this.removeEventListener(n,o,r)}removeEventListener(n,o,r){return n.removeEventListener(o,r)}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),K_=["alt","control","meta","shift"],YS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qS={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KS=(()=>{let e=class e extends Jl{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,r){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mr().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),r=o.shift();if(o.length===0||!(r==="keydown"||r==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),K_.forEach(p=>{let m=o.indexOf(p);m>-1&&(o.splice(m,1),a+=p+".")}),a+=s,o.length!=0||s.length===0)return null;let d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(n,o){let r=YS[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(r=n.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),K_.forEach(a=>{if(a!==r){let l=qS[a];l(n)&&(s+=a+".")}}),s+=r,s===o)}static eventCallback(n,o,r){return s=>{e.matchEventFullKeyCode(s,n)&&r.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function ev(t,e){return C_(Y({rootComponent:t},ZS(e)))}function ZS(t){return{appProviders:[...tM,...t?.providers??[]],platformProviders:eM}}function QS(){np.makeCurrent()}function JS(){return new Kn}function XS(){return qg(document),document}var eM=[{provide:Gt,useValue:k_},{provide:_f,useValue:QS,multi:!0},{provide:Fe,useFactory:XS,deps:[]}];var tM=[{provide:cl,useValue:"root"},{provide:Kn,useFactory:JS,deps:[]},{provide:ip,useClass:WS,multi:!0,deps:[Fe,ge,Gt]},{provide:ip,useClass:KS,multi:!0,deps:[Fe]},Y_,Q_,Z_,{provide:Xo,useExisting:Y_},{provide:hr,useClass:BS,deps:[]},[]];var sp=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:function(o){let r=null;return o?r=new(o||e):r=H(nM),r},providedIn:"root"});let t=e;return t})(),nM=(()=>{let e=class e extends sp{constructor(n){super(),this._doc=n}sanitize(n,o){if(o==null)return null;switch(n){case bn.NONE:return o;case bn.HTML:return vo(o,"HTML")?Vn(o):s0(this._doc,String(o)).toString();case bn.STYLE:return vo(o,"Style")?Vn(o):o;case bn.SCRIPT:if(vo(o,"Script"))return Vn(o);throw new q(5200,!1);case bn.URL:return vo(o,"URL")?Vn(o):Cl(String(o));case bn.RESOURCE_URL:if(vo(o,"ResourceURL"))return Vn(o);throw new q(5201,!1);default:throw new q(5202,!1)}}bypassSecurityTrustHtml(n){return Zg(n)}bypassSecurityTrustStyle(n){return Qg(n)}bypassSecurityTrustScript(n){return Jg(n)}bypassSecurityTrustUrl(n){return Xg(n)}bypassSecurityTrustResourceUrl(n){return e0(n)}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ap={},iM=location.href.split("?")[1].split("&");for(let t of iM){let[e,i]=t.split("=");ap[e]=i}var ec="https://api.luckynode.com",ze=`/wp-json/${ap.slug}/v1`,tv=ap.nonce;function nv(t,e){if(t.url.startsWith("/")){let i=t.clone({headers:t.headers.set("X-WP-Nonce",tv||"invalidnonceonpurpose")});return e(i)}return e(t)}var iv={providers:[y_({eventCoalescing:!0}),G_(W_([nv]))]};function ai(t){t||(dl(ai),t=C(ei));let e=new ee(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(Ze(e))}var hv=(()=>{let e=class e{constructor(n,o){this._renderer=n,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(n,o){this._renderer.setProperty(this._elementRef.nativeElement,n,o)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(o){return new(o||e)(w(Wt),w(ye))},e.\u0275dir=ae({type:e});let t=e;return t})(),Is=(()=>{let e=class e extends hv{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,features:[tt]});let t=e;return t})(),Hn=new G(""),oM={provide:Hn,useExisting:at(()=>wn),multi:!0},wn=(()=>{let e=class e extends Is{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,r){o&1&&b("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[nt([oM]),tt]});let t=e;return t})(),rM={provide:Hn,useExisting:at(()=>it),multi:!0};function sM(){let t=mr()?mr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var aM=new G(""),it=(()=>{let e=class e extends hv{constructor(n,o,r){super(n,o),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!sM())}writeValue(n){let o=n??"";this.setProperty("value",o)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(o){return new(o||e)(w(Wt),w(ye),w(aM,8))},e.\u0275dir=ae({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(o,r){o&1&&b("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[nt([rM]),tt]});let t=e;return t})();function ov(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var wr=new G(""),mv=new G("");function lM(t){return e=>{if(ov(e.value)||ov(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function rv(t){return null}function gv(t){return t!=null}function _v(t){return ps(t)?mn(t):t}function vv(t){let e={};return t.forEach(i=>{e=i!=null?Y(Y({},e),i):e}),Object.keys(e).length===0?null:e}function yv(t,e){return e.map(i=>i(t))}function cM(t){return!t.validate}function bv(t){return t.map(e=>cM(e)?e:i=>e.validate(i))}function uM(t){if(!t)return null;let e=t.filter(gv);return e.length==0?null:function(i){return vv(yv(i,e))}}function cp(t){return t!=null?uM(bv(t)):null}function dM(t){if(!t)return null;let e=t.filter(gv);return e.length==0?null:function(i){let n=yv(i,e).map(_v);return vu(n).pipe(Me(vv))}}function up(t){return t!=null?dM(bv(t)):null}function sv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function fM(t){return t._rawValidators}function pM(t){return t._rawAsyncValidators}function lp(t){return t?Array.isArray(t)?t:[t]:[]}function nc(t,e){return Array.isArray(t)?t.includes(e):t===e}function av(t,e){let i=lp(e);return lp(t).forEach(o=>{nc(i,o)||i.push(o)}),i}function lv(t,e){return lp(e).filter(i=>!nc(t,i))}var ic=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=cp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=up(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Cr=class extends ic{get formDirective(){return null}get path(){return null}},Ts=class extends ic{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},oc=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},hM={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},eB=Se(Y({},hM),{"[class.ng-submitted]":"isSubmitted"}),Pe=(()=>{let e=class e extends oc{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Ts,2))},e.\u0275dir=ae({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,r){o&2&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[tt]});let t=e;return t})(),en=(()=>{let e=class e extends oc{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Cr,10))},e.\u0275dir=ae({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,r){o&2&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[tt]});let t=e;return t})();var Ds="VALID",tc="INVALID",yr="PENDING",ws="DISABLED",Dr=class{},rc=class extends Dr{constructor(e,i){super(),this.value=e,this.source=i}},Ss=class extends Dr{constructor(e,i){super(),this.pristine=e,this.source=i}},Ms=class extends Dr{constructor(e,i){super(),this.touched=e,this.source=i}},br=class extends Dr{constructor(e,i){super(),this.status=e,this.source=i}};function Cv(t){return(lc(t)?t.validators:t)||null}function mM(t){return Array.isArray(t)?cp(t):t||null}function Dv(t,e){return(lc(e)?e.asyncValidators:t)||null}function gM(t){return Array.isArray(t)?up(t):t||null}function lc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function _M(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new q(1e3,"");if(!n[i])throw new q(1001,"")}function vM(t,e,i){t._forEachChild((n,o)=>{if(i[o]===void 0)throw new q(1002,"")})}var sc=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=pr(()=>this.statusReactive()),this.statusReactive=Si(void 0),this._pristine=pr(()=>this.pristineReactive()),this.pristineReactive=Si(!0),this._touched=pr(()=>this.touchedReactive()),this.touchedReactive=Si(!1),this._events=new he,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Un(this.statusReactive)}set status(e){Un(()=>this.statusReactive.set(e))}get valid(){return this.status===Ds}get invalid(){return this.status===tc}get pending(){return this.status==yr}get disabled(){return this.status===ws}get enabled(){return this.status!==ws}get pristine(){return Un(this.pristineReactive)}set pristine(e){Un(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Un(this.touchedReactive)}set touched(e){Un(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(av(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(av(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(lv(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(lv(e,this._rawAsyncValidators))}hasValidator(e){return nc(this._rawValidators,e)}hasAsyncValidator(e){return nc(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Se(Y({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Ms(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new Ms(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Se(Y({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Ss(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new Ss(!0,n))}markAsPending(e={}){this.status=yr;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new br(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Se(Y({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=ws,this.errors=null,this._forEachChild(o=>{o.disable(Se(Y({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rc(this.value,n)),this._events.next(new br(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Se(Y({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Ds,this._forEachChild(n=>{n.enable(Se(Y({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Se(Y({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ds||this.status===yr)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rc(this.value,i)),this._events.next(new br(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Se(Y({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ws:Ds}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=yr,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=_v(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,o)=>n&&n._find(o),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new br(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new re,this.statusChanges=new re}_calculateStatus(){return this._allControlsDisabled()?ws:this.errors?tc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yr)?yr:this._anyControlsHaveStatus(tc)?tc:Ds}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),o&&this._events.next(new Ss(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new Ms(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){lc(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=mM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=gM(this._rawAsyncValidators)}},ac=class extends sc{constructor(e,i,n){super(Cv(i),Dv(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){vM(this,!0,e),Object.keys(e).forEach(n=>{_M(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,o)=>((n.enabled||this.disabled)&&(i[o]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((o,r)=>{n=i(n,o,r)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var dp=new G("CallSetDisabledState",{providedIn:"root",factory:()=>fp}),fp="always";function yM(t,e){return[...e.path,t]}function wv(t,e,i=fp){Ev(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),CM(t,e),wM(t,e),DM(t,e),bM(t,e)}function cv(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function bM(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Ev(t,e){let i=fM(t);e.validator!==null?t.setValidators(sv(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=pM(t);e.asyncValidator!==null?t.setAsyncValidators(sv(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();cv(e._rawValidators,o),cv(e._rawAsyncValidators,o)}function CM(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Sv(t,e)})}function DM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Sv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Sv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wM(t,e){let i=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function EM(t,e){t==null,Ev(t,e)}function SM(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function MM(t){return Object.getPrototypeOf(t.constructor)===Is}function TM(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function IM(t,e){if(!e)return null;Array.isArray(e);let i,n,o;return e.forEach(r=>{r.constructor===it?i=r:MM(r)?n=r:o=r}),o||n||i||null}var xM={provide:Cr,useExisting:at(()=>Lt)},Es=Promise.resolve(),Lt=(()=>{let e=class e extends Cr{get submitted(){return Un(this.submittedReactive)}constructor(n,o,r){super(),this.callSetDisabledState=r,this._submitted=pr(()=>this.submittedReactive()),this.submittedReactive=Si(!1),this._directives=new Set,this.ngSubmit=new re,this.form=new ac({},cp(n),up(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Es.then(()=>{let o=this._findContainer(n.path);n.control=o.registerControl(n.name,n.control),wv(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Es.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Es.then(()=>{let o=this._findContainer(n.path),r=new ac({});EM(r,n),o.registerControl(n.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Es.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,o){Es.then(()=>{this.form.get(n.path).setValue(o)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),TM(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(o){return new(o||e)(w(wr,10),w(mv,10),w(dp,8))},e.\u0275dir=ae({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,r){o&1&&b("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([xM]),tt]});let t=e;return t})();function uv(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function dv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var OM=class extends sc{constructor(e=null,i,n){super(Cv(i),Dv(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lc(i)&&(i.nonNullable||i.initialValueIsDefault)&&(dv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){uv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){uv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){dv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var NM={provide:Ts,useExisting:at(()=>Ne)},fv=Promise.resolve(),Ne=(()=>{let e=class e extends Ts{constructor(n,o,r,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new OM,this._registered=!1,this.name="",this.update=new re,this._parent=n,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=IM(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let o=n.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),SM(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){wv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){fv.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let o=n.isDisabled.currentValue,r=o!==0&&Vf(o);fv.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?yM(n,this._parent):[n]}};e.\u0275fac=function(o){return new(o||e)(w(Cr,9),w(wr,10),w(mv,10),w(Hn,10),w(Jt,8),w(dp,8))},e.\u0275dir=ae({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[nt([NM]),tt,yt]});let t=e;return t})(),tn=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),AM={provide:Hn,useExisting:at(()=>bo),multi:!0},bo=(()=>{let e=class e extends Is{writeValue(n){let o=n??"";this.setProperty("value",o)}registerOnChange(n){this.onChange=o=>{n(o==""?null:parseFloat(o))}}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(o,r){o&1&&b("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[nt([AM]),tt]});let t=e;return t})();var RM={provide:Hn,useExisting:at(()=>It),multi:!0};function Mv(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function kM(t){return t.split(":")[0]}var It=(()=>{let e=class e extends Is{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let o=this._getOptionId(n),r=Mv(o,n);this.setProperty("value",r)}registerOnChange(n){this.onChange=o=>{this.value=this._getOptionValue(o),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o),n))return o;return null}_getOptionValue(n){let o=kM(n);return this._optionMap.has(o)?this._optionMap.get(o):n}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(o,r){o&1&&b("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[nt([RM]),tt]});let t=e;return t})(),nn=(()=>{let e=class e{constructor(n,o,r){this._element=n,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Mv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt),w(It,9))},e.\u0275dir=ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),FM={provide:Hn,useExisting:at(()=>Tv),multi:!0};function pv(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function PM(t){return t.split(":")[0]}var Tv=(()=>{let e=class e extends Is{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let o;if(Array.isArray(n)){let r=n.map(s=>this._getOptionId(s));o=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else o=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(n){this.onChange=o=>{let r=[],s=o.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l<a.length;l++){let d=a[l],p=this._getOptionValue(d.value);r.push(p)}}else{let a=o.options;for(let l=0;l<a.length;l++){let d=a[l];if(d.selected){let p=this._getOptionValue(d.value);r.push(p)}}}this.value=r,n(r)}}_registerOption(n){let o=(this._idCounter++).toString();return this._optionMap.set(o,n),o}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o)._value,n))return o;return null}_getOptionValue(n){let o=PM(n);return this._optionMap.has(o)?this._optionMap.get(o)._value:n}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(o,r){o&1&&b("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[nt([FM]),tt]});let t=e;return t})(),on=(()=>{let e=class e{constructor(n,o,r){this._element=n,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(pv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(pv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt),w(Tv,9))},e.\u0275dir=ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function LM(t){return typeof t=="number"?t:parseFloat(t)}var VM=(()=>{let e=class e{constructor(){this._validator=rv}ngOnChanges(n){if(this.inputName in n){let o=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):rv,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,features:[yt]});let t=e;return t})();var BM={provide:wr,useExisting:at(()=>pp),multi:!0},pp=(()=>{let e=class e extends VM{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>LM(n),this.createValidator=n=>lM(n)}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(o,r){o&2&&Mt("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[nt([BM]),tt]});let t=e;return t})();var jM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();var Ce=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:dp,useValue:n.callSetDisabledState??fp}]}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({imports:[jM]});let t=e;return t})();var We="top",ct="bottom",ot="right",Je="left",cc="auto",Ai=[We,ct,ot,Je],li="start",Co="end",Iv="clippingParents",uc="viewport",Er="popper",xv="reference",hp=Ai.reduce(function(t,e){return t.concat([e+"-"+li,e+"-"+Co])},[]),dc=[].concat(Ai,[cc]).reduce(function(t,e){return t.concat([e,e+"-"+li,e+"-"+Co])},[]),UM="beforeRead",HM="read",zM="afterRead",$M="beforeMain",GM="main",WM="afterMain",YM="beforeWrite",qM="write",KM="afterWrite",Ov=[UM,HM,zM,$M,GM,WM,YM,qM,KM];function rt(t){return t?(t.nodeName||"").toLowerCase():null}function Le(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function sn(t){var e=Le(t).Element;return t instanceof e||t instanceof Element}function Xe(t){var e=Le(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Sr(t){if(typeof ShadowRoot>"u")return!1;var e=Le(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZM(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var n=e.styles[i]||{},o=e.attributes[i]||{},r=e.elements[i];!Xe(r)||!rt(r)||(Object.assign(r.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?r.removeAttribute(s):r.setAttribute(s,a===!0?"":a)}))})}function QM(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],r=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:i[n]),a=s.reduce(function(l,d){return l[d]="",l},{});!Xe(o)||!rt(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}}var Nv={name:"applyStyles",enabled:!0,phase:"write",fn:ZM,effect:QM,requires:["computeStyles"]};function st(t){return t.split("-")[0]}var En=Math.max,Do=Math.min,ci=Math.round;function Mr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xs(){return!/^((?!chrome|android).)*safari/i.test(Mr())}function an(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=t.getBoundingClientRect(),o=1,r=1;e&&Xe(t)&&(o=t.offsetWidth>0&&ci(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&ci(n.height)/t.offsetHeight||1);var s=sn(t)?Le(t):window,a=s.visualViewport,l=!xs()&&i,d=(n.left+(l&&a?a.offsetLeft:0))/o,p=(n.top+(l&&a?a.offsetTop:0))/r,m=n.width/o,_=n.height/r;return{width:m,height:_,top:p,right:d+m,bottom:p+_,left:d,x:d,y:p}}function wo(t){var e=an(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Os(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Sr(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ct(t){return Le(t).getComputedStyle(t)}function mp(t){return["table","td","th"].indexOf(rt(t))>=0}function ut(t){return((sn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ui(t){return rt(t)==="html"?t:t.assignedSlot||t.parentNode||(Sr(t)?t.host:null)||ut(t)}function Av(t){return!Xe(t)||Ct(t).position==="fixed"?null:t.offsetParent}function JM(t){var e=/firefox/i.test(Mr()),i=/Trident/i.test(Mr());if(i&&Xe(t)){var n=Ct(t);if(n.position==="fixed")return null}var o=ui(t);for(Sr(o)&&(o=o.host);Xe(o)&&["html","body"].indexOf(rt(o))<0;){var r=Ct(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Sn(t){for(var e=Le(t),i=Av(t);i&&mp(i)&&Ct(i).position==="static";)i=Av(i);return i&&(rt(i)==="html"||rt(i)==="body"&&Ct(i).position==="static")?e:i||JM(t)||e}function Eo(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function So(t,e,i){return En(t,Do(e,i))}function Rv(t,e,i){var n=So(t,e,i);return n>i?i:n}function Ns(){return{top:0,right:0,bottom:0,left:0}}function As(t){return Object.assign({},Ns(),t)}function Rs(t,e){return e.reduce(function(i,n){return i[n]=t,i},{})}var XM=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,As(typeof e!="number"?e:Rs(e,Ai))};function eT(t){var e,i=t.state,n=t.name,o=t.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=st(i.placement),l=Eo(a),d=[Je,ot].indexOf(a)>=0,p=d?"height":"width";if(!(!r||!s)){var m=XM(o.padding,i),_=wo(r),g=l==="y"?We:Je,D=l==="y"?ct:ot,x=i.rects.reference[p]+i.rects.reference[l]-s[l]-i.rects.popper[p],O=s[l]-i.rects.reference[l],N=Sn(r),z=N?l==="y"?N.clientHeight||0:N.clientWidth||0:0,le=x/2-O/2,P=m[g],oe=z-_[p]-m[D],$=z/2-_[p]/2+le,pe=So(P,$,oe),Ae=l;i.modifiersData[n]=(e={},e[Ae]=pe,e.centerOffset=pe-$,e)}}function tT(t){var e=t.state,i=t.options,n=i.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Os(e.elements.popper,o)&&(e.elements.arrow=o))}var gp={name:"arrow",enabled:!0,phase:"main",fn:eT,effect:tT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ln(t){return t.split("-")[1]}var nT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iT(t,e){var i=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:ci(i*o)/o||0,y:ci(n*o)/o||0}}function kv(t){var e,i=t.popper,n=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,d=t.adaptive,p=t.roundOffsets,m=t.isFixed,_=s.x,g=_===void 0?0:_,D=s.y,x=D===void 0?0:D,O=typeof p=="function"?p({x:g,y:x}):{x:g,y:x};g=O.x,x=O.y;var N=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),le=Je,P=We,oe=window;if(d){var $=Sn(i),pe="clientHeight",Ae="clientWidth";if($===Le(i)&&($=ut(i),Ct($).position!=="static"&&a==="absolute"&&(pe="scrollHeight",Ae="scrollWidth")),$=$,o===We||(o===Je||o===ot)&&r===Co){P=ct;var $e=m&&$===oe&&oe.visualViewport?oe.visualViewport.height:$[pe];x-=$e-n.height,x*=l?1:-1}if(o===Je||(o===We||o===ct)&&r===Co){le=ot;var qe=m&&$===oe&&oe.visualViewport?oe.visualViewport.width:$[Ae];g-=qe-n.width,g*=l?1:-1}}var dt=Object.assign({position:a},d&&nT),dn=p===!0?iT({x:g,y:x},Le(i)):{x:g,y:x};if(g=dn.x,x=dn.y,l){var mt;return Object.assign({},dt,(mt={},mt[P]=z?"0":"",mt[le]=N?"0":"",mt.transform=(oe.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",mt))}return Object.assign({},dt,(e={},e[P]=z?x+"px":"",e[le]=N?g+"px":"",e.transform="",e))}function oT(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=n===void 0?!0:n,r=i.adaptive,s=r===void 0?!0:r,a=i.roundOffsets,l=a===void 0?!0:a,d={placement:st(e.placement),variation:ln(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kv(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kv(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Fv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oT,data:{}};var fc={passive:!0};function rT(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,r=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=Le(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(p){p.addEventListener("scroll",i.update,fc)}),a&&l.addEventListener("resize",i.update,fc),function(){r&&d.forEach(function(p){p.removeEventListener("scroll",i.update,fc)}),a&&l.removeEventListener("resize",i.update,fc)}}var Pv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rT,data:{}};var sT={left:"right",right:"left",bottom:"top",top:"bottom"};function Tr(t){return t.replace(/left|right|bottom|top/g,function(e){return sT[e]})}var aT={start:"end",end:"start"};function pc(t){return t.replace(/start|end/g,function(e){return aT[e]})}function Mo(t){var e=Le(t),i=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function To(t){return an(ut(t)).left+Mo(t).scrollLeft}function _p(t,e){var i=Le(t),n=ut(t),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var d=xs();(d||!d&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+To(t),y:l}}function vp(t){var e,i=ut(t),n=Mo(t),o=(e=t.ownerDocument)==null?void 0:e.body,r=En(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=En(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+To(t),l=-n.scrollTop;return Ct(o||i).direction==="rtl"&&(a+=En(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}function Io(t){var e=Ct(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function hc(t){return["html","body","#document"].indexOf(rt(t))>=0?t.ownerDocument.body:Xe(t)&&Io(t)?t:hc(ui(t))}function Ri(t,e){var i;e===void 0&&(e=[]);var n=hc(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),r=Le(n),s=o?[r].concat(r.visualViewport||[],Io(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Ri(ui(s)))}function Ir(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lT(t,e){var i=an(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Lv(t,e,i){return e===uc?Ir(_p(t,i)):sn(e)?lT(e,i):Ir(vp(ut(t)))}function cT(t){var e=Ri(ui(t)),i=["absolute","fixed"].indexOf(Ct(t).position)>=0,n=i&&Xe(t)?Sn(t):t;return sn(n)?e.filter(function(o){return sn(o)&&Os(o,n)&&rt(o)!=="body"}):[]}function yp(t,e,i,n){var o=e==="clippingParents"?cT(t):[].concat(e),r=[].concat(o,[i]),s=r[0],a=r.reduce(function(l,d){var p=Lv(t,d,n);return l.top=En(p.top,l.top),l.right=Do(p.right,l.right),l.bottom=Do(p.bottom,l.bottom),l.left=En(p.left,l.left),l},Lv(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ks(t){var e=t.reference,i=t.element,n=t.placement,o=n?st(n):null,r=n?ln(n):null,s=e.x+e.width/2-i.width/2,a=e.y+e.height/2-i.height/2,l;switch(o){case We:l={x:s,y:e.y-i.height};break;case ct:l={x:s,y:e.y+e.height};break;case ot:l={x:e.x+e.width,y:a};break;case Je:l={x:e.x-i.width,y:a};break;default:l={x:e.x,y:e.y}}var d=o?Eo(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(r){case li:l[d]=l[d]-(e[p]/2-i[p]/2);break;case Co:l[d]=l[d]+(e[p]/2-i[p]/2);break;default:}}return l}function ki(t,e){e===void 0&&(e={});var i=e,n=i.placement,o=n===void 0?t.placement:n,r=i.strategy,s=r===void 0?t.strategy:r,a=i.boundary,l=a===void 0?Iv:a,d=i.rootBoundary,p=d===void 0?uc:d,m=i.elementContext,_=m===void 0?Er:m,g=i.altBoundary,D=g===void 0?!1:g,x=i.padding,O=x===void 0?0:x,N=As(typeof O!="number"?O:Rs(O,Ai)),z=_===Er?xv:Er,le=t.rects.popper,P=t.elements[D?z:_],oe=yp(sn(P)?P:P.contextElement||ut(t.elements.popper),l,p,s),$=an(t.elements.reference),pe=ks({reference:$,element:le,strategy:"absolute",placement:o}),Ae=Ir(Object.assign({},le,pe)),$e=_===Er?Ae:$,qe={top:oe.top-$e.top+N.top,bottom:$e.bottom-oe.bottom+N.bottom,left:oe.left-$e.left+N.left,right:$e.right-oe.right+N.right},dt=t.modifiersData.offset;if(_===Er&&dt){var dn=dt[o];Object.keys(qe).forEach(function(mt){var ji=[ot,ct].indexOf(mt)>=0?1:-1,Ui=[We,ct].indexOf(mt)>=0?"y":"x";qe[mt]+=dn[Ui]*ji})}return qe}function bp(t,e){e===void 0&&(e={});var i=e,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,d=l===void 0?dc:l,p=ln(n),m=p?a?hp:hp.filter(function(D){return ln(D)===p}):Ai,_=m.filter(function(D){return d.indexOf(D)>=0});_.length===0&&(_=m);var g=_.reduce(function(D,x){return D[x]=ki(t,{placement:x,boundary:o,rootBoundary:r,padding:s})[st(x)],D},{});return Object.keys(g).sort(function(D,x){return g[D]-g[x]})}function uT(t){if(st(t)===cc)return[];var e=Tr(t);return[pc(t),e,pc(e)]}function dT(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=i.mainAxis,r=o===void 0?!0:o,s=i.altAxis,a=s===void 0?!0:s,l=i.fallbackPlacements,d=i.padding,p=i.boundary,m=i.rootBoundary,_=i.altBoundary,g=i.flipVariations,D=g===void 0?!0:g,x=i.allowedAutoPlacements,O=e.options.placement,N=st(O),z=N===O,le=l||(z||!D?[Tr(O)]:uT(O)),P=[O].concat(le).reduce(function(Oo,pi){return Oo.concat(st(pi)===cc?bp(e,{placement:pi,boundary:p,rootBoundary:m,padding:d,flipVariations:D,allowedAutoPlacements:x}):pi)},[]),oe=e.rects.reference,$=e.rects.popper,pe=new Map,Ae=!0,$e=P[0],qe=0;qe<P.length;qe++){var dt=P[qe],dn=st(dt),mt=ln(dt)===li,ji=[We,ct].indexOf(dn)>=0,Ui=ji?"width":"height",Ot=ki(e,{placement:dt,boundary:p,rootBoundary:m,altBoundary:_,padding:d}),fn=ji?mt?ot:Je:mt?ct:We;oe[Ui]>$[Ui]&&(fn=Tr(fn));var Bs=Tr(fn),Hi=[];if(r&&Hi.push(Ot[dn]<=0),a&&Hi.push(Ot[fn]<=0,Ot[Bs]<=0),Hi.every(function(Oo){return Oo})){$e=dt,Ae=!1;break}pe.set(dt,Hi)}if(Ae)for(var js=D?3:1,Jc=function(pi){var Vr=P.find(function(Hs){var zi=pe.get(Hs);if(zi)return zi.slice(0,pi).every(function(Xc){return Xc})});if(Vr)return $e=Vr,"break"},Lr=js;Lr>0;Lr--){var Us=Jc(Lr);if(Us==="break")break}e.placement!==$e&&(e.modifiersData[n]._skip=!0,e.placement=$e,e.reset=!0)}}var Cp={name:"flip",enabled:!0,phase:"main",fn:dT,requiresIfExists:["offset"],data:{_skip:!1}};function fT(t,e,i){var n=st(t),o=[Je,We].indexOf(n)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Je,ot].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function pT(t){var e=t.state,i=t.options,n=t.name,o=i.offset,r=o===void 0?[0,0]:o,s=dc.reduce(function(p,m){return p[m]=fT(m,e.rects,r),p},{}),a=s[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=s}var Dp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pT};function hT(t){var e=t.state,i=t.name;e.modifiersData[i]=ks({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Vv={name:"popperOffsets",enabled:!0,phase:"read",fn:hT,data:{}};function wp(t){return t==="x"?"y":"x"}function mT(t){var e=t.state,i=t.options,n=t.name,o=i.mainAxis,r=o===void 0?!0:o,s=i.altAxis,a=s===void 0?!1:s,l=i.boundary,d=i.rootBoundary,p=i.altBoundary,m=i.padding,_=i.tether,g=_===void 0?!0:_,D=i.tetherOffset,x=D===void 0?0:D,O=ki(e,{boundary:l,rootBoundary:d,padding:m,altBoundary:p}),N=st(e.placement),z=ln(e.placement),le=!z,P=Eo(N),oe=wp(P),$=e.modifiersData.popperOffsets,pe=e.rects.reference,Ae=e.rects.popper,$e=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,qe=typeof $e=="number"?{mainAxis:$e,altAxis:$e}:Object.assign({mainAxis:0,altAxis:0},$e),dt=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,dn={x:0,y:0};if($){if(r){var mt,ji=P==="y"?We:Je,Ui=P==="y"?ct:ot,Ot=P==="y"?"height":"width",fn=$[P],Bs=fn+O[ji],Hi=fn-O[Ui],js=g?-Ae[Ot]/2:0,Jc=z===li?pe[Ot]:Ae[Ot],Lr=z===li?-Ae[Ot]:-pe[Ot],Us=e.elements.arrow,Oo=g&&Us?wo(Us):{width:0,height:0},pi=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ns(),Vr=pi[ji],Hs=pi[Ui],zi=So(0,pe[Ot],Oo[Ot]),Xc=le?pe[Ot]/2-js-zi-Vr-qe.mainAxis:Jc-zi-Vr-qe.mainAxis,fy=le?-pe[Ot]/2+js+zi+Hs+qe.mainAxis:Lr+zi+Hs+qe.mainAxis,eu=e.elements.arrow&&Sn(e.elements.arrow),py=eu?P==="y"?eu.clientTop||0:eu.clientLeft||0:0,qp=(mt=dt?.[P])!=null?mt:0,hy=fn+Xc-qp-py,my=fn+fy-qp,Kp=So(g?Do(Bs,hy):Bs,fn,g?En(Hi,my):Hi);$[P]=Kp,dn[P]=Kp-fn}if(a){var Zp,gy=P==="x"?We:Je,_y=P==="x"?ct:ot,$i=$[oe],zs=oe==="y"?"height":"width",Qp=$i+O[gy],Jp=$i-O[_y],tu=[We,Je].indexOf(N)!==-1,Xp=(Zp=dt?.[oe])!=null?Zp:0,eh=tu?Qp:$i-pe[zs]-Ae[zs]-Xp+qe.altAxis,th=tu?$i+pe[zs]+Ae[zs]-Xp-qe.altAxis:Jp,nh=g&&tu?Rv(eh,$i,th):So(g?eh:Qp,$i,g?th:Jp);$[oe]=nh,dn[oe]=nh-$i}e.modifiersData[n]=dn}}var Ep={name:"preventOverflow",enabled:!0,phase:"main",fn:mT,requiresIfExists:["offset"]};function Sp(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Mp(t){return t===Le(t)||!Xe(t)?Mo(t):Sp(t)}function gT(t){var e=t.getBoundingClientRect(),i=ci(e.width)/t.offsetWidth||1,n=ci(e.height)/t.offsetHeight||1;return i!==1||n!==1}function Tp(t,e,i){i===void 0&&(i=!1);var n=Xe(e),o=Xe(e)&&gT(e),r=ut(e),s=an(t,o,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&((rt(e)!=="body"||Io(r))&&(a=Mp(e)),Xe(e)?(l=an(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=To(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function _T(t){var e=new Map,i=new Set,n=[];t.forEach(function(r){e.set(r.name,r)});function o(r){i.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!i.has(a)){var l=e.get(a);l&&o(l)}}),n.push(r)}return t.forEach(function(r){i.has(r.name)||o(r)}),n}function Ip(t){var e=_T(t);return Ov.reduce(function(i,n){return i.concat(e.filter(function(o){return o.phase===n}))},[])}function xp(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Op(t){var e=t.reduce(function(i,n){var o=i[n.name];return i[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,i},{});return Object.keys(e).map(function(i){return e[i]})}var Bv={placement:"bottom",modifiers:[],strategy:"absolute"};function jv(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Uv(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,o=e.defaultOptions,r=o===void 0?Bv:o;return function(a,l,d){d===void 0&&(d=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bv,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},m=[],_=!1,g={state:p,setOptions:function(N){var z=typeof N=="function"?N(p.options):N;x(),p.options=Object.assign({},r,p.options,z),p.scrollParents={reference:sn(a)?Ri(a):a.contextElement?Ri(a.contextElement):[],popper:Ri(l)};var le=Ip(Op([].concat(n,p.options.modifiers)));return p.orderedModifiers=le.filter(function(P){return P.enabled}),D(),g.update()},forceUpdate:function(){if(!_){var N=p.elements,z=N.reference,le=N.popper;if(jv(z,le)){p.rects={reference:Tp(z,Sn(le),p.options.strategy==="fixed"),popper:wo(le)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(qe){return p.modifiersData[qe.name]=Object.assign({},qe.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var oe=p.orderedModifiers[P],$=oe.fn,pe=oe.options,Ae=pe===void 0?{}:pe,$e=oe.name;typeof $=="function"&&(p=$({state:p,options:Ae,name:$e,instance:g})||p)}}}},update:xp(function(){return new Promise(function(O){g.forceUpdate(),O(p)})}),destroy:function(){x(),_=!0}};if(!jv(a,l))return g;g.setOptions(d).then(function(O){!_&&d.onFirstUpdate&&d.onFirstUpdate(O)});function D(){p.orderedModifiers.forEach(function(O){var N=O.name,z=O.options,le=z===void 0?{}:z,P=O.effect;if(typeof P=="function"){var oe=P({state:p,name:N,instance:g,options:le}),$=function(){};m.push(oe||$)}})}function x(){m.forEach(function(O){return O()}),m=[]}return g}}var vT=[Pv,Vv,Fv,Nv],Np=Uv({defaultModifiers:vT});var yT=["*"];var bT=t=>({$implicit:t});var CT=["dialog"],DT=["ngbNavOutlet",""];function wT(t,e){}function ET(t,e){if(t&1&&(c(0,"div",0),T(1,wT,0,0,"ng-template",1),u()),t&2){let i=y().$implicit,n=y();A("item",i)("nav",n.nav)("role",n.paneRole),h(),A("ngTemplateOutlet",(i.contentTpl==null?null:i.contentTpl.templateRef)||null)("ngTemplateOutletContext",c_(5,bT,i.active||n.isPanelTransitioning(i)))}}function ST(t,e){if(t&1&&T(0,ET,2,7,"div",0),t&2){let i=e.$implicit,n=y();I(i.isPanelInDom()||n.isPanelTransitioning(i)?0:-1)}}function MT(t,e){if(t&1&&(c(0,"span"),f(1),u()),t&2){let i=y().$implicit,n=y();ar(n.highlightClass),h(),J(i)}}function TT(t,e){if(t&1&&(kf(0),f(1),Ff()),t&2){let i=y().$implicit;h(),J(i)}}function IT(t,e){if(t&1&&T(0,MT,2,4,"span",0)(1,TT,2,1,"ng-container"),t&2){let i=e.$index;I(i%2!==0?0:1)}}var xT=(t,e,i)=>({result:t,term:e,formatter:i});function OT(t,e){if(t&1&&v(0,"ngb-highlight",2),t&2){let i=e.result,n=e.term,o=e.formatter;A("result",o(i))("term",n)}}function NT(t,e){}function AT(t,e){if(t&1){let i=U();c(0,"button",3),b("mouseenter",function(){let o=S(i).$index,r=y();return M(r.markActive(o))})("click",function(){let o=S(i).$implicit,r=y();return M(r.select(o))}),T(1,NT,0,0,"ng-template",4),u()}if(t&2){let i=e.$implicit,n=e.$index,o=y(),r=dr(1);Qe("active",n===o.activeIdx),A("id",o.id+"-"+n),h(),A("ngTemplateOutlet",o.resultTemplate||r)("ngTemplateOutletContext",u_(5,xT,i,o.term,o.formatter))}}var qv={animation:!0,transitionTimerDelayMs:5},Kv=(()=>{let e=class e{constructor(){this.animation=qv.animation}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RT(t){let{transitionDelay:e,transitionDuration:i}=window.getComputedStyle(t),n=parseFloat(e),o=parseFloat(i);return(n+o)*1e3}function Fs(t){return t!=null?`${t}`:""}function Zv(t){return typeof t=="string"}function Fi(t){return t!=null}function kT(t){return t&&t.then}function FT(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function PT(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function Pp(t){return(t||document.body).getBoundingClientRect()}function LT(t){return e=>new ee(i=>{let n=s=>t.run(()=>i.next(s)),o=s=>t.run(()=>i.error(s)),r=()=>t.run(()=>i.complete());return e.subscribe({next:n,error:o,complete:r})})}function Hv(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Qv(t=document){let e=t?.activeElement;return e?e.shadowRoot?Qv(e.shadowRoot):e:null}var VT=()=>{},{transitionTimerDelayMs:BT}=qv,mc=new Map,Mn=(t,e,i,n)=>{let o=n.context||{},r=mc.get(e);if(r)switch(n.runningTransition){case"continue":return Wn;case"stop":t.run(()=>r.transition$.complete()),o=Object.assign(r.context,o),mc.delete(e)}let s=i(e,n.animation,o)||VT;if(!n.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>s()),gn(void 0).pipe(LT(t));let a=new he,l=new he,d=a.pipe(Du(!0));mc.set(e,{transition$:a,complete:()=>{l.next(),l.complete()},context:o});let p=RT(e);return t.runOutsideAngular(()=>{let m=xe(e,"transitionend").pipe(Ze(d),_t(({target:g})=>g===e)),_=Qi(p+BT).pipe(Ze(d));Da(_,m,l).pipe(Ze(d)).subscribe(()=>{mc.delete(e),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};var gc=(t,e)=>e?e.some(i=>i.contains(t)):!1,zv=(t,e)=>!e||PT(t,e)!=null,jT=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),UT=t=>jT?()=>setTimeout(()=>t(),100):t;function Jv(t,e,i,n,o,r,s,a){i&&t.runOutsideAngular(UT(()=>{let l=_=>{let g=_.target;return _.button===2||gc(g,s)?!1:i==="inside"?gc(g,r)&&zv(g,a):i==="outside"?!gc(g,r):zv(g,a)||!gc(g,r)},d=xe(e,"keydown").pipe(Ze(o),_t(_=>_.key==="Escape"),Xi(_=>_.preventDefault())),p=xe(e,"mousedown").pipe(Me(l),Ze(o)),m=xe(e,"mouseup").pipe(Gr(p),_t(([_,g])=>g),Cu(0),Ze(o));Da([d.pipe(Me(_=>0)),m.pipe(Me(_=>1))]).subscribe(_=>t.run(()=>n(_)))}))}var Xv=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function ey(t){let e=Array.from(t.querySelectorAll(Xv)).filter(i=>i.tabIndex!==-1);return[e[0],e[e.length-1]]}var HT=(t,e,i,n=!1)=>{t.runOutsideAngular(()=>{let o=xe(e,"focusin").pipe(Ze(i),Me(r=>r.target));xe(e,"keydown").pipe(Ze(i),_t(r=>r.key==="Tab"),Gr(o)).subscribe(([r,s])=>{let[a,l]=ey(e);(s===a||s===e)&&r.shiftKey&&(l.focus(),r.preventDefault()),s===l&&!r.shiftKey&&(a.focus(),r.preventDefault())}),n&&xe(e,"click").pipe(Ze(i),Gr(o),Me(r=>r[1])).subscribe(r=>r.focus())})},zT=(()=>{let e=class e{constructor(){this._element=C(Fe).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$T=/\s+/,GT=/ +/gi,WT={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function YT(t,e){let[i,n]=WT[t];return e&&n||i}var qT=/^left/,KT=/^right/,ZT=/^start/,QT=/^end/;function JT(t,e){let[i,n]=e.split("-"),o=i.replace(qT,"start").replace(KT,"end"),r=[o];if(n){let s=n;(i==="left"||i==="right")&&(s=s.replace(ZT,"top").replace(QT,"bottom")),r.push(`${o}-${s}`)}return t&&(r=r.map(s=>`${t}-${s}`)),r.join(" ")}function $v({placement:t,baseClass:e},i){let n=Array.isArray(t)?t:t.split($T),o=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],r=n.findIndex(d=>d==="auto");r>=0&&o.forEach(function(d){n.find(p=>p.search("^"+d)!==-1)==null&&n.splice(r++,1,d)});let s=n.map(d=>YT(d,i.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:d}){let p=new RegExp(e+"(-[a-z]+)*","gi"),m=d.elements.popper,_=d.placement,g=m.className;g=g.replace(p,""),g+=` ${JT(e,_)}`,g=g.trim().replace(GT," "),m.className=g}},Cp,Ep,gp,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Gv(t){return t}function ty(){let t=C(zT),e=null;return{createPopper(i){if(!e){let o=(i.updatePopperOptions||Gv)($v(i,t));e=Np(i.hostElement,i.targetElement,o)}},update(){e&&e.update()},setOptions(i){if(e){let o=(i.updatePopperOptions||Gv)($v(i,t));e.setOptions(o)}},destroy(){e&&(e.destroy(),e=null)}}}function ny(t){return e=>(e.modifiers.push(Dp,{name:"offset",options:{offset:()=>t}}),e)}var DH=new Date(1882,10,12),wH=new Date(2174,10,25);var EH=1e3*60*60*24;var Lp=1080,XT=24*Lp,eI=12*Lp+793,SH=29*XT+eI,MH=11*Lp+204;var tI=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n,this.container=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Vp=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=C(ye).nativeElement,this.tabindex=0}set disabled(n){this._disabled=n===""||n===!0}get disabled(){return this._disabled}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(o,r){o&2&&(Mi("tabIndex",r.disabled?-1:r.tabindex),Qe("disabled",r.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let t=e;return t})();var Bp=(()=>{let e=class e{constructor(){this.dropdown=C(_c),this.nativeElement=C(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(o,r,s){if(o&1&&yo(s,Vp,4),o&2){let a;Kt(a=Zt())&&(r.menuItems=a)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(o,r){o&1&&b("keydown.ArrowUp",function(a){return r.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return r.dropdown.onKeyDown(a)})("keydown.Home",function(a){return r.dropdown.onKeyDown(a)})("keydown.End",function(a){return r.dropdown.onKeyDown(a)})("keydown.Enter",function(a){return r.dropdown.onKeyDown(a)})("keydown.Space",function(a){return r.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return r.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return r.dropdown.onKeyDown(a)}),o&2&&Qe("show",r.dropdown.isOpen())},standalone:!0});let t=e;return t})(),Ap=(()=>{let e=class e{constructor(){this.dropdown=C(_c),this.nativeElement=C(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(o,r){o&2&&(Mt("aria-expanded",r.dropdown.isOpen()),Qe("show",r.dropdown.isOpen()))},standalone:!0});let t=e;return t})(),iy=(()=>{let e=class e extends Ap{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(o,r){o&1&&b("click",function(){return r.dropdown.toggle()})("keydown.ArrowUp",function(a){return r.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return r.dropdown.onKeyDown(a)})("keydown.Home",function(a){return r.dropdown.onKeyDown(a)})("keydown.End",function(a){return r.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return r.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return r.dropdown.onKeyDown(a)}),o&2&&(Mt("aria-expanded",r.dropdown.isOpen()),Qe("show",r.dropdown.isOpen()))},standalone:!0,features:[nt([{provide:Ap,useExisting:at(()=>e)}]),tt]});let t=e;return t})(),_c=(()=>{let e=class e{constructor(){this._changeDetector=C(Jt),this._config=C(tI),this._document=C(Fe),this._injector=C(Ue),this._ngZone=C(ge),this._nativeElement=C(ye).nativeElement,this._destroyCloseHandlers$=new he,this._bodyContainer=null,this._positioning=ty(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new re}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){sr(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},{phase:Nt.Write,injector:this._injector})}ngOnChanges(n){if(n.container&&this._open&&this._applyContainer(this.container),n.placement&&!n.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),n.dropdownClass){let{currentValue:o,previousValue:r}=n.dropdownClass;this._applyCustomDropdownClass(o,r)}n.autoClose&&this._open&&(this.autoClose=n.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(ny([0,2])(n))}),this._applyPlacementClasses(),this._afterRenderRef=Nl(()=>{this._positionMenu()},{phase:Nt.Write,injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Jv(this._ngZone,this._document,this.autoClose,n=>{this.close(),n===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(n){let{key:o}=n,r=this._getMenuElements(),s=-1,a=null,l=this._isEventFromToggle(n);if(!l&&r.length&&r.forEach((d,p)=>{d.contains(n.target)&&(a=d),d===Qv(this._document)&&(s=p)}),o===" "||o==="Enter"){a&&(this.autoClose===!0||this.autoClose==="inside")&&xe(a,"click").pipe(Yn(1)).subscribe(()=>this.close());return}if(o==="Tab"){if(n.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===n.target){this.container==="body"&&!n.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):n.shiftKey&&this.close();return}else if(this.container==="body"){let d=this._menu.nativeElement.querySelectorAll(Xv);n.shiftKey&&n.target===d[0]?(this._anchor.nativeElement.focus(),n.preventDefault()):!n.shiftKey&&n.target===d[d.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else xe(n.target,"focusout").pipe(Yn(1)).subscribe(({relatedTarget:d})=>{this._nativeElement.contains(d)||this.close()});return}if(l||a){if(this.open(),r.length){switch(o){case"ArrowDown":s=Math.min(s+1,r.length-1);break;case"ArrowUp":if(this._isDropup()&&s===-1){s=r.length-1;break}s=Math.max(s-1,0);break;case"Home":s=0;break;case"End":s=r.length-1;break}r[s].focus()}n.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(n){return this._anchor.nativeElement.contains(n.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:n})=>!n).map(({nativeElement:n})=>n):[]}_positionMenu(){let n=this._menu;this.isOpen()&&n&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(n){return Array.isArray(n)?n[0]:n.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(n=null){if(this._resetContainer(),n==="body"){let o=this._menu.nativeElement,r=this._bodyContainer=this._bodyContainer||this._document.createElement("div");r.style.position="absolute",o.style.position="static",r.style.zIndex="1055",r.appendChild(o),this._document.body.appendChild(r)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(n,o){let r=this.container==="body"?this._bodyContainer:this._nativeElement;r&&(o&&r.classList.remove(o),n&&r.classList.add(n))}_applyPlacementClasses(n){if(this._menu){n||(n=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let o=n.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(o),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(o))}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(o,r,s){if(o&1&&(yo(s,Bp,5),yo(s,Ap,5)),o&2){let a;Kt(a=Zt())&&(r._menu=a.first),Kt(a=Zt())&&(r._anchor=a.first)}},hostVars:2,hostBindings:function(o,r){o&2&&Qe("show",r.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[yt]});let t=e;return t})();var oy=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})(),nI=(()=>{let e=class e{constructor(){this._ngbConfig=C(Kv),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),di=class{constructor(e,i,n){this.nodes=e,this.viewRef=i,this.componentRef=n}},Rp=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=C(Fe),this._applicationRef=C(ii),this._injector=C(Ue),this._viewContainerRef=C(Ei),this._ngZone=C(ge)}open(e,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:o}=this._windowRef.location,r=new he;sr(()=>{r.next(),r.complete()},{injector:this._injector,phase:Nt.MixedReadWrite});let s=r.pipe(gt(()=>Mn(this._ngZone,o,({classList:a})=>a.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(e=!1){return this._windowRef?Mn(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:e,runningTransition:"stop"}).pipe(Xi(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):gn(void 0)}_getContentRef(e,i){if(e)if(e instanceof Ln){let n=e.createEmbeddedView(i);return this._applicationRef.attachView(n),new di([n.rootNodes],n)}else return new di([[this._document.createTextNode(`${e}`)]]);else return new di([])}},iI=(()=>{let e=class e{constructor(){this._document=C(Fe)}hide(){let n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),o=this._document.body,r=o.style,{overflow:s,paddingRight:a}=r;if(n>0){let l=parseFloat(window.getComputedStyle(o).paddingRight);r.paddingRight=`${l+n}px`}return r.overflow="hidden",()=>{n>0&&(r.paddingRight=a),r.overflow=s}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oI=(()=>{let e=class e{constructor(){this._nativeElement=C(ye).nativeElement,this._zone=C(ge),this._injector=C(Ue)}ngOnInit(){sr(()=>Mn(this._zone,this._nativeElement,(n,o)=>{o&&Pp(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Nt.MixedReadWrite})}hide(){return Mn(this._zone,this._nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(o,r){o&2&&(ar("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),Qe("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[j],decls:0,vars:0,template:function(o,r){},encapsulation:2});let t=e;return t})(),cn=class{update(e){}close(e){}dismiss(e){}},rI=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],sI=["animation","backdropClass"],kp=class{_applyWindowOptions(e,i){rI.forEach(n=>{Fi(i[n])&&(e[n]=i[n])})}_applyBackdropOptions(e,i){sI.forEach(n=>{Fi(i[n])&&(e[n]=i[n])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Ze(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Ze(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,i,n,o){this._windowCmptRef=e,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=o,this._closed=new he,this._dismissed=new he,this._hidden=new he,e.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,s)=>{this._resolve=r,this._reject=s}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let i=this._beforeDismiss();kT(i)?i.then(n=>{n!==!1&&this._dismiss(e)},()=>{}):i!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():gn(void 0);e.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),$r(e,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Fp=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(Fp||{}),aI=(()=>{let e=class e{constructor(){this._document=C(Fe),this._elRef=C(ye),this._zone=C(ge),this._injector=C(Ue),this._closed$=new he,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new re,this.shown=new he,this.hidden=new he}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Zv(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,sr(()=>this._show(),{injector:this._injector,phase:Nt.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:n}=this._elRef,o={animation:this.animation,runningTransition:"stop"},r=Mn(this._zone,n,()=>n.classList.remove("show"),o),s=Mn(this._zone,this._dialogEl.nativeElement,()=>{},o),a=$r(r,s);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let n={animation:this.animation,runningTransition:"continue"},o=Mn(this._zone,this._elRef.nativeElement,(s,a)=>{a&&Pp(s),s.classList.add("show")},n),r=Mn(this._zone,this._dialogEl.nativeElement,()=>{},n);$r(o,r).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{xe(n,"keydown").pipe(Ze(this._closed$),_t(r=>r.key==="Escape")).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Fp.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let o=!1;xe(this._dialogEl.nativeElement,"mousedown").pipe(Ze(this._closed$),Xi(()=>o=!1),mi(()=>xe(n,"mouseup").pipe(Ze(this._closed$),Yn(1))),_t(({target:r})=>n===r)).subscribe(()=>{o=!0}),xe(n,"click").pipe(Ze(this._closed$)).subscribe(({target:r})=>{n===r&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!o&&this._zone.run(()=>this.dismiss(Fp.BACKDROP_CLICK))),o=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){let o=n.querySelector("[ngbAutofocus]"),r=ey(n)[0];(o||r||n).focus()}}_restoreFocus(){let n=this._document.body,o=this._elWithFocus,r;o&&o.focus&&n.contains(o)?r=o:r=n,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Mn(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(o,r){if(o&1&&ur(CT,7),o&2){let s;Kt(s=Zt())&&(r._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(o,r){o&2&&(Mt("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),ar("modal d-block"+(r.windowClass?" "+r.windowClass:"")),Qe("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[j],ngContentSelectors:yT,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(o,r){o&1&&(Al(),c(0,"div",1,0)(2,"div",2),cr(3),u()()),o&2&&ar("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}9 `],encapsulation:2});let t=e;return t})(),lI=(()=>{let e=class e{constructor(){this._applicationRef= C(ii),this._injector=C(Ue),this._environmentInjector=C(Rt),this._document=C(Fe),this._scrollBar=C(iI),this._activeWindowCmptHasChanged=new he,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new re;let n=C(ge);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let o=this._windowCmpts[this._windowCmpts.length-1];HT(n,o.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(o.location.nativeElement)}})}_restoreScrollBar(){let n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,o,r){let s=r.container instanceof HTMLElement?r.container:Fi(r.container)?this._document.querySelector(r.container):this._document.body;if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new cn;n=r.injector||n;let l=n.get(Rt,null)||this._environmentInjector,d=this._getContentRef(n,l,o,a,r),p=r.backdrop!==!1?this._attachBackdrop(s):void 0,m=this._attachWindowComponent(s,d.nodes),_=new kp(m,d,p,r.beforeDismiss);return this._registerModalRef(_),this._registerWindowCmpt(m),_.hidden.pipe(Yn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=g=>{_.close(g)},a.dismiss=g=>{_.dismiss(g)},a.update=g=>{_.update(g)},_.update(r),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),p&&p.instance&&p.changeDetectorRef.detectChanges(),m.changeDetectorRef.detectChanges(),_}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(o=>o.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let o=kl(oI,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(o.hostView),n.appendChild(o.location.nativeElement),o}_attachWindowComponent(n,o){let r=kl(aI,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:o});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_getContentRef(n,o,r,s,a){return r?r instanceof Ln?this._createFromTemplateRef(r,s):Zv(r)?this._createFromString(r):this._createFromComponent(n,o,r,s,a):new di([])}_createFromTemplateRef(n,o){let r={$implicit:o,close(a){o.close(a)},dismiss(a){o.dismiss(a)}},s=n.createEmbeddedView(r);return this._applicationRef.attachView(s),new di([s.rootNodes],s)}_createFromString(n){let o=this._document.createTextNode(`${n}`);return new di([[o]])}_createFromComponent(n,o,r,s,a){let l=Ue.create({providers:[{provide:cn,useValue:s}],parent:n}),d=kl(r,{environmentInjector:o,elementInjector:l}),p=d.location.nativeElement;return a.scrollable&&p.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new di([[p]],d.hostView,d)}_setAriaHidden(n){let o=n.parentElement;o&&n!==this._document.body&&(Array.from(o.children).forEach(r=>{r!==n&&r.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(o))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,o)=>{n?o.setAttribute("aria-hidden",n):o.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){let o=()=>{let r=this._modalRefs.indexOf(n);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(o,o)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{let o=this._windowCmpts.indexOf(n);o>-1&&(this._windowCmpts.splice(o,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xr=(()=>{let e=class e{constructor(){this._injector=C(Ue),this._modalStack=C(lI),this._config=C(nI)}open(n,o={}){let r=Y(Se(Y({},this._config),{animation:this._config.animation}),o);return this._modalStack.open(this._injector,n,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var cI=(()=>{let e=class e{constructor(){this._ngbConfig=C(Kv),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ry=t=>Fi(t)&&t!=="",uI=0,Ps=(()=>{let e=class e{constructor(){this.templateRef=C(Ln)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["ng-template","ngbNavContent",""]],standalone:!0});let t=e;return t})(),vc=(()=>{let e=class e{constructor(n){this.role=n,this.nav=C(xo)}};e.\u0275fac=function(o){return new(o||e)(ls("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNavItem","",5,"ng-container"]],hostVars:1,hostBindings:function(o,r){o&2&&Mt("role",r.role?r.role:r.nav.roles?"presentation":void 0)},standalone:!0});let t=e;return t})(),Or=(()=>{let e=class e{constructor(){this._nav=C(xo),this._nativeElement=C(ye).nativeElement,this.disabled=!1,this.shown=new re,this.hidden=new re}ngOnInit(){Fi(this.domId)||(this.domId=`ngb-nav-${uI++}`)}get active(){return this._nav.activeId===this.id}get id(){return ry(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Fi(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(o,r,s){if(o&1&&yo(s,Ps,4),o&2){let a;Kt(a=Zt())&&(r.contentTpl=a.first)}},hostAttrs:[1,"nav-item"],inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[0,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0});let t=e;return t})(),xo=(()=>{let e=class e{constructor(n){this.role=n,this._config=C(cI),this._cd=C(Jt),this._document=C(Fe),this._nativeElement=C(ye).nativeElement,this.destroyRef=C(ei),this._navigatingWithKeyboard=!1,this.activeIdChange=new re,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new re,this.hidden=new re,this.navItemChange$=new he,this.navChange=new re}click(n){n.disabled||this._updateActiveId(n.id)}onFocusout({relatedTarget:n}){this._nativeElement.contains(n)||(this._navigatingWithKeyboard=!1)}onKeyDown(n){if(this.roles!=="tablist"||!this.keyboard)return;let o=this.links.filter(a=>!a.navItem.disabled),{length:r}=o,s=-1;if(o.forEach((a,l)=>{a.nativeElement===this._document.activeElement&&(s=l)}),r){switch(n.key){case"ArrowUp":case"ArrowLeft":s=(s-1+r)%r;break;case"ArrowRight":case"ArrowDown":s=(s+1)%r;break;case"Home":s=0;break;case"End":s=r-1;break}this.keyboard==="changeWithArrows"&&this.select(o[s].navItem.id),o[s].nativeElement.focus(),this._navigatingWithKeyboard=!0,n.preventDefault()}}select(n){this._updateActiveId(n,!1)}ngAfterContentInit(){if(!Fi(this.activeId)){let n=this.items.first?this.items.first.id:null;ry(n)&&(this._updateActiveId(n,!1),this._cd.detectChanges())}this.items.changes.pipe(ai(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:n}){n&&!n.firstChange&&this._notifyItemChanged(n.currentValue)}_updateActiveId(n,o=!0){if(this.activeId!==n){let r=!1;o&&this.navChange.emit({activeId:this.activeId,nextId:n,preventDefault:()=>{r=!0}}),r||(this.activeId=n,this.activeIdChange.emit(n),this._notifyItemChanged(n))}}_notifyItemChanged(n){this.navItemChange$.next(this._getItemById(n))}_getItemById(n){return this.items&&this.items.find(o=>o.id===n)||null}};e.\u0275fac=function(o){return new(o||e)(ls("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNav",""]],contentQueries:function(o,r,s){if(o&1&&(yo(s,Or,4),yo(s,Nr,5)),o&2){let a;Kt(a=Zt())&&(r.items=a),Kt(a=Zt())&&(r.links=a)}},hostAttrs:[1,"nav"],hostVars:4,hostBindings:function(o,r){o&1&&b("keydown.arrowLeft",function(a){return r.onKeyDown(a)})("keydown.arrowRight",function(a){return r.onKeyDown(a)})("keydown.arrowDown",function(a){return r.onKeyDown(a)})("keydown.arrowUp",function(a){return r.onKeyDown(a)})("keydown.Home",function(a){return r.onKeyDown(a)})("keydown.End",function(a){return r.onKeyDown(a)})("focusout",function(a){return r.onFocusout(a)}),o&2&&(Mt("aria-orientation",r.orientation==="vertical"&&r.roles==="tablist"?"vertical":void 0)("role",r.role?r.role:r.roles?"tablist":void 0),Qe("flex-column",r.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[yt]});let t=e;return t})(),Nr=(()=>{let e=class e{constructor(n){this.role=n,this.navItem=C(Or),this.nav=C(xo),this.nativeElement=C(ye).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}};e.\u0275fac=function(o){return new(o||e)(ls("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNavLink",""]],hostAttrs:[1,"nav-link"],hostVars:12,hostBindings:function(o,r){o&2&&(Mi("id",r.navItem.domId),Mt("role",r.role?r.role:r.nav.roles?"tab":void 0)("tabindex",r.tabindex)("aria-controls",r.navItem.isPanelInDom()?r.navItem.panelDomId:null)("aria-selected",r.navItem.active)("aria-disabled",r.navItem.disabled),Qe("nav-item",r.navItem.isNgContainer())("active",r.navItem.active)("disabled",r.navItem.disabled))},standalone:!0});let t=e;return t})(),yc=(()=>{let e=class e extends Nr{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["button","ngbNavLink",""]],hostAttrs:["type","button"],hostVars:1,hostBindings:function(o,r){o&1&&b("click",function(){return r.nav.click(r.navItem)}),o&2&&Mi("disabled",r.navItem.disabled)},standalone:!0,features:[tt]});let t=e;return t})();var dI=({classList:t})=>(t.remove("show"),()=>t.remove("active")),fI=(t,e)=>{e&&Pp(t),t.classList.add("show")},Wv=(()=>{let e=class e{constructor(){this.nativeElement=C(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(o,r){o&2&&(Mi("id",r.item.panelDomId),Mt("role",r.role?r.role:r.nav.roles?"tabpanel":void 0)("aria-labelledby",r.item.domId),Qe("fade",r.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0});let t=e;return t})(),bc=(()=>{let e=class e{constructor(){this._cd=C(Jt),this._ngZone=C(ge),this._activePane=null}isPanelTransitioning(n){return this._activePane?.item===n}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ai(this.nav.destroyRef),Mu(this._activePane?.item||null),Vo(),Su(1)).subscribe(n=>{let o={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Mn(this._ngZone,this._activePane.nativeElement,dI,o).subscribe(()=>{let r=this._activePane?.item;this._activePane=this._getPaneForItem(n),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),Mn(this._ngZone,this._activePane.nativeElement,fI,o).subscribe(()=>{n&&(n.shown.emit(),this.nav.shown.emit(n.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show","active")}_getPaneForItem(n){return this._panes&&this._panes.find(o=>o.item===n)||null}_getActivePane(){return this._panes&&this._panes.find(n=>n.item.active)||null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["","ngbNavOutlet",""]],viewQuery:function(o,r){if(o&1&&ur(Wv,5),o&2){let s;Kt(s=Zt())&&(r._panes=s)}},hostAttrs:[1,"tab-content"],inputs:{paneRole:"paneRole",nav:[0,"ngbNavOutlet","nav"]},standalone:!0,features:[j],attrs:DT,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){o&1&&te(0,ST,1,1,null,null,fs),o&2&&ne(r.nav.items)},dependencies:[Wv,Wf],encapsulation:2,changeDetection:0});let t=e;return t})();var Ar=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();var pI=(()=>{let e=class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(n){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let o=Fs(this.result),r=Array.isArray(this.term)?this.term:[this.term],s=p=>this.accentSensitive?p:Hv(p),a=r.map(p=>FT(s(Fs(p)))).filter(p=>p),l=this.accentSensitive?o:Hv(o),d=a.length?l.split(new RegExp(`(${a.join("|")})`,"gmi")):[o];if(this.accentSensitive)this.parts=d;else{let p=0;this.parts=d.map(m=>o.substring(p,p+=m.length))}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[yt,j],decls:2,vars:0,consts:[[3,"class"]],template:function(o,r){o&1&&te(0,IT,2,1,null,null,Yt),o&2&&ne(r.parts)},styles:[`.ngb-highlight{font-weight:700}10 `],encapsulation:2,changeDetection:0});let t=e;return t})(),hI=new G("live announcer delay",{providedIn:"root",factory:()=>100});function Yv(t,e=!1){let i=t.body.querySelector("#ngb-live");return i==null&&e&&(i=t.createElement("div"),i.setAttribute("id","ngb-live"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.classList.add("visually-hidden"),t.body.appendChild(i)),i}var mI=(()=>{let e=class e{constructor(){this._document=C(Fe),this._delay=C(hI)}ngOnDestroy(){let n=Yv(this._document);n&&n.parentElement.removeChild(n)}say(n){let o=Yv(this._document,!0),r=this._delay;if(o!=null){o.textContent="";let s=()=>o.textContent=n;r===null?s():setTimeout(s,r)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gI=(()=>{let e=class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_I=(()=>{let e=class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Fs,this.selectEvent=new re,this.activeChangeEvent=new re}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(n){this.activeIdx=n,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(n){this.selectEvent.emit(n)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(o,r){o&1&&b("mousedown",function(a){return a.preventDefault()}),o&2&&(Mi("id",r.id),ar("dropdown-menu show"+(r.popupClass?" "+r.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[j],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){o&1&&(T(0,OT,1,2,"ng-template",null,0,p_),te(2,AT,2,9,"button",1,Yt)),o&2&&(h(2),ne(r.results))},dependencies:[pI,Wf],encapsulation:2});let t=e;return t})(),vI=0,sy=(()=>{let e=class e{constructor(){this._nativeElement=C(ye).nativeElement,this._config=C(gI),this._live=C(mI),this._document=C(Fe),this._ngZone=C(ge),this._changeDetector=C(Jt),this._injector=C(Ue),this._popupService=new Rp(_I),this._positioning=ty(),this._subscription=null,this._closed$=new he,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=xe(this._nativeElement,"input").pipe(Me(n=>n.target.value)),this._resubscribeTypeahead$=new qi(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new re,this.activeDescendant=null,this.popupId=`ngb-typeahead-${vI++}`,this._onTouched=()=>{},this._onChange=n=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:n}){n&&!n.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}writeValue(n){this._writeInputValue(this._formatItemForInput(n)),this.showHint&&(this._inputValueBackup=n)}setDisabledState(n){this._nativeElement.disabled=n}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(n){if(this.isPopupOpen())switch(n.key){case"ArrowDown":n.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":n.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let o=this._windowRef.instance.getActive();Fi(o)&&(n.preventDefault(),n.stopPropagation(),this._selectResult(o)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:n}=this._popupService.open();this._windowRef=n,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(o=>this._selectResultClosePopup(o)),this._windowRef.instance.activeChangeEvent.subscribe(o=>this.activeDescendant=o),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:o=>this.popperOptions(ny([0,2])(o))}),this._afterRenderRef=Nl(()=>{this._positioning.update()},{phase:Nt.MixedReadWrite,injector:this._injector}))}),Jv(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(n){let o=!1;this.selectItem.emit({item:n,preventDefault:()=>{o=!0}}),this._resubscribeTypeahead$.next(null),o||(this.writeValue(n),this._onChange(n))}_selectResultClosePopup(n){this._selectResult(n),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let n=this._inputValueBackup.toLowerCase(),o=this._formatItemForInput(this._windowRef.instance.getActive());n===o.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+o.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,o.length])):this._writeInputValue(o)}}_formatItemForInput(n){return n!=null&&this.inputFormatter?this.inputFormatter(n):Fs(n)}_writeInputValue(n){this._nativeElement.value=Fs(n)}_subscribeToUserInput(){let n=this._valueChanges$.pipe(Xi(o=>{this._inputValueBackup=this.showHint?o:null,this._inputValueForSelectOnExact=this.selectOnExact?o:null,this._onChange(this.editable?o:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>gn([]));this._subscription=this._resubscribeTypeahead$.pipe(mi(()=>n)).subscribe(o=>{!o||o.length===0?this._closePopup():this.selectOnExact&&o.length===1&&this._formatItemForInput(o[0])===this._inputValueForSelectOnExact?(this._selectResult(o[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",o),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let r=o?o.length:0;this._live.say(r===0?"No results available":`${r} result${r===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(o,r){o&1&&b("blur",function(){return r.handleBlur()})("keydown",function(a){return r.handleKeyDown(a)}),o&2&&(Mi("autocomplete",r.autocomplete),Mt("aria-autocomplete",r.showHint?"both":"list")("aria-activedescendant",r.activeDescendant)("aria-owns",r.isPopupOpen()?r.popupId:null)("aria-expanded",r.isPopupOpen()),Qe("open",r.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[nt([{provide:Hn,useExisting:at(()=>e),multi:!0}]),yt]});let t=e;return t})(),Cc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();function yI(t,e){if(t&1&&(c(0,"div",28),f(1),u()),t&2){let i=y();h(),B(" ",i.failMessage," ")}}var wc=class t{constructor(e){this.http=e}activeModal=C(cn);savingImageSize=!1;failMessage="";newImageSize={name:"",width:0,height:0,crop:!1};newImageSizeHorizontalCrop="center";newImageSizeVerticalCrop="center";imageSizesUrl=`${ze}/optimization/image/image-sizes`;ngOnInit(){}saveAddedImageSize=()=>{this.savingImageSize=!0,this.failMessage="";let e=JSON.parse(JSON.stringify(this.newImageSize));this.newImageSize.crop&&(e.crop=[this.newImageSizeHorizontalCrop,this.newImageSizeVerticalCrop]),Z(this.http.post(this.imageSizesUrl,e)).then(()=>{this.activeModal.close()}).catch(i=>{console.error(i),this.failMessage="Failed to save image size. Please check values."}).finally(()=>{this.savingImageSize=!1})};static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-settings-add-size"]],standalone:!0,features:[j],decls:49,vars:10,consts:[[3,"ngSubmit"],[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"mb-3"],["for","sName",1,"form-label"],["type","text","step","1","id","sName","name","sName",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sW",1,"form-label"],["type","number","step","2","id","sW","name","sW",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sH",1,"form-label"],["type","number","step","3","id","sH","name","sH",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sC",1,"form-check-label","w-100"],["type","checkbox","step","4","id","sC","name","sC",1,"form-check-input",3,"ngModelChange","ngModel"],["for","hC",1,"form-label"],["id","hC","step","5",1,"form-select","form-select-sm",3,"ngModelChange","ngModel","disabled"],["value","left"],["value","center"],["value","right"],["for","vC",1,"form-label"],["id","vC","step","6",1,"form-select","form-select-sm",3,"ngModelChange","ngModel","disabled"],["value","top"],["value","bottom"],["class","modal-body text-bg-danger",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-sm","btn-success",3,"disabled"],[1,"fas","fa-save","me-2"],[1,"modal-body","text-bg-danger"]],template:function(i,n){i&1&&(c(0,"form",0),b("ngSubmit",function(){return n.saveAddedImageSize()}),c(1,"div",1)(2,"h5",2),f(3,"New Image Size"),u(),c(4,"button",3),b("click",function(){return n.activeModal.dismiss("Cross click")}),u()(),c(5,"div",4)(6,"div",5)(7,"label",6),f(8,"Name"),u(),c(9,"input",7),k("ngModelChange",function(r){return F(n.newImageSize.name,r)||(n.newImageSize.name=r),r}),u()(),c(10,"div",5)(11,"label",8),f(12,"Width"),u(),c(13,"input",9),k("ngModelChange",function(r){return F(n.newImageSize.width,r)||(n.newImageSize.width=r),r}),u()(),c(14,"div",5)(15,"label",10),f(16,"Height"),u(),c(17,"input",11),k("ngModelChange",function(r){return F(n.newImageSize.height,r)||(n.newImageSize.height=r),r}),u()(),c(18,"div",5)(19,"label",12),f(20,"Crop?"),u(),c(21,"input",13),k("ngModelChange",function(r){return F(n.newImageSize.crop,r)||(n.newImageSize.crop=r),r}),u()(),c(22,"div",5)(23,"label",14),f(24,"Horizontal Crop"),u(),c(25,"select",15),k("ngModelChange",function(r){return F(n.newImageSizeHorizontalCrop,r)||(n.newImageSizeHorizontalCrop=r),r}),c(26,"option",16),f(27,"Left"),u(),c(28,"option",17),f(29,"Center"),u(),c(30,"option",18),f(31,"Right"),u()()(),c(32,"div",5)(33,"label",19),f(34," Vertical Crop "),u(),c(35,"select",20),k("ngModelChange",function(r){return F(n.newImageSizeVerticalCrop,r)||(n.newImageSizeVerticalCrop=r),r}),c(36,"option",21),f(37,"Top"),u(),c(38,"option",17),f(39,"Center"),u(),c(40,"option",22),f(41,"Bottom"),u()()()(),T(42,yI,2,1,"div",23),c(43,"div",24)(44,"button",25),b("click",function(){return n.activeModal.dismiss("Close click")}),f(45," Cancel "),u(),c(46,"button",26),v(47,"i",27),f(48,"Save "),u()()()),i&2&&(h(9),R("ngModel",n.newImageSize.name),h(4),R("ngModel",n.newImageSize.width),h(4),R("ngModel",n.newImageSize.height),h(4),R("ngModel",n.newImageSize.crop),h(4),R("ngModel",n.newImageSizeHorizontalCrop),A("disabled",!n.newImageSize.crop),h(10),R("ngModel",n.newImageSizeVerticalCrop),A("disabled",!n.newImageSize.crop),h(7),A("ngIf",n.failMessage),h(4),A("disabled",n.savingImageSize))},dependencies:[Ce,tn,nn,on,it,bo,wn,It,Pe,en,Ne,Lt,gr]})};var Ec=class t{title="";question="";cancelWord="";okWord="";activeModal=C(cn);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-confirm"]],inputs:{title:"title",question:"question",cancelWord:"cancelWord",okWord:"okWord"},standalone:!0,features:[j],decls:11,vars:4,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-sm","btn-success",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2),u(),c(3,"button",2),b("click",function(){return n.activeModal.dismiss()}),u()(),c(4,"div",3),f(5),u(),c(6,"div",4)(7,"button",5),b("click",function(){return n.activeModal.dismiss()}),f(8),u(),c(9,"button",6),b("click",function(){return n.activeModal.close()}),f(10),u()()),i&2&&(h(2),J(n.title||"Please Confirm"),h(3),B(" ",n.question,`11 `),h(3),B(" ",n.cancelWord||"Cancel"," "),h(2),B(" ",n.okWord||"OK"," "))}})};var Sc=class t{title="";alert="";okWord="";activeModal=C(cn);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-alert"]],inputs:{title:"title",alert:"alert",okWord:"okWord"},standalone:!0,features:[j],decls:9,vars:3,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","submit",1,"btn","btn-sm","btn-success",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2),u(),c(3,"button",2),b("click",function(){return n.activeModal.dismiss()}),u()(),c(4,"div",3),f(5),u(),c(6,"div",4)(7,"button",5),b("click",function(){return n.activeModal.close()}),f(8),u()()),i&2&&(h(2),J(n.title||"Please note"),h(3),B(" ",n.alert,`12 `),h(3),B(" ",n.okWord||"OK"," "))}})};var un=class t{modalService= C(xr);constructor(){}confirm=(e,i="Please confirm",n="OK",o="Cancel")=>new Promise(r=>{let s=this.modalService.open(Ec);s.componentInstance.title=i,s.componentInstance.question=e,s.componentInstance.okWord=n,s.componentInstance.cancelWord=o,On(s.closed).then(()=>r(!0)),On(s.dismissed).then(()=>r(!1))});alert=(e,i="Notice",n="OK")=>new Promise(o=>{let r=this.modalService.open(Sc);r.componentInstance.title=i,r.componentInstance.question=e,r.componentInstance.okWord=n,On(r.closed).then(o),On(r.dismissed).then(o)});strLastReplace=(e,i,n)=>{let o=n.split(e),r=o.pop();return o.join(e)+i+r};static \u0275fac=function(i){return new(i||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pi=class t{constructor(e){this.http=e}imageSettingsUrl=`${ze}/optimization/image/settings`;imageSettings=null;populate=(e=!1)=>E(this,null,function*(){yield Promise.all([this.populateimageSettings(e)])});populateimageSettings=(e=!1)=>E(this,null,function*(){(this.imageSettings===null||e)&&(this.imageSettings=(yield Z(this.http.get(this.imageSettingsUrl)).catch(console.error))||null)});saveImageSettings=()=>E(this,null,function*(){yield Z(this.http.post(this.imageSettingsUrl,this.imageSettings))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function bI(t,e){if(t&1&&(c(0,"div",30),f(1),u()),t&2){let i=y(2);h(),B(" ",i.saveNotification," ")}}function CI(t,e){if(t&1){let i=U();c(0,"form",13),b("ngSubmit",function(){S(i);let o=y();return M(o.onSubmit())}),c(1,"div",6)(2,"h5",7),f(3," General "),u(),c(4,"div",10)(5,"label",14),f(6," Keep Originals "),c(7,"div",15),f(8," If/When images are resized originals will be preserved separately. "),v(9,"br"),f(10," It is highly recommended to keep this enabled, because this will allow you to revert your images back to originals. "),u()(),c(11,"span",16)(12,"input",17),k("ngModelChange",function(o){S(i);let r=y();return F(r.sS.imageSettings.keepOriginals,o)||(r.sS.imageSettings.keepOriginals=o),M(o)}),u()()(),c(13,"div",18)(14,"label",19),f(15," Convert to "),c(16,"div",20),f(17," Should images be converted to WebP or Avif formats. "),u()(),c(18,"span",21)(19,"select",22),k("ngModelChange",function(o){S(i);let r=y();return F(r.sS.imageSettings.convertTo,o)||(r.sS.imageSettings.convertTo=o),M(o)}),c(20,"option",23),f(21,"Do not Convert"),u(),c(22,"option",24),f(23,"WebP"),u(),c(24,"option",25),f(25,"Avif"),u()()()(),T(26,bI,2,1,"div",26),c(27,"div",27)(28,"button",28),v(29,"i",29),f(30,"Save Settings "),u()()()()}if(t&2){let i=y();h(12),R("ngModel",i.sS.imageSettings.keepOriginals),h(7),R("ngModel",i.sS.imageSettings.convertTo),h(7),A("ngIf",i.saveNotification),h(2),A("disabled",i.disabledSubmit)}}function DI(t,e){t&1&&(c(0,"tr")(1,"td",31),f(2," Please wait, retrieving intermediate image sizes from wordpress. "),u()())}function wI(t,e){t&1&&f(0," center,center ")}function EI(t,e){if(t&1&&f(0),t&2){let i,n=y().$implicit,o=y(2);B(" ",(i=o.imageSizes[n]==null?null:o.imageSizes[n].crop)!==null&&i!==void 0?i:"No Crop Behavior Saved","")}}function SI(t,e){if(t&1){let i=U();c(0,"i",34),b("click",function(){S(i);let o=y().$implicit,r=y(2);return M(r.deleteImageSize(o))}),u()}}function MI(t,e){if(t&1&&(c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),u(),c(7,"td"),T(8,wI,1,0)(9,EI,1,1),u(),c(10,"td"),f(11),u(),c(12,"td",32),T(13,SI,1,0,"i",33),u()()),t&2){let i,n,o,r=e.$implicit,s=y(2);h(2),B(" ",r," "),h(2),B(" ",(i=s.imageSizes[r]==null?null:s.imageSizes[r].width)!==null&&i!==void 0?i:"No Width Saved"," "),h(2),B(" ",(n=s.imageSizes[r]==null?null:s.imageSizes[r].height)!==null&&n!==void 0?n:"No Height Saved"," "),h(2),I((s.imageSizes[r]==null?null:s.imageSizes[r].crop)==="1"||(s.imageSizes[r]==null?null:s.imageSizes[r].crop)===1?8:9),h(3),B(" ",(o=s.imageSizes[r]==null?null:s.imageSizes[r].source)!==null&&o!==void 0?o:"Wordpress"," "),h(2),I(s.imageSizes[r]!=null&&s.imageSizes[r].isOurs?13:-1)}}function TI(t,e){t&1&&(c(0,"tr")(1,"td",31),f(2," There are no intermediate image sizes defined yet. "),u()())}function II(t,e){if(t&1&&te(0,MI,14,6,"tr",null,Yt,!1,TI,3,0,"tr"),t&2){let i=y();ne(i.imageSizeNames)}}var Rr=class t{constructor(e,i,n){this.http=e;this.utilities=i;this.sS=n}modalService=C(xr);disabledSubmit=!1;saveNotification="";imageSizes=void 0;imageSizeNames=[];gettingImageSizes=!0;addingImageSize=!1;savingImageSize=!1;newImageSizeHorizontalCrop="center";newImageSizeVerticalCrop="center";imageSizesUrl=`${ze}/optimization/image/image-sizes`;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),this.getImageSizes()})}getImageSizes=()=>{Z(this.http.get(this.imageSizesUrl)).then(e=>{this.imageSizes=e;let i=Object.entries(this.imageSizes||{});i.sort(([n,o],[r,s])=>parseFloat(o.width)>parseFloat(s.width)?1:-1),this.imageSizeNames=[];for(let[n,o]of i)this.imageSizeNames.push(n);this.gettingImageSizes=!1}).catch(console.error)};onSubmit=()=>{this.disabledSubmit=!0,this.saveNotification="",this.sS.saveImageSettings().then(()=>{this.saveNotification="Settings are now saved"}).catch(e=>{this.saveNotification="Failed to save settings",console.error(e)}).finally(()=>{this.disabledSubmit=!1,setTimeout(()=>{this.saveNotification=""},3e3)})};startAddingImageSize=()=>{this.addingImageSize=!0,this.modalService.open(wc).closed.subscribe(()=>{this.getImageSizes()})};deleteImageSize=e=>E(this,null,function*(){(yield this.utilities.confirm("Are you sure you want to delete "+e))&&Z(this.http.delete(this.imageSizesUrl+"?name="+e)).then(this.getImageSizes).catch(console.error)});static \u0275fac=function(i){return new(i||t)(w(Ve),w(un),w(Pi))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-settings"]],standalone:!0,features:[j],decls:36,vars:2,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[3,"ngSubmit",4,"ngIf"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"btn","btn-xs","btn-outline-light","text-bg-secondary","ms-auto",3,"click"],[1,"fas","fa-add","me-2"],[1,"card-body","d-flex"],[1,"table","table-sm","table-striped","m-0"],["scope","col"],[3,"ngSubmit"],["for","keepO",1,"form-label"],["id","keepOHelp",1,"form-text"],[1,"form-check","form-switch","ms-auto"],["type","checkbox","role","switch","id","keepO","name","keepO",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"card-body","border-top","d-flex"],["for","convTo",1,"form-label"],["id","convToHelp",1,"form-text"],[1,"ms-auto"],["id","convTo","name","convTo","aria-describedby","convToHelp",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","false"],["value","WebP"],["value","Avif"],["class","card-body text-bg-success",4,"ngIf"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"disabled"],[1,"fas","fa-save","me-2"],[1,"card-body","text-bg-success"],["colspan","100"],[2,"text-align","center"],[1,"fas","fa-trash","ptr"],[1,"fas","fa-trash","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Image Optimization Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),T(9,CI,31,4,"form",5),u(),c(10,"div",2)(11,"div",6)(12,"h5",7),f(13," Image Sizes "),c(14,"button",8),b("click",function(){return n.startAddingImageSize()}),v(15,"i",9),f(16,"Add New Size "),u()(),c(17,"div",10)(18,"table",11)(19,"thead")(20,"tr")(21,"th",12),f(22,"Name"),u(),c(23,"th",12),f(24,"Width"),u(),c(25,"th",12),f(26,"Height"),u(),c(27,"th",12),f(28,"Crops?"),u(),c(29,"th",12),f(30,"Source"),u(),c(31,"th",12),f(32,"\xA0"),u()()(),c(33,"tbody"),T(34,DI,3,0,"tr")(35,II,3,1),u()()()()()()()),i&2&&(h(9),A("ngIf",n.sS.imageSettings),h(25),I(n.gettingImageSizes?34:35))},dependencies:[Ce,tn,nn,on,wn,It,Pe,en,Ne,Lt,gr]})};var Vs=(t,e,i)=>{let n=i.split(t),o=n.pop();return n.join(t)+e+o};var Mc=(t,e)=>t?.value?.name>e?.value?.name?1:-1;var Li=class t{constructor(e){this.http=e}mediaListUrl="/wp-json/wp/v2/media";mediaList=[];populateMediaList=()=>E(this,null,function*(){let e=!0;this.mediaList=[];let i=100,n=0,o=0;for(;e;){n++;try{let r=yield Z(this.http.get(`${this.mediaListUrl}?order=asc&orderby=title&per_page=${i}&page=${n}`,{observe:"response"})).catch(console.error);if(!r)e=!1;else{let{headers:s,body:a}=r;o=parseInt(s.get("x-wp-totalpages"),10),n>=o&&(e=!1);for(let l of a||[])this.mediaList.push(l)}}catch(r){console.error(r),e=!1}}});reFetchMedium=e=>E(this,null,function*(){let i=this.mediaList[e].id;this.mediaList[e]=yield Z(this.http.get(`/wp-json/wp/v2/media/${i}`))});optimizeMedium=e=>E(this,null,function*(){let i=`${ze}/optimization/image/use-optimized`;yield Z(this.http.post(i,this.mediaList[e])).catch(console.error),yield this.reFetchMedium(e)});fileDetailsUrl=`${ze}/optimization/image/get-file-details`;getFileDetails=e=>E(this,null,function*(){return yield Z(this.http.post(this.fileDetailsUrl,{path:e}))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var we=class t{constructor(){this.prepare()}currentPage="home";sCP=e=>this.currentPage=e;linkMap=new Map;links=[];prepare=()=>{this.linkMap.set("home",{name:"Home",isPro:!1,link:"home",icon:"fas fa-house"}),this.linkMap.set("optimization-home",{isPro:!1,name:"Optimization",link:"optimization-home",icon:"fas fa-gauge-simple-high"}),this.linkMap.set("optimization-image-home",{isPro:!1,name:"Image Optimization",link:"optimization-image-home",icon:"fas fa-image",parent:"optimization-home"}),this.linkMap.set("optimization-image-supervised",{isPro:!1,name:"Supervised Optimization",link:"optimization-image-supervised",parent:"optimization-image-home"}),this.linkMap.set("optimization-image-bulk",{isPro:!1,name:"Bulk Optimization",link:"optimization-image-bulk",parent:"optimization-image-home"}),this.linkMap.set("optimization-image-settings",{isPro:!1,name:"Settings",link:"optimization-image-settings",parent:"optimization-image-home"}),this.linkMap.set("maintenance-home",{isPro:!0,name:"Maintenance",link:"maintenance-home",icon:"fas fa-wrench"}),this.linkMap.set("maintenance-cron",{isPro:!0,name:"Cron Setup",link:"maintenance-cron",parent:"maintenance-home"}),this.linkMap.set("maintenance-mailgun",{isPro:!0,name:"Mailgun Settings",link:"maintenance-mailgun",parent:"maintenance-home"}),this.linkMap.set("crm-home",{isPro:!0,name:"CRM",link:"crm-home",icon:"fas fa-handshake"}),this.linkMap.set("crm-contact-list",{isPro:!0,name:"Contacts",link:"crm-contact-list",parent:"crm-home"}),this.linkMap.set("crm-explore-list",{isPro:!0,name:"Explorer",link:"crm-explore-list",parent:"crm-home"}),this.linkMap.set("crm-email-template-list",{isPro:!0,name:"Email Templates",link:"crm-email-template-list",parent:"crm-home"}),this.linkMap.set("crm-campaign-list",{isPro:!0,name:"Campaigns",link:"crm-campaign-list",parent:"crm-home"}),this.linkMap.set("crm-settings",{isPro:!0,name:"Settings",link:"crm-settings",parent:"crm-home"}),this.linkMap.set("ai-home",{isPro:!0,isComingSoon:!0,icon:"fas fa-brain",name:"AI Content Generation",link:"ai-home"}),this.linkMap.set("subscription-home",{isPro:!1,name:"Subscription",link:"subscription-home",icon:"fas fa-id-card"});for(let e of this.linkMap.values())(!e.icon||e.icon==="")&&(e.icon="fas fa-caret-right"),e.icon+=" fa-fw";this.links=[];for(let e of this.linkMap.values())if(!e.parent)this.links.push(e);else{let i=this.linkMap.get(e.parent);i.children??=[],i.children.push(e)}};static \u0275fac=function(i){return new(i||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function xI(t,e){if(t&1){let i=U();c(0,"div",5)(1,"div",7),f(2," Before working on any optimization please make sure that you defined the settings. "),v(3,"br"),c(4,"button",8),b("click",function(){S(i);let o=y();return M(o.nS.sCP("optimization-image-settings"))}),f(5,"Go to Image Optimization Settings"),u()()()}}function OI(t,e){t&1&&(c(0,"h6",11),f(1,"Please optimize your images."),u())}function NI(t,e){t&1&&f(0," Good job. All media in your library are optimized. ")}function AI(t,e){t&1&&f(0,"is")}function RI(t,e){t&1&&f(0,"are")}function kI(t,e){t&1&&f(0,"medium")}function FI(t,e){t&1&&f(0,"media")}function PI(t,e){if(t&1&&(f(0," There "),T(1,AI,1,0)(2,RI,1,0),f(3),T(4,kI,1,0)(5,FI,1,0),f(6," in your library pending optimization. "),v(7,"br"),f(8,' Please use "Initiate Bulk Optimization" button on this screen to fix this. ')),t&2){let i=y(2);h(),I(i.pendingCount===1?1:2),h(2),B(" ",i.pendingCount," "),h(),I(i.pendingCount===1?4:5)}}function LI(t,e){if(t&1){let i=U();c(0,"button",20),b("click",function(){S(i);let o=y(3);return M(o.nS.sCP("optimization-image-settings"))}),f(1,"Optimization Disabled, Go to Settings"),u()}}function VI(t,e){if(t&1){let i=U();c(0,"button",21),b("click",function(){S(i);let o=y(3);return M(o.bulkOptimize())}),f(1," Initiate "),u()}if(t&2){let i=y(3);A("disabled",i.optimizing)}}function BI(t,e){if(t&1&&T(0,LI,2,0,"button",18)(1,VI,2,1,"button",19),t&2){let i=y(2);I(i.sS.imageSettings.convertTo==="false"?0:1)}}function jI(t,e){if(t&1&&(c(0,"div",5)(1,"div",7)(2,"div",9)(3,"h5",10),f(4,"Status"),u(),T(5,OI,2,0,"h6",11),c(6,"div",12)(7,"p",13),T(8,NI,1,0)(9,PI,9,3),u(),c(10,"div",14)(11,"div",15)(12,"strong"),f(13),u()()()()()(),c(14,"div",7)(15,"div",16)(16,"h5",10),f(17,"You are saving"),u(),c(18,"div",12)(19,"p",13),f(20),v(21,"br")(22,"br"),f(23," or in other words "),v(24,"br")(25,"br"),f(26),u()()()(),c(27,"div",7)(28,"div",16)(29,"h5",10),f(30,"Let's Go"),u(),c(31,"div",17),T(32,BI,2,1),u()()()()),t&2){let i=y();h(5),I(i.pendingCount>0?5:-1),h(3),I(i.pendingCount===0?8:9),h(3),A("ngClass",i.barClasses)("ngStyle",i.barStyles),h(2),B("",i.optimizedRatio,"%"),h(7),B(" ",i.savingSize," "),h(6),B(" ",i.savingRatio," "),h(6),I(i.sS.imageSettings?32:-1)}}function UI(t,e){if(t&1&&(c(0,"div",6)(1,"div",7)(2,"div",9)(3,"h5",10),f(4,"Optimization Log"),u(),c(5,"div",12)(6,"pre"),f(7),u()()()()()),t&2){let i=y();h(7),J(i.optimizationLog)}}var kr=class t{constructor(e,i,n){this.mS=e;this.sS=i;this.nS=n}isSystemReady=!1;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),(typeof this.sS.imageSettings?.convertTo<"u"||typeof this.sS.imageSettings?.keepOriginals<"u")&&(this.isSystemReady=!0),yield this.mS.populateMediaList(),this.calculateStatus(),yield this.calculateSavings()})}mediaCount=0;optimizedCount=0;pendingCount=0;optimizedRatio=0;barClasses=[];barStyles={};calculateStatus=(e=!1)=>{this.barClasses=["progress-bar","progress-bar-striped"],e&&this.barClasses.push("progress-bar-animated"),this.optimizedCount=0,this.mediaCount=0;for(let i of this.mS.mediaList)i.media_type==="image"&&(this.mediaCount++,i.media_details?.luckynode_optimized==="luckynode_converted"&&this.optimizedCount++);this.pendingCount=this.mediaCount-this.optimizedCount,this.optimizedRatio=parseInt((this.optimizedCount/this.mediaCount*100).toFixed(0),10),this.optimizedRatio<50?(this.barClasses.push("bg-danger"),this.barClasses.push("text-white")):this.optimizedRatio<100?(this.barClasses.push("bg-warning"),this.barClasses.push("text-black")):this.barClasses.push("bg-success"),this.barStyles={width:this.optimizedRatio+"%"}};savingSize="";savingRatio="0%";calculateSavings=()=>E(this,null,function*(){let e=0,i=0;for(let n of this.mS.mediaList)if(n.media_type==="image"&&n.media_details?.luckynode_optimized==="luckynode_converted"){let o=n.media_details.file,r=yield this.mS.getFileDetails(o),s=Vs(n.media_details.sizes.full.file,n.media_details.original_image,o),a=yield this.mS.getFileDetails(s);e+=r.fileSize,i+=a.fileSize}this.savingSize=((i-e)/1024).toFixed(2)+"kb",this.savingSize+=` (${i-e} b)`,i===0?this.savingRatio="0%":this.savingRatio=((i-e)/i*100).toFixed(2)+"%"});optimizing=!1;optimizationLog="";bulkOptimize=()=>E(this,null,function*(){this.optimizing=!0,this.addLog("Starting optimization",!0),this.calculateStatus(!0);for(let[e,i]of this.mS.mediaList.entries())this.addLog(`Currently pending media to optimize: ${this.pendingCount}`),i.media_type==="image"&&i.media_details?.luckynode_optimized!=="luckynode_converted"&&(this.addLog(`Now optimizing ${i.title.rendered}`),yield this.mS.optimizeMedium(e),this.addLog(`Done optimizing ${i.title.rendered}`),this.calculateStatus(!0));this.optimizing=!1,this.calculateStatus(),this.calculateSavings()});addLog=(e,i=!1)=>{i&&(this.optimizationLog=""),this.optimizationLog=e+`13 `+this.optimizationLog};static \u0275fac=function(i){return new(i||t)(w(Li),w(Pi),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-bulk"]],standalone:!0,features:[j],decls:12,vars:3,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"row","mt-0"],[1,"row","my-3"],[1,"row","mb-3"],[1,"col"],["type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],[1,"card"],[1,"card- header","text-light","fw-bold","bg-secondary"],[1,"card-header","mb-2","text-body-secondary","bg-warning"],[1,"card-body"],[1,"card-text"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress","my-3",2,"height","2rem"],[3,"ngClass","ngStyle"],[1,"card","h-100"],[1,"card-body","d-flex"],["type","button",1,"btn","btn-outline-danger"],["type","button",1,"btn","btn-success","btn-lg","mx-auto","my-auto","rounded-circle","border",2,"width","100px","height","100px",3,"disabled"],["type","button",1,"btn","btn-outline-danger",3,"click"],["type","button",1,"btn","btn-success","btn-lg","mx-auto","my-auto","rounded-circle","border",2,"width","100px","height","100px",3,"click","disabled"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Bulk Optimization"),u(),c(5,"div",3),f(6,"\xA0"),u()()(),c(7,"div",4),v(8,"hr"),u(),T(9,xI,6,0,"div",5)(10,jI,33,8,"div",5)(11,UI,8,1,"div",6),u()),i&2&&(h(9),I(n.isSystemReady?-1:9),h(),I(n.isSystemReady?10:-1),h(),I(n.optimizing?11:-1))},dependencies:[Gf,A_]})};function HI(t,e){if(t&1&&(c(0,"div",3),f(1),u()),t&2){let i=y();h(),B(" ",i.failMessage,`14 `)}}var Tc=class t{constructor(e){this.http=e}activeModal=C(cn);currentMessage="Are you ready?";regenerating=!1;data=void 0;ngOnInit(){}failMessage="";useOriginalUrl=`${ze}/optimization/image/use-original`;useOriginal=()=>E(this,null,function*(){this.currentMessage="Please wait, your server is now working on it",this.regenerating=!0;let e=yield Z(this.http.post(this.useOriginalUrl,this.data)).catch(console.error);console.log(e),console.log(e==="success"),e==="success"?(this.currentMessage="All done. Good bye.",setTimeout(()=>{this.activeModal.close()},1e3)):(this.failMessage=e,this.currentMessage="Something went wrong. Please read below message.",this.regenerating=!1)});static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-supervised-use-original"]],inputs:{data:"data"},standalone:!0,features:[j],decls:12,vars:4,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],[1,"modal-body"],[1,"modal-body","text-bg-danger"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click","disabled"],["type","button",1,"btn","btn-sm","btn-success","text-light",3,"click","disabled"],[1,"fas","fa-play","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2,"Use Original Image"),u()(),c(3,"div",2),f(4),u(),T(5,HI,2,1,"div",3),c(6,"div",4)(7,"button",5),b("click",function(){return n.activeModal.dismiss("Close click")}),f(8,"Cancel"),u(),c(9,"button",6),b("click",function(){return n.useOriginal()}),v(10,"i",7),f(11,"Start"),u()()),i&2&&(h(4),B(" ",n.currentMessage,`15 `),h(),I(n.failMessage?5:-1),h(2),A("disabled",n.regenerating),h(2),A("disabled",n.regenerating))},dependencies:[ Ce]})};function zI(t,e){if(t&1){let i=U();c(0,"div",5)(1,"div",6)(2,"button",7),b("click",function(){S(i);let o=y();return M(o.useOriginalImage())}),f(3,"Use Original Image"),u()()()}}function $I(t,e){if(t&1){let i=U();c(0,"div",5)(1,"div",6)(2,"button",7),b("click",function(){S(i);let o=y();return M(o.nS.sCP("optimization-image-settings"))}),f(3,"Optimization Disabled, Go to Settings"),u()()()}}function GI(t,e){t&1&&(c(0,"button",10),v(1,"i",11),u())}function WI(t,e){if(t&1){let i=U();c(0,"button",7),b("click",function(){S(i);let o=y(2);return M(o.useOptimizedImage())}),f(1,"Optimize"),u()}}function YI(t,e){if(t&1&&(c(0,"div",5)(1,"div",6),T(2,GI,2,0,"button",10)(3,WI,2,0,"button",10),u()()),t&2){let i=y();h(2),I(i.optimizingImage?2:3)}}function qI(t,e){if(t&1){let i=U();c(0,"div",9)(1,"div",12),f(2," Before working on any optimization please make sure that you defined the settings. "),v(3,"br"),c(4,"button",13),b("click",function(){S(i);let o=y();return M(o.nS.sCP("optimization-image-settings"))}),f(5,"Go to Image Optimization Settings"),u()()()}}function KI(t,e){t&1&&(c(0,"label",19),f(1,"All Images"),u())}function ZI(t,e){t&1&&(c(0,"label",19),f(1,"Images Pending Optimization"),u())}function QI(t,e){if(t&1){let i=U();c(0,"div",9)(1,"div",2)(2,"h5"),f(3),u(),c(4,"div",3),f(5,"\xA0"),u(),c(6,"div",5)(7,"div",16)(8,"input",17),k("ngModelChange",function(o){S(i);let r=y(2);return F(r.showAll,o)||(r.showAll=o),M(o)}),u(),T(9,KI,2,0,"label",18)(10,ZI,2,0,"label",18),u()(),c(11,"div",5),f(12),u()()()}if(t&2){let i=y(2);h(3),J((i.currentData==null||i.currentData.title==null?null:i.currentData.title.rendered)||"There is no title for the media"),h(5),R("ngModel",i.showAll),h(),A("ngIf",i.showAll),h(),A("ngIf",!i.showAll),h(2),Tt(" Media ",i.currentImage+1," of ",i.imageList.length," ")}}function JI(t,e){t&1&&(c(0,"div",21),f(1," No optimization done yet. "),u())}function XI(t,e){t&1&&(c(0,"div",21),f(1," Original Image is not preserved. "),u())}function ex(t,e){if(t&1&&(c(0,"div",21)(1,"div",22),v(2,"img",23),c(3,"div",24)(4,"h5",25),f(5,"Original Image"),u(),c(6,"span",26),f(7),v(8,"br"),f(9),v(10,"br"),f(11),v(12,"br"),u()()()()),t&2){let i=y(3);h(2),A("src",i.originalImage.url,Bn),h(5),B(" Extension: ",i.originalImage.ext," "),h(2),Tt(" File Size: ",i.originalImage.sizekb," (",i.originalImage.size,") "),h(2),B(" Saving: ",i.originalImage.saving," ")}}function tx(t,e){if(t&1&&(c(0,"div",20)(1,"div",21)(2,"div",22),v(3,"img",23),c(4,"div",24)(5,"h5",25),f(6,"Active Image"),u(),c(7,"span",26),f(8),v(9,"br"),f(10),v(11,"br"),f(12),v(13,"br"),u()()()(),T(14,JI,2,0,"div",27)(15,XI,2,0,"div",27)(16,ex,13,5,"div",27),u()),t&2){let i=y(2);h(3),A("src",i.activeImage.url,Bn),h(5),B(" Extension: ",i.activeImage.ext," "),h(2),Tt(" File Size: ",i.activeImage.sizekb," (",i.activeImage.size,") "),h(2),B(" Saving: ",i.activeImage.saving," "),h(2),A("ngIf",!i.originalImage.optimized),h(),A("ngIf",i.originalImage.optimized&&!i.originalImage.exists),h(),A("ngIf",i.originalImage.optimized&&i.originalImage.exists)}}function nx(t,e){if(t&1&&T(0,QI,13,6,"div",14)(1,tx,17,8,"div",15),t&2){let i=y();A("ngIf",i.currentData),h(),A("ngIf",i.currentData)}}var Fr=class t{constructor(e,i,n){this.mS=e;this.sS=i;this.nS=n}modalService=C(xr);showAll=!0;currentImage=0;currentData=void 0;imageList=[];indexList=[];fileDetailsUrl=`${ze}/optimization/image/get-file-details`;activeImage={url:"",ext:"",size:"",sizekb:"",saving:""};originalImage={optimized:!1,exists:!1,url:"",ext:"",size:"",sizekb:"",saving:""};isSystemReady=!1;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),(typeof this.sS.imageSettings?.convertTo<"u"||typeof this.sS.imageSettings?.keepOriginals<"u")&&(this.isSystemReady=!0),this.populateImageList()})}getExtension=e=>e.split(".").pop();nextImage=()=>{this.currentImage=++this.currentImage%(this.imageList?.length||1),this.setCurrentData()};previousImage=()=>{this.currentImage=--this.currentImage,this.currentImage<0&&(this.currentImage=this.imageList.length-1),this.setCurrentData()};populateImageList=()=>E(this,null,function*(){try{yield this.mS.populateMediaList();for(let[e,i]of this.mS.mediaList.entries())i.media_type==="image"&&(this.imageList.push(i),this.indexList.push(e));this.currentData||(this.currentImage=0,this.setCurrentData())}catch(e){console.error(e)}});setCurrentData=()=>E(this,null,function*(){let e=new Intl.NumberFormat;this.imageList[this.currentImage]=this.mS.mediaList[this.indexList[this.currentImage]],this.currentData=this.imageList[this.currentImage],this.activeImage.url=this.currentData.source_url,this.activeImage.ext=this.getExtension(this.currentData.media_details?.sizes?.full?.file)||"undefined",this.activeImage.size=e.format(this.currentData.media_details?.filesize)+" b",this.activeImage.sizekb=(this.currentData.media_details?.filesize/1024).toFixed(2)+" kb",this.activeImage.saving="n/a",this.originalImage.optimized=!!this.currentData.media_details.luckynode_optimized,this.originalImage.exists=!!this.currentData.media_details.original_image,this.originalImage.url=Vs(this.currentData.media_details.sizes.full.file,this.currentData.media_details.original_image,this.currentData.source_url),this.originalImage.ext=this.getExtension(this.originalImage.url)||"";let i=Vs(this.currentData.media_details.sizes.full.file,this.currentData.media_details.original_image,this.currentData.media_details.file);if(this.originalImage.size="n/a",this.originalImage.sizekb="n/a",this.originalImage.saving="n/a",this.originalImage.exists){let n=yield this.mS.getFileDetails(i).catch(console.error);n&&(this.originalImage.size=n.fileSize+" b",this.originalImage.sizekb=(n.fileSize/1024).toFixed(2)+" kb",this.activeImage.saving=((1-this.currentData.media_details?.filesize/n.fileSize)*100).toFixed(2)+"%",this.originalImage.saving=this.activeImage.saving)}});useOriginalImage=()=>E(this,null,function*(){let e=this.modalService.open(Tc,{backdrop:"static",size:"lg",keyboard:!1});e.componentInstance.data=this.currentData,yield On(e.closed),yield this.mS.reFetchMedium(this.indexList[this.currentImage]),this.imageList[this.currentImage]=this.mS.mediaList[this.indexList[this.currentImage]],this.setCurrentData()});optimizingImage=!1;useOptimizedImage=()=>E(this,null,function*(){this.optimizingImage=!0,yield this.mS.optimizeMedium(this.indexList[this.currentImage]),this.setCurrentData(),this.optimizingImage=!1});static \u0275fac=function(i){return new(i||t)(w(Li),w(Pi),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-supervised"]],standalone:!0,features:[j],decls:20,vars:5,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],["class","ms-3",4,"ngIf"],[1,"ms-3"],["role","group",1,"btn-group","btn-group-sm","my-auto"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"row","mt-0"],[1,"row","my-3"],["type","button",1,"btn","btn-outline-secondary"],[1,"fas","fa-sync","fa-spin"],[1,"col"],["type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],["class","row my-3",4,"ngIf"],["class","row",4,"ngIf"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","sA","name","sA",1,"form-check-input",3,"ngModelChange","ngModel"],["class","form-label","for","sA",4,"ngIf"],["for","sA",1,"form-label"],[1,"row"],[1,"col-6"],[1,"card"],[1,"card-img-top",3,"src"],[1,"card-body"],[1,"card-title"],[1,"card-text"],["class","col-6",4,"ngIf"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Supervised Optimization"),u(),c(5,"div",3),f(6,"\xA0"),u(),T(7,zI,4,0,"div",4)(8,$I,4,0,"div",4)(9,YI,4,1,"div",4),c(10,"div",5)(11,"div",6)(12,"button",7),b("click",function(){return n.previousImage()}),f(13,"Previous"),u(),c(14,"button",7),b("click",function(){return n.nextImage()}),f(15,"Next"),u()()()()(),c(16,"div",8),v(17,"hr"),u(),T(18,qI,6,0,"div",9)(19,nx,2,2),u()),i&2&&(h(7),A("ngIf",n.originalImage.optimized&&n.originalImage.exists),h(),A("ngIf",!n.originalImage.optimized&&!n.originalImage.exists&&(n.sS.imageSettings==null?null:n.sS.imageSettings.convertTo)==="false"),h(),A("ngIf",!n.originalImage.optimized&&!n.originalImage.exists&&(n.sS.imageSettings==null?null:n.sS.imageSettings.convertTo)!=="false"),h(9),I(n.isSystemReady?-1:18),h(),I(n.isSystemReady?19:-1))},dependencies:[gr,Ce,wn,Pe,Ne]})};function ix(t,e){t&1&&v(0,"lnf-optimization-image-supervised")}function ox(t,e){t&1&&v(0,"lnf-optimization-image-bulk")}function rx(t,e){t&1&&v(0,"lnf-optimization-image-settings")}var Ic=class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-home"]],standalone:!0,features:[j],decls:18,vars:1,consts:[["nav","ngbNav"],[1,"container-fluid","p-1"],[1,"row"],[1,"col"],["ngbNav","",1,"nav-tabs","border-0"],["ngbNavItem","",1,"mb-0"],["ngbNavLink",""],["ngbNavContent",""],[1,"border","p-1",3,"ngbNavOutlet"]],template:function(i,n){if(i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4,0)(5,"li",5)(6,"button",6),f(7,"Supervised Optimization"),u(),T(8,ix,1,0,"ng-template",7),u(),c(9,"li",5)(10,"button",6),f(11,"Bulk Optimization"),u(),T(12,ox,1,0,"ng-template",7),u(),c(13,"li",5)(14,"button",6),f(15,"Settings"),u(),T(16,rx,1,0,"ng-template",7),u()(),v(17,"div",8),u()()()),i&2){let o=dr(4);h(17),A("ngbNavOutlet",o)}},dependencies:[Ar,Ps,xo,Or,vc,yc,Nr,bc,Rr,kr,Fr]})};function sx(t,e){t&1&&v(0,"lnf-optimization-image-home")}var xc=class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-home"]],standalone:!0,features:[j],decls:10,vars:1,consts:[["nav","ngbNav"],[1,"container-fluid","p-1"],[1,"row"],[1,"col"],["ngbNav","",1,"nav-tabs","border-0"],["ngbNavItem","",1,"mb-0"],["ngbNavLink",""],["ngbNavContent",""],[1,"border","p-1",3,"ngbNavOutlet"]],template:function(i,n){if(i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4,0)(5,"li",5)(6,"button",6),f(7,"Image Optimization"),u(),T(8,sx,1,0,"ng-template",7),u()(),v(9,"div",8),u()()()),i&2){let o=dr(4);h(9),A("ngbNavOutlet",o)}},dependencies:[Ar,Ps,xo,Or,vc,yc,Nr,bc,Ic]})};var Vi=class t{constructor(e){this.http=e;this.checkRegistration()}subscription={registered:!1,id:"",origin:"",email:"",licenseValidUntil:"",emailVerified:!1,licenseValid:!1};rUrl=`${ec}/subscriber`;checkSubscription=()=>E(this,null,function*(){let e=yield Z(this.http.post(`${this.rUrl}/verify`,{})).catch(console.error);return console.log(e),e});checkRegistration=()=>E(this,null,function*(){try{this.subscription=yield Z(this.http.get(`${this.rUrl}/check-registration`))}catch(e){console.error(e)}});tempExtend=()=>E(this,null,function*(){yield Z(this.http.get(`${this.rUrl}/temp-extend`))});register=e=>E(this,null,function*(){return yield Z(this.http.post(`${this.rUrl}/register`,{email:e}))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var zp=(t,e)=>e.name,ax=()=>[];function lx(t,e){if(t&1){let i=U();c(0,"li",12),b("click",function(){S(i);let o=y().$implicit,r=y(7);return M(r.nS.sCP(o.link||"home"))}),c(1,"span",14),v(2,"i",15),u(),f(3),u()}if(t&2){let i=y().$implicit;h(3),B(" ",i.name," ")}}function cx(t,e){if(t&1&&T(0,lx,4,1,"li",11),t&2){let i=e.$implicit,n=y(7);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function ux(t,e){if(t&1&&(c(0,"ul",13),te(1,cx,1,1,null,null,zp),u()),t&2){let i=y(2).$implicit;h(),ne(i.children)}}function dx(t,e){t&1&&v(0,"br")}function fx(t,e){if(t&1){let i=U();c(0,"strong",12),b("click",function(){S(i);let o=y().$implicit,r=y(4);return M(r.nS.sCP(o.link||"home"))}),f(1),u(),T(2,ux,3,0,"ul",13)(3,dx,1,0,"br")}if(t&2){let i=y().$implicit;h(),J(i.name),h(),I(i.children?2:3)}}function px(t,e){if(t&1&&T(0,fx,4,2),t&2){let i=e.$implicit,n=y(4);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function hx(t,e){if(t&1){let i=U();c(0,"strong",12),b("click",function(){S(i);let o=y(2).$implicit,r=y(2);return M(r.nS.sCP(o.link||"home"))}),f(1),u()}if(t&2){let i=y(2).$implicit;h(),J(i.name)}}function mx(t,e){t&1&&(c(0,"strong",11),f(1,"Coming soon, stay tuned"),u())}function gx(t,e){if(t&1){let i=U();c(0,"div",7)(1,"div",8)(2,"h5",9),b("click",function(){S(i);let o=y().$implicit,r=y(2);return M(r.nS.sCP(o.link||"home"))}),f(3),u(),c(4,"div",10),te(5,px,1,1,null,null,zp),T(7,hx,2,1,"strong",11)(8,mx,2,0,"strong",11),u()()()}if(t&2){let i=y().$implicit;h(3),B(" ",i.name," "),h(2),ne(i.children||fr(3,ax)),h(2),I(!i.children&&!i.isComingSoon?7:-1),h(),I(!i.children&&i.isComingSoon?8:-1)}}function _x(t,e){if(t&1&&T(0,gx,9,4,"div",7),t&2){let i=e.$implicit,n=y(2);I((i.isPro&&n.sS.subscription.licenseValid||!i.isPro)&&i.link!=="home"?0:-1)}}function vx(t,e){if(t&1){let i=U();c(0,"div",6)(1,"div",8)(2,"h5",16),f(3,"Go Pro"),u(),c(4,"div",10),f(5," LuckyNode is a dynamic and evolving WordPress plugin, offering essential tools to enhance your website's performance and management. Currently, LuckyNode provides Image Optimization as a free feature, helping you reduce file sizes and improve load times effortlessly. For users looking to extend their site's capabilities, we offer a CRM feature as part of our paid, pro version\u2014perfect for managing customer relationships and streamlining business operations. As we continue to develop LuckyNode, new functionalities are regularly added to meet the growing needs of our users, ensuring that your WordPress site remains powerful and efficient. "),v(6,"br")(7,"br"),c(8,"strong"),f(9,"Unlock More with LuckyNode Pro!"),u(),f(10," Take your website to the next level with advanced features like our powerful CRM tool. Manage your customer relationships, streamline your workflow, and enjoy priority support. Upgrade to Pro now and experience the full potential of LuckyNode! "),v(11,"br")(12,"br"),c(13,"button",17),b("click",function(){S(i);let o=y(2);return M(o.nS.sCP("subscription-home"))}),f(14,"Go Pro Now"),u()()()()}}function yx(t,e){if(t&1&&(c(0,"div",5),te(1,_x,1,1,null,null,zp),T(3,vx,15,0,"div",6),u()),t&2){let i=y();h(),ne(i.nS.links),h(2),I(i.sS.subscription.licenseValid?-1:3)}}var Oc=class t{constructor(e,i){this.nS=e;this.sS=i}static \u0275fac=function(i){return new(i||t)(w(we),w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-home"]],standalone:!0,features:[j],decls:10,vars:1,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"row","mt-0"],[1,"row","my-3"],[1,"col"],[1,"col","mb-3"],[1,"card"],[1,"card-header","text-light","fw-bold","bg-secondary","ptr",3,"click"],[1,"card-body"],[1,"ptr"],[1,"ptr",3,"click"],[1,"fa-ul","mt-3","ms-4"],[1,"fa-li"],[1,"fas","fa-chevron-right"],[1,"card-header","text-light","fw-bold","bg-secondary"],["type","button",1,"btn","btn-sm","btn-secondary","ms-auto","my-auto",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Welcome to LuckyNode Plugin"),u(),c(5,"div",3),f(6,"\xA0"),u()()(),c(7,"div",4),v(8,"hr"),u(),T(9,yx,4,1,"div",5),u()),i&2&&(h(9),I(n.sS.subscription.origin?9:-1))}})};var Nc=class t{constructor(e){this.http=e}makeRequest=()=>E(this,null,function*(){let e=yield Z(this.http.get("http://localhost:3000")).catch(console.error);console.log({result:e})});static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-ai-content-settings"]],standalone:!0,features:[j],decls:11,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],["type","button",1,"btn","btn-secondary","btn-sm",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"AI Content Generation Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"button",5),b("click",function(){return n.makeRequest()}),f(10,"Let's try"),u()()()())},dependencies:[Ce]})};function bx(t,e){t&1&&f(0,"(Verified, thank you.)")}function Cx(t,e){t&1&&f(0,"(Pending verification. Please check your inbox.)")}function Dx(t,e){if(t&1&&(f(0),Qt(1,"date")),t&2){let i=y(3);B(" Your license is valid until ",Rl(1,1,i.sS.subscription.licenseValidUntil,"medium"),". ")}}function wx(t,e){if(t&1){let i=U();f(0," You currently don't have a valid license. "),v(1,"br"),f(2," Until further notice you can extend your subscription for free. "),v(3,"br"),c(4,"button",9),b("click",function(){S(i);let o=y(3);return M(o.extend())}),f(5,"Extend"),u()}}function Ex(t,e){if(t&1&&(c(0,"div",8)(1,"strong"),f(2,"Domain:"),u(),f(3),v(4,"br"),c(5,"strong"),f(6,"Registered Email Address:"),u(),f(7),T(8,bx,1,0)(9,Cx,1,0),v(10,"br")(11,"br")(12,"hr"),c(13,"strong"),f(14,"License Status:"),u(),T(15,Dx,2,4)(16,wx,6,0),v(17,"br"),u()),t&2){let i=y(2);h(3),B(" ",i.sS.subscription.origin," "),h(4),B(" ",i.sS.subscription.email," "),h(),I(i.sS.subscription.emailVerified?8:9),h(7),I(i.sS.subscription.licenseValid?15:16)}}function Sx(t,e){if(t&1){let i=U();c(0,"form",10),b("ngSubmit",function(){S(i);let o=y(2);return M(o.register())}),c(1,"div",7)(2,"div",11)(3,"label",12),f(4,"Valid Email Address"),u(),c(5,"input",13),k("ngModelChange",function(o){S(i);let r=y(2);return F(r.email,o)||(r.email=o),M(o)}),u()()(),c(6,"div",14)(7,"button",15),v(8,"i",16),f(9,"Register "),u()()()}if(t&2){let i=y(2);h(5),R("ngModel",i.email)}}function Mx(t,e){if(t&1&&T(0,Ex,18,4,"div",8)(1,Sx,10,1,"form"),t&2){let i=y();I(i.sS.subscription.registered===!0?0:1)}}function Tx(t,e){t&1&&(c(0,"div",7),f(1," Checking registaration status. Please wait. "),u())}var Ac=class t{constructor(e){this.sS=e}registrationResult=void 0;subscriptionChecked=!1;email="";ngOnInit(){return E(this,null,function*(){this.checkRegistration()})}extend=()=>E(this,null,function*(){yield this.sS.tempExtend(),this.checkRegistration()});checkRegistration=()=>E(this,null,function*(){yield this.sS.checkRegistration(),this.subscriptionChecked=!0,this.sS.subscription.email&&!this.sS.subscription.emailVerified&&setTimeout(()=>{this.checkRegistration()},3e3)});register=()=>E(this,null,function*(){this.registrationResult=yield this.sS.register(this.email)});static \u0275fac=function(i){return new(i||t)(w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-subscription-home"]],standalone:!0,features:[j],decls:14,vars:2,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"card-body","d-flex"],[1,"card-body"],["type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[3,"ngSubmit"],[1,"mb-3","w-100"],["for","email",1,"form-label"],["type","email","name","email","id","email",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto"],[1,"fas","fa-user-plus","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"My Subscription"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"div",5)(10,"h5",6),f(11," Your Registration Information "),u(),T(12,Mx,2,1)(13,Tx,2,0,"div",7),u()()()()),i&2&&(h(12),I(n.subscriptionChecked?12:-1),h(),I(n.subscriptionChecked?-1:13))},dependencies:[Ce,tn,it,Pe,en,Ne,Lt,Yl]})};var Rc=class t{constructor(e){this.nS=e}static \u0275fac=function(i){return new(i||t)(w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-home"]],standalone:!0,features:[j],decls:22,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"fa-ul","mt-3","ms-4"],[1,"ptr",3,"click"],[1,"fa-li"],[1,"fas","fa-chevron-right"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"ul",5)(10,"li",6),b("click",function(){return n.nS.sCP("crm-campaigns")}),c(11,"span",7),v(12,"i",8),u(),f(13,"Campaigns"),u(),c(14,"li",6),b("click",function(){return n.nS.sCP("crm-explorer")}),c(15,"span",7),v(16,"i",8),u(),f(17,"Explorer"),u(),c(18,"li",6),b("click",function(){return n.nS.sCP("crm-settings")}),c(19,"span",7),v(20,"i",8),u(),f(21,"Settings"),u()()()()())}})};var Ye=class t{constructor(e){this.http=e}url=`${ze}/database`;insert=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"insert"},e))).catch(console.error)});update=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"update"},e))).catch(console.error)});delete=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"delete"},e))).catch(console.error)});selectAll=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"selectAll"},e))).catch(console.error)});insertTask=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"insertTask"},e))).catch(console.error)});campaignMails=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"campaignMails"},e))).catch(console.error)});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Be=class t{constructor(e,i){this.http=e;this.dbS=i;this.populate()}settingsUrl=`${ze}/crm/settings`;crmSettings=null;populate=(e=!1)=>E(this,null,function*(){yield Promise.all([this.populateSettings(e),this.populateEmailTemplates(),this.populateCampaigns()])});populateSettings=(e=!1)=>E(this,null,function*(){(this.crmSettings===null||e)&&(this.crmSettings=(yield Z(this.http.get(this.settingsUrl)).catch(console.error))||null)});saveSettings=()=>E(this,null,function*(){yield Z(this.http.post(this.settingsUrl,this.crmSettings))});currentEmailTemplate="";emailTemplates=new Map;populateEmailTemplates=()=>E(this,null,function*(){this.emailTemplates.clear();for(let e of((yield this.dbS.selectAll({type:"email-template"}).catch(console.error))||[]).sort(Mc))this.emailTemplates.set(e.id,e)});testEmailTemplate=e=>E(this,null,function*(){let i=`${ze}/crm/email-template/test`,n=(yield Z(this.http.post(i,{id:e})).catch(console.error))||null;console.log(n)});contacts=new Map;currentContact="";populateContacts=()=>E(this,null,function*(){this.contacts.clear();for(let e of((yield this.dbS.selectAll({type:"contact"}).catch(console.error))||[]).sort(Mc))this.contacts.set(e.id,e)});currentCampaign="";campaigns=new Map;populateCampaigns=()=>E(this,null,function*(){this.campaigns.clear();for(let e of((yield this.dbS.selectAll({type:"campaign"}).catch(console.error))||[]).sort(Mc))this.campaigns.set(e.id,e)});static \u0275fac=function(i){return new(i||t)(H(Ve),H(Ye))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function Ix(t,e){if(t&1){let i=U();c(0,"form",5),b("ngSubmit",function(){S(i);let o=y();return M(o.crmS.saveSettings())}),c(1,"div",6)(2,"h5",7),f(3," General Settings "),u(),c(4,"div",8)(5,"div",9)(6,"label",10),f(7,"Google Maps API Key"),u(),c(8,"input",11),k("ngModelChange",function(o){S(i);let r=y();return F(r.crmS.crmSettings.googleAPIKey,o)||(r.crmS.crmSettings.googleAPIKey=o),M(o)}),u(),c(9,"div",12),f(10," LuckyNode CRM uses Google Maps API in the explorer functionality. "),v(11,"br"),f(12," You should be activating Google Places API (New) on Google Cloud Console "),v(13,"br"),f(14," and defining an API key to paste in this field. "),u()(),c(15,"div",9)(16,"label",13),f(17,"Daily Automated Mail Sending Limit"),u(),c(18,"input",14),k("ngModelChange",function(o){S(i);let r=y();return F(r.crmS.crmSettings.smtpDailyLimit,o)||(r.crmS.crmSettings.smtpDailyLimit=o),M(o)}),u(),c(19,"div",15),f(20," Some of the mail sending services endorse a daily sending limit. "),v(21,"br"),f(22," This is the place where you can limit LuckyNode CRM to obey those limits. "),u()()(),c(23,"div",16)(24,"button",17),v(25,"i",18),f(26,"Save Settings "),u()()()()}if(t&2){let i=y();h(8),R("ngModel",i.crmS.crmSettings.googleAPIKey),h(10),R("ngModel",i.crmS.crmSettings.smtpDailyLimit)}}var kc=class t{constructor(e){this.crmS=e}static \u0275fac=function(i){return new(i||t)(w(Be))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-settings"]],standalone:!0,features:[j],decls:10,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[3,"ngSubmit"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"card-body"],[1,"mb-3"],["for","gapikey",1,"form-label"],["type","text","name","gapikey","id","gapikey",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","gapiHelp",1,"form-text"],["for","smtplimit",1,"form-label"],["type","number","name","smtplimit","id","smtplimit",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","smtpHelp",1,"form-text"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto"],[1,"fas","fa-save","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),T(9,Ix,27,2,"form"),u()()()),i&2&&(h(9),I(n.crmS.crmSettings?9:-1))},dependencies:[Ce,tn,it,bo,Pe,en,Ne,Lt]})};var xx=(t,e)=>e.id;function Ox(t,e){if(t&1){let i=U();c(0,"i",14),b("click",function(){S(i);let o=y().$implicit,r=y();return M(r.delete(o.id))}),u()}}function Nx(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),Qt(5,"titlecase"),u(),c(6,"td",9)(7,"i",11),b("click",function(){let o=S(i).$implicit,r=y();return M(r.edit(o.id))}),u(),T(8,Ox,1,0,"i",12),c(9,"i",13),b("click",function(){let o=S(i).$implicit,r=y();return M(r.stats(o.id))}),u()()()}if(t&2){let i=e.$implicit;h(2),J(i.value.name||"No Name Given"),h(2),B(" ",Ti(5,3,i.value.status||"Pending")," "),h(4),I(i.value.status==="pending"?8:-1)}}var Fc=class t{constructor(e,i,n,o){this.nS=e;this.dbS=i;this.crmS=n;this.uS=o}ngOnInit(){this.crmS.populateCampaigns()}edit=e=>{this.crmS.currentCampaign=e,this.nS.sCP("crm-campaign")};stats=e=>{this.crmS.currentCampaign=e,this.nS.sCP("crm-campaign-stats")};delete=e=>E(this,null,function*(){try{if(yield this.uS.confirm("Are you sure?","Delete campaign","Yes","Cancel")){let i=yield this.dbS.delete({id:e}).catch(n=>{console.log("This is database delete error"),console.error(n)});console.log({result:i}),yield this.crmS.populateCampaigns()}}catch(i){console.log("this is parent error"),console.error(i)}});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(Be),w(un))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign-list"]],standalone:!0,features:[j],decls:23,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"],[1,"sticky-top","border"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"fas","fa-pen-to-square","ptr",3,"click"],[1,"fas","fa-trash","ptr","ms-2","text-danger"],[1,"fas","fa-chart-column","ptr","ms-2",3,"click"],[1,"fas","fa-trash","ptr","ms-2","text-danger",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Campaigns"),u(),c(5,"button",3),b("click",function(){return n.nS.sCP("crm-campaign")}),f(6,"New Campaign"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead",8)(13,"tr")(14,"th"),f(15,"Name"),u(),c(16,"th"),f(17,"Status"),u(),c(18,"th",9),v(19,"i",10),u()()(),c(20,"tbody"),te(21,Nx,10,5,"tr",null,xx),u()()()()()),i&2&&(h(21),ne(n.crmS.campaigns.values()))},dependencies:[_r]})};var xt=class t{constructor(e){this.http=e;this.populateCountries()}rUrl=`${ec}/geography`;search=e=>E(this,null,function*(){return Z(this.http.post(`${this.rUrl}/search`,{phrase:e}))});countCities=(e,i)=>E(this,null,function*(){return Z(this.http.post(`${this.rUrl}/city-count`,{type:e,id:i}))});countries=new Map;populatingO=!1;populateCountries=()=>E(this,null,function*(){if(!(this.countries.size>0||this.populatingO)){this.populatingO=!0;for(let e of(yield Z(this.http.get(`${this.rUrl}/countries`)).catch(console.error))||[])typeof e.id=="number"&&(e.id=e.id.toString()),this.countries.set(e.id,e);this.populatingO=!1}});getStates=e=>E(this,null,function*(){let i=new Map;for(let n of(yield Z(this.http.post(`${this.rUrl}/states`,{country:e})).catch(console.error))||[])typeof n.id=="number"&&(n.id=n.id.toString()),i.set(n.id,n);return i});getCities=(e,i)=>E(this,null,function*(){let n=new Map;for(let o of(yield Z(this.http.post(`${this.rUrl}/cities`,{country:e,state:i})).catch(console.error))||[])typeof o.id=="number"&&(o.id=o.id.toString()),n.set(o.id,o);return n});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pc=(t,e)=>e.id;function Ax(t,e){if(t&1){let i=U();c(0,"button",30),b("click",function(){S(i);let o=y().$index,r=y();return M(r.removeGPText(o))}),v(1,"i",31),u()}}function Rx(t,e){if(t&1){let i=U();c(0,"div",14)(1,"span",27),f(2,"Phrase: "),u(),c(3,"input",28),k("ngModelChange",function(o){let r=S(i).$index,s=y();return F(s.gpTexts[r],o)||(s.gpTexts[r]=o),M(o)}),u(),T(4,Ax,2,0,"button",29),u()}if(t&2){let i=e.$index,n=y();h(3),ni("name","gpText",n.gpTexts[i],""),ni("id","gpText",n.gpTexts[i],""),R("ngModel",n.gpTexts[i]),h(),I(n.gpTexts.length>1?4:-1)}}function kx(t,e){t&1&&v(0,"i",24)}function Fx(t,e){t&1&&v(0,"i",25)}function Px(t,e){if(t&1){let i=U();c(0,"button",37),b("click",function(){let o=S(i).$implicit,r=y(2);return M(r.add("country",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (",i.path,")")}}function Lx(t,e){if(t&1){let i=U();c(0,"button",37),b("click",function(){let o=S(i).$implicit,r=y(2);return M(r.add("state",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (@",i.path,")")}}function Vx(t,e){if(t&1){let i=U();c(0,"button",37),b("click",function(){let o=S(i).$implicit,r=y(2);return M(r.add("city",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (@",i.path,")")}}function Bx(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),Qt(3,"titlecase"),u(),c(4,"td"),f(5),Qt(6,"titlecase"),u(),c(7,"td",35),f(8),u(),c(9,"td",38)(10,"i",39),b("click",function(){let o=S(i).$implicit,r=y(2);return M(r.remove(o.id))}),u()()()}if(t&2){let i=e.$implicit;h(2),J(Ti(3,3,i.type)),h(3),J(Ti(6,5,i.name)),h(3),J(i.cityCount)}}function jx(t,e){if(t&1&&(c(0,"div",5)(1,"div",32)(2,"div",11)(3,"h5",8),f(4,"Geography Search Results"),u(),c(5,"div",9),te(6,Px,2,2,"button",33,Pc),te(8,Lx,2,2,"button",33,Pc),te(10,Vx,2,2,"button",33,Pc),u()()(),c(12,"div",32)(13,"div",11)(14,"h5",8),f(15,"Geography Selections"),u(),c(16,"div",9)(17,"table",34)(18,"thead")(19,"tr")(20,"th"),f(21,"Type"),u(),c(22,"th"),f(23,"Name"),u(),c(24,"th",35),f(25,"# Cities"),u(),c(26,"th"),f(27,"\xA0"),u()()(),c(28,"tbody"),te(29,Bx,11,7,"tr",null,Pc),c(31,"tr")(32,"td"),f(33,"\xA0"),u(),c(34,"th",36),f(35,"Total Number of Cities to Explore"),u(),c(36,"td",35),f(37),u(),c(38,"td"),f(39,"\xA0"),u()()()()()()()()),t&2){let i=y();h(6),ne(i.searchResult.countries),h(2),ne(i.searchResult.states),h(2),ne(i.searchResult.cities),h(19),ne(i.selections),h(8),J(i.totalCities)}}var Lc=class t{constructor(e,i,n,o){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o}searchResult=null;searchPhrase="";searching=!1;selections=[];totalCities=0;gpTexts=[""];areWeReadyToSave=!1;name="";checkReadinessToSave=()=>{if(this.areWeReadyToSave=!0,this.name.length<3){this.areWeReadyToSave=!1;return}if(this.selections.length===0){this.areWeReadyToSave=!1;return}if(this.totalCities===0){this.areWeReadyToSave=!1;return}if(parseInt(this.gpTexts.map(i=>i.length.toString()).join(""),0)===0){this.areWeReadyToSave=!1;return}};search=()=>E(this,null,function*(){this.searchResult=null,this.searching=!0,this.searchResult=yield this.gS.search(this.searchPhrase),this.cleanUp(),this.searching=!1});addGPText=()=>{this.gpTexts.push(""),this.checkReadinessToSave()};removeGPText=e=>{this.gpTexts.splice(e,1),this.checkReadinessToSave()};add=(e,i,n)=>{let o={type:e,id:i,name:n,cityCount:0};e!=="city"?this.gS.countCities(e,i).then(r=>{o.cityCount=r.count,this.calculateTotal()}):o.cityCount=1,this.selections.push(o),this.cleanUp(),this.calculateTotal(),this.checkReadinessToSave()};remove=e=>{this.selections=this.selections.filter(i=>i.id!==e),this.cleanUp(),this.calculateTotal(),this.checkReadinessToSave()};calculateTotal=()=>{this.totalCities=0;for(let e of this.selections)this.totalCities+=e.cityCount;this.checkReadinessToSave()};cleanUp=()=>{if(this.searchResult)for(let e of this.selections)this.searchResult.countries=this.searchResult.countries.filter(i=>i.id!==e.id),this.searchResult.states=this.searchResult.states.filter(i=>i.id!==e.id),this.searchResult.cities=this.searchResult.cities.filter(i=>i.id!==e.id);this.checkReadinessToSave()};creating=!1;create=()=>E(this,null,function*(){this.creating=!0;let e={name:this.name,gpTexts:this.gpTexts,selections:this.selections};console.log(e);let i=yield this.dbS.insert({type:"exploration",value:e});console.log(i),this.creating=!1,this.nS.sCP("crm-explore-list")});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-explorer"]],standalone:!0,features:[j],decls:54,vars:6,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"row","mt-0"],[1,"row"],[1,"col-4"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["type","text","name","name","id","name",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],[1,"card"],[1,"mb-3"],[1,"form-label"],[1,"input-group","input-group-sm","mb-2"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["id","gpTextHelp",1,"form-text"],[1,"col-8","mb-3"],[3,"ngSubmit"],["for","phrase",1,"form-label"],["type","text","name","phrase","id","phrase",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","phraseHelp",1,"form-text"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click","disabled"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"fas","fa-magnifying-glass-location","me-2"],[1,"container-fluid","mx-0","px-0"],[1,"input-group-text"],["type","text",1,"form-control","form-control-sm",3,"ngModelChange","name","id","ngModel"],["type","button",1,"btn","btn-outline-secondary"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-trash"],[1,"col","py-3"],["type","button",1,"btn","btn-sm","btn-outline-secondary","me-2","mb-2"],[1,"table","table-sm","table-striped","table-bordered"],[1,"text-end"],["scope","row"],["type","button",1,"btn","btn-sm","btn-outline-secondary","me-2","mb-2",3,"click"],[1,"text-center"],[1,"fas","fa-trash","text-danger","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Explorer"),u(),c(5,"button",3),b("click",function(){return n.create()}),f(6,"Create Explore"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"div",7)(12,"h5",8),f(13,"Name"),u(),c(14,"div",9)(15,"input",10),k("ngModelChange",function(r){return F(n.name,r)||(n.name=r),r}),u()()(),c(16,"div",11)(17,"h5",8),f(18,"What are you looking for?"),u(),c(19,"div",9)(20,"div",12)(21,"label",13),f(22,"Google Places Search Phrase"),u(),te(23,Rx,5,6,"div",14,Yt),c(25,"button",15),b("click",function(){return n.addGPText()}),f(26,"Add Search Phrase"),u(),c(27,"div",16),f(28," These are the phrases we will be searching for you in Google Places API according to the entries you will make in the geographic search. "),v(29,"br"),f(30,' e.g. If you enter "Dentist" in this field and select city of Dubai, we will search for "Dentist in Dubai" for you. '),v(31,"br"),f(32,' or, if you select "United Kingdom (whole country)", we will make a similar search to above for each city in the UK for you. '),v(33,"br"),f(34," As you search for geographies below, we will let you know how many cities exist within a geography you select as well as the total number of cities. "),u()()()()(),c(35,"div",17)(36,"div",11)(37,"form",18),b("ngSubmit",function(){return n.search()}),c(38,"h5",8),f(39,"Search Geographic Targes"),u(),c(40,"div",9)(41,"div",12)(42,"label",19),f(43,"Please enter country/state/city"),u(),c(44,"input",20),k("ngModelChange",function(r){return F(n.searchPhrase,r)||(n.searchPhrase=r),r}),u(),c(45,"div",21),f(46,"Please note; LuckyNode will find your targets city by city, so adding a whole country/state will mean that there will be many steps in the explore phase."),u()()(),c(47,"div",22)(48,"button",23),b("click",function(){return n.search()}),T(49,kx,1,0,"i",24)(50,Fx,1,0,"i",25),f(51," Search "),u()()()(),c(52,"div",26),T(53,jx,40,1,"div",5),u()()()()),i&2&&(h(5),A("disabled",!n.areWeReadyToSave||n.creating),h(10),R("ngModel",n.name),h(8),ne(n.gpTexts),h(21),R("ngModel",n.searchPhrase),h(4),A("disabled",n.searching||n.searchPhrase.length<3),h(),I(n.searching?49:50),h(4),I(n.searchResult?53:-1))},dependencies:[Ce,tn,it,Pe,en,Ne,Lt,_r]})};var Vc=class t{constructor(e){this.nS=e}static \u0275fac=function(i){return new(i||t)(w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-home"]],standalone:!0,features:[j],decls:14,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"fa-ul","mt-3","ms-4"],[1,"ptr",3,"click"],[1,"fa-li"],[1,"fas","fa-chevron-right"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Maintenance"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"ul",5)(10,"li",6),b("click",function(){return n.nS.sCP("maintenance-cron")}),c(11,"span",7),v(12,"i",8),u(),f(13,"Cron Setup"),u()()()()())}})};var Bi=class t{constructor(e){this.http=e}mailgunSettings=null;url=`${ze}/maintenance`;mailgunSettingsUrl=`${ze}/maintenance/mailgun/settings`;cronCheck=()=>Z(this.http.get(`${this.url}/cron-check`));cronFixDisableCron=()=>Z(this.http.get(`${this.url}/cron-fix-disable-cron`));cronFixMissingCrontab=()=>Z(this.http.get(`${this.url}/cron-fix-missing-crontab`));populateMailgunSettings=(e=!1)=>E(this,null,function*(){(this.mailgunSettings===null||e)&&(this.mailgunSettings=(yield Z(this.http.get(this.mailgunSettingsUrl)).catch(console.error))||null)});saveMailgunSettings=()=>E(this,null,function*(){yield Z(this.http.post(this.mailgunSettingsUrl,this.mailgunSettings))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ux=()=>[];function Hx(t,e){t&1&&(f(0,` This value should be "true", let's fix it. `),v(1,"br"))}function zx(t,e){t&1&&(v(0,"i",12),f(1," Fixing, please wait... "))}function $x(t,e){t&1&&f(0," Fix This ")}function Gx(t,e){if(t&1){let i=U();c(0,"button",11),b("click",function(){S(i);let o=y(2);return M(o.fixDisableCron())}),T(1,zx,2,0)(2,$x,1,0),u()}if(t&2){let i=y(2);A("disabled",i.fixingDisableCron),h(),I(i.fixingDisableCron?1:2)}}function Wx(t,e){t&1&&(c(0,"button",9),f(1," All good. Nothing to do here. "),u()),t&2&&A("disabled",!0)}function Yx(t,e){t&1&&v(0,"i",13)}function qx(t,e){if(t&1&&(c(0,"pre"),f(1),T(2,Yx,1,0,"i",13),u()),t&2){let i=e.$implicit,n=y(3);h(),B("",i," "),h(),I(i===n.expectedCrontab?2:-1)}}function Kx(t,e){t&1&&(f(0," We found the exact crontab we were looking for. Good job. "),v(1,"br"))}function Zx(t,e){if(t&1&&(f(0," We couldn't find the exact crontab we were looking for. Which is:"),v(1,"br"),c(2,"pre"),f(3),u(),f(4," If you don't see an equivalent crontab in the list, or you don't have another method that runs this cron job. Please fix it using the button below: ")),t&2){let i=y(3);h(3),J(i.expectedCrontab)}}function Qx(t,e){t&1&&(v(0,"i",12),f(1," Fixing, please wait... "))}function Jx(t,e){t&1&&f(0," Fix This ")}function Xx(t,e){if(t&1){let i=U();c(0,"button",11),b("click",function(){S(i);let o=y(3);return M(o.fixCronTab())}),T(1,Qx,2,0)(2,Jx,1,0),u()}if(t&2){let i=y(3);A("disabled",i.fixingCronTab),h(),I(i.fixingCronTab?1:2)}}function eO(t,e){t&1&&(c(0,"button",9),f(1," All good. Nothing to do here. "),u()),t&2&&A("disabled",!0)}function tO(t,e){if(t&1&&(c(0,"div",10)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Cronjobs Defined on the Server"),u(),c(5,"div",7),f(6," Below you can see crontab entries on your server: "),v(7,"hr"),te(8,qx,3,2,"pre",null,Yt),v(10,"hr"),T(11,Kx,2,0,"br")(12,Zx,5,1),u(),c(13,"div",8),T(14,Xx,3,2,"button",9)(15,eO,2,1,"button",9),u()()()()),t&2){let i=y(2);h(8),ne(i.cronCR.crons||fr(2,Ux)),h(3),I(i.foundCrontab===!0?11:12),h(3),I(i.foundCrontab?15:14)}}function nO(t,e){if(t&1&&(c(0,"div",10)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Cron Job Setup"),u(),c(5,"div",7)(6,"strong"),f(7,"As soon as you register your domain with LuckyNode ecosystem, we start to send 1 cron calls per minute to your site."),u(),v(8,"hr"),f(9," So you are all covered here. "),v(10,"br")(11,"br"),f(12," Alternativetly if you would like to also run a local cron job on your server, "),v(13,"br"),f(14," below crontab entry should serve you well: "),v(15,"br"),c(16,"pre"),f(17),u()()()()()),t&2){let i=y(2);h(17),J(i.expectedCrontab)}}function iO(t,e){if(t&1&&(c(0,"div",4)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Wordpress Config for Cron"),u(),c(5,"div",7),f(6," Below you can see DISABLE_WP_CRON value of your Wordpress configuration: "),v(7,"hr"),c(8,"pre"),f(9),u(),v(10,"hr"),T(11,Hx,2,0,"br"),u(),c(12,"div",8),T(13,Gx,3,2,"button",9)(14,Wx,2,1,"button",9),u()()()(),T(15,tO,16,3,"div",10)(16,nO,18,1,"div",10)),t&2){let i=y();h(9),B("DISABLE_WP_CRON = ",i.cronCR.DISABLE_WP_CRON,""),h(2),I(i.cronCR.DISABLE_WP_CRON===!1?11:-1),h(2),I(i.cronCR.DISABLE_WP_CRON===!1?13:14),h(2),I(i.canExec?15:16)}}var Bc=class t{constructor(e){this.mS=e}cronCR=null;expectedCrontab="";expectedCrontabUrl="";foundCrontab=!1;canExec=!1;ngOnInit(){this.checkCron()}checkCron=()=>E(this,null,function*(){this.cronCR=yield this.mS.cronCheck(),this.expectedCrontab=`* * * * * curl ${this.cronCR.siteURL}/wp-cron.php?doing_wp_cron >/dev/null 2>&1`,this.expectedCrontabUrl=`${this.cronCR.siteURL}/wp-cron.php?doing_wp_cron`,this.foundCrontab=!1,Array.isArray(this.cronCR.crons)&&(this.canExec=!0);for(let e of this.cronCR.crons)e===this.expectedCrontab&&(this.foundCrontab=!0)});fixingCronTab=!1;fixCronTab=()=>E(this,null,function*(){this.fixingCronTab=!1,yield this.mS.cronFixMissingCrontab(),yield this.checkCron(),setTimeout(()=>E(this,null,function*(){yield this.checkCron(),this.fixingCronTab=!1}),3e3)});fixingDisableCron=!1;fixDisableCron=()=>E(this,null,function*(){this.fixingDisableCron=!0,yield this.mS.cronFixDisableCron(),yield this.checkCron(),setTimeout(()=>E(this,null,function*(){yield this.checkCron(),this.fixingDisableCron=!1}),3e3)});static \u0275fac=function(i){return new(i||t)(w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-cron"]],standalone:!0,features:[j],decls:8,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"card-footer","border-top","d-flex"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"disabled"],[1,"row","py-3"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click","disabled"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"far","fa-square-check"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Cron Setup"),u()()(),c(5,"div",3),v(6,"hr"),u(),T(7,iO,17,4),u()),i&2&&(h(7),I(n.cronCR?7:-1))}})};var oO=(t,e)=>e.id;function rO(t,e){if(t&1&&f(0),t&2){let i=y().$implicit;B("",i.explorePercentage,"%")}}function sO(t,e){if(t&1&&(c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),Qt(7,"titlecase"),T(8,rO,1,1),u()()),t&2){let i=e.$implicit;h(2),J(i.id),h(2),J((i.value==null?null:i.value.name)||"No Name Given"),h(2),B(" ",Ti(7,4,(i.value==null?null:i.value.status)||"Pending")," "),h(2),I((i.value==null?null:i.value.status)==="Exploring"?8:-1)}}var jc=class t{constructor(e,i,n,o){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o}explorations=null;interval;ngOnInit(){this.getAll(),this.interval=setInterval(this.getAll,5e3)}ngOnDestroy(){clearInterval(this.interval)}getAll=()=>E(this,null,function*(){this.explorations=yield this.dbS.selectAll({type:"exploration"});for(let e of this.explorations){e.countAll=(e.value.combinations||[]).length,e.countDone=0;for(let i of e.value.combinations||[])i.done&&e.countDone++;e.countAll&&(e.explorePercentage=(e.countDone/e.countAll*100).toFixed(2))}});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-explore-list"]],standalone:!0,features:[j],decls:23,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Explore List"),u(),c(5,"button",3),b("click",function(){return n.nS.sCP("crm-explorer")}),f(6,"New Exploration"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead")(13,"tr")(14,"th"),f(15,"#"),u(),c(16,"th"),f(17,"Name"),u(),c(18,"th"),f(19,"Status"),u()()(),c(20,"tbody"),te(21,sO,9,6,"tr",null,oO),u()()()()()),i&2&&(h(21),ne(n.explorations))},dependencies:[Ce,_r]})};var aO=(t,e)=>e.id;function lO(t,e){if(t&1&&v(0,"img",16),t&2){let i=y().$implicit;A("src",i.value.avatar,Bn)}}function cO(t,e){t&1&&(c(0,"div",17),v(1,"i",24),u())}function uO(t,e){t&1&&(c(0,"button",18),v(1,"i",25),f(2," Ready"),u())}function dO(t,e){t&1&&(c(0,"button",19),v(1,"i",26),f(2," Browsing"),u())}function fO(t,e){if(t&1&&(c(0,"a",20),f(1),u()),t&2){let i=y().$implicit;h(),J(i.value.website)}}function pO(t,e){t&1&&f(0,"-")}function hO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",13)(2,"input",14),k("ngModelChange",function(o){let r=S(i).$implicit;return F(r.checked,o)||(r.checked=o),M(o)}),u()(),c(3,"td",15),T(4,lO,1,1,"img",16)(5,cO,2,0,"div",17),u(),c(6,"td",13),f(7),u(),c(8,"td",15),T(9,uO,3,0,"button",18)(10,dO,3,0,"button",19),u(),c(11,"td",13),T(12,fO,2,1,"a",20)(13,pO,1,0),u(),c(14,"td",13),f(15),u(),c(16,"td",13),f(17),u(),c(18,"td",13),f(19),u(),c(20,"td",13),f(21),u(),c(22,"td",13),f(23),Qt(24,"date"),u(),c(25,"td",21)(26,"i",22),b("click",function(){let o=S(i).$implicit,r=y();return M(r.edit(o.id))}),u(),c(27,"i",23),b("click",function(){let o=S(i).$implicit,r=y();return M(r.delete(o.id))}),u()()()}if(t&2){let i=e.$implicit,n=y();h(2),R("ngModel",i.checked),h(2),I(i.value.avatar?4:-1),h(),I(i.value.avatar?-1:5),h(2),J(i.value.name||"-"),h(2),I(n.isReady(i)?9:10),h(3),I(i.value.website?12:13),h(3),J(i.value.address||"-"),h(2),J(i.value.city||"-"),h(2),J(i.value.state||"-"),h(2),J(i.value.country||"-"),h(2),J(Rl(24,11,i.createdOn,"longDate"))}}var Uc=class t{constructor(e,i,n,o,r){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o;this.uS=r;this.prepare()}contacts=[];prepare=()=>E(this,null,function*(){yield this.crmS.populateContacts(),this.contacts=Array.from(this.crmS.contacts.values()),this.contacts.forEach(e=>e.checked=!1)});isReady=e=>(e?.value?.status||"").substring(0,5).toLowerCase()==="ready";edit=e=>{this.crmS.currentContact=e,this.nS.sCP("crm-contact")};delete=e=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Contact"))&&(yield this.dbS.delete({id:e}).catch(console.error))}catch(i){console.error(i)}finally{yield this.prepare()}});deleting=!1;deleteSelected=()=>E(this,null,function*(){this.deleting=!0;try{if(yield this.uS.confirm("Are you sure?","Delete Contact"))for(let e of this.contacts)e.checked&&(yield this.dbS.delete({id:e.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.prepare(),this.deleting=!1}});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye),w(we),w(un))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-contact-list"]],standalone:!0,features:[j],decls:42,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-auto",3,"click","disabled"],[1,"fas","fa-trash","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col",2,"height","calc(100vh - 160px)","overflow","auto"],[1,"table","table-borderless"],[1,"sticky-top"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"align-middle"],["type","checkbox",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"align-middle","text-center"],["alt","Avatar",1,"rounded-circle",2,"height","32px",3,"src"],[1,"d-flex","rounded-circle","bg-info","align-middle","text-center","text-white","p-0","mx-auto","my-0","fs-4",2,"width","32px","height","32px"],["type","button",1,"btn","btn-sm","btn-info"],["type","button",1,"btn","btn-sm","btn-warning"],["href","contact.value.website","target","_blank"],[1,"text-center","align-middle","text-nowrap"],[1,"fas","fa-pen-to-square","ptr","me-2",3,"click"],[1,"fas","fa-trash","text-danger","ptr","me-2",3,"click"],[1,"fas","fa-star","m-auto"],[1,"fas","fa-check","me-2"],[1,"fas","fa-sync","fa-spin","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Contact List"),u(),c(5,"button",3),b("click",function(){return n.deleteSelected()}),v(6,"i",4),f(7," Delete Selected "),u(),c(8,"button",5),b("click",function(){return n.nS.sCP("crm-contact")}),f(9,"New Contact"),u()()(),c(10,"div",6),v(11,"hr"),u(),c(12,"div",7)(13,"div",8)(14,"table",9)(15,"thead",10)(16,"tr")(17,"th"),f(18,"\xA0"),u(),c(19,"th",11),f(20,"Avatar"),u(),c(21,"th"),f(22,"Name"),u(),c(23,"th",11),f(24,"Status"),u(),c(25,"th"),f(26,"Website"),u(),c(27,"th"),f(28,"Address"),u(),c(29,"th"),f(30,"City"),u(),c(31,"th"),f(32,"State"),u(),c(33,"th"),f(34,"Country"),u(),c(35,"th"),f(36,"Added"),u(),c(37,"th",11),v(38,"i",12),u()()(),c(39,"tbody"),te(40,hO,28,14,"tr",null,aO),u()()()()()),i&2&&(h(5),A("disabled",n.deleting),h(35),ne(n.contacts))},dependencies:[Ce,wn,Pe,Ne,Yl]})};function mO(t,e){t&1&&(v(0,"i",17),f(1," Saving, please wait... "))}function gO(t,e){t&1&&(v(0,"i",18),f(1," Save "))}function _O(t,e){if(t&1){let i=U();c(0,"div",4)(1,"div",2)(2,"div",5)(3,"div",6)(4,"label",7),f(5,"Domain"),u(),c(6,"input",8),k("ngModelChange",function(o){S(i);let r=y();return F(r.mS.mailgunSettings.domain,o)||(r.mS.mailgunSettings.domain=o),M(o)}),u(),c(7,"label",9),f(8,"API Key"),u(),c(9,"input",10),k("ngModelChange",function(o){S(i);let r=y();return F(r.mS.mailgunSettings.apiKey,o)||(r.mS.mailgunSettings.apiKey=o),M(o)}),u(),c(10,"label",11),f(11,"Region"),u(),c(12,"select",12),k("ngModelChange",function(o){S(i);let r=y();return F(r.mS.mailgunSettings.region,o)||(r.mS.mailgunSettings.region=o),M(o)}),c(13,"option",13),f(14,"US"),u(),c(15,"option",14),f(16,"EU"),u()()(),c(17,"div",15)(18,"button",16),b("click",function(){S(i);let o=y();return M(o.save())}),T(19,mO,2,0)(20,gO,2,0),u()()()()()}if(t&2){let i=y();h(6),R("ngModel",i.mS.mailgunSettings.domain),h(3),R("ngModel",i.mS.mailgunSettings.apiKey),h(3),R("ngModel",i.mS.mailgunSettings.region),h(7),I(i.saving?19:20)}}var Hc=class t{constructor(e){this.mS=e}ngOnInit(){this.mS.populateMailgunSettings()}saving=!1;save=()=>E(this,null,function*(){this.saving=!0,yield this.mS.saveMailgunSettings(),this.saving=!1});static \u0275fac=function(i){return new(i||t)(w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-mailgun"]],standalone:!0,features:[j],decls:15,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-body"],["for","domain",1,"form-label"],["type","text","name","domain","id","domain",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","apikey",1,"form-label"],["type","password","name","apikey","id","apikey",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","region",1,"form-label"],["id","region","name","region",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","us"],["value","eu"],[1,"card-footer","border-top","d-flex"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"fas","fa-floppy-disk","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Mailgun Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),f(9," While sending email messages via LuckyNode plugin you will be needing a Mailgun account. "),v(10,"br"),f(11," We are enforcing this to ensure you don't have issues with email deliverability. "),v(12,"br"),f(13," In the future we are planning to support more email relay service providers, but for now, please bear with us. "),u()(),T(14,_O,21,4,"div",4),u()),i&2&&(h(14),I(n.mS.mailgunSettings?14:-1))},dependencies:[Ce,nn,on,it,It,Pe,Ne]})};var Gp=class{constructor(){this.subject=new Gn(1),this.subscriptions=new je}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){let o=n[e].currentValue;o!=null&&i(o)}}))}has(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){let o=n[e].currentValue;i(o)}}))}notFirst(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){let o=n[e].currentValue;i(o)}}))}notFirstAndEmpty(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){let o=n[e].currentValue;o!=null&&i(o)}}))}},ay=new G("NGX_ECHARTS_CONFIG"),ly=(()=>{let e=class e{constructor(n,o,r){this.el=o,this.ngZone=r,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new re,this.optionsError=new re,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Gn(1),this.resize$=new he,this.changeFilter=new Gp,this.resizeObFired=!1,this.echarts=n.echarts,this.theme=n.theme||null}ngOnChanges(n){this.changeFilter.doFilter(n)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(Tu(100,xn,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(n=>{for(let o of n)o.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",n=>this.onOptionsChange(n)),this.changeFilter.notFirstAndEmpty("merge",n=>this.setOption(n)),this.changeFilter.has("loading",n=>this.toggleLoading(!!n)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(n){this.chart?n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(o=>n?o.showLoading(this.loadingType,this.loadingOpts):o.hideLoading())}setOption(n,o){if(this.chart)try{this.chart.setOption(n,o)}catch(r){console.error(r),this.optionsError.emit(r)}}refreshChart(){return E(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let n=this.el.nativeElement;if(window&&window.getComputedStyle){let o=window.getComputedStyle(n,null).getPropertyValue("height");(!o||o==="0px")&&(!n.style.height||n.style.height==="0px")&&(n.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:r})=>r(n,this.theme,this.initOpts)))}initChart(){return E(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(n){return E(this,null,function*(){n&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(n){return this.chartInit.pipe(mi(o=>new ee(r=>(o.on(n,s=>this.ngZone.run(()=>r.next(s))),()=>{this.chart&&(this.chart.isDisposed()||o.off(n))}))))}};e.\u0275fac=function(o){return new(o||e)(w(ay),w(ye),w(ge))},e.\u0275dir=ae({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[yt]});let t=e;return t})(),zc=(t={})=>({provide:ay,useFactory:()=>Se(Y({},t),{echarts:()=>import("./chunk-25X2RZSW.js")})});var cy=(t,e)=>e.id;function vO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit;A("value",i.id),h(),Tt("",i.value.name," (",i.value.subject,")")}}function yO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit;A("value",i.id),h(),Tt("",i.name," (",i.native,")")}}function bO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit,n=y();A("value",i),h(),J(n.pad0(i.toString()))}}function CO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit,n=y();A("value",i),h(),J(n.pad0(i.toString()))}}var $c=class t{constructor(e,i,n){this.crmS=e;this.gS=i;this.dbS=n}chartOption={xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line"}]};campaign={id:"",type:"campaign",value:{name:"",emailTemplate:"",country:"0",send:{atH:"0",atM:"0",atTZ:"targetCountry",onMon:!0,onTue:!0,onWed:!0,onThu:!0,onFri:!0,onSat:!1,onSun:!1,limitPerDay:10,limitPerType:"globally"},futureContacts:"yes",status:"pending"}};labelWidth=150;hours=[...new Array(24).keys()];minutes=[...new Array(60).keys()];pad0=e=>`0${e}`.slice(-2);ngOnInit(){return E(this,null,function*(){yield this.crmS.populateCampaigns(),yield this.crmS.populateEmailTemplates(),yield this.gS.populateCountries(),this.crmS.currentCampaign!==""&&this.crmS.campaigns.has(this.crmS.currentCampaign)&&(this.campaign=Y({},this.crmS.campaigns.get(this.crmS.currentCampaign)),this.campaign.value.country===0&&(this.campaign.value.country="0"))})}ngOnDestroy(){this.crmS.currentCampaign=""}areWeReadyToSave=()=>{for(let e of Object.keys(this.campaign.value))if(!this.campaign.value[e])return!1;return!0};saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.campaign.id)yield this.dbS.update(this.campaign);else{let e=yield this.dbS.insert(this.campaign);e.id&&(this.campaign.id=e.id)}yield this.crmS.populateCampaigns(),this.saving=!1});checkingNewContacts=!1;checkNewContacts=()=>E(this,null,function*(){this.checkingNewContacts=!0,yield this.save(),yield this.dbS.insertTask({type:"initiateCampaign",data:this.campaign.id}),this.checkingNewContacts=!1});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign"]],standalone:!0,features:[nt([zc()]),j],decls:90,vars:33,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"fas","fa-rotate","me-2"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"input-group","input-group-sm","mb-1"],[1,"input-group-text"],["type","text","name","cName","id","cName",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","cTemplate","name","cTemplate",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],[3,"value"],["id","cCountry","name","cCountry",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModelChange","ngModel"],["id","atH","name","atH",1,"form-select","form-select-sm",2,"max-width","100px",3,"ngModelChange","ngModel"],["id","atM","name","atM",1,"form-select","form-select-sm",2,"max-width","100px",3,"ngModelChange","ngModel"],["id","atTZ","name","atTZ",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","targetCountry"],["value","server"],["id","fc","name","fc",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","yes"],["value","no"],["type","number","name","lpd","id","lpd","min","1",3,"ngModelChange","ngModel"],["value","globally"],["value","country"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Campaign"),u(),c(5,"button",3),b("click",function(){return n.save()}),v(6,"i",4),f(7," Save "),u(),c(8,"button",5),b("click",function(){return n.checkNewContacts()}),v(9,"i",6),f(10," Check for New Contacts "),u()()(),c(11,"div",7),v(12,"hr"),u(),c(13,"div",8)(14,"div",9)(15,"div",10)(16,"span",11),f(17,"Name"),u(),c(18,"input",12),k("ngModelChange",function(r){return F(n.campaign.value.name,r)||(n.campaign.value.name=r),r}),u()(),c(19,"div",10)(20,"span",11),f(21,"Email Template"),u(),c(22,"select",13),k("ngModelChange",function(r){return F(n.campaign.value.emailTemplate,r)||(n.campaign.value.emailTemplate=r),r}),te(23,vO,2,3,"option",14,cy),u()(),c(25,"div",10)(26,"span",11),f(27,"Send to all contacts in"),u(),c(28,"select",15),k("ngModelChange",function(r){return F(n.campaign.value.country,r)||(n.campaign.value.country=r),r}),c(29,"option",14),f(30,"any country"),u(),te(31,yO,2,3,"option",14,cy),u()(),c(33,"div",10)(34,"span",11),f(35,"Sending Days"),u(),c(36,"div",11),f(37," Mon:\xA0"),c(38,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onMon,r)||(n.campaign.value.send.onMon=r),r}),u()(),c(39,"div",11),f(40," Tue:\xA0"),c(41,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onTue,r)||(n.campaign.value.send.onTue=r),r}),u()(),c(42,"div",11),f(43," Wed:\xA0"),c(44,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onWed,r)||(n.campaign.value.send.onWed=r),r}),u()(),c(45,"div",11),f(46," Thu:\xA0"),c(47,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onThu,r)||(n.campaign.value.send.onThu=r),r}),u()(),c(48,"div",11),f(49," Fri:\xA0"),c(50,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onFri,r)||(n.campaign.value.send.onFri=r),r}),u()(),c(51,"div",11),f(52," Sat:\xA0"),c(53,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onSat,r)||(n.campaign.value.send.onSat=r),r}),u()(),c(54,"div",11),f(55," Sun:\xA0"),c(56,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onSun,r)||(n.campaign.value.send.onSun=r),r}),u()()(),c(57,"div",10)(58,"span",11),f(59,"Sending Time"),u(),c(60,"select",17),k("ngModelChange",function(r){return F(n.campaign.value.send.atH,r)||(n.campaign.value.send.atH=r),r}),te(61,bO,2,2,"option",14,fs),u(),c(63,"select",18),k("ngModelChange",function(r){return F(n.campaign.value.send.atM,r)||(n.campaign.value.send.atM=r),r}),te(64,CO,2,2,"option",14,fs),u(),c(66,"span",11),f(67,"of"),u(),c(68,"select",19),k("ngModelChange",function(r){return F(n.campaign.value.send.atTZ,r)||(n.campaign.value.send.atTZ=r),r}),c(69,"option",20),f(70,"target country time"),u(),c(71,"option",21),f(72,"server time"),u()()(),c(73,"div",10)(74,"span",11),f(75,"Future Contacts"),u(),c(76,"select",22),k("ngModelChange",function(r){return F(n.campaign.value.futureContacts,r)||(n.campaign.value.futureContacts=r),r}),c(77,"option",23),f(78,"Include contacts created in the future"),u(),c(79,"option",24),f(80,"Don't include contacts in the future"),u()()(),c(81,"div",10)(82,"span",11),f(83,"Limit Sending"),u(),c(84,"input",25),k("ngModelChange",function(r){return F(n.campaign.value.send.limitPerDay,r)||(n.campaign.value.send.limitPerDay=r),r}),u(),c(85,"select",22),k("ngModelChange",function(r){return F(n.campaign.value.send.limitPerType,r)||(n.campaign.value.send.limitPerType=r),r}),c(86,"option",26),f(87,"per day Globally"),u(),c(88,"option",27),f(89,"per day per Country"),u()()()()()()),i&2&&(h(5),A("disabled",!n.areWeReadyToSave()||n.saving),h(3),A("disabled",n.checkingNewContacts),h(8),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.emailTemplate),h(),ne(n.crmS.emailTemplates.values()),h(3),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.country),h(),A("value",0),h(2),ne(n.gS.countries.values()),h(3),be("width",n.labelWidth,"px"),h(4),R("ngModel",n.campaign.value.send.onMon),h(3),R("ngModel",n.campaign.value.send.onTue),h(3),R("ngModel",n.campaign.value.send.onWed),h(3),R("ngModel",n.campaign.value.send.onThu),h(3),R("ngModel",n.campaign.value.send.onFri),h(3),R("ngModel",n.campaign.value.send.onSat),h(3),R("ngModel",n.campaign.value.send.onSun),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.send.atH),h(),ne(n.hours),h(2),R("ngModel",n.campaign.value.send.atM),h(),ne(n.minutes),h(4),R("ngModel",n.campaign.value.send.atTZ),h(6),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.futureContacts),h(6),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.send.limitPerDay),h(),R("ngModel",n.campaign.value.send.limitPerType))},dependencies:[Ce,nn,on,it,bo,wn,It,Pe,pp,Ne]})};var DO=(t,e)=>e.id;function wO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),u(),c(7,"td"),f(8),u(),c(9,"td"),f(10),u(),c(11,"td",9)(12,"i",11),b("click",function(){let o=S(i).$implicit,r=y();return M(r.edit(o.id))}),u()()()}if(t&2){let i,n=e.$implicit,o=y();h(2),J(n.value.name||"No Name Given"),h(2),J(n.value.subject||"No Subject Given"),h(2),B(" ",n.value.attachments.length," "),h(2),J(((i=o.crmS.contacts.get(n.value.contact))==null||i.value==null?null:i.value.name)||"N/A"),h(2),B(" ",n.value.testEmailAddress," ")}}var Gc=class t{constructor(e,i){this.nS=e;this.crmS=i}ngOnInit(){this.crmS.populateEmailTemplates(),this.crmS.populateContacts()}edit=e=>{this.crmS.currentEmailTemplate=e,this.nS.sCP("crm-email-template")};static \u0275fac=function(i){return new(i||t)(w(we),w(Be))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-email-template-list"]],standalone:!0,features:[j],decls:29,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"],[1,"sticky-top","border"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"fas","fa-pen-to-square","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Email Template List"),u(),c(5,"button",3),b("click",function(){return n.nS.sCP("crm-email-template")}),f(6,"New Template"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead",8)(13,"tr")(14,"th"),f(15,"Name"),u(),c(16,"th"),f(17,"Subject"),u(),c(18,"th"),f(19,"Attachments"),u(),c(20,"th"),f(21,"Testing Contact"),u(),c(22,"th"),f(23,"Testing Email Address"),u(),c(24,"th",9),v(25,"i",10),u()()(),c(26,"tbody"),te(27,wO,13,5,"tr",null,DO),u()()()()()),i&2&&(h(27),ne(n.crmS.emailTemplates.values()))}})};var Wc={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},uy=new G("config",{providedIn:"root",factory:()=>({modules:Wc})});var EO=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],SO=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function MO(t,e){t&1&&v(0,"div",0)}function TO(t,e){t&1&&v(0,"div",0)}var Yc=(t,e)=>t||e||"html",IO=()=>new ee(t=>{let e=requestAnimationFrame(()=>{t.next(),t.complete()});return()=>cancelAnimationFrame(e)}),xO=(()=>{let e=class e{constructor(n,o){this.config=o,this.quill$=_u(()=>E(this,null,function*(){if(!this.Quill){let r=this.document.addEventListener;this.document.addEventListener=this.document.__zone_symbol__addEventListener||this.document.addEventListener;let s=yield import("./chunk-QH7V45P4.js");this.document.addEventListener=r,this.Quill=s.default?.default??s.default??s}return this.config.customOptions?.forEach(r=>{let s=this.Quill.import(r.import);s.whitelist=r.whitelist,this.Quill.register(s,!0,this.config.suppressGlobalRegisterWarning)}),yield this.registerCustomModules(this.Quill,this.config.customModules,this.config.suppressGlobalRegisterWarning)})).pipe(Eu({bufferSize:1,refCount:!0})),this.document=n.get(Fe),this.config||(this.config={modules:Wc})}getQuill(){return this.quill$}registerCustomModules(n,o,r){return E(this,null,function*(){if(Array.isArray(o))for(let{implementation:s,path:a}of o)gu(s)&&(s=yield On(s)),n.register(a,s,r);return n})}};e.\u0275fac=function(o){return new(o||e)(H(Ue),H(uy,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),OO=(()=>{let e=class e{constructor(){this.format=De(void 0),this.theme=De(void 0),this.modules=De(void 0),this.debug=De(!1),this.readOnly=De(!1),this.placeholder=De(void 0),this.maxLength=De(void 0),this.minLength=De(void 0),this.required=De(!1),this.formats=De(void 0),this.customToolbarPosition=De("top"),this.sanitize=De(void 0),this.beforeRender=De(void 0),this.styles=De(null),this.registry=De(void 0),this.bounds=De(void 0),this.customOptions=De([]),this.customModules=De([]),this.trackChanges=De(void 0),this.classes=De(void 0),this.trimOnValidation=De(!1),this.linkPlaceholder=De(void 0),this.compareValues=De(!1),this.filterNull=De(!1),this.debounceTime=De(void 0),this.defaultEmptyValue=De(null),this.onEditorCreated=new re,this.onEditorChanged=new re,this.onContentChanged=new re,this.onSelectionChanged=new re,this.onFocus=new re,this.onBlur=new re,this.onNativeFocus=new re,this.onNativeBlur=new re,this.disabled=!1,this.toolbarPosition=Si("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=C(ye),this.document=C(Fe),this.cd=C(Jt),this.domSanitizer=C(sp),this.platformId=C(Gt),this.renderer=C(Wt),this.zone=C(ge),this.service=C(xO),this.destroyRef=C(ei),this.valueGetter=De(n=>{let o=n.getSemanticHTML();this.isEmptyValue(o)&&(o=this.defaultEmptyValue());let r=o,s=Yc(this.format(),this.service.config.format);if(s==="text")r=n.getText();else if(s==="object")r=n.getContents();else if(s==="json")try{r=JSON.stringify(n.getContents())}catch{r=n.getText()}return r}),this.valueSetter=De((n,o)=>{let r=Yc(this.format(),this.service.config.format);if(r==="html")return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(o=this.domSanitizer.sanitize(bn.HTML,o)),n.clipboard.convert({html:o});if(r==="json")try{return JSON.parse(o)}catch{return[{insert:o}]}return o}),this.selectionChangeHandler=(n,o,r)=>{let s=this.trackChanges()||this.service.config.trackChanges,a=!n&&!!this.onModelTouched&&(r==="user"||s&&s==="all");!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!a||this.zone.run(()=>{n===null?this.onBlur.emit({editor:this.quillEditor,source:r}):o===null&&this.onFocus.emit({editor:this.quillEditor,source:r}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:o,range:n,source:r}),a&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(n,o,r)=>{let s=this.quillEditor.getText(),a=this.quillEditor.getContents(),l=this.quillEditor.getSemanticHTML();this.isEmptyValue(l)&&(l=this.defaultEmptyValue());let d=this.trackChanges()||this.service.config.trackChanges,p=(r==="user"||d&&d==="all")&&!!this.onModelChange;!this.onContentChanged.observed&&!p||this.zone.run(()=>{if(p){let m=this.valueGetter();this.onModelChange(m(this.quillEditor))}this.onContentChanged.emit({content:a,delta:n,editor:this.quillEditor,html:l,oldDelta:o,source:r,text:s}),this.cd.markForCheck()})},this.editorChangeHandler=(n,o,r,s)=>{if(this.onEditorChanged.observed)if(n==="text-change"){let a=this.quillEditor.getText(),l=this.quillEditor.getContents(),d=this.quillEditor.getSemanticHTML();this.isEmptyValue(d)&&(d=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:l,delta:o,editor:this.quillEditor,event:n,html:d,oldDelta:r,source:s,text:a}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:n,oldRange:r,range:o,source:s}),this.cd.markForCheck()})}}static normalizeClassNames(n){return n.trim().split(" ").reduce((r,s)=>{let a=s.trim();return a&&r.push(a),r},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){vr(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(gt(n=>{let o=[this.service.registerCustomModules(n,this.customModules())],r=this.beforeRender()??this.service.config.beforeRender;return r&&o.push(r()),Promise.all(o).then(()=>n)})).subscribe(n=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");let o=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),r=Object.assign({},this.modules()||this.service.config.modules);o?r.toolbar=o:r.toolbar===void 0&&(r.toolbar=Wc.toolbar);let s=this.placeholder()!==void 0?this.placeholder():this.service.config.placeholder;s===void 0&&(s="Insert text here ...");let a=this.styles();a&&Object.keys(a).forEach(_=>{this.renderer.setStyle(this.editorElem,_,a[_])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(_=>{let g=n.import(_.import);g.whitelist=_.whitelist,n.register(g,!0)});let l=this.bounds()&&this.bounds()==="self"?this.editorElem:this.bounds();l||(l=this.service.config.bounds?this.service.config.bounds:this.document.body);let d=this.debug();!d&&d!==!1&&this.service.config.debug&&(d=this.service.config.debug);let p=this.readOnly();!p&&this.readOnly()!==!1&&(p=this.service.config.readOnly!==void 0?this.service.config.readOnly:!1);let m=this.formats();if(!m&&m===void 0&&(m=this.service.config.formats?[...this.service.config.formats]:this.service.config.formats===null?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new n(this.editorElem,{bounds:l,debug:d,formats:m,modules:r,placeholder:s,readOnly:p,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed){xe(this.quillEditor.scroll.domNode,"blur").pipe(ai(this.destroyRef)).subscribe(()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"}));let _=this.quillEditor.getModule("toolbar");_.container&&xe(_.container,"mousedown").pipe(ai(this.destroyRef)).subscribe(g=>g.preventDefault())}if(this.onNativeFocus.observed&&xe(this.quillEditor.scroll.domNode,"focus").pipe(ai(this.destroyRef)).subscribe(()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){let g=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");g?.dataset&&(g.dataset.link=this.linkPlaceholder())}}),this.content){if(Yc(this.format(),this.service.config.format)==="text")this.quillEditor.setText(this.content,"silent");else{let x=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(x,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),!(!this.onEditorCreated.observed&&!this.onValidatorChanged)&&IO().pipe(ai(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(n){if(this.quillEditor){if(n.readOnly&&this.quillEditor.enable(!n.readOnly.currentValue),n.placeholder&&(this.quillEditor.root.dataset.placeholder=n.placeholder.currentValue),n.styles){let o=n.styles.currentValue,r=n.styles.previousValue;r&&Object.keys(r).forEach(s=>{this.renderer.removeStyle(this.editorElem,s)}),o&&Object.keys(o).forEach(s=>{this.renderer.setStyle(this.editorElem,s,this.styles()[s])})}if(n.classes){let o=n.classes.currentValue,r=n.classes.previousValue;r&&this.removeClasses(r),o&&this.addClasses(o)}n.debounceTime&&this.addQuillEventListeners()}}addClasses(n){e.normalizeClassNames(n).forEach(o=>{this.renderer.addClass(this.editorElem,o)})}removeClasses(n){e.normalizeClassNames(n).forEach(o=>{this.renderer.removeClass(this.editorElem,o)})}writeValue(n){if(this.filterNull()&&n===null||(this.content=n,!this.quillEditor))return;let o=Yc(this.format(),this.service.config.format),s=this.valueSetter()(this.quillEditor,n);if(this.compareValues()){let a=this.quillEditor.getContents();if(JSON.stringify(a)===JSON.stringify(s))return}if(n){o==="text"?this.quillEditor.setText(n):this.quillEditor.setContents(s);return}this.quillEditor.setText("")}setDisabledState(n=this.disabled){this.disabled=n,this.quillEditor&&(n?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}registerOnValidatorChange(n){this.onValidatorChanged=n}validate(){if(!this.quillEditor)return null;let n={},o=!0,r=this.quillEditor.getText(),s=this.trimOnValidation()?r.trim().length:r.length===1&&r.trim().length===0?0:r.length-1,a=this.quillEditor.getContents().ops,l=!!a&&a.length===1&&[`16 `,""].includes(a[0].insert?.toString());return this.minLength()&&s&&s<this.minLength()&&(n.minLengthError={given:s,minLength:this.minLength()},o=!1),this.maxLength()&&s>this.maxLength()&&(n.maxLengthError={given:s,maxLength:this.maxLength()},o=!1),this.required()&&!s&&l&&(n.requiredError={empty:!0},o=!1),o?null:n}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new je,this.subscription.add(xe(this.quillEditor,"selection-change").subscribe(([r,s,a])=>{this.selectionChangeHandler(r,s,a)}));let n=xe(this.quillEditor,"text-change"),o=xe(this.quillEditor,"editor-change");typeof this.debounceTime()=="number"&&(n=n.pipe(Ji(this.debounceTime())),o=o.pipe(Ji(this.debounceTime()))),this.subscription.add(n.subscribe(([r,s,a])=>{this.textChangeHandler(r,s,a)})),this.subscription.add(o.subscribe(([r,s,a,l])=>{this.editorChangeHandler(r,s,a,l)}))})}dispose(){this.subscription!==null&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(n){return n==="<p></p>"||n==="<div></div>"||n==="<p><br></p>"||n==="<div><br></div>"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,inputs:{format:[1,"format"],theme:[1,"theme"],modules:[1,"modules"],debug:[1,"debug"],readOnly:[1,"readOnly"],placeholder:[1,"placeholder"],maxLength:[1,"maxLength"],minLength:[1,"minLength"],required:[1,"required"],formats:[1,"formats"],customToolbarPosition:[1,"customToolbarPosition"],sanitize:[1,"sanitize"],beforeRender:[1,"beforeRender"],styles:[1,"styles"],registry:[1,"registry"],bounds:[1,"bounds"],customOptions:[1,"customOptions"],customModules:[1,"customModules"],trackChanges:[1,"trackChanges"],classes:[1,"classes"],trimOnValidation:[1,"trimOnValidation"],linkPlaceholder:[1,"linkPlaceholder"],compareValues:[1,"compareValues"],filterNull:[1,"filterNull"],debounceTime:[1,"debounceTime"],defaultEmptyValue:[1,"defaultEmptyValue"],valueGetter:[1,"valueGetter"],valueSetter:[1,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[yt]});let t=e;return t})(),dy=(()=>{let e=class e extends OO{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275cmp=V({type:e,selectors:[["quill-editor"]],standalone:!0,features:[nt([{multi:!0,provide:Hn,useExisting:at(()=>e)},{multi:!0,provide:wr,useExisting:at(()=>e)}]),tt,j],ngContentSelectors:SO,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(o,r){o&1&&(Al(EO),T(0,MO,1,0,"div",0),cr(1),cr(2,1),cr(3,2),T(4,TO,1,0,"div",0)),o&2&&(I(r.toolbarPosition()!=="top"?0:-1),h(4),I(r.toolbarPosition()==="top"?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]});let t=e;return t})();var NO=["cInstance"],AO=["instance"];function RO(t,e){return this.attachment}var kO=()=>({height:"calc(100vh - 200px)"});function FO(t,e){t&1&&v(0,"i",6)}function PO(t,e){t&1&&v(0,"i",7)}function LO(t,e){t&1&&v(0,"i",9)}function VO(t,e){t&1&&v(0,"i",7)}function BO(t,e){t&1&&v(0,"i",40)}function jO(t,e){t&1&&v(0,"i",41)}function UO(t,e){t&1&&v(0,"i",42)}function HO(t,e){if(t&1){let i=U();c(0,"div",39)(1,"span"),T(2,BO,1,0,"i",40)(3,jO,1,0,"i",41)(4,UO,1,0,"i",42),f(5),u(),c(6,"i",43),b("click",function(){S(i);let o=y().$index,r=y();return M(r.removeAttachment(o))}),u()()}if(t&2){let i,n=e;h(2),I(n.mime_type==="application/pdf"?2:n.media_type==="image"?3:4),h(3),B(" ",(i=(i=n.title==null?null:n.title.rendered)!==null&&i!==void 0?i:n.guid.rendered)!==null&&i!==void 0?i:"No ID"," ")}}function zO(t,e){if(t&1&&T(0,HO,7,2,"div",39),t&2){let i,n=e.$implicit,o=y();I((i=o.attachedMedia.get(n))?0:-1,i)}}var qc=class t{constructor(e,i,n,o,r,s){this.nS=e;this.dbS=i;this.mS=n;this.crmS=o;this.uS=r;this.aS=s}labelWidth="114";template={id:"",type:"email-template",value:{name:"",from:{name:"",address:""},replyTo:{name:"",address:""},subject:"",content:"",attachments:[],contact:"",testEmailAddress:""}};attachment;quill;modules={toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"super"},{script:"sub"}],[{header:"1"},{header:"2"},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["direction",{align:[]}],["link","image","video","formula"],["clean"]]};attachedMedia=new Map;created(e){this.quill=e}insertAtCaret=e=>{let i=this.quill.getSelection(!0);this.quill.insertText(i,e)};insertVariable=e=>{e="{{"+e+"}}",this.insertAtCaret(e)};saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.template.id)yield this.dbS.update(this.template);else{let e=yield this.dbS.insert(this.template);e.id&&(this.template.id=e.id)}yield this.crmS.populateEmailTemplates(),this.saving=!1});testing=!1;test=()=>E(this,null,function*(){if(this.testing=!0,yield this.save(),!this.template.id){this.uS.alert("Please save template before testing","Unsaved Template","OK"),this.testing=!1;return}if(!this.template.value.contact){this.uS.alert("You need to assign a contact to test the template.","Missing Contact Assignment","OK"),this.testing=!1;return}if(!this.template.value.testEmailAddress){this.uS.alert("You need to assign an email address as the test recipient.","Missing Contact Assignment","OK"),this.testing=!1;return}if(!this.aS.mailgunSettings?.domain||!this.aS.mailgunSettings?.apiKey||!this.aS.mailgunSettings?.region){(yield this.uS.confirm("In order to send email messages using LuckyNode plugin, you need to enter your Mailgun Account settings as a prerequisite.","Missing Mailgun Settings","Go to Mailgun Settings","Stay on this screen"))&&this.nS.sCP("maintenance-mailgun"),this.testing=!1;return}yield this.crmS.testEmailTemplate(this.template.id),this.testing=!1});ngOnInit(){return E(this,null,function*(){yield this.crmS.populateEmailTemplates(),yield this.crmS.populateContacts(),yield this.mS.populateMediaList(),this.crmS.currentEmailTemplate!==""&&this.crmS.emailTemplates.has(this.crmS.currentEmailTemplate)&&(this.template=Y({},this.crmS.emailTemplates.get(this.crmS.currentEmailTemplate)),console.log(this.template),this.populateAttachedMedia()),yield this.aS.populateMailgunSettings();let e=this.template.value.contact;this.template.value.contact="0",setTimeout(()=>{this.template.value.contact=e},0)})}ngOnDestroy(){this.crmS.currentEmailTemplate=""}populateAttachedMedia=()=>{for(let e of this.template.value.attachments)for(let i of this.mS.mediaList||[])i.id===e&&this.attachedMedia.set(e,i)};cFocus$=new he;cClick$=new he;cInstance;searchContact=e=>{let i=e.pipe(Ji(200),Vo()),n=this.cClick$.pipe(_t(()=>!this.cInstance.isPopupOpen())),o=this.cFocus$;return zr(i,o,n).pipe(Me(r=>r===""?[...this.crmS.contacts.values()]:[...this.crmS.contacts.values()].filter(s=>s.value.name.toLowerCase().indexOf(r.toLowerCase())>-1).slice(0,10)))};formatContact=e=>typeof e=="object"?(e?.value||{name:""}).name:this.crmS.contacts.has(e)?this.crmS.contacts.get(e)?.value?.name||"Contact without name":"Contact Not found";selectContact=e=>{setTimeout(()=>{this.template.value.contact=e.item.id},0)};formatMedia=e=>decodeURI((e?.title||{rendered:""}).rendered);selectMedia=e=>{let i=!1;for(let n of this.template.value.attachments)n===e?.item?.id&&(i=!0);!i&&e?.item?.id&&(this.template.value.attachments.push(e.item.id),this.populateAttachedMedia()),setTimeout(()=>{this.attachment=null},100)};focus$=new he;click$=new he;instance;searchMedia=e=>{let i=e.pipe(Ji(200),Vo()),n=this.click$.pipe(_t(()=>!this.instance.isPopupOpen())),o=this.focus$;return zr(i,o,n).pipe(Me(r=>(r===""?this.mS.mediaList:(this.mS.mediaList||[]).filter(s=>s.title.rendered.toLowerCase().indexOf(r.toLowerCase())>-1)).slice(0,10)))};removeAttachment=e=>(this.template.value.attachments||[]).splice(e,1);delete=()=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Template"))&&this.template.id&&(yield this.dbS.delete({id:this.template.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.crmS.populateEmailTemplates(),this.nS.sCP("crm-email-template-list")}});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(Li),w(Be),w(un),w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-email-template"]],viewQuery:function(i,n){if(i&1&&(ur(NO,7),ur(AO,7)),i&2){let o;Kt(o=Zt())&&(n.cInstance=o.first),Kt(o=Zt())&&(n.instance=o.first)}},standalone:!0,features:[j],decls:96,vars:41,consts:[["cInstance","ngbTypeahead"],["instance","ngbTypeahead"],[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],[1,"fas","fa-sync","fa-spin","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"far","fa-eye","me-2"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-3","text-danger",3,"click"],[1,"fas","fa-trash","me-2"],[1,"row","mt-0"],[1,"row"],[1,"col-9"],["format","html","theme","snow",3,"ngModelChange","onEditorCreated","modules","styles","ngModel"],[1,"col-3"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],[1,"input-group","input-group-sm","mb-1"],["for","tName",1,"input-group-text"],["type","text","name","tName","id","tName",1,"form-control",3,"ngModelChange","ngModel"],["for","tSubject",1,"input-group-text"],["type","text","name","tSubject","id","tSubject",1,"form-control",3,"ngModelChange","ngModel"],["for","tFromName",1,"input-group-text"],["type","text","name","tFromName","id","tFromName",1,"form-control",3,"ngModelChange","ngModel"],["for","tFrom",1,"input-group-text"],["type","text","name","tFrom","id","tFrom",1,"form-control",3,"ngModelChange","ngModel"],["for","trt",1,"input-group-text"],["type","text","name","trt","id","trt",1,"form-control",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-sm","btn-outline-secondary","mb-1","me-1",3,"click"],[1,"mb-3"],["for","tContact",1,"form-label"],["id","tContact","name","tContact","type","text",1,"form-control","form-control-sm",3,"ngModelChange","selectItem","focus","click","ngModel","ngbTypeahead","inputFormatter","resultFormatter","selectOnExact","editable"],["for","tEmail",1,"form-label"],["type","email","name","tEmail","id","tEmail",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","tEmailHelp",1,"form-text"],["id","attachment","name","attachment","type","text",1,"form-control","form-control-sm",3,"ngModelChange","selectItem","focus","click","ngModel","ngbTypeahead","inputFormatter","resultFormatter","selectOnExact","editable"],[1,"d-flex","justify-content-between","p-2"],[1,"fa-solid","fa-file-pdf"],[1,"fa-solid","fa-file-image"],[1,"fa-solid","fa-file"],[1,"fas","fa-trash","ptr","text-danger",3,"click"]],template:function(i,n){if(i&1){let o=U();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"h5"),f(4,"Email Template"),u(),c(5,"button",5),b("click",function(){return S(o),M(n.save())}),T(6,FO,1,0,"i",6)(7,PO,1,0,"i",7),f(8," Save "),u(),c(9,"button",8),b("click",function(){return S(o),M(n.test())}),T(10,LO,1,0,"i",9)(11,VO,1,0,"i",7),f(12," Test "),u(),c(13,"button",10),b("click",function(){return S(o),M(n.delete())}),v(14,"i",11),f(15," Delete"),u()()(),c(16,"div",12),v(17,"hr"),u(),c(18,"div",13)(19,"div",14)(20,"quill-editor",15),k("ngModelChange",function(s){return S(o),F(n.template.value.content,s)||(n.template.value.content=s),M(s)}),b("onEditorCreated",function(s){return S(o),M(n.created(s))}),u()(),c(21,"div",16)(22,"div",17)(23,"h5",18),f(24,"Template"),u(),c(25,"div",19)(26,"div",20)(27,"label",21),f(28,"Name"),u(),c(29,"input",22),k("ngModelChange",function(s){return S(o),F(n.template.value.name,s)||(n.template.value.name=s),M(s)}),u()(),c(30,"div",20)(31,"label",23),f(32,"Subject:"),u(),c(33,"input",24),k("ngModelChange",function(s){return S(o),F(n.template.value.subject,s)||(n.template.value.subject=s),M(s)}),u()(),c(34,"div",20)(35,"label",25),f(36,"From Name:"),u(),c(37,"input",26),k("ngModelChange",function(s){return S(o),F(n.template.value.from.name,s)||(n.template.value.from.name=s),M(s)}),u()(),c(38,"div",20)(39,"label",27),f(40,"From:"),u(),c(41,"input",28),k("ngModelChange",function(s){return S(o),F(n.template.value.from.address,s)||(n.template.value.from.address=s),M(s)}),u()(),c(42,"div",20)(43,"label",29),f(44,"Reply To Name:"),u(),c(45,"input",30),k("ngModelChange",function(s){return S(o),F(n.template.value.replyTo.name,s)||(n.template.value.replyTo.name=s),M(s)}),u()(),c(46,"div",20)(47,"label",29),f(48,"Reply To Address:"),u(),c(49,"input",30),k("ngModelChange",function(s){return S(o),F(n.template.value.replyTo.address,s)||(n.template.value.replyTo.address=s),M(s)}),u()()()(),c(50,"div",17)(51,"h5",18),f(52,"Available Variables"),u(),c(53,"div",19)(54,"button",31),b("click",function(){return S(o),M(n.insertVariable("name"))}),f(55,"Name"),u(),c(56,"button",31),b("click",function(){return S(o),M(n.insertVariable("titleCaseName"))}),f(57,"Name (Title Case)"),u(),c(58,"button",31),b("click",function(){return S(o),M(n.insertVariable("type"))}),f(59,"Type"),u(),c(60,"button",31),b("click",function(){return S(o),M(n.insertVariable("titleCaseType"))}),f(61,"Type (Title Case)"),u(),c(62,"button",31),b("click",function(){return S(o),M(n.insertVariable("address"))}),f(63,"Address"),u(),c(64,"button",31),b("click",function(){return S(o),M(n.insertVariable("city"))}),f(65,"City"),u(),c(66,"button",31),b("click",function(){return S(o),M(n.insertVariable("state"))}),f(67,"State"),u(),c(68,"button",31),b("click",function(){return S(o),M(n.insertVariable("country"))}),f(69,"Country"),u(),c(70,"button",31),b("click",function(){return S(o),M(n.insertVariable("website"))}),f(71,"Website"),u()()(),c(72,"div",17)(73,"h5",18),f(74,"Testing"),u(),c(75,"div",19)(76,"div",32)(77,"label",33),f(78,"Select a Contact for Testing"),u(),c(79,"input",34,0),k("ngModelChange",function(s){return S(o),F(n.template.value.contact,s)||(n.template.value.contact=s),M(s)}),b("selectItem",function(s){return S(o),M(n.selectContact(s))})("focus",function(s){return S(o),M(n.cFocus$.next(s.target.value))})("click",function(s){return S(o),M(n.cClick$.next(s.target.value))}),u()(),c(81,"div",32)(82,"label",35),f(83,"Email Address for Testing"),u(),c(84,"input",36),k("ngModelChange",function(s){return S(o),F(n.template.value.testEmailAddress,s)||(n.template.value.testEmailAddress=s),M(s)}),u(),c(85,"div",37),f(86,"You can enter multiple email addresses separated by comma or semicolon."),u()()()(),c(87,"div",17)(88,"h5",18),f(89,"Attachments"),u(),c(90,"div",19)(91,"div",32)(92,"input",38,1),k("ngModelChange",function(s){return S(o),F(n.attachment,s)||(n.attachment=s),M(s)}),b("selectItem",function(s){return S(o),M(n.selectMedia(s))})("focus",function(s){return S(o),M(n.focus$.next(s.target.value))})("click",function(s){return S(o),M(n.click$.next(s.target.value))}),u(),te(94,zO,1,1,null,null,RO,!0),u()()()()()()}i&2&&(h(5),A("disabled",n.saving),h(),I(n.saving?-1:6),h(),I(n.saving?7:-1),h(2),A("disabled",n.testing),h(),I(n.testing?-1:10),h(),I(n.testing?11:-1),h(9),A("modules",n.modules)("styles",fr(40,kO)),R("ngModel",n.template.value.content),h(7),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.subject),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.from.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.from.address),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.replyTo.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.replyTo.address),h(30),R("ngModel",n.template.value.contact),A("ngbTypeahead",n.searchContact)("inputFormatter",n.formatContact)("resultFormatter",n.formatContact)("selectOnExact",!0)("editable",!1),h(5),R("ngModel",n.template.value.testEmailAddress),h(8),R("ngModel",n.attachment),A("ngbTypeahead",n.searchMedia)("inputFormatter",n.formatMedia)("resultFormatter",n.formatMedia)("selectOnExact",!0)("editable",!1),h(2),ne(n.template.value.attachments))},dependencies:[dy,Ce,it,Pe,Ne,Cc,sy],styles:["quill-editor[_ngcontent-%COMP%]{display:block}"]})};var Wp=(t,e)=>e.id;function $O(t,e){if(t&1&&(c(0,"h5"),f(1),u()),t&2){let i=y();h(),B("Contact Details: ",i.contact.value.name||"No Name Given","")}}function GO(t,e){t&1&&(c(0,"h5"),f(1,"New Contact"),u())}function WO(t,e){if(t&1){let i=U();c(0,"button",32),b("click",function(){S(i);let o=y();return M(o.browse())}),v(1,"i",33),f(2," Browse for Contact Information"),u()}}function YO(t,e){if(t&1&&(c(0,"span",14),v(1,"img",34),u(),c(2,"a",18),v(3,"i",19),u()),t&2){let i=y();h(),A("src",i.contact.value.avatar,Bn),h(),A("href",i.contact.value.avatar,Bn)}}function qO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",35)(2,"input",36),k("ngModelChange",function(o){let r=S(i).$index,s=y();return F(s.contact.value.emailAddresses[r],o)||(s.contact.value.emailAddresses[r]=o),M(o)}),u()(),c(3,"td",23)(4,"i",37),b("click",function(){let o=S(i).$index,r=y();return M(r.deleteEmail(o))}),u()()()}if(t&2){let i=e.$index,n=y();h(2),ni("name","email",i,""),ni("id","email",i,""),R("ngModel",n.contact.value.emailAddresses[i])}}function KO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",35)(2,"input",38),k("ngModelChange",function(o){let r=S(i).$index,s=y();return F(s.contact.value.phoneNumbers[r],o)||(s.contact.value.phoneNumbers[r]=o),M(o)}),u()(),c(3,"td",23)(4,"i",37),b("click",function(){let o=S(i).$index,r=y();return M(r.deletePhone(o))}),u()()()}if(t&2){let i=e.$index,n=y();h(2),ni("name","phone",i,""),ni("id","phone",i,""),R("ngModel",n.contact.value.phoneNumbers[i])}}function ZO(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),J(i.name)}}function QO(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),J(i.name)}}function JO(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),Tt("",i.name," (",i.native,")")}}function XO(t,e){if(t&1){let i=U();c(0,"div",13)(1,"span",14),f(2,"Google Maps Link"),u(),c(3,"input",39),k("ngModelChange",function(o){S(i);let r=y();return F(r.contact.value.googleValues.googleMapsUri,o)||(r.contact.value.googleValues.googleMapsUri=o),M(o)}),u(),c(4,"a",18),v(5,"i",19),u()()}if(t&2){let i=y();h(),be("width",i.labelWidth,"px"),h(2),R("ngModel",i.contact.value.googleValues.googleMapsUri),A("disabled",!0),h(),A("href",i.contact.value.googleValues.googleMapsUri,Bn)}}var Kc=class t{constructor(e,i,n,o,r){this.nS=e;this.dbS=i;this.crmS=n;this.uS=o;this.gS=r}ngOnInit(){this.prepare()}ngOnDestroy(){this.crmS.currentContact=""}prepare=()=>E(this,null,function*(){yield this.crmS.populateContacts(),this.crmS.currentContact!==""&&this.crmS.contacts.has(this.crmS.currentContact)&&(this.contact=Y({},this.crmS.contacts.get(this.crmS.currentContact))),this.contact.value.country&&(yield this.populateStates()),this.contact.value.state&&(yield this.populateCities())});contact={id:"",type:"contact",value:{name:"",emailAddresses:[],phoneNumbers:[],status:"Ready"}};labelWidth=200;addEmail=()=>{this.contact.value.emailAddresses.push("")};deleteEmail=e=>E(this,null,function*(){(yield this.uS.confirm("Are you sure?","Delete Email Address"))&&this.contact.value.emailAddresses.splice(e,1)});cities=new Map;states=new Map;populateStates=()=>E(this,null,function*(){this.states=yield this.gS.getStates(this.contact.value.country)});populateCities=()=>E(this,null,function*(){this.cities=yield this.gS.getCities(this.contact.value.country,this.contact.value.state)});addPhone=()=>{this.contact.value.phoneNumbers.push("")};deletePhone=e=>E(this,null,function*(){(yield this.uS.confirm("Are you sure?","Delete Phone Number"))&&this.contact.value.phoneNumbers.splice(e,1)});saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.contact.id)yield this.dbS.update(this.contact);else{let e=yield this.dbS.insert(this.contact);e.id&&(this.contact.id=e.id)}yield this.crmS.populateContacts(),this.saving=!1});delete=()=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Contact"))&&this.contact.id&&(yield this.dbS.delete({id:this.contact.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.crmS.populateContacts(),this.nS.sCP("crm-contact-list")}});isReady=()=>(this.contact.value.status||"").substring(0,5).toLowerCase()==="ready";canBrowse=()=>this.isReady()&&!!this.contact.value.website&&!!this.contact.id&&!this.initiatingBrowse;initiatingBrowse=!1;browse=()=>E(this,null,function*(){this.initiatingBrowse=!0,yield this.dbS.insertTask({type:"browseContact",data:this.contact.id}),yield this.prepare(),this.initiatingBrowse=!1});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(Be),w(un),w(xt))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-contact"]],standalone:!0,features:[j],decls:95,vars:34,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],[1,"ms-auto"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-3","text-danger",3,"click"],[1,"fas","fa-trash","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],["type","button",1,"btn","btn-sm","btn-outline-success","ms-3"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"card","mb-3"],[1,"input-group","input-group-sm","mb-1"],[1,"input-group-text"],["type","text","name","name","id","name",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","type","id","type",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","website","id","website",1,"form-control",3,"ngModelChange","ngModel"],["target","_blank",1,"btn","btn-outline-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square"],["type","text","name","avatar","id","avatar",1,"form-control",3,"ngModelChange","ngModel"],[1,"form-control","text-end"],[1,"table","table-sm","table-hover","text-start"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],["type","button",1,"btn","btn-sm","btn-outline-success",3,"click"],[1,"fas","fa-plus","me-2"],["type","text","name","address","id","address",1,"form-control",3,"ngModelChange","ngModel"],["id","cCity","name","cCity",1,"form-select",3,"ngModelChange","ngModel"],[3,"value"],["id","cState","name","cState",1,"form-select",3,"ngModelChange","change","ngModel"],["id","cCountry","name","cCountry",1,"form-select",3,"ngModelChange","change","ngModel"],["type","button",1,"btn","btn-sm","btn-outline-success","ms-3",3,"click"],[1,"fas","fa-repeat","me-2"],["alt","Avatar",1,"rounded-circle",2,"height","32px",3,"src"],[1,"p-0"],["type","email",1,"form-control","form-control-sm","m-0",3,"ngModelChange","name","id","ngModel"],[1,"fas","fa-trash","text-danger","ptr",3,"click"],["type","tel",1,"form-control","form-control-sm","m-0",3,"ngModelChange","name","id","ngModel"],["type","text","name","gmLink","id","gmLink",1,"form-control",3,"ngModelChange","ngModel","disabled"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),T(3,$O,2,1,"h5")(4,GO,2,0,"h5"),c(5,"span",3),f(6,"\xA0"),u(),c(7,"button",4),b("click",function(){return n.delete()}),v(8,"i",5),f(9," Delete"),u(),c(10,"button",6),b("click",function(){return n.save()}),v(11,"i",7),f(12," Save"),u(),T(13,WO,3,0,"button",8),u()(),c(14,"div",9),v(15,"hr"),u(),c(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"span",14),f(21,"Name"),u(),c(22,"input",15),k("ngModelChange",function(r){return F(n.contact.value.name,r)||(n.contact.value.name=r),r}),u()(),c(23,"div",13)(24,"span",14),f(25,"Type"),u(),c(26,"input",16),k("ngModelChange",function(r){return F(n.contact.value.type,r)||(n.contact.value.type=r),r}),u()(),c(27,"div",13)(28,"span",14),f(29,"Website"),u(),c(30,"input",17),k("ngModelChange",function(r){return F(n.contact.value.website,r)||(n.contact.value.website=r),r}),u(),c(31,"a",18),v(32,"i",19),u()(),c(33,"div",13)(34,"span",14),f(35,"Avatar Url"),u(),c(36,"input",20),k("ngModelChange",function(r){return F(n.contact.value.avatar,r)||(n.contact.value.avatar=r),r}),u(),T(37,YO,4,2),u(),c(38,"div",13)(39,"span",14),f(40,"Email Addresses"),u(),c(41,"span",21)(42,"table",22)(43,"thead")(44,"tr")(45,"th"),f(46,"Address"),u(),c(47,"th",23),v(48,"i",24),u()()(),c(49,"tbody"),te(50,qO,5,5,"tr",null,Yt),u()(),c(52,"button",25),b("click",function(){return n.addEmail()}),v(53,"i",26),f(54," Add New "),u()()(),c(55,"div",13)(56,"span",14),f(57,"Phone Numbers"),u(),c(58,"span",21)(59,"table",22)(60,"thead")(61,"tr")(62,"th"),f(63,"Number"),u(),c(64,"th",23),v(65,"i",24),u()()(),c(66,"tbody"),te(67,KO,5,5,"tr",null,Yt),u()(),c(69,"button",25),b("click",function(){return n.addPhone()}),v(70,"i",26),f(71," Add New "),u()()(),c(72,"div",13)(73,"span",14),f(74,"Address"),u(),c(75,"input",27),k("ngModelChange",function(r){return F(n.contact.value.address,r)||(n.contact.value.address=r),r}),u()(),c(76,"div",13)(77,"span",14),f(78,"City"),u(),c(79,"select",28),k("ngModelChange",function(r){return F(n.contact.value.city,r)||(n.contact.value.city=r),r}),te(80,ZO,2,2,"option",29,Wp),u()(),c(82,"div",13)(83,"span",14),f(84,"State"),u(),c(85,"select",30),k("ngModelChange",function(r){return F(n.contact.value.state,r)||(n.contact.value.state=r),r}),b("change",function(){return n.populateCities()}),te(86,QO,2,2,"option",29,Wp),u()(),c(88,"div",13)(89,"span",14),f(90,"Country"),u(),c(91,"select",31),k("ngModelChange",function(r){return F(n.contact.value.country,r)||(n.contact.value.country=r),r}),b("change",function(){return n.populateStates()}),te(92,JO,2,3,"option",29,Wp),u()(),T(94,XO,6,5,"div",13),u()()()()),i&2&&(h(3),I(n.contact.value.name?3:4),h(7),A("disabled",n.saving),h(3),I(n.canBrowse()?13:-1),h(7),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.type),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.website),h(),A("href",n.contact.value.website,Bn),h(3),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.avatar),h(),I(n.contact.value.avatar?37:-1),h(2),be("width",n.labelWidth,"px"),h(11),ne(n.contact.value.emailAddresses),h(6),be("width",n.labelWidth,"px"),h(11),ne(n.contact.value.phoneNumbers),h(6),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.address),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.city),h(),ne(n.cities.values()),h(3),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.state),h(),ne(n.states.values()),h(3),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.country),h(),ne(n.gS.countries.values()),h(2),I(n.contact.value.googleValues?94:-1))},dependencies:[Ce,nn,on,it,It,Pe,Ne,Cc]})};function eN(t,e){if(t&1&&v(0,"div",11),t&2){let i=y();A("options",i.chartOption)}}var Zc=class t{constructor(e,i,n){this.crmS=e;this.gS=i;this.dbS=n}chartOption={legend:{},tooltip:{},xAxis:{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{rotate:45}},yAxis:{}};isReady=!1;chartType="line";campaign={id:"",type:"campaign",value:{}};ngOnInit(){return E(this,null,function*(){yield this.crmS.populateCampaigns(),this.crmS.populateEmailTemplates(),this.gS.populateCountries(),this.crmS.currentCampaign!==""&&this.crmS.campaigns.has(this.crmS.currentCampaign)&&(this.campaign=Y({},this.crmS.campaigns.get(this.crmS.currentCampaign)),this.campaign.value.country===0&&(this.campaign.value.country="0")),this.prepareData()})}ngOnDestroy(){this.crmS.currentCampaign=""}prepareData=()=>E(this,null,function*(){this.isReady=!1;let e=yield this.dbS.campaignMails(this.campaign),i=new Set,n=new Set,o={};for(let s of e)s.status="",s.value.isAccepted===!0&&(s.status="accepted",s.when=s.value.acceptedWhen),s.value.isDelivered===!0&&(s.status="delivered",s.when=s.value.deliveredWhen),s.value.isOpened===!0&&(s.status="opened",s.when=s.value.openedWhen),s.value.isClicked===!0&&(s.status="clicked",s.when=s.value.clickedWhen),s.value.isUnsubscribed===!0&&(s.status="unsubscribed",s.when=s.value.unsubscribedWhen),s.value.isComplained===!0&&(s.status="complained",s.when=s.value.complainedWhen),s.value.isFailed===!0&&(s.status="failed",s.when=s.value.failedWhen),s.status===""&&(s.status=s.value.status,s.when=s.value.when),s.when=s.when.substring(0,10),i.add(s.status),n.add(s.when),o[s.when]??={},o[s.when][s.status]??=0,o[s.when][s.status]++;let r=Object.keys(o).sort();this.chartOption.dataset={dimensions:["when",...Array.from(i)],source:[...r.map(s=>Y({when:s},o[s]))]},this.chartOption.series=Array.from(i).map(s=>({type:this.chartType,stack:"x"})),this.isReady=!0});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign-stats"]],standalone:!0,features:[nt([zc()]),j],decls:19,vars:6,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-rotate","me-2"],[1,"ms-2"],["id","cTemplate","name","cTemplate",1,"form-select","form-select-sm",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"row","mt-0"],[1,"row"],[1,"col"],["echarts","",1,"stats-chart",3,"options"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4),u(),c(5,"button",3),b("click",function(){return n.prepareData()}),v(6,"i",4),f(7," Refresh "),u(),c(8,"form",5)(9,"select",6),k("ngModelChange",function(r){return F(n.chartType,r)||(n.chartType=r),r}),b("change",function(){return n.prepareData()}),c(10,"option",7),f(11,"Bar Chart"),u(),c(12,"option",7),f(13,"Line Chart"),u()()()()(),c(14,"div",8),v(15,"hr"),u(),c(16,"div",9)(17,"div",10),T(18,eN,1,1,"div",11),u()()()),i&2&&(h(4),B("Campaign Stats: ",n.campaign.value.name,""),h(),A("disabled",!n.isReady),h(4),R("ngModel",n.chartType),h(),A("value","bar"),h(2),A("value","line"),h(6),I(n.isReady?18:-1))},dependencies:[Ce,tn,nn,on,It,Pe,en,Ne,Lt,ly],styles:[".stats-chart[_ngcontent-%COMP%]{height:calc(100vh - 200px)}"]})};var Yp=(t,e)=>e.name;function tN(t,e){if(t&1){let i=U();c(0,"a",11),b("click",function(){S(i);let o=y(2).$implicit,r=y();return M(r.nS.sCP(o.link))}),v(1,"i"),f(2),u()}if(t&2){let i=y(2).$implicit;h(),lr("",i.icon," me-1"),h(),B(" ",i.name," ")}}function nN(t,e){if(t&1){let i=U();c(0,"a",14),b("click",function(){S(i);let o=y().$implicit,r=y(6);return M(r.nS.sCP(o.link))}),v(1,"i"),f(2),u()}if(t&2){let i=y().$implicit;h(),lr("",i.icon," ms-3 me-1"),h(),B(" ",i.name,"")}}function iN(t,e){if(t&1&&T(0,nN,3,4,"a",15),t&2){let i=e.$implicit,n=y(6);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function oN(t,e){if(t&1){let i=U();c(0,"a",14),b("click",function(){S(i);let o=y().$implicit,r=y(4);return M(r.nS.sCP(o.link))}),v(1,"i"),f(2),u(),te(3,iN,1,1,null,null,Yp)}if(t&2){let i=y().$implicit;h(),lr("",i.icon," me-1"),h(),B(" ",i.name,""),h(),ne(i.children)}}function rN(t,e){if(t&1&&T(0,oN,5,4),t&2){let i=e.$implicit,n=y(4);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function sN(t,e){if(t&1&&(c(0,"a",12),v(1,"i"),f(2),u(),c(3,"div",13),te(4,rN,1,1,null,null,Yp),u()),t&2){let i=y(2).$implicit;h(),lr("",i.icon," me-1"),h(),B(" ",i.name," "),h(2),ne(i.children)}}function aN(t,e){if(t&1&&(c(0,"a",12),v(1,"i"),f(2),u(),c(3,"div",13)(4,"a",15),f(5,"Coming soon, stay tuned"),u()()),t&2){let i=y(2).$implicit;h(),lr("",i.icon," me-1"),h(),B(" ",i.name," ")}}function lN(t,e){if(t&1&&(c(0,"li",9),T(1,tN,3,4,"a",10)(2,sN,6,4)(3,aN,6,4),u()),t&2){let i=y().$implicit;h(),I(!i.children&&!i.isComingSoon?1:-1),h(),I(i.children?2:-1),h(),I(i.isComingSoon?3:-1)}}function cN(t,e){if(t&1&&T(0,lN,4,3,"li",9),t&2){let i=e.$implicit,n=y();I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function uN(t,e){t&1&&v(0,"lnf-optimization-home")}function dN(t,e){t&1&&v(0,"lnf-optimization-image-settings")}function fN(t,e){t&1&&v(0,"lnf-optimization-image-bulk")}function pN(t,e){t&1&&v(0,"lnf-optimization-image-supervised")}function hN(t,e){t&1&&v(0,"lnf-ai-content-settings")}function mN(t,e){t&1&&v(0,"lnf-crm-home")}function gN(t,e){t&1&&v(0,"lnf-crm-settings")}function _N(t,e){t&1&&v(0,"lnf-crm-campaign-list")}function vN(t,e){t&1&&v(0,"lnf-crm-campaign")}function yN(t,e){t&1&&v(0,"lnf-crm-campaign-stats")}function bN(t,e){t&1&&v(0,"lnf-crm-email-template-list")}function CN(t,e){t&1&&v(0,"lnf-crm-email-template")}function DN(t,e){t&1&&v(0,"lnf-crm-explorer")}function wN(t,e){t&1&&v(0,"lnf-crm-explore-list")}function EN(t,e){t&1&&v(0,"lnf-crm-contact")}function SN(t,e){t&1&&v(0,"lnf-crm-contact-list")}function MN(t,e){t&1&&v(0,"lnf-subscription-home")}function TN(t,e){t&1&&v(0,"lnf-maintenance-home")}function IN(t,e){t&1&&v(0,"lnf-maintenance-cron")}function xN(t,e){t&1&&v(0,"lnf-maintenance-mailgun")}function ON(t,e){t&1&&v(0,"lnf-home")}function NN(t,e){t&1&&v(0,"lnf-home")}var Qc=class t{constructor(e,i){this.nS=e;this.sS=i}collapsed=!0;ngOnInit(){this.sS.checkRegistration()}static \u0275fac=function(i){return new(i||t)(w(we),w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-root"]],standalone:!0,features:[j],decls:34,vars:4,consts:[[1,"navbar","navbar-expand-md","navbar-light","bg-body-tertiary","border-bottom","shadow","shadow-sm"],[1,"container-fluid"],["src","luckynode-menuicon.svg","alt","LuckyNode Logo","width","24","height","24",1,"me-2","ptr",3,"click"],[1,"navbar-brand","h3","my-auto","ptr",3,"click"],["type","button","aria-controls","navbarContent","aria-label","Toggle navigation",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],["id","navbarContent",1,"navbar-collapse"],[1,"navbar-nav","ms-auto"],[2,"height","calc(100vh - 50px)","overflow","auto"],["ngbDropdown","",1,"nav-item","me-3"],["tabindex","0","role","button",1,"nav-link","fw-medium"],["tabindex","0","role","button",1,"nav-link","fw-medium",3,"click"],["tabindex","0","ngbDropdownToggle","","role","button",1,"nav-link","fw-medium"],["ngbDropdownMenu","","aria-labelledby","navbarDropdown2",1,"dropdown-menu","dropdown-menu-end"],["ngbDropdownItem","",1,"ptr",3,"click"],["ngbDropdownItem","",1,"ptr"]],template:function(i,n){if(i&1&&(c(0,"nav",0)(1,"div",1)(2,"img",2),b("click",function(){return n.nS.sCP("home")}),u(),c(3,"span",3),b("click",function(){return n.nS.sCP("home")}),f(4," LuckyNode "),u(),c(5,"button",4),b("click",function(){return n.collapsed=!n.collapsed}),v(6,"span",5),u(),c(7,"div",6)(8,"ul",7),te(9,cN,1,1,null,null,Yp),u()()()(),c(11,"div",8),T(12,uN,1,0,"lnf-optimization-home")(13,dN,1,0,"lnf-optimization-image-settings")(14,fN,1,0,"lnf-optimization-image-bulk")(15,pN,1,0,"lnf-optimization-image-supervised")(16,hN,1,0,"lnf-ai-content-settings")(17,mN,1,0,"lnf-crm-home")(18,gN,1,0,"lnf-crm-settings")(19,_N,1,0,"lnf-crm-campaign-list")(20,vN,1,0,"lnf-crm-campaign")(21,yN,1,0,"lnf-crm-campaign-stats")(22,bN,1,0,"lnf-crm-email-template-list")(23,CN,1,0,"lnf-crm-email-template")(24,DN,1,0,"lnf-crm-explorer")(25,wN,1,0,"lnf-crm-explore-list")(26,EN,1,0,"lnf-crm-contact")(27,SN,1,0,"lnf-crm-contact-list")(28,MN,1,0,"lnf-subscription-home")(29,TN,1,0,"lnf-maintenance-home")(30,IN,1,0,"lnf-maintenance-cron")(31,xN,1,0,"lnf-maintenance-mailgun")(32,ON,1,0,"lnf-home")(33,NN,1,0,"lnf-home"),u()),i&2){let o;h(5),Mt("aria-expanded",!n.collapsed),h(2),Qe("collapse",n.collapsed),h(2),ne(n.nS.links),h(3),I((o=n.nS.currentPage)==="optimization-home"?12:o==="optimization-image-settings"?13:o==="optimization-image-bulk"?14:o==="optimization-image-supervised"?15:o==="ai-content-settings"?16:o==="crm-home"?17:o==="crm-settings"?18:o==="crm-campaign-list"?19:o==="crm-campaign"?20:o==="crm-campaign-stats"?21:o==="crm-email-template-list"?22:o==="crm-email-template"?23:o==="crm-explorer"?24:o==="crm-explore-list"?25:o==="crm-contact"?26:o==="crm-contact-list"?27:o==="subscription-home"?28:o==="maintenance-home"?29:o==="maintenance-cron"?30:o==="maintenance-mailgun"?31:o==="home"?32:33)}},dependencies:[Ar,oy,_c,iy,Bp,Vp,Oc,xc,Rr,kr,Fr,Nc,Ac,Rc,Fc,$c,Zc,Gc,qc,Lc,jc,Uc,Kc,kc,Vc,Bc,Hc],styles:[".navbar[_ngcontent-%COMP%] .megamenu[_ngcontent-%COMP%]{padding:1rem;z-index:99999}@media all and (min-width: 992px){.navbar[_ngcontent-%COMP%] .has-megamenu[_ngcontent-%COMP%]{position:static!important}.navbar[_ngcontent-%COMP%] .megamenu[_ngcontent-%COMP%]{left:0;right:0;width:100%;margin-top:0}}@media (max-width: 991px){.navbar.fixed-top[_ngcontent-%COMP%] .navbar-collapse[_ngcontent-%COMP%], .navbar.sticky-top[_ngcontent-%COMP%] .navbar-collapse[_ngcontent-%COMP%]{overflow-y:auto;max-height:90vh;margin-top:10px}}"]})};ev(Qc,iv).catch(t=>console.error(t));7 `)}`}var zm=Hm(Fm("Optional"),8);var y1=Hm(Fm("SkipSelf"),4);function ro(t,e){let i=t.hasOwnProperty(Fa);return i?t[Fa]:null}function C1(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let o=t[n],r=e[n];if(i&&(o=i(o),r=i(r)),r!==o)return!1}return!0}function b1(t){return t.flat(Number.POSITIVE_INFINITY)}function Qd(t,e){t.forEach(i=>Array.isArray(i)?Qd(i,e):e(i))}function $m(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function La(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function D1(t,e){let i=[];for(let n=0;n<t;n++)i.push(e);return i}function w1(t,e,i,n){let o=t.length;if(o==e)t.push(i,n);else if(o===1)t.push(n,t[0]),t[0]=i;else{for(o--,t.push(t[o-1],t[o]);o>e;){let r=o-2;t[o]=t[r],o--}t[e]=i,t[e+1]=n}}function al(t,e,i){let n=rs(t,e);return n>=0?t[n|1]=i:(n=~n,w1(t,n,e,i)),n}function Tu(t,e){let i=rs(t,e);if(i>=0)return t[i|1]}function rs(t,e){return E1(t,e,1)}function E1(t,e,i){let n=0,o=t.length>>i;for(;o!==n;){let r=n+(o-n>>1),s=t[r<<i];if(e===s)return r<<i;s>e?o=r:n=r+1}return~(o<<i)}var Wo={},wt=[],Zr=new G(""),Gm=new G("",-1),Wm=new G(""),Va=class{get(e,i=Kr){if(i===Kr){let n=new Error(`NullInjectorError: No provider for ${At(e)}!`);throw n.name="NullInjectorError",n}return i}},Ym=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Ym||{}),Rn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Rn||{}),yi=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(yi||{});function S1(t,e,i){let n=t.length;for(;;){let o=t.indexOf(e,i);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=e.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}i=o+1}}function Wu(t,e,i){let n=0;for(;n<i.length;){let o=i[n];if(typeof o=="number"){if(o!==0)break;n++;let r=i[n++],s=i[n++],a=i[n++];t.setAttribute(e,s,a,r)}else{let r=o,s=i[++n];M1(r)?t.setProperty(e,r,s):t.setAttribute(e,r,s),n++}}return n}function qm(t){return t===3||t===4||t===6}function M1(t){return t.charCodeAt(0)===64}function Qr(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let o=e[n];typeof o=="number"?i=o:i===0||(i===-1||i===2?Qh(t,i,o,null,e[++n]):Qh(t,i,o,null,null))}}return t}function Qh(t,e,i,n,o){let r=0,s=t.length;if(e===-1)s=-1;else for(;r<t.length;){let a=t[r++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=r-1;break}}}for(;r<t.length;){let a=t[r];if(typeof a=="number")break;if(a===i){if(n===null){o!==null&&(t[r+1]=o);return}else if(n===t[r+1]){t[r+2]=o;return}}r++,n!==null&&r++,o!==null&&r++}s!==-1&&(t.splice(s,0,e),r=s+1),t.splice(r++,0,i),n!==null&&t.splice(r++,0,n),o!==null&&t.splice(r++,0,o)}var Km="ng-template";function T1(t,e,i,n){let o=0;if(n){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&S1(e[o+1].toLowerCase(),i,0)!==-1)return!0}else if(Jd(t))return!1;if(o=e.indexOf(1,o),o>-1){let r;for(;++o<e.length&&typeof(r=e[o])=="string";)if(r.toLowerCase()===i)return!0}return!1}function Jd(t){return t.type===4&&t.value!==Km}function I1(t,e,i){let n=t.type===4&&!i?Km:t.value;return e===n}function x1(t,e,i){let n=4,o=t.attrs,r=o!==null?A1(o):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!_n(n)&&!_n(l))return!1;if(s&&_n(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!I1(t,l,i)||l===""&&e.length===1){if(_n(n))return!1;s=!0}}else if(n&8){if(o===null||!T1(t,o,l,i)){if(_n(n))return!1;s=!0}}else{let d=e[++a],p=O1(l,o,Jd(t),i);if(p===-1){if(_n(n))return!1;s=!0;continue}if(d!==""){let m;if(p>r?m="":m=o[p+1].toLowerCase(),n&2&&d!==m){if(_n(n))return!1;s=!0}}}}return _n(n)||s}function _n(t){return(t&1)===0}function O1(t,e,i,n){if(e===null)return-1;let o=0;if(n||!i){let r=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)r=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=r?1:2}return-1}else return R1(e,t)}function Zm(t,e,i=!1){for(let n=0;n<e.length;n++)if(x1(t,e[n],i))return!0;return!1}function N1(t){let e=t.attrs;if(e!=null){let i=e.indexOf(5);if(!(i&1))return e[i+1]}return null}function A1(t){for(let e=0;e<t.length;e++){let i=t[e];if(qm(i))return e}return t.length}function R1(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function k1(t,e){e:for(let i=0;i<e.length;i++){let n=e[i];if(t.length===n.length){for(let o=0;o<t.length;o++)if(t[o]!==n[o])continue e;return!0}}return!1}function Jh(t,e){return t?":not("+e.trim()+")":e}function F1(t){let e=t[0],i=1,n=2,o="",r=!1;for(;i<t.length;){let s=t[i];if(typeof s=="string")if(n&2){let a=t[++i];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!_n(s)&&(e+=Jh(r,o),o=""),n=s,r=r||!_n(n);i++}return o!==""&&(e+=Jh(r,o)),e}function P1(t){return t.map(F1).join(",")}function L1(t){let e=[],i=[],n=1,o=2;for(;n<t.length;){let r=t[n];if(typeof r=="string")o===2?r!==""&&e.push(r,t[++n]):o===8&&i.push(r);else{if(!_n(o))break;o=r}n++}return{attrs:e,classes:i}}function V(t){return os(()=>{let e=Xm(t),i=Se(Y({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ym.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Rn.Emulated,styles:t.styles||wt,_:null,schemas:t.schemas||null,tView:null,id:""});eg(i);let n=t.dependencies;return i.directiveDefs=em(n,!1),i.pipeDefs=em(n,!0),i.id=U1(i),i})}function V1(t){return so(t)||Qm(t)}function B1(t){return t!==null}function Ht(t){return os(()=>({type:t.type,bootstrap:t.bootstrap||wt,declarations:t.declarations||wt,imports:t.imports||wt,exports:t.exports||wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Xh(t,e){if(t==null)return Wo;let i={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,s,a=yi.None;Array.isArray(o)?(a=o[0],r=o[1],s=o[2]??r):(r=o,s=o),e?(i[r]=a!==yi.None?[n,a]:n,e[r]=s):i[r]=n}return i}function ae(t){return os(()=>{let e=Xm(t);return eg(e),e})}function Xd(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function so(t){return t[r1]||null}function Qm(t){return t[s1]||null}function Jm(t){return t[a1]||null}function j1(t){let e=so(t)||Qm(t)||Jm(t);return e!==null?e.standalone:!1}function Xm(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Wo,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||wt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Xh(t.inputs,e),outputs:Xh(t.outputs),debugInfo:null}}function eg(t){t.features?.forEach(e=>e(t))}function em(t,e){if(!t)return null;let i=e?Jm:V1;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(B1)}function U1(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of i)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ss(t){return{\u0275providers:t}}function H1(...t){return{\u0275providers:tg(!0,t),\u0275fromNgModule:!0}}function tg(t,...e){let i=[],n=new Set,o,r=s=>{i.push(s)};return Qd(e,s=>{let a=s;Yu(a,r,[],n)&&(o||=[],o.push(a))}),o!==void 0&&ng(o,r),i}function ng(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:o}=t[i];ef(o,r=>{e(r,n)})}}function Yu(t,e,i,n){if(t=vt(t),!t)return!1;let o=null,r=Yh(t),s=!r&&so(t);if(!r&&!s){let l=t.ngModule;if(r=Yh(l),r)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let d of l)Yu(d,e,i,n)}}else if(r){if(r.imports!=null&&!a){n.add(o);let d;try{Qd(r.imports,p=>{Yu(p,e,i,n)&&(d||=[],d.push(p))})}finally{}d!==void 0&&ng(d,e)}if(!a){let d=ro(o)||(()=>new o);e({provide:o,useFactory:d,deps:wt},o),e({provide:Wm,useValue:o,multi:!0},o),e({provide:Zr,useValue:()=>H(o),multi:!0},o)}let l=r.providers;if(l!=null&&!a){let d=t;ef(l,p=>{e(p,d)})}}else return!1;return o!==t&&t.providers!==void 0}function ef(t,e){for(let i of t)Bm(i)&&(i=i.\u0275providers),Array.isArray(i)?ef(i,e):e(i)}var z1=Oe({provide:String,useValue:Oe});function ig(t){return t!==null&&typeof t=="object"&&z1 in t}function $1(t){return!!(t&&t.useExisting)}function G1(t){return!!(t&&t.useFactory)}function Yo(t){return typeof t=="function"}function W1(t){return!!t.useClass}var ll=new G(""),xa={},Y1={},Iu;function cl(){return Iu===void 0&&(Iu=new Va),Iu}var Rt=class{},Jr=class extends Rt{get destroyed(){return this._destroyed}constructor(e,i,n,o){super(),this.parent=i,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ku(e,s=>this.processProvider(s)),this.records.set(Gm,jo(void 0,this)),o.has("environment")&&this.records.set(Rt,jo(void 0,this));let r=this.records.get(ll);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Wm,wt,fe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=ce(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ce(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=gi(this),n=Dt(void 0),o;try{return e()}finally{gi(i),Dt(n)}}get(e,i=Kr,n=fe.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Kh))return e[Kh](this);n=sl(n);let o,r=gi(this),s=Dt(void 0);try{if(!(n&fe.SkipSelf)){let l=this.records.get(e);if(l===void 0){let d=J1(e)&&Kd(e);d&&this.injectableDefInScope(d)?l=jo(qu(e),xa):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&fe.Self?cl():this.parent;return i=n&fe.Optional&&i===Kr?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Pa]=a[Pa]||[]).unshift(At(e)),r)throw a;return _1(a,e,"R3InjectorError",this.source)}else throw a}finally{Dt(s),gi(r)}}resolveInjectorInitializers(){let e=ce(null),i=gi(this),n=Dt(void 0),o;try{let r=this.get(Zr,wt,fe.Self);for(let s of r)s()}finally{gi(i),Dt(n),ce(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(At(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(e){e=vt(e);let i=Yo(e)?e:vt(e&&e.provide),n=K1(e);if(!Yo(e)&&e.multi===!0){let o=this.records.get(i);o||(o=jo(void 0,xa,!0),o.factory=()=>Gu(o.multi),this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=ce(null);try{return i.value===xa&&(i.value=Y1,i.value=i.factory()),typeof i.value=="object"&&i.value&&Q1(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{ce(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=vt(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function qu(t){let e=Kd(t),i=e!==null?e.factory:ro(t);if(i!==null)return i;if(t instanceof G)throw new q(204,!1);if(t instanceof Function)return q1(t);throw new q(204,!1)}function q1(t){if(t.length>0)throw new q(204,!1);let i=i1(t);return i!==null?()=>i.factory(t):()=>new t}function K1(t){if(ig(t))return jo(void 0,t.useValue);{let e=og(t);return jo(e,xa)}}function og(t,e,i){let n;if(Yo(t)){let o=vt(t);return ro(o)||qu(o)}else if(ig(t))n=()=>vt(t.useValue);else if(G1(t))n=()=>t.useFactory(...Gu(t.deps||[]));else if($1(t))n=()=>H(vt(t.useExisting));else{let o=vt(t&&(t.useClass||t.provide));if(Z1(t))n=()=>new o(...Gu(t.deps));else return ro(o)||qu(o)}return n}function jo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Z1(t){return!!t.deps}function Q1(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function J1(t){return typeof t=="function"||typeof t=="object"&&t instanceof G}function Ku(t,e){for(let i of t)Array.isArray(i)?Ku(i,e):i&&Bm(i)?Ku(i.\u0275providers,e):e(i)}function rg(t,e){t instanceof Jr&&t.assertNotDestroyed();let i,n=gi(t),o=Dt(void 0);try{return e()}finally{gi(n),Dt(o)}}function sg(){return jm()!==void 0||h1()!=null}function ul(t){if(!sg())throw new q(-203,!1)}function X1(t){return typeof t=="function"}var Qn=0,X=1,Q=2,ht=3,yn=4,Et=5,qo=6,Ba=7,ft=8,Ko=9,kn=10,Re=11,Xr=12,tm=13,ir=14,kt=15,ao=16,Uo=17,qn=18,dl=19,ag=20,_i=21,xu=22,jt=23,et=25,lg=1;var lo=7,ja=8,Zo=9,pt=10,Ua=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Ua||{});function vi(t){return Array.isArray(t)&&typeof t[lg]=="object"}function Jn(t){return Array.isArray(t)&&t[lg]===!0}function tf(t){return(t.flags&4)!==0}function fl(t){return t.componentOffset>-1}function pl(t){return(t.flags&1)===1}function Ci(t){return!!t.template}function Zu(t){return(t[Q]&512)!==0}var Qu=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function cg(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function yt(){return ug}function ug(t){return t.type.prototype.ngOnChanges&&(t.setInput=tC),eC}yt.ngInherit=!0;function eC(){let t=fg(this),e=t?.current;if(e){let i=t.previous;if(i===Wo)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function tC(t,e,i,n,o){let r=this.declaredInputs[n],s=fg(t)||nC(t,{previous:Wo,current:null}),a=s.current||(s.current={}),l=s.previous,d=l[r];a[r]=new Qu(d&&d.currentValue,i,l===Wo),cg(t,e,o,i)}var dg="__ngSimpleChanges__";function fg(t){return t[dg]||null}function nC(t,e){return t[dg]=e}var nm=null;var Nn=function(t,e,i){nm?.(t,e,i)},iC="svg",oC="math";function Fn(t){for(;Array.isArray(t);)t=t[Qn];return t}function pg(t,e){return Fn(e[t])}function zt(t,e){return Fn(e[t.index])}function nf(t,e){return t.data[e]}function of(t,e){return t[e]}function wi(t,e){let i=e[t];return vi(i)?i:i[Qn]}function rC(t){return(t[Q]&4)===4}function rf(t){return(t[Q]&128)===128}function sC(t){return Jn(t[ht])}function bi(t,e){return e==null?null:t[e]}function hg(t){t[Uo]=0}function mg(t){t[Q]&1024||(t[Q]|=1024,rf(t)&&ml(t))}function aC(t,e){for(;t>0;)e=e[ir],t--;return e}function hl(t){return!!(t[Q]&9216||t[jt]?.dirty)}function Ju(t){t[kn].changeDetectionScheduler?.notify(8),t[Q]&64&&(t[Q]|=1024),hl(t)&&ml(t)}function ml(t){t[kn].changeDetectionScheduler?.notify(0);let e=co(t);for(;e!==null&&!(e[Q]&8192||(e[Q]|=8192,!rf(e)));)e=co(e)}function gg(t,e){if((t[Q]&256)===256)throw new q(911,!1);t[_i]===null&&(t[_i]=[]),t[_i].push(e)}function lC(t,e){if(t[_i]===null)return;let i=t[_i].indexOf(e);i!==-1&&t[_i].splice(i,1)}function co(t){let e=t[ht];return Jn(e)?e[ht]:e}var se={lFrame:Sg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var _g=!1;function cC(){return se.lFrame.elementDepthCount}function uC(){se.lFrame.elementDepthCount++}function dC(){se.lFrame.elementDepthCount--}function vg(){return se.bindingsEnabled}function yg(){return se.skipHydrationRootTNode!==null}function fC(t){return se.skipHydrationRootTNode===t}function pC(){se.skipHydrationRootTNode=null}function Z(){return se.lFrame.lView}function ke(){return se.lFrame.tView}function M(t){return se.lFrame.contextLView=t,t[ft]}function T(t){return se.lFrame.contextLView=null,t}function lt(){let t=Cg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Cg(){return se.lFrame.currentTNode}function hC(){let t=se.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function go(t,e){let i=se.lFrame;i.currentTNode=t,i.isParent=e}function sf(){return se.lFrame.isParent}function af(){se.lFrame.isParent=!1}function mC(){return se.lFrame.contextLView}function bg(){return _g}function im(t){_g=t}function as(){let t=se.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function gC(){return se.lFrame.bindingIndex}function _C(t){return se.lFrame.bindingIndex=t}function _o(){return se.lFrame.bindingIndex++}function lf(t){let e=se.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function vC(){return se.lFrame.inI18n}function yC(t,e){let i=se.lFrame;i.bindingIndex=i.bindingRootIndex=t,Xu(e)}function CC(){return se.lFrame.currentDirectiveIndex}function Xu(t){se.lFrame.currentDirectiveIndex=t}function bC(t){let e=se.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Dg(){return se.lFrame.currentQueryIndex}function cf(t){se.lFrame.currentQueryIndex=t}function DC(t){let e=t[X];return e.type===2?e.declTNode:e.type===1?t[Et]:null}function wg(t,e,i){if(i&fe.SkipSelf){let o=e,r=t;for(;o=o.parent,o===null&&!(i&fe.Host);)if(o=DC(r),o===null||(r=r[ir],o.type&10))break;if(o===null)return!1;e=o,t=r}let n=se.lFrame=Eg();return n.currentTNode=e,n.lView=t,!0}function uf(t){let e=Eg(),i=t[X];se.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Eg(){let t=se.lFrame,e=t===null?null:t.child;return e===null?Sg(t):e}function Sg(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Mg(){let t=se.lFrame;return se.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Tg=Mg;function df(){let t=Mg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function wC(t){return(se.lFrame.contextLView=aC(t,se.lFrame.contextLView))[ft]}function Xn(){return se.lFrame.selectedIndex}function uo(t){se.lFrame.selectedIndex=t}function ls(){let t=se.lFrame;return nf(t.tView,t.selectedIndex)}function EC(){return se.lFrame.currentNamespace}var Ig=!0;function gl(){return Ig}function _l(t){Ig=t}function SC(t,e,i){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=e.type.prototype;if(n){let s=ug(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}o&&(i.preOrderHooks??=[]).push(0-t,o),r&&((i.preOrderHooks??=[]).push(t,r),(i.preOrderCheckHooks??=[]).push(t,r))}function vl(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let r=t.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:d,ngOnDestroy:p}=r;s&&(t.contentHooks??=[]).push(-i,s),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),l&&(t.viewHooks??=[]).push(-i,l),d&&((t.viewHooks??=[]).push(i,d),(t.viewCheckHooks??=[]).push(i,d)),p!=null&&(t.destroyHooks??=[]).push(i,p)}}function Oa(t,e,i){xg(t,e,3,i)}function Na(t,e,i,n){(t[Q]&3)===i&&xg(t,e,i,n)}function Ou(t,e){let i=t[Q];(i&3)===e&&(i&=16383,i+=1,t[Q]=i)}function xg(t,e,i,n){let o=n!==void 0?t[Uo]&65535:0,r=n??-1,s=e.length-1,a=0;for(let l=o;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],n!=null&&a>=n)break}else e[l]<0&&(t[Uo]+=65536),(a<r||r==-1)&&(MC(t,i,e,l),t[Uo]=(t[Uo]&4294901760)+l+2),l++}function om(t,e){Nn(4,t,e);let i=ce(null);try{e.call(t)}finally{ce(i),Nn(5,t,e)}}function MC(t,e,i,n){let o=i[n]<0,r=i[n+1],s=o?-i[n]:i[n],a=t[s];o?t[Q]>>14<t[Uo]>>16&&(t[Q]&3)===e&&(t[Q]+=16384,om(a,r)):om(a,r)}var $o=-1,fo=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function TC(t){return t instanceof fo}function IC(t){return(t.flags&8)!==0}function xC(t){return(t.flags&16)!==0}var Nu={},ed=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=sl(n);let o=this.injector.get(e,Nu,n);return o!==Nu||i===Nu?o:this.parentInjector.get(e,i,n)}};function Og(t){return t!==$o}function Ha(t){return t&32767}function OC(t){return t>>16}function za(t,e){let i=OC(t),n=e;for(;i>0;)n=n[ir],i--;return n}var td=!0;function $a(t){let e=td;return td=t,e}var NC=256,Ng=NC-1,Ag=5,AC=0,An={};function RC(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(qr)&&(n=i[qr]),n==null&&(n=i[qr]=AC++);let o=n&Ng,r=1<<o;e.data[t+(o>>Ag)]|=r}function Ga(t,e){let i=Rg(t,e);if(i!==-1)return i;let n=e[X];n.firstCreatePass&&(t.injectorIndex=e.length,Au(n.data,t),Au(e,null),Au(n.blueprint,null));let o=ff(t,e),r=t.injectorIndex;if(Og(o)){let s=Ha(o),a=za(o,e),l=a[X].data;for(let d=0;d<8;d++)e[r+d]=a[s+d]|l[s+d]}return e[r+8]=o,r}function Au(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ff(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,o=e;for(;o!==null;){if(n=Vg(o),n===null)return $o;if(i++,o=o[ir],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return $o}function nd(t,e,i){RC(t,e,i)}function kC(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,o=0;for(;o<n;){let r=i[o];if(qm(r))break;if(r===0)o=o+2;else if(typeof r=="number")for(o++;o<n&&typeof i[o]=="string";)o++;else{if(r===e)return i[o+1];o=o+2}}}return null}function kg(t,e,i){if(i&fe.Optional||t!==void 0)return t;Zd(e,"NodeInjector")}function Fg(t,e,i,n){if(i&fe.Optional&&n===void 0&&(n=null),!(i&(fe.Self|fe.Host))){let o=t[Ko],r=Dt(void 0);try{return o?o.get(e,n,i&fe.Optional):Um(e,n,i&fe.Optional)}finally{Dt(r)}}return kg(n,e,i)}function Pg(t,e,i,n=fe.Default,o){if(t!==null){if(e[Q]&2048&&!(n&fe.Self)){let s=VC(t,e,i,n,An);if(s!==An)return s}let r=Lg(t,e,i,n,An);if(r!==An)return r}return Fg(e,i,n,o)}function Lg(t,e,i,n,o){let r=PC(i);if(typeof r=="function"){if(!wg(e,t,n))return n&fe.Host?kg(o,i,n):Fg(e,i,n,o);try{let s;if(s=r(n),s==null&&!(n&fe.Optional))Zd(i);else return s}finally{Tg()}}else if(typeof r=="number"){let s=null,a=Rg(t,e),l=$o,d=n&fe.Host?e[kt][Et]:null;for((a===-1||n&fe.SkipSelf)&&(l=a===-1?ff(t,e):e[a+8],l===$o||!sm(n,!1)?a=-1:(s=e[X],a=Ha(l),e=za(l,e)));a!==-1;){let p=e[X];if(rm(r,a,p.data)){let m=FC(a,e,i,s,n,d);if(m!==An)return m}l=e[a+8],l!==$o&&sm(n,e[X].data[a+8]===d)&&rm(r,a,e)?(s=p,a=Ha(l),e=za(l,e)):a=-1}}return o}function FC(t,e,i,n,o,r){let s=e[X],a=s.data[t+8],l=n==null?fl(a)&&td:n!=s&&(a.type&3)!==0,d=o&fe.Host&&r===a,p=Aa(a,s,i,l,d);return p!==null?po(e,s,p,a):An}function Aa(t,e,i,n,o){let r=t.providerIndexes,s=e.data,a=r&1048575,l=t.directiveStart,d=t.directiveEnd,p=r>>20,m=n?a:a+p,_=o?a+p:d;for(let g=m;g<_;g++){let D=s[g];if(g<l&&i===D||g>=l&&D.type===i)return g}if(o){let g=s[l];if(g&&Ci(g)&&g.type===i)return l}return null}function po(t,e,i,n){let o=t[i],r=e.data;if(TC(o)){let s=o;s.resolving&&c1(l1(r[i]));let a=$a(s.canSeeViewProviders);s.resolving=!0;let l,d=s.injectImpl?Dt(s.injectImpl):null,p=wg(t,n,fe.Default);try{o=t[i]=s.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&SC(i,r[i],e)}finally{d!==null&&Dt(d),$a(a),s.resolving=!1,Tg()}}return o}function PC(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(qr)?t[qr]:void 0;return typeof e=="number"?e>=0?e&Ng:LC:e}function rm(t,e,i){let n=1<<t;return!!(i[e+(t>>Ag)]&n)}function sm(t,e){return!(t&fe.Self)&&!(t&fe.Host&&e)}var oo=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return Pg(this._tNode,this._lView,e,sl(n),i)}};function LC(){return new oo(lt(),Z())}function $t(t){return os(()=>{let e=t.prototype.constructor,i=e[Fa]||id(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[Fa]||id(o);if(r&&r!==i)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function id(t){return Pm(t)?()=>{let e=id(vt(t));return e&&e()}:ro(t)}function VC(t,e,i,n,o){let r=t,s=e;for(;r!==null&&s!==null&&s[Q]&2048&&!(s[Q]&512);){let a=Lg(r,s,i,n|fe.Self,An);if(a!==An)return a;let l=r.parent;if(!l){let d=s[ag];if(d){let p=d.get(i,An,n);if(p!==An)return p}l=Vg(s),s=s[ir]}r=l}return o}function Vg(t){let e=t[X],i=e.type;return i===2?e.declTNode:i===1?t[Et]:null}function cs(t){return kC(lt(),t)}function am(t,e=null,i=null,n){let o=BC(t,e,i,n);return o.resolveInjectorInitializers(),o}function BC(t,e=null,i=null,n,o=new Set){let r=[i||wt,H1(t)];return n=n||(typeof t=="object"?void 0:At(t)),new Jr(r,e||cl(),n||null,o)}var to=class to{static create(e,i){if(Array.isArray(e))return am({name:""},i,e,"");{let n=e.name??"";return am({name:n},e.parent,e.providers,n)}}};to.THROW_IF_NOT_FOUND=Kr,to.NULL=new Va,to.\u0275prov=L({token:to,providedIn:"any",factory:()=>H(Gm)}),to.__NG_ELEMENT_ID__=-1;var He=to;var jC=new G("");jC.__NG_ELEMENT_ID__=t=>{let e=lt();if(e===null)throw new q(204,!1);if(e.type&2)return e.value;if(t&fe.Optional)return null;throw new q(204,!1)};var UC="ngOriginalError";function Ru(t){return t[UC]}var Bg=!0,ei=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=HC,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),od=class extends ei{constructor(e){super(),this._lView=e}onDestroy(e){return gg(this._lView,e),()=>lC(this._lView,e)}};function HC(){return new od(Z())}var or=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new qi(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var rd=class extends he{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,sg()&&(this.destroyRef=b(ei,{optional:!0})??void 0,this.pendingTasks=b(or,{optional:!0})??void 0)}emit(e){let i=ce(null);try{super.next(e)}finally{ce(i)}}subscribe(e,i,n){let o=e,r=i||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:r,complete:s});return e instanceof Ue&&e.add(a),a}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},re=rd;function Wa(...t){}function jg(t){let e,i;function n(){t=Wa;try{i!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(i),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(()=>{t(),n()})),()=>n()}function lm(t){return queueMicrotask(()=>t()),()=>{t=Wa}}var pf="isAngularZone",Ya=pf+"_ID",zC=0,ge=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new re(!1),this.onMicrotaskEmpty=new re(!1),this.onStable=new re(!1),this.onError=new re(!1);let{enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Bg}=e;if(typeof Zone>"u")throw new q(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)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&n,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=r,WC(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pf)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new q(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,o){let r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,e,$C,Wa,Wa);try{return r.runTask(s,i,n)}finally{r.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},$C={};function hf(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function GC(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){jg(()=>{t.callbackScheduled=!1,sd(t),t.isCheckStableRunning=!0,hf(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),sd(t)}function WC(t){let e=()=>{GC(t)},i=zC++;t._inner=t._inner.fork({name:"angular",properties:{[pf]:!0,[Ya]:i,[Ya+i]:!0},onInvokeTask:(n,o,r,s,a,l)=>{if(YC(l))return n.invokeTask(r,s,a,l);try{return cm(t),n.invokeTask(r,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),um(t)}},onInvoke:(n,o,r,s,a,l,d)=>{try{return cm(t),n.invoke(r,s,a,l,d)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!qC(l)&&e(),um(t)}},onHasTask:(n,o,r,s)=>{n.hasTask(r,s),o===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,sd(t),hf(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,o,r,s)=>(n.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function sd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cm(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function um(t){t._nesting--,hf(t)}var ad=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new re,this.onMicrotaskEmpty=new re,this.onStable=new re,this.onError=new re}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,o){return e.apply(i,n)}};function YC(t){return Ug(t,"__ignore_ng_zone__")}function qC(t){return Ug(t,"__scheduler_tick__")}function Ug(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Kn=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Ru(e);for(;i&&Ru(i);)i=Ru(i);return i||null}},KC=new G("",{providedIn:"root",factory:()=>{let t=b(ge),e=b(Kn);return i=>t.runOutsideAngular(()=>e.handleError(i))}});function dm(t,e){return km(t,e)}function ZC(t){return km(Rm,t)}var De=(dm.required=ZC,dm);function QC(){return rr(lt(),Z())}function rr(t,e){return new ye(zt(t,e))}var ye=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=QC;let t=e;return t})();function JC(t){return t instanceof ye?t.nativeElement:t}function XC(){return this._results[Symbol.iterator]()}var ld=class t{get changes(){return this._changes??=new re}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=XC)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=b1(e);(this._changesDetected=!C1(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Hg(t){return(t.flags&128)===128}var zg=new Map,eb=0;function tb(){return eb++}function nb(t){zg.set(t[dl],t)}function cd(t){zg.delete(t[dl])}var fm="__ngContext__";function Di(t,e){vi(e)?(t[fm]=e[dl],nb(e)):t[fm]=e}function $g(t){return Wg(t[Xr])}function Gg(t){return Wg(t[yn])}function Wg(t){for(;t!==null&&!Jn(t);)t=t[yn];return t}var ud;function Yg(t){ud=t}function ib(){if(ud!==void 0)return ud;if(typeof document<"u")return document;throw new q(210,!1)}var mf=new G("",{providedIn:"root",factory:()=>ob}),ob="ng",gf=new G(""),Gt=new G("",{providedIn:"platform",factory:()=>"unknown"});var _f=new G("",{providedIn:"root",factory:()=>ib().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var rb="h",sb="b";var ab=()=>null;function vf(t,e,i=!1){return ab(t,e,i)}var qg=!1,lb=new G("",{providedIn:"root",factory:()=>qg});var Ea;function cb(){if(Ea===void 0&&(Ea=null,io.trustedTypes))try{Ea=io.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ea}function yl(t){return cb()?.createHTML(t)||t}var Zn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Am})`}},dd=class extends Zn{getTypeName(){return"HTML"}},fd=class extends Zn{getTypeName(){return"Style"}},pd=class extends Zn{getTypeName(){return"Script"}},hd=class extends Zn{getTypeName(){return"URL"}},md=class extends Zn{getTypeName(){return"ResourceURL"}};function Vn(t){return t instanceof Zn?t.changingThisBreaksApplicationSecurity:t}function vo(t,e){let i=ub(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${Am})`)}return i===e}function ub(t){return t instanceof Zn&&t.getTypeName()||null}function Kg(t){return new dd(t)}function Zg(t){return new fd(t)}function Qg(t){return new pd(t)}function Jg(t){return new hd(t)}function Xg(t){return new md(t)}function db(t){let e=new _d(t);return fb()?new gd(e):e}var gd=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(yl(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.firstChild?.remove(),i)}catch{return null}}},_d=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=yl(e),i}};function fb(){try{return!!new window.DOMParser().parseFromString(yl(""),"text/html")}catch{return!1}}var pb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cl(t){return t=String(t),t.match(pb)?t:"unsafe:"+t}function ti(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function us(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var e0=ti("area,br,col,hr,img,wbr"),t0=ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),n0=ti("rp,rt"),hb=us(n0,t0),mb=us(t0,ti("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")),gb=us(n0,ti("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")),pm=us(e0,mb,gb,hb),i0=ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_b=ti("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"),vb=ti("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"),yb=us(i0,_b,vb),Cb=ti("script,style,template"),vd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,o=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){o.push(i),i=wb(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=Db(i);if(r){i=r;break}i=o.pop()}}return this.buf.join("")}startElement(e){let i=hm(e).toLowerCase();if(!pm.hasOwnProperty(i))return this.sanitizedSomething=!0,!Cb.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let o=0;o<n.length;o++){let r=n.item(o),s=r.name,a=s.toLowerCase();if(!yb.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;i0[a]&&(l=Cl(l)),this.buf.push(" ",s,'="',mm(l),'"')}return this.buf.push(">"),!0}endElement(e){let i=hm(e).toLowerCase();pm.hasOwnProperty(i)&&!e0.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(mm(e))}};function bb(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Db(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw o0(e);return e}function wb(t){let e=t.firstChild;if(e&&bb(t,e))throw o0(e);return e}function hm(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function o0(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Eb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sb=/([^\#-~ |!])/g;function mm(t){return t.replace(/&/g,"&").replace(Eb,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(Sb,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Sa;function r0(t,e){let i=null;try{Sa=Sa||db(t);let n=e?String(e):"";i=Sa.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=i.innerHTML,i=Sa.getInertBodyElement(n)}while(n!==r);let a=new vd().sanitizeChildren(gm(i)||i);return yl(a)}finally{if(i){let n=gm(i)||i;for(;n.firstChild;)n.firstChild.remove()}}}function gm(t){return"content"in t&&Mb(t)?t.content:null}function Mb(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Cn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Cn||{});function Bn(t){let e=Tb();return e?e.sanitize(Cn.URL,t)||"":vo(t,"URL")?Vn(t):Cl(Go(t))}function Tb(){let t=Z();return t&&t[kn].sanitizer}var Ib=/^>|^->|<!--|-->|--!>|<!-$/g,xb=/(<|>)/g,Ob="\u200B$1\u200B";function Nb(t){return t.replace(Ib,e=>e.replace(xb,Ob))}function s0(t){return(t??b(He)).get(Gt)==="browser"}var Pn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Pn||{}),Ab;function yf(t,e){return Ab(t,e)}function Ho(t,e,i,n,o){if(n!=null){let r,s=!1;Jn(n)?r=n:vi(n)&&(s=!0,n=n[Qn]);let a=Fn(n);t===0&&i!==null?o==null?d0(e,i,a):qa(e,i,a,o||null,!0):t===1&&i!==null?qa(e,i,a,o||null,!0):t===2?Wb(e,a,s):t===3&&e.destroyNode(a),r!=null&&qb(e,t,r,i,o)}}function Rb(t,e){return t.createText(e)}function kb(t,e,i){t.setValue(e,i)}function Fb(t,e){return t.createComment(Nb(e))}function a0(t,e,i){return t.createElement(e,i)}function Pb(t,e){l0(t,e),e[Qn]=null,e[Et]=null}function Lb(t,e,i,n,o,r){n[Qn]=o,n[Et]=e,wl(t,n,i,1,o,r)}function l0(t,e){e[kn].changeDetectionScheduler?.notify(9),wl(t,e,e[Re],2,null,null)}function Vb(t){let e=t[Xr];if(!e)return ku(t[X],t);for(;e;){let i=null;if(vi(e))i=e[Xr];else{let n=e[pt];n&&(i=n)}if(!i){for(;e&&!e[yn]&&e!==t;)vi(e)&&ku(e[X],e),e=e[ht];e===null&&(e=t),vi(e)&&ku(e[X],e),i=e&&e[yn]}e=i}}function Bb(t,e,i,n){let o=pt+n,r=i.length;n>0&&(i[o-1][yn]=e),n<r-pt?(e[yn]=i[o],$m(i,pt+n,e)):(i.push(e),e[yn]=null),e[ht]=i;let s=e[ao];s!==null&&i!==s&&c0(s,e);let a=e[qn];a!==null&&a.insertView(t),Ju(e),e[Q]|=128}function c0(t,e){let i=t[Zo],n=e[ht];if(vi(n))t[Q]|=Ua.HasTransplantedViews;else{let o=n[ht][kt];e[kt]!==o&&(t[Q]|=Ua.HasTransplantedViews)}i===null?t[Zo]=[e]:i.push(e)}function Cf(t,e){let i=t[Zo],n=i.indexOf(e);i.splice(n,1)}function es(t,e){if(t.length<=pt)return;let i=pt+e,n=t[i];if(n){let o=n[ao];o!==null&&o!==t&&Cf(o,n),e>0&&(t[i-1][yn]=n[yn]);let r=La(t,pt+e);Pb(n[X],n);let s=r[qn];s!==null&&s.detachView(r[X]),n[ht]=null,n[yn]=null,n[Q]&=-129}return n}function bl(t,e){if(!(e[Q]&256)){let i=e[Re];i.destroyNode&&wl(t,e,i,3,null,null),Vb(e)}}function ku(t,e){if(e[Q]&256)return;let i=ce(null);try{e[Q]&=-129,e[Q]|=256,e[jt]&&ru(e[jt]),Ub(t,e),jb(t,e),e[X].type===1&&e[Re].destroy();let n=e[ao];if(n!==null&&Jn(e[ht])){n!==e[ht]&&Cf(n,e);let o=e[qn];o!==null&&o.detachView(t)}cd(e)}finally{ce(i)}}function jb(t,e){let i=t.cleanup,n=e[Ba];if(i!==null)for(let r=0;r<i.length-1;r+=2)if(typeof i[r]=="string"){let s=i[r+3];s>=0?n[s]():n[-s].unsubscribe(),r+=2}else{let s=n[i[r+1]];i[r].call(s)}n!==null&&(e[Ba]=null);let o=e[_i];if(o!==null){e[_i]=null;for(let r=0;r<o.length;r++){let s=o[r];s()}}}function Ub(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let o=e[i[n]];if(!(o instanceof fo)){let r=i[n+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){let a=o[r[s]],l=r[s+1];Nn(4,a,l);try{l.call(a)}finally{Nn(5,a,l)}}else{Nn(4,o,r);try{r.call(o)}finally{Nn(5,o,r)}}}}}function u0(t,e,i){return Hb(t,e.parent,i)}function Hb(t,e,i){let n=e;for(;n!==null&&n.type&168;)e=n,n=e.parent;if(n===null)return i[Qn];{let{componentOffset:o}=n;if(o>-1){let{encapsulation:r}=t.data[n.directiveStart+o];if(r===Rn.None||r===Rn.Emulated)return null}return zt(n,i)}}function qa(t,e,i,n,o){t.insertBefore(e,i,n,o)}function d0(t,e,i){t.appendChild(e,i)}function _m(t,e,i,n,o){n!==null?qa(t,e,i,n,o):d0(t,e,i)}function f0(t,e){return t.parentNode(e)}function zb(t,e){return t.nextSibling(e)}function p0(t,e,i){return Gb(t,e,i)}function $b(t,e,i){return t.type&40?zt(t,i):null}var Gb=$b,vm;function Dl(t,e,i,n){let o=u0(t,n,e),r=e[Re],s=n.parent||e[Et],a=p0(s,n,e);if(o!=null)if(Array.isArray(i))for(let l=0;l<i.length;l++)_m(r,o,i[l],a,!1);else _m(r,o,i,a,!1);vm!==void 0&&vm(r,n,e,i,o)}function Yr(t,e){if(e!==null){let i=e.type;if(i&3)return zt(e,t);if(i&4)return yd(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Yr(t,n);{let o=t[e.index];return Jn(o)?yd(-1,o):Fn(o)}}else{if(i&128)return Yr(t,e.next);if(i&32)return yf(e,t)()||Fn(t[e.index]);{let n=h0(t,e);if(n!==null){if(Array.isArray(n))return n[0];let o=co(t[kt]);return Yr(o,n)}else return Yr(t,e.next)}}}return null}function h0(t,e){if(e!==null){let n=t[kt][Et],o=e.projection;return n.projection[o]}return null}function yd(t,e){let i=pt+t+1;if(i<e.length){let n=e[i],o=n[X].firstChild;if(o!==null)return Yr(n,o)}return e[lo]}function Wb(t,e,i){t.removeChild(null,e,i)}function bf(t,e,i,n,o,r,s){for(;i!=null;){if(i.type===128){i=i.next;continue}let a=n[i.index],l=i.type;if(s&&e===0&&(a&&Di(Fn(a),n),i.flags|=2),(i.flags&32)!==32)if(l&8)bf(t,e,i.child,n,o,r,!1),Ho(e,t,o,a,r);else if(l&32){let d=yf(i,n),p;for(;p=d();)Ho(e,t,o,p,r);Ho(e,t,o,a,r)}else l&16?m0(t,e,n,i,o,r):Ho(e,t,o,a,r);i=s?i.projectionNext:i.next}}function wl(t,e,i,n,o,r){bf(i,n,t.firstChild,e,o,r,!1)}function Yb(t,e,i){let n=e[Re],o=u0(t,i,e),r=i.parent||e[Et],s=p0(r,i,e);m0(n,0,e,i,o,s)}function m0(t,e,i,n,o,r){let s=i[kt],l=s[Et].projection[n.projection];if(Array.isArray(l))for(let d=0;d<l.length;d++){let p=l[d];Ho(e,t,o,p,r)}else{let d=l,p=s[ht];Hg(n)&&(d.flags|=128),bf(t,e,d,p,o,r,!0)}}function qb(t,e,i,n,o){let r=i[lo],s=Fn(i);r!==s&&Ho(e,t,n,r,o);for(let a=pt;a<i.length;a++){let l=i[a];wl(l[X],l,t,e,n,r)}}function Kb(t,e,i,n,o){if(e)o?t.addClass(i,n):t.removeClass(i,n);else{let r=n.indexOf("-")===-1?void 0:Pn.DashCase;o==null?t.removeStyle(i,n,r):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=Pn.Important),t.setStyle(i,n,o,r))}}function Zb(t,e,i){t.setAttribute(e,"style",i)}function g0(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function _0(t,e,i){let{mergedAttrs:n,classes:o,styles:r}=i;n!==null&&Wu(t,e,n),o!==null&&g0(t,e,o),r!==null&&Zb(t,e,r)}var St={};function h(t=1){v0(ke(),Z(),Xn()+t,!1)}function v0(t,e,i,n){if(!n)if((e[Q]&3)===3){let r=t.preOrderCheckHooks;r!==null&&Oa(e,r,i)}else{let r=t.preOrderHooks;r!==null&&Na(e,r,0,i)}uo(i)}function w(t,e=fe.Default){let i=Z();if(i===null)return H(t,e);let n=lt();return Pg(n,i,vt(t),e)}function y0(t,e,i,n,o,r){let s=ce(null);try{let a=null;o&yi.SignalBased&&(a=e[n][Tn]),a!==null&&a.transformFn!==void 0&&(r=a.transformFn(r)),o&yi.HasDecoratorInputTransform&&(r=t.inputTransforms[n].call(e,r)),t.setInput!==null?t.setInput(e,a,r,i,n):cg(e,a,n,r)}finally{ce(s)}}function Qb(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let o=i[n];if(o<0)uo(~o);else{let r=o,s=i[++n],a=i[++n];yC(s,r);let l=e[r];a(2,l)}}}finally{uo(-1)}}function El(t,e,i,n,o,r,s,a,l,d,p){let m=e.blueprint.slice();return m[Qn]=o,m[Q]=n|4|128|8|64,(d!==null||t&&t[Q]&2048)&&(m[Q]|=2048),hg(m),m[ht]=m[ir]=t,m[ft]=i,m[kn]=s||t&&t[kn],m[Re]=a||t&&t[Re],m[Ko]=l||t&&t[Ko]||null,m[Et]=r,m[dl]=tb(),m[qo]=p,m[ag]=d,m[kt]=e.type==2?t[kt]:m,m}function sr(t,e,i,n,o){let r=t.data[e];if(r===null)r=Jb(t,e,i,n,o),vC()&&(r.flags|=32);else if(r.type&64){r.type=i,r.value=n,r.attrs=o;let s=hC();r.injectorIndex=s===null?-1:s.injectorIndex}return go(r,!0),r}function Jb(t,e,i,n,o){let r=Cg(),s=sf(),a=s?r:r&&r.parent,l=t.data[e]=oD(t,a,i,e,n,o);return t.firstChild===null&&(t.firstChild=l),r!==null&&(s?r.child==null&&l.parent!==null&&(r.child=l):r.next===null&&(r.next=l,l.prev=r)),l}function C0(t,e,i,n){if(i===0)return-1;let o=e.length;for(let r=0;r<i;r++)e.push(n),t.blueprint.push(n),t.data.push(null);return o}function b0(t,e,i,n,o){let r=Xn(),s=n&2;try{uo(-1),s&&e.length>et&&v0(t,e,et,!1),Nn(s?2:0,o),i(n,o)}finally{uo(r),Nn(s?3:1,o)}}function Df(t,e,i){if(tf(e)){let n=ce(null);try{let o=e.directiveStart,r=e.directiveEnd;for(let s=o;s<r;s++){let a=t.data[s];if(a.contentQueries){let l=i[s];a.contentQueries(1,l,s)}}}finally{ce(n)}}}function wf(t,e,i){vg()&&(uD(t,e,i,zt(i,e)),(i.flags&64)===64&&E0(t,e,i))}function Ef(t,e,i=zt){let n=e.localNames;if(n!==null){let o=e.index+1;for(let r=0;r<n.length;r+=2){let s=n[r+1],a=s===-1?i(e,t):t[s];t[o++]=a}}}function D0(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Sf(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Sf(t,e,i,n,o,r,s,a,l,d,p){let m=et+n,_=m+o,g=Xb(m,_),D=typeof d=="function"?d():d;return g[X]={type:t,blueprint:g,template:i,queries:null,viewQuery:a,declTNode:e,data:g.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:_,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 r=="function"?r():r,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:D,incompleteFirstPass:!1,ssrId:p}}function Xb(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:St);return i}function eD(t,e,i,n){let r=n.get(lb,qg)||i===Rn.ShadowDom,s=t.selectRootElement(e,r);return tD(s),s}function tD(t){nD(t)}var nD=()=>null;function iD(t,e,i,n){let o=T0(e);o.push(i),t.firstCreatePass&&I0(t).push(n,o.length-1)}function oD(t,e,i,n,o,r){let s=e?e.injectorIndex:-1,a=0;return yg()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ym(t,e,i,n,o){for(let r in e){if(!e.hasOwnProperty(r))continue;let s=e[r];if(s===void 0)continue;n??={};let a,l=yi.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let d=r;if(o!==null){if(!o.hasOwnProperty(r))continue;d=o[r]}t===0?Cm(n,i,d,a,l):Cm(n,i,d,a)}return n}function Cm(t,e,i,n,o){let r;t.hasOwnProperty(i)?(r=t[i]).push(e,n):r=t[i]=[e,n],o!==void 0&&r.push(o)}function rD(t,e,i){let n=e.directiveStart,o=e.directiveEnd,r=t.data,s=e.attrs,a=[],l=null,d=null;for(let p=n;p<o;p++){let m=r[p],_=i?i.get(m):null,g=_?_.inputs:null,D=_?_.outputs:null;l=ym(0,m.inputs,p,l,g),d=ym(1,m.outputs,p,d,D);let x=l!==null&&s!==null&&!Jd(e)?bD(l,p,s):null;a.push(x)}l!==null&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=d}function sD(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Sl(t,e,i,n,o,r,s,a){let l=zt(e,i),d=e.inputs,p;!a&&d!=null&&(p=d[n])?(Tf(t,i,p,n,o),fl(e)&&aD(i,e.index)):e.type&3?(n=sD(n),o=s!=null?s(o,e.value||"",n):o,r.setProperty(l,n,o)):e.type&12}function aD(t,e){let i=wi(e,t);i[Q]&16||(i[Q]|=64)}function Mf(t,e,i,n){if(vg()){let o=n===null?null:{"":-1},r=fD(t,i),s,a;r===null?s=a=null:[s,a]=r,s!==null&&w0(t,e,i,s,o,a),o&&pD(i,n,o)}i.mergedAttrs=Qr(i.mergedAttrs,i.attrs)}function w0(t,e,i,n,o,r){for(let d=0;d<n.length;d++)nd(Ga(i,e),t,n[d].type);mD(i,t.data.length,n.length);for(let d=0;d<n.length;d++){let p=n[d];p.providersResolver&&p.providersResolver(p)}let s=!1,a=!1,l=C0(t,e,n.length,null);for(let d=0;d<n.length;d++){let p=n[d];i.mergedAttrs=Qr(i.mergedAttrs,p.hostAttrs),gD(t,i,e,l,p),hD(l,p,o),p.contentQueries!==null&&(i.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(i.flags|=64);let m=p.type.prototype;!s&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),s=!0),!a&&(m.ngOnChanges||m.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),l++}rD(t,i,r)}function lD(t,e,i,n,o){let r=o.hostBindings;if(r){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;cD(s)!=a&&s.push(a),s.push(i,n,r)}}function cD(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function uD(t,e,i,n){let o=i.directiveStart,r=i.directiveEnd;fl(i)&&_D(e,i,t.data[o+i.componentOffset]),t.firstCreatePass||Ga(i,e),Di(n,e);let s=i.initialInputs;for(let a=o;a<r;a++){let l=t.data[a],d=po(e,t,a,i);if(Di(d,e),s!==null&&CD(e,a-o,d,l,i,s),Ci(l)){let p=wi(i.index,e);p[ft]=po(e,t,a,i)}}}function E0(t,e,i){let n=i.directiveStart,o=i.directiveEnd,r=i.index,s=CC();try{uo(r);for(let a=n;a<o;a++){let l=t.data[a],d=e[a];Xu(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&dD(l,d)}}finally{uo(-1),Xu(s)}}function dD(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function fD(t,e){let i=t.directiveRegistry,n=null,o=null;if(i)for(let r=0;r<i.length;r++){let s=i[r];if(Zm(e,s.selectors,!1))if(n||(n=[]),Ci(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),n.unshift(...a,s);let l=a.length;Cd(t,e,l)}else n.unshift(s),Cd(t,e,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,n,o),n.push(s)}return n===null?null:[n,o]}function Cd(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function pD(t,e,i){if(e){let n=t.localNames=[];for(let o=0;o<e.length;o+=2){let r=i[e[o+1]];if(r==null)throw new q(-301,!1);n.push(e[o],r)}}}function hD(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;Ci(e)&&(i[""]=t)}}function mD(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function gD(t,e,i,n,o){t.data[n]=o;let r=o.factory||(o.factory=ro(o.type,!0)),s=new fo(r,Ci(o),w);t.blueprint[n]=s,i[n]=s,lD(t,e,n,C0(t,i,o.hostVars,St),o)}function _D(t,e,i){let n=zt(e,t),o=D0(i),r=t[kn].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=Ml(t,El(t,o,null,s,n,e,null,r.createRenderer(n,i),null,null,null));t[e.index]=a}function vD(t,e,i,n,o,r){let s=zt(t,e);yD(e[Re],s,r,t.value,i,n,o)}function yD(t,e,i,n,o,r,s){if(r==null)t.removeAttribute(e,o,i);else{let a=s==null?Go(r):s(r,n||"",o);t.setAttribute(e,o,a,i)}}function CD(t,e,i,n,o,r){let s=r[e];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],d=s[a++],p=s[a++],m=s[a++];y0(n,i,l,d,p,m)}}function bD(t,e,i){let n=null,o=0;for(;o<i.length;){let r=i[o];if(r===0){o+=4;continue}else if(r===5){o+=2;continue}if(typeof r=="number")break;if(t.hasOwnProperty(r)){n===null&&(n=[]);let s=t[r];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(r,s[a+1],s[a+2],i[o+1]);break}}o+=2}return n}function S0(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function M0(t,e){let i=t.contentQueries;if(i!==null){let n=ce(null);try{for(let o=0;o<i.length;o+=2){let r=i[o],s=i[o+1];if(s!==-1){let a=t.data[s];cf(r),a.contentQueries(2,e[s],s)}}}finally{ce(n)}}}function Ml(t,e){return t[Xr]?t[tm][yn]=e:t[Xr]=e,t[tm]=e,e}function bd(t,e,i){cf(0);let n=ce(null);try{e(t,i)}finally{ce(n)}}function T0(t){return t[Ba]??=[]}function I0(t){return t.cleanup??=[]}function x0(t,e){let i=t[Ko],n=i?i.get(Kn,null):null;n&&n.handleError(e)}function Tf(t,e,i,n,o){for(let r=0;r<i.length;){let s=i[r++],a=i[r++],l=i[r++],d=e[s],p=t.data[s];y0(p,d,n,a,l,o)}}function O0(t,e,i){let n=pg(e,t);kb(t[Re],n,i)}function DD(t,e){let i=wi(e,t),n=i[X];wD(n,i);let o=i[Qn];o!==null&&i[qo]===null&&(i[qo]=vf(o,i[Ko])),If(n,i,i[ft])}function wD(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function If(t,e,i){uf(e);try{let n=t.viewQuery;n!==null&&bd(1,n,i);let o=t.template;o!==null&&b0(t,e,o,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[qn]?.finishViewCreation(t),t.staticContentQueries&&M0(t,e),t.staticViewQueries&&bd(2,t.viewQuery,i);let r=t.components;r!==null&&ED(e,r)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[Q]&=-5,df()}}function ED(t,e){for(let i=0;i<e.length;i++)DD(t,e[i])}function ds(t,e,i,n){let o=ce(null);try{let r=e.tView,a=t[Q]&4096?4096:16,l=El(t,r,i,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),d=t[e.index];l[ao]=d;let p=t[qn];return p!==null&&(l[qn]=p.createEmbeddedView(r)),If(r,l,i),l}finally{ce(o)}}function N0(t,e){let i=pt+e;if(i<t.length)return t[i]}function Qo(t,e){return!e||e.firstChild===null||Hg(t)}function fs(t,e,i,n=!0){let o=e[X];if(Bb(o,e,t,i),n){let s=yd(i,t),a=e[Re],l=f0(a,t[lo]);l!==null&&Lb(o,t[Et],a,e,l,s)}let r=e[qo];r!==null&&r.firstChild!==null&&(r.firstChild=null)}function A0(t,e){let i=es(t,e);return i!==void 0&&bl(i[X],i),i}function Ka(t,e,i,n,o=!1){for(;i!==null;){if(i.type===128){i=o?i.projectionNext:i.next;continue}let r=e[i.index];r!==null&&n.push(Fn(r)),Jn(r)&&SD(r,n);let s=i.type;if(s&8)Ka(t,e,i.child,n);else if(s&32){let a=yf(i,e),l;for(;l=a();)n.push(l)}else if(s&16){let a=h0(e,i);if(Array.isArray(a))n.push(...a);else{let l=co(e[kt]);Ka(l[X],l,a,n,!0)}}i=o?i.projectionNext:i.next}return n}function SD(t,e){for(let i=pt;i<t.length;i++){let n=t[i],o=n[X].firstChild;o!==null&&Ka(n[X],n,o,e)}t[lo]!==t[Qn]&&e.push(t[lo])}var R0=[];function MD(t){return t[jt]??TD(t)}function TD(t){let e=R0.pop()??Object.create(xD);return e.lView=t,e}function ID(t){t.lView[jt]!==t&&(t.lView=null,R0.push(t))}var xD=Se(Y({},Ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{ml(t.lView)},consumerOnSignalRead(){this.lView[jt]=this}});function OD(t){let e=t[jt]??Object.create(ND);return e.lView=t,e}var ND=Se(Y({},Ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=co(t.lView);for(;e&&!k0(e[X]);)e=co(e);e&&mg(e)},consumerOnSignalRead(){this.lView[jt]=this}});function k0(t){return t.type!==2}var AD=100;function F0(t,e=!0,i=0){let n=t[kn],o=n.rendererFactory,r=!1;r||o.begin?.();try{RD(t,i)}catch(s){throw e&&x0(t,s),s}finally{r||(o.end?.(),n.inlineEffectRunner?.flush())}}function RD(t,e){let i=bg();try{im(!0),Dd(t,e);let n=0;for(;hl(t);){if(n===AD)throw new q(103,!1);n++,Dd(t,1)}}finally{im(i)}}function kD(t,e,i,n){let o=e[Q];if((o&256)===256)return;let r=!1,s=!1;!r&&e[kn].inlineEffectRunner?.flush(),uf(e);let a=!0,l=null,d=null;r||(k0(t)?(d=MD(e),l=Ys(d)):ih()===null?(a=!1,d=OD(e),l=Ys(d)):e[jt]&&(ru(e[jt]),e[jt]=null));try{hg(e),_C(t.bindingStartIndex),i!==null&&b0(t,e,i,2,n);let p=(o&3)===3;if(!r)if(p){let g=t.preOrderCheckHooks;g!==null&&Oa(e,g,null)}else{let g=t.preOrderHooks;g!==null&&Na(e,g,0,null),Ou(e,0)}if(s||FD(e),P0(e,0),t.contentQueries!==null&&M0(t,e),!r)if(p){let g=t.contentCheckHooks;g!==null&&Oa(e,g)}else{let g=t.contentHooks;g!==null&&Na(e,g,1),Ou(e,1)}Qb(t,e);let m=t.components;m!==null&&V0(e,m,0);let _=t.viewQuery;if(_!==null&&bd(2,_,n),!r)if(p){let g=t.viewCheckHooks;g!==null&&Oa(e,g)}else{let g=t.viewHooks;g!==null&&Na(e,g,2),Ou(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[xu]){for(let g of e[xu])g();e[xu]=null}r||(e[Q]&=-73)}catch(p){throw r||ml(e),p}finally{d!==null&&(iu(d,l),a&&ID(d)),df()}}function P0(t,e){for(let i=$g(t);i!==null;i=Gg(i))for(let n=pt;n<i.length;n++){let o=i[n];L0(o,e)}}function FD(t){for(let e=$g(t);e!==null;e=Gg(e)){if(!(e[Q]&Ua.HasTransplantedViews))continue;let i=e[Zo];for(let n=0;n<i.length;n++){let o=i[n];mg(o)}}}function PD(t,e,i){let n=wi(e,t);L0(n,i)}function L0(t,e){rf(t)&&Dd(t,e)}function Dd(t,e){let n=t[X],o=t[Q],r=t[jt],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(r?.dirty&&ou(r)),s||=!1,r&&(r.dirty=!1),t[Q]&=-9217,s)kD(n,t,n.template,t[ft]);else if(o&8192){P0(t,1);let a=n.components;a!==null&&V0(t,a,1)}}function V0(t,e,i){for(let n=0;n<e.length;n++)PD(t,e[n],i)}function xf(t,e){let i=bg()?64:1088;for(t[kn].changeDetectionScheduler?.notify(e);t;){t[Q]|=i;let n=co(t);if(Zu(t)&&!n)return t;t=n}return null}var ho=class{get rootNodes(){let e=this._lView,i=e[X];return Ka(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ft]}set context(e){this._lView[ft]=e}get destroyed(){return(this._lView[Q]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ht];if(Jn(e)){let i=e[ja],n=i?i.indexOf(this):-1;n>-1&&(es(e,n),La(i,n))}this._attachedToViewContainer=!1}bl(this._lView[X],this._lView)}onDestroy(e){gg(this._lView,e)}markForCheck(){xf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Q]&=-129}reattach(){Ju(this._lView),this._lView[Q]|=128}detectChanges(){this._lView[Q]|=1024,F0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Zu(this._lView),i=this._lView[ao];i!==null&&!e&&Cf(i,this._lView),l0(this._lView[X],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=e;let i=Zu(this._lView),n=this._lView[ao];n!==null&&!i&&c0(n,this._lView),Ju(this._lView)}},Ln=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BD;let t=e;return t})(),LD=Ln,VD=class extends LD{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let o=ds(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new ho(o)}};function BD(){return Tl(lt(),Z())}function Tl(t,e){return t.type&4?new VD(e,t,rr(t,e)):null}var xL=new RegExp(`^(\\d+)*(${sb}|${rb})*(.*)`);var jD=()=>null;function Jo(t,e){return jD(t,e)}var Xo=class{},Il=new G("",{providedIn:"root",factory:()=>!1});var B0=new G(""),j0=new G(""),wd=class{},Za=class{};function UD(t){let e=Error(`No component factory found for ${At(t)}.`);return e[HD]=t,e}var HD="ngComponent";var Ed=class{resolveComponentFactory(e){throw UD(e)}},Vf=class Vf{};Vf.NULL=new Ed;var ts=Vf,er=class{},Wt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>zD();let t=e;return t})();function zD(){let t=Z(),e=lt(),i=wi(e.index,t);return(vi(i)?i:t)[Re]}var $D=(()=>{let e=class e{};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();function Qa(t,e,i){let n=i?t.styles:null,o=i?t.classes:null,r=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")r=a;else if(r==1)o=Hu(o,a);else if(r==2){let l=a,d=e[++s];n=Hu(n,l+": "+d+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=o:t.classesWithoutHost=o}var Sd=class extends ts{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=so(e);return new ns(i,this.ngModule)}};function bm(t,e){let i=[];for(let n in t){if(!t.hasOwnProperty(n))continue;let o=t[n];if(o===void 0)continue;let r=Array.isArray(o),s=r?o[0]:o,a=r?o[1]:yi.None;e?i.push({propName:s,templateName:n,isSignal:(a&yi.SignalBased)!==0}):i.push({propName:s,templateName:n})}return i}function GD(t){let e=t.toLowerCase();return e==="svg"?iC:e==="math"?oC:null}var ns=class extends Za{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=bm(e.inputs,!0);if(i!==null)for(let o of n)i.hasOwnProperty(o.propName)&&(o.transform=i[o.propName]);return n}get outputs(){return bm(this.componentDef.outputs,!1)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=P1(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,o){let r=ce(null);try{o=o||this.ngModule;let s=o instanceof Rt?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new ed(e,s):e,l=a.get(er,null);if(l===null)throw new q(407,!1);let d=a.get($D,null),p=a.get(Xo,null),m={rendererFactory:l,sanitizer:d,inlineEffectRunner:null,changeDetectionScheduler:p},_=l.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=n?eD(_,n,this.componentDef.encapsulation,a):a0(_,g,GD(g)),x=512;this.componentDef.signals?x|=4096:this.componentDef.onPush||(x|=16);let O=null;D!==null&&(O=vf(D,a,!0));let N=Sf(0,null,null,1,0,null,null,null,null,null,null),z=El(null,N,null,x,null,null,m,_,a,null,O);uf(z);let le,P,oe=null;try{let $=this.componentDef,pe,Ae=null;$.findHostDirectiveDefs?(pe=[],Ae=new Map,$.findHostDirectiveDefs($,pe,Ae),pe.push($)):pe=[$];let $e=WD(z,D);oe=YD($e,D,$,pe,z,m,_),P=nf(N,et),D&&ZD(_,$,D,n),i!==void 0&&QD(P,this.ngContentSelectors,i),le=KD(oe,$,pe,Ae,z,[JD]),If(N,z,null)}catch($){throw oe!==null&&cd(oe),cd(z),$}finally{df()}return new Md(this.componentType,le,rr(P,z),z,P)}finally{ce(r)}}},Md=class extends wd{constructor(e,i,n,o,r){super(),this.location=n,this._rootLView=o,this._tNode=r,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new ho(o,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,o;if(n!==null&&(o=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let r=this._rootLView;Tf(r[X],r,o,e,i),this.previousInputValues.set(e,i);let s=wi(this._tNode.index,r);xf(s,1)}}get injector(){return new oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function WD(t,e){let i=t[X],n=et;return t[n]=e,sr(i,n,2,"#host",null)}function YD(t,e,i,n,o,r,s){let a=o[X];qD(n,t,e,s);let l=null;e!==null&&(l=vf(e,o[Ko]));let d=r.rendererFactory.createRenderer(e,i),p=16;i.signals?p=4096:i.onPush&&(p=64);let m=El(o,D0(i),null,p,o[t.index],t,r,d,null,null,l);return a.firstCreatePass&&Cd(a,t,n.length-1),Ml(o,m),o[t.index]=m}function qD(t,e,i,n){for(let o of t)e.mergedAttrs=Qr(e.mergedAttrs,o.hostAttrs);e.mergedAttrs!==null&&(Qa(e,e.mergedAttrs,!0),i!==null&&_0(n,i,e))}function KD(t,e,i,n,o,r){let s=lt(),a=o[X],l=zt(s,o);w0(a,o,s,i,null,n);for(let p=0;p<i.length;p++){let m=s.directiveStart+p,_=po(o,a,m,s);Di(_,o)}E0(a,o,s),l&&Di(l,o);let d=po(o,a,s.directiveStart+s.componentOffset,s);if(t[ft]=o[ft]=d,r!==null)for(let p of r)p(d,e);return Df(a,s,o),d}function ZD(t,e,i,n){if(n)Wu(t,i,["ng-version","18.2.11"]);else{let{attrs:o,classes:r}=L1(e.selectors[0]);o&&Wu(t,i,o),r&&r.length>0&&g0(t,i,r.join(" "))}}function QD(t,e,i){let n=t.projection=[];for(let o=0;o<e.length;o++){let r=i[o];n.push(r!=null?Array.from(r):null)}}function JD(){let t=lt();vl(Z()[X],t)}var Ei=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=XD;let t=e;return t})();function XD(){let t=lt();return H0(t,Z())}var ew=Ei,U0=class extends ew{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return rr(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){let e=ff(this._hostTNode,this._hostLView);if(Og(e)){let i=za(e,this._hostLView),n=Ha(e),o=i[X].data[n+8];return new oo(o,i)}else return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=Dm(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-pt}createEmbeddedView(e,i,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let s=Jo(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},r,s);return this.insertImpl(a,o,Qo(this._hostTNode,s)),a}createComponent(e,i,n,o,r){let s=e&&!X1(e),a;if(s)a=i;else{let D=i||{};a=D.index,n=D.injector,o=D.projectableNodes,r=D.environmentInjector||D.ngModuleRef}let l=s?e:new ns(so(e)),d=n||this.parentInjector;if(!r&&l.ngModule==null){let x=(s?d:this.parentInjector).get(Rt,null);x&&(r=x)}let p=so(l.componentType??{}),m=Jo(this._lContainer,p?.id??null),_=m?.firstChild??null,g=l.create(d,o,_,r);return this.insertImpl(g.hostView,a,Qo(this._hostTNode,m)),g}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let o=e._lView;if(sC(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=o[ht],d=new U0(l,l[Et],l[ht]);d.detach(d.indexOf(e))}}let r=this._adjustIndex(i),s=this._lContainer;return fs(s,o,r,n),e.attachToViewContainerRef(),$m(Fu(s),r,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=Dm(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=es(this._lContainer,i);n&&(La(Fu(this._lContainer),i),bl(n[X],n))}detach(e){let i=this._adjustIndex(e,-1),n=es(this._lContainer,i);return n&&La(Fu(this._lContainer),i)!=null?new ho(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function Dm(t){return t[ja]}function Fu(t){return t[ja]||(t[ja]=[])}function H0(t,e){let i,n=e[t.index];return Jn(n)?i=n:(i=S0(n,e,null,t),e[t.index]=i,Ml(e,i)),nw(i,e,t,n),new U0(i,t,e)}function tw(t,e){let i=t[Re],n=i.createComment(""),o=zt(e,t),r=f0(i,o);return qa(i,r,n,zb(i,o),!1),n}var nw=rw,iw=()=>!1;function ow(t,e,i){return iw(t,e,i)}function rw(t,e,i,n){if(t[lo])return;let o;i.type&8?o=Fn(n):o=tw(e,i),t[lo]=o}var Td=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Id=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,o=[];for(let r=0;r<n;r++){let s=i.getByIndex(r),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)Of(e,i).matches!==null&&this.queries[i].setDirty()}},Ja=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=pw(e):this.predicate=e}},xd=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let o=i!==null?i.length:0,r=this.getByIndex(n).embeddedTView(e,o);r&&(r.indexInDeclarationView=n,i!==null?i.push(r):i=[r])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Od=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let o=0;o<n.length;o++){let r=n[o];this.matchTNodeWithReadOption(e,i,sw(i,r)),this.matchTNodeWithReadOption(e,i,Aa(i,e,r,!1,!1))}else n===Ln?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,Aa(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let o=this.metadata.read;if(o!==null)if(o===ye||o===Ei||o===Ln&&i.type&4)this.addMatch(i.index,-2);else{let r=Aa(i,e,o,!1,!1);r!==null&&this.addMatch(i.index,r)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};function sw(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function aw(t,e){return t.type&11?rr(t,e):t.type&4?Tl(t,e):null}function lw(t,e,i,n){return i===-1?aw(e,t):i===-2?cw(t,e,n):po(t,t[X],i,e)}function cw(t,e,i){if(i===ye)return rr(e,t);if(i===Ln)return Tl(e,t);if(i===Ei)return H0(e,t)}function z0(t,e,i,n){let o=e[qn].queries[n];if(o.matches===null){let r=t.data,s=i.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let d=s[l];if(d<0)a.push(null);else{let p=r[d];a.push(lw(e,p,s[l+1],i.metadata.read))}}o.matches=a}return o.matches}function Nd(t,e,i,n){let o=t.queries.getByIndex(i),r=o.matches;if(r!==null){let s=z0(t,e,o,i);for(let a=0;a<r.length;a+=2){let l=r[a];if(l>0)n.push(s[a/2]);else{let d=r[a+1],p=e[-l];for(let m=pt;m<p.length;m++){let _=p[m];_[ao]===_[ht]&&Nd(_[X],_,d,n)}if(p[Zo]!==null){let m=p[Zo];for(let _=0;_<m.length;_++){let g=m[_];Nd(g[X],g,d,n)}}}}}return n}function uw(t,e){return t[qn].queries[e].queryList}function $0(t,e,i){let n=new ld((i&4)===4);return iD(t,e,n,n.destroy),(e[qn]??=new Id).queries.push(new Td(n))-1}function dw(t,e,i){let n=ke();return n.firstCreatePass&&(G0(n,new Ja(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),$0(n,Z(),e)}function fw(t,e,i,n){let o=ke();if(o.firstCreatePass){let r=lt();G0(o,new Ja(e,i,n),r.index),hw(o,t),(i&2)===2&&(o.staticContentQueries=!0)}return $0(o,Z(),i)}function pw(t){return t.split(",").map(e=>e.trim())}function G0(t,e,i){t.queries===null&&(t.queries=new xd),t.queries.track(new Od(e,i))}function hw(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Of(t,e){return t.queries.getByIndex(e)}function mw(t,e){let i=t[X],n=Of(i,e);return n.crossesNgTemplate?Nd(i,t,e,[]):z0(i,t,n,e)}var wm=new Set;function jn(t){wm.has(t)||(wm.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function gw(t){return typeof t=="function"&&t[Tn]!==void 0}function Si(t,e){jn("NgSignals");let i=hh(t),n=i[Tn];return e?.equal&&(n.equal=e.equal),i.set=o=>Zs(n,o),i.update=o=>mh(n,o),i.asReadonly=_w.bind(i),i}function _w(){let t=this[Tn];if(t.readonlyFn===void 0){let e=()=>this();e[Tn]=t,t.readonlyFn=e}return t.readonlyFn}function W0(t){return gw(t)&&typeof t.set=="function"}function vw(t){return Object.getPrototypeOf(t.prototype).constructor}function tt(t){let e=vw(t.type),i=!0,n=[t];for(;e;){let o;if(Ci(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new q(903,!1);o=e.\u0275dir}if(o){if(i){n.push(o);let s=t;s.inputs=Ma(t.inputs),s.inputTransforms=Ma(t.inputTransforms),s.declaredInputs=Ma(t.declaredInputs),s.outputs=Ma(t.outputs);let a=o.hostBindings;a&&ww(t,a);let l=o.viewQuery,d=o.contentQueries;if(l&&bw(t,l),d&&Dw(t,d),yw(t,o),t1(t.outputs,o.outputs),Ci(o)&&o.data.animation){let p=t.data;p.animation=(p.animation||[]).concat(o.data.animation)}}let r=o.features;if(r)for(let s=0;s<r.length;s++){let a=r[s];a&&a.ngInherit&&a(t),a===tt&&(i=!1)}}e=Object.getPrototypeOf(e)}Cw(n)}function yw(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let o=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=e.inputTransforms[o]}}}function Cw(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=Qr(o.hostAttrs,i=Qr(i,o.hostAttrs))}}function Ma(t){return t===Wo?{}:t===wt?[]:t}function bw(t,e){let i=t.viewQuery;i?t.viewQuery=(n,o)=>{e(n,o),i(n,o)}:t.viewQuery=e}function Dw(t,e){let i=t.contentQueries;i?t.contentQueries=(n,o,r)=>{e(n,o,r),i(n,o,r)}:t.contentQueries=e}function ww(t,e){let i=t.hostBindings;i?t.hostBindings=(n,o)=>{e(n,o),i(n,o)}:t.hostBindings=e}var tr=class{};var Xa=class extends tr{constructor(e){super(),this.componentFactoryResolver=new Sd(this),this.instance=null;let i=new Jr([...e.providers,{provide:tr,useValue:this},{provide:ts,useValue:this.componentFactoryResolver}],e.parent||cl(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ew(t,e,i=null){return new Xa({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function Y0(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function xl(t,e,i){return t[e]=i}function Sw(t,e){return t[e]}function Ft(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function Nf(t,e,i,n){let o=Ft(t,e,i);return Ft(t,e+1,n)||o}function Mw(t,e,i,n,o){let r=Nf(t,e,i,n);return Ft(t,e+2,o)||r}function Tw(t){return(t.flags&32)===32}function Iw(t,e,i,n,o,r,s,a,l){let d=e.consts,p=sr(e,t,4,s||null,a||null);Mf(e,i,p,bi(d,l)),vl(e,p);let m=p.tView=Sf(2,p,n,o,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,d,null);return e.queries!==null&&(e.queries.template(e,p),m.queries=e.queries.embeddedTView(p)),p}function el(t,e,i,n,o,r,s,a,l,d){let p=i+et,m=e.firstCreatePass?Iw(p,e,t,n,o,r,s,a,l):e.data[p];go(m,!1);let _=xw(e,t,m,i);gl()&&Dl(e,t,_,m),Di(_,t);let g=S0(_,t,_,m);return t[p]=g,Ml(t,g),ow(g,m,t),pl(m)&&wf(e,t,m),l!=null&&Ef(t,m,d),m}function S(t,e,i,n,o,r,s,a){let l=Z(),d=ke(),p=bi(d.consts,r);return el(l,d,t,e,i,n,o,p,s,a),S}var xw=Ow;function Ow(t,e,i,n){return _l(!0),e[Re].createComment("")}var Nt=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Nt||{}),q0=(()=>{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})(),no=class no{constructor(){this.ngZone=b(ge),this.scheduler=b(Xo),this.errorHandler=b(Kn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of no.PHASES)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[e]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>i.hooks[e](i.pipelinedValue))}catch(n){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};no.PHASES=[Nt.EarlyRead,Nt.Write,Nt.MixedReadWrite,Nt.Read],no.\u0275prov=L({token:no,providedIn:"root",factory:()=>new no});var Ad=no,Rd=class{constructor(e,i,n,o){this.impl=e,this.hooks=i,this.once=n,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Ol(t,e){!e?.injector&&ul(Ol);let i=e?.injector??b(He);return s0(i)?(jn("NgAfterRender"),K0(t,i,e,!1)):Z0}function ar(t,e){!e?.injector&&ul(ar);let i=e?.injector??b(He);return s0(i)?(jn("NgAfterNextRender"),K0(t,i,e,!0)):Z0}function Nw(t,e){if(t instanceof Function){let i=[void 0,void 0,void 0,void 0];return i[e]=t,i}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function K0(t,e,i,n){let o=e.get(q0);o.impl??=e.get(Ad);let r=i?.phase??Nt.MixedReadWrite,s=i?.manualCleanup!==!0?e.get(ei):null,a=new Rd(o.impl,Nw(t,r),n,s);return o.impl.register(a),a}var Z0={destroy(){}};function Mt(t,e,i,n){let o=Z(),r=_o();if(Ft(o,r,e)){let s=ke(),a=ls();vD(a,o,t,e,i,n)}return Mt}function Af(t,e,i,n){return Ft(t,_o(),i)?e+Go(i)+n:St}function Aw(t,e,i,n,o,r){let s=gC(),a=Nf(t,s,i,o);return lf(2),a?e+Go(i)+n+Go(o)+r:St}function Ta(t,e){return t<<17|e<<2}function mo(t){return t>>17&32767}function Rw(t){return(t&2)==2}function kw(t,e){return t&131071|e<<17}function kd(t){return t|2}function nr(t){return(t&131068)>>2}function Pu(t,e){return t&-131069|e<<2}function Fw(t){return(t&1)===1}function Fd(t){return t|1}function Pw(t,e,i,n,o,r){let s=r?e.classBindings:e.styleBindings,a=mo(s),l=nr(s);t[n]=i;let d=!1,p;if(Array.isArray(i)){let m=i;p=m[1],(p===null||rs(m,p)>0)&&(d=!0)}else p=i;if(o)if(l!==0){let _=mo(t[a+1]);t[n+1]=Ta(_,a),_!==0&&(t[_+1]=Pu(t[_+1],n)),t[a+1]=kw(t[a+1],n)}else t[n+1]=Ta(a,0),a!==0&&(t[a+1]=Pu(t[a+1],n)),a=n;else t[n+1]=Ta(l,0),a===0?a=n:t[l+1]=Pu(t[l+1],n),l=n;d&&(t[n+1]=kd(t[n+1])),Em(t,p,n,!0),Em(t,p,n,!1),Lw(e,p,t,n,r),s=Ta(a,l),r?e.classBindings=s:e.styleBindings=s}function Lw(t,e,i,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof e=="string"&&rs(r,e)>=0&&(i[n+1]=Fd(i[n+1]))}function Em(t,e,i,n){let o=t[i+1],r=e===null,s=n?mo(o):nr(o),a=!1;for(;s!==0&&(a===!1||r);){let l=t[s],d=t[s+1];Vw(l,e)&&(a=!0,t[s+1]=n?Fd(d):kd(d)),s=n?mo(d):nr(d)}a&&(t[i+1]=n?kd(o):Fd(o))}function Vw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?rs(t,e)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bw(t){return t.substring(vn.key,vn.keyEnd)}function jw(t){return Uw(t),Q0(t,J0(t,0,vn.textEnd))}function Q0(t,e){let i=vn.textEnd;return i===e?-1:(e=vn.keyEnd=Hw(t,vn.key=e,i),J0(t,e,i))}function Uw(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function J0(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function Hw(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function A(t,e,i){let n=Z(),o=_o();if(Ft(n,o,e)){let r=ke(),s=ls();Sl(r,s,n,t,e,n[Re],i,!1)}return A}function Pd(t,e,i,n,o){let r=e.inputs,s=o?"class":"style";Tf(t,i,r[s],s,n)}function Ce(t,e,i){return e_(t,e,i,!1),Ce}function Qe(t,e){return e_(t,e,null,!0),Qe}function lr(t){t_(qw,X0,t,!0)}function X0(t,e){for(let i=jw(e);i>=0;i=Q0(e,i))al(t,Bw(e),!0)}function e_(t,e,i,n){let o=Z(),r=ke(),s=lf(2);if(r.firstUpdatePass&&i_(r,t,s,n),e!==St&&Ft(o,s,e)){let a=r.data[Xn()];o_(r,a,o,o[Re],t,o[s+1]=Zw(e,i),n,s)}}function t_(t,e,i,n){let o=ke(),r=lf(2);o.firstUpdatePass&&i_(o,null,r,n);let s=Z();if(i!==St&&Ft(s,r,i)){let a=o.data[Xn()];if(r_(a,n)&&!n_(o,r)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=Hu(l,i||"")),Pd(o,a,s,i,n)}else Kw(o,a,s,s[Re],s[r+1],s[r+1]=Yw(t,e,i),n,r)}}function n_(t,e){return e>=t.expandoStartIndex}function i_(t,e,i,n){let o=t.data;if(o[i+1]===null){let r=o[Xn()],s=n_(t,i);r_(r,n)&&e===null&&!s&&(e=!1),e=zw(o,r,e,n),Pw(o,r,e,i,s,n)}}function zw(t,e,i,n){let o=bC(t),r=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(i=Lu(null,t,e,i,n),i=is(i,e.attrs,n),r=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(i=Lu(o,t,e,i,n),r===null){let l=$w(t,e,n);l!==void 0&&Array.isArray(l)&&(l=Lu(null,t,e,l[1],n),l=is(l,e.attrs,n),Gw(t,e,n,l))}else r=Ww(t,e,n)}return r!==void 0&&(n?e.residualClasses=r:e.residualStyles=r),i}function $w(t,e,i){let n=i?e.classBindings:e.styleBindings;if(nr(n)!==0)return t[mo(n)]}function Gw(t,e,i,n){let o=i?e.classBindings:e.styleBindings;t[mo(o)]=n}function Ww(t,e,i){let n,o=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<o;r++){let s=t[r].hostAttrs;n=is(n,s,i)}return is(n,e.attrs,i)}function Lu(t,e,i,n,o){let r=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(r=e[a],n=is(n,r.hostAttrs,o),r!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function is(t,e,i){let n=i?1:2,o=-1;if(e!==null)for(let r=0;r<e.length;r++){let s=e[r];typeof s=="number"?o=s:o===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),al(t,s,i?!0:e[++r]))}return t===void 0?null:t}function Yw(t,e,i){if(i==null||i==="")return wt;let n=[],o=Vn(i);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(n,o[r],!0);else if(typeof o=="object")for(let r in o)o.hasOwnProperty(r)&&t(n,r,o[r]);else typeof o=="string"&&e(n,o);return n}function qw(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&al(t,n,i)}function Kw(t,e,i,n,o,r,s,a){o===St&&(o=wt);let l=0,d=0,p=0<o.length?o[0]:null,m=0<r.length?r[0]:null;for(;p!==null||m!==null;){let _=l<o.length?o[l+1]:void 0,g=d<r.length?r[d+1]:void 0,D=null,x;p===m?(l+=2,d+=2,_!==g&&(D=m,x=g)):m===null||p!==null&&p<m?(l+=2,D=p):(d+=2,D=m,x=g),D!==null&&o_(t,e,i,n,D,x,s,a),p=l<o.length?o[l]:null,m=d<r.length?r[d]:null}}function o_(t,e,i,n,o,r,s,a){if(!(e.type&3))return;let l=t.data,d=l[a+1],p=Fw(d)?Sm(l,e,i,o,nr(d),s):void 0;if(!tl(p)){tl(r)||Rw(d)&&(r=Sm(l,null,i,o,a,s));let m=pg(Xn(),i);Kb(n,s,m,o,r)}}function Sm(t,e,i,n,o,r){let s=e===null,a;for(;o>0;){let l=t[o],d=Array.isArray(l),p=d?l[1]:l,m=p===null,_=i[o+1];_===St&&(_=m?wt:void 0);let g=m?Tu(_,n):p===n?_:void 0;if(d&&!tl(g)&&(g=Tu(l,n)),tl(g)&&(a=g,s))return a;let D=t[o+1];o=s?mo(D):nr(D)}if(e!==null){let l=r?e.residualClasses:e.residualStyles;l!=null&&(a=Tu(l,n))}return a}function tl(t){return t!==void 0}function Zw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=At(Vn(t)))),t}function r_(t,e){return(t.flags&(e?8:16))!==0}function cr(t,e,i){let n=Z(),o=Af(n,t,e,i);t_(al,X0,o,!0)}var Ld=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),o=Math.max(e,i),r=this.detach(o);if(o-n>1){let s=this.detach(n);this.attach(n,r),this.attach(o,s)}else this.attach(n,r)}move(e,i){this.attach(i,this.detach(e))}};function Vu(t,e,i,n,o){return t===i&&Object.is(e,n)?1:Object.is(o(t,e),o(i,n))?-1:0}function Qw(t,e,i){let n,o,r=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;r<=s&&r<=l;){let d=t.at(r),p=e[r],m=Vu(r,d,r,p,i);if(m!==0){m<0&&t.updateValue(r,p),r++;continue}let _=t.at(s),g=e[l],D=Vu(s,_,l,g,i);if(D!==0){D<0&&t.updateValue(s,g),s--,l--;continue}let x=i(r,d),O=i(s,_),N=i(r,p);if(Object.is(N,O)){let z=i(l,g);Object.is(z,x)?(t.swap(r,s),t.updateValue(s,g),l--,s--):t.move(s,r),t.updateValue(r,p),r++;continue}if(n??=new nl,o??=Tm(t,r,s,i),Vd(t,n,r,N))t.updateValue(r,p),r++,s++;else if(o.has(N))n.set(x,t.detach(r)),s--;else{let z=t.create(r,e[r]);t.attach(r,z),r++,s++}}for(;r<=l;)Mm(t,n,i,r,e[r]),r++}else if(e!=null){let l=e[Symbol.iterator](),d=l.next();for(;!d.done&&r<=s;){let p=t.at(r),m=d.value,_=Vu(r,p,r,m,i);if(_!==0)_<0&&t.updateValue(r,m),r++,d=l.next();else{n??=new nl,o??=Tm(t,r,s,i);let g=i(r,m);if(Vd(t,n,r,g))t.updateValue(r,m),r++,s++,d=l.next();else if(!o.has(g))t.attach(r,t.create(r,m)),r++,s++,d=l.next();else{let D=i(r,p);n.set(D,t.detach(r)),s--}}}for(;!d.done;)Mm(t,n,i,t.length,d.value),d=l.next()}for(;r<=s;)t.destroy(t.detach(s--));n?.forEach(l=>{t.destroy(l)})}function Vd(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function Mm(t,e,i,n,o){if(Vd(t,e,n,i(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Tm(t,e,i,n){let o=new Set;for(let r=e;r<=i;r++)o.add(n(r,t.at(r)));return o}var nl=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),e(n,i)}}};function I(t,e){jn("NgControlFlow");let i=Z(),n=_o(),o=i[n]!==St?i[n]:-1,r=o!==-1?il(i,et+o):void 0,s=0;if(Ft(i,n,t)){let a=ce(null);try{if(r!==void 0&&A0(r,s),t!==-1){let l=et+t,d=il(i,l),p=Hd(i[X],l),m=Jo(d,p.tView.ssrId),_=ds(i,p,e,{dehydratedView:m});fs(d,_,s,Qo(p,m))}}finally{ce(a)}}else if(r!==void 0){let a=N0(r,s);a!==void 0&&(a[ft]=e)}}var Bd=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-pt}};function Yt(t){return t}function yo(t,e){return e}var jd=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function ee(t,e,i,n,o,r,s,a,l,d,p,m,_){jn("NgControlFlow");let g=Z(),D=ke(),x=l!==void 0,O=Z(),N=a?s.bind(O[kt][ft]):s,z=new jd(x,N);O[et+t]=z,el(g,D,t+1,e,i,n,o,bi(D.consts,r)),x&&el(g,D,t+2,l,d,p,m,bi(D.consts,_))}var Ud=class extends Ld{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-pt}at(e){return this.getLView(e)[ft].$implicit}attach(e,i){let n=i[qo];this.needsIndexUpdate||=e!==this.length,fs(this.lContainer,i,e,Qo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Jw(this.lContainer,e)}create(e,i){let n=Jo(this.lContainer,this.templateTNode.tView.ssrId),o=ds(this.hostLView,this.templateTNode,new Bd(this.lContainer,i,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(e){bl(e[X],e),this.operationsCounter?.recordDestroy()}updateValue(e,i){this.getLView(e)[ft].$implicit=i}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[ft].$index=e}getLView(e){return Xw(this.lContainer,e)}};function te(t){let e=ce(null),i=Xn();try{let n=Z(),o=n[X],r=n[i],s=i+1,a=il(n,s);if(r.liveCollection===void 0){let d=Hd(o,s);r.liveCollection=new Ud(a,n,d)}else r.liveCollection.reset();let l=r.liveCollection;if(Qw(l,t,r.trackByFn),l.updateIndexes(),r.hasEmptyBlock){let d=_o(),p=l.length===0;if(Ft(n,d,p)){let m=i+2,_=il(n,m);if(p){let g=Hd(o,m),D=Jo(_,g.tView.ssrId),x=ds(n,g,void 0,{dehydratedView:D});fs(_,x,0,Qo(g,D))}else A0(_,0)}}}finally{ce(e)}}function il(t,e){return t[e]}function Jw(t,e){return es(t,e)}function Xw(t,e){return N0(t,e)}function Hd(t,e){return nf(t,e)}function eE(t,e,i,n,o,r){let s=e.consts,a=bi(s,o),l=sr(e,t,2,n,a);return Mf(e,i,l,bi(s,r)),l.attrs!==null&&Qa(l,l.attrs,!1),l.mergedAttrs!==null&&Qa(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function c(t,e,i,n){let o=Z(),r=ke(),s=et+t,a=o[Re],l=r.firstCreatePass?eE(s,r,o,e,i,n):r.data[s],d=tE(r,o,l,a,e,t);o[s]=d;let p=pl(l);return go(l,!0),_0(a,d,l),!Tw(l)&&gl()&&Dl(r,o,d,l),cC()===0&&Di(d,o),uC(),p&&(wf(r,o,l),Df(r,l,o)),n!==null&&Ef(o,l),c}function u(){let t=lt();sf()?af():(t=t.parent,go(t,!1));let e=t;fC(e)&&pC(),dC();let i=ke();return i.firstCreatePass&&(vl(i,t),tf(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&IC(e)&&Pd(i,e,Z(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&xC(e)&&Pd(i,e,Z(),e.stylesWithoutHost,!1),u}function v(t,e,i,n){return c(t,e,i,n),u(),v}var tE=(t,e,i,n,o,r)=>(_l(!0),a0(n,o,EC()));function nE(t,e,i,n,o){let r=e.consts,s=bi(r,n),a=sr(e,t,8,"ng-container",s);s!==null&&Qa(a,s,!0);let l=bi(r,o);return Mf(e,i,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function Rf(t,e,i){let n=Z(),o=ke(),r=t+et,s=o.firstCreatePass?nE(r,o,n,e,i):o.data[r];go(s,!0);let a=iE(o,n,s,t);return n[r]=a,gl()&&Dl(o,n,a,s),Di(a,n),pl(s)&&(wf(o,n,s),Df(o,s,n)),i!=null&&Ef(n,s),Rf}function kf(){let t=lt(),e=ke();return sf()?af():(t=t.parent,go(t,!1)),e.firstCreatePass&&(vl(e,t),tf(t)&&e.queries.elementEnd(t)),kf}var iE=(t,e,i,n)=>(_l(!0),Fb(e[Re],""));function U(){return Z()}function Mi(t,e,i){let n=Z(),o=_o();if(Ft(n,o,e)){let r=ke(),s=ls();Sl(r,s,n,t,e,n[Re],i,!0)}return Mi}var eo=void 0;function oE(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var rE=["en",[["a","p"],["AM","PM"],eo],[["AM","PM"],eo,eo],[["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"]],eo,[["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"]],eo,[["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}",eo,"{1} 'at' {0}",eo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",oE],Bu={};function qt(t){let e=sE(t),i=Im(e);if(i)return i;let n=e.split("-")[0];if(i=Im(n),i)return i;if(n==="en")return rE;throw new q(701,!1)}function Im(t){return t in Bu||(Bu[t]=io.ng&&io.ng.common&&io.ng.common.locales&&io.ng.common.locales[t]),Bu[t]}var ze=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(ze||{});function sE(t){return t.toLowerCase().replace(/_/g,"-")}var ol="en-US";var aE=ol;function lE(t){typeof t=="string"&&(aE=t.toLowerCase().replace(/_/g,"-"))}var cE=(t,e,i)=>{};function C(t,e,i,n){let o=Z(),r=ke(),s=lt();return s_(r,o,o[Re],s,t,e,n),C}function uE(t,e,i,n){let o=t.cleanup;if(o!=null)for(let r=0;r<o.length-1;r+=2){let s=o[r];if(s===i&&o[r+1]===n){let a=e[Ba],l=o[r+2];return a.length>l?a[l]:null}typeof s=="string"&&(r+=2)}return null}function s_(t,e,i,n,o,r,s){let a=pl(n),d=t.firstCreatePass&&I0(t),p=e[ft],m=T0(e),_=!0;if(n.type&3||s){let x=zt(n,e),O=s?s(x):x,N=m.length,z=s?P=>s(Fn(P[n.index])):n.index,le=null;if(!s&&a&&(le=uE(t,e,o,n.index)),le!==null){let P=le.__ngLastListenerFn__||le;P.__ngNextListenerFn__=r,le.__ngLastListenerFn__=r,_=!1}else{r=Om(n,e,p,r),cE(x,o,r);let P=i.listen(O,o,r);m.push(r,P),d&&d.push(o,z,N,N+1)}}else r=Om(n,e,p,r);let g=n.outputs,D;if(_&&g!==null&&(D=g[o])){let x=D.length;if(x)for(let O=0;O<x;O+=2){let N=D[O],z=D[O+1],oe=e[N][z].subscribe(r),$=m.length;m.push(r,oe),d&&d.push(o,n.index,$,-($+1))}}}function xm(t,e,i,n){let o=ce(null);try{return Nn(6,e,i),i(n)!==!1}catch(r){return x0(t,r),!1}finally{Nn(7,e,i),ce(o)}}function Om(t,e,i,n){return function o(r){if(r===Function)return n;let s=t.componentOffset>-1?wi(t.index,e):e;xf(s,5);let a=xm(e,i,n,r),l=o.__ngNextListenerFn__;for(;l;)a=xm(e,i,l,r)&&a,l=l.__ngNextListenerFn__;return a}}function y(t=1){return wC(t)}function dE(t,e){let i=null,n=N1(t);for(let o=0;o<e.length;o++){let r=e[o];if(r==="*"){i=o;continue}if(n===null?Zm(t,r,!0):k1(n,r))return o}return i}function Nl(t){let e=Z()[kt][Et];if(!e.projection){let i=t?t.length:1,n=e.projection=D1(i,null),o=n.slice(),r=e.child;for(;r!==null;){if(r.type!==128){let s=t?dE(r,t):0;s!==null&&(o[s]?o[s].projectionNext=r:n[s]=r,o[s]=r)}r=r.next}}}function ur(t,e=0,i,n,o,r){let s=Z(),a=ke(),l=n?t+1:null;l!==null&&el(s,a,l,n,o,r,null,i);let d=sr(a,et+t,16,null,i||null);d.projection===null&&(d.projection=e),af();let m=!s[qo]||yg();s[kt][Et].projection[d.projection]===null&&l!==null?fE(s,a,l):m&&(d.flags&32)!==32&&Yb(a,s,d)}function fE(t,e,i){let n=et+i,o=e.data[n],r=t[n],s=Jo(r,o.tView.ssrId),a=ds(t,o,void 0,{dehydratedView:s});fs(r,a,0,Qo(o,s))}function ni(t,e,i,n,o){let r=Z(),s=Af(r,e,i,n);if(s!==St){let a=ke(),l=ls();Sl(a,l,r,t,s,r[Re],o,!1)}return ni}function Co(t,e,i,n){fw(t,e,i,n)}function dr(t,e,i){dw(t,e,i)}function Kt(t){let e=Z(),i=ke(),n=Dg();cf(n+1);let o=Of(i,n);if(t.dirty&&rC(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let r=mw(e,n);t.reset(r,JC),t.notifyOnChanges()}return!0}return!1}function Zt(){return uw(Z(),Dg())}function pE(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function fr(t){let e=mC();return of(e,et+t)}function f(t,e=""){let i=Z(),n=ke(),o=t+et,r=n.firstCreatePass?sr(n,o,1,e,null):n.data[o],s=hE(n,i,r,e,t);i[o]=s,gl()&&Dl(n,i,s,r),go(r,!1)}var hE=(t,e,i,n,o)=>(_l(!0),Rb(e[Re],n));function J(t){return B("",t,""),J}function B(t,e,i){let n=Z(),o=Af(n,t,e,i);return o!==St&&O0(n,Xn(),o),B}function Tt(t,e,i,n,o){let r=Z(),s=Aw(r,t,e,i,n,o);return s!==St&&O0(r,Xn(),s),Tt}function R(t,e,i){W0(e)&&(e=e());let n=Z(),o=_o();if(Ft(n,o,e)){let r=ke(),s=ls();Sl(r,s,n,t,e,n[Re],i,!1)}return R}function F(t,e){let i=W0(t);return i&&t.set(e),i}function k(t,e){let i=Z(),n=ke(),o=lt();return s_(n,i,i[Re],o,t,e),k}function mE(t,e,i){let n=ke();if(n.firstCreatePass){let o=Ci(t);zd(i,n.data,n.blueprint,o,!0),zd(e,n.data,n.blueprint,o,!1)}}function zd(t,e,i,n,o){if(t=vt(t),Array.isArray(t))for(let r=0;r<t.length;r++)zd(t[r],e,i,n,o);else{let r=ke(),s=Z(),a=lt(),l=Yo(t)?t:vt(t.provide),d=og(t),p=a.providerIndexes&1048575,m=a.directiveStart,_=a.providerIndexes>>20;if(Yo(t)||!t.multi){let g=new fo(d,o,w),D=Uu(l,e,o?p:p+_,m);D===-1?(nd(Ga(a,s),r,l),ju(r,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),i.push(g),s.push(g)):(i[D]=g,s[D]=g)}else{let g=Uu(l,e,p+_,m),D=Uu(l,e,p,p+_),x=g>=0&&i[g],O=D>=0&&i[D];if(o&&!O||!o&&!x){nd(Ga(a,s),r,l);let N=vE(o?_E:gE,i.length,o,n,d);!o&&O&&(i[D].providerFactory=N),ju(r,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),i.push(N),s.push(N)}else{let N=a_(i[o?D:g],d,!o&&n);ju(r,t,g>-1?g:D,N)}!o&&n&&O&&i[D].componentProviders++}}}function ju(t,e,i,n){let o=Yo(e),r=W1(e);if(o||r){let l=(r?vt(e.useClass):e).prototype.ngOnDestroy;if(l){let d=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let p=d.indexOf(i);p===-1?d.push(i,[n,l]):d[p+1].push(n,l)}else d.push(i,l)}}}function a_(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Uu(t,e,i,n){for(let o=i;o<n;o++)if(e[o]===t)return o;return-1}function gE(t,e,i,n){return $d(this.multi,[])}function _E(t,e,i,n){let o=this.multi,r;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=po(i,i[X],this.providerFactory.index,n);r=a.slice(0,s),$d(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],$d(o,r);return r}function $d(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function vE(t,e,i,n,o){let r=new fo(t,i,w);return r.multi=[],r.index=e,r.componentProviders=0,a_(r,o,n&&!i),r}function nt(t,e=[]){return i=>{i.providersResolver=(n,o)=>mE(n,o?o(t):t,e)}}var yE=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=tg(!1,n.type),r=o.length>0?Ew([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,r)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=L({token:e,providedIn:"environment",factory:()=>new e(H(Rt))});let t=e;return t})();function j(t){jn("NgStandalone"),t.getStandaloneInjector=e=>e.get(yE).getOrCreateStandaloneInjector(t)}function pr(t,e,i){let n=as()+t,o=Z();return o[n]===St?xl(o,n,i?e.call(i):e()):Sw(o,n)}function l_(t,e,i,n){return u_(Z(),as(),t,e,i,n)}function c_(t,e,i,n,o,r){return bE(Z(),as(),t,e,i,n,o,r)}function Ff(t,e){let i=t[e];return i===St?void 0:i}function u_(t,e,i,n,o,r){let s=e+i;return Ft(t,s,o)?xl(t,s+1,r?n.call(r,o):n(o)):Ff(t,s+1)}function CE(t,e,i,n,o,r,s){let a=e+i;return Nf(t,a,o,r)?xl(t,a+2,s?n.call(s,o,r):n(o,r)):Ff(t,a+2)}function bE(t,e,i,n,o,r,s,a){let l=e+i;return Mw(t,l,o,r,s)?xl(t,l+3,a?n.call(a,o,r,s):n(o,r,s)):Ff(t,l+3)}function Qt(t,e){let i=ke(),n,o=t+et;i.firstCreatePass?(n=DE(e,i.pipeRegistry),i.data[o]=n,n.onDestroy&&(i.destroyHooks??=[]).push(o,n.onDestroy)):n=i.data[o];let r=n.factory||(n.factory=ro(n.type,!0)),s,a=Dt(w);try{let l=$a(!1),d=r();return $a(l),pE(i,Z(),o,d),d}finally{Dt(a)}}function DE(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Ti(t,e,i){let n=t+et,o=Z(),r=of(o,n);return d_(o,n)?u_(o,as(),e,r.transform,i,r):r.transform(i)}function Al(t,e,i,n){let o=t+et,r=Z(),s=of(r,o);return d_(r,o)?CE(r,as(),e,s.transform,i,n,s):s.transform(i,n)}function d_(t,e){return t[X].data[e].pure}function f_(t,e){return Tl(t,e)}var p_=new G("");function ps(t){return!!t&&typeof t.then=="function"}function h_(t){return!!t&&typeof t.subscribe=="function"}var wE=new G(""),m_=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=b(wE,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let r of this.appInits){let s=r();if(ps(s))n.push(s);else if(h_(s)){let a=new Promise((l,d)=>{s.subscribe({complete:l,error:d})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(r=>{this.reject(r)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g_=new G("");function EE(){ph(()=>{throw new q(600,!1)})}function SE(t){return t.isBoundToModule}var ME=10;function TE(t,e,i){try{let n=i();return ps(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var ii=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(KC),this.afterRenderManager=b(q0),this.zonelessEnabled=b(Il),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new he,this.afterTick=new he,this.componentTypes=[],this.components=[],this.isStable=b(or).hasPendingTasks.pipe(Me(n=>!n)),this._injector=b(Rt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(o=>{n=this.isStable.subscribe({next:r=>{r&&o()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,o){let r=n instanceof Za;if(!this._injector.get(m_).done){let g=!r&&j1(n),D=!1;throw new q(405,D)}let a;r?a=n:a=this._injector.get(ts).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=SE(a)?void 0:this._injector.get(tr),d=o||a.selector,p=a.create(He.NULL,[],d,l),m=p.location.nativeElement,_=p.injector.get(p_,null);return _?.registerApplication(m),p.onDestroy(()=>{this.detachView(p.hostView),Ra(this.components,p),_?.unregisterApplication(m)}),this._loadComponent(p),p}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new q(101,!1);let n=ce(null);try{this._runningTick=!0,this.synchronize()}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,ce(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(er,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let o=0;for(;this.dirtyFlags!==0&&o++<ME;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let o=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(o);for(let{_lView:r,notifyErrorHandler:s}of this._views)IE(r,s,o,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>hl(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;Ra(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(g_,[]);[...this._bootstrapListeners,...o].forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ra(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new q(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ra(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function IE(t,e,i,n){if(!i&&!hl(t))return;F0(t,e,i&&!n?0:1)}var xE=(()=>{let e=class e{constructor(){this.zone=b(ge),this.changeDetectionScheduler=b(Xo),this.applicationRef=b(ii)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),OE=new G("",{factory:()=>!1});function __({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:i}){return t??=()=>new ge(Se(Y({},y_()),{scheduleInRootZone:i})),[{provide:ge,useFactory:t},{provide:Zr,multi:!0,useFactory:()=>{let n=b(xE,{optional:!0});return()=>n.initialize()}},{provide:Zr,multi:!0,useFactory:()=>{let n=b(NE);return()=>{n.initialize()}}},e===!0?{provide:B0,useValue:!0}:[],{provide:j0,useValue:i??Bg}]}function v_(t){let e=t?.ignoreChangesOutsideZone,i=t?.scheduleInRootZone,n=__({ngZoneFactory:()=>{let o=y_(t);return o.scheduleInRootZone=i,o.shouldCoalesceEventChangeDetection&&jn("NgZone_CoalesceEvent"),new ge(o)},ignoreChangesOutsideZone:e,scheduleInRootZone:i});return ss([{provide:OE,useValue:!0},{provide:Il,useValue:!1},n])}function y_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var NE=(()=>{let e=class e{constructor(){this.subscription=new Ue,this.initialized=!1,this.zone=b(ge),this.pendingTasks=b(or)}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(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var AE=(()=>{let e=class e{constructor(){this.appRef=b(ii),this.taskService=b(or),this.ngZone=b(ge),this.zonelessEnabled=b(Il),this.disableScheduling=b(B0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ue,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ya):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(j0,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 ad||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?lm:jg;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ya+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,lm(()=>{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)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RE(){return typeof $localize<"u"&&$localize.locale||ol}var hs=new G("",{providedIn:"root",factory:()=>b(hs,fe.Optional|fe.SkipSelf)||RE()});var Gd=new G("");function Ia(t){return!t.moduleRef}function kE(t){let e=Ia(t)?t.r3Injector:t.moduleRef.injector,i=e.get(ge);return i.run(()=>{Ia(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(Kn,null),o;if(i.runOutsideAngular(()=>{o=i.onError.subscribe({next:r=>{n.handleError(r)}})}),Ia(t)){let r=()=>e.destroy(),s=t.platformInjector.get(Gd);s.add(r),e.onDestroy(()=>{o.unsubscribe(),s.delete(r)})}else{let r=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Gd);s.add(r),t.moduleRef.onDestroy(()=>{Ra(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(r)})}return TE(n,i,()=>{let r=e.get(m_);return r.runInitializers(),r.donePromise.then(()=>{let s=e.get(hs,ol);if(lE(s||ol),Ia(t)){let a=e.get(ii);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return FE(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function FE(t,e){let i=t.injector.get(ii);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>i.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(i);else throw new q(-403,!1);e.push(t)}var ka=null;function PE(t=[],e){return He.create({name:e,providers:[{provide:ll,useValue:"platform"},{provide:Gd,useValue:new Set([()=>ka=null])},...t]})}function LE(t=[]){if(ka)return ka;let e=PE(t);return ka=e,EE(),VE(e),e}function VE(t){t.get(gf,null)?.forEach(i=>i())}var Jt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BE;let t=e;return t})();function BE(t){return jE(lt(),Z(),(t&16)===16)}function jE(t,e,i){if(fl(t)&&!i){let n=wi(t.index,e);return new ho(n,n)}else if(t.type&175){let n=e[kt];return new ho(n,e)}return null}var Wd=class{constructor(){}supports(e){return e instanceof Map||Y0(e)}create(){return new Yd}},Yd=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let i;for(i=this._mapHead;i!==null;i=i._next)e(i)}forEachPreviousItem(e){let i;for(i=this._previousMapHead;i!==null;i=i._nextPrevious)e(i)}forEachChangedItem(e){let i;for(i=this._changesHead;i!==null;i=i._nextChanged)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||Y0(e)))throw new q(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,o)=>{if(i&&i.key===o)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let r=this._getOrCreateRecordForKey(o,n);i=this._insertBeforeOrAppend(i,r)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){let n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,i);let r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}let n=new qd(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}},qd=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Nm(){return new Pf([new Wd])}var Pf=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o){let r=o.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Nm()),deps:[[e,new y1,new zm]]}}find(n){let o=this.factories.find(r=>r.supports(n));if(o)return o;throw new q(901,!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:Nm});let t=e;return t})();function C_(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,o=LE(n),r=[__({}),{provide:Xo,useExisting:AE},...i||[]],s=new Xa({providers:r,parent:o,debugName:"",runEnvironmentInitializers:!1});return kE({r3Injector:s.injector,platformInjector:o,rootComponent:e})}catch(e){return Promise.reject(e)}}function Lf(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function hr(t,e){jn("NgSignals");let i=uh(t);return e?.equal&&(i[Tn].equal=e.equal),i}function Un(t){let e=ce(null);try{return t()}finally{ce(e)}}function Rl(t,e){let i=so(t),n=e.elementInjector||cl();return new ns(i).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}var S_=null;function gr(){return S_}function M_(t){S_??=t}var Hl=class{};var Fe=new G("");var Ct=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ct||{}),Ee=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Ee||{}),Pt=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Pt||{}),Ii={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 HE(t){return qt(t)[ze.LocaleId]}function zE(t,e,i){let n=qt(t),o=[n[ze.DayPeriodsFormat],n[ze.DayPeriodsStandalone]],r=Xt(o,e);return Xt(r,i)}function $E(t,e,i){let n=qt(t),o=[n[ze.DaysFormat],n[ze.DaysStandalone]],r=Xt(o,e);return Xt(r,i)}function GE(t,e,i){let n=qt(t),o=[n[ze.MonthsFormat],n[ze.MonthsStandalone]],r=Xt(o,e);return Xt(r,i)}function WE(t,e){let n=qt(t)[ze.Eras];return Xt(n,e)}function kl(t,e){let i=qt(t);return Xt(i[ze.DateFormat],e)}function Fl(t,e){let i=qt(t);return Xt(i[ze.TimeFormat],e)}function Pl(t,e){let n=qt(t)[ze.DateTimeFormat];return Xt(n,e)}function $l(t,e){let i=qt(t),n=i[ze.NumberSymbols][e];if(typeof n>"u"){if(e===Ii.CurrencyDecimal)return i[ze.NumberSymbols][Ii.Decimal];if(e===Ii.CurrencyGroup)return i[ze.NumberSymbols][Ii.Group]}return n}function T_(t){if(!t[ze.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[ze.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function YE(t){let e=qt(t);return T_(e),(e[ze.ExtraData][2]||[]).map(n=>typeof n=="string"?Bf(n):[Bf(n[0]),Bf(n[1])])}function qE(t,e,i){let n=qt(t);T_(n);let o=[n[ze.ExtraData][0],n[ze.ExtraData][1]],r=Xt(o,e)||[];return Xt(r,i)||[]}function Xt(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function Bf(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}var KE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ll={},ZE=/((?:[^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]*)/,ri=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ri||{}),ve=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ve||{}),_e=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(_e||{});function I_(t,e,i,n){let o=rS(t);e=oi(i,e)||e;let s=[],a;for(;e;)if(a=ZE.exec(e),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;e=p}else{s.push(e);break}let l=o.getTimezoneOffset();n&&(l=O_(n,l),o=oS(o,n,!0));let d="";return s.forEach(p=>{let m=nS(p);d+=m?m(o,i,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function zl(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function oi(t,e){let i=HE(t);if(Ll[i]??={},Ll[i][e])return Ll[i][e];let n="";switch(e){case"shortDate":n=kl(t,Pt.Short);break;case"mediumDate":n=kl(t,Pt.Medium);break;case"longDate":n=kl(t,Pt.Long);break;case"fullDate":n=kl(t,Pt.Full);break;case"shortTime":n=Fl(t,Pt.Short);break;case"mediumTime":n=Fl(t,Pt.Medium);break;case"longTime":n=Fl(t,Pt.Long);break;case"fullTime":n=Fl(t,Pt.Full);break;case"short":let o=oi(t,"shortTime"),r=oi(t,"shortDate");n=Vl(Pl(t,Pt.Short),[o,r]);break;case"medium":let s=oi(t,"mediumTime"),a=oi(t,"mediumDate");n=Vl(Pl(t,Pt.Medium),[s,a]);break;case"long":let l=oi(t,"longTime"),d=oi(t,"longDate");n=Vl(Pl(t,Pt.Long),[l,d]);break;case"full":let p=oi(t,"fullTime"),m=oi(t,"fullDate");n=Vl(Pl(t,Pt.Full),[p,m]);break}return n&&(Ll[i][e]=n),n}function Vl(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function bn(t,e,i="-",n,o){let r="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,r=i));let s=String(t);for(;s.length<e;)s="0"+s;return n&&(s=s.slice(s.length-e)),r+s}function QE(t,e){return bn(t,3).substring(0,e)}function Ge(t,e,i=0,n=!1,o=!1){return function(r,s){let a=JE(t,r);if((i>0||a>-i)&&(a+=i),t===ve.Hours)a===0&&i===-12&&(a=12);else if(t===ve.FractionalSeconds)return QE(a,e);let l=$l(s,Ii.MinusSign);return bn(a,e,l,n,o)}}function JE(t,e){switch(t){case ve.FullYear:return e.getFullYear();case ve.Month:return e.getMonth();case ve.Date:return e.getDate();case ve.Hours:return e.getHours();case ve.Minutes:return e.getMinutes();case ve.Seconds:return e.getSeconds();case ve.FractionalSeconds:return e.getMilliseconds();case ve.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Te(t,e,i=Ct.Format,n=!1){return function(o,r){return XE(o,r,t,e,i,n)}}function XE(t,e,i,n,o,r){switch(i){case _e.Months:return GE(e,o,n)[t.getMonth()];case _e.Days:return $E(e,o,n)[t.getDay()];case _e.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(r){let d=YE(e),p=qE(e,o,n),m=d.findIndex(_=>{if(Array.isArray(_)){let[g,D]=_,x=s>=g.hours&&a>=g.minutes,O=s<D.hours||s===D.hours&&a<D.minutes;if(g.hours<D.hours){if(x&&O)return!0}else if(x||O)return!0}else if(_.hours===s&&_.minutes===a)return!0;return!1});if(m!==-1)return p[m]}return zE(e,o,n)[s<12?0:1];case _e.Eras:return WE(e,n)[t.getFullYear()<=0?0:1];default:let l=i;throw new Error(`unexpected translation type ${l}`)}}function Bl(t){return function(e,i,n){let o=-1*n,r=$l(i,Ii.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case ri.Short:return(o>=0?"+":"")+bn(s,2,r)+bn(Math.abs(o%60),2,r);case ri.ShortGMT:return"GMT"+(o>=0?"+":"")+bn(s,1,r);case ri.Long:return"GMT"+(o>=0?"+":"")+bn(s,2,r)+":"+bn(Math.abs(o%60),2,r);case ri.Extended:return n===0?"Z":(o>=0?"+":"")+bn(s,2,r)+":"+bn(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}var eS=0,Ul=4;function tS(t){let e=zl(t,eS,1).getDay();return zl(t,0,1+(e<=Ul?Ul:Ul+7)-e)}function x_(t){let e=t.getDay(),i=e===0?-3:Ul-e;return zl(t.getFullYear(),t.getMonth(),t.getDate()+i)}function jf(t,e=!1){return function(i,n){let o;if(e){let r=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,s=i.getDate();o=1+Math.floor((s+r)/7)}else{let r=x_(i),s=tS(r.getFullYear()),a=r.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return bn(o,t,$l(n,Ii.MinusSign))}}function jl(t,e=!1){return function(i,n){let r=x_(i).getFullYear();return bn(r,t,$l(n,Ii.MinusSign),e)}}var Uf={};function nS(t){if(Uf[t])return Uf[t];let e;switch(t){case"G":case"GG":case"GGG":e=Te(_e.Eras,Ee.Abbreviated);break;case"GGGG":e=Te(_e.Eras,Ee.Wide);break;case"GGGGG":e=Te(_e.Eras,Ee.Narrow);break;case"y":e=Ge(ve.FullYear,1,0,!1,!0);break;case"yy":e=Ge(ve.FullYear,2,0,!0,!0);break;case"yyy":e=Ge(ve.FullYear,3,0,!1,!0);break;case"yyyy":e=Ge(ve.FullYear,4,0,!1,!0);break;case"Y":e=jl(1);break;case"YY":e=jl(2,!0);break;case"YYY":e=jl(3);break;case"YYYY":e=jl(4);break;case"M":case"L":e=Ge(ve.Month,1,1);break;case"MM":case"LL":e=Ge(ve.Month,2,1);break;case"MMM":e=Te(_e.Months,Ee.Abbreviated);break;case"MMMM":e=Te(_e.Months,Ee.Wide);break;case"MMMMM":e=Te(_e.Months,Ee.Narrow);break;case"LLL":e=Te(_e.Months,Ee.Abbreviated,Ct.Standalone);break;case"LLLL":e=Te(_e.Months,Ee.Wide,Ct.Standalone);break;case"LLLLL":e=Te(_e.Months,Ee.Narrow,Ct.Standalone);break;case"w":e=jf(1);break;case"ww":e=jf(2);break;case"W":e=jf(1,!0);break;case"d":e=Ge(ve.Date,1);break;case"dd":e=Ge(ve.Date,2);break;case"c":case"cc":e=Ge(ve.Day,1);break;case"ccc":e=Te(_e.Days,Ee.Abbreviated,Ct.Standalone);break;case"cccc":e=Te(_e.Days,Ee.Wide,Ct.Standalone);break;case"ccccc":e=Te(_e.Days,Ee.Narrow,Ct.Standalone);break;case"cccccc":e=Te(_e.Days,Ee.Short,Ct.Standalone);break;case"E":case"EE":case"EEE":e=Te(_e.Days,Ee.Abbreviated);break;case"EEEE":e=Te(_e.Days,Ee.Wide);break;case"EEEEE":e=Te(_e.Days,Ee.Narrow);break;case"EEEEEE":e=Te(_e.Days,Ee.Short);break;case"a":case"aa":case"aaa":e=Te(_e.DayPeriods,Ee.Abbreviated);break;case"aaaa":e=Te(_e.DayPeriods,Ee.Wide);break;case"aaaaa":e=Te(_e.DayPeriods,Ee.Narrow);break;case"b":case"bb":case"bbb":e=Te(_e.DayPeriods,Ee.Abbreviated,Ct.Standalone,!0);break;case"bbbb":e=Te(_e.DayPeriods,Ee.Wide,Ct.Standalone,!0);break;case"bbbbb":e=Te(_e.DayPeriods,Ee.Narrow,Ct.Standalone,!0);break;case"B":case"BB":case"BBB":e=Te(_e.DayPeriods,Ee.Abbreviated,Ct.Format,!0);break;case"BBBB":e=Te(_e.DayPeriods,Ee.Wide,Ct.Format,!0);break;case"BBBBB":e=Te(_e.DayPeriods,Ee.Narrow,Ct.Format,!0);break;case"h":e=Ge(ve.Hours,1,-12);break;case"hh":e=Ge(ve.Hours,2,-12);break;case"H":e=Ge(ve.Hours,1);break;case"HH":e=Ge(ve.Hours,2);break;case"m":e=Ge(ve.Minutes,1);break;case"mm":e=Ge(ve.Minutes,2);break;case"s":e=Ge(ve.Seconds,1);break;case"ss":e=Ge(ve.Seconds,2);break;case"S":e=Ge(ve.FractionalSeconds,1);break;case"SS":e=Ge(ve.FractionalSeconds,2);break;case"SSS":e=Ge(ve.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Bl(ri.Short);break;case"ZZZZZ":e=Bl(ri.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Bl(ri.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Bl(ri.Long);break;default:return null}return Uf[t]=e,e}function O_(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function iS(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function oS(t,e,i){let n=i?-1:1,o=t.getTimezoneOffset(),r=O_(e,o);return iS(t,n*(r-o))}function rS(t){if(b_(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,r=1,s=1]=t.split("-").map(a=>+a);return zl(o,r-1,s)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(KE))return sS(n)}let e=new Date(t);if(!b_(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function sS(t){let e=new Date(0),i=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),d=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return r.call(e,s,a,l,d),e}function b_(t){return t instanceof Date&&!isNaN(t.valueOf())}function Gl(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[o,r]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(o.trim()===e)return decodeURIComponent(r)}return null}var Hf=/\s+/,D_=[],$f=(()=>{let e=class e{constructor(n,o){this._ngEl=n,this._renderer=o,this.initialClasses=D_,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Hf):D_}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Hf):n}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let o of n)this._updateState(o,!0);else if(n!=null)for(let o of Object.keys(n))this._updateState(o,!!n[o]);this._applyStateDiff()}_updateState(n,o){let r=this.stateMap.get(n);r!==void 0?(r.enabled!==o&&(r.changed=!0,r.enabled=o),r.touched=!0):this.stateMap.set(n,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let o=n[0],r=n[1];r.changed?(this._toggleClass(o,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),r.touched=!1}}_toggleClass(n,o){n=n.trim(),n.length>0&&n.split(Hf).forEach(r=>{o?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt))},e.\u0275dir=ae({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var _r=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new zf,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){w_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){w_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(w(Ei),w(Ln))},e.\u0275dir=ae({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),zf=class{constructor(){this.$implicit=null,this.ngIf=null}};function w_(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${At(e)}'.`)}var N_=(()=>{let e=class e{constructor(n,o,r){this._ngEl=n,this._differs=o,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,o){let[r,s]=n.split("."),a=r.indexOf("-")===-1?void 0:Pn.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(n){n.forEachRemovedItem(o=>this._setStyle(o.key,null)),n.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),n.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Pf),w(Wt))},e.\u0275dir=ae({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),Gf=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,o,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,r):!1,get:(n,o,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,r)}})}};e.\u0275fac=function(o){return new(o||e)(w(Ei))},e.\u0275dir=ae({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[yt]});let t=e;return t})();function A_(t,e){return new q(2100,!1)}var aS=/(?:[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,vr=(()=>{let e=class e{transform(n){if(n==null)return null;if(typeof n!="string")throw A_(e,n);return n.replace(aS,o=>o[0].toUpperCase()+o.slice(1).toLowerCase())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275pipe=Xd({name:"titlecase",type:e,pure:!0,standalone:!0});let t=e;return t})();var lS="mediumDate",cS=new G(""),uS=new G(""),Wl=(()=>{let e=class e{constructor(n,o,r){this.locale=n,this.defaultTimezone=o,this.defaultOptions=r}transform(n,o,r,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??lS,l=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return I_(n,a,s||this.locale,l)}catch(a){throw A_(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(w(hs,16),w(cS,24),w(uS,24))},e.\u0275pipe=Xd({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var R_="browser",dS="server";function yr(t){return t===dS}var mr=class{};var gs=class{},ql=class{},si=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` 8 `).forEach(i=>{let n=i.indexOf(":");if(n>0){let o=i.slice(0,n),r=o.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let o=(e.op==="a"?this.headers.get(i):void 0)||[];o.push(...n),this.headers.set(i,o);break;case"d":let r=e.value;if(!r)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>r.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(r=>r.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var Yf=class{encodeKey(e){return k_(e)}encodeValue(e){return k_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function pS(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[s,a]=r==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,r)),e.decodeValue(o.slice(r+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}var hS=/%(\d[a-f0-9])/gi,mS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function k_(t){return encodeURIComponent(t).replace(hS,(e,i)=>mS[i]??e)}function Yl(t){return`${t}`}var Oi=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Yf,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=pS(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],o=Array.isArray(n)?n.map(Yl):[Yl(n)];this.map.set(i,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(r=>{i.push({param:n,value:r,op:"a"})}):i.push({param:n,value:o,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Yl(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(Yl(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var qf=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function gS(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function F_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function P_(t){return typeof Blob<"u"&&t instanceof Blob}function L_(t){return typeof FormData<"u"&&t instanceof FormData}function _S(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ms=class t{constructor(e,i,n,o){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let r;if(gS(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new si,this.context??=new qf,!this.params)this.params=new Oi,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||F_(this.body)||P_(this.body)||L_(this.body)||_S(this.body)?this.body:this.body instanceof Oi?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||L_(this.body)?null:P_(this.body)?this.body.type||null:F_(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Oi?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,o=e.responseType||this.responseType,r=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress,d=e.headers||this.headers,p=e.params||this.params,m=e.context??this.context;return e.setHeaders!==void 0&&(d=Object.keys(e.setHeaders).reduce((_,g)=>_.set(g,e.setHeaders[g]),d)),e.setParams&&(p=Object.keys(e.setParams).reduce((_,g)=>_.set(g,e.setParams[g]),p)),new t(i,n,s,{params:p,headers:d,context:m,reportProgress:l,responseType:o,withCredentials:a,transferCache:r})}},Ni=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ni||{}),_s=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new si,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Kl=class t extends _s{constructor(e={}){super(e),this.type=Ni.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},vs=class t extends _s{constructor(e={}){super(e),this.type=Ni.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},xi=class extends _s{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},U_=200,vS=204;function Wf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Ve=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,r={}){let s;if(n instanceof ms)s=n;else{let d;r.headers instanceof si?d=r.headers:d=new si(r.headers);let p;r.params&&(r.params instanceof Oi?p=r.params:p=new Oi({fromObject:r.params})),s=new ms(n,o,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:p,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let a=gn(s).pipe(vu(d=>this.handler.handle(d)));if(n instanceof ms||r.observe==="events")return a;let l=a.pipe(_t(d=>d instanceof vs));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Me(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return l.pipe(Me(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return l.pipe(Me(d=>{if(d.body!==null&&typeof d.body!="string")throw new Error("Response is not a string.");return d.body}));case"json":default:return l.pipe(Me(d=>d.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Oi().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,r={}){return this.request("PATCH",n,Wf(r,o))}post(n,o,r={}){return this.request("POST",n,Wf(r,o))}put(n,o,r={}){return this.request("PUT",n,Wf(r,o))}};e.\u0275fac=function(o){return new(o||e)(H(gs))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),yS=/^\)\]\}',?\n/,CS="X-Request-URL";function V_(t){if(t.url)return t.url;let e=CS.toLocaleLowerCase();return t.headers.get(e)}var bS=(()=>{let e=class e{constructor(){this.fetchImpl=b(Kf,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=b(ge)}handle(n){return new ne(o=>{let r=new AbortController;return this.doRequest(n,r.signal,o).then(Zf,s=>o.error(new xi({error:s}))),()=>r.abort()})}doRequest(n,o,r){return E(this,null,function*(){let s=this.createRequestInit(n),a;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Y({signal:o},s)));DS(D),r.next({type:Ni.Sent}),a=yield D}catch(D){r.error(new xi({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let l=new si(a.headers),d=a.statusText,p=V_(a)??n.urlWithParams,m=a.status,_=null;if(n.reportProgress&&r.next(new Kl({headers:l,status:m,statusText:d,url:p})),a.body){let D=a.headers.get("content-length"),x=[],O=a.body.getReader(),N=0,z,le,P=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>E(this,null,function*(){for(;;){let{done:$,value:pe}=yield O.read();if($)break;if(x.push(pe),N+=pe.length,n.reportProgress){le=n.responseType==="text"?(le??"")+(z??=new TextDecoder).decode(pe,{stream:!0}):void 0;let Ae=()=>r.next({type:Ni.DownloadProgress,total:D?+D:void 0,loaded:N,partialText:le});P?P.run(Ae):Ae()}}}));let oe=this.concatChunks(x,N);try{let $=a.headers.get("Content-Type")??"";_=this.parseBody(n,oe,$)}catch($){r.error(new xi({error:$,headers:new si(a.headers),status:a.status,statusText:a.statusText,url:V_(a)??n.urlWithParams}));return}}m===0&&(m=_?U_:0),m>=200&&m<300?(r.next(new vs({body:_,headers:l,status:m,statusText:d,url:p})),r.complete()):r.error(new xi({error:_,headers:l,status:m,statusText:d,url:p}))})}parseBody(n,o,r){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(yS,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:r});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},r=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>o[s]=a.join(",")),n.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:r}}concatChunks(n,o){let r=new Uint8Array(o),s=0;for(let a of n)r.set(a,s),s+=a.length;return r}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Kf=class{};function Zf(){}function DS(t){t.then(Zf,Zf)}function wS(t,e){return e(t)}function ES(t,e,i){return(n,o)=>rg(i,()=>e(n,r=>t(r,o)))}var Qf=new G(""),SS=new G(""),MS=new G("",{providedIn:"root",factory:()=>!0});var B_=(()=>{let e=class e extends gs{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=b(or),this.contributeToStability=b(MS)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Qf),...this.injector.get(SS,[])]));this.chain=o.reduceRight((r,s)=>ES(r,s,this.injector),wS)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,r=>this.backend.handle(r)).pipe(Da(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(H(ql),H(Rt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();var TS=/^\)\]\}',?\n/;function IS(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var j_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new q(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?mn(o.\u0275loadImpl()):gn(null)).pipe(mi(()=>new ne(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((O,N)=>a.setRequestHeader(O,N.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let O=n.detectContentTypeHeader();O!==null&&a.setRequestHeader("Content-Type",O)}if(n.responseType){let O=n.responseType.toLowerCase();a.responseType=O!=="json"?O:"text"}let l=n.serializeBody(),d=null,p=()=>{if(d!==null)return d;let O=a.statusText||"OK",N=new si(a.getAllResponseHeaders()),z=IS(a)||n.url;return d=new Kl({headers:N,status:a.status,statusText:O,url:z}),d},m=()=>{let{headers:O,status:N,statusText:z,url:le}=p(),P=null;N!==vS&&(P=typeof a.response>"u"?a.responseText:a.response),N===0&&(N=P?U_:0);let oe=N>=200&&N<300;if(n.responseType==="json"&&typeof P=="string"){let $=P;P=P.replace(TS,"");try{P=P!==""?JSON.parse(P):null}catch(pe){P=$,oe&&(oe=!1,P={error:pe,text:P})}}oe?(s.next(new vs({body:P,headers:O,status:N,statusText:z,url:le||void 0})),s.complete()):s.error(new xi({error:P,headers:O,status:N,statusText:z,url:le||void 0}))},_=O=>{let{url:N}=p(),z=new xi({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:N||void 0});s.error(z)},g=!1,D=O=>{g||(s.next(p()),g=!0);let N={type:Ni.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(N.total=O.total),n.responseType==="text"&&a.responseText&&(N.partialText=a.responseText),s.next(N)},x=O=>{let N={type:Ni.UploadProgress,loaded:O.loaded};O.lengthComputable&&(N.total=O.total),s.next(N)};return a.addEventListener("load",m),a.addEventListener("error",_),a.addEventListener("timeout",_),a.addEventListener("abort",_),n.reportProgress&&(a.addEventListener("progress",D),l!==null&&a.upload&&a.upload.addEventListener("progress",x)),a.send(l),s.next({type:Ni.Sent}),()=>{a.removeEventListener("error",_),a.removeEventListener("abort",_),a.removeEventListener("load",m),a.removeEventListener("timeout",_),n.reportProgress&&(a.removeEventListener("progress",D),l!==null&&a.upload&&a.upload.removeEventListener("progress",x)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(H(mr))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),H_=new G(""),xS="XSRF-TOKEN",OS=new G("",{providedIn:"root",factory:()=>xS}),NS="X-XSRF-TOKEN",AS=new G("",{providedIn:"root",factory:()=>NS}),Zl=class{},RS=(()=>{let e=class e{constructor(n,o,r){this.doc=n,this.platform=o,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Gl(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(H(Fe),H(Gt),H(OS))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function kS(t,e){let i=t.url.toLowerCase();if(!b(H_)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=b(Zl).getToken(),o=b(AS);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var z_=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(z_||{});function FS(t,e){return{\u0275kind:t,\u0275providers:e}}function $_(...t){let e=[Ve,j_,B_,{provide:gs,useExisting:B_},{provide:ql,useFactory:()=>b(bS,{optional:!0})??b(j_)},{provide:Qf,useValue:kS,multi:!0},{provide:H_,useValue:!0},{provide:Zl,useClass:RS}];for(let i of t)e.push(...i.\u0275providers);return ss(e)}function G_(t){return FS(z_.Interceptors,t.map(e=>({provide:Qf,useValue:e,multi:!0})))}var ep=class extends Hl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},tp=class t extends ep{static makeCurrent(){M_(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.remove()}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=LS();return i==null?null:VS(i)}resetBaseElement(){ys=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Gl(document.cookie,e)}},ys=null;function LS(){return ys=ys||document.querySelector("base"),ys?ys.getAttribute("href"):null}function VS(t){return new URL(t,document.baseURI).pathname}var BS=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),np=new G(""),K_=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(r=>{r.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,r){return this._findPluginFor(o).addEventListener(n,o,r)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new q(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(H(np),H(ge))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Ql=class{constructor(e){this._doc=e}},Jf="ng-app-id",Z_=(()=>{let e=class e{constructor(n,o,r,s={}){this.doc=n,this.appId=o,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=yr(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(r=>r.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Jf}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(r=>{r.textContent!=null&&o.set(r.textContent,r)}),o}return null}changeUsageCount(n,o){let r=this.styleRef;if(r.has(n)){let s=r.get(n);return s.usage+=o,s.usage}return r.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let r=this.styleNodesInDOM,s=r?.get(o);if(s?.parentNode===n)return r.delete(o),s.removeAttribute(Jf),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Jf,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let r=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(r):s.set(o,{elements:[r],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(H(Fe),H(mf),H(_f,8),H(Gt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Xf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},op=/%COMP%/g,Q_="%COMP%",jS=`_nghost-${Q_}`,US=`_ngcontent-${Q_}`,HS=!0,zS=new G("",{providedIn:"root",factory:()=>HS});function $S(t){return US.replace(op,t)}function GS(t){return jS.replace(op,t)}function J_(t,e){return e.map(i=>i.replace(op,t))}var W_=(()=>{let e=class e{constructor(n,o,r,s,a,l,d,p=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=d,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=yr(l),this.defaultRenderer=new Cs(n,a,d,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Rn.ShadowDom&&(o=Se(Y({},o),{encapsulation:Rn.Emulated}));let r=this.getOrCreateRenderer(n,o);return r instanceof Jl?r.applyToHost(n):r instanceof bs&&r.applyStyles(),r}getOrCreateRenderer(n,o){let r=this.rendererByCompId,s=r.get(o.id);if(!s){let a=this.doc,l=this.ngZone,d=this.eventManager,p=this.sharedStylesHost,m=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(o.encapsulation){case Rn.Emulated:s=new Jl(d,p,o,this.appId,m,a,l,_);break;case Rn.ShadowDom:return new ip(d,p,n,o,a,l,this.nonce,_);default:s=new bs(d,p,o,m,a,l,_);break}r.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(H(K_),H(Z_),H(mf),H(zS),H(Fe),H(Gt),H(ge),H(_f))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Cs=class{constructor(e,i,n,o){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Xf[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Y_(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Y_(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){i.remove()}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new q(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,o){if(o){i=o+":"+i;let r=Xf[o];r?e.setAttributeNS(r,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let o=Xf[n];o?e.removeAttributeNS(o,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,o){o&(Pn.DashCase|Pn.Important)?e.style.setProperty(i,n,o&Pn.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Pn.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=gr().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function Y_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ip=class extends Cs{constructor(e,i,n,o,r,s,a,l){super(e,r,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=J_(o.id,o.styles);for(let p of d){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=p,this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(null,i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},bs=class extends Cs{constructor(e,i,n,o,r,s,a,l){super(e,r,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=o,this.styles=l?J_(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Jl=class extends bs{constructor(e,i,n,o,r,s,a,l){let d=o+"-"+n.id;super(e,i,n,r,s,a,l,d),this.contentAttr=$S(d),this.hostAttr=GS(d)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},WS=(()=>{let e=class e extends Ql{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,r){return n.addEventListener(o,r,!1),()=>this.removeEventListener(n,o,r)}removeEventListener(n,o,r){return n.removeEventListener(o,r)}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),q_=["alt","control","meta","shift"],YS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qS={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KS=(()=>{let e=class e extends Ql{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,r){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gr().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),r=o.shift();if(o.length===0||!(r==="keydown"||r==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),q_.forEach(p=>{let m=o.indexOf(p);m>-1&&(o.splice(m,1),a+=p+".")}),a+=s,o.length!=0||s.length===0)return null;let d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(n,o){let r=YS[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(r=n.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),q_.forEach(a=>{if(a!==r){let l=qS[a];l(n)&&(s+=a+".")}}),s+=r,s===o)}static eventCallback(n,o,r){return s=>{e.matchEventFullKeyCode(s,n)&&r.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function X_(t,e){return C_(Y({rootComponent:t},ZS(e)))}function ZS(t){return{appProviders:[...tM,...t?.providers??[]],platformProviders:eM}}function QS(){tp.makeCurrent()}function JS(){return new Kn}function XS(){return Yg(document),document}var eM=[{provide:Gt,useValue:R_},{provide:gf,useValue:QS,multi:!0},{provide:Fe,useFactory:XS,deps:[]}];var tM=[{provide:ll,useValue:"root"},{provide:Kn,useFactory:JS,deps:[]},{provide:np,useClass:WS,multi:!0,deps:[Fe,ge,Gt]},{provide:np,useClass:KS,multi:!0,deps:[Fe]},W_,Z_,K_,{provide:er,useExisting:W_},{provide:mr,useClass:BS,deps:[]},[]];var rp=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:function(o){let r=null;return o?r=new(o||e):r=H(nM),r},providedIn:"root"});let t=e;return t})(),nM=(()=>{let e=class e extends rp{constructor(n){super(),this._doc=n}sanitize(n,o){if(o==null)return null;switch(n){case Cn.NONE:return o;case Cn.HTML:return vo(o,"HTML")?Vn(o):r0(this._doc,String(o)).toString();case Cn.STYLE:return vo(o,"Style")?Vn(o):o;case Cn.SCRIPT:if(vo(o,"Script"))return Vn(o);throw new q(5200,!1);case Cn.URL:return vo(o,"URL")?Vn(o):Cl(String(o));case Cn.RESOURCE_URL:if(vo(o,"ResourceURL"))return Vn(o);throw new q(5201,!1);default:throw new q(5202,!1)}}bypassSecurityTrustHtml(n){return Kg(n)}bypassSecurityTrustStyle(n){return Zg(n)}bypassSecurityTrustScript(n){return Qg(n)}bypassSecurityTrustUrl(n){return Jg(n)}bypassSecurityTrustResourceUrl(n){return Xg(n)}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sp={},iM=location.href.split("?")[1].split("&");for(let t of iM){let[e,i]=t.split("=");sp[e]=i}var Xl="https://api.luckynode.com",Be=`/wp-json/${sp.slug}/v1`,ev=sp.nonce;function tv(t,e){if(t.url.startsWith("/")){let i=t.clone({headers:t.headers.set("X-WP-Nonce",ev||"invalidnonceonpurpose")});return e(i)}return e(t)}var nv={providers:[v_({eventCoalescing:!0}),$_(G_([tv]))]};function ai(t){t||(ul(ai),t=b(ei));let e=new ne(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(Ze(e))}var pv=(()=>{let e=class e{constructor(n,o){this._renderer=n,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(n,o){this._renderer.setProperty(this._elementRef.nativeElement,n,o)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(o){return new(o||e)(w(Wt),w(ye))},e.\u0275dir=ae({type:e});let t=e;return t})(),Is=(()=>{let e=class e extends pv{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,features:[tt]});let t=e;return t})(),Hn=new G(""),oM={provide:Hn,useExisting:at(()=>wn),multi:!0},wn=(()=>{let e=class e extends Is{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,r){o&1&&C("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[nt([oM]),tt]});let t=e;return t})(),rM={provide:Hn,useExisting:at(()=>it),multi:!0};function sM(){let t=gr()?gr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var aM=new G(""),it=(()=>{let e=class e extends pv{constructor(n,o,r){super(n,o),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!sM())}writeValue(n){let o=n??"";this.setProperty("value",o)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(o){return new(o||e)(w(Wt),w(ye),w(aM,8))},e.\u0275dir=ae({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(o,r){o&1&&C("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[nt([rM]),tt]});let t=e;return t})();function iv(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var Er=new G(""),hv=new G("");function lM(t){return e=>{if(iv(e.value)||iv(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function ov(t){return null}function mv(t){return t!=null}function gv(t){return ps(t)?mn(t):t}function _v(t){let e={};return t.forEach(i=>{e=i!=null?Y(Y({},e),i):e}),Object.keys(e).length===0?null:e}function vv(t,e){return e.map(i=>i(t))}function cM(t){return!t.validate}function yv(t){return t.map(e=>cM(e)?e:i=>e.validate(i))}function uM(t){if(!t)return null;let e=t.filter(mv);return e.length==0?null:function(i){return _v(vv(i,e))}}function lp(t){return t!=null?uM(yv(t)):null}function dM(t){if(!t)return null;let e=t.filter(mv);return e.length==0?null:function(i){let n=vv(i,e).map(gv);return _u(n).pipe(Me(_v))}}function cp(t){return t!=null?dM(yv(t)):null}function rv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function fM(t){return t._rawValidators}function pM(t){return t._rawAsyncValidators}function ap(t){return t?Array.isArray(t)?t:[t]:[]}function tc(t,e){return Array.isArray(t)?t.includes(e):t===e}function sv(t,e){let i=ap(e);return ap(t).forEach(o=>{tc(i,o)||i.push(o)}),i}function av(t,e){return ap(e).filter(i=>!tc(t,i))}var nc=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=lp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Dr=class extends nc{get formDirective(){return null}get path(){return null}},Ts=class extends nc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},ic=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},hM={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},cB=Se(Y({},hM),{"[class.ng-submitted]":"isSubmitted"}),Pe=(()=>{let e=class e extends ic{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Ts,2))},e.\u0275dir=ae({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,r){o&2&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[tt]});let t=e;return t})(),en=(()=>{let e=class e extends ic{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Dr,10))},e.\u0275dir=ae({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,r){o&2&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[tt]});let t=e;return t})();var Ds="VALID",ec="INVALID",Cr="PENDING",ws="DISABLED",wr=class{},oc=class extends wr{constructor(e,i){super(),this.value=e,this.source=i}},Ss=class extends wr{constructor(e,i){super(),this.pristine=e,this.source=i}},Ms=class extends wr{constructor(e,i){super(),this.touched=e,this.source=i}},br=class extends wr{constructor(e,i){super(),this.status=e,this.source=i}};function Cv(t){return(ac(t)?t.validators:t)||null}function mM(t){return Array.isArray(t)?lp(t):t||null}function bv(t,e){return(ac(e)?e.asyncValidators:t)||null}function gM(t){return Array.isArray(t)?cp(t):t||null}function ac(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function _M(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new q(1e3,"");if(!n[i])throw new q(1001,"")}function vM(t,e,i){t._forEachChild((n,o)=>{if(i[o]===void 0)throw new q(1002,"")})}var rc=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=hr(()=>this.statusReactive()),this.statusReactive=Si(void 0),this._pristine=hr(()=>this.pristineReactive()),this.pristineReactive=Si(!0),this._touched=hr(()=>this.touchedReactive()),this.touchedReactive=Si(!1),this._events=new he,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Un(this.statusReactive)}set status(e){Un(()=>this.statusReactive.set(e))}get valid(){return this.status===Ds}get invalid(){return this.status===ec}get pending(){return this.status==Cr}get disabled(){return this.status===ws}get enabled(){return this.status!==ws}get pristine(){return Un(this.pristineReactive)}set pristine(e){Un(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Un(this.touchedReactive)}set touched(e){Un(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(sv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(sv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(av(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(av(e,this._rawAsyncValidators))}hasValidator(e){return tc(this._rawValidators,e)}hasAsyncValidator(e){return tc(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Se(Y({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Ms(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new Ms(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Se(Y({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Ss(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new Ss(!0,n))}markAsPending(e={}){this.status=Cr;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new br(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Se(Y({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=ws,this.errors=null,this._forEachChild(o=>{o.disable(Se(Y({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new oc(this.value,n)),this._events.next(new br(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Se(Y({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Ds,this._forEachChild(n=>{n.enable(Se(Y({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Se(Y({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ds||this.status===Cr)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new oc(this.value,i)),this._events.next(new br(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Se(Y({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ws:Ds}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=Cr,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=gv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,o)=>n&&n._find(o),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new br(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new re,this.statusChanges=new re}_calculateStatus(){return this._allControlsDisabled()?ws:this.errors?ec:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Cr)?Cr:this._anyControlsHaveStatus(ec)?ec:Ds}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),o&&this._events.next(new Ss(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new Ms(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ac(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=mM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=gM(this._rawAsyncValidators)}},sc=class extends rc{constructor(e,i,n){super(Cv(i),bv(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){vM(this,!0,e),Object.keys(e).forEach(n=>{_M(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,o)=>((n.enabled||this.disabled)&&(i[o]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((o,r)=>{n=i(n,o,r)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var up=new G("CallSetDisabledState",{providedIn:"root",factory:()=>dp}),dp="always";function yM(t,e){return[...e.path,t]}function Dv(t,e,i=dp){wv(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),bM(t,e),wM(t,e),DM(t,e),CM(t,e)}function lv(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function CM(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function wv(t,e){let i=fM(t);e.validator!==null?t.setValidators(rv(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=pM(t);e.asyncValidator!==null?t.setAsyncValidators(rv(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();lv(e._rawValidators,o),lv(e._rawAsyncValidators,o)}function bM(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Ev(t,e)})}function DM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Ev(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Ev(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wM(t,e){let i=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function EM(t,e){t==null,wv(t,e)}function SM(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function MM(t){return Object.getPrototypeOf(t.constructor)===Is}function TM(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function IM(t,e){if(!e)return null;Array.isArray(e);let i,n,o;return e.forEach(r=>{r.constructor===it?i=r:MM(r)?n=r:o=r}),o||n||i||null}var xM={provide:Dr,useExisting:at(()=>Lt)},Es=Promise.resolve(),Lt=(()=>{let e=class e extends Dr{get submitted(){return Un(this.submittedReactive)}constructor(n,o,r){super(),this.callSetDisabledState=r,this._submitted=hr(()=>this.submittedReactive()),this.submittedReactive=Si(!1),this._directives=new Set,this.ngSubmit=new re,this.form=new sc({},lp(n),cp(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Es.then(()=>{let o=this._findContainer(n.path);n.control=o.registerControl(n.name,n.control),Dv(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Es.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Es.then(()=>{let o=this._findContainer(n.path),r=new sc({});EM(r,n),o.registerControl(n.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Es.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,o){Es.then(()=>{this.form.get(n.path).setValue(o)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),TM(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(o){return new(o||e)(w(Er,10),w(hv,10),w(up,8))},e.\u0275dir=ae({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,r){o&1&&C("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([xM]),tt]});let t=e;return t})();function cv(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function uv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var OM=class extends rc{constructor(e=null,i,n){super(Cv(i),bv(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ac(i)&&(i.nonNullable||i.initialValueIsDefault)&&(uv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){cv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){cv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){uv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var NM={provide:Ts,useExisting:at(()=>Ne)},dv=Promise.resolve(),Ne=(()=>{let e=class e extends Ts{constructor(n,o,r,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new OM,this._registered=!1,this.name="",this.update=new re,this._parent=n,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=IM(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let o=n.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),SM(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Dv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){dv.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let o=n.isDisabled.currentValue,r=o!==0&&Lf(o);dv.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?yM(n,this._parent):[n]}};e.\u0275fac=function(o){return new(o||e)(w(Dr,9),w(Er,10),w(hv,10),w(Hn,10),w(Jt,8),w(up,8))},e.\u0275dir=ae({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[nt([NM]),tt,yt]});let t=e;return t})(),tn=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),AM={provide:Hn,useExisting:at(()=>bo),multi:!0},bo=(()=>{let e=class e extends Is{writeValue(n){let o=n??"";this.setProperty("value",o)}registerOnChange(n){this.onChange=o=>{n(o==""?null:parseFloat(o))}}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(o,r){o&1&&C("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[nt([AM]),tt]});let t=e;return t})();var RM={provide:Hn,useExisting:at(()=>It),multi:!0};function Sv(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function kM(t){return t.split(":")[0]}var It=(()=>{let e=class e extends Is{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let o=this._getOptionId(n),r=Sv(o,n);this.setProperty("value",r)}registerOnChange(n){this.onChange=o=>{this.value=this._getOptionValue(o),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o),n))return o;return null}_getOptionValue(n){let o=kM(n);return this._optionMap.has(o)?this._optionMap.get(o):n}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(o,r){o&1&&C("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[nt([RM]),tt]});let t=e;return t})(),nn=(()=>{let e=class e{constructor(n,o,r){this._element=n,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Sv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt),w(It,9))},e.\u0275dir=ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),FM={provide:Hn,useExisting:at(()=>Mv),multi:!0};function fv(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function PM(t){return t.split(":")[0]}var Mv=(()=>{let e=class e extends Is{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let o;if(Array.isArray(n)){let r=n.map(s=>this._getOptionId(s));o=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else o=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(n){this.onChange=o=>{let r=[],s=o.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l<a.length;l++){let d=a[l],p=this._getOptionValue(d.value);r.push(p)}}else{let a=o.options;for(let l=0;l<a.length;l++){let d=a[l];if(d.selected){let p=this._getOptionValue(d.value);r.push(p)}}}this.value=r,n(r)}}_registerOption(n){let o=(this._idCounter++).toString();return this._optionMap.set(o,n),o}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o)._value,n))return o;return null}_getOptionValue(n){let o=PM(n);return this._optionMap.has(o)?this._optionMap.get(o)._value:n}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(o,r){o&1&&C("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[nt([FM]),tt]});let t=e;return t})(),on=(()=>{let e=class e{constructor(n,o,r){this._element=n,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(fv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(fv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt),w(Mv,9))},e.\u0275dir=ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function LM(t){return typeof t=="number"?t:parseFloat(t)}var VM=(()=>{let e=class e{constructor(){this._validator=ov}ngOnChanges(n){if(this.inputName in n){let o=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):ov,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,features:[yt]});let t=e;return t})();var BM={provide:Er,useExisting:at(()=>fp),multi:!0},fp=(()=>{let e=class e extends VM{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>LM(n),this.createValidator=n=>lM(n)}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(o,r){o&2&&Mt("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[nt([BM]),tt]});let t=e;return t})();var jM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();var be=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:up,useValue:n.callSetDisabledState??dp}]}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({imports:[jM]});let t=e;return t})();var We="top",ct="bottom",ot="right",Je="left",lc="auto",Ai=[We,ct,ot,Je],li="start",Do="end",Tv="clippingParents",cc="viewport",Sr="popper",Iv="reference",pp=Ai.reduce(function(t,e){return t.concat([e+"-"+li,e+"-"+Do])},[]),uc=[].concat(Ai,[lc]).reduce(function(t,e){return t.concat([e,e+"-"+li,e+"-"+Do])},[]),UM="beforeRead",HM="read",zM="afterRead",$M="beforeMain",GM="main",WM="afterMain",YM="beforeWrite",qM="write",KM="afterWrite",xv=[UM,HM,zM,$M,GM,WM,YM,qM,KM];function rt(t){return t?(t.nodeName||"").toLowerCase():null}function Le(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function sn(t){var e=Le(t).Element;return t instanceof e||t instanceof Element}function Xe(t){var e=Le(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Mr(t){if(typeof ShadowRoot>"u")return!1;var e=Le(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZM(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var n=e.styles[i]||{},o=e.attributes[i]||{},r=e.elements[i];!Xe(r)||!rt(r)||(Object.assign(r.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?r.removeAttribute(s):r.setAttribute(s,a===!0?"":a)}))})}function QM(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],r=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:i[n]),a=s.reduce(function(l,d){return l[d]="",l},{});!Xe(o)||!rt(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}}var Ov={name:"applyStyles",enabled:!0,phase:"write",fn:ZM,effect:QM,requires:["computeStyles"]};function st(t){return t.split("-")[0]}var En=Math.max,wo=Math.min,ci=Math.round;function Tr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xs(){return!/^((?!chrome|android).)*safari/i.test(Tr())}function an(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=t.getBoundingClientRect(),o=1,r=1;e&&Xe(t)&&(o=t.offsetWidth>0&&ci(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&ci(n.height)/t.offsetHeight||1);var s=sn(t)?Le(t):window,a=s.visualViewport,l=!xs()&&i,d=(n.left+(l&&a?a.offsetLeft:0))/o,p=(n.top+(l&&a?a.offsetTop:0))/r,m=n.width/o,_=n.height/r;return{width:m,height:_,top:p,right:d+m,bottom:p+_,left:d,x:d,y:p}}function Eo(t){var e=an(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Os(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Mr(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bt(t){return Le(t).getComputedStyle(t)}function hp(t){return["table","td","th"].indexOf(rt(t))>=0}function ut(t){return((sn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ui(t){return rt(t)==="html"?t:t.assignedSlot||t.parentNode||(Mr(t)?t.host:null)||ut(t)}function Nv(t){return!Xe(t)||bt(t).position==="fixed"?null:t.offsetParent}function JM(t){var e=/firefox/i.test(Tr()),i=/Trident/i.test(Tr());if(i&&Xe(t)){var n=bt(t);if(n.position==="fixed")return null}var o=ui(t);for(Mr(o)&&(o=o.host);Xe(o)&&["html","body"].indexOf(rt(o))<0;){var r=bt(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Sn(t){for(var e=Le(t),i=Nv(t);i&&hp(i)&&bt(i).position==="static";)i=Nv(i);return i&&(rt(i)==="html"||rt(i)==="body"&&bt(i).position==="static")?e:i||JM(t)||e}function So(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Mo(t,e,i){return En(t,wo(e,i))}function Av(t,e,i){var n=Mo(t,e,i);return n>i?i:n}function Ns(){return{top:0,right:0,bottom:0,left:0}}function As(t){return Object.assign({},Ns(),t)}function Rs(t,e){return e.reduce(function(i,n){return i[n]=t,i},{})}var XM=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,As(typeof e!="number"?e:Rs(e,Ai))};function eT(t){var e,i=t.state,n=t.name,o=t.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=st(i.placement),l=So(a),d=[Je,ot].indexOf(a)>=0,p=d?"height":"width";if(!(!r||!s)){var m=XM(o.padding,i),_=Eo(r),g=l==="y"?We:Je,D=l==="y"?ct:ot,x=i.rects.reference[p]+i.rects.reference[l]-s[l]-i.rects.popper[p],O=s[l]-i.rects.reference[l],N=Sn(r),z=N?l==="y"?N.clientHeight||0:N.clientWidth||0:0,le=x/2-O/2,P=m[g],oe=z-_[p]-m[D],$=z/2-_[p]/2+le,pe=Mo(P,$,oe),Ae=l;i.modifiersData[n]=(e={},e[Ae]=pe,e.centerOffset=pe-$,e)}}function tT(t){var e=t.state,i=t.options,n=i.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Os(e.elements.popper,o)&&(e.elements.arrow=o))}var mp={name:"arrow",enabled:!0,phase:"main",fn:eT,effect:tT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ln(t){return t.split("-")[1]}var nT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iT(t,e){var i=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:ci(i*o)/o||0,y:ci(n*o)/o||0}}function Rv(t){var e,i=t.popper,n=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,d=t.adaptive,p=t.roundOffsets,m=t.isFixed,_=s.x,g=_===void 0?0:_,D=s.y,x=D===void 0?0:D,O=typeof p=="function"?p({x:g,y:x}):{x:g,y:x};g=O.x,x=O.y;var N=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),le=Je,P=We,oe=window;if(d){var $=Sn(i),pe="clientHeight",Ae="clientWidth";if($===Le(i)&&($=ut(i),bt($).position!=="static"&&a==="absolute"&&(pe="scrollHeight",Ae="scrollWidth")),$=$,o===We||(o===Je||o===ot)&&r===Do){P=ct;var $e=m&&$===oe&&oe.visualViewport?oe.visualViewport.height:$[pe];x-=$e-n.height,x*=l?1:-1}if(o===Je||(o===We||o===ct)&&r===Do){le=ot;var qe=m&&$===oe&&oe.visualViewport?oe.visualViewport.width:$[Ae];g-=qe-n.width,g*=l?1:-1}}var dt=Object.assign({position:a},d&&nT),dn=p===!0?iT({x:g,y:x},Le(i)):{x:g,y:x};if(g=dn.x,x=dn.y,l){var mt;return Object.assign({},dt,(mt={},mt[P]=z?"0":"",mt[le]=N?"0":"",mt.transform=(oe.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",mt))}return Object.assign({},dt,(e={},e[P]=z?x+"px":"",e[le]=N?g+"px":"",e.transform="",e))}function oT(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=n===void 0?!0:n,r=i.adaptive,s=r===void 0?!0:r,a=i.roundOffsets,l=a===void 0?!0:a,d={placement:st(e.placement),variation:ln(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Rv(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Rv(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var kv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oT,data:{}};var dc={passive:!0};function rT(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,r=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=Le(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(p){p.addEventListener("scroll",i.update,dc)}),a&&l.addEventListener("resize",i.update,dc),function(){r&&d.forEach(function(p){p.removeEventListener("scroll",i.update,dc)}),a&&l.removeEventListener("resize",i.update,dc)}}var Fv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rT,data:{}};var sT={left:"right",right:"left",bottom:"top",top:"bottom"};function Ir(t){return t.replace(/left|right|bottom|top/g,function(e){return sT[e]})}var aT={start:"end",end:"start"};function fc(t){return t.replace(/start|end/g,function(e){return aT[e]})}function To(t){var e=Le(t),i=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Io(t){return an(ut(t)).left+To(t).scrollLeft}function gp(t,e){var i=Le(t),n=ut(t),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var d=xs();(d||!d&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Io(t),y:l}}function _p(t){var e,i=ut(t),n=To(t),o=(e=t.ownerDocument)==null?void 0:e.body,r=En(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=En(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Io(t),l=-n.scrollTop;return bt(o||i).direction==="rtl"&&(a+=En(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}function xo(t){var e=bt(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function pc(t){return["html","body","#document"].indexOf(rt(t))>=0?t.ownerDocument.body:Xe(t)&&xo(t)?t:pc(ui(t))}function Ri(t,e){var i;e===void 0&&(e=[]);var n=pc(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),r=Le(n),s=o?[r].concat(r.visualViewport||[],xo(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Ri(ui(s)))}function xr(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lT(t,e){var i=an(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Pv(t,e,i){return e===cc?xr(gp(t,i)):sn(e)?lT(e,i):xr(_p(ut(t)))}function cT(t){var e=Ri(ui(t)),i=["absolute","fixed"].indexOf(bt(t).position)>=0,n=i&&Xe(t)?Sn(t):t;return sn(n)?e.filter(function(o){return sn(o)&&Os(o,n)&&rt(o)!=="body"}):[]}function vp(t,e,i,n){var o=e==="clippingParents"?cT(t):[].concat(e),r=[].concat(o,[i]),s=r[0],a=r.reduce(function(l,d){var p=Pv(t,d,n);return l.top=En(p.top,l.top),l.right=wo(p.right,l.right),l.bottom=wo(p.bottom,l.bottom),l.left=En(p.left,l.left),l},Pv(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ks(t){var e=t.reference,i=t.element,n=t.placement,o=n?st(n):null,r=n?ln(n):null,s=e.x+e.width/2-i.width/2,a=e.y+e.height/2-i.height/2,l;switch(o){case We:l={x:s,y:e.y-i.height};break;case ct:l={x:s,y:e.y+e.height};break;case ot:l={x:e.x+e.width,y:a};break;case Je:l={x:e.x-i.width,y:a};break;default:l={x:e.x,y:e.y}}var d=o?So(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(r){case li:l[d]=l[d]-(e[p]/2-i[p]/2);break;case Do:l[d]=l[d]+(e[p]/2-i[p]/2);break;default:}}return l}function ki(t,e){e===void 0&&(e={});var i=e,n=i.placement,o=n===void 0?t.placement:n,r=i.strategy,s=r===void 0?t.strategy:r,a=i.boundary,l=a===void 0?Tv:a,d=i.rootBoundary,p=d===void 0?cc:d,m=i.elementContext,_=m===void 0?Sr:m,g=i.altBoundary,D=g===void 0?!1:g,x=i.padding,O=x===void 0?0:x,N=As(typeof O!="number"?O:Rs(O,Ai)),z=_===Sr?Iv:Sr,le=t.rects.popper,P=t.elements[D?z:_],oe=vp(sn(P)?P:P.contextElement||ut(t.elements.popper),l,p,s),$=an(t.elements.reference),pe=ks({reference:$,element:le,strategy:"absolute",placement:o}),Ae=xr(Object.assign({},le,pe)),$e=_===Sr?Ae:$,qe={top:oe.top-$e.top+N.top,bottom:$e.bottom-oe.bottom+N.bottom,left:oe.left-$e.left+N.left,right:$e.right-oe.right+N.right},dt=t.modifiersData.offset;if(_===Sr&&dt){var dn=dt[o];Object.keys(qe).forEach(function(mt){var ji=[ot,ct].indexOf(mt)>=0?1:-1,Ui=[We,ct].indexOf(mt)>=0?"y":"x";qe[mt]+=dn[Ui]*ji})}return qe}function yp(t,e){e===void 0&&(e={});var i=e,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,d=l===void 0?uc:l,p=ln(n),m=p?a?pp:pp.filter(function(D){return ln(D)===p}):Ai,_=m.filter(function(D){return d.indexOf(D)>=0});_.length===0&&(_=m);var g=_.reduce(function(D,x){return D[x]=ki(t,{placement:x,boundary:o,rootBoundary:r,padding:s})[st(x)],D},{});return Object.keys(g).sort(function(D,x){return g[D]-g[x]})}function uT(t){if(st(t)===lc)return[];var e=Ir(t);return[fc(t),e,fc(e)]}function dT(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=i.mainAxis,r=o===void 0?!0:o,s=i.altAxis,a=s===void 0?!0:s,l=i.fallbackPlacements,d=i.padding,p=i.boundary,m=i.rootBoundary,_=i.altBoundary,g=i.flipVariations,D=g===void 0?!0:g,x=i.allowedAutoPlacements,O=e.options.placement,N=st(O),z=N===O,le=l||(z||!D?[Ir(O)]:uT(O)),P=[O].concat(le).reduce(function(No,pi){return No.concat(st(pi)===lc?yp(e,{placement:pi,boundary:p,rootBoundary:m,padding:d,flipVariations:D,allowedAutoPlacements:x}):pi)},[]),oe=e.rects.reference,$=e.rects.popper,pe=new Map,Ae=!0,$e=P[0],qe=0;qe<P.length;qe++){var dt=P[qe],dn=st(dt),mt=ln(dt)===li,ji=[We,ct].indexOf(dn)>=0,Ui=ji?"width":"height",Ot=ki(e,{placement:dt,boundary:p,rootBoundary:m,altBoundary:_,padding:d}),fn=ji?mt?ot:Je:mt?ct:We;oe[Ui]>$[Ui]&&(fn=Ir(fn));var Vs=Ir(fn),Hi=[];if(r&&Hi.push(Ot[dn]<=0),a&&Hi.push(Ot[fn]<=0,Ot[Vs]<=0),Hi.every(function(No){return No})){$e=dt,Ae=!1;break}pe.set(dt,Hi)}if(Ae)for(var Bs=D?3:1,Qc=function(pi){var Br=P.find(function(Us){var zi=pe.get(Us);if(zi)return zi.slice(0,pi).every(function(Jc){return Jc})});if(Br)return $e=Br,"break"},Vr=Bs;Vr>0;Vr--){var js=Qc(Vr);if(js==="break")break}e.placement!==$e&&(e.modifiersData[n]._skip=!0,e.placement=$e,e.reset=!0)}}var Cp={name:"flip",enabled:!0,phase:"main",fn:dT,requiresIfExists:["offset"],data:{_skip:!1}};function fT(t,e,i){var n=st(t),o=[Je,We].indexOf(n)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Je,ot].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function pT(t){var e=t.state,i=t.options,n=t.name,o=i.offset,r=o===void 0?[0,0]:o,s=uc.reduce(function(p,m){return p[m]=fT(m,e.rects,r),p},{}),a=s[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=s}var bp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pT};function hT(t){var e=t.state,i=t.name;e.modifiersData[i]=ks({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Lv={name:"popperOffsets",enabled:!0,phase:"read",fn:hT,data:{}};function Dp(t){return t==="x"?"y":"x"}function mT(t){var e=t.state,i=t.options,n=t.name,o=i.mainAxis,r=o===void 0?!0:o,s=i.altAxis,a=s===void 0?!1:s,l=i.boundary,d=i.rootBoundary,p=i.altBoundary,m=i.padding,_=i.tether,g=_===void 0?!0:_,D=i.tetherOffset,x=D===void 0?0:D,O=ki(e,{boundary:l,rootBoundary:d,padding:m,altBoundary:p}),N=st(e.placement),z=ln(e.placement),le=!z,P=So(N),oe=Dp(P),$=e.modifiersData.popperOffsets,pe=e.rects.reference,Ae=e.rects.popper,$e=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,qe=typeof $e=="number"?{mainAxis:$e,altAxis:$e}:Object.assign({mainAxis:0,altAxis:0},$e),dt=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,dn={x:0,y:0};if($){if(r){var mt,ji=P==="y"?We:Je,Ui=P==="y"?ct:ot,Ot=P==="y"?"height":"width",fn=$[P],Vs=fn+O[ji],Hi=fn-O[Ui],Bs=g?-Ae[Ot]/2:0,Qc=z===li?pe[Ot]:Ae[Ot],Vr=z===li?-Ae[Ot]:-pe[Ot],js=e.elements.arrow,No=g&&js?Eo(js):{width:0,height:0},pi=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ns(),Br=pi[ji],Us=pi[Ui],zi=Mo(0,pe[Ot],No[Ot]),Jc=le?pe[Ot]/2-Bs-zi-Br-qe.mainAxis:Qc-zi-Br-qe.mainAxis,fy=le?-pe[Ot]/2+Bs+zi+Us+qe.mainAxis:Vr+zi+Us+qe.mainAxis,Xc=e.elements.arrow&&Sn(e.elements.arrow),py=Xc?P==="y"?Xc.clientTop||0:Xc.clientLeft||0:0,Yp=(mt=dt?.[P])!=null?mt:0,hy=fn+Jc-Yp-py,my=fn+fy-Yp,qp=Mo(g?wo(Vs,hy):Vs,fn,g?En(Hi,my):Hi);$[P]=qp,dn[P]=qp-fn}if(a){var Kp,gy=P==="x"?We:Je,_y=P==="x"?ct:ot,$i=$[oe],Hs=oe==="y"?"height":"width",Zp=$i+O[gy],Qp=$i-O[_y],eu=[We,Je].indexOf(N)!==-1,Jp=(Kp=dt?.[oe])!=null?Kp:0,Xp=eu?Zp:$i-pe[Hs]-Ae[Hs]-Jp+qe.altAxis,eh=eu?$i+pe[Hs]+Ae[Hs]-Jp-qe.altAxis:Qp,th=g&&eu?Av(Xp,$i,eh):Mo(g?Xp:Zp,$i,g?eh:Qp);$[oe]=th,dn[oe]=th-$i}e.modifiersData[n]=dn}}var wp={name:"preventOverflow",enabled:!0,phase:"main",fn:mT,requiresIfExists:["offset"]};function Ep(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Sp(t){return t===Le(t)||!Xe(t)?To(t):Ep(t)}function gT(t){var e=t.getBoundingClientRect(),i=ci(e.width)/t.offsetWidth||1,n=ci(e.height)/t.offsetHeight||1;return i!==1||n!==1}function Mp(t,e,i){i===void 0&&(i=!1);var n=Xe(e),o=Xe(e)&&gT(e),r=ut(e),s=an(t,o,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&((rt(e)!=="body"||xo(r))&&(a=Sp(e)),Xe(e)?(l=an(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=Io(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function _T(t){var e=new Map,i=new Set,n=[];t.forEach(function(r){e.set(r.name,r)});function o(r){i.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!i.has(a)){var l=e.get(a);l&&o(l)}}),n.push(r)}return t.forEach(function(r){i.has(r.name)||o(r)}),n}function Tp(t){var e=_T(t);return xv.reduce(function(i,n){return i.concat(e.filter(function(o){return o.phase===n}))},[])}function Ip(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function xp(t){var e=t.reduce(function(i,n){var o=i[n.name];return i[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,i},{});return Object.keys(e).map(function(i){return e[i]})}var Vv={placement:"bottom",modifiers:[],strategy:"absolute"};function Bv(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function jv(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,o=e.defaultOptions,r=o===void 0?Vv:o;return function(a,l,d){d===void 0&&(d=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vv,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},m=[],_=!1,g={state:p,setOptions:function(N){var z=typeof N=="function"?N(p.options):N;x(),p.options=Object.assign({},r,p.options,z),p.scrollParents={reference:sn(a)?Ri(a):a.contextElement?Ri(a.contextElement):[],popper:Ri(l)};var le=Tp(xp([].concat(n,p.options.modifiers)));return p.orderedModifiers=le.filter(function(P){return P.enabled}),D(),g.update()},forceUpdate:function(){if(!_){var N=p.elements,z=N.reference,le=N.popper;if(Bv(z,le)){p.rects={reference:Mp(z,Sn(le),p.options.strategy==="fixed"),popper:Eo(le)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(qe){return p.modifiersData[qe.name]=Object.assign({},qe.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var oe=p.orderedModifiers[P],$=oe.fn,pe=oe.options,Ae=pe===void 0?{}:pe,$e=oe.name;typeof $=="function"&&(p=$({state:p,options:Ae,name:$e,instance:g})||p)}}}},update:Ip(function(){return new Promise(function(O){g.forceUpdate(),O(p)})}),destroy:function(){x(),_=!0}};if(!Bv(a,l))return g;g.setOptions(d).then(function(O){!_&&d.onFirstUpdate&&d.onFirstUpdate(O)});function D(){p.orderedModifiers.forEach(function(O){var N=O.name,z=O.options,le=z===void 0?{}:z,P=O.effect;if(typeof P=="function"){var oe=P({state:p,name:N,instance:g,options:le}),$=function(){};m.push(oe||$)}})}function x(){m.forEach(function(O){return O()}),m=[]}return g}}var vT=[Fv,Lv,kv,Ov],Op=jv({defaultModifiers:vT});var yT=["*"];var CT=t=>({$implicit:t});var bT=["dialog"],DT=["ngbNavOutlet",""];function wT(t,e){}function ET(t,e){if(t&1&&(c(0,"div",0),S(1,wT,0,0,"ng-template",1),u()),t&2){let i=y().$implicit,n=y();A("item",i)("nav",n.nav)("role",n.paneRole),h(),A("ngTemplateOutlet",(i.contentTpl==null?null:i.contentTpl.templateRef)||null)("ngTemplateOutletContext",l_(5,CT,i.active||n.isPanelTransitioning(i)))}}function ST(t,e){if(t&1&&S(0,ET,2,7,"div",0),t&2){let i=e.$implicit,n=y();I(i.isPanelInDom()||n.isPanelTransitioning(i)?0:-1)}}function MT(t,e){if(t&1&&(c(0,"span"),f(1),u()),t&2){let i=y().$implicit,n=y();lr(n.highlightClass),h(),J(i)}}function TT(t,e){if(t&1&&(Rf(0),f(1),kf()),t&2){let i=y().$implicit;h(),J(i)}}function IT(t,e){if(t&1&&S(0,MT,2,4,"span",0)(1,TT,2,1,"ng-container"),t&2){let i=e.$index;I(i%2!==0?0:1)}}var xT=(t,e,i)=>({result:t,term:e,formatter:i});function OT(t,e){if(t&1&&v(0,"ngb-highlight",2),t&2){let i=e.result,n=e.term,o=e.formatter;A("result",o(i))("term",n)}}function NT(t,e){}function AT(t,e){if(t&1){let i=U();c(0,"button",3),C("mouseenter",function(){let o=M(i).$index,r=y();return T(r.markActive(o))})("click",function(){let o=M(i).$implicit,r=y();return T(r.select(o))}),S(1,NT,0,0,"ng-template",4),u()}if(t&2){let i=e.$implicit,n=e.$index,o=y(),r=fr(1);Qe("active",n===o.activeIdx),A("id",o.id+"-"+n),h(),A("ngTemplateOutlet",o.resultTemplate||r)("ngTemplateOutletContext",c_(5,xT,i,o.term,o.formatter))}}var Yv={animation:!0,transitionTimerDelayMs:5},qv=(()=>{let e=class e{constructor(){this.animation=Yv.animation}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RT(t){let{transitionDelay:e,transitionDuration:i}=window.getComputedStyle(t),n=parseFloat(e),o=parseFloat(i);return(n+o)*1e3}function Fs(t){return t!=null?`${t}`:""}function Kv(t){return typeof t=="string"}function Fi(t){return t!=null}function kT(t){return t&&t.then}function FT(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function PT(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function Fp(t){return(t||document.body).getBoundingClientRect()}function LT(t){return e=>new ne(i=>{let n=s=>t.run(()=>i.next(s)),o=s=>t.run(()=>i.error(s)),r=()=>t.run(()=>i.complete());return e.subscribe({next:n,error:o,complete:r})})}function Uv(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Zv(t=document){let e=t?.activeElement;return e?e.shadowRoot?Zv(e.shadowRoot):e:null}var VT=()=>{},{transitionTimerDelayMs:BT}=Yv,hc=new Map,Mn=(t,e,i,n)=>{let o=n.context||{},r=hc.get(e);if(r)switch(n.runningTransition){case"continue":return Wn;case"stop":t.run(()=>r.transition$.complete()),o=Object.assign(r.context,o),hc.delete(e)}let s=i(e,n.animation,o)||VT;if(!n.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>s()),gn(void 0).pipe(LT(t));let a=new he,l=new he,d=a.pipe(bu(!0));hc.set(e,{transition$:a,complete:()=>{l.next(),l.complete()},context:o});let p=RT(e);return t.runOutsideAngular(()=>{let m=xe(e,"transitionend").pipe(Ze(d),_t(({target:g})=>g===e)),_=Qi(p+BT).pipe(Ze(d));ba(_,m,l).pipe(Ze(d)).subscribe(()=>{hc.delete(e),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};var mc=(t,e)=>e?e.some(i=>i.contains(t)):!1,Hv=(t,e)=>!e||PT(t,e)!=null,jT=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),UT=t=>jT?()=>setTimeout(()=>t(),100):t;function Qv(t,e,i,n,o,r,s,a){i&&t.runOutsideAngular(UT(()=>{let l=_=>{let g=_.target;return _.button===2||mc(g,s)?!1:i==="inside"?mc(g,r)&&Hv(g,a):i==="outside"?!mc(g,r):Hv(g,a)||!mc(g,r)},d=xe(e,"keydown").pipe(Ze(o),_t(_=>_.key==="Escape"),Xi(_=>_.preventDefault())),p=xe(e,"mousedown").pipe(Me(l),Ze(o)),m=xe(e,"mouseup").pipe(Wr(p),_t(([_,g])=>g),Cu(0),Ze(o));ba([d.pipe(Me(_=>0)),m.pipe(Me(_=>1))]).subscribe(_=>t.run(()=>n(_)))}))}var Jv=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Xv(t){let e=Array.from(t.querySelectorAll(Jv)).filter(i=>i.tabIndex!==-1);return[e[0],e[e.length-1]]}var HT=(t,e,i,n=!1)=>{t.runOutsideAngular(()=>{let o=xe(e,"focusin").pipe(Ze(i),Me(r=>r.target));xe(e,"keydown").pipe(Ze(i),_t(r=>r.key==="Tab"),Wr(o)).subscribe(([r,s])=>{let[a,l]=Xv(e);(s===a||s===e)&&r.shiftKey&&(l.focus(),r.preventDefault()),s===l&&!r.shiftKey&&(a.focus(),r.preventDefault())}),n&&xe(e,"click").pipe(Ze(i),Wr(o),Me(r=>r[1])).subscribe(r=>r.focus())})},zT=(()=>{let e=class e{constructor(){this._element=b(Fe).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$T=/\s+/,GT=/ +/gi,WT={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function YT(t,e){let[i,n]=WT[t];return e&&n||i}var qT=/^left/,KT=/^right/,ZT=/^start/,QT=/^end/;function JT(t,e){let[i,n]=e.split("-"),o=i.replace(qT,"start").replace(KT,"end"),r=[o];if(n){let s=n;(i==="left"||i==="right")&&(s=s.replace(ZT,"top").replace(QT,"bottom")),r.push(`${o}-${s}`)}return t&&(r=r.map(s=>`${t}-${s}`)),r.join(" ")}function zv({placement:t,baseClass:e},i){let n=Array.isArray(t)?t:t.split($T),o=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],r=n.findIndex(d=>d==="auto");r>=0&&o.forEach(function(d){n.find(p=>p.search("^"+d)!==-1)==null&&n.splice(r++,1,d)});let s=n.map(d=>YT(d,i.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:d}){let p=new RegExp(e+"(-[a-z]+)*","gi"),m=d.elements.popper,_=d.placement,g=m.className;g=g.replace(p,""),g+=` ${JT(e,_)}`,g=g.trim().replace(GT," "),m.className=g}},Cp,wp,mp,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function $v(t){return t}function ey(){let t=b(zT),e=null;return{createPopper(i){if(!e){let o=(i.updatePopperOptions||$v)(zv(i,t));e=Op(i.hostElement,i.targetElement,o)}},update(){e&&e.update()},setOptions(i){if(e){let o=(i.updatePopperOptions||$v)(zv(i,t));e.setOptions(o)}},destroy(){e&&(e.destroy(),e=null)}}}function ty(t){return e=>(e.modifiers.push(bp,{name:"offset",options:{offset:()=>t}}),e)}var NH=new Date(1882,10,12),AH=new Date(2174,10,25);var RH=1e3*60*60*24;var Pp=1080,XT=24*Pp,eI=12*Pp+793,kH=29*XT+eI,FH=11*Pp+204;var tI=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n,this.container=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Lp=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=b(ye).nativeElement,this.tabindex=0}set disabled(n){this._disabled=n===""||n===!0}get disabled(){return this._disabled}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(o,r){o&2&&(Mi("tabIndex",r.disabled?-1:r.tabindex),Qe("disabled",r.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let t=e;return t})();var Vp=(()=>{let e=class e{constructor(){this.dropdown=b(gc),this.nativeElement=b(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(o,r,s){if(o&1&&Co(s,Lp,4),o&2){let a;Kt(a=Zt())&&(r.menuItems=a)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(o,r){o&1&&C("keydown.ArrowUp",function(a){return r.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return r.dropdown.onKeyDown(a)})("keydown.Home",function(a){return r.dropdown.onKeyDown(a)})("keydown.End",function(a){return r.dropdown.onKeyDown(a)})("keydown.Enter",function(a){return r.dropdown.onKeyDown(a)})("keydown.Space",function(a){return r.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return r.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return r.dropdown.onKeyDown(a)}),o&2&&Qe("show",r.dropdown.isOpen())},standalone:!0});let t=e;return t})(),Np=(()=>{let e=class e{constructor(){this.dropdown=b(gc),this.nativeElement=b(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(o,r){o&2&&(Mt("aria-expanded",r.dropdown.isOpen()),Qe("show",r.dropdown.isOpen()))},standalone:!0});let t=e;return t})(),ny=(()=>{let e=class e extends Np{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(o,r){o&1&&C("click",function(){return r.dropdown.toggle()})("keydown.ArrowUp",function(a){return r.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return r.dropdown.onKeyDown(a)})("keydown.Home",function(a){return r.dropdown.onKeyDown(a)})("keydown.End",function(a){return r.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return r.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return r.dropdown.onKeyDown(a)}),o&2&&(Mt("aria-expanded",r.dropdown.isOpen()),Qe("show",r.dropdown.isOpen()))},standalone:!0,features:[nt([{provide:Np,useExisting:at(()=>e)}]),tt]});let t=e;return t})(),gc=(()=>{let e=class e{constructor(){this._changeDetector=b(Jt),this._config=b(tI),this._document=b(Fe),this._injector=b(He),this._ngZone=b(ge),this._nativeElement=b(ye).nativeElement,this._destroyCloseHandlers$=new he,this._bodyContainer=null,this._positioning=ey(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new re}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){ar(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},{phase:Nt.Write,injector:this._injector})}ngOnChanges(n){if(n.container&&this._open&&this._applyContainer(this.container),n.placement&&!n.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),n.dropdownClass){let{currentValue:o,previousValue:r}=n.dropdownClass;this._applyCustomDropdownClass(o,r)}n.autoClose&&this._open&&(this.autoClose=n.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(ty([0,2])(n))}),this._applyPlacementClasses(),this._afterRenderRef=Ol(()=>{this._positionMenu()},{phase:Nt.Write,injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Qv(this._ngZone,this._document,this.autoClose,n=>{this.close(),n===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(n){let{key:o}=n,r=this._getMenuElements(),s=-1,a=null,l=this._isEventFromToggle(n);if(!l&&r.length&&r.forEach((d,p)=>{d.contains(n.target)&&(a=d),d===Zv(this._document)&&(s=p)}),o===" "||o==="Enter"){a&&(this.autoClose===!0||this.autoClose==="inside")&&xe(a,"click").pipe(Yn(1)).subscribe(()=>this.close());return}if(o==="Tab"){if(n.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===n.target){this.container==="body"&&!n.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):n.shiftKey&&this.close();return}else if(this.container==="body"){let d=this._menu.nativeElement.querySelectorAll(Jv);n.shiftKey&&n.target===d[0]?(this._anchor.nativeElement.focus(),n.preventDefault()):!n.shiftKey&&n.target===d[d.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else xe(n.target,"focusout").pipe(Yn(1)).subscribe(({relatedTarget:d})=>{this._nativeElement.contains(d)||this.close()});return}if(l||a){if(this.open(),r.length){switch(o){case"ArrowDown":s=Math.min(s+1,r.length-1);break;case"ArrowUp":if(this._isDropup()&&s===-1){s=r.length-1;break}s=Math.max(s-1,0);break;case"Home":s=0;break;case"End":s=r.length-1;break}r[s].focus()}n.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(n){return this._anchor.nativeElement.contains(n.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:n})=>!n).map(({nativeElement:n})=>n):[]}_positionMenu(){let n=this._menu;this.isOpen()&&n&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(n){return Array.isArray(n)?n[0]:n.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(n=null){if(this._resetContainer(),n==="body"){let o=this._menu.nativeElement,r=this._bodyContainer=this._bodyContainer||this._document.createElement("div");r.style.position="absolute",o.style.position="static",r.style.zIndex="1055",r.appendChild(o),this._document.body.appendChild(r)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(n,o){let r=this.container==="body"?this._bodyContainer:this._nativeElement;r&&(o&&r.classList.remove(o),n&&r.classList.add(n))}_applyPlacementClasses(n){if(this._menu){n||(n=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let o=n.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(o),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(o))}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(o,r,s){if(o&1&&(Co(s,Vp,5),Co(s,Np,5)),o&2){let a;Kt(a=Zt())&&(r._menu=a.first),Kt(a=Zt())&&(r._anchor=a.first)}},hostVars:2,hostBindings:function(o,r){o&2&&Qe("show",r.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[yt]});let t=e;return t})();var iy=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})(),nI=(()=>{let e=class e{constructor(){this._ngbConfig=b(qv),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),di=class{constructor(e,i,n){this.nodes=e,this.viewRef=i,this.componentRef=n}},Ap=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=b(Fe),this._applicationRef=b(ii),this._injector=b(He),this._viewContainerRef=b(Ei),this._ngZone=b(ge)}open(e,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:o}=this._windowRef.location,r=new he;ar(()=>{r.next(),r.complete()},{injector:this._injector,phase:Nt.MixedReadWrite});let s=r.pipe(gt(()=>Mn(this._ngZone,o,({classList:a})=>a.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(e=!1){return this._windowRef?Mn(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:e,runningTransition:"stop"}).pipe(Xi(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):gn(void 0)}_getContentRef(e,i){if(e)if(e instanceof Ln){let n=e.createEmbeddedView(i);return this._applicationRef.attachView(n),new di([n.rootNodes],n)}else return new di([[this._document.createTextNode(`${e}`)]]);else return new di([])}},iI=(()=>{let e=class e{constructor(){this._document=b(Fe)}hide(){let n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),o=this._document.body,r=o.style,{overflow:s,paddingRight:a}=r;if(n>0){let l=parseFloat(window.getComputedStyle(o).paddingRight);r.paddingRight=`${l+n}px`}return r.overflow="hidden",()=>{n>0&&(r.paddingRight=a),r.overflow=s}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oI=(()=>{let e=class e{constructor(){this._nativeElement=b(ye).nativeElement,this._zone=b(ge),this._injector=b(He)}ngOnInit(){ar(()=>Mn(this._zone,this._nativeElement,(n,o)=>{o&&Fp(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Nt.MixedReadWrite})}hide(){return Mn(this._zone,this._nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(o,r){o&2&&(lr("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),Qe("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[j],decls:0,vars:0,template:function(o,r){},encapsulation:2});let t=e;return t})(),cn=class{update(e){}close(e){}dismiss(e){}},rI=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],sI=["animation","backdropClass"],Rp=class{_applyWindowOptions(e,i){rI.forEach(n=>{Fi(i[n])&&(e[n]=i[n])})}_applyBackdropOptions(e,i){sI.forEach(n=>{Fi(i[n])&&(e[n]=i[n])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Ze(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Ze(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,i,n,o){this._windowCmptRef=e,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=o,this._closed=new he,this._dismissed=new he,this._hidden=new he,e.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,s)=>{this._resolve=r,this._reject=s}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let i=this._beforeDismiss();kT(i)?i.then(n=>{n!==!1&&this._dismiss(e)},()=>{}):i!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():gn(void 0);e.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Gr(e,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},kp=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(kp||{}),aI=(()=>{let e=class e{constructor(){this._document=b(Fe),this._elRef=b(ye),this._zone=b(ge),this._injector=b(He),this._closed$=new he,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new re,this.shown=new he,this.hidden=new he}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Kv(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,ar(()=>this._show(),{injector:this._injector,phase:Nt.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:n}=this._elRef,o={animation:this.animation,runningTransition:"stop"},r=Mn(this._zone,n,()=>n.classList.remove("show"),o),s=Mn(this._zone,this._dialogEl.nativeElement,()=>{},o),a=Gr(r,s);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let n={animation:this.animation,runningTransition:"continue"},o=Mn(this._zone,this._elRef.nativeElement,(s,a)=>{a&&Fp(s),s.classList.add("show")},n),r=Mn(this._zone,this._dialogEl.nativeElement,()=>{},n);Gr(o,r).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{xe(n,"keydown").pipe(Ze(this._closed$),_t(r=>r.key==="Escape")).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(kp.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let o=!1;xe(this._dialogEl.nativeElement,"mousedown").pipe(Ze(this._closed$),Xi(()=>o=!1),mi(()=>xe(n,"mouseup").pipe(Ze(this._closed$),Yn(1))),_t(({target:r})=>n===r)).subscribe(()=>{o=!0}),xe(n,"click").pipe(Ze(this._closed$)).subscribe(({target:r})=>{n===r&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!o&&this._zone.run(()=>this.dismiss(kp.BACKDROP_CLICK))),o=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){let o=n.querySelector("[ngbAutofocus]"),r=Xv(n)[0];(o||r||n).focus()}}_restoreFocus(){let n=this._document.body,o=this._elWithFocus,r;o&&o.focus&&n.contains(o)?r=o:r=n,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Mn(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(o,r){if(o&1&&dr(bT,7),o&2){let s;Kt(s=Zt())&&(r._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(o,r){o&2&&(Mt("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),lr("modal d-block"+(r.windowClass?" "+r.windowClass:"")),Qe("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[j],ngContentSelectors:yT,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(o,r){o&1&&(Nl(),c(0,"div",1,0)(2,"div",2),ur(3),u()()),o&2&&lr("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden} 9 `],encapsulation:2});let t=e;return t})(),lI=(()=>{let e=class e{constructor(){this._applicationRef=b(ii),this._injector=b(He),this._environmentInjector=b(Rt),this._document=b(Fe),this._scrollBar=b(iI),this._activeWindowCmptHasChanged=new he,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new re;let n=b(ge);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let o=this._windowCmpts[this._windowCmpts.length-1];HT(n,o.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(o.location.nativeElement)}})}_restoreScrollBar(){let n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,o,r){let s=r.container instanceof HTMLElement?r.container:Fi(r.container)?this._document.querySelector(r.container):this._document.body;if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new cn;n=r.injector||n;let l=n.get(Rt,null)||this._environmentInjector,d=this._getContentRef(n,l,o,a,r),p=r.backdrop!==!1?this._attachBackdrop(s):void 0,m=this._attachWindowComponent(s,d.nodes),_=new Rp(m,d,p,r.beforeDismiss);return this._registerModalRef(_),this._registerWindowCmpt(m),_.hidden.pipe(Yn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=g=>{_.close(g)},a.dismiss=g=>{_.dismiss(g)},a.update=g=>{_.update(g)},_.update(r),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),p&&p.instance&&p.changeDetectorRef.detectChanges(),m.changeDetectorRef.detectChanges(),_}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(o=>o.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let o=Rl(oI,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(o.hostView),n.appendChild(o.location.nativeElement),o}_attachWindowComponent(n,o){let r=Rl(aI,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:o});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_getContentRef(n,o,r,s,a){return r?r instanceof Ln?this._createFromTemplateRef(r,s):Kv(r)?this._createFromString(r):this._createFromComponent(n,o,r,s,a):new di([])}_createFromTemplateRef(n,o){let r={$implicit:o,close(a){o.close(a)},dismiss(a){o.dismiss(a)}},s=n.createEmbeddedView(r);return this._applicationRef.attachView(s),new di([s.rootNodes],s)}_createFromString(n){let o=this._document.createTextNode(`${n}`);return new di([[o]])}_createFromComponent(n,o,r,s,a){let l=He.create({providers:[{provide:cn,useValue:s}],parent:n}),d=Rl(r,{environmentInjector:o,elementInjector:l}),p=d.location.nativeElement;return a.scrollable&&p.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new di([[p]],d.hostView,d)}_setAriaHidden(n){let o=n.parentElement;o&&n!==this._document.body&&(Array.from(o.children).forEach(r=>{r!==n&&r.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(o))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,o)=>{n?o.setAttribute("aria-hidden",n):o.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){let o=()=>{let r=this._modalRefs.indexOf(n);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(o,o)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{let o=this._windowCmpts.indexOf(n);o>-1&&(this._windowCmpts.splice(o,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Or=(()=>{let e=class e{constructor(){this._injector=b(He),this._modalStack=b(lI),this._config=b(nI)}open(n,o={}){let r=Y(Se(Y({},this._config),{animation:this._config.animation}),o);return this._modalStack.open(this._injector,n,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var cI=(()=>{let e=class e{constructor(){this._ngbConfig=b(qv),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oy=t=>Fi(t)&&t!=="",uI=0,Ps=(()=>{let e=class e{constructor(){this.templateRef=b(Ln)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["ng-template","ngbNavContent",""]],standalone:!0});let t=e;return t})(),_c=(()=>{let e=class e{constructor(n){this.role=n,this.nav=b(Oo)}};e.\u0275fac=function(o){return new(o||e)(cs("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNavItem","",5,"ng-container"]],hostVars:1,hostBindings:function(o,r){o&2&&Mt("role",r.role?r.role:r.nav.roles?"presentation":void 0)},standalone:!0});let t=e;return t})(),Nr=(()=>{let e=class e{constructor(){this._nav=b(Oo),this._nativeElement=b(ye).nativeElement,this.disabled=!1,this.shown=new re,this.hidden=new re}ngOnInit(){Fi(this.domId)||(this.domId=`ngb-nav-${uI++}`)}get active(){return this._nav.activeId===this.id}get id(){return oy(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Fi(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(o,r,s){if(o&1&&Co(s,Ps,4),o&2){let a;Kt(a=Zt())&&(r.contentTpl=a.first)}},hostAttrs:[1,"nav-item"],inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[0,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0});let t=e;return t})(),Oo=(()=>{let e=class e{constructor(n){this.role=n,this._config=b(cI),this._cd=b(Jt),this._document=b(Fe),this._nativeElement=b(ye).nativeElement,this.destroyRef=b(ei),this._navigatingWithKeyboard=!1,this.activeIdChange=new re,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new re,this.hidden=new re,this.navItemChange$=new he,this.navChange=new re}click(n){n.disabled||this._updateActiveId(n.id)}onFocusout({relatedTarget:n}){this._nativeElement.contains(n)||(this._navigatingWithKeyboard=!1)}onKeyDown(n){if(this.roles!=="tablist"||!this.keyboard)return;let o=this.links.filter(a=>!a.navItem.disabled),{length:r}=o,s=-1;if(o.forEach((a,l)=>{a.nativeElement===this._document.activeElement&&(s=l)}),r){switch(n.key){case"ArrowUp":case"ArrowLeft":s=(s-1+r)%r;break;case"ArrowRight":case"ArrowDown":s=(s+1)%r;break;case"Home":s=0;break;case"End":s=r-1;break}this.keyboard==="changeWithArrows"&&this.select(o[s].navItem.id),o[s].nativeElement.focus(),this._navigatingWithKeyboard=!0,n.preventDefault()}}select(n){this._updateActiveId(n,!1)}ngAfterContentInit(){if(!Fi(this.activeId)){let n=this.items.first?this.items.first.id:null;oy(n)&&(this._updateActiveId(n,!1),this._cd.detectChanges())}this.items.changes.pipe(ai(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:n}){n&&!n.firstChange&&this._notifyItemChanged(n.currentValue)}_updateActiveId(n,o=!0){if(this.activeId!==n){let r=!1;o&&this.navChange.emit({activeId:this.activeId,nextId:n,preventDefault:()=>{r=!0}}),r||(this.activeId=n,this.activeIdChange.emit(n),this._notifyItemChanged(n))}}_notifyItemChanged(n){this.navItemChange$.next(this._getItemById(n))}_getItemById(n){return this.items&&this.items.find(o=>o.id===n)||null}};e.\u0275fac=function(o){return new(o||e)(cs("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNav",""]],contentQueries:function(o,r,s){if(o&1&&(Co(s,Nr,4),Co(s,Ar,5)),o&2){let a;Kt(a=Zt())&&(r.items=a),Kt(a=Zt())&&(r.links=a)}},hostAttrs:[1,"nav"],hostVars:4,hostBindings:function(o,r){o&1&&C("keydown.arrowLeft",function(a){return r.onKeyDown(a)})("keydown.arrowRight",function(a){return r.onKeyDown(a)})("keydown.arrowDown",function(a){return r.onKeyDown(a)})("keydown.arrowUp",function(a){return r.onKeyDown(a)})("keydown.Home",function(a){return r.onKeyDown(a)})("keydown.End",function(a){return r.onKeyDown(a)})("focusout",function(a){return r.onFocusout(a)}),o&2&&(Mt("aria-orientation",r.orientation==="vertical"&&r.roles==="tablist"?"vertical":void 0)("role",r.role?r.role:r.roles?"tablist":void 0),Qe("flex-column",r.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[yt]});let t=e;return t})(),Ar=(()=>{let e=class e{constructor(n){this.role=n,this.navItem=b(Nr),this.nav=b(Oo),this.nativeElement=b(ye).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}};e.\u0275fac=function(o){return new(o||e)(cs("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNavLink",""]],hostAttrs:[1,"nav-link"],hostVars:12,hostBindings:function(o,r){o&2&&(Mi("id",r.navItem.domId),Mt("role",r.role?r.role:r.nav.roles?"tab":void 0)("tabindex",r.tabindex)("aria-controls",r.navItem.isPanelInDom()?r.navItem.panelDomId:null)("aria-selected",r.navItem.active)("aria-disabled",r.navItem.disabled),Qe("nav-item",r.navItem.isNgContainer())("active",r.navItem.active)("disabled",r.navItem.disabled))},standalone:!0});let t=e;return t})(),vc=(()=>{let e=class e extends Ar{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["button","ngbNavLink",""]],hostAttrs:["type","button"],hostVars:1,hostBindings:function(o,r){o&1&&C("click",function(){return r.nav.click(r.navItem)}),o&2&&Mi("disabled",r.navItem.disabled)},standalone:!0,features:[tt]});let t=e;return t})();var dI=({classList:t})=>(t.remove("show"),()=>t.remove("active")),fI=(t,e)=>{e&&Fp(t),t.classList.add("show")},Gv=(()=>{let e=class e{constructor(){this.nativeElement=b(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(o,r){o&2&&(Mi("id",r.item.panelDomId),Mt("role",r.role?r.role:r.nav.roles?"tabpanel":void 0)("aria-labelledby",r.item.domId),Qe("fade",r.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0});let t=e;return t})(),yc=(()=>{let e=class e{constructor(){this._cd=b(Jt),this._ngZone=b(ge),this._activePane=null}isPanelTransitioning(n){return this._activePane?.item===n}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ai(this.nav.destroyRef),Su(this._activePane?.item||null),Bo(),Eu(1)).subscribe(n=>{let o={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Mn(this._ngZone,this._activePane.nativeElement,dI,o).subscribe(()=>{let r=this._activePane?.item;this._activePane=this._getPaneForItem(n),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),Mn(this._ngZone,this._activePane.nativeElement,fI,o).subscribe(()=>{n&&(n.shown.emit(),this.nav.shown.emit(n.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show","active")}_getPaneForItem(n){return this._panes&&this._panes.find(o=>o.item===n)||null}_getActivePane(){return this._panes&&this._panes.find(n=>n.item.active)||null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["","ngbNavOutlet",""]],viewQuery:function(o,r){if(o&1&&dr(Gv,5),o&2){let s;Kt(s=Zt())&&(r._panes=s)}},hostAttrs:[1,"tab-content"],inputs:{paneRole:"paneRole",nav:[0,"ngbNavOutlet","nav"]},standalone:!0,features:[j],attrs:DT,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){o&1&&ee(0,ST,1,1,null,null,yo),o&2&&te(r.nav.items)},dependencies:[Gv,Gf],encapsulation:2,changeDetection:0});let t=e;return t})();var Rr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();var pI=(()=>{let e=class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(n){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let o=Fs(this.result),r=Array.isArray(this.term)?this.term:[this.term],s=p=>this.accentSensitive?p:Uv(p),a=r.map(p=>FT(s(Fs(p)))).filter(p=>p),l=this.accentSensitive?o:Uv(o),d=a.length?l.split(new RegExp(`(${a.join("|")})`,"gmi")):[o];if(this.accentSensitive)this.parts=d;else{let p=0;this.parts=d.map(m=>o.substring(p,p+=m.length))}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[yt,j],decls:2,vars:0,consts:[[3,"class"]],template:function(o,r){o&1&&ee(0,IT,2,1,null,null,Yt),o&2&&te(r.parts)},styles:[`.ngb-highlight{font-weight:700} 10 `],encapsulation:2,changeDetection:0});let t=e;return t})(),hI=new G("live announcer delay",{providedIn:"root",factory:()=>100});function Wv(t,e=!1){let i=t.body.querySelector("#ngb-live");return i==null&&e&&(i=t.createElement("div"),i.setAttribute("id","ngb-live"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.classList.add("visually-hidden"),t.body.appendChild(i)),i}var mI=(()=>{let e=class e{constructor(){this._document=b(Fe),this._delay=b(hI)}ngOnDestroy(){let n=Wv(this._document);n&&n.parentElement.removeChild(n)}say(n){let o=Wv(this._document,!0),r=this._delay;if(o!=null){o.textContent="";let s=()=>o.textContent=n;r===null?s():setTimeout(s,r)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gI=(()=>{let e=class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_I=(()=>{let e=class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Fs,this.selectEvent=new re,this.activeChangeEvent=new re}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(n){this.activeIdx=n,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(n){this.selectEvent.emit(n)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(o,r){o&1&&C("mousedown",function(a){return a.preventDefault()}),o&2&&(Mi("id",r.id),lr("dropdown-menu show"+(r.popupClass?" "+r.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[j],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){o&1&&(S(0,OT,1,2,"ng-template",null,0,f_),ee(2,AT,2,9,"button",1,Yt)),o&2&&(h(2),te(r.results))},dependencies:[pI,Gf],encapsulation:2});let t=e;return t})(),vI=0,ry=(()=>{let e=class e{constructor(){this._nativeElement=b(ye).nativeElement,this._config=b(gI),this._live=b(mI),this._document=b(Fe),this._ngZone=b(ge),this._changeDetector=b(Jt),this._injector=b(He),this._popupService=new Ap(_I),this._positioning=ey(),this._subscription=null,this._closed$=new he,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=xe(this._nativeElement,"input").pipe(Me(n=>n.target.value)),this._resubscribeTypeahead$=new qi(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new re,this.activeDescendant=null,this.popupId=`ngb-typeahead-${vI++}`,this._onTouched=()=>{},this._onChange=n=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:n}){n&&!n.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}writeValue(n){this._writeInputValue(this._formatItemForInput(n)),this.showHint&&(this._inputValueBackup=n)}setDisabledState(n){this._nativeElement.disabled=n}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(n){if(this.isPopupOpen())switch(n.key){case"ArrowDown":n.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":n.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let o=this._windowRef.instance.getActive();Fi(o)&&(n.preventDefault(),n.stopPropagation(),this._selectResult(o)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:n}=this._popupService.open();this._windowRef=n,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(o=>this._selectResultClosePopup(o)),this._windowRef.instance.activeChangeEvent.subscribe(o=>this.activeDescendant=o),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:o=>this.popperOptions(ty([0,2])(o))}),this._afterRenderRef=Ol(()=>{this._positioning.update()},{phase:Nt.MixedReadWrite,injector:this._injector}))}),Qv(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(n){let o=!1;this.selectItem.emit({item:n,preventDefault:()=>{o=!0}}),this._resubscribeTypeahead$.next(null),o||(this.writeValue(n),this._onChange(n))}_selectResultClosePopup(n){this._selectResult(n),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let n=this._inputValueBackup.toLowerCase(),o=this._formatItemForInput(this._windowRef.instance.getActive());n===o.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+o.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,o.length])):this._writeInputValue(o)}}_formatItemForInput(n){return n!=null&&this.inputFormatter?this.inputFormatter(n):Fs(n)}_writeInputValue(n){this._nativeElement.value=Fs(n)}_subscribeToUserInput(){let n=this._valueChanges$.pipe(Xi(o=>{this._inputValueBackup=this.showHint?o:null,this._inputValueForSelectOnExact=this.selectOnExact?o:null,this._onChange(this.editable?o:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>gn([]));this._subscription=this._resubscribeTypeahead$.pipe(mi(()=>n)).subscribe(o=>{!o||o.length===0?this._closePopup():this.selectOnExact&&o.length===1&&this._formatItemForInput(o[0])===this._inputValueForSelectOnExact?(this._selectResult(o[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",o),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let r=o?o.length:0;this._live.say(r===0?"No results available":`${r} result${r===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(o,r){o&1&&C("blur",function(){return r.handleBlur()})("keydown",function(a){return r.handleKeyDown(a)}),o&2&&(Mi("autocomplete",r.autocomplete),Mt("aria-autocomplete",r.showHint?"both":"list")("aria-activedescendant",r.activeDescendant)("aria-owns",r.isPopupOpen()?r.popupId:null)("aria-expanded",r.isPopupOpen()),Qe("open",r.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[nt([{provide:Hn,useExisting:at(()=>e),multi:!0}]),yt]});let t=e;return t})(),Cc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();function yI(t,e){if(t&1&&(c(0,"div",28),f(1),u()),t&2){let i=y();h(),B(" ",i.failMessage," ")}}var Dc=class t{constructor(e){this.http=e}activeModal=b(cn);savingImageSize=!1;failMessage="";newImageSize={name:"",width:0,height:0,crop:!1};newImageSizeHorizontalCrop="center";newImageSizeVerticalCrop="center";imageSizesUrl=`${Be}/optimization/image/image-sizes`;ngOnInit(){}saveAddedImageSize=()=>{this.savingImageSize=!0,this.failMessage="";let e=JSON.parse(JSON.stringify(this.newImageSize));this.newImageSize.crop&&(e.crop=[this.newImageSizeHorizontalCrop,this.newImageSizeVerticalCrop]),K(this.http.post(this.imageSizesUrl,e)).then(()=>{this.activeModal.close()}).catch(i=>{console.error(i),this.failMessage="Failed to save image size. Please check values."}).finally(()=>{this.savingImageSize=!1})};static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-settings-add-size"]],standalone:!0,features:[j],decls:49,vars:10,consts:[[3,"ngSubmit"],[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"mb-3"],["for","sName",1,"form-label"],["type","text","step","1","id","sName","name","sName",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sW",1,"form-label"],["type","number","step","2","id","sW","name","sW",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sH",1,"form-label"],["type","number","step","3","id","sH","name","sH",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sC",1,"form-check-label","w-100"],["type","checkbox","step","4","id","sC","name","sC",1,"form-check-input",3,"ngModelChange","ngModel"],["for","hC",1,"form-label"],["id","hC","step","5",1,"form-select","form-select-sm",3,"ngModelChange","ngModel","disabled"],["value","left"],["value","center"],["value","right"],["for","vC",1,"form-label"],["id","vC","step","6",1,"form-select","form-select-sm",3,"ngModelChange","ngModel","disabled"],["value","top"],["value","bottom"],["class","modal-body text-bg-danger",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-sm","btn-success",3,"disabled"],[1,"fas","fa-save","me-2"],[1,"modal-body","text-bg-danger"]],template:function(i,n){i&1&&(c(0,"form",0),C("ngSubmit",function(){return n.saveAddedImageSize()}),c(1,"div",1)(2,"h5",2),f(3,"New Image Size"),u(),c(4,"button",3),C("click",function(){return n.activeModal.dismiss("Cross click")}),u()(),c(5,"div",4)(6,"div",5)(7,"label",6),f(8,"Name"),u(),c(9,"input",7),k("ngModelChange",function(r){return F(n.newImageSize.name,r)||(n.newImageSize.name=r),r}),u()(),c(10,"div",5)(11,"label",8),f(12,"Width"),u(),c(13,"input",9),k("ngModelChange",function(r){return F(n.newImageSize.width,r)||(n.newImageSize.width=r),r}),u()(),c(14,"div",5)(15,"label",10),f(16,"Height"),u(),c(17,"input",11),k("ngModelChange",function(r){return F(n.newImageSize.height,r)||(n.newImageSize.height=r),r}),u()(),c(18,"div",5)(19,"label",12),f(20,"Crop?"),u(),c(21,"input",13),k("ngModelChange",function(r){return F(n.newImageSize.crop,r)||(n.newImageSize.crop=r),r}),u()(),c(22,"div",5)(23,"label",14),f(24,"Horizontal Crop"),u(),c(25,"select",15),k("ngModelChange",function(r){return F(n.newImageSizeHorizontalCrop,r)||(n.newImageSizeHorizontalCrop=r),r}),c(26,"option",16),f(27,"Left"),u(),c(28,"option",17),f(29,"Center"),u(),c(30,"option",18),f(31,"Right"),u()()(),c(32,"div",5)(33,"label",19),f(34," Vertical Crop "),u(),c(35,"select",20),k("ngModelChange",function(r){return F(n.newImageSizeVerticalCrop,r)||(n.newImageSizeVerticalCrop=r),r}),c(36,"option",21),f(37,"Top"),u(),c(38,"option",17),f(39,"Center"),u(),c(40,"option",22),f(41,"Bottom"),u()()()(),S(42,yI,2,1,"div",23),c(43,"div",24)(44,"button",25),C("click",function(){return n.activeModal.dismiss("Close click")}),f(45," Cancel "),u(),c(46,"button",26),v(47,"i",27),f(48,"Save "),u()()()),i&2&&(h(9),R("ngModel",n.newImageSize.name),h(4),R("ngModel",n.newImageSize.width),h(4),R("ngModel",n.newImageSize.height),h(4),R("ngModel",n.newImageSize.crop),h(4),R("ngModel",n.newImageSizeHorizontalCrop),A("disabled",!n.newImageSize.crop),h(10),R("ngModel",n.newImageSizeVerticalCrop),A("disabled",!n.newImageSize.crop),h(7),A("ngIf",n.failMessage),h(4),A("disabled",n.savingImageSize))},dependencies:[be,tn,nn,on,it,bo,wn,It,Pe,en,Ne,Lt,_r]})};var wc=class t{title="";question="";cancelWord="";okWord="";activeModal=b(cn);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-confirm"]],inputs:{title:"title",question:"question",cancelWord:"cancelWord",okWord:"okWord"},standalone:!0,features:[j],decls:11,vars:4,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-sm","btn-success",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2),u(),c(3,"button",2),C("click",function(){return n.activeModal.dismiss()}),u()(),c(4,"div",3),f(5),u(),c(6,"div",4)(7,"button",5),C("click",function(){return n.activeModal.dismiss()}),f(8),u(),c(9,"button",6),C("click",function(){return n.activeModal.close()}),f(10),u()()),i&2&&(h(2),J(n.title||"Please Confirm"),h(3),B(" ",n.question,` 11 `),h(3),B(" ",n.cancelWord||"Cancel"," "),h(2),B(" ",n.okWord||"OK"," "))}})};var Ec=class t{title="";alert="";okWord="";activeModal=b(cn);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-alert"]],inputs:{title:"title",alert:"alert",okWord:"okWord"},standalone:!0,features:[j],decls:9,vars:3,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","submit",1,"btn","btn-sm","btn-success",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2),u(),c(3,"button",2),C("click",function(){return n.activeModal.dismiss()}),u()(),c(4,"div",3),f(5),u(),c(6,"div",4)(7,"button",5),C("click",function(){return n.activeModal.close()}),f(8),u()()),i&2&&(h(2),J(n.title||"Please note"),h(3),B(" ",n.alert,` 12 `),h(3),B(" ",n.okWord||"OK"," "))}})};var un=class t{modalService=b(Or);constructor(){}confirm=(e,i="Please confirm",n="OK",o="Cancel")=>new Promise(r=>{let s=this.modalService.open(wc);s.componentInstance.title=i,s.componentInstance.question=e,s.componentInstance.okWord=n,s.componentInstance.cancelWord=o,On(s.closed).then(()=>r(!0)),On(s.dismissed).then(()=>r(!1))});alert=(e,i="Notice",n="OK")=>new Promise(o=>{let r=this.modalService.open(Ec);r.componentInstance.title=i,r.componentInstance.question=e,r.componentInstance.okWord=n,On(r.closed).then(o),On(r.dismissed).then(o)});strLastReplace=(e,i,n)=>{let o=n.split(e),r=o.pop();return o.join(e)+i+r};static \u0275fac=function(i){return new(i||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pi=class t{constructor(e){this.http=e}imageSettingsUrl=`${Be}/optimization/image/settings`;imageSettings=null;populate=(e=!1)=>E(this,null,function*(){yield Promise.all([this.populateimageSettings(e)])});populateimageSettings=(e=!1)=>E(this,null,function*(){(this.imageSettings===null||e)&&(this.imageSettings=(yield K(this.http.get(this.imageSettingsUrl)).catch(console.error))||null)});saveImageSettings=()=>E(this,null,function*(){yield K(this.http.post(this.imageSettingsUrl,this.imageSettings))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function CI(t,e){if(t&1&&(c(0,"div",30),f(1),u()),t&2){let i=y(2);h(),B(" ",i.saveNotification," ")}}function bI(t,e){if(t&1){let i=U();c(0,"form",13),C("ngSubmit",function(){M(i);let o=y();return T(o.onSubmit())}),c(1,"div",6)(2,"h5",7),f(3," General "),u(),c(4,"div",10)(5,"label",14),f(6," Keep Originals "),c(7,"div",15),f(8," If/When images are resized originals will be preserved separately. "),v(9,"br"),f(10," It is highly recommended to keep this enabled, because this will allow you to revert your images back to originals. "),u()(),c(11,"span",16)(12,"input",17),k("ngModelChange",function(o){M(i);let r=y();return F(r.sS.imageSettings.keepOriginals,o)||(r.sS.imageSettings.keepOriginals=o),T(o)}),u()()(),c(13,"div",18)(14,"label",19),f(15," Convert to "),c(16,"div",20),f(17," Should images be converted to WebP or Avif formats. "),u()(),c(18,"span",21)(19,"select",22),k("ngModelChange",function(o){M(i);let r=y();return F(r.sS.imageSettings.convertTo,o)||(r.sS.imageSettings.convertTo=o),T(o)}),c(20,"option",23),f(21,"Do not Convert"),u(),c(22,"option",24),f(23,"WebP"),u(),c(24,"option",25),f(25,"Avif"),u()()()(),S(26,CI,2,1,"div",26),c(27,"div",27)(28,"button",28),v(29,"i",29),f(30,"Save Settings "),u()()()()}if(t&2){let i=y();h(12),R("ngModel",i.sS.imageSettings.keepOriginals),h(7),R("ngModel",i.sS.imageSettings.convertTo),h(7),A("ngIf",i.saveNotification),h(2),A("disabled",i.disabledSubmit)}}function DI(t,e){t&1&&(c(0,"tr")(1,"td",31),f(2," Please wait, retrieving intermediate image sizes from wordpress. "),u()())}function wI(t,e){t&1&&f(0," center,center ")}function EI(t,e){if(t&1&&f(0),t&2){let i,n=y().$implicit,o=y(2);B(" ",(i=o.imageSizes[n]==null?null:o.imageSizes[n].crop)!==null&&i!==void 0?i:"No Crop Behavior Saved","")}}function SI(t,e){if(t&1){let i=U();c(0,"i",34),C("click",function(){M(i);let o=y().$implicit,r=y(2);return T(r.deleteImageSize(o))}),u()}}function MI(t,e){if(t&1&&(c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),u(),c(7,"td"),S(8,wI,1,0)(9,EI,1,1),u(),c(10,"td"),f(11),u(),c(12,"td",32),S(13,SI,1,0,"i",33),u()()),t&2){let i,n,o,r=e.$implicit,s=y(2);h(2),B(" ",r," "),h(2),B(" ",(i=s.imageSizes[r]==null?null:s.imageSizes[r].width)!==null&&i!==void 0?i:"No Width Saved"," "),h(2),B(" ",(n=s.imageSizes[r]==null?null:s.imageSizes[r].height)!==null&&n!==void 0?n:"No Height Saved"," "),h(2),I((s.imageSizes[r]==null?null:s.imageSizes[r].crop)==="1"||(s.imageSizes[r]==null?null:s.imageSizes[r].crop)===1?8:9),h(3),B(" ",(o=s.imageSizes[r]==null?null:s.imageSizes[r].source)!==null&&o!==void 0?o:"Wordpress"," "),h(2),I(s.imageSizes[r]!=null&&s.imageSizes[r].isOurs?13:-1)}}function TI(t,e){t&1&&(c(0,"tr")(1,"td",31),f(2," There are no intermediate image sizes defined yet. "),u()())}function II(t,e){if(t&1&&ee(0,MI,14,6,"tr",null,Yt,!1,TI,3,0,"tr"),t&2){let i=y();te(i.imageSizeNames)}}var kr=class t{constructor(e,i,n){this.http=e;this.utilities=i;this.sS=n}modalService=b(Or);disabledSubmit=!1;saveNotification="";imageSizes=void 0;imageSizeNames=[];gettingImageSizes=!0;addingImageSize=!1;savingImageSize=!1;newImageSizeHorizontalCrop="center";newImageSizeVerticalCrop="center";imageSizesUrl=`${Be}/optimization/image/image-sizes`;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),this.getImageSizes()})}getImageSizes=()=>{K(this.http.get(this.imageSizesUrl)).then(e=>{this.imageSizes=e;let i=Object.entries(this.imageSizes||{});i.sort(([n,o],[r,s])=>parseFloat(o.width)>parseFloat(s.width)?1:-1),this.imageSizeNames=[];for(let[n,o]of i)this.imageSizeNames.push(n);this.gettingImageSizes=!1}).catch(console.error)};onSubmit=()=>{this.disabledSubmit=!0,this.saveNotification="",this.sS.saveImageSettings().then(()=>{this.saveNotification="Settings are now saved"}).catch(e=>{this.saveNotification="Failed to save settings",console.error(e)}).finally(()=>{this.disabledSubmit=!1,setTimeout(()=>{this.saveNotification=""},3e3)})};startAddingImageSize=()=>{this.addingImageSize=!0,this.modalService.open(Dc).closed.subscribe(()=>{this.getImageSizes()})};deleteImageSize=e=>E(this,null,function*(){(yield this.utilities.confirm("Are you sure you want to delete "+e))&&K(this.http.delete(this.imageSizesUrl+"?name="+e)).then(this.getImageSizes).catch(console.error)});static \u0275fac=function(i){return new(i||t)(w(Ve),w(un),w(Pi))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-settings"]],standalone:!0,features:[j],decls:36,vars:2,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[3,"ngSubmit",4,"ngIf"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"btn","btn-xs","btn-outline-light","text-bg-secondary","ms-auto",3,"click"],[1,"fas","fa-add","me-2"],[1,"card-body","d-flex"],[1,"table","table-sm","table-striped","m-0"],["scope","col"],[3,"ngSubmit"],["for","keepO",1,"form-label"],["id","keepOHelp",1,"form-text"],[1,"form-check","form-switch","ms-auto"],["type","checkbox","role","switch","id","keepO","name","keepO",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"card-body","border-top","d-flex"],["for","convTo",1,"form-label"],["id","convToHelp",1,"form-text"],[1,"ms-auto"],["id","convTo","name","convTo","aria-describedby","convToHelp",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","false"],["value","WebP"],["value","Avif"],["class","card-body text-bg-success",4,"ngIf"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"disabled"],[1,"fas","fa-save","me-2"],[1,"card-body","text-bg-success"],["colspan","100"],[2,"text-align","center"],[1,"fas","fa-trash","ptr"],[1,"fas","fa-trash","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Image Optimization Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),S(9,bI,31,4,"form",5),u(),c(10,"div",2)(11,"div",6)(12,"h5",7),f(13," Image Sizes "),c(14,"button",8),C("click",function(){return n.startAddingImageSize()}),v(15,"i",9),f(16,"Add New Size "),u()(),c(17,"div",10)(18,"table",11)(19,"thead")(20,"tr")(21,"th",12),f(22,"Name"),u(),c(23,"th",12),f(24,"Width"),u(),c(25,"th",12),f(26,"Height"),u(),c(27,"th",12),f(28,"Crops?"),u(),c(29,"th",12),f(30,"Source"),u(),c(31,"th",12),f(32,"\xA0"),u()()(),c(33,"tbody"),S(34,DI,3,0,"tr")(35,II,3,1),u()()()()()()()),i&2&&(h(9),A("ngIf",n.sS.imageSettings),h(25),I(n.gettingImageSizes?34:35))},dependencies:[be,tn,nn,on,wn,It,Pe,en,Ne,Lt,_r]})};var Li=class t{constructor(e){this.http=e}mediaListUrl="/wp-json/wp/v2/media";mediaList=[];populateMediaList=()=>E(this,null,function*(){let e=!0;this.mediaList=[];let i=100,n=0,o=0;for(;e;){n++;try{let r=yield K(this.http.get(`${this.mediaListUrl}?order=asc&orderby=title&per_page=${i}&page=${n}`,{observe:"response"})).catch(console.error);if(!r)e=!1;else{let{headers:s,body:a}=r;o=parseInt(s.get("x-wp-totalpages"),10),n>=o&&(e=!1);for(let l of a||[])this.mediaList.push(l)}}catch(r){console.error(r),e=!1}}});reFetchMedium=e=>E(this,null,function*(){let i=this.mediaList[e].id;this.mediaList[e]=yield K(this.http.get(`/wp-json/wp/v2/media/${i}`))});optimizeMedium=e=>E(this,null,function*(){let i=`${Be}/optimization/image/use-optimized`;yield K(this.http.post(i,this.mediaList[e])).catch(console.error),yield this.reFetchMedium(e)});getMediumFiles=e=>E(this,null,function*(){yield this.getUploadDir();let i={currentFile:"",originalFile:""};if(i.currentFile=e.source_url.replace(this.uploadDir.baseurl+"/",""),e.media_details?.luckynode_optimized==="luckynode_converted"&&e.media_details?.original_image){let n=i.currentFile.split("/");n.pop(),n.push(e.media_details.original_image),i.originalFile=n.join("/")}return i});fileDetailsUrl=`${Be}/optimization/image/get-file-details`;getFileDetails=e=>E(this,null,function*(){return yield K(this.http.post(this.fileDetailsUrl,{path:e}))});uploadDirUrl=`${Be}/optimization/image/upload-dir`;uploadDir={baseurl:"",subdir:"",url:""};getUploadDir=()=>E(this,null,function*(){return this.uploadDir.baseurl?this.uploadDir:(this.uploadDir=yield K(this.http.get(this.uploadDirUrl)),this.uploadDir)});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var we=class t{constructor(){this.prepare()}currentPage="home";sCP=e=>this.currentPage=e;linkMap=new Map;links=[];prepare=()=>{this.linkMap.set("home",{name:"Home",isPro:!1,link:"home",icon:"fas fa-house"}),this.linkMap.set("optimization-home",{isPro:!1,name:"Optimization",link:"optimization-home",icon:"fas fa-gauge-simple-high"}),this.linkMap.set("optimization-image-home",{isPro:!1,name:"Image Optimization",link:"optimization-image-home",icon:"fas fa-image",parent:"optimization-home"}),this.linkMap.set("optimization-image-supervised",{isPro:!1,name:"Supervised Optimization",link:"optimization-image-supervised",parent:"optimization-image-home"}),this.linkMap.set("optimization-image-bulk",{isPro:!1,name:"Bulk Optimization",link:"optimization-image-bulk",parent:"optimization-image-home"}),this.linkMap.set("optimization-image-settings",{isPro:!1,name:"Settings",link:"optimization-image-settings",parent:"optimization-image-home"}),this.linkMap.set("maintenance-home",{isPro:!0,name:"Maintenance",link:"maintenance-home",icon:"fas fa-wrench"}),this.linkMap.set("maintenance-cron",{isPro:!0,name:"Cron Setup",link:"maintenance-cron",parent:"maintenance-home"}),this.linkMap.set("maintenance-mailgun",{isPro:!0,name:"Mailgun Settings",link:"maintenance-mailgun",parent:"maintenance-home"}),this.linkMap.set("crm-home",{isPro:!0,name:"CRM",link:"crm-home",icon:"fas fa-handshake"}),this.linkMap.set("crm-contact-list",{isPro:!0,name:"Contacts",link:"crm-contact-list",parent:"crm-home"}),this.linkMap.set("crm-explore-list",{isPro:!0,name:"Explorer",link:"crm-explore-list",parent:"crm-home"}),this.linkMap.set("crm-email-template-list",{isPro:!0,name:"Email Templates",link:"crm-email-template-list",parent:"crm-home"}),this.linkMap.set("crm-campaign-list",{isPro:!0,name:"Campaigns",link:"crm-campaign-list",parent:"crm-home"}),this.linkMap.set("crm-settings",{isPro:!0,name:"Settings",link:"crm-settings",parent:"crm-home"}),this.linkMap.set("ai-home",{isPro:!0,isComingSoon:!0,icon:"fas fa-brain",name:"AI Content Generation",link:"ai-home"}),this.linkMap.set("subscription-home",{isPro:!1,name:"Subscription",link:"subscription-home",icon:"fas fa-id-card"});for(let e of this.linkMap.values())(!e.icon||e.icon==="")&&(e.icon="fas fa-caret-right"),e.icon+=" fa-fw";this.links=[];for(let e of this.linkMap.values())if(!e.parent)this.links.push(e);else{let i=this.linkMap.get(e.parent);i.children??=[],i.children.push(e)}};static \u0275fac=function(i){return new(i||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function xI(t,e){if(t&1){let i=U();c(0,"div",5)(1,"div",7),f(2," Before working on any optimization please make sure that you defined the settings. "),v(3,"br"),c(4,"button",8),C("click",function(){M(i);let o=y();return T(o.nS.sCP("optimization-image-settings"))}),f(5,"Go to Image Optimization Settings"),u()()()}}function OI(t,e){t&1&&(c(0,"div",5)(1,"div",7)(2,"div",9)(3,"div",10),f(4," Please wait we are fetching the media from your media library to process. "),v(5,"br")(6,"br")(7,"i",11),u()()()())}function NI(t,e){t&1&&(c(0,"h6",13),f(1,"Please optimize your images."),u())}function AI(t,e){t&1&&f(0," Good job. All media in your library are optimized. ")}function RI(t,e){t&1&&f(0,"is")}function kI(t,e){t&1&&f(0,"are")}function FI(t,e){t&1&&f(0,"medium")}function PI(t,e){t&1&&f(0,"media")}function LI(t,e){if(t&1&&(f(0," There "),S(1,RI,1,0)(2,kI,1,0),f(3),S(4,FI,1,0)(5,PI,1,0),f(6," in your library pending optimization. "),v(7,"br"),f(8,' Please use "Initiate Bulk Optimization" button on this screen to fix this. ')),t&2){let i=y(3);h(),I(i.pendingCount===1?1:2),h(2),B(" ",i.pendingCount," "),h(),I(i.pendingCount===1?4:5)}}function VI(t,e){if(t&1&&(f(0),v(1,"br")),t&2){let i=e.$implicit;B(" ",i," ")}}function BI(t,e){if(t&1&&(v(0,"br"),f(1,"or in other words "),v(2,"br")(3,"br"),f(4)),t&2){let i=y(4);h(4),B(" ",i.savingRatio,"")}}function jI(t,e){if(t&1&&(ee(0,VI,2,1,"br",null,yo),S(2,BI,5,1)),t&2){let i=y(3);te(i.savingSizes),h(2),I(i.savingRatio?2:-1)}}function UI(t,e){t&1&&f(0," Please wait, calculating savings... ")}function HI(t,e){if(t&1){let i=U();c(0,"button",21),C("click",function(){M(i);let o=y(4);return T(o.nS.sCP("optimization-image-settings"))}),f(1,"Optimization Disabled, Go to Settings"),u()}}function zI(t,e){if(t&1){let i=U();c(0,"button",22),C("click",function(){M(i);let o=y(4);return T(o.bulkOptimize())}),f(1," Initiate "),u()}if(t&2){let i=y(4);A("disabled",i.optimizing)}}function $I(t,e){if(t&1&&S(0,HI,2,0,"button",19)(1,zI,2,1,"button",20),t&2){let i=y(3);I(i.sS.imageSettings.convertTo==="false"?0:1)}}function GI(t,e){if(t&1&&(c(0,"div",5)(1,"div",7)(2,"div",9)(3,"h5",12),f(4,"Status"),u(),S(5,NI,2,0,"h6",13),c(6,"div",10)(7,"p",14),S(8,AI,1,0)(9,LI,9,3),u(),c(10,"div",15)(11,"div",16)(12,"strong"),f(13),u()()()()()(),c(14,"div",7)(15,"div",17)(16,"h5",12),f(17,"You are saving"),u(),c(18,"div",10)(19,"p",14),S(20,jI,3,1)(21,UI,1,0),u()()()(),c(22,"div",7)(23,"div",17)(24,"h5",12),f(25,"Let's Go"),u(),c(26,"div",18),S(27,$I,2,1),u()()()()),t&2){let i=y(2);h(5),I(i.pendingCount>0?5:-1),h(3),I(i.pendingCount===0?8:9),h(3),A("ngClass",i.barClasses)("ngStyle",i.barStyles),h(2),B("",i.optimizedRatio,"%"),h(7),I(i.savingCalculated?20:21),h(7),I(i.sS.imageSettings?27:-1)}}function WI(t,e){if(t&1&&S(0,OI,8,0,"div",5)(1,GI,28,7,"div",5),t&2){let i=y();I(i.statusCalculated?1:0)}}function YI(t,e){if(t&1&&(c(0,"div",6)(1,"div",7)(2,"div",9)(3,"h5",12),f(4,"Optimization Log"),u(),c(5,"div",10)(6,"pre"),f(7),u()()()()()),t&2){let i=y();h(7),J(i.optimizationLog)}}var Fr=class t{constructor(e,i,n){this.mS=e;this.sS=i;this.nS=n}isSystemReady=!1;ngOnInit(){return E(this,null,function*(){yield this.mS.getUploadDir(),yield this.sS.populate(),(typeof this.sS.imageSettings?.convertTo<"u"||typeof this.sS.imageSettings?.keepOriginals<"u")&&(this.isSystemReady=!0),yield this.mS.populateMediaList(),this.calculateStatus(),yield this.calculateSavings()})}mediaCount=0;optimizedCount=0;pendingCount=0;optimizedRatio=0;barClasses=[];barStyles={};statusCalculated=!1;calculateStatus=(e=!1)=>{this.statusCalculated=!1,this.barClasses=["progress-bar","progress-bar-striped"],e&&this.barClasses.push("progress-bar-animated"),this.optimizedCount=0,this.mediaCount=0;for(let i of this.mS.mediaList)!i?.media_details?.sizes||i.media_type!=="image"||(this.mediaCount++,i.media_details?.luckynode_optimized==="luckynode_converted"&&this.optimizedCount++);this.pendingCount=this.mediaCount-this.optimizedCount,this.optimizedRatio=parseInt((this.optimizedCount/this.mediaCount*100).toFixed(0),10),this.optimizedRatio<50?(this.barClasses.push("bg-danger"),this.barClasses.push("text-white")):this.optimizedRatio<100?(this.barClasses.push("bg-warning"),this.barClasses.push("text-black")):this.barClasses.push("bg-success"),this.barStyles={width:this.optimizedRatio+"%"},this.statusCalculated=!0};savingSizes=[];savingRatio="";savingCalculated=!1;calculateSavings=()=>E(this,null,function*(){let e=0,i=0;this.savingCalculated=!1,this.savingSizes=[];for(let n of this.mS.mediaList)!n?.media_details?.sizes||n.media_type!=="image"||n.media_details?.luckynode_optimized==="luckynode_converted"&&n.media_details?.luckynode_stats&&(e+=n.media_details?.luckynode_stats.convertedFileSize,i+=n.media_details?.luckynode_stats.originalFileSize);this.savingSizes.push(((i-e)/1024/1024).toFixed(2)+" megabytes"),this.savingSizes.push(((i-e)/1024).toFixed(2)+" kilobytes"),this.savingSizes.push(`${i-e} bytes`),i===0?this.savingRatio="0%":this.savingRatio=((i-e)/i*100).toFixed(2)+"%",this.savingCalculated=!0});optimizing=!1;optimizationLog="";bulkOptimize=()=>E(this,null,function*(){this.optimizing=!0,this.addLog("Starting optimization",!0),this.calculateStatus(!0);for(let[e,i]of this.mS.mediaList.entries())if(this.addLog(`Currently pending media to optimize: ${this.pendingCount}`),i.media_type==="image"){if(i.media_details?.luckynode_optimized!=="luckynode_converted"){let n=yield this.mS.getMediumFiles(i);this.addLog(`Now optimizing ${n.currentFile}`),yield this.mS.optimizeMedium(e),this.addLog(`Done optimizing ${n.currentFile}`),this.calculateStatus(!0)}this.calculateSavings()}this.optimizing=!1,this.calculateStatus(),this.calculateSavings()});addLog=(e,i=!1)=>{i&&(this.optimizationLog=""),this.optimizationLog=e+` 13 `+this.optimizationLog};static \u0275fac=function(i){return new(i||t)(w(Li),w(Pi),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-bulk"]],standalone:!0,features:[j],decls:12,vars:3,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"row","mt-0"],[1,"row","my-3"],[1,"row","mb-3"],[1,"col"],["type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],[1,"card"],[1,"card-body"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"card-header","text-light","fw-bold","bg-secondary"],[1,"card-header","mb-2","text-body-secondary","bg-warning"],[1,"card-text"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress","my-3",2,"height","2rem"],[3,"ngClass","ngStyle"],[1,"card","h-100"],[1,"card-body","d-flex"],["type","button",1,"btn","btn-outline-danger"],["type","button",1,"btn","btn-success","btn-lg","mx-auto","my-auto","rounded-circle","border",2,"width","100px","height","100px",3,"disabled"],["type","button",1,"btn","btn-outline-danger",3,"click"],["type","button",1,"btn","btn-success","btn-lg","mx-auto","my-auto","rounded-circle","border",2,"width","100px","height","100px",3,"click","disabled"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Bulk Optimization"),u(),c(5,"div",3),f(6,"\xA0"),u()()(),c(7,"div",4),v(8,"hr"),u(),S(9,xI,6,0,"div",5)(10,WI,2,1)(11,YI,8,1,"div",6),u()),i&2&&(h(9),I(n.isSystemReady?-1:9),h(),I(n.isSystemReady?10:-1),h(),I(n.optimizing?11:-1))},dependencies:[$f,N_]})};function qI(t,e){if(t&1&&(c(0,"div",3),f(1),u()),t&2){let i=y();h(),B(" ",i.failMessage,` 14 `)}}var Sc=class t{constructor(e){this.http=e}activeModal=b(cn);currentMessage="Are you ready?";regenerating=!1;data=void 0;ngOnInit(){}failMessage="";useOriginalUrl=`${Be}/optimization/image/use-original`;useOriginal=()=>E(this,null,function*(){this.currentMessage="Please wait, your server is now working on it",this.regenerating=!0;let e=yield K(this.http.post(this.useOriginalUrl,this.data)).catch(console.error);console.log(e),console.log(e==="success"),e==="success"?(this.currentMessage="All done. Good bye.",setTimeout(()=>{this.activeModal.close()},1e3)):(this.failMessage=e,this.currentMessage="Something went wrong. Please read below message.",this.regenerating=!1)});static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-supervised-use-original"]],inputs:{data:"data"},standalone:!0,features:[j],decls:12,vars:4,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],[1,"modal-body"],[1,"modal-body","text-bg-danger"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click","disabled"],["type","button",1,"btn","btn-sm","btn-success","text-light",3,"click","disabled"],[1,"fas","fa-play","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2,"Use Original Image"),u()(),c(3,"div",2),f(4),u(),S(5,qI,2,1,"div",3),c(6,"div",4)(7,"button",5),C("click",function(){return n.activeModal.dismiss("Close click")}),f(8,"Cancel"),u(),c(9,"button",6),C("click",function(){return n.useOriginal()}),v(10,"i",7),f(11,"Start"),u()()),i&2&&(h(4),B(" ",n.currentMessage,` 15 `),h(),I(n.failMessage?5:-1),h(2),A("disabled",n.regenerating),h(2),A("disabled",n.regenerating))},dependencies:[be]})};var sy=(t,e,i)=>{let n=i.split(t),o=n.pop();return n.join(t)+e+o};var Mc=(t,e)=>t?.value?.name>e?.value?.name?1:-1;function KI(t,e){t&1&&(c(0,"label",13),f(1,"All Images"),u())}function ZI(t,e){t&1&&(c(0,"label",13),f(1,"Images Pending Optimization"),u())}function QI(t,e){if(t&1){let i=U();c(0,"div",4)(1,"div",9)(2,"button",10),C("click",function(){M(i);let o=y();return T(o.useOriginalImage())}),f(3,"Use Original Image"),u()()()}}function JI(t,e){if(t&1){let i=U();c(0,"div",4)(1,"div",9)(2,"button",10),C("click",function(){M(i);let o=y();return T(o.nS.sCP("optimization-image-settings"))}),f(3,"Optimization Disabled, Go to Settings"),u()()()}}function XI(t,e){t&1&&(c(0,"button",14),v(1,"i",15),u())}function ex(t,e){if(t&1){let i=U();c(0,"button",10),C("click",function(){M(i);let o=y(2);return T(o.useOptimizedImage())}),f(1,"Optimize"),u()}}function tx(t,e){if(t&1&&(c(0,"div",4)(1,"div",9),S(2,XI,2,0,"button",14)(3,ex,2,0,"button",14),u()()),t&2){let i=y();h(2),I(i.optimizingImage?2:3)}}function nx(t,e){if(t&1){let i=U();c(0,"div",12)(1,"div",16),f(2," Before working on any optimization please make sure that you defined the settings. "),v(3,"br"),c(4,"button",17),C("click",function(){M(i);let o=y();return T(o.nS.sCP("optimization-image-settings"))}),f(5,"Go to Image Optimization Settings"),u()()()}}function ix(t,e){t&1&&(c(0,"div",12)(1,"div",16)(2,"h5"),v(3,"i",15),f(4," Please wait, loading media..."),u()()())}function ox(t,e){t&1&&(c(0,"div",12)(1,"div",16)(2,"h5"),f(3,"Hurray!! There is no medium to optimize. Well done."),u()()())}function rx(t,e){if(t&1&&(c(0,"div",12)(1,"div",2)(2,"h5"),f(3),u(),c(4,"div",3),f(5,"\xA0"),u(),c(6,"div",4),f(7),u()()()),t&2){let i=y(3);h(3),J((i.currentData==null||i.currentData.title==null?null:i.currentData.title.rendered)||(i.currentData==null?null:i.currentData.tempTitle)||"There is no title for the media"),h(4),Tt(" Media ",i.currentImage+1," of ",i.imageList.length," ")}}function sx(t,e){t&1&&(c(0,"div",21),f(1," No optimization done yet. "),u())}function ax(t,e){t&1&&(c(0,"div",21),f(1," Original Image is not preserved. "),u())}function lx(t,e){if(t&1&&(c(0,"div",21)(1,"div",22),v(2,"img",23),c(3,"div",24)(4,"h5",25),f(5,"Original Image"),u(),c(6,"span",26),f(7),v(8,"br"),f(9),v(10,"br"),f(11),v(12,"br"),u()()()()),t&2){let i=y(4);h(2),A("src",i.originalImage.url,Bn),h(5),B(" Extension: ",i.originalImage.ext," "),h(2),Tt(" File Size: ",i.originalImage.sizekb," (",i.originalImage.size,") "),h(2),B(" Saving: ",i.originalImage.saving," ")}}function cx(t,e){if(t&1&&(c(0,"div",20)(1,"div",21)(2,"div",22),v(3,"img",23),c(4,"div",24)(5,"h5",25),f(6,"Active Image"),u(),c(7,"span",26),f(8),v(9,"br"),f(10),v(11,"br"),f(12),v(13,"br"),u()()()(),S(14,sx,2,0,"div",27)(15,ax,2,0,"div",27)(16,lx,13,5,"div",27),u()),t&2){let i=y(3);h(3),A("src",i.activeImage.url,Bn),h(5),B(" Extension: ",i.activeImage.ext," "),h(2),Tt(" File Size: ",i.activeImage.sizekb," (",i.activeImage.size,") "),h(2),B(" Saving: ",i.activeImage.saving," "),h(2),A("ngIf",!i.originalImage.optimized),h(),A("ngIf",i.originalImage.optimized&&!i.originalImage.exists),h(),A("ngIf",i.originalImage.optimized&&i.originalImage.exists)}}function ux(t,e){if(t&1&&S(0,ox,4,0,"div",12)(1,rx,8,3,"div",18)(2,cx,17,8,"div",19),t&2){let i=y(2);I(i.currentData?-1:0),h(),A("ngIf",i.currentData),h(),A("ngIf",i.currentData)}}function dx(t,e){if(t&1&&S(0,ix,5,0,"div",12)(1,ux,3,3),t&2){let i=y();I(i.imageListPopulated?-1:0),h(),I(i.imageListPopulated?1:-1)}}var Pr=class t{constructor(e,i,n){this.mS=e;this.sS=i;this.nS=n}modalService=b(Or);showAll=!0;currentImage=0;currentData=void 0;imageList=[];indexList=[];fileDetailsUrl=`${Be}/optimization/image/get-file-details`;activeImage={url:"",ext:"",size:"",sizekb:"",saving:""};originalImage={optimized:!1,exists:!1,url:"",ext:"",size:"",sizekb:"",saving:""};isSystemReady=!1;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),(typeof this.sS.imageSettings?.convertTo<"u"||typeof this.sS.imageSettings?.keepOriginals<"u")&&(this.isSystemReady=!0),this.populateImageList()})}getExtension=e=>e?e.split(".").pop():"";nextImage=()=>{this.currentImage=++this.currentImage%(this.imageList?.length||1),this.setCurrentData()};previousImage=()=>{this.currentImage=--this.currentImage,this.currentImage<0&&(this.currentImage=this.imageList.length-1),this.setCurrentData()};imageListPopulated=!1;populateImageList=()=>E(this,null,function*(){this.imageListPopulated=!1;try{this.imageList=[],this.indexList=[],this.currentData=void 0,yield this.mS.populateMediaList();for(let[e,i]of this.mS.mediaList.entries())i?.media_details?.sizes&&(this.showAll||!this.showAll&&!i?.media_details?.luckynode_optimized)&&i.media_type==="image"&&(this.imageList.push(i),this.indexList.push(e));this.currentData||(this.currentImage=0,this.setCurrentData())}catch(e){console.error(e)}finally{this.imageListPopulated=!0}});setCurrentData=()=>E(this,null,function*(){let e=new Intl.NumberFormat;if(this.imageList[this.currentImage]=this.mS.mediaList[this.indexList[this.currentImage]],this.currentData=this.imageList[this.currentImage],!this.currentData)return;let i=yield this.mS.getMediumFiles(this.currentData);if(this.currentData.title?.rendered||(this.currentData.tempTitle=(yield this.mS.getMediumFiles(this.currentData)).currentFile),this.activeImage.url=this.currentData.source_url,this.activeImage.ext=this.getExtension(this.currentData.media_details?.sizes?.full?.file||this.currentData.source_url||"")||"",this.activeImage.size=e.format(this.currentData.media_details?.filesize||0)+" b",this.activeImage.sizekb=((this.currentData.media_details?.filesize||0)/1024).toFixed(2)+" kb",this.activeImage.saving="n/a",this.originalImage.optimized=!!this.currentData.media_details?.luckynode_optimized,this.originalImage.exists=!!this.currentData.media_details?.original_image,this.originalImage.size="n/a",this.originalImage.sizekb="n/a",this.originalImage.saving="n/a",this.originalImage.url="",this.originalImage.ext="",this.originalImage.exists&&(this.originalImage.url=sy(i.currentFile||"",i.originalFile||"",this.currentData.source_url),this.originalImage.ext=this.getExtension(this.originalImage.url)||"",this.currentData?.media_details?.luckynode_stats)){let n=this.currentData.media_details.luckynode_stats.originalFileSize;this.originalImage.size=n+" b",this.originalImage.sizekb=(n/1024).toFixed(2)+" kb",this.activeImage.saving=((1-this.currentData.media_details?.filesize/n)*100).toFixed(2)+"%",this.originalImage.saving=this.activeImage.saving}});useOriginalImage=()=>E(this,null,function*(){let e=this.modalService.open(Sc,{backdrop:"static",size:"lg",keyboard:!1});e.componentInstance.data=this.currentData,yield On(e.closed),yield this.mS.reFetchMedium(this.indexList[this.currentImage]),this.imageList[this.currentImage]=this.mS.mediaList[this.indexList[this.currentImage]],this.setCurrentData()});optimizingImage=!1;useOptimizedImage=()=>E(this,null,function*(){this.optimizingImage=!0,yield this.mS.optimizeMedium(this.indexList[this.currentImage]),this.setCurrentData(),this.optimizingImage=!1});static \u0275fac=function(i){return new(i||t)(w(Li),w(Pi),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-supervised"]],standalone:!0,features:[j],decls:25,vars:8,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"ms-3"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","sA","name","sA",1,"form-check-input",3,"ngModelChange","change","ngModel"],["class","form-label","for","sA",4,"ngIf"],["class","ms-3",4,"ngIf"],["role","group",1,"btn-group","btn-group-sm","my-auto"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"row","mt-0"],[1,"row","my-3"],["for","sA",1,"form-label"],["type","button",1,"btn","btn-outline-secondary"],[1,"fas","fa-sync","fa-spin"],[1,"col"],["type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],["class","row my-3",4,"ngIf"],["class","row",4,"ngIf"],[1,"row"],[1,"col-6"],[1,"card"],[1,"card-img-top",3,"src"],[1,"card-body"],[1,"card-title"],[1,"card-text"],["class","col-6",4,"ngIf"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Supervised Optimization"),u(),c(5,"div",3),f(6,"\xA0"),u(),c(7,"div",4)(8,"div",5)(9,"input",6),k("ngModelChange",function(r){return F(n.showAll,r)||(n.showAll=r),r}),C("change",function(){return n.populateImageList()}),u(),S(10,KI,2,0,"label",7)(11,ZI,2,0,"label",7),u()(),S(12,QI,4,0,"div",8)(13,JI,4,0,"div",8)(14,tx,4,1,"div",8),c(15,"div",4)(16,"div",9)(17,"button",10),C("click",function(){return n.previousImage()}),f(18,"Previous"),u(),c(19,"button",10),C("click",function(){return n.nextImage()}),f(20,"Next"),u()()()()(),c(21,"div",11),v(22,"hr"),u(),S(23,nx,6,0,"div",12)(24,dx,2,2),u()),i&2&&(h(9),R("ngModel",n.showAll),h(),A("ngIf",n.showAll),h(),A("ngIf",!n.showAll),h(),A("ngIf",n.originalImage.optimized&&n.originalImage.exists),h(),A("ngIf",!n.originalImage.optimized&&!n.originalImage.exists&&((n.sS.imageSettings==null?null:n.sS.imageSettings.convertTo)==="false"||!(n.sS.imageSettings!=null&&n.sS.imageSettings.convertTo))),h(),A("ngIf",!n.originalImage.optimized&&!n.originalImage.exists&&(n.sS.imageSettings==null?null:n.sS.imageSettings.convertTo)!=="false"),h(9),I(n.isSystemReady?-1:23),h(),I(n.isSystemReady?24:-1))},dependencies:[_r,be,wn,Pe,Ne]})};function fx(t,e){t&1&&v(0,"lnf-optimization-image-supervised")}function px(t,e){t&1&&v(0,"lnf-optimization-image-bulk")}function hx(t,e){t&1&&v(0,"lnf-optimization-image-settings")}var Tc=class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-home"]],standalone:!0,features:[j],decls:18,vars:1,consts:[["nav","ngbNav"],[1,"container-fluid","p-1"],[1,"row"],[1,"col"],["ngbNav","",1,"nav-tabs","border-0"],["ngbNavItem","",1,"mb-0"],["ngbNavLink",""],["ngbNavContent",""],[1,"border","p-1",3,"ngbNavOutlet"]],template:function(i,n){if(i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4,0)(5,"li",5)(6,"button",6),f(7,"Supervised Optimization"),u(),S(8,fx,1,0,"ng-template",7),u(),c(9,"li",5)(10,"button",6),f(11,"Bulk Optimization"),u(),S(12,px,1,0,"ng-template",7),u(),c(13,"li",5)(14,"button",6),f(15,"Settings"),u(),S(16,hx,1,0,"ng-template",7),u()(),v(17,"div",8),u()()()),i&2){let o=fr(4);h(17),A("ngbNavOutlet",o)}},dependencies:[Rr,Ps,Oo,Nr,_c,vc,Ar,yc,kr,Fr,Pr]})};function mx(t,e){t&1&&v(0,"lnf-optimization-image-home")}var Ic=class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-home"]],standalone:!0,features:[j],decls:10,vars:1,consts:[["nav","ngbNav"],[1,"container-fluid","p-1"],[1,"row"],[1,"col"],["ngbNav","",1,"nav-tabs","border-0"],["ngbNavItem","",1,"mb-0"],["ngbNavLink",""],["ngbNavContent",""],[1,"border","p-1",3,"ngbNavOutlet"]],template:function(i,n){if(i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4,0)(5,"li",5)(6,"button",6),f(7,"Image Optimization"),u(),S(8,mx,1,0,"ng-template",7),u()(),v(9,"div",8),u()()()),i&2){let o=fr(4);h(9),A("ngbNavOutlet",o)}},dependencies:[Rr,Ps,Oo,Nr,_c,vc,Ar,yc,Tc]})};var Vi=class t{constructor(e){this.http=e;this.checkRegistration()}subscription={registered:!1,id:"",origin:"",email:"",licenseValidUntil:"",emailVerified:!1,licenseValid:!1};rUrl=`${Xl}/subscriber`;checkSubscription=()=>E(this,null,function*(){let e=yield K(this.http.post(`${this.rUrl}/verify`,{})).catch(console.error);return console.log(e),e});checkRegistration=()=>E(this,null,function*(){try{this.subscription=yield K(this.http.get(`${this.rUrl}/check-registration`))}catch(e){console.error(e)}});tempExtend=()=>E(this,null,function*(){yield K(this.http.get(`${this.rUrl}/temp-extend`))});register=e=>E(this,null,function*(){return yield K(this.http.post(`${this.rUrl}/register`,{email:e}))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Hp=(t,e)=>e.name,gx=()=>[];function _x(t,e){if(t&1){let i=U();c(0,"li",12),C("click",function(){M(i);let o=y().$implicit,r=y(7);return T(r.nS.sCP(o.link||"home"))}),c(1,"span",14),v(2,"i",15),u(),f(3),u()}if(t&2){let i=y().$implicit;h(3),B(" ",i.name," ")}}function vx(t,e){if(t&1&&S(0,_x,4,1,"li",11),t&2){let i=e.$implicit,n=y(7);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function yx(t,e){if(t&1&&(c(0,"ul",13),ee(1,vx,1,1,null,null,Hp),u()),t&2){let i=y(2).$implicit;h(),te(i.children)}}function Cx(t,e){t&1&&v(0,"br")}function bx(t,e){if(t&1){let i=U();c(0,"strong",12),C("click",function(){M(i);let o=y().$implicit,r=y(4);return T(r.nS.sCP(o.link||"home"))}),f(1),u(),S(2,yx,3,0,"ul",13)(3,Cx,1,0,"br")}if(t&2){let i=y().$implicit;h(),J(i.name),h(),I(i.children?2:3)}}function Dx(t,e){if(t&1&&S(0,bx,4,2),t&2){let i=e.$implicit,n=y(4);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function wx(t,e){if(t&1){let i=U();c(0,"strong",12),C("click",function(){M(i);let o=y(2).$implicit,r=y(2);return T(r.nS.sCP(o.link||"home"))}),f(1),u()}if(t&2){let i=y(2).$implicit;h(),J(i.name)}}function Ex(t,e){t&1&&(c(0,"strong",11),f(1,"Coming soon, stay tuned"),u())}function Sx(t,e){if(t&1){let i=U();c(0,"div",7)(1,"div",8)(2,"h5",9),C("click",function(){M(i);let o=y().$implicit,r=y(2);return T(r.nS.sCP(o.link||"home"))}),f(3),u(),c(4,"div",10),ee(5,Dx,1,1,null,null,Hp),S(7,wx,2,1,"strong",11)(8,Ex,2,0,"strong",11),u()()()}if(t&2){let i=y().$implicit;h(3),B(" ",i.name," "),h(2),te(i.children||pr(3,gx)),h(2),I(!i.children&&!i.isComingSoon?7:-1),h(),I(!i.children&&i.isComingSoon?8:-1)}}function Mx(t,e){if(t&1&&S(0,Sx,9,4,"div",7),t&2){let i=e.$implicit,n=y(2);I((i.isPro&&n.sS.subscription.licenseValid||!i.isPro)&&i.link!=="home"?0:-1)}}function Tx(t,e){if(t&1){let i=U();c(0,"div",6)(1,"div",8)(2,"h5",16),f(3,"Go Pro"),u(),c(4,"div",10),f(5," LuckyNode is a dynamic and evolving WordPress plugin, offering essential tools to enhance your website's performance and management. Currently, LuckyNode provides Image Optimization as a free feature, helping you reduce file sizes and improve load times effortlessly. For users looking to extend their site's capabilities, we offer a CRM feature as part of our paid, pro version\u2014perfect for managing customer relationships and streamlining business operations. As we continue to develop LuckyNode, new functionalities are regularly added to meet the growing needs of our users, ensuring that your WordPress site remains powerful and efficient. "),v(6,"br")(7,"br"),c(8,"strong"),f(9,"Unlock More with LuckyNode Pro!"),u(),f(10," Take your website to the next level with advanced features like our powerful CRM tool. Manage your customer relationships, streamline your workflow, and enjoy priority support. Upgrade to Pro now and experience the full potential of LuckyNode! "),v(11,"br")(12,"br"),c(13,"button",17),C("click",function(){M(i);let o=y(2);return T(o.nS.sCP("subscription-home"))}),f(14,"Go Pro Now"),u()()()()}}function Ix(t,e){if(t&1&&(c(0,"div",5),ee(1,Mx,1,1,null,null,Hp),S(3,Tx,15,0,"div",6),u()),t&2){let i=y();h(),te(i.nS.links),h(2),I(i.sS.subscription.licenseValid?-1:3)}}var xc=class t{constructor(e,i){this.nS=e;this.sS=i}static \u0275fac=function(i){return new(i||t)(w(we),w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-home"]],standalone:!0,features:[j],decls:10,vars:1,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"row","mt-0"],[1,"row","my-3"],[1,"col"],[1,"col","mb-3"],[1,"card"],[1,"card-header","text-light","fw-bold","bg-secondary","ptr",3,"click"],[1,"card-body"],[1,"ptr"],[1,"ptr",3,"click"],[1,"fa-ul","mt-3","ms-4"],[1,"fa-li"],[1,"fas","fa-chevron-right"],[1,"card-header","text-light","fw-bold","bg-secondary"],["type","button",1,"btn","btn-sm","btn-secondary","ms-auto","my-auto",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Welcome to LuckyNode Plugin"),u(),c(5,"div",3),f(6,"\xA0"),u()()(),c(7,"div",4),v(8,"hr"),u(),S(9,Ix,4,1,"div",5),u()),i&2&&(h(9),I(n.sS.subscription.origin?9:-1))}})};var Oc=class t{constructor(e){this.http=e}makeRequest=()=>E(this,null,function*(){let e=yield K(this.http.get("http://localhost:3000")).catch(console.error);console.log({result:e})});static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-ai-content-settings"]],standalone:!0,features:[j],decls:11,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],["type","button",1,"btn","btn-secondary","btn-sm",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"AI Content Generation Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"button",5),C("click",function(){return n.makeRequest()}),f(10,"Let's try"),u()()()())},dependencies:[be]})};function xx(t,e){t&1&&f(0,"(Verified, thank you.)")}function Ox(t,e){t&1&&f(0,"(Pending verification. Please check your inbox.)")}function Nx(t,e){if(t&1&&(f(0),Qt(1,"date")),t&2){let i=y(3);B(" Your license is valid until ",Al(1,1,i.sS.subscription.licenseValidUntil,"medium"),". ")}}function Ax(t,e){if(t&1){let i=U();f(0," You currently don't have a valid license. "),v(1,"br"),f(2," Until further notice you can extend your subscription for free. "),v(3,"br"),c(4,"button",9),C("click",function(){M(i);let o=y(3);return T(o.extend())}),f(5,"Extend"),u()}}function Rx(t,e){if(t&1&&(c(0,"div",8)(1,"strong"),f(2,"Domain:"),u(),f(3),v(4,"br"),c(5,"strong"),f(6,"Registered Email Address:"),u(),f(7),S(8,xx,1,0)(9,Ox,1,0),v(10,"br")(11,"br")(12,"hr"),c(13,"strong"),f(14,"License Status:"),u(),S(15,Nx,2,4)(16,Ax,6,0),v(17,"br"),u()),t&2){let i=y(2);h(3),B(" ",i.sS.subscription.origin," "),h(4),B(" ",i.sS.subscription.email," "),h(),I(i.sS.subscription.emailVerified?8:9),h(7),I(i.sS.subscription.licenseValid?15:16)}}function kx(t,e){if(t&1){let i=U();c(0,"form",10),C("ngSubmit",function(){M(i);let o=y(2);return T(o.register())}),c(1,"div",7)(2,"div",11)(3,"label",12),f(4,"Valid Email Address"),u(),c(5,"input",13),k("ngModelChange",function(o){M(i);let r=y(2);return F(r.email,o)||(r.email=o),T(o)}),u()()(),c(6,"div",14)(7,"button",15),v(8,"i",16),f(9,"Register "),u()()()}if(t&2){let i=y(2);h(5),R("ngModel",i.email)}}function Fx(t,e){if(t&1&&S(0,Rx,18,4,"div",8)(1,kx,10,1,"form"),t&2){let i=y();I(i.sS.subscription.registered===!0?0:1)}}function Px(t,e){t&1&&(c(0,"div",7),f(1," Checking registaration status. Please wait. "),u())}var Nc=class t{constructor(e){this.sS=e}registrationResult=void 0;subscriptionChecked=!1;email="";ngOnInit(){return E(this,null,function*(){this.checkRegistration()})}extend=()=>E(this,null,function*(){yield this.sS.tempExtend(),this.checkRegistration()});checkRegistration=()=>E(this,null,function*(){yield this.sS.checkRegistration(),this.subscriptionChecked=!0,this.sS.subscription.email&&!this.sS.subscription.emailVerified&&setTimeout(()=>{this.checkRegistration()},3e3)});register=()=>E(this,null,function*(){this.registrationResult=yield this.sS.register(this.email)});static \u0275fac=function(i){return new(i||t)(w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-subscription-home"]],standalone:!0,features:[j],decls:14,vars:2,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"card-body","d-flex"],[1,"card-body"],["type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[3,"ngSubmit"],[1,"mb-3","w-100"],["for","email",1,"form-label"],["type","email","name","email","id","email",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto"],[1,"fas","fa-user-plus","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"My Subscription"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"div",5)(10,"h5",6),f(11," Your Registration Information "),u(),S(12,Fx,2,1)(13,Px,2,0,"div",7),u()()()()),i&2&&(h(12),I(n.subscriptionChecked?12:-1),h(),I(n.subscriptionChecked?-1:13))},dependencies:[be,tn,it,Pe,en,Ne,Lt,Wl]})};var Ac=class t{constructor(e){this.nS=e}static \u0275fac=function(i){return new(i||t)(w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-home"]],standalone:!0,features:[j],decls:22,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"fa-ul","mt-3","ms-4"],[1,"ptr",3,"click"],[1,"fa-li"],[1,"fas","fa-chevron-right"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"ul",5)(10,"li",6),C("click",function(){return n.nS.sCP("crm-campaigns")}),c(11,"span",7),v(12,"i",8),u(),f(13,"Campaigns"),u(),c(14,"li",6),C("click",function(){return n.nS.sCP("crm-explorer")}),c(15,"span",7),v(16,"i",8),u(),f(17,"Explorer"),u(),c(18,"li",6),C("click",function(){return n.nS.sCP("crm-settings")}),c(19,"span",7),v(20,"i",8),u(),f(21,"Settings"),u()()()()())}})};var Ye=class t{constructor(e){this.http=e}url=`${Be}/database`;insert=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"insert"},e))).catch(console.error)});update=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"update"},e))).catch(console.error)});delete=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"delete"},e))).catch(console.error)});selectAll=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"selectAll"},e))).catch(console.error)});insertTask=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"insertTask"},e))).catch(console.error)});campaignMails=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"campaignMails"},e))).catch(console.error)});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var je=class t{constructor(e,i){this.http=e;this.dbS=i;this.populate()}settingsUrl=`${Be}/crm/settings`;crmSettings=null;populate=(e=!1)=>E(this,null,function*(){yield Promise.all([this.populateSettings(e),this.populateEmailTemplates(),this.populateCampaigns()])});populateSettings=(e=!1)=>E(this,null,function*(){(this.crmSettings===null||e)&&(this.crmSettings=(yield K(this.http.get(this.settingsUrl)).catch(console.error))||null)});saveSettings=()=>E(this,null,function*(){yield K(this.http.post(this.settingsUrl,this.crmSettings))});currentEmailTemplate="";emailTemplates=new Map;populateEmailTemplates=()=>E(this,null,function*(){this.emailTemplates.clear();for(let e of((yield this.dbS.selectAll({type:"email-template"}).catch(console.error))||[]).sort(Mc))this.emailTemplates.set(e.id,e)});testEmailTemplate=e=>E(this,null,function*(){let i=`${Be}/crm/email-template/test`,n=(yield K(this.http.post(i,{id:e})).catch(console.error))||null;console.log(n)});contacts=new Map;currentContact="";populateContacts=()=>E(this,null,function*(){this.contacts.clear();for(let e of((yield this.dbS.selectAll({type:"contact"}).catch(console.error))||[]).sort(Mc))this.contacts.set(e.id,e)});currentCampaign="";campaigns=new Map;populateCampaigns=()=>E(this,null,function*(){this.campaigns.clear();for(let e of((yield this.dbS.selectAll({type:"campaign"}).catch(console.error))||[]).sort(Mc))this.campaigns.set(e.id,e)});static \u0275fac=function(i){return new(i||t)(H(Ve),H(Ye))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function Lx(t,e){if(t&1){let i=U();c(0,"form",5),C("ngSubmit",function(){M(i);let o=y();return T(o.crmS.saveSettings())}),c(1,"div",6)(2,"h5",7),f(3," General Settings "),u(),c(4,"div",8)(5,"div",9)(6,"label",10),f(7,"Google Maps API Key"),u(),c(8,"input",11),k("ngModelChange",function(o){M(i);let r=y();return F(r.crmS.crmSettings.googleAPIKey,o)||(r.crmS.crmSettings.googleAPIKey=o),T(o)}),u(),c(9,"div",12),f(10," LuckyNode CRM uses Google Maps API in the explorer functionality. "),v(11,"br"),f(12," You should be activating Google Places API (New) on Google Cloud Console "),v(13,"br"),f(14," and defining an API key to paste in this field. "),u()(),c(15,"div",9)(16,"label",13),f(17,"Daily Automated Mail Sending Limit"),u(),c(18,"input",14),k("ngModelChange",function(o){M(i);let r=y();return F(r.crmS.crmSettings.smtpDailyLimit,o)||(r.crmS.crmSettings.smtpDailyLimit=o),T(o)}),u(),c(19,"div",15),f(20," Some of the mail sending services endorse a daily sending limit. "),v(21,"br"),f(22," This is the place where you can limit LuckyNode CRM to obey those limits. "),u()()(),c(23,"div",16)(24,"button",17),v(25,"i",18),f(26,"Save Settings "),u()()()()}if(t&2){let i=y();h(8),R("ngModel",i.crmS.crmSettings.googleAPIKey),h(10),R("ngModel",i.crmS.crmSettings.smtpDailyLimit)}}var Rc=class t{constructor(e){this.crmS=e}static \u0275fac=function(i){return new(i||t)(w(je))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-settings"]],standalone:!0,features:[j],decls:10,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[3,"ngSubmit"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"card-body"],[1,"mb-3"],["for","gapikey",1,"form-label"],["type","text","name","gapikey","id","gapikey",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","gapiHelp",1,"form-text"],["for","smtplimit",1,"form-label"],["type","number","name","smtplimit","id","smtplimit",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","smtpHelp",1,"form-text"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto"],[1,"fas","fa-save","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),S(9,Lx,27,2,"form"),u()()()),i&2&&(h(9),I(n.crmS.crmSettings?9:-1))},dependencies:[be,tn,it,bo,Pe,en,Ne,Lt]})};var Vx=(t,e)=>e.id;function Bx(t,e){if(t&1){let i=U();c(0,"i",14),C("click",function(){M(i);let o=y().$implicit,r=y();return T(r.delete(o.id))}),u()}}function jx(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),Qt(5,"titlecase"),u(),c(6,"td",9)(7,"i",11),C("click",function(){let o=M(i).$implicit,r=y();return T(r.edit(o.id))}),u(),S(8,Bx,1,0,"i",12),c(9,"i",13),C("click",function(){let o=M(i).$implicit,r=y();return T(r.stats(o.id))}),u()()()}if(t&2){let i=e.$implicit;h(2),J(i.value.name||"No Name Given"),h(2),B(" ",Ti(5,3,i.value.status||"Pending")," "),h(4),I(i.value.status==="pending"?8:-1)}}var kc=class t{constructor(e,i,n,o){this.nS=e;this.dbS=i;this.crmS=n;this.uS=o}ngOnInit(){this.crmS.populateCampaigns()}edit=e=>{this.crmS.currentCampaign=e,this.nS.sCP("crm-campaign")};stats=e=>{this.crmS.currentCampaign=e,this.nS.sCP("crm-campaign-stats")};delete=e=>E(this,null,function*(){try{if(yield this.uS.confirm("Are you sure?","Delete campaign","Yes","Cancel")){let i=yield this.dbS.delete({id:e}).catch(n=>{console.log("This is database delete error"),console.error(n)});console.log({result:i}),yield this.crmS.populateCampaigns()}}catch(i){console.log("this is parent error"),console.error(i)}});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(je),w(un))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign-list"]],standalone:!0,features:[j],decls:23,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"],[1,"sticky-top","border"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"fas","fa-pen-to-square","ptr",3,"click"],[1,"fas","fa-trash","ptr","ms-2","text-danger"],[1,"fas","fa-chart-column","ptr","ms-2",3,"click"],[1,"fas","fa-trash","ptr","ms-2","text-danger",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Campaigns"),u(),c(5,"button",3),C("click",function(){return n.nS.sCP("crm-campaign")}),f(6,"New Campaign"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead",8)(13,"tr")(14,"th"),f(15,"Name"),u(),c(16,"th"),f(17,"Status"),u(),c(18,"th",9),v(19,"i",10),u()()(),c(20,"tbody"),ee(21,jx,10,5,"tr",null,Vx),u()()()()()),i&2&&(h(21),te(n.crmS.campaigns.values()))},dependencies:[vr]})};var xt=class t{constructor(e){this.http=e;this.populateCountries()}rUrl=`${Xl}/geography`;search=e=>E(this,null,function*(){return K(this.http.post(`${this.rUrl}/search`,{phrase:e}))});countCities=(e,i)=>E(this,null,function*(){return K(this.http.post(`${this.rUrl}/city-count`,{type:e,id:i}))});countries=new Map;populatingO=!1;populateCountries=()=>E(this,null,function*(){if(!(this.countries.size>0||this.populatingO)){this.populatingO=!0;for(let e of(yield K(this.http.get(`${this.rUrl}/countries`)).catch(console.error))||[])typeof e.id=="number"&&(e.id=e.id.toString()),this.countries.set(e.id,e);this.populatingO=!1}});getStates=e=>E(this,null,function*(){let i=new Map;for(let n of(yield K(this.http.post(`${this.rUrl}/states`,{country:e})).catch(console.error))||[])typeof n.id=="number"&&(n.id=n.id.toString()),i.set(n.id,n);return i});getCities=(e,i)=>E(this,null,function*(){let n=new Map;for(let o of(yield K(this.http.post(`${this.rUrl}/cities`,{country:e,state:i})).catch(console.error))||[])typeof o.id=="number"&&(o.id=o.id.toString()),n.set(o.id,o);return n});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Fc=(t,e)=>e.id;function Ux(t,e){if(t&1){let i=U();c(0,"button",30),C("click",function(){M(i);let o=y().$index,r=y();return T(r.removeGPText(o))}),v(1,"i",31),u()}}function Hx(t,e){if(t&1){let i=U();c(0,"div",14)(1,"span",27),f(2,"Phrase: "),u(),c(3,"input",28),k("ngModelChange",function(o){let r=M(i).$index,s=y();return F(s.gpTexts[r],o)||(s.gpTexts[r]=o),T(o)}),u(),S(4,Ux,2,0,"button",29),u()}if(t&2){let i=e.$index,n=y();h(3),ni("name","gpText",n.gpTexts[i],""),ni("id","gpText",n.gpTexts[i],""),R("ngModel",n.gpTexts[i]),h(),I(n.gpTexts.length>1?4:-1)}}function zx(t,e){t&1&&v(0,"i",24)}function $x(t,e){t&1&&v(0,"i",25)}function Gx(t,e){if(t&1){let i=U();c(0,"button",37),C("click",function(){let o=M(i).$implicit,r=y(2);return T(r.add("country",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (",i.path,")")}}function Wx(t,e){if(t&1){let i=U();c(0,"button",37),C("click",function(){let o=M(i).$implicit,r=y(2);return T(r.add("state",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (@",i.path,")")}}function Yx(t,e){if(t&1){let i=U();c(0,"button",37),C("click",function(){let o=M(i).$implicit,r=y(2);return T(r.add("city",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (@",i.path,")")}}function qx(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),Qt(3,"titlecase"),u(),c(4,"td"),f(5),Qt(6,"titlecase"),u(),c(7,"td",35),f(8),u(),c(9,"td",38)(10,"i",39),C("click",function(){let o=M(i).$implicit,r=y(2);return T(r.remove(o.id))}),u()()()}if(t&2){let i=e.$implicit;h(2),J(Ti(3,3,i.type)),h(3),J(Ti(6,5,i.name)),h(3),J(i.cityCount)}}function Kx(t,e){if(t&1&&(c(0,"div",5)(1,"div",32)(2,"div",11)(3,"h5",8),f(4,"Geography Search Results"),u(),c(5,"div",9),ee(6,Gx,2,2,"button",33,Fc),ee(8,Wx,2,2,"button",33,Fc),ee(10,Yx,2,2,"button",33,Fc),u()()(),c(12,"div",32)(13,"div",11)(14,"h5",8),f(15,"Geography Selections"),u(),c(16,"div",9)(17,"table",34)(18,"thead")(19,"tr")(20,"th"),f(21,"Type"),u(),c(22,"th"),f(23,"Name"),u(),c(24,"th",35),f(25,"# Cities"),u(),c(26,"th"),f(27,"\xA0"),u()()(),c(28,"tbody"),ee(29,qx,11,7,"tr",null,Fc),c(31,"tr")(32,"td"),f(33,"\xA0"),u(),c(34,"th",36),f(35,"Total Number of Cities to Explore"),u(),c(36,"td",35),f(37),u(),c(38,"td"),f(39,"\xA0"),u()()()()()()()()),t&2){let i=y();h(6),te(i.searchResult.countries),h(2),te(i.searchResult.states),h(2),te(i.searchResult.cities),h(19),te(i.selections),h(8),J(i.totalCities)}}var Pc=class t{constructor(e,i,n,o){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o}searchResult=null;searchPhrase="";searching=!1;selections=[];totalCities=0;gpTexts=[""];areWeReadyToSave=!1;name="";checkReadinessToSave=()=>{if(this.areWeReadyToSave=!0,this.name.length<3){this.areWeReadyToSave=!1;return}if(this.selections.length===0){this.areWeReadyToSave=!1;return}if(this.totalCities===0){this.areWeReadyToSave=!1;return}if(parseInt(this.gpTexts.map(i=>i.length.toString()).join(""),0)===0){this.areWeReadyToSave=!1;return}};search=()=>E(this,null,function*(){this.searchResult=null,this.searching=!0,this.searchResult=yield this.gS.search(this.searchPhrase),this.cleanUp(),this.searching=!1});addGPText=()=>{this.gpTexts.push(""),this.checkReadinessToSave()};removeGPText=e=>{this.gpTexts.splice(e,1),this.checkReadinessToSave()};add=(e,i,n)=>{let o={type:e,id:i,name:n,cityCount:0};e!=="city"?this.gS.countCities(e,i).then(r=>{o.cityCount=r.count,this.calculateTotal()}):o.cityCount=1,this.selections.push(o),this.cleanUp(),this.calculateTotal(),this.checkReadinessToSave()};remove=e=>{this.selections=this.selections.filter(i=>i.id!==e),this.cleanUp(),this.calculateTotal(),this.checkReadinessToSave()};calculateTotal=()=>{this.totalCities=0;for(let e of this.selections)this.totalCities+=e.cityCount;this.checkReadinessToSave()};cleanUp=()=>{if(this.searchResult)for(let e of this.selections)this.searchResult.countries=this.searchResult.countries.filter(i=>i.id!==e.id),this.searchResult.states=this.searchResult.states.filter(i=>i.id!==e.id),this.searchResult.cities=this.searchResult.cities.filter(i=>i.id!==e.id);this.checkReadinessToSave()};creating=!1;create=()=>E(this,null,function*(){this.creating=!0;let e={name:this.name,gpTexts:this.gpTexts,selections:this.selections};console.log(e);let i=yield this.dbS.insert({type:"exploration",value:e});console.log(i),this.creating=!1,this.nS.sCP("crm-explore-list")});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-explorer"]],standalone:!0,features:[j],decls:54,vars:6,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"row","mt-0"],[1,"row"],[1,"col-4"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["type","text","name","name","id","name",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],[1,"card"],[1,"mb-3"],[1,"form-label"],[1,"input-group","input-group-sm","mb-2"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["id","gpTextHelp",1,"form-text"],[1,"col-8","mb-3"],[3,"ngSubmit"],["for","phrase",1,"form-label"],["type","text","name","phrase","id","phrase",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","phraseHelp",1,"form-text"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click","disabled"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"fas","fa-magnifying-glass-location","me-2"],[1,"container-fluid","mx-0","px-0"],[1,"input-group-text"],["type","text",1,"form-control","form-control-sm",3,"ngModelChange","name","id","ngModel"],["type","button",1,"btn","btn-outline-secondary"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-trash"],[1,"col","py-3"],["type","button",1,"btn","btn-sm","btn-outline-secondary","me-2","mb-2"],[1,"table","table-sm","table-striped","table-bordered"],[1,"text-end"],["scope","row"],["type","button",1,"btn","btn-sm","btn-outline-secondary","me-2","mb-2",3,"click"],[1,"text-center"],[1,"fas","fa-trash","text-danger","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Explorer"),u(),c(5,"button",3),C("click",function(){return n.create()}),f(6,"Create Explore"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"div",7)(12,"h5",8),f(13,"Name"),u(),c(14,"div",9)(15,"input",10),k("ngModelChange",function(r){return F(n.name,r)||(n.name=r),r}),u()()(),c(16,"div",11)(17,"h5",8),f(18,"What are you looking for?"),u(),c(19,"div",9)(20,"div",12)(21,"label",13),f(22,"Google Places Search Phrase"),u(),ee(23,Hx,5,6,"div",14,Yt),c(25,"button",15),C("click",function(){return n.addGPText()}),f(26,"Add Search Phrase"),u(),c(27,"div",16),f(28," These are the phrases we will be searching for you in Google Places API according to the entries you will make in the geographic search. "),v(29,"br"),f(30,' e.g. If you enter "Dentist" in this field and select city of Dubai, we will search for "Dentist in Dubai" for you. '),v(31,"br"),f(32,' or, if you select "United Kingdom (whole country)", we will make a similar search to above for each city in the UK for you. '),v(33,"br"),f(34," As you search for geographies below, we will let you know how many cities exist within a geography you select as well as the total number of cities. "),u()()()()(),c(35,"div",17)(36,"div",11)(37,"form",18),C("ngSubmit",function(){return n.search()}),c(38,"h5",8),f(39,"Search Geographic Targes"),u(),c(40,"div",9)(41,"div",12)(42,"label",19),f(43,"Please enter country/state/city"),u(),c(44,"input",20),k("ngModelChange",function(r){return F(n.searchPhrase,r)||(n.searchPhrase=r),r}),u(),c(45,"div",21),f(46,"Please note; LuckyNode will find your targets city by city, so adding a whole country/state will mean that there will be many steps in the explore phase."),u()()(),c(47,"div",22)(48,"button",23),C("click",function(){return n.search()}),S(49,zx,1,0,"i",24)(50,$x,1,0,"i",25),f(51," Search "),u()()()(),c(52,"div",26),S(53,Kx,40,1,"div",5),u()()()()),i&2&&(h(5),A("disabled",!n.areWeReadyToSave||n.creating),h(10),R("ngModel",n.name),h(8),te(n.gpTexts),h(21),R("ngModel",n.searchPhrase),h(4),A("disabled",n.searching||n.searchPhrase.length<3),h(),I(n.searching?49:50),h(4),I(n.searchResult?53:-1))},dependencies:[be,tn,it,Pe,en,Ne,Lt,vr]})};var Lc=class t{constructor(e){this.nS=e}static \u0275fac=function(i){return new(i||t)(w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-home"]],standalone:!0,features:[j],decls:14,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"fa-ul","mt-3","ms-4"],[1,"ptr",3,"click"],[1,"fa-li"],[1,"fas","fa-chevron-right"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Maintenance"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"ul",5)(10,"li",6),C("click",function(){return n.nS.sCP("maintenance-cron")}),c(11,"span",7),v(12,"i",8),u(),f(13,"Cron Setup"),u()()()()())}})};var Bi=class t{constructor(e){this.http=e}mailgunSettings=null;url=`${Be}/maintenance`;mailgunSettingsUrl=`${Be}/maintenance/mailgun/settings`;cronCheck=()=>K(this.http.get(`${this.url}/cron-check`));cronFixDisableCron=()=>K(this.http.get(`${this.url}/cron-fix-disable-cron`));cronFixMissingCrontab=()=>K(this.http.get(`${this.url}/cron-fix-missing-crontab`));populateMailgunSettings=(e=!1)=>E(this,null,function*(){(this.mailgunSettings===null||e)&&(this.mailgunSettings=(yield K(this.http.get(this.mailgunSettingsUrl)).catch(console.error))||null)});saveMailgunSettings=()=>E(this,null,function*(){yield K(this.http.post(this.mailgunSettingsUrl,this.mailgunSettings))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Zx=()=>[];function Qx(t,e){t&1&&(f(0,` This value should be "true", let's fix it. `),v(1,"br"))}function Jx(t,e){t&1&&(v(0,"i",12),f(1," Fixing, please wait... "))}function Xx(t,e){t&1&&f(0," Fix This ")}function eO(t,e){if(t&1){let i=U();c(0,"button",11),C("click",function(){M(i);let o=y(2);return T(o.fixDisableCron())}),S(1,Jx,2,0)(2,Xx,1,0),u()}if(t&2){let i=y(2);A("disabled",i.fixingDisableCron),h(),I(i.fixingDisableCron?1:2)}}function tO(t,e){t&1&&(c(0,"button",9),f(1," All good. Nothing to do here. "),u()),t&2&&A("disabled",!0)}function nO(t,e){t&1&&v(0,"i",13)}function iO(t,e){if(t&1&&(c(0,"pre"),f(1),S(2,nO,1,0,"i",13),u()),t&2){let i=e.$implicit,n=y(3);h(),B("",i," "),h(),I(i===n.expectedCrontab?2:-1)}}function oO(t,e){t&1&&(f(0," We found the exact crontab we were looking for. Good job. "),v(1,"br"))}function rO(t,e){if(t&1&&(f(0," We couldn't find the exact crontab we were looking for. Which is:"),v(1,"br"),c(2,"pre"),f(3),u(),f(4," If you don't see an equivalent crontab in the list, or you don't have another method that runs this cron job. Please fix it using the button below: ")),t&2){let i=y(3);h(3),J(i.expectedCrontab)}}function sO(t,e){t&1&&(v(0,"i",12),f(1," Fixing, please wait... "))}function aO(t,e){t&1&&f(0," Fix This ")}function lO(t,e){if(t&1){let i=U();c(0,"button",11),C("click",function(){M(i);let o=y(3);return T(o.fixCronTab())}),S(1,sO,2,0)(2,aO,1,0),u()}if(t&2){let i=y(3);A("disabled",i.fixingCronTab),h(),I(i.fixingCronTab?1:2)}}function cO(t,e){t&1&&(c(0,"button",9),f(1," All good. Nothing to do here. "),u()),t&2&&A("disabled",!0)}function uO(t,e){if(t&1&&(c(0,"div",10)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Cronjobs Defined on the Server"),u(),c(5,"div",7),f(6," Below you can see crontab entries on your server: "),v(7,"hr"),ee(8,iO,3,2,"pre",null,Yt),v(10,"hr"),S(11,oO,2,0,"br")(12,rO,5,1),u(),c(13,"div",8),S(14,lO,3,2,"button",9)(15,cO,2,1,"button",9),u()()()()),t&2){let i=y(2);h(8),te(i.cronCR.crons||pr(2,Zx)),h(3),I(i.foundCrontab===!0?11:12),h(3),I(i.foundCrontab?15:14)}}function dO(t,e){if(t&1&&(c(0,"div",10)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Cron Job Setup"),u(),c(5,"div",7)(6,"strong"),f(7,"As soon as you register your domain with LuckyNode ecosystem, we start to send 1 cron calls per minute to your site."),u(),v(8,"hr"),f(9," So you are all covered here. "),v(10,"br")(11,"br"),f(12," Alternativetly if you would like to also run a local cron job on your server, "),v(13,"br"),f(14," below crontab entry should serve you well: "),v(15,"br"),c(16,"pre"),f(17),u()()()()()),t&2){let i=y(2);h(17),J(i.expectedCrontab)}}function fO(t,e){if(t&1&&(c(0,"div",4)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Wordpress Config for Cron"),u(),c(5,"div",7),f(6," Below you can see DISABLE_WP_CRON value of your Wordpress configuration: "),v(7,"hr"),c(8,"pre"),f(9),u(),v(10,"hr"),S(11,Qx,2,0,"br"),u(),c(12,"div",8),S(13,eO,3,2,"button",9)(14,tO,2,1,"button",9),u()()()(),S(15,uO,16,3,"div",10)(16,dO,18,1,"div",10)),t&2){let i=y();h(9),B("DISABLE_WP_CRON = ",i.cronCR.DISABLE_WP_CRON,""),h(2),I(i.cronCR.DISABLE_WP_CRON===!1?11:-1),h(2),I(i.cronCR.DISABLE_WP_CRON===!1?13:14),h(2),I(i.canExec?15:16)}}var Vc=class t{constructor(e){this.mS=e}cronCR=null;expectedCrontab="";expectedCrontabUrl="";foundCrontab=!1;canExec=!1;ngOnInit(){this.checkCron()}checkCron=()=>E(this,null,function*(){this.cronCR=yield this.mS.cronCheck(),this.expectedCrontab=`* * * * * curl ${this.cronCR.siteURL}/wp-cron.php?doing_wp_cron >/dev/null 2>&1`,this.expectedCrontabUrl=`${this.cronCR.siteURL}/wp-cron.php?doing_wp_cron`,this.foundCrontab=!1,Array.isArray(this.cronCR.crons)&&(this.canExec=!0);for(let e of this.cronCR.crons)e===this.expectedCrontab&&(this.foundCrontab=!0)});fixingCronTab=!1;fixCronTab=()=>E(this,null,function*(){this.fixingCronTab=!1,yield this.mS.cronFixMissingCrontab(),yield this.checkCron(),setTimeout(()=>E(this,null,function*(){yield this.checkCron(),this.fixingCronTab=!1}),3e3)});fixingDisableCron=!1;fixDisableCron=()=>E(this,null,function*(){this.fixingDisableCron=!0,yield this.mS.cronFixDisableCron(),yield this.checkCron(),setTimeout(()=>E(this,null,function*(){yield this.checkCron(),this.fixingDisableCron=!1}),3e3)});static \u0275fac=function(i){return new(i||t)(w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-cron"]],standalone:!0,features:[j],decls:8,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"card-footer","border-top","d-flex"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"disabled"],[1,"row","py-3"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click","disabled"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"far","fa-square-check"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Cron Setup"),u()()(),c(5,"div",3),v(6,"hr"),u(),S(7,fO,17,4),u()),i&2&&(h(7),I(n.cronCR?7:-1))}})};var pO=(t,e)=>e.id;function hO(t,e){if(t&1&&f(0),t&2){let i=y().$implicit;B("",i.explorePercentage,"%")}}function mO(t,e){if(t&1&&(c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),Qt(7,"titlecase"),S(8,hO,1,1),u()()),t&2){let i=e.$implicit;h(2),J(i.id),h(2),J((i.value==null?null:i.value.name)||"No Name Given"),h(2),B(" ",Ti(7,4,(i.value==null?null:i.value.status)||"Pending")," "),h(2),I((i.value==null?null:i.value.status)==="Exploring"?8:-1)}}var Bc=class t{constructor(e,i,n,o){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o}explorations=null;interval;ngOnInit(){this.getAll(),this.interval=setInterval(this.getAll,5e3)}ngOnDestroy(){clearInterval(this.interval)}getAll=()=>E(this,null,function*(){this.explorations=yield this.dbS.selectAll({type:"exploration"});for(let e of this.explorations){e.countAll=(e.value.combinations||[]).length,e.countDone=0;for(let i of e.value.combinations||[])i.done&&e.countDone++;e.countAll&&(e.explorePercentage=(e.countDone/e.countAll*100).toFixed(2))}});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-explore-list"]],standalone:!0,features:[j],decls:23,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Explore List"),u(),c(5,"button",3),C("click",function(){return n.nS.sCP("crm-explorer")}),f(6,"New Exploration"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead")(13,"tr")(14,"th"),f(15,"#"),u(),c(16,"th"),f(17,"Name"),u(),c(18,"th"),f(19,"Status"),u()()(),c(20,"tbody"),ee(21,mO,9,6,"tr",null,pO),u()()()()()),i&2&&(h(21),te(n.explorations))},dependencies:[be,vr]})};var gO=(t,e)=>e.id;function _O(t,e){if(t&1&&v(0,"img",16),t&2){let i=y().$implicit;A("src",i.value.avatar,Bn)}}function vO(t,e){t&1&&(c(0,"div",17),v(1,"i",24),u())}function yO(t,e){t&1&&(c(0,"button",18),v(1,"i",25),f(2," Ready"),u())}function CO(t,e){t&1&&(c(0,"button",19),v(1,"i",26),f(2," Browsing"),u())}function bO(t,e){if(t&1&&(c(0,"a",20),f(1),u()),t&2){let i=y().$implicit;h(),J(i.value.website)}}function DO(t,e){t&1&&f(0,"-")}function wO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",13)(2,"input",14),k("ngModelChange",function(o){let r=M(i).$implicit;return F(r.checked,o)||(r.checked=o),T(o)}),u()(),c(3,"td",15),S(4,_O,1,1,"img",16)(5,vO,2,0,"div",17),u(),c(6,"td",13),f(7),u(),c(8,"td",15),S(9,yO,3,0,"button",18)(10,CO,3,0,"button",19),u(),c(11,"td",13),S(12,bO,2,1,"a",20)(13,DO,1,0),u(),c(14,"td",13),f(15),u(),c(16,"td",13),f(17),u(),c(18,"td",13),f(19),u(),c(20,"td",13),f(21),u(),c(22,"td",13),f(23),Qt(24,"date"),u(),c(25,"td",21)(26,"i",22),C("click",function(){let o=M(i).$implicit,r=y();return T(r.edit(o.id))}),u(),c(27,"i",23),C("click",function(){let o=M(i).$implicit,r=y();return T(r.delete(o.id))}),u()()()}if(t&2){let i=e.$implicit,n=y();h(2),R("ngModel",i.checked),h(2),I(i.value.avatar?4:-1),h(),I(i.value.avatar?-1:5),h(2),J(i.value.name||"-"),h(2),I(n.isReady(i)?9:10),h(3),I(i.value.website?12:13),h(3),J(i.value.address||"-"),h(2),J(i.value.city||"-"),h(2),J(i.value.state||"-"),h(2),J(i.value.country||"-"),h(2),J(Al(24,11,i.createdOn,"longDate"))}}var jc=class t{constructor(e,i,n,o,r){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o;this.uS=r;this.prepare()}contacts=[];prepare=()=>E(this,null,function*(){yield this.crmS.populateContacts(),this.contacts=Array.from(this.crmS.contacts.values()),this.contacts.forEach(e=>e.checked=!1)});isReady=e=>(e?.value?.status||"").substring(0,5).toLowerCase()==="ready";edit=e=>{this.crmS.currentContact=e,this.nS.sCP("crm-contact")};delete=e=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Contact"))&&(yield this.dbS.delete({id:e}).catch(console.error))}catch(i){console.error(i)}finally{yield this.prepare()}});deleting=!1;deleteSelected=()=>E(this,null,function*(){this.deleting=!0;try{if(yield this.uS.confirm("Are you sure?","Delete Contact"))for(let e of this.contacts)e.checked&&(yield this.dbS.delete({id:e.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.prepare(),this.deleting=!1}});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye),w(we),w(un))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-contact-list"]],standalone:!0,features:[j],decls:42,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-auto",3,"click","disabled"],[1,"fas","fa-trash","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col",2,"height","calc(100vh - 160px)","overflow","auto"],[1,"table","table-borderless"],[1,"sticky-top"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"align-middle"],["type","checkbox",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"align-middle","text-center"],["alt","Avatar",1,"rounded-circle",2,"height","32px",3,"src"],[1,"d-flex","rounded-circle","bg-info","align-middle","text-center","text-white","p-0","mx-auto","my-0","fs-4",2,"width","32px","height","32px"],["type","button",1,"btn","btn-sm","btn-info"],["type","button",1,"btn","btn-sm","btn-warning"],["href","contact.value.website","target","_blank"],[1,"text-center","align-middle","text-nowrap"],[1,"fas","fa-pen-to-square","ptr","me-2",3,"click"],[1,"fas","fa-trash","text-danger","ptr","me-2",3,"click"],[1,"fas","fa-star","m-auto"],[1,"fas","fa-check","me-2"],[1,"fas","fa-sync","fa-spin","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Contact List"),u(),c(5,"button",3),C("click",function(){return n.deleteSelected()}),v(6,"i",4),f(7," Delete Selected "),u(),c(8,"button",5),C("click",function(){return n.nS.sCP("crm-contact")}),f(9,"New Contact"),u()()(),c(10,"div",6),v(11,"hr"),u(),c(12,"div",7)(13,"div",8)(14,"table",9)(15,"thead",10)(16,"tr")(17,"th"),f(18,"\xA0"),u(),c(19,"th",11),f(20,"Avatar"),u(),c(21,"th"),f(22,"Name"),u(),c(23,"th",11),f(24,"Status"),u(),c(25,"th"),f(26,"Website"),u(),c(27,"th"),f(28,"Address"),u(),c(29,"th"),f(30,"City"),u(),c(31,"th"),f(32,"State"),u(),c(33,"th"),f(34,"Country"),u(),c(35,"th"),f(36,"Added"),u(),c(37,"th",11),v(38,"i",12),u()()(),c(39,"tbody"),ee(40,wO,28,14,"tr",null,gO),u()()()()()),i&2&&(h(5),A("disabled",n.deleting),h(35),te(n.contacts))},dependencies:[be,wn,Pe,Ne,Wl]})};function EO(t,e){t&1&&(v(0,"i",17),f(1," Saving, please wait... "))}function SO(t,e){t&1&&(v(0,"i",18),f(1," Save "))}function MO(t,e){if(t&1){let i=U();c(0,"div",4)(1,"div",2)(2,"div",5)(3,"div",6)(4,"label",7),f(5,"Domain"),u(),c(6,"input",8),k("ngModelChange",function(o){M(i);let r=y();return F(r.mS.mailgunSettings.domain,o)||(r.mS.mailgunSettings.domain=o),T(o)}),u(),c(7,"label",9),f(8,"API Key"),u(),c(9,"input",10),k("ngModelChange",function(o){M(i);let r=y();return F(r.mS.mailgunSettings.apiKey,o)||(r.mS.mailgunSettings.apiKey=o),T(o)}),u(),c(10,"label",11),f(11,"Region"),u(),c(12,"select",12),k("ngModelChange",function(o){M(i);let r=y();return F(r.mS.mailgunSettings.region,o)||(r.mS.mailgunSettings.region=o),T(o)}),c(13,"option",13),f(14,"US"),u(),c(15,"option",14),f(16,"EU"),u()()(),c(17,"div",15)(18,"button",16),C("click",function(){M(i);let o=y();return T(o.save())}),S(19,EO,2,0)(20,SO,2,0),u()()()()()}if(t&2){let i=y();h(6),R("ngModel",i.mS.mailgunSettings.domain),h(3),R("ngModel",i.mS.mailgunSettings.apiKey),h(3),R("ngModel",i.mS.mailgunSettings.region),h(7),I(i.saving?19:20)}}var Uc=class t{constructor(e){this.mS=e}ngOnInit(){this.mS.populateMailgunSettings()}saving=!1;save=()=>E(this,null,function*(){this.saving=!0,yield this.mS.saveMailgunSettings(),this.saving=!1});static \u0275fac=function(i){return new(i||t)(w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-mailgun"]],standalone:!0,features:[j],decls:15,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-body"],["for","domain",1,"form-label"],["type","text","name","domain","id","domain",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","apikey",1,"form-label"],["type","password","name","apikey","id","apikey",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","region",1,"form-label"],["id","region","name","region",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","us"],["value","eu"],[1,"card-footer","border-top","d-flex"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"fas","fa-floppy-disk","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Mailgun Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),f(9," While sending email messages via LuckyNode plugin you will be needing a Mailgun account. "),v(10,"br"),f(11," We are enforcing this to ensure you don't have issues with email deliverability. "),v(12,"br"),f(13," In the future we are planning to support more email relay service providers, but for now, please bear with us. "),u()(),S(14,MO,21,4,"div",4),u()),i&2&&(h(14),I(n.mS.mailgunSettings?14:-1))},dependencies:[be,nn,on,it,It,Pe,Ne]})};var $p=class{constructor(){this.subject=new Gn(1),this.subscriptions=new Ue}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){let o=n[e].currentValue;o!=null&&i(o)}}))}has(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){let o=n[e].currentValue;i(o)}}))}notFirst(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){let o=n[e].currentValue;i(o)}}))}notFirstAndEmpty(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){let o=n[e].currentValue;o!=null&&i(o)}}))}},ay=new G("NGX_ECHARTS_CONFIG"),ly=(()=>{let e=class e{constructor(n,o,r){this.el=o,this.ngZone=r,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new re,this.optionsError=new re,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Gn(1),this.resize$=new he,this.changeFilter=new $p,this.resizeObFired=!1,this.echarts=n.echarts,this.theme=n.theme||null}ngOnChanges(n){this.changeFilter.doFilter(n)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(Mu(100,xn,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(n=>{for(let o of n)o.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",n=>this.onOptionsChange(n)),this.changeFilter.notFirstAndEmpty("merge",n=>this.setOption(n)),this.changeFilter.has("loading",n=>this.toggleLoading(!!n)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(n){this.chart?n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(o=>n?o.showLoading(this.loadingType,this.loadingOpts):o.hideLoading())}setOption(n,o){if(this.chart)try{this.chart.setOption(n,o)}catch(r){console.error(r),this.optionsError.emit(r)}}refreshChart(){return E(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let n=this.el.nativeElement;if(window&&window.getComputedStyle){let o=window.getComputedStyle(n,null).getPropertyValue("height");(!o||o==="0px")&&(!n.style.height||n.style.height==="0px")&&(n.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:r})=>r(n,this.theme,this.initOpts)))}initChart(){return E(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(n){return E(this,null,function*(){n&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(n){return this.chartInit.pipe(mi(o=>new ne(r=>(o.on(n,s=>this.ngZone.run(()=>r.next(s))),()=>{this.chart&&(this.chart.isDisposed()||o.off(n))}))))}};e.\u0275fac=function(o){return new(o||e)(w(ay),w(ye),w(ge))},e.\u0275dir=ae({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[yt]});let t=e;return t})(),Hc=(t={})=>({provide:ay,useFactory:()=>Se(Y({},t),{echarts:()=>import("./chunk-25X2RZSW.js")})});var cy=(t,e)=>e.id;function TO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit;A("value",i.id),h(),Tt("",i.value.name," (",i.value.subject,")")}}function IO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit;A("value",i.id),h(),Tt("",i.name," (",i.native,")")}}function xO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit,n=y();A("value",i),h(),J(n.pad0(i.toString()))}}function OO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit,n=y();A("value",i),h(),J(n.pad0(i.toString()))}}var zc=class t{constructor(e,i,n){this.crmS=e;this.gS=i;this.dbS=n}chartOption={xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line"}]};campaign={id:"",type:"campaign",value:{name:"",emailTemplate:"",country:"0",send:{atH:"0",atM:"0",atTZ:"targetCountry",onMon:!0,onTue:!0,onWed:!0,onThu:!0,onFri:!0,onSat:!1,onSun:!1,limitPerDay:10,limitPerType:"globally"},futureContacts:"yes",status:"pending"}};labelWidth=150;hours=[...new Array(24).keys()];minutes=[...new Array(60).keys()];pad0=e=>`0${e}`.slice(-2);ngOnInit(){return E(this,null,function*(){yield this.crmS.populateCampaigns(),yield this.crmS.populateEmailTemplates(),yield this.gS.populateCountries(),this.crmS.currentCampaign!==""&&this.crmS.campaigns.has(this.crmS.currentCampaign)&&(this.campaign=Y({},this.crmS.campaigns.get(this.crmS.currentCampaign)),this.campaign.value.country===0&&(this.campaign.value.country="0"))})}ngOnDestroy(){this.crmS.currentCampaign=""}areWeReadyToSave=()=>{for(let e of Object.keys(this.campaign.value))if(!this.campaign.value[e])return!1;return!0};saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.campaign.id)yield this.dbS.update(this.campaign);else{let e=yield this.dbS.insert(this.campaign);e.id&&(this.campaign.id=e.id)}yield this.crmS.populateCampaigns(),this.saving=!1});checkingNewContacts=!1;checkNewContacts=()=>E(this,null,function*(){this.checkingNewContacts=!0,yield this.save(),yield this.dbS.insertTask({type:"initiateCampaign",data:this.campaign.id}),this.checkingNewContacts=!1});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign"]],standalone:!0,features:[nt([Hc()]),j],decls:90,vars:33,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"fas","fa-rotate","me-2"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"input-group","input-group-sm","mb-1"],[1,"input-group-text"],["type","text","name","cName","id","cName",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","cTemplate","name","cTemplate",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],[3,"value"],["id","cCountry","name","cCountry",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModelChange","ngModel"],["id","atH","name","atH",1,"form-select","form-select-sm",2,"max-width","100px",3,"ngModelChange","ngModel"],["id","atM","name","atM",1,"form-select","form-select-sm",2,"max-width","100px",3,"ngModelChange","ngModel"],["id","atTZ","name","atTZ",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","targetCountry"],["value","server"],["id","fc","name","fc",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","yes"],["value","no"],["type","number","name","lpd","id","lpd","min","1",3,"ngModelChange","ngModel"],["value","globally"],["value","country"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Campaign"),u(),c(5,"button",3),C("click",function(){return n.save()}),v(6,"i",4),f(7," Save "),u(),c(8,"button",5),C("click",function(){return n.checkNewContacts()}),v(9,"i",6),f(10," Check for New Contacts "),u()()(),c(11,"div",7),v(12,"hr"),u(),c(13,"div",8)(14,"div",9)(15,"div",10)(16,"span",11),f(17,"Name"),u(),c(18,"input",12),k("ngModelChange",function(r){return F(n.campaign.value.name,r)||(n.campaign.value.name=r),r}),u()(),c(19,"div",10)(20,"span",11),f(21,"Email Template"),u(),c(22,"select",13),k("ngModelChange",function(r){return F(n.campaign.value.emailTemplate,r)||(n.campaign.value.emailTemplate=r),r}),ee(23,TO,2,3,"option",14,cy),u()(),c(25,"div",10)(26,"span",11),f(27,"Send to all contacts in"),u(),c(28,"select",15),k("ngModelChange",function(r){return F(n.campaign.value.country,r)||(n.campaign.value.country=r),r}),c(29,"option",14),f(30,"any country"),u(),ee(31,IO,2,3,"option",14,cy),u()(),c(33,"div",10)(34,"span",11),f(35,"Sending Days"),u(),c(36,"div",11),f(37," Mon:\xA0"),c(38,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onMon,r)||(n.campaign.value.send.onMon=r),r}),u()(),c(39,"div",11),f(40," Tue:\xA0"),c(41,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onTue,r)||(n.campaign.value.send.onTue=r),r}),u()(),c(42,"div",11),f(43," Wed:\xA0"),c(44,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onWed,r)||(n.campaign.value.send.onWed=r),r}),u()(),c(45,"div",11),f(46," Thu:\xA0"),c(47,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onThu,r)||(n.campaign.value.send.onThu=r),r}),u()(),c(48,"div",11),f(49," Fri:\xA0"),c(50,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onFri,r)||(n.campaign.value.send.onFri=r),r}),u()(),c(51,"div",11),f(52," Sat:\xA0"),c(53,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onSat,r)||(n.campaign.value.send.onSat=r),r}),u()(),c(54,"div",11),f(55," Sun:\xA0"),c(56,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onSun,r)||(n.campaign.value.send.onSun=r),r}),u()()(),c(57,"div",10)(58,"span",11),f(59,"Sending Time"),u(),c(60,"select",17),k("ngModelChange",function(r){return F(n.campaign.value.send.atH,r)||(n.campaign.value.send.atH=r),r}),ee(61,xO,2,2,"option",14,yo),u(),c(63,"select",18),k("ngModelChange",function(r){return F(n.campaign.value.send.atM,r)||(n.campaign.value.send.atM=r),r}),ee(64,OO,2,2,"option",14,yo),u(),c(66,"span",11),f(67,"of"),u(),c(68,"select",19),k("ngModelChange",function(r){return F(n.campaign.value.send.atTZ,r)||(n.campaign.value.send.atTZ=r),r}),c(69,"option",20),f(70,"target country time"),u(),c(71,"option",21),f(72,"server time"),u()()(),c(73,"div",10)(74,"span",11),f(75,"Future Contacts"),u(),c(76,"select",22),k("ngModelChange",function(r){return F(n.campaign.value.futureContacts,r)||(n.campaign.value.futureContacts=r),r}),c(77,"option",23),f(78,"Include contacts created in the future"),u(),c(79,"option",24),f(80,"Don't include contacts in the future"),u()()(),c(81,"div",10)(82,"span",11),f(83,"Limit Sending"),u(),c(84,"input",25),k("ngModelChange",function(r){return F(n.campaign.value.send.limitPerDay,r)||(n.campaign.value.send.limitPerDay=r),r}),u(),c(85,"select",22),k("ngModelChange",function(r){return F(n.campaign.value.send.limitPerType,r)||(n.campaign.value.send.limitPerType=r),r}),c(86,"option",26),f(87,"per day Globally"),u(),c(88,"option",27),f(89,"per day per Country"),u()()()()()()),i&2&&(h(5),A("disabled",!n.areWeReadyToSave()||n.saving),h(3),A("disabled",n.checkingNewContacts),h(8),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.emailTemplate),h(),te(n.crmS.emailTemplates.values()),h(3),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.country),h(),A("value",0),h(2),te(n.gS.countries.values()),h(3),Ce("width",n.labelWidth,"px"),h(4),R("ngModel",n.campaign.value.send.onMon),h(3),R("ngModel",n.campaign.value.send.onTue),h(3),R("ngModel",n.campaign.value.send.onWed),h(3),R("ngModel",n.campaign.value.send.onThu),h(3),R("ngModel",n.campaign.value.send.onFri),h(3),R("ngModel",n.campaign.value.send.onSat),h(3),R("ngModel",n.campaign.value.send.onSun),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.send.atH),h(),te(n.hours),h(2),R("ngModel",n.campaign.value.send.atM),h(),te(n.minutes),h(4),R("ngModel",n.campaign.value.send.atTZ),h(6),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.futureContacts),h(6),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.send.limitPerDay),h(),R("ngModel",n.campaign.value.send.limitPerType))},dependencies:[be,nn,on,it,bo,wn,It,Pe,fp,Ne]})};var NO=(t,e)=>e.id;function AO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),u(),c(7,"td"),f(8),u(),c(9,"td"),f(10),u(),c(11,"td",9)(12,"i",11),C("click",function(){let o=M(i).$implicit,r=y();return T(r.edit(o.id))}),u()()()}if(t&2){let i,n=e.$implicit,o=y();h(2),J(n.value.name||"No Name Given"),h(2),J(n.value.subject||"No Subject Given"),h(2),B(" ",n.value.attachments.length," "),h(2),J(((i=o.crmS.contacts.get(n.value.contact))==null||i.value==null?null:i.value.name)||"N/A"),h(2),B(" ",n.value.testEmailAddress," ")}}var $c=class t{constructor(e,i){this.nS=e;this.crmS=i}ngOnInit(){this.crmS.populateEmailTemplates(),this.crmS.populateContacts()}edit=e=>{this.crmS.currentEmailTemplate=e,this.nS.sCP("crm-email-template")};static \u0275fac=function(i){return new(i||t)(w(we),w(je))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-email-template-list"]],standalone:!0,features:[j],decls:29,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"],[1,"sticky-top","border"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"fas","fa-pen-to-square","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Email Template List"),u(),c(5,"button",3),C("click",function(){return n.nS.sCP("crm-email-template")}),f(6,"New Template"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead",8)(13,"tr")(14,"th"),f(15,"Name"),u(),c(16,"th"),f(17,"Subject"),u(),c(18,"th"),f(19,"Attachments"),u(),c(20,"th"),f(21,"Testing Contact"),u(),c(22,"th"),f(23,"Testing Email Address"),u(),c(24,"th",9),v(25,"i",10),u()()(),c(26,"tbody"),ee(27,AO,13,5,"tr",null,NO),u()()()()()),i&2&&(h(27),te(n.crmS.emailTemplates.values()))}})};var Gc={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},uy=new G("config",{providedIn:"root",factory:()=>({modules:Gc})});var RO=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],kO=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function FO(t,e){t&1&&v(0,"div",0)}function PO(t,e){t&1&&v(0,"div",0)}var Wc=(t,e)=>t||e||"html",LO=()=>new ne(t=>{let e=requestAnimationFrame(()=>{t.next(),t.complete()});return()=>cancelAnimationFrame(e)}),VO=(()=>{let e=class e{constructor(n,o){this.config=o,this.quill$=gu(()=>E(this,null,function*(){if(!this.Quill){let r=this.document.addEventListener;this.document.addEventListener=this.document.__zone_symbol__addEventListener||this.document.addEventListener;let s=yield import("./chunk-QH7V45P4.js");this.document.addEventListener=r,this.Quill=s.default?.default??s.default??s}return this.config.customOptions?.forEach(r=>{let s=this.Quill.import(r.import);s.whitelist=r.whitelist,this.Quill.register(s,!0,this.config.suppressGlobalRegisterWarning)}),yield this.registerCustomModules(this.Quill,this.config.customModules,this.config.suppressGlobalRegisterWarning)})).pipe(wu({bufferSize:1,refCount:!0})),this.document=n.get(Fe),this.config||(this.config={modules:Gc})}getQuill(){return this.quill$}registerCustomModules(n,o,r){return E(this,null,function*(){if(Array.isArray(o))for(let{implementation:s,path:a}of o)mu(s)&&(s=yield On(s)),n.register(a,s,r);return n})}};e.\u0275fac=function(o){return new(o||e)(H(He),H(uy,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),BO=(()=>{let e=class e{constructor(){this.format=De(void 0),this.theme=De(void 0),this.modules=De(void 0),this.debug=De(!1),this.readOnly=De(!1),this.placeholder=De(void 0),this.maxLength=De(void 0),this.minLength=De(void 0),this.required=De(!1),this.formats=De(void 0),this.customToolbarPosition=De("top"),this.sanitize=De(void 0),this.beforeRender=De(void 0),this.styles=De(null),this.registry=De(void 0),this.bounds=De(void 0),this.customOptions=De([]),this.customModules=De([]),this.trackChanges=De(void 0),this.classes=De(void 0),this.trimOnValidation=De(!1),this.linkPlaceholder=De(void 0),this.compareValues=De(!1),this.filterNull=De(!1),this.debounceTime=De(void 0),this.defaultEmptyValue=De(null),this.onEditorCreated=new re,this.onEditorChanged=new re,this.onContentChanged=new re,this.onSelectionChanged=new re,this.onFocus=new re,this.onBlur=new re,this.onNativeFocus=new re,this.onNativeBlur=new re,this.disabled=!1,this.toolbarPosition=Si("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=b(ye),this.document=b(Fe),this.cd=b(Jt),this.domSanitizer=b(rp),this.platformId=b(Gt),this.renderer=b(Wt),this.zone=b(ge),this.service=b(VO),this.destroyRef=b(ei),this.valueGetter=De(n=>{let o=n.getSemanticHTML();this.isEmptyValue(o)&&(o=this.defaultEmptyValue());let r=o,s=Wc(this.format(),this.service.config.format);if(s==="text")r=n.getText();else if(s==="object")r=n.getContents();else if(s==="json")try{r=JSON.stringify(n.getContents())}catch{r=n.getText()}return r}),this.valueSetter=De((n,o)=>{let r=Wc(this.format(),this.service.config.format);if(r==="html")return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(o=this.domSanitizer.sanitize(Cn.HTML,o)),n.clipboard.convert({html:o});if(r==="json")try{return JSON.parse(o)}catch{return[{insert:o}]}return o}),this.selectionChangeHandler=(n,o,r)=>{let s=this.trackChanges()||this.service.config.trackChanges,a=!n&&!!this.onModelTouched&&(r==="user"||s&&s==="all");!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!a||this.zone.run(()=>{n===null?this.onBlur.emit({editor:this.quillEditor,source:r}):o===null&&this.onFocus.emit({editor:this.quillEditor,source:r}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:o,range:n,source:r}),a&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(n,o,r)=>{let s=this.quillEditor.getText(),a=this.quillEditor.getContents(),l=this.quillEditor.getSemanticHTML();this.isEmptyValue(l)&&(l=this.defaultEmptyValue());let d=this.trackChanges()||this.service.config.trackChanges,p=(r==="user"||d&&d==="all")&&!!this.onModelChange;!this.onContentChanged.observed&&!p||this.zone.run(()=>{if(p){let m=this.valueGetter();this.onModelChange(m(this.quillEditor))}this.onContentChanged.emit({content:a,delta:n,editor:this.quillEditor,html:l,oldDelta:o,source:r,text:s}),this.cd.markForCheck()})},this.editorChangeHandler=(n,o,r,s)=>{if(this.onEditorChanged.observed)if(n==="text-change"){let a=this.quillEditor.getText(),l=this.quillEditor.getContents(),d=this.quillEditor.getSemanticHTML();this.isEmptyValue(d)&&(d=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:l,delta:o,editor:this.quillEditor,event:n,html:d,oldDelta:r,source:s,text:a}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:n,oldRange:r,range:o,source:s}),this.cd.markForCheck()})}}static normalizeClassNames(n){return n.trim().split(" ").reduce((r,s)=>{let a=s.trim();return a&&r.push(a),r},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){yr(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(gt(n=>{let o=[this.service.registerCustomModules(n,this.customModules())],r=this.beforeRender()??this.service.config.beforeRender;return r&&o.push(r()),Promise.all(o).then(()=>n)})).subscribe(n=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");let o=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),r=Object.assign({},this.modules()||this.service.config.modules);o?r.toolbar=o:r.toolbar===void 0&&(r.toolbar=Gc.toolbar);let s=this.placeholder()!==void 0?this.placeholder():this.service.config.placeholder;s===void 0&&(s="Insert text here ...");let a=this.styles();a&&Object.keys(a).forEach(_=>{this.renderer.setStyle(this.editorElem,_,a[_])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(_=>{let g=n.import(_.import);g.whitelist=_.whitelist,n.register(g,!0)});let l=this.bounds()&&this.bounds()==="self"?this.editorElem:this.bounds();l||(l=this.service.config.bounds?this.service.config.bounds:this.document.body);let d=this.debug();!d&&d!==!1&&this.service.config.debug&&(d=this.service.config.debug);let p=this.readOnly();!p&&this.readOnly()!==!1&&(p=this.service.config.readOnly!==void 0?this.service.config.readOnly:!1);let m=this.formats();if(!m&&m===void 0&&(m=this.service.config.formats?[...this.service.config.formats]:this.service.config.formats===null?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new n(this.editorElem,{bounds:l,debug:d,formats:m,modules:r,placeholder:s,readOnly:p,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed){xe(this.quillEditor.scroll.domNode,"blur").pipe(ai(this.destroyRef)).subscribe(()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"}));let _=this.quillEditor.getModule("toolbar");_.container&&xe(_.container,"mousedown").pipe(ai(this.destroyRef)).subscribe(g=>g.preventDefault())}if(this.onNativeFocus.observed&&xe(this.quillEditor.scroll.domNode,"focus").pipe(ai(this.destroyRef)).subscribe(()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){let g=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");g?.dataset&&(g.dataset.link=this.linkPlaceholder())}}),this.content){if(Wc(this.format(),this.service.config.format)==="text")this.quillEditor.setText(this.content,"silent");else{let x=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(x,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),!(!this.onEditorCreated.observed&&!this.onValidatorChanged)&&LO().pipe(ai(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(n){if(this.quillEditor){if(n.readOnly&&this.quillEditor.enable(!n.readOnly.currentValue),n.placeholder&&(this.quillEditor.root.dataset.placeholder=n.placeholder.currentValue),n.styles){let o=n.styles.currentValue,r=n.styles.previousValue;r&&Object.keys(r).forEach(s=>{this.renderer.removeStyle(this.editorElem,s)}),o&&Object.keys(o).forEach(s=>{this.renderer.setStyle(this.editorElem,s,this.styles()[s])})}if(n.classes){let o=n.classes.currentValue,r=n.classes.previousValue;r&&this.removeClasses(r),o&&this.addClasses(o)}n.debounceTime&&this.addQuillEventListeners()}}addClasses(n){e.normalizeClassNames(n).forEach(o=>{this.renderer.addClass(this.editorElem,o)})}removeClasses(n){e.normalizeClassNames(n).forEach(o=>{this.renderer.removeClass(this.editorElem,o)})}writeValue(n){if(this.filterNull()&&n===null||(this.content=n,!this.quillEditor))return;let o=Wc(this.format(),this.service.config.format),s=this.valueSetter()(this.quillEditor,n);if(this.compareValues()){let a=this.quillEditor.getContents();if(JSON.stringify(a)===JSON.stringify(s))return}if(n){o==="text"?this.quillEditor.setText(n):this.quillEditor.setContents(s);return}this.quillEditor.setText("")}setDisabledState(n=this.disabled){this.disabled=n,this.quillEditor&&(n?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}registerOnValidatorChange(n){this.onValidatorChanged=n}validate(){if(!this.quillEditor)return null;let n={},o=!0,r=this.quillEditor.getText(),s=this.trimOnValidation()?r.trim().length:r.length===1&&r.trim().length===0?0:r.length-1,a=this.quillEditor.getContents().ops,l=!!a&&a.length===1&&[` 16 `,""].includes(a[0].insert?.toString());return this.minLength()&&s&&s<this.minLength()&&(n.minLengthError={given:s,minLength:this.minLength()},o=!1),this.maxLength()&&s>this.maxLength()&&(n.maxLengthError={given:s,maxLength:this.maxLength()},o=!1),this.required()&&!s&&l&&(n.requiredError={empty:!0},o=!1),o?null:n}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new Ue,this.subscription.add(xe(this.quillEditor,"selection-change").subscribe(([r,s,a])=>{this.selectionChangeHandler(r,s,a)}));let n=xe(this.quillEditor,"text-change"),o=xe(this.quillEditor,"editor-change");typeof this.debounceTime()=="number"&&(n=n.pipe(Ji(this.debounceTime())),o=o.pipe(Ji(this.debounceTime()))),this.subscription.add(n.subscribe(([r,s,a])=>{this.textChangeHandler(r,s,a)})),this.subscription.add(o.subscribe(([r,s,a,l])=>{this.editorChangeHandler(r,s,a,l)}))})}dispose(){this.subscription!==null&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(n){return n==="<p></p>"||n==="<div></div>"||n==="<p><br></p>"||n==="<div><br></div>"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,inputs:{format:[1,"format"],theme:[1,"theme"],modules:[1,"modules"],debug:[1,"debug"],readOnly:[1,"readOnly"],placeholder:[1,"placeholder"],maxLength:[1,"maxLength"],minLength:[1,"minLength"],required:[1,"required"],formats:[1,"formats"],customToolbarPosition:[1,"customToolbarPosition"],sanitize:[1,"sanitize"],beforeRender:[1,"beforeRender"],styles:[1,"styles"],registry:[1,"registry"],bounds:[1,"bounds"],customOptions:[1,"customOptions"],customModules:[1,"customModules"],trackChanges:[1,"trackChanges"],classes:[1,"classes"],trimOnValidation:[1,"trimOnValidation"],linkPlaceholder:[1,"linkPlaceholder"],compareValues:[1,"compareValues"],filterNull:[1,"filterNull"],debounceTime:[1,"debounceTime"],defaultEmptyValue:[1,"defaultEmptyValue"],valueGetter:[1,"valueGetter"],valueSetter:[1,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[yt]});let t=e;return t})(),dy=(()=>{let e=class e extends BO{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275cmp=V({type:e,selectors:[["quill-editor"]],standalone:!0,features:[nt([{multi:!0,provide:Hn,useExisting:at(()=>e)},{multi:!0,provide:Er,useExisting:at(()=>e)}]),tt,j],ngContentSelectors:kO,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(o,r){o&1&&(Nl(RO),S(0,FO,1,0,"div",0),ur(1),ur(2,1),ur(3,2),S(4,PO,1,0,"div",0)),o&2&&(I(r.toolbarPosition()!=="top"?0:-1),h(4),I(r.toolbarPosition()==="top"?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]});let t=e;return t})();var jO=["cInstance"],UO=["instance"];function HO(t,e){return this.attachment}var zO=()=>({height:"calc(100vh - 200px)"});function $O(t,e){t&1&&v(0,"i",6)}function GO(t,e){t&1&&v(0,"i",7)}function WO(t,e){t&1&&v(0,"i",9)}function YO(t,e){t&1&&v(0,"i",7)}function qO(t,e){t&1&&v(0,"i",40)}function KO(t,e){t&1&&v(0,"i",41)}function ZO(t,e){t&1&&v(0,"i",42)}function QO(t,e){if(t&1){let i=U();c(0,"div",39)(1,"span"),S(2,qO,1,0,"i",40)(3,KO,1,0,"i",41)(4,ZO,1,0,"i",42),f(5),u(),c(6,"i",43),C("click",function(){M(i);let o=y().$index,r=y();return T(r.removeAttachment(o))}),u()()}if(t&2){let i,n=e;h(2),I(n.mime_type==="application/pdf"?2:n.media_type==="image"?3:4),h(3),B(" ",(i=(i=n.title==null?null:n.title.rendered)!==null&&i!==void 0?i:n.guid.rendered)!==null&&i!==void 0?i:"No ID"," ")}}function JO(t,e){if(t&1&&S(0,QO,7,2,"div",39),t&2){let i,n=e.$implicit,o=y();I((i=o.attachedMedia.get(n))?0:-1,i)}}var Yc=class t{constructor(e,i,n,o,r,s){this.nS=e;this.dbS=i;this.mS=n;this.crmS=o;this.uS=r;this.aS=s}labelWidth="114";template={id:"",type:"email-template",value:{name:"",from:{name:"",address:""},replyTo:{name:"",address:""},subject:"",content:"",attachments:[],contact:"",testEmailAddress:""}};attachment;quill;modules={toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"super"},{script:"sub"}],[{header:"1"},{header:"2"},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["direction",{align:[]}],["link","image","video","formula"],["clean"]]};attachedMedia=new Map;created(e){this.quill=e}insertAtCaret=e=>{let i=this.quill.getSelection(!0);this.quill.insertText(i,e)};insertVariable=e=>{e="{{"+e+"}}",this.insertAtCaret(e)};saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.template.id)yield this.dbS.update(this.template);else{let e=yield this.dbS.insert(this.template);e.id&&(this.template.id=e.id)}yield this.crmS.populateEmailTemplates(),this.saving=!1});testing=!1;test=()=>E(this,null,function*(){if(this.testing=!0,yield this.save(),!this.template.id){this.uS.alert("Please save template before testing","Unsaved Template","OK"),this.testing=!1;return}if(!this.template.value.contact){this.uS.alert("You need to assign a contact to test the template.","Missing Contact Assignment","OK"),this.testing=!1;return}if(!this.template.value.testEmailAddress){this.uS.alert("You need to assign an email address as the test recipient.","Missing Contact Assignment","OK"),this.testing=!1;return}if(!this.aS.mailgunSettings?.domain||!this.aS.mailgunSettings?.apiKey||!this.aS.mailgunSettings?.region){(yield this.uS.confirm("In order to send email messages using LuckyNode plugin, you need to enter your Mailgun Account settings as a prerequisite.","Missing Mailgun Settings","Go to Mailgun Settings","Stay on this screen"))&&this.nS.sCP("maintenance-mailgun"),this.testing=!1;return}yield this.crmS.testEmailTemplate(this.template.id),this.testing=!1});ngOnInit(){return E(this,null,function*(){yield this.crmS.populateEmailTemplates(),yield this.crmS.populateContacts(),yield this.mS.populateMediaList(),this.crmS.currentEmailTemplate!==""&&this.crmS.emailTemplates.has(this.crmS.currentEmailTemplate)&&(this.template=Y({},this.crmS.emailTemplates.get(this.crmS.currentEmailTemplate)),console.log(this.template),this.populateAttachedMedia()),yield this.aS.populateMailgunSettings();let e=this.template.value.contact;this.template.value.contact="0",setTimeout(()=>{this.template.value.contact=e},0)})}ngOnDestroy(){this.crmS.currentEmailTemplate=""}populateAttachedMedia=()=>{for(let e of this.template.value.attachments)for(let i of this.mS.mediaList||[])i.id===e&&this.attachedMedia.set(e,i)};cFocus$=new he;cClick$=new he;cInstance;searchContact=e=>{let i=e.pipe(Ji(200),Bo()),n=this.cClick$.pipe(_t(()=>!this.cInstance.isPopupOpen())),o=this.cFocus$;return $r(i,o,n).pipe(Me(r=>r===""?[...this.crmS.contacts.values()]:[...this.crmS.contacts.values()].filter(s=>s.value.name.toLowerCase().indexOf(r.toLowerCase())>-1).slice(0,10)))};formatContact=e=>typeof e=="object"?(e?.value||{name:""}).name:this.crmS.contacts.has(e)?this.crmS.contacts.get(e)?.value?.name||"Contact without name":"Contact Not found";selectContact=e=>{setTimeout(()=>{this.template.value.contact=e.item.id},0)};formatMedia=e=>decodeURI((e?.title||{rendered:""}).rendered);selectMedia=e=>{let i=!1;for(let n of this.template.value.attachments)n===e?.item?.id&&(i=!0);!i&&e?.item?.id&&(this.template.value.attachments.push(e.item.id),this.populateAttachedMedia()),setTimeout(()=>{this.attachment=null},100)};focus$=new he;click$=new he;instance;searchMedia=e=>{let i=e.pipe(Ji(200),Bo()),n=this.click$.pipe(_t(()=>!this.instance.isPopupOpen())),o=this.focus$;return $r(i,o,n).pipe(Me(r=>(r===""?this.mS.mediaList:(this.mS.mediaList||[]).filter(s=>s.title.rendered.toLowerCase().indexOf(r.toLowerCase())>-1)).slice(0,10)))};removeAttachment=e=>(this.template.value.attachments||[]).splice(e,1);delete=()=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Template"))&&this.template.id&&(yield this.dbS.delete({id:this.template.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.crmS.populateEmailTemplates(),this.nS.sCP("crm-email-template-list")}});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(Li),w(je),w(un),w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-email-template"]],viewQuery:function(i,n){if(i&1&&(dr(jO,7),dr(UO,7)),i&2){let o;Kt(o=Zt())&&(n.cInstance=o.first),Kt(o=Zt())&&(n.instance=o.first)}},standalone:!0,features:[j],decls:96,vars:41,consts:[["cInstance","ngbTypeahead"],["instance","ngbTypeahead"],[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],[1,"fas","fa-sync","fa-spin","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"far","fa-eye","me-2"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-3","text-danger",3,"click"],[1,"fas","fa-trash","me-2"],[1,"row","mt-0"],[1,"row"],[1,"col-9"],["format","html","theme","snow",3,"ngModelChange","onEditorCreated","modules","styles","ngModel"],[1,"col-3"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],[1,"input-group","input-group-sm","mb-1"],["for","tName",1,"input-group-text"],["type","text","name","tName","id","tName",1,"form-control",3,"ngModelChange","ngModel"],["for","tSubject",1,"input-group-text"],["type","text","name","tSubject","id","tSubject",1,"form-control",3,"ngModelChange","ngModel"],["for","tFromName",1,"input-group-text"],["type","text","name","tFromName","id","tFromName",1,"form-control",3,"ngModelChange","ngModel"],["for","tFrom",1,"input-group-text"],["type","text","name","tFrom","id","tFrom",1,"form-control",3,"ngModelChange","ngModel"],["for","trt",1,"input-group-text"],["type","text","name","trt","id","trt",1,"form-control",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-sm","btn-outline-secondary","mb-1","me-1",3,"click"],[1,"mb-3"],["for","tContact",1,"form-label"],["id","tContact","name","tContact","type","text",1,"form-control","form-control-sm",3,"ngModelChange","selectItem","focus","click","ngModel","ngbTypeahead","inputFormatter","resultFormatter","selectOnExact","editable"],["for","tEmail",1,"form-label"],["type","email","name","tEmail","id","tEmail",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","tEmailHelp",1,"form-text"],["id","attachment","name","attachment","type","text",1,"form-control","form-control-sm",3,"ngModelChange","selectItem","focus","click","ngModel","ngbTypeahead","inputFormatter","resultFormatter","selectOnExact","editable"],[1,"d-flex","justify-content-between","p-2"],[1,"fa-solid","fa-file-pdf"],[1,"fa-solid","fa-file-image"],[1,"fa-solid","fa-file"],[1,"fas","fa-trash","ptr","text-danger",3,"click"]],template:function(i,n){if(i&1){let o=U();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"h5"),f(4,"Email Template"),u(),c(5,"button",5),C("click",function(){return M(o),T(n.save())}),S(6,$O,1,0,"i",6)(7,GO,1,0,"i",7),f(8," Save "),u(),c(9,"button",8),C("click",function(){return M(o),T(n.test())}),S(10,WO,1,0,"i",9)(11,YO,1,0,"i",7),f(12," Test "),u(),c(13,"button",10),C("click",function(){return M(o),T(n.delete())}),v(14,"i",11),f(15," Delete"),u()()(),c(16,"div",12),v(17,"hr"),u(),c(18,"div",13)(19,"div",14)(20,"quill-editor",15),k("ngModelChange",function(s){return M(o),F(n.template.value.content,s)||(n.template.value.content=s),T(s)}),C("onEditorCreated",function(s){return M(o),T(n.created(s))}),u()(),c(21,"div",16)(22,"div",17)(23,"h5",18),f(24,"Template"),u(),c(25,"div",19)(26,"div",20)(27,"label",21),f(28,"Name"),u(),c(29,"input",22),k("ngModelChange",function(s){return M(o),F(n.template.value.name,s)||(n.template.value.name=s),T(s)}),u()(),c(30,"div",20)(31,"label",23),f(32,"Subject:"),u(),c(33,"input",24),k("ngModelChange",function(s){return M(o),F(n.template.value.subject,s)||(n.template.value.subject=s),T(s)}),u()(),c(34,"div",20)(35,"label",25),f(36,"From Name:"),u(),c(37,"input",26),k("ngModelChange",function(s){return M(o),F(n.template.value.from.name,s)||(n.template.value.from.name=s),T(s)}),u()(),c(38,"div",20)(39,"label",27),f(40,"From:"),u(),c(41,"input",28),k("ngModelChange",function(s){return M(o),F(n.template.value.from.address,s)||(n.template.value.from.address=s),T(s)}),u()(),c(42,"div",20)(43,"label",29),f(44,"Reply To Name:"),u(),c(45,"input",30),k("ngModelChange",function(s){return M(o),F(n.template.value.replyTo.name,s)||(n.template.value.replyTo.name=s),T(s)}),u()(),c(46,"div",20)(47,"label",29),f(48,"Reply To Address:"),u(),c(49,"input",30),k("ngModelChange",function(s){return M(o),F(n.template.value.replyTo.address,s)||(n.template.value.replyTo.address=s),T(s)}),u()()()(),c(50,"div",17)(51,"h5",18),f(52,"Available Variables"),u(),c(53,"div",19)(54,"button",31),C("click",function(){return M(o),T(n.insertVariable("name"))}),f(55,"Name"),u(),c(56,"button",31),C("click",function(){return M(o),T(n.insertVariable("titleCaseName"))}),f(57,"Name (Title Case)"),u(),c(58,"button",31),C("click",function(){return M(o),T(n.insertVariable("type"))}),f(59,"Type"),u(),c(60,"button",31),C("click",function(){return M(o),T(n.insertVariable("titleCaseType"))}),f(61,"Type (Title Case)"),u(),c(62,"button",31),C("click",function(){return M(o),T(n.insertVariable("address"))}),f(63,"Address"),u(),c(64,"button",31),C("click",function(){return M(o),T(n.insertVariable("city"))}),f(65,"City"),u(),c(66,"button",31),C("click",function(){return M(o),T(n.insertVariable("state"))}),f(67,"State"),u(),c(68,"button",31),C("click",function(){return M(o),T(n.insertVariable("country"))}),f(69,"Country"),u(),c(70,"button",31),C("click",function(){return M(o),T(n.insertVariable("website"))}),f(71,"Website"),u()()(),c(72,"div",17)(73,"h5",18),f(74,"Testing"),u(),c(75,"div",19)(76,"div",32)(77,"label",33),f(78,"Select a Contact for Testing"),u(),c(79,"input",34,0),k("ngModelChange",function(s){return M(o),F(n.template.value.contact,s)||(n.template.value.contact=s),T(s)}),C("selectItem",function(s){return M(o),T(n.selectContact(s))})("focus",function(s){return M(o),T(n.cFocus$.next(s.target.value))})("click",function(s){return M(o),T(n.cClick$.next(s.target.value))}),u()(),c(81,"div",32)(82,"label",35),f(83,"Email Address for Testing"),u(),c(84,"input",36),k("ngModelChange",function(s){return M(o),F(n.template.value.testEmailAddress,s)||(n.template.value.testEmailAddress=s),T(s)}),u(),c(85,"div",37),f(86,"You can enter multiple email addresses separated by comma or semicolon."),u()()()(),c(87,"div",17)(88,"h5",18),f(89,"Attachments"),u(),c(90,"div",19)(91,"div",32)(92,"input",38,1),k("ngModelChange",function(s){return M(o),F(n.attachment,s)||(n.attachment=s),T(s)}),C("selectItem",function(s){return M(o),T(n.selectMedia(s))})("focus",function(s){return M(o),T(n.focus$.next(s.target.value))})("click",function(s){return M(o),T(n.click$.next(s.target.value))}),u(),ee(94,JO,1,1,null,null,HO,!0),u()()()()()()}i&2&&(h(5),A("disabled",n.saving),h(),I(n.saving?-1:6),h(),I(n.saving?7:-1),h(2),A("disabled",n.testing),h(),I(n.testing?-1:10),h(),I(n.testing?11:-1),h(9),A("modules",n.modules)("styles",pr(40,zO)),R("ngModel",n.template.value.content),h(7),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.subject),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.from.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.from.address),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.replyTo.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.replyTo.address),h(30),R("ngModel",n.template.value.contact),A("ngbTypeahead",n.searchContact)("inputFormatter",n.formatContact)("resultFormatter",n.formatContact)("selectOnExact",!0)("editable",!1),h(5),R("ngModel",n.template.value.testEmailAddress),h(8),R("ngModel",n.attachment),A("ngbTypeahead",n.searchMedia)("inputFormatter",n.formatMedia)("resultFormatter",n.formatMedia)("selectOnExact",!0)("editable",!1),h(2),te(n.template.value.attachments))},dependencies:[dy,be,it,Pe,Ne,Cc,ry],styles:["quill-editor[_ngcontent-%COMP%]{display:block}"]})};var Gp=(t,e)=>e.id;function XO(t,e){if(t&1&&(c(0,"h5"),f(1),u()),t&2){let i=y();h(),B("Contact Details: ",i.contact.value.name||"No Name Given","")}}function eN(t,e){t&1&&(c(0,"h5"),f(1,"New Contact"),u())}function tN(t,e){if(t&1){let i=U();c(0,"button",32),C("click",function(){M(i);let o=y();return T(o.browse())}),v(1,"i",33),f(2," Browse for Contact Information"),u()}}function nN(t,e){if(t&1&&(c(0,"span",14),v(1,"img",34),u(),c(2,"a",18),v(3,"i",19),u()),t&2){let i=y();h(),A("src",i.contact.value.avatar,Bn),h(),A("href",i.contact.value.avatar,Bn)}}function iN(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",35)(2,"input",36),k("ngModelChange",function(o){let r=M(i).$index,s=y();return F(s.contact.value.emailAddresses[r],o)||(s.contact.value.emailAddresses[r]=o),T(o)}),u()(),c(3,"td",23)(4,"i",37),C("click",function(){let o=M(i).$index,r=y();return T(r.deleteEmail(o))}),u()()()}if(t&2){let i=e.$index,n=y();h(2),ni("name","email",i,""),ni("id","email",i,""),R("ngModel",n.contact.value.emailAddresses[i])}}function oN(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",35)(2,"input",38),k("ngModelChange",function(o){let r=M(i).$index,s=y();return F(s.contact.value.phoneNumbers[r],o)||(s.contact.value.phoneNumbers[r]=o),T(o)}),u()(),c(3,"td",23)(4,"i",37),C("click",function(){let o=M(i).$index,r=y();return T(r.deletePhone(o))}),u()()()}if(t&2){let i=e.$index,n=y();h(2),ni("name","phone",i,""),ni("id","phone",i,""),R("ngModel",n.contact.value.phoneNumbers[i])}}function rN(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),J(i.name)}}function sN(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),J(i.name)}}function aN(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),Tt("",i.name," (",i.native,")")}}function lN(t,e){if(t&1){let i=U();c(0,"div",13)(1,"span",14),f(2,"Google Maps Link"),u(),c(3,"input",39),k("ngModelChange",function(o){M(i);let r=y();return F(r.contact.value.googleValues.googleMapsUri,o)||(r.contact.value.googleValues.googleMapsUri=o),T(o)}),u(),c(4,"a",18),v(5,"i",19),u()()}if(t&2){let i=y();h(),Ce("width",i.labelWidth,"px"),h(2),R("ngModel",i.contact.value.googleValues.googleMapsUri),A("disabled",!0),h(),A("href",i.contact.value.googleValues.googleMapsUri,Bn)}}var qc=class t{constructor(e,i,n,o,r){this.nS=e;this.dbS=i;this.crmS=n;this.uS=o;this.gS=r}ngOnInit(){this.prepare()}ngOnDestroy(){this.crmS.currentContact=""}prepare=()=>E(this,null,function*(){yield this.crmS.populateContacts(),this.crmS.currentContact!==""&&this.crmS.contacts.has(this.crmS.currentContact)&&(this.contact=Y({},this.crmS.contacts.get(this.crmS.currentContact))),this.contact.value.country&&(yield this.populateStates()),this.contact.value.state&&(yield this.populateCities())});contact={id:"",type:"contact",value:{name:"",emailAddresses:[],phoneNumbers:[],status:"Ready"}};labelWidth=200;addEmail=()=>{this.contact.value.emailAddresses.push("")};deleteEmail=e=>E(this,null,function*(){(yield this.uS.confirm("Are you sure?","Delete Email Address"))&&this.contact.value.emailAddresses.splice(e,1)});cities=new Map;states=new Map;populateStates=()=>E(this,null,function*(){this.states=yield this.gS.getStates(this.contact.value.country)});populateCities=()=>E(this,null,function*(){this.cities=yield this.gS.getCities(this.contact.value.country,this.contact.value.state)});addPhone=()=>{this.contact.value.phoneNumbers.push("")};deletePhone=e=>E(this,null,function*(){(yield this.uS.confirm("Are you sure?","Delete Phone Number"))&&this.contact.value.phoneNumbers.splice(e,1)});saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.contact.id)yield this.dbS.update(this.contact);else{let e=yield this.dbS.insert(this.contact);e.id&&(this.contact.id=e.id)}yield this.crmS.populateContacts(),this.saving=!1});delete=()=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Contact"))&&this.contact.id&&(yield this.dbS.delete({id:this.contact.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.crmS.populateContacts(),this.nS.sCP("crm-contact-list")}});isReady=()=>(this.contact.value.status||"").substring(0,5).toLowerCase()==="ready";canBrowse=()=>this.isReady()&&!!this.contact.value.website&&!!this.contact.id&&!this.initiatingBrowse;initiatingBrowse=!1;browse=()=>E(this,null,function*(){this.initiatingBrowse=!0,yield this.dbS.insertTask({type:"browseContact",data:this.contact.id}),yield this.prepare(),this.initiatingBrowse=!1});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(je),w(un),w(xt))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-contact"]],standalone:!0,features:[j],decls:95,vars:34,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],[1,"ms-auto"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-3","text-danger",3,"click"],[1,"fas","fa-trash","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],["type","button",1,"btn","btn-sm","btn-outline-success","ms-3"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"card","mb-3"],[1,"input-group","input-group-sm","mb-1"],[1,"input-group-text"],["type","text","name","name","id","name",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","type","id","type",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","website","id","website",1,"form-control",3,"ngModelChange","ngModel"],["target","_blank",1,"btn","btn-outline-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square"],["type","text","name","avatar","id","avatar",1,"form-control",3,"ngModelChange","ngModel"],[1,"form-control","text-end"],[1,"table","table-sm","table-hover","text-start"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],["type","button",1,"btn","btn-sm","btn-outline-success",3,"click"],[1,"fas","fa-plus","me-2"],["type","text","name","address","id","address",1,"form-control",3,"ngModelChange","ngModel"],["id","cCity","name","cCity",1,"form-select",3,"ngModelChange","ngModel"],[3,"value"],["id","cState","name","cState",1,"form-select",3,"ngModelChange","change","ngModel"],["id","cCountry","name","cCountry",1,"form-select",3,"ngModelChange","change","ngModel"],["type","button",1,"btn","btn-sm","btn-outline-success","ms-3",3,"click"],[1,"fas","fa-repeat","me-2"],["alt","Avatar",1,"rounded-circle",2,"height","32px",3,"src"],[1,"p-0"],["type","email",1,"form-control","form-control-sm","m-0",3,"ngModelChange","name","id","ngModel"],[1,"fas","fa-trash","text-danger","ptr",3,"click"],["type","tel",1,"form-control","form-control-sm","m-0",3,"ngModelChange","name","id","ngModel"],["type","text","name","gmLink","id","gmLink",1,"form-control",3,"ngModelChange","ngModel","disabled"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),S(3,XO,2,1,"h5")(4,eN,2,0,"h5"),c(5,"span",3),f(6,"\xA0"),u(),c(7,"button",4),C("click",function(){return n.delete()}),v(8,"i",5),f(9," Delete"),u(),c(10,"button",6),C("click",function(){return n.save()}),v(11,"i",7),f(12," Save"),u(),S(13,tN,3,0,"button",8),u()(),c(14,"div",9),v(15,"hr"),u(),c(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"span",14),f(21,"Name"),u(),c(22,"input",15),k("ngModelChange",function(r){return F(n.contact.value.name,r)||(n.contact.value.name=r),r}),u()(),c(23,"div",13)(24,"span",14),f(25,"Type"),u(),c(26,"input",16),k("ngModelChange",function(r){return F(n.contact.value.type,r)||(n.contact.value.type=r),r}),u()(),c(27,"div",13)(28,"span",14),f(29,"Website"),u(),c(30,"input",17),k("ngModelChange",function(r){return F(n.contact.value.website,r)||(n.contact.value.website=r),r}),u(),c(31,"a",18),v(32,"i",19),u()(),c(33,"div",13)(34,"span",14),f(35,"Avatar Url"),u(),c(36,"input",20),k("ngModelChange",function(r){return F(n.contact.value.avatar,r)||(n.contact.value.avatar=r),r}),u(),S(37,nN,4,2),u(),c(38,"div",13)(39,"span",14),f(40,"Email Addresses"),u(),c(41,"span",21)(42,"table",22)(43,"thead")(44,"tr")(45,"th"),f(46,"Address"),u(),c(47,"th",23),v(48,"i",24),u()()(),c(49,"tbody"),ee(50,iN,5,5,"tr",null,Yt),u()(),c(52,"button",25),C("click",function(){return n.addEmail()}),v(53,"i",26),f(54," Add New "),u()()(),c(55,"div",13)(56,"span",14),f(57,"Phone Numbers"),u(),c(58,"span",21)(59,"table",22)(60,"thead")(61,"tr")(62,"th"),f(63,"Number"),u(),c(64,"th",23),v(65,"i",24),u()()(),c(66,"tbody"),ee(67,oN,5,5,"tr",null,Yt),u()(),c(69,"button",25),C("click",function(){return n.addPhone()}),v(70,"i",26),f(71," Add New "),u()()(),c(72,"div",13)(73,"span",14),f(74,"Address"),u(),c(75,"input",27),k("ngModelChange",function(r){return F(n.contact.value.address,r)||(n.contact.value.address=r),r}),u()(),c(76,"div",13)(77,"span",14),f(78,"City"),u(),c(79,"select",28),k("ngModelChange",function(r){return F(n.contact.value.city,r)||(n.contact.value.city=r),r}),ee(80,rN,2,2,"option",29,Gp),u()(),c(82,"div",13)(83,"span",14),f(84,"State"),u(),c(85,"select",30),k("ngModelChange",function(r){return F(n.contact.value.state,r)||(n.contact.value.state=r),r}),C("change",function(){return n.populateCities()}),ee(86,sN,2,2,"option",29,Gp),u()(),c(88,"div",13)(89,"span",14),f(90,"Country"),u(),c(91,"select",31),k("ngModelChange",function(r){return F(n.contact.value.country,r)||(n.contact.value.country=r),r}),C("change",function(){return n.populateStates()}),ee(92,aN,2,3,"option",29,Gp),u()(),S(94,lN,6,5,"div",13),u()()()()),i&2&&(h(3),I(n.contact.value.name?3:4),h(7),A("disabled",n.saving),h(3),I(n.canBrowse()?13:-1),h(7),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.type),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.website),h(),A("href",n.contact.value.website,Bn),h(3),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.avatar),h(),I(n.contact.value.avatar?37:-1),h(2),Ce("width",n.labelWidth,"px"),h(11),te(n.contact.value.emailAddresses),h(6),Ce("width",n.labelWidth,"px"),h(11),te(n.contact.value.phoneNumbers),h(6),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.address),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.city),h(),te(n.cities.values()),h(3),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.state),h(),te(n.states.values()),h(3),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.country),h(),te(n.gS.countries.values()),h(2),I(n.contact.value.googleValues?94:-1))},dependencies:[be,nn,on,it,It,Pe,Ne,Cc]})};function cN(t,e){if(t&1&&v(0,"div",11),t&2){let i=y();A("options",i.chartOption)}}var Kc=class t{constructor(e,i,n){this.crmS=e;this.gS=i;this.dbS=n}chartOption={legend:{},tooltip:{},xAxis:{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{rotate:45}},yAxis:{}};isReady=!1;chartType="line";campaign={id:"",type:"campaign",value:{}};ngOnInit(){return E(this,null,function*(){yield this.crmS.populateCampaigns(),this.crmS.populateEmailTemplates(),this.gS.populateCountries(),this.crmS.currentCampaign!==""&&this.crmS.campaigns.has(this.crmS.currentCampaign)&&(this.campaign=Y({},this.crmS.campaigns.get(this.crmS.currentCampaign)),this.campaign.value.country===0&&(this.campaign.value.country="0")),this.prepareData()})}ngOnDestroy(){this.crmS.currentCampaign=""}prepareData=()=>E(this,null,function*(){this.isReady=!1;let e=yield this.dbS.campaignMails(this.campaign),i=new Set,n=new Set,o={};for(let s of e)s.status="",s.value.isAccepted===!0&&(s.status="accepted",s.when=s.value.acceptedWhen),s.value.isDelivered===!0&&(s.status="delivered",s.when=s.value.deliveredWhen),s.value.isOpened===!0&&(s.status="opened",s.when=s.value.openedWhen),s.value.isClicked===!0&&(s.status="clicked",s.when=s.value.clickedWhen),s.value.isUnsubscribed===!0&&(s.status="unsubscribed",s.when=s.value.unsubscribedWhen),s.value.isComplained===!0&&(s.status="complained",s.when=s.value.complainedWhen),s.value.isFailed===!0&&(s.status="failed",s.when=s.value.failedWhen),s.status===""&&(s.status=s.value.status,s.when=s.value.when),s.when=s.when.substring(0,10),i.add(s.status),n.add(s.when),o[s.when]??={},o[s.when][s.status]??=0,o[s.when][s.status]++;let r=Object.keys(o).sort();this.chartOption.dataset={dimensions:["when",...Array.from(i)],source:[...r.map(s=>Y({when:s},o[s]))]},this.chartOption.series=Array.from(i).map(s=>({type:this.chartType,stack:"x"})),this.isReady=!0});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign-stats"]],standalone:!0,features:[nt([Hc()]),j],decls:19,vars:6,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-rotate","me-2"],[1,"ms-2"],["id","cTemplate","name","cTemplate",1,"form-select","form-select-sm",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"row","mt-0"],[1,"row"],[1,"col"],["echarts","",1,"stats-chart",3,"options"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4),u(),c(5,"button",3),C("click",function(){return n.prepareData()}),v(6,"i",4),f(7," Refresh "),u(),c(8,"form",5)(9,"select",6),k("ngModelChange",function(r){return F(n.chartType,r)||(n.chartType=r),r}),C("change",function(){return n.prepareData()}),c(10,"option",7),f(11,"Bar Chart"),u(),c(12,"option",7),f(13,"Line Chart"),u()()()()(),c(14,"div",8),v(15,"hr"),u(),c(16,"div",9)(17,"div",10),S(18,cN,1,1,"div",11),u()()()),i&2&&(h(4),B("Campaign Stats: ",n.campaign.value.name,""),h(),A("disabled",!n.isReady),h(4),R("ngModel",n.chartType),h(),A("value","bar"),h(2),A("value","line"),h(6),I(n.isReady?18:-1))},dependencies:[be,tn,nn,on,It,Pe,en,Ne,Lt,ly],styles:[".stats-chart[_ngcontent-%COMP%]{height:calc(100vh - 200px)}"]})};var Wp=(t,e)=>e.name;function uN(t,e){if(t&1){let i=U();c(0,"a",11),C("click",function(){M(i);let o=y(2).$implicit,r=y();return T(r.nS.sCP(o.link))}),v(1,"i"),f(2),u()}if(t&2){let i=y(2).$implicit;h(),cr("",i.icon," me-1"),h(),B(" ",i.name," ")}}function dN(t,e){if(t&1){let i=U();c(0,"a",14),C("click",function(){M(i);let o=y().$implicit,r=y(6);return T(r.nS.sCP(o.link))}),v(1,"i"),f(2),u()}if(t&2){let i=y().$implicit;h(),cr("",i.icon," ms-3 me-1"),h(),B(" ",i.name,"")}}function fN(t,e){if(t&1&&S(0,dN,3,4,"a",15),t&2){let i=e.$implicit,n=y(6);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function pN(t,e){if(t&1){let i=U();c(0,"a",14),C("click",function(){M(i);let o=y().$implicit,r=y(4);return T(r.nS.sCP(o.link))}),v(1,"i"),f(2),u(),ee(3,fN,1,1,null,null,Wp)}if(t&2){let i=y().$implicit;h(),cr("",i.icon," me-1"),h(),B(" ",i.name,""),h(),te(i.children)}}function hN(t,e){if(t&1&&S(0,pN,5,4),t&2){let i=e.$implicit,n=y(4);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function mN(t,e){if(t&1&&(c(0,"a",12),v(1,"i"),f(2),u(),c(3,"div",13),ee(4,hN,1,1,null,null,Wp),u()),t&2){let i=y(2).$implicit;h(),cr("",i.icon," me-1"),h(),B(" ",i.name," "),h(2),te(i.children)}}function gN(t,e){if(t&1&&(c(0,"a",12),v(1,"i"),f(2),u(),c(3,"div",13)(4,"a",15),f(5,"Coming soon, stay tuned"),u()()),t&2){let i=y(2).$implicit;h(),cr("",i.icon," me-1"),h(),B(" ",i.name," ")}}function _N(t,e){if(t&1&&(c(0,"li",9),S(1,uN,3,4,"a",10)(2,mN,6,4)(3,gN,6,4),u()),t&2){let i=y().$implicit;h(),I(!i.children&&!i.isComingSoon?1:-1),h(),I(i.children?2:-1),h(),I(i.isComingSoon?3:-1)}}function vN(t,e){if(t&1&&S(0,_N,4,3,"li",9),t&2){let i=e.$implicit,n=y();I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function yN(t,e){t&1&&v(0,"lnf-optimization-home")}function CN(t,e){t&1&&v(0,"lnf-optimization-image-settings")}function bN(t,e){t&1&&v(0,"lnf-optimization-image-bulk")}function DN(t,e){t&1&&v(0,"lnf-optimization-image-supervised")}function wN(t,e){t&1&&v(0,"lnf-ai-content-settings")}function EN(t,e){t&1&&v(0,"lnf-crm-home")}function SN(t,e){t&1&&v(0,"lnf-crm-settings")}function MN(t,e){t&1&&v(0,"lnf-crm-campaign-list")}function TN(t,e){t&1&&v(0,"lnf-crm-campaign")}function IN(t,e){t&1&&v(0,"lnf-crm-campaign-stats")}function xN(t,e){t&1&&v(0,"lnf-crm-email-template-list")}function ON(t,e){t&1&&v(0,"lnf-crm-email-template")}function NN(t,e){t&1&&v(0,"lnf-crm-explorer")}function AN(t,e){t&1&&v(0,"lnf-crm-explore-list")}function RN(t,e){t&1&&v(0,"lnf-crm-contact")}function kN(t,e){t&1&&v(0,"lnf-crm-contact-list")}function FN(t,e){t&1&&v(0,"lnf-subscription-home")}function PN(t,e){t&1&&v(0,"lnf-maintenance-home")}function LN(t,e){t&1&&v(0,"lnf-maintenance-cron")}function VN(t,e){t&1&&v(0,"lnf-maintenance-mailgun")}function BN(t,e){t&1&&v(0,"lnf-home")}function jN(t,e){t&1&&v(0,"lnf-home")}var Zc=class t{constructor(e,i){this.nS=e;this.sS=i}collapsed=!0;ngOnInit(){this.sS.checkRegistration()}static \u0275fac=function(i){return new(i||t)(w(we),w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-root"]],standalone:!0,features:[j],decls:34,vars:4,consts:[[1,"navbar","navbar-expand-md","navbar-light","bg-body-tertiary","border-bottom","shadow","shadow-sm"],[1,"container-fluid"],["src","luckynode-menuicon.svg","alt","LuckyNode Logo","width","24","height","24",1,"me-2","ptr",3,"click"],[1,"navbar-brand","h3","my-auto","ptr",3,"click"],["type","button","aria-controls","navbarContent","aria-label","Toggle navigation",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],["id","navbarContent",1,"navbar-collapse"],[1,"navbar-nav","ms-auto"],[2,"height","calc(100vh - 50px)","overflow","auto"],["ngbDropdown","",1,"nav-item","me-3"],["tabindex","0","role","button",1,"nav-link","fw-medium"],["tabindex","0","role","button",1,"nav-link","fw-medium",3,"click"],["tabindex","0","ngbDropdownToggle","","role","button",1,"nav-link","fw-medium"],["ngbDropdownMenu","","aria-labelledby","navbarDropdown2",1,"dropdown-menu","dropdown-menu-end"],["ngbDropdownItem","",1,"ptr",3,"click"],["ngbDropdownItem","",1,"ptr"]],template:function(i,n){if(i&1&&(c(0,"nav",0)(1,"div",1)(2,"img",2),C("click",function(){return n.nS.sCP("home")}),u(),c(3,"span",3),C("click",function(){return n.nS.sCP("home")}),f(4," LuckyNode "),u(),c(5,"button",4),C("click",function(){return n.collapsed=!n.collapsed}),v(6,"span",5),u(),c(7,"div",6)(8,"ul",7),ee(9,vN,1,1,null,null,Wp),u()()()(),c(11,"div",8),S(12,yN,1,0,"lnf-optimization-home")(13,CN,1,0,"lnf-optimization-image-settings")(14,bN,1,0,"lnf-optimization-image-bulk")(15,DN,1,0,"lnf-optimization-image-supervised")(16,wN,1,0,"lnf-ai-content-settings")(17,EN,1,0,"lnf-crm-home")(18,SN,1,0,"lnf-crm-settings")(19,MN,1,0,"lnf-crm-campaign-list")(20,TN,1,0,"lnf-crm-campaign")(21,IN,1,0,"lnf-crm-campaign-stats")(22,xN,1,0,"lnf-crm-email-template-list")(23,ON,1,0,"lnf-crm-email-template")(24,NN,1,0,"lnf-crm-explorer")(25,AN,1,0,"lnf-crm-explore-list")(26,RN,1,0,"lnf-crm-contact")(27,kN,1,0,"lnf-crm-contact-list")(28,FN,1,0,"lnf-subscription-home")(29,PN,1,0,"lnf-maintenance-home")(30,LN,1,0,"lnf-maintenance-cron")(31,VN,1,0,"lnf-maintenance-mailgun")(32,BN,1,0,"lnf-home")(33,jN,1,0,"lnf-home"),u()),i&2){let o;h(5),Mt("aria-expanded",!n.collapsed),h(2),Qe("collapse",n.collapsed),h(2),te(n.nS.links),h(3),I((o=n.nS.currentPage)==="optimization-home"?12:o==="optimization-image-settings"?13:o==="optimization-image-bulk"?14:o==="optimization-image-supervised"?15:o==="ai-content-settings"?16:o==="crm-home"?17:o==="crm-settings"?18:o==="crm-campaign-list"?19:o==="crm-campaign"?20:o==="crm-campaign-stats"?21:o==="crm-email-template-list"?22:o==="crm-email-template"?23:o==="crm-explorer"?24:o==="crm-explore-list"?25:o==="crm-contact"?26:o==="crm-contact-list"?27:o==="subscription-home"?28:o==="maintenance-home"?29:o==="maintenance-cron"?30:o==="maintenance-mailgun"?31:o==="home"?32:33)}},dependencies:[Rr,iy,gc,ny,Vp,Lp,xc,Ic,kr,Fr,Pr,Oc,Nc,Ac,kc,zc,Kc,$c,Yc,Pc,Bc,jc,qc,Rc,Lc,Vc,Uc],styles:[".navbar[_ngcontent-%COMP%] .megamenu[_ngcontent-%COMP%]{padding:1rem;z-index:99999}@media all and (min-width: 992px){.navbar[_ngcontent-%COMP%] .has-megamenu[_ngcontent-%COMP%]{position:static!important}.navbar[_ngcontent-%COMP%] .megamenu[_ngcontent-%COMP%]{left:0;right:0;width:100%;margin-top:0}}@media (max-width: 991px){.navbar.fixed-top[_ngcontent-%COMP%] .navbar-collapse[_ngcontent-%COMP%], .navbar.sticky-top[_ngcontent-%COMP%] .navbar-collapse[_ngcontent-%COMP%]{overflow-y:auto;max-height:90vh;margin-top:10px}}"]})};X_(Zc,nv).catch(t=>console.error(t)); -
luckynode/tags/1.0.7/luckynode.php
r3185011 r3186010 3 3 /** 4 4 * @link https://plugin.luckynode.com/ 5 * @version 1.0. 65 * @version 1.0.7 6 6 * @package LuckyNode 7 7 * … … 10 10 * Plugin URI: https://plugin.luckynode.com/ 11 11 * Description: LuckyNode - Optimize Images | CRM | AI (Coming Soon) 12 * Version: 1.0. 612 * Version: 1.0.7 13 13 * Requires at least: 6.4 14 14 * Tested up to: 6.6.2 -
luckynode/tags/1.0.7/readme.txt
r3185011 r3186010 4 4 Requires at least: 6.6 5 5 Tested up to: 6.6.2 6 Stable tag: 1.0. 66 Stable tag: 1.0.7 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 44 44 == Changelog == 45 45 46 = 1.0.7 - 11.Nov.2024 = 47 * Bug fixes about image optimization 48 49 = 1.0.6 - 10.Nov.2024 = 50 * Image optimization issue is fixed when optimization settings are not yet defined by the user 51 46 52 = 1.0.5 - 10.Nov.2024 = 47 53 * Home screen updates -
luckynode/tags/1.0.7/src/luckynode-optimization-image.php
r3184204 r3186010 47 47 if ($settings->convertTo === "WebP" || $settings->convertTo === "Avif") { 48 48 $mime = wp_get_image_mime($filePath); 49 $imageCreate = "imagecreatefrom" . str_replace("jpg", "jpg", explode("/", $mime)[1]);49 $imageCreate = "imagecreatefrom" . explode("/", $mime)[1]; 50 50 if (is_callable($imageCreate)) { 51 51 $sourceImage = $imageCreate($filePath); … … 56 56 } 57 57 if ($sourceImage) { 58 if (!imageistruecolor($sourceImage)) imagepalettetotruecolor($sourceImage); 58 59 $newFormat = strtolower($settings->convertTo); 59 60 $newMime = "image/" . $newFormat; … … 185 186 $doc->loadHTML($image); 186 187 $newImage = $doc->getElementsByTagName('img')[0]; 188 if ($newImage->getAttribute("srcset") === "") { 189 return $image; 190 } 191 if ($newImage->getAttribute("title") === "img-2") { 192 error_log(json_encode($newImage->getAttribute("srcset"))); 193 error_log(json_encode($newImage->getAttribute("title"))); 194 error_log(json_encode($newImage->getAttribute("title"))); 195 error_log(json_encode($newImage->getAttribute("title"))); 196 error_log(json_encode($newImage->getAttribute("title"))); 197 error_log(json_encode($newImage->getAttribute("title"))); 198 error_log(json_encode($newImage->getAttribute("title"))); 199 } 187 200 $srcSetArray = explode("w, ", $newImage->getAttribute("srcset")); 188 201 $srcSetArray[sizeof($srcSetArray) - 1] = substr($srcSetArray[sizeof($srcSetArray) - 1], 0, -1); … … 236 249 register_rest_route( 237 250 $this->slug . '/v1', 251 '/optimization/image/upload-dir', 252 array( 253 array( 254 'methods' => WP_REST_Server::READABLE, 255 'callback' => array($this, 'uploadDir'), 256 'permission_callback' => array($conf, 'permission_callback'), 257 ) 258 ) 259 ); 260 register_rest_route( 261 $this->slug . '/v1', 238 262 '/optimization/image/image-sizes', 239 263 array( … … 321 345 $params = json_decode($request->get_body(), false); 322 346 $id = $params->id; 347 $mediumFiles = $this->getMediumFiles($params); 348 349 $guid = ""; 350 351 if (!property_exists($params, "media_details") || !property_exists($params->media_details, "file")) return "success"; 352 323 353 $pathInfo = pathinfo($params->media_details->file); 324 $dir = ABSPATH . "wp-content/uploads/" . $pathInfo["dirname"] . "/"; 325 $fullPath = ABSPATH . "wp-content/uploads/" . $params->media_details->file; 354 $fullPath = $this->uploadDir(true)->basedir . "/" . $mediumFiles->currentFile; 326 355 $result = $this->createConvertedFile($fullPath, $params->source_url); 327 356 $oldUrls = []; … … 331 360 $guid = $result["newUrl"]; 332 361 333 $sizes = $params->media_details->sizes; 334 foreach ($sizes as $key => $value) { 335 $sizeFullPath = $dir . $value->file; 336 $oldUrls[$key] = ["url" => $value->source_url, "file" => $value->file]; 337 if ($key !== "full" && file_exists($sizeFullPath)) { 338 wp_delete_file($sizeFullPath); 362 363 364 $dir = pathinfo($fullPath)["dirname"]; 365 if (property_exists($params, "media_details") && property_exists($params->media_details, "sizes")) { 366 $sizes = $params->media_details->sizes; 367 foreach ($sizes as $key => $value) { 368 $sizeFullPath = $dir . $value->file; 369 $oldUrls[$key] = ["url" => $value->source_url, "file" => $value->file]; 370 if ($key !== "full" && file_exists($sizeFullPath)) { 371 wp_delete_file($sizeFullPath); 372 } 339 373 } 340 374 } … … 346 380 $output["original_image"] = $pathInfo["basename"]; 347 381 $output["luckynode_optimized"] = "luckynode_converted"; 382 $originalFileSize = filesize($this->uploadDir(true)->basedir . "/" . $mediumFiles->currentFile); 383 $convertedFileSize = filesize($newPath); 384 $output["luckynode_stats"] = [ 385 "originalFileSize" => $originalFileSize, 386 "convertedFileSize" => $convertedFileSize, 387 ]; 348 388 wp_update_attachment_metadata($id, $output); 349 389 … … 372 412 } 373 413 414 // public getMediumFiles = async ( medium: { id: number, source_url: string, media_details?: { luckynode_optimized?: string, original_image?: string } } ) => { 415 function getMediumFiles($medium) { 416 $uploadDir = $this->uploadDir(); 417 418 $toReturn = new stdClass(); 419 $toReturn->currentFile = ""; 420 $toReturn->originalFile = ""; 421 422 if (property_exists($medium, "source_url")) $toReturn->currentFile = str_replace($uploadDir->baseurl . "/", "", $medium->source_url); 423 if ($toReturn->currentFile === "" && property_exists($medium, "id")) $toReturn->currentFile = str_replace($uploadDir->baseurl . "/", "", wp_get_attachment_url($medium->id)); 424 if (property_exists($medium, "media_details") && property_exists($medium->media_details, "luckynode_optimized") && property_exists($medium->media_details, "original_image")) { 425 $ta = explode("/", $toReturn->currentFile); 426 array_pop($ta); 427 array_push($ta, $medium->media_details->original_image); 428 $toReturn->originalFile = implode("/", $ta); 429 } 430 return $toReturn; 431 } 432 374 433 function useOriginal(WP_REST_Request $request) { 375 434 … … 380 439 $params = json_decode($request->get_body(), false); 381 440 $id = $params->id; 382 $guid = $this->str_lreplace(pathinfo($params->media_details->file, PATHINFO_BASENAME), $params->media_details->original_image, $params->source_url); 441 $mediumFiles = $this->getMediumFiles($params); 442 $guid = ""; 443 if (property_exists($params, "guid") && property_exists($params->guid, "rendered")) $guid = $params->guid->rendered; 444 if ($guid === "" && property_exists($params, "source_url")) $guid = $this->str_lreplace($mediumFiles->currentFile, $mediumFiles->originalFile, $params->source_url); 445 383 446 $oldUrls = []; 384 $source = $params->media_details->original_image; 385 $pathInfo = pathinfo($params->media_details->file); 386 $dir = ABSPATH . "wp-content/uploads/" . $pathInfo["dirname"] . "/"; 387 388 $fullPath = $dir . $source; 447 $fullPath = $this->uploadDir(true)->basedir . "/" . $mediumFiles->originalFile; 389 448 $exists = file_exists($fullPath); 449 450 451 $dir = pathinfo($fullPath)["dirname"]; 390 452 391 453 if (!$exists) { … … 393 455 } 394 456 395 $sizes = $params->media_details->sizes; 396 foreach ($sizes as $key => $value) { 397 $sizeFullPath = $dir . $value->file; 398 $oldUrls[$key] = ["url" => $value->source_url, "file" => $value->file]; 399 if (file_exists($sizeFullPath)) { 400 wp_delete_file($sizeFullPath); 457 if (property_exists($params, "media_details") && property_exists($params->media_details, "sizes")) { 458 $sizes = $params->media_details->sizes; 459 foreach ($sizes as $key => $value) { 460 $sizeFullPath = $dir . "/" . $value->file; 461 $oldUrls[$key] = ["url" => $value->source_url, "file" => $value->file]; 462 if (file_exists($sizeFullPath)) { 463 wp_delete_file($sizeFullPath); 464 } 401 465 } 402 466 } … … 409 473 unset($output["media_details"]["original_image"]); 410 474 unset($output["media_details"]["luckynode_optimized"]); 475 unset($output["media_details"]["luckynode_stats"]); 411 476 wp_update_attachment_metadata($id, $output); 412 477 foreach ($oldUrls as $key => $oldUrlValue) { … … 458 523 function imageSizes(WP_REST_Request $request) { 459 524 return $this->get_image_sizes(); 525 } 526 527 function uploadDir($isFull = false) { 528 $ud = wp_get_upload_dir(); 529 $toReturn = new stdClass(); 530 $toReturn->baseurl = $ud["baseurl"]; 531 $toReturn->url = $ud["url"]; 532 $toReturn->subdir = $ud["subdir"]; 533 if ($isFull) $toReturn->basedir = $ud["basedir"]; 534 return $toReturn; 460 535 } 461 536 -
luckynode/tags/1.0.7/src/version.txt
r3185011 r3186010 1 1.0. 61 1.0.7 -
luckynode/trunk/dist/luckynodefe/browser/main.js
r3185011 r3186010 1 import{a as Y,b as Se,g as E}from"./chunk-GAL4ENT6.js";function ih(t,e){return Object.is(t,e)}var Ke=null,$s=!1,Gs=1,Tn=Symbol("SIGNAL");function ce(t){let e=Ke;return Ke=t,e}function oh(){return Ke}var jr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ys(t){if($s)throw new Error("");if(Ke===null)return;Ke.consumerOnSignalRead(t);let e=Ke.nextProducerIndex++;if(Zs(Ke),e<Ke.producerNode.length&&Ke.producerNode[e]!==t&&Br(Ke)){let i=Ke.producerNode[e];Ks(i,Ke.producerIndexOfThis[e])}Ke.producerNode[e]!==t&&(Ke.producerNode[e]=t,Ke.producerIndexOfThis[e]=Br(Ke)?lh(t,Ke,e):0),Ke.producerLastReadVersion[e]=t.version}function vy(){Gs++}function rh(t){if(!(Br(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Gs)){if(!t.producerMustRecompute(t)&&!ru(t)){t.dirty=!1,t.lastCleanEpoch=Gs;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Gs}}function sh(t){if(t.liveConsumerNode===void 0)return;let e=$s;$s=!0;try{for(let i of t.liveConsumerNode)i.dirty||yy(i)}finally{$s=e}}function ah(){return Ke?.consumerAllowSignalWrites!==!1}function yy(t){t.dirty=!0,sh(t),t.consumerMarkedDirty?.(t)}function qs(t){return t&&(t.nextProducerIndex=0),ce(t)}function ou(t,e){if(ce(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Br(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)Ks(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ru(t){Zs(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(rh(i),n!==i.version))return!0}return!1}function su(t){if(Zs(t),Br(t))for(let e=0;e<t.producerNode.length;e++)Ks(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function lh(t,e,i){if(ch(t),t.liveConsumerNode.length===0&&uh(t))for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=lh(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function Ks(t,e){if(ch(t),t.liveConsumerNode.length===1&&uh(t))for(let n=0;n<t.producerNode.length;n++)Ks(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];Zs(o),o.producerIndexOfThis[n]=e}}function Br(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Zs(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function ch(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function uh(t){return t.producerNode!==void 0}function dh(t){let e=Object.create(by);e.computation=t;let i=()=>{if(rh(e),Ys(e),e.value===Ws)throw e.error;return e.value};return i[Tn]=e,i}var nu=Symbol("UNSET"),iu=Symbol("COMPUTING"),Ws=Symbol("ERRORED"),by=Se(Y({},jr),{value:nu,dirty:!0,error:null,equal:ih,producerMustRecompute(t){return t.value===nu||t.value===iu},producerRecomputeValue(t){if(t.value===iu)throw new Error("Detected cycle in computations.");let e=t.value;t.value=iu;let i=qs(t),n;try{n=t.computation()}catch(o){n=Ws,t.error=o}finally{ou(t,i)}if(e!==nu&&e!==Ws&&n!==Ws&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function Cy(){throw new Error}var fh=Cy;function ph(){fh()}function hh(t){fh=t}var Dy=null;function mh(t){let e=Object.create(au);e.value=t;let i=()=>(Ys(e),e.value);return i[Tn]=e,i}function Qs(t,e){ah()||ph(),t.equal(t.value,e)||(t.value=e,wy(t))}function gh(t,e){ah()||ph(),Qs(t,e(t.value))}var au=Se(Y({},jr),{equal:ih,value:void 0});function wy(t){t.version++,vy(),sh(t),Dy?.()}function W(t){return typeof t=="function"}function No(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Js=No(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription:1 import{a as Y,b as Se,g as E}from"./chunk-GAL4ENT6.js";function nh(t,e){return Object.is(t,e)}var Ke=null,zs=!1,$s=1,Tn=Symbol("SIGNAL");function ce(t){let e=Ke;return Ke=t,e}function ih(){return Ke}var Ur={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ws(t){if(zs)throw new Error("");if(Ke===null)return;Ke.consumerOnSignalRead(t);let e=Ke.nextProducerIndex++;if(Ks(Ke),e<Ke.producerNode.length&&Ke.producerNode[e]!==t&&jr(Ke)){let i=Ke.producerNode[e];qs(i,Ke.producerIndexOfThis[e])}Ke.producerNode[e]!==t&&(Ke.producerNode[e]=t,Ke.producerIndexOfThis[e]=jr(Ke)?ah(t,Ke,e):0),Ke.producerLastReadVersion[e]=t.version}function vy(){$s++}function oh(t){if(!(jr(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===$s)){if(!t.producerMustRecompute(t)&&!ou(t)){t.dirty=!1,t.lastCleanEpoch=$s;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=$s}}function rh(t){if(t.liveConsumerNode===void 0)return;let e=zs;zs=!0;try{for(let i of t.liveConsumerNode)i.dirty||yy(i)}finally{zs=e}}function sh(){return Ke?.consumerAllowSignalWrites!==!1}function yy(t){t.dirty=!0,rh(t),t.consumerMarkedDirty?.(t)}function Ys(t){return t&&(t.nextProducerIndex=0),ce(t)}function iu(t,e){if(ce(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(jr(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)qs(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ou(t){Ks(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(oh(i),n!==i.version))return!0}return!1}function ru(t){if(Ks(t),jr(t))for(let e=0;e<t.producerNode.length;e++)qs(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function ah(t,e,i){if(lh(t),t.liveConsumerNode.length===0&&ch(t))for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=ah(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function qs(t,e){if(lh(t),t.liveConsumerNode.length===1&&ch(t))for(let n=0;n<t.producerNode.length;n++)qs(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];Ks(o),o.producerIndexOfThis[n]=e}}function jr(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ks(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function lh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function ch(t){return t.producerNode!==void 0}function uh(t){let e=Object.create(Cy);e.computation=t;let i=()=>{if(oh(e),Ws(e),e.value===Gs)throw e.error;return e.value};return i[Tn]=e,i}var tu=Symbol("UNSET"),nu=Symbol("COMPUTING"),Gs=Symbol("ERRORED"),Cy=Se(Y({},Ur),{value:tu,dirty:!0,error:null,equal:nh,producerMustRecompute(t){return t.value===tu||t.value===nu},producerRecomputeValue(t){if(t.value===nu)throw new Error("Detected cycle in computations.");let e=t.value;t.value=nu;let i=Ys(t),n;try{n=t.computation()}catch(o){n=Gs,t.error=o}finally{iu(t,i)}if(e!==tu&&e!==Gs&&n!==Gs&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function by(){throw new Error}var dh=by;function fh(){dh()}function ph(t){dh=t}var Dy=null;function hh(t){let e=Object.create(su);e.value=t;let i=()=>(Ws(e),e.value);return i[Tn]=e,i}function Zs(t,e){sh()||fh(),t.equal(t.value,e)||(t.value=e,wy(t))}function mh(t,e){sh()||fh(),Zs(t,e(t.value))}var su=Se(Y({},Ur),{equal:nh,value:void 0});function wy(t){t.version++,vy(),rh(t),Dy?.()}function W(t){return typeof t=="function"}function Ao(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Qs=Ao(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription: 2 2 ${i.map((n,o)=>`${o+1}) ${n.toString()}`).join(` 3 `)}`:"",this.name="UnsubscriptionError",this.errors=i});function Gi(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var je=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let r of i)r.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(W(n))try{n()}catch(r){e=r instanceof Js?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{_h(r)}catch(s){e=e??[],s instanceof Js?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Js(e)}}add(e){var i;if(e&&e!==this)if(this.closed)_h(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&Gi(i,e)}remove(e){let{_finalizers:i}=this;i&&Gi(i,e),e instanceof t&&e._removeParent(this)}};je.EMPTY=(()=>{let t=new je;return t.closed=!0,t})();var lu=je.EMPTY;function Xs(t){return t instanceof je||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function _h(t){W(t)?t():t.unsubscribe()}var pn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ao={setTimeout(t,e,...i){let{delegate:n}=Ao;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=Ao;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ea(t){Ao.setTimeout(()=>{let{onUnhandledError:e}=pn;if(e)e(t);else throw t})}function $n(){}var vh=cu("C",void 0,void 0);function yh(t){return cu("E",void 0,t)}function bh(t){return cu("N",t,void 0)}function cu(t,e,i){return{kind:t,value:e,error:i}}var Wi=null;function Ro(t){if(pn.useDeprecatedSynchronousErrorHandling){let e=!Wi;if(e&&(Wi={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=Wi;if(Wi=null,i)throw n}}else t()}function Ch(t){pn.useDeprecatedSynchronousErrorHandling&&Wi&&(Wi.errorThrown=!0,Wi.error=t)}var Yi=class extends je{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Xs(e)&&e.add(this)):this.destination=My}static create(e,i,n){return new hn(e,i,n)}next(e){this.isStopped?du(bh(e),this):this._next(e)}error(e){this.isStopped?du(yh(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?du(vh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Ey=Function.prototype.bind;function uu(t,e){return Ey.call(t,e)}var fu=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){ta(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){ta(n)}else ta(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){ta(i)}}},hn=class extends Yi{constructor(e,i,n){super();let o;if(W(e)||!e)o={next:e??void 0,error:i??void 0,complete:n??void 0};else{let r;this&&pn.useDeprecatedNextContext?(r=Object.create(e),r.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&uu(e.next,r),error:e.error&&uu(e.error,r),complete:e.complete&&uu(e.complete,r)}):o=e}this.destination=new fu(o)}};function ta(t){pn.useDeprecatedSynchronousErrorHandling?Ch(t):ea(t)}function Sy(t){throw t}function du(t,e){let{onStoppedNotification:i}=pn;i&&Ao.setTimeout(()=>i(t,e))}var My={closed:!0,next:$n,error:Sy,complete:$n};var ko=typeof Symbol=="function"&&Symbol.observable||"@@observable";function In(t){return t}function Dh(t){return t.length===0?In:t.length===1?t[0]:function(i){return t.reduce((n,o)=>o(n),i)}}var ee=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,o){let r=Iy(i)?i:new hn(i,n,o);return Ro(()=>{let{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=wh(n),new n((o,r)=>{let s=new hn({next:a=>{try{i(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[ko](){return this}pipe(...i){return Dh(i)(this)}toPromise(i){return i=wh(i),new i((n,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>n(r))})}}return t.create=e=>new t(e),t})();function wh(t){var e;return(e=t??pn.Promise)!==null&&e!==void 0?e:Promise}function Ty(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function Iy(t){return t&&t instanceof Yi||Ty(t)&&Xs(t)}function xy(t){return W(t?.lift)}function me(t){return e=>{if(xy(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(t,e,i,n,o){return new pu(t,e,i,n,o)}var pu=class extends Yi{constructor(e,i,n,o,r,s){super(e),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(l){e.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};var Eh=No(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new na(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new Eh}next(i){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Ro(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:o,observers:r}=this;return n||o?lu:(this.currentObservers=null,r.push(i),new je(()=>{this.currentObservers=null,Gi(r,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:o,isStopped:r}=this;n?i.error(o):r&&i.complete()}asObservable(){let i=new ee;return i.source=this,i}}return t.create=(e,i)=>new na(e,i),t})(),na=class extends he{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:lu}};var qi=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Ur={now(){return(Ur.delegate||Date).now()},delegate:void 0};var Gn=class extends he{constructor(e=1/0,i=1/0,n=Ur){super(),this._bufferSize=e,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,i)}next(e){let{isStopped:i,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;i||(n.push(e),!o&&n.push(r.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let i=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!e.closed;s+=n?1:2)e.next(r[s]);return this._checkFinalizedStatuses(e),i}_trimBuffer(){let{_bufferSize:e,_timestampProvider:i,_buffer:n,_infiniteTimeWindow:o}=this,r=(o?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!o){let s=i.now(),a=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}}};var ia=class extends je{constructor(e,i){super()}schedule(e,i=0){return this}};var Hr={setInterval(t,e,...i){let{delegate:n}=Hr;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=Hr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var oa=class extends ia{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let o=this.id,r=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(r,o,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(r,this.id,i),this}requestAsyncId(e,i,n=0){return Hr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&Hr.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,o;try{this.work(e)}catch(r){n=!0,o=r||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Gi(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var Fo=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};Fo.now=Ur.now;var ra=class extends Fo{constructor(e,i=Fo.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var xn=new ra(oa),hu=xn;var Wn=new ee(t=>t.complete());function sa(t){return t&&W(t.schedule)}function mu(t){return t[t.length-1]}function Po(t){return W(mu(t))?t.pop():void 0}function hi(t){return sa(mu(t))?t.pop():void 0}function Sh(t,e){return typeof mu(t)=="number"?t.pop():e}function Th(t,e,i,n){function o(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function a(p){try{d(n.next(p))}catch(m){s(m)}}function l(p){try{d(n.throw(p))}catch(m){s(m)}}function d(p){p.done?r(p.value):o(p.value).then(a,l)}d((n=n.apply(t,e||[])).next())})}function Mh(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ki(t){return this instanceof Ki?(this.v=t,this):new Ki(t)}function Ih(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),o,r=[];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(g){return function(D){return Promise.resolve(D).then(g,m)}}function a(g,D){n[g]&&(o[g]=function(x){return new Promise(function(O,N){r.push([g,x,O,N])>1||l(g,x)})},D&&(o[g]=D(o[g])))}function l(g,D){try{d(n[g](D))}catch(x){_(r[0][3],x)}}function d(g){g.value instanceof Ki?Promise.resolve(g.value.v).then(p,m):_(r[0][2],g)}function p(g){l("next",g)}function m(g){l("throw",g)}function _(g,D){g(D),r.shift(),r.length&&l(r[0][0],r[0][1])}}function xh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Mh=="function"?Mh(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(r){i[r]=t[r]&&function(s){return new Promise(function(a,l){s=t[r](s),o(a,l,s.done,s.value)})}}function o(r,s,a,l){Promise.resolve(l).then(function(d){r({value:d,done:a})},s)}}var Lo=t=>t&&typeof t.length=="number"&&typeof t!="function";function aa(t){return W(t?.then)}function la(t){return W(t[ko])}function ca(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function ua(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Oy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var da=Oy();function fa(t){return W(t?.[da])}function pa(t){return Ih(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:o}=yield Ki(i.read());if(o)return yield Ki(void 0);yield yield Ki(n)}}finally{i.releaseLock()}})}function ha(t){return W(t?.getReader)}function de(t){if(t instanceof ee)return t;if(t!=null){if(la(t))return Ny(t);if(Lo(t))return Ay(t);if(aa(t))return Ry(t);if(ca(t))return Oh(t);if(fa(t))return ky(t);if(ha(t))return Fy(t)}throw ua(t)}function Ny(t){return new ee(e=>{let i=t[ko]();if(W(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ay(t){return new ee(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function Ry(t){return new ee(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,ea)})}function ky(t){return new ee(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function Oh(t){return new ee(e=>{Py(t,e).catch(i=>e.error(i))})}function Fy(t){return Oh(pa(t))}function Py(t,e){var i,n,o,r;return Th(this,void 0,void 0,function*(){try{for(i=xh(t);n=yield i.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&(yield r.call(i))}finally{if(o)throw o.error}}e.complete()})}function Bt(t,e,i,n=0,o=!1){let r=e.schedule(function(){i(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function ma(t,e=0){return me((i,n)=>{i.subscribe(ue(n,o=>Bt(n,t,()=>n.next(o),e),()=>Bt(n,t,()=>n.complete(),e),o=>Bt(n,t,()=>n.error(o),e)))})}function ga(t,e=0){return me((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function Nh(t,e){return de(t).pipe(ga(e),ma(e))}function Ah(t,e){return de(t).pipe(ga(e),ma(e))}function Rh(t,e){return new ee(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function kh(t,e){return new ee(i=>{let n;return Bt(i,e,()=>{n=t[da](),Bt(i,e,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(s){i.error(s);return}r?i.complete():i.next(o)},0,!0)}),()=>W(n?.return)&&n.return()})}function _a(t,e){if(!t)throw new Error("Iterable cannot be null");return new ee(i=>{Bt(i,e,()=>{let n=t[Symbol.asyncIterator]();Bt(i,e,()=>{n.next().then(o=>{o.done?i.complete():i.next(o.value)})},0,!0)})})}function Fh(t,e){return _a(pa(t),e)}function Ph(t,e){if(t!=null){if(la(t))return Nh(t,e);if(Lo(t))return Rh(t,e);if(aa(t))return Ah(t,e);if(ca(t))return _a(t,e);if(fa(t))return kh(t,e);if(ha(t))return Fh(t,e)}throw ua(t)}function mn(t,e){return e?Ph(t,e):de(t)}function gn(...t){let e=hi(t);return mn(t,e)}function gu(t){return!!t&&(t instanceof ee||W(t.lift)&&W(t.subscribe))}var va=No(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Z(t,e){let i=typeof e=="object";return new Promise((n,o)=>{let r=!1,s;t.subscribe({next:a=>{s=a,r=!0},error:o,complete:()=>{r?n(s):i?n(e.defaultValue):o(new va)}})})}function On(t,e){let i=typeof e=="object";return new Promise((n,o)=>{let r=new hn({next:s=>{n(s),r.unsubscribe()},error:o,complete:()=>{i?n(e.defaultValue):o(new va)}});t.subscribe(r)})}function Lh(t){return t instanceof Date&&!isNaN(t)}function Me(t,e){return me((i,n)=>{let o=0;i.subscribe(ue(n,r=>{n.next(t.call(e,r,o++))}))})}var{isArray:Ly}=Array;function Vy(t,e){return Ly(e)?t(...e):t(e)}function ya(t){return Me(e=>Vy(t,e))}var{isArray:By}=Array,{getPrototypeOf:jy,prototype:Uy,keys:Hy}=Object;function Vh(t){if(t.length===1){let e=t[0];if(By(e))return{args:e,keys:null};if(zy(e)){let i=Hy(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function zy(t){return t&&typeof t=="object"&&jy(t)===Uy}function Bh(t,e){return t.reduce((i,n,o)=>(i[n]=e[o],i),{})}function jh(t,e,i,n,o,r,s,a){let l=[],d=0,p=0,m=!1,_=()=>{m&&!l.length&&!d&&e.complete()},g=x=>d<n?D(x):l.push(x),D=x=>{r&&e.next(x),d++;let O=!1;de(i(x,p++)).subscribe(ue(e,N=>{o?.(N),r?g(N):e.next(N)},()=>{O=!0},void 0,()=>{if(O)try{for(d--;l.length&&d<n;){let N=l.shift();s?Bt(e,s,()=>D(N)):D(N)}_()}catch(N){e.error(N)}}))};return t.subscribe(ue(e,g,()=>{m=!0,_()})),()=>{a?.()}}function gt(t,e,i=1/0){return W(e)?gt((n,o)=>Me((r,s)=>e(n,r,o,s))(de(t(n,o))),i):(typeof e=="number"&&(i=e),me((n,o)=>jh(n,o,t,i)))}function ba(t=1/0){return gt(In,t)}function Uh(){return ba(1)}function Zi(...t){return Uh()(mn(t,hi(t)))}function _u(t){return new ee(e=>{de(t()).subscribe(e)})}function vu(...t){let e=Po(t),{args:i,keys:n}=Vh(t),o=new ee(r=>{let{length:s}=i;if(!s){r.complete();return}let a=new Array(s),l=s,d=s;for(let p=0;p<s;p++){let m=!1;de(i[p]).subscribe(ue(r,_=>{m||(m=!0,d--),a[p]=_},()=>l--,void 0,()=>{(!l||!m)&&(d||r.next(n?Bh(n,a):a),r.complete())}))}});return e?o.pipe(ya(e)):o}var $y=["addListener","removeListener"],Gy=["addEventListener","removeEventListener"],Wy=["on","off"];function xe(t,e,i,n){if(W(i)&&(n=i,i=void 0),n)return xe(t,e,i).pipe(ya(n));let[o,r]=Ky(t)?Gy.map(s=>a=>t[s](e,a,i)):Yy(t)?$y.map(Hh(t,e)):qy(t)?Wy.map(Hh(t,e)):[];if(!o&&Lo(t))return gt(s=>xe(s,e,i))(de(t));if(!o)throw new TypeError("Invalid event target");return new ee(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function Hh(t,e){return i=>n=>t[i](e,n)}function Yy(t){return W(t.addListener)&&W(t.removeListener)}function qy(t){return W(t.on)&&W(t.off)}function Ky(t){return W(t.addEventListener)&&W(t.removeEventListener)}function Qi(t=0,e,i=hu){let n=-1;return e!=null&&(sa(e)?i=e:n=e),new ee(o=>{let r=Lh(t)?+t-i.now():t;r<0&&(r=0);let s=0;return i.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function zr(...t){let e=hi(t),i=Sh(t,1/0),n=t;return n.length?n.length===1?de(n[0]):ba(i)(mn(n,e)):Wn}var{isArray:Zy}=Array;function Ca(t){return t.length===1&&Zy(t[0])?t[0]:t}function _t(t,e){return me((i,n)=>{let o=0;i.subscribe(ue(n,r=>t.call(e,r,o++)&&n.next(r)))})}function Da(...t){return t=Ca(t),t.length===1?de(t[0]):new ee(Qy(t))}function Qy(t){return e=>{let i=[];for(let n=0;i&&!e.closed&&n<t.length;n++)i.push(de(t[n]).subscribe(ue(e,o=>{if(i){for(let r=0;r<i.length;r++)r!==n&&i[r].unsubscribe();i=null}e.next(o)})))}}function $r(...t){let e=Po(t),i=Ca(t);return i.length?new ee(n=>{let o=i.map(()=>[]),r=i.map(()=>!1);n.add(()=>{o=r=null});for(let s=0;!n.closed&&s<i.length;s++)de(i[s]).subscribe(ue(n,a=>{if(o[s].push(a),o.every(l=>l.length)){let l=o.map(d=>d.shift());n.next(e?e(...l):l),o.some((d,p)=>!d.length&&r[p])&&n.complete()}},()=>{r[s]=!0,!o[s].length&&n.complete()}));return()=>{o=r=null}}):Wn}function yu(t,e){return W(e)?gt(t,e,1):gt(t,1)}function Ji(t,e=xn){return me((i,n)=>{let o=null,r=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let d=r;r=null,n.next(d)}};function l(){let d=s+t,p=e.now();if(p<d){o=this.schedule(void 0,d-p),n.add(o);return}a()}i.subscribe(ue(n,d=>{r=d,s=e.now(),o||(o=e.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{r=o=null}))})}function Yn(t){return t<=0?()=>Wn:me((e,i)=>{let n=0;e.subscribe(ue(i,o=>{++n<=t&&(i.next(o),t<=n&&i.complete())}))})}function zh(){return me((t,e)=>{t.subscribe(ue(e,$n))})}function $h(t){return Me(()=>t)}function bu(t,e){return e?i=>Zi(e.pipe(Yn(1),zh()),i.pipe(bu(t))):gt((i,n)=>de(t(i,n)).pipe(Yn(1),$h(i)))}function Cu(t,e=xn){let i=Qi(t,e);return bu(()=>i)}function Vo(t,e=In){return t=t??Jy,me((i,n)=>{let o,r=!0;i.subscribe(ue(n,s=>{let a=e(s);(r||!t(o,a))&&(r=!1,o=a,n.next(s))}))})}function Jy(t,e){return t===e}function Du(...t){return e=>Zi(e,gn(...t))}function wa(t){return me((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function Gh(t={}){let{connector:e=()=>new he,resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let s,a,l,d=0,p=!1,m=!1,_=()=>{a?.unsubscribe(),a=void 0},g=()=>{_(),s=l=void 0,p=m=!1},D=()=>{let x=s;g(),x?.unsubscribe()};return me((x,O)=>{d++,!m&&!p&&_();let N=l=l??e();O.add(()=>{d--,d===0&&!m&&!p&&(a=wu(D,o))}),N.subscribe(O),!s&&d>0&&(s=new hn({next:z=>N.next(z),error:z=>{m=!0,_(),a=wu(g,i,z),N.error(z)},complete:()=>{p=!0,_(),a=wu(g,n),N.complete()}}),de(x).subscribe(s))})(r)}}function wu(t,e,...i){if(e===!0){t();return}if(e===!1)return;let n=new hn({next:()=>{n.unsubscribe(),t()}});return de(e(...i)).subscribe(n)}function Eu(t,e,i){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:i}=t:n=t??1/0,Gh({connector:()=>new Gn(n,e,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Su(t){return _t((e,i)=>t<=i)}function Mu(...t){let e=hi(t);return me((i,n)=>{(e?Zi(t,i,e):Zi(t,i)).subscribe(n)})}function mi(t,e){return me((i,n)=>{let o=null,r=0,s=!1,a=()=>s&&!o&&n.complete();i.subscribe(ue(n,l=>{o?.unsubscribe();let d=0,p=r++;de(t(l,p)).subscribe(o=ue(n,m=>n.next(e?e(l,m,p,d++):m),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ze(t){return me((e,i)=>{de(t).subscribe(ue(i,()=>i.complete(),$n)),!i.closed&&e.subscribe(i)})}function Xi(t,e,i){let n=W(t)||e||i?{next:t,error:e,complete:i}:t;return n?me((o,r)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(ue(r,l=>{var d;(d=n.next)===null||d===void 0||d.call(n,l),r.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var d;a=!1,(d=n.error)===null||d===void 0||d.call(n,l),r.error(l)},()=>{var l,d;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(d=n.finalize)===null||d===void 0||d.call(n)}))}):In}function Wh(t,e){return me((i,n)=>{let{leading:o=!0,trailing:r=!1}=e??{},s=!1,a=null,l=null,d=!1,p=()=>{l?.unsubscribe(),l=null,r&&(g(),d&&n.complete())},m=()=>{l=null,d&&n.complete()},_=D=>l=de(t(D)).subscribe(ue(n,p,m)),g=()=>{if(s){s=!1;let D=a;a=null,n.next(D),!d&&_(D)}};i.subscribe(ue(n,D=>{s=!0,a=D,!(l&&!l.closed)&&(o?g():_(D))},()=>{d=!0,!(r&&s&&l&&!l.closed)&&n.complete()}))})}function Tu(t,e=xn,i){let n=Qi(t,e);return Wh(()=>n,i)}function Gr(...t){let e=Po(t);return me((i,n)=>{let o=t.length,r=new Array(o),s=t.map(()=>!1),a=!1;for(let l=0;l<o;l++)de(t[l]).subscribe(ue(n,d=>{r[l]=d,!a&&!s[l]&&(s[l]=!0,(a=s.every(In))&&(s=null))},$n));i.subscribe(ue(n,l=>{if(a){let d=[l,...r];n.next(e?e(...d):d)}}))})}var Rm="https://g.co/ng/security#xss",q=class extends Error{constructor(e,i){super(sl(e,i)),this.code=e}};function sl(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var km=Symbol("InputSignalNode#UNSET"),Xy=Se(Y({},au),{transformFn:void 0,applyValueToInputSignal(t,e){Qs(t,e)}});function Fm(t,e){let i=Object.create(Xy);i.value=t,i.transformFn=e?.transform;function n(){if(Ys(i),i.value===km)throw new q(-950,!1);return i.value}return n[Tn]=i,n}function is(t){return{toString:t}.toString()}var Ea="__parameters__";function e1(t){return function(...i){if(t){let n=t(...i);for(let o in n)this[o]=n[o]}}}function Pm(t,e,i){return is(()=>{let n=e1(e);function o(...r){if(this instanceof o)return n.apply(this,r),this;let s=new o(...r);return a.annotation=s,a;function a(l,d,p){let m=l.hasOwnProperty(Ea)?l[Ea]:Object.defineProperty(l,Ea,{value:[]})[Ea];for(;m.length<=p;)m.push(null);return(m[p]=m[p]||[]).push(s),l}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var io=globalThis;function Oe(t){for(let e in t)if(t[e]===Oe)return e;throw Error("Could not find renamed property on target object.")}function t1(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function At(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(At).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(`4 `);return i===-1?e:e.substring(0,i)}function zu(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var n1=Oe({__forward_ref__:Oe});function at(t){return t.__forward_ref__=at,t.toString=function(){return At(this())},t}function vt(t){return Lm(t)?t():t}function Lm(t){return typeof t=="function"&&t.hasOwnProperty(n1)&&t.__forward_ref__===at}function L(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ut(t){return{providers:t.providers||[],imports:t.imports||[]}}function Zd(t){return Yh(t,Vm)||Yh(t,Bm)}function Yh(t,e){return t.hasOwnProperty(e)?t[e]:null}function i1(t){let e=t&&(t[Vm]||t[Bm]);return e||null}function qh(t){return t&&(t.hasOwnProperty(Kh)||t.hasOwnProperty(o1))?t[Kh]:null}var Vm=Oe({\u0275prov:Oe}),Kh=Oe({\u0275inj:Oe}),Bm=Oe({ngInjectableDef:Oe}),o1=Oe({ngInjectorDef:Oe}),G=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=L({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function jm(t){return t&&!!t.\u0275providers}var r1=Oe({\u0275cmp:Oe}),s1=Oe({\u0275dir:Oe}),a1=Oe({\u0275pipe:Oe});var Pa=Oe({\u0275fac:Oe}),Yr=Oe({__NG_ELEMENT_ID__:Oe}),Zh=Oe({__NG_ENV_ID__:Oe});function $o(t){return typeof t=="string"?t:t==null?"":String(t)}function l1(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():$o(t)}function c1(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new q(-200,t)}function Qd(t,e){throw new q(-201,!1)}var fe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fe||{}),$u;function Um(){return $u}function Dt(t){let e=$u;return $u=t,e}function Hm(t,e,i){let n=Zd(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&fe.Optional)return null;if(e!==void 0)return e;Qd(t,"Injector")}var u1={},qr=u1,Gu="__NG_DI_FLAG__",La="ngTempTokenPath",d1="ngTokenPath",f1=/\n/gm,p1="\u0275",Qh="__source",Ho;function h1(){return Ho}function gi(t){let e=Ho;return Ho=t,e}function m1(t,e=fe.Default){if(Ho===void 0)throw new q(-203,!1);return Ho===null?Hm(t,void 0,e):Ho.get(t,e&fe.Optional?null:void 0,e)}function H(t,e=fe.Default){return(Um()||m1)(vt(t),e)}function C(t,e=fe.Default){return H(t,al(e))}function al(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Wu(t){let e=[];for(let i=0;i<t.length;i++){let n=vt(t[i]);if(Array.isArray(n)){if(n.length===0)throw new q(900,!1);let o,r=fe.Default;for(let s=0;s<n.length;s++){let a=n[s],l=g1(a);typeof l=="number"?l===-1?o=a.token:r|=l:o=a}e.push(H(o,r))}else e.push(H(n))}return e}function zm(t,e){return t[Gu]=e,t.prototype[Gu]=e,t}function g1(t){return t[Gu]}function _1(t,e,i,n){let o=t[La];throw e[Qh]&&o.unshift(e[Qh]),t.message=v1(`5 `+t.message,o,i,n),t[d1]=o,t[ La]=null,t}function v1(t,e,i,n=null){t=t&&t.charAt(0)===`3 `)}`:"",this.name="UnsubscriptionError",this.errors=i});function Gi(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var Ue=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let r of i)r.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(W(n))try{n()}catch(r){e=r instanceof Qs?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{gh(r)}catch(s){e=e??[],s instanceof Qs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Qs(e)}}add(e){var i;if(e&&e!==this)if(this.closed)gh(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&Gi(i,e)}remove(e){let{_finalizers:i}=this;i&&Gi(i,e),e instanceof t&&e._removeParent(this)}};Ue.EMPTY=(()=>{let t=new Ue;return t.closed=!0,t})();var au=Ue.EMPTY;function Js(t){return t instanceof Ue||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function gh(t){W(t)?t():t.unsubscribe()}var pn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ro={setTimeout(t,e,...i){let{delegate:n}=Ro;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=Ro;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Xs(t){Ro.setTimeout(()=>{let{onUnhandledError:e}=pn;if(e)e(t);else throw t})}function $n(){}var _h=lu("C",void 0,void 0);function vh(t){return lu("E",void 0,t)}function yh(t){return lu("N",t,void 0)}function lu(t,e,i){return{kind:t,value:e,error:i}}var Wi=null;function ko(t){if(pn.useDeprecatedSynchronousErrorHandling){let e=!Wi;if(e&&(Wi={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=Wi;if(Wi=null,i)throw n}}else t()}function Ch(t){pn.useDeprecatedSynchronousErrorHandling&&Wi&&(Wi.errorThrown=!0,Wi.error=t)}var Yi=class extends Ue{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Js(e)&&e.add(this)):this.destination=My}static create(e,i,n){return new hn(e,i,n)}next(e){this.isStopped?uu(yh(e),this):this._next(e)}error(e){this.isStopped?uu(vh(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?uu(_h,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Ey=Function.prototype.bind;function cu(t,e){return Ey.call(t,e)}var du=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){ea(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){ea(n)}else ea(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){ea(i)}}},hn=class extends Yi{constructor(e,i,n){super();let o;if(W(e)||!e)o={next:e??void 0,error:i??void 0,complete:n??void 0};else{let r;this&&pn.useDeprecatedNextContext?(r=Object.create(e),r.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&cu(e.next,r),error:e.error&&cu(e.error,r),complete:e.complete&&cu(e.complete,r)}):o=e}this.destination=new du(o)}};function ea(t){pn.useDeprecatedSynchronousErrorHandling?Ch(t):Xs(t)}function Sy(t){throw t}function uu(t,e){let{onStoppedNotification:i}=pn;i&&Ro.setTimeout(()=>i(t,e))}var My={closed:!0,next:$n,error:Sy,complete:$n};var Fo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function In(t){return t}function bh(t){return t.length===0?In:t.length===1?t[0]:function(i){return t.reduce((n,o)=>o(n),i)}}var ne=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,o){let r=Iy(i)?i:new hn(i,n,o);return ko(()=>{let{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=Dh(n),new n((o,r)=>{let s=new hn({next:a=>{try{i(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[Fo](){return this}pipe(...i){return bh(i)(this)}toPromise(i){return i=Dh(i),new i((n,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>n(r))})}}return t.create=e=>new t(e),t})();function Dh(t){var e;return(e=t??pn.Promise)!==null&&e!==void 0?e:Promise}function Ty(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function Iy(t){return t&&t instanceof Yi||Ty(t)&&Js(t)}function xy(t){return W(t?.lift)}function me(t){return e=>{if(xy(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(t,e,i,n,o){return new fu(t,e,i,n,o)}var fu=class extends Yi{constructor(e,i,n,o,r,s){super(e),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(l){e.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};var wh=Ao(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends ne{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new ta(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new wh}next(i){ko(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){ko(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){ko(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:o,observers:r}=this;return n||o?au:(this.currentObservers=null,r.push(i),new Ue(()=>{this.currentObservers=null,Gi(r,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:o,isStopped:r}=this;n?i.error(o):r&&i.complete()}asObservable(){let i=new ne;return i.source=this,i}}return t.create=(e,i)=>new ta(e,i),t})(),ta=class extends he{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:au}};var qi=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Hr={now(){return(Hr.delegate||Date).now()},delegate:void 0};var Gn=class extends he{constructor(e=1/0,i=1/0,n=Hr){super(),this._bufferSize=e,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,i)}next(e){let{isStopped:i,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;i||(n.push(e),!o&&n.push(r.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let i=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!e.closed;s+=n?1:2)e.next(r[s]);return this._checkFinalizedStatuses(e),i}_trimBuffer(){let{_bufferSize:e,_timestampProvider:i,_buffer:n,_infiniteTimeWindow:o}=this,r=(o?1:2)*e;if(e<1/0&&r<n.length&&n.splice(0,n.length-r),!o){let s=i.now(),a=0;for(let l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}}};var na=class extends Ue{constructor(e,i){super()}schedule(e,i=0){return this}};var zr={setInterval(t,e,...i){let{delegate:n}=zr;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=zr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var ia=class extends na{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let o=this.id,r=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(r,o,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(r,this.id,i),this}requestAsyncId(e,i,n=0){return zr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&zr.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,o;try{this.work(e)}catch(r){n=!0,o=r||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Gi(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var Po=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};Po.now=Hr.now;var oa=class extends Po{constructor(e,i=Po.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var xn=new oa(ia),pu=xn;var Wn=new ne(t=>t.complete());function ra(t){return t&&W(t.schedule)}function hu(t){return t[t.length-1]}function Lo(t){return W(hu(t))?t.pop():void 0}function hi(t){return ra(hu(t))?t.pop():void 0}function Eh(t,e){return typeof hu(t)=="number"?t.pop():e}function Mh(t,e,i,n){function o(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function a(p){try{d(n.next(p))}catch(m){s(m)}}function l(p){try{d(n.throw(p))}catch(m){s(m)}}function d(p){p.done?r(p.value):o(p.value).then(a,l)}d((n=n.apply(t,e||[])).next())})}function Sh(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ki(t){return this instanceof Ki?(this.v=t,this):new Ki(t)}function Th(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),o,r=[];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(g){return function(D){return Promise.resolve(D).then(g,m)}}function a(g,D){n[g]&&(o[g]=function(x){return new Promise(function(O,N){r.push([g,x,O,N])>1||l(g,x)})},D&&(o[g]=D(o[g])))}function l(g,D){try{d(n[g](D))}catch(x){_(r[0][3],x)}}function d(g){g.value instanceof Ki?Promise.resolve(g.value.v).then(p,m):_(r[0][2],g)}function p(g){l("next",g)}function m(g){l("throw",g)}function _(g,D){g(D),r.shift(),r.length&&l(r[0][0],r[0][1])}}function Ih(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Sh=="function"?Sh(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(r){i[r]=t[r]&&function(s){return new Promise(function(a,l){s=t[r](s),o(a,l,s.done,s.value)})}}function o(r,s,a,l){Promise.resolve(l).then(function(d){r({value:d,done:a})},s)}}var Vo=t=>t&&typeof t.length=="number"&&typeof t!="function";function sa(t){return W(t?.then)}function aa(t){return W(t[Fo])}function la(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function ca(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Oy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ua=Oy();function da(t){return W(t?.[ua])}function fa(t){return Th(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:o}=yield Ki(i.read());if(o)return yield Ki(void 0);yield yield Ki(n)}}finally{i.releaseLock()}})}function pa(t){return W(t?.getReader)}function de(t){if(t instanceof ne)return t;if(t!=null){if(aa(t))return Ny(t);if(Vo(t))return Ay(t);if(sa(t))return Ry(t);if(la(t))return xh(t);if(da(t))return ky(t);if(pa(t))return Fy(t)}throw ca(t)}function Ny(t){return new ne(e=>{let i=t[Fo]();if(W(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ay(t){return new ne(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function Ry(t){return new ne(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,Xs)})}function ky(t){return new ne(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function xh(t){return new ne(e=>{Py(t,e).catch(i=>e.error(i))})}function Fy(t){return xh(fa(t))}function Py(t,e){var i,n,o,r;return Mh(this,void 0,void 0,function*(){try{for(i=Ih(t);n=yield i.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&(yield r.call(i))}finally{if(o)throw o.error}}e.complete()})}function Bt(t,e,i,n=0,o=!1){let r=e.schedule(function(){i(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function ha(t,e=0){return me((i,n)=>{i.subscribe(ue(n,o=>Bt(n,t,()=>n.next(o),e),()=>Bt(n,t,()=>n.complete(),e),o=>Bt(n,t,()=>n.error(o),e)))})}function ma(t,e=0){return me((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function Oh(t,e){return de(t).pipe(ma(e),ha(e))}function Nh(t,e){return de(t).pipe(ma(e),ha(e))}function Ah(t,e){return new ne(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function Rh(t,e){return new ne(i=>{let n;return Bt(i,e,()=>{n=t[ua](),Bt(i,e,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(s){i.error(s);return}r?i.complete():i.next(o)},0,!0)}),()=>W(n?.return)&&n.return()})}function ga(t,e){if(!t)throw new Error("Iterable cannot be null");return new ne(i=>{Bt(i,e,()=>{let n=t[Symbol.asyncIterator]();Bt(i,e,()=>{n.next().then(o=>{o.done?i.complete():i.next(o.value)})},0,!0)})})}function kh(t,e){return ga(fa(t),e)}function Fh(t,e){if(t!=null){if(aa(t))return Oh(t,e);if(Vo(t))return Ah(t,e);if(sa(t))return Nh(t,e);if(la(t))return ga(t,e);if(da(t))return Rh(t,e);if(pa(t))return kh(t,e)}throw ca(t)}function mn(t,e){return e?Fh(t,e):de(t)}function gn(...t){let e=hi(t);return mn(t,e)}function mu(t){return!!t&&(t instanceof ne||W(t.lift)&&W(t.subscribe))}var _a=Ao(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function K(t,e){let i=typeof e=="object";return new Promise((n,o)=>{let r=!1,s;t.subscribe({next:a=>{s=a,r=!0},error:o,complete:()=>{r?n(s):i?n(e.defaultValue):o(new _a)}})})}function On(t,e){let i=typeof e=="object";return new Promise((n,o)=>{let r=new hn({next:s=>{n(s),r.unsubscribe()},error:o,complete:()=>{i?n(e.defaultValue):o(new _a)}});t.subscribe(r)})}function Ph(t){return t instanceof Date&&!isNaN(t)}function Me(t,e){return me((i,n)=>{let o=0;i.subscribe(ue(n,r=>{n.next(t.call(e,r,o++))}))})}var{isArray:Ly}=Array;function Vy(t,e){return Ly(e)?t(...e):t(e)}function va(t){return Me(e=>Vy(t,e))}var{isArray:By}=Array,{getPrototypeOf:jy,prototype:Uy,keys:Hy}=Object;function Lh(t){if(t.length===1){let e=t[0];if(By(e))return{args:e,keys:null};if(zy(e)){let i=Hy(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function zy(t){return t&&typeof t=="object"&&jy(t)===Uy}function Vh(t,e){return t.reduce((i,n,o)=>(i[n]=e[o],i),{})}function Bh(t,e,i,n,o,r,s,a){let l=[],d=0,p=0,m=!1,_=()=>{m&&!l.length&&!d&&e.complete()},g=x=>d<n?D(x):l.push(x),D=x=>{r&&e.next(x),d++;let O=!1;de(i(x,p++)).subscribe(ue(e,N=>{o?.(N),r?g(N):e.next(N)},()=>{O=!0},void 0,()=>{if(O)try{for(d--;l.length&&d<n;){let N=l.shift();s?Bt(e,s,()=>D(N)):D(N)}_()}catch(N){e.error(N)}}))};return t.subscribe(ue(e,g,()=>{m=!0,_()})),()=>{a?.()}}function gt(t,e,i=1/0){return W(e)?gt((n,o)=>Me((r,s)=>e(n,r,o,s))(de(t(n,o))),i):(typeof e=="number"&&(i=e),me((n,o)=>Bh(n,o,t,i)))}function ya(t=1/0){return gt(In,t)}function jh(){return ya(1)}function Zi(...t){return jh()(mn(t,hi(t)))}function gu(t){return new ne(e=>{de(t()).subscribe(e)})}function _u(...t){let e=Lo(t),{args:i,keys:n}=Lh(t),o=new ne(r=>{let{length:s}=i;if(!s){r.complete();return}let a=new Array(s),l=s,d=s;for(let p=0;p<s;p++){let m=!1;de(i[p]).subscribe(ue(r,_=>{m||(m=!0,d--),a[p]=_},()=>l--,void 0,()=>{(!l||!m)&&(d||r.next(n?Vh(n,a):a),r.complete())}))}});return e?o.pipe(va(e)):o}var $y=["addListener","removeListener"],Gy=["addEventListener","removeEventListener"],Wy=["on","off"];function xe(t,e,i,n){if(W(i)&&(n=i,i=void 0),n)return xe(t,e,i).pipe(va(n));let[o,r]=Ky(t)?Gy.map(s=>a=>t[s](e,a,i)):Yy(t)?$y.map(Uh(t,e)):qy(t)?Wy.map(Uh(t,e)):[];if(!o&&Vo(t))return gt(s=>xe(s,e,i))(de(t));if(!o)throw new TypeError("Invalid event target");return new ne(s=>{let a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function Uh(t,e){return i=>n=>t[i](e,n)}function Yy(t){return W(t.addListener)&&W(t.removeListener)}function qy(t){return W(t.on)&&W(t.off)}function Ky(t){return W(t.addEventListener)&&W(t.removeEventListener)}function Qi(t=0,e,i=pu){let n=-1;return e!=null&&(ra(e)?i=e:n=e),new ne(o=>{let r=Ph(t)?+t-i.now():t;r<0&&(r=0);let s=0;return i.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function $r(...t){let e=hi(t),i=Eh(t,1/0),n=t;return n.length?n.length===1?de(n[0]):ya(i)(mn(n,e)):Wn}var{isArray:Zy}=Array;function Ca(t){return t.length===1&&Zy(t[0])?t[0]:t}function _t(t,e){return me((i,n)=>{let o=0;i.subscribe(ue(n,r=>t.call(e,r,o++)&&n.next(r)))})}function ba(...t){return t=Ca(t),t.length===1?de(t[0]):new ne(Qy(t))}function Qy(t){return e=>{let i=[];for(let n=0;i&&!e.closed&&n<t.length;n++)i.push(de(t[n]).subscribe(ue(e,o=>{if(i){for(let r=0;r<i.length;r++)r!==n&&i[r].unsubscribe();i=null}e.next(o)})))}}function Gr(...t){let e=Lo(t),i=Ca(t);return i.length?new ne(n=>{let o=i.map(()=>[]),r=i.map(()=>!1);n.add(()=>{o=r=null});for(let s=0;!n.closed&&s<i.length;s++)de(i[s]).subscribe(ue(n,a=>{if(o[s].push(a),o.every(l=>l.length)){let l=o.map(d=>d.shift());n.next(e?e(...l):l),o.some((d,p)=>!d.length&&r[p])&&n.complete()}},()=>{r[s]=!0,!o[s].length&&n.complete()}));return()=>{o=r=null}}):Wn}function vu(t,e){return W(e)?gt(t,e,1):gt(t,1)}function Ji(t,e=xn){return me((i,n)=>{let o=null,r=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let d=r;r=null,n.next(d)}};function l(){let d=s+t,p=e.now();if(p<d){o=this.schedule(void 0,d-p),n.add(o);return}a()}i.subscribe(ue(n,d=>{r=d,s=e.now(),o||(o=e.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{r=o=null}))})}function Yn(t){return t<=0?()=>Wn:me((e,i)=>{let n=0;e.subscribe(ue(i,o=>{++n<=t&&(i.next(o),t<=n&&i.complete())}))})}function Hh(){return me((t,e)=>{t.subscribe(ue(e,$n))})}function zh(t){return Me(()=>t)}function yu(t,e){return e?i=>Zi(e.pipe(Yn(1),Hh()),i.pipe(yu(t))):gt((i,n)=>de(t(i,n)).pipe(Yn(1),zh(i)))}function Cu(t,e=xn){let i=Qi(t,e);return yu(()=>i)}function Bo(t,e=In){return t=t??Jy,me((i,n)=>{let o,r=!0;i.subscribe(ue(n,s=>{let a=e(s);(r||!t(o,a))&&(r=!1,o=a,n.next(s))}))})}function Jy(t,e){return t===e}function bu(...t){return e=>Zi(e,gn(...t))}function Da(t){return me((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function $h(t={}){let{connector:e=()=>new he,resetOnError:i=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let s,a,l,d=0,p=!1,m=!1,_=()=>{a?.unsubscribe(),a=void 0},g=()=>{_(),s=l=void 0,p=m=!1},D=()=>{let x=s;g(),x?.unsubscribe()};return me((x,O)=>{d++,!m&&!p&&_();let N=l=l??e();O.add(()=>{d--,d===0&&!m&&!p&&(a=Du(D,o))}),N.subscribe(O),!s&&d>0&&(s=new hn({next:z=>N.next(z),error:z=>{m=!0,_(),a=Du(g,i,z),N.error(z)},complete:()=>{p=!0,_(),a=Du(g,n),N.complete()}}),de(x).subscribe(s))})(r)}}function Du(t,e,...i){if(e===!0){t();return}if(e===!1)return;let n=new hn({next:()=>{n.unsubscribe(),t()}});return de(e(...i)).subscribe(n)}function wu(t,e,i){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:i}=t:n=t??1/0,$h({connector:()=>new Gn(n,e,i),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Eu(t){return _t((e,i)=>t<=i)}function Su(...t){let e=hi(t);return me((i,n)=>{(e?Zi(t,i,e):Zi(t,i)).subscribe(n)})}function mi(t,e){return me((i,n)=>{let o=null,r=0,s=!1,a=()=>s&&!o&&n.complete();i.subscribe(ue(n,l=>{o?.unsubscribe();let d=0,p=r++;de(t(l,p)).subscribe(o=ue(n,m=>n.next(e?e(l,m,p,d++):m),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ze(t){return me((e,i)=>{de(t).subscribe(ue(i,()=>i.complete(),$n)),!i.closed&&e.subscribe(i)})}function Xi(t,e,i){let n=W(t)||e||i?{next:t,error:e,complete:i}:t;return n?me((o,r)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(ue(r,l=>{var d;(d=n.next)===null||d===void 0||d.call(n,l),r.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),r.complete()},l=>{var d;a=!1,(d=n.error)===null||d===void 0||d.call(n,l),r.error(l)},()=>{var l,d;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(d=n.finalize)===null||d===void 0||d.call(n)}))}):In}function Gh(t,e){return me((i,n)=>{let{leading:o=!0,trailing:r=!1}=e??{},s=!1,a=null,l=null,d=!1,p=()=>{l?.unsubscribe(),l=null,r&&(g(),d&&n.complete())},m=()=>{l=null,d&&n.complete()},_=D=>l=de(t(D)).subscribe(ue(n,p,m)),g=()=>{if(s){s=!1;let D=a;a=null,n.next(D),!d&&_(D)}};i.subscribe(ue(n,D=>{s=!0,a=D,!(l&&!l.closed)&&(o?g():_(D))},()=>{d=!0,!(r&&s&&l&&!l.closed)&&n.complete()}))})}function Mu(t,e=xn,i){let n=Qi(t,e);return Gh(()=>n,i)}function Wr(...t){let e=Lo(t);return me((i,n)=>{let o=t.length,r=new Array(o),s=t.map(()=>!1),a=!1;for(let l=0;l<o;l++)de(t[l]).subscribe(ue(n,d=>{r[l]=d,!a&&!s[l]&&(s[l]=!0,(a=s.every(In))&&(s=null))},$n));i.subscribe(ue(n,l=>{if(a){let d=[l,...r];n.next(e?e(...d):d)}}))})}var Am="https://g.co/ng/security#xss",q=class extends Error{constructor(e,i){super(rl(e,i)),this.code=e}};function rl(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Rm=Symbol("InputSignalNode#UNSET"),Xy=Se(Y({},su),{transformFn:void 0,applyValueToInputSignal(t,e){Zs(t,e)}});function km(t,e){let i=Object.create(Xy);i.value=t,i.transformFn=e?.transform;function n(){if(Ws(i),i.value===Rm)throw new q(-950,!1);return i.value}return n[Tn]=i,n}function os(t){return{toString:t}.toString()}var wa="__parameters__";function e1(t){return function(...i){if(t){let n=t(...i);for(let o in n)this[o]=n[o]}}}function Fm(t,e,i){return os(()=>{let n=e1(e);function o(...r){if(this instanceof o)return n.apply(this,r),this;let s=new o(...r);return a.annotation=s,a;function a(l,d,p){let m=l.hasOwnProperty(wa)?l[wa]:Object.defineProperty(l,wa,{value:[]})[wa];for(;m.length<=p;)m.push(null);return(m[p]=m[p]||[]).push(s),l}}return i&&(o.prototype=Object.create(i.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var io=globalThis;function Oe(t){for(let e in t)if(t[e]===Oe)return e;throw Error("Could not find renamed property on target object.")}function t1(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function At(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(At).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(` 4 `);return i===-1?e:e.substring(0,i)}function Hu(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var n1=Oe({__forward_ref__:Oe});function at(t){return t.__forward_ref__=at,t.toString=function(){return At(this())},t}function vt(t){return Pm(t)?t():t}function Pm(t){return typeof t=="function"&&t.hasOwnProperty(n1)&&t.__forward_ref__===at}function L(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ut(t){return{providers:t.providers||[],imports:t.imports||[]}}function Kd(t){return Wh(t,Lm)||Wh(t,Vm)}function Wh(t,e){return t.hasOwnProperty(e)?t[e]:null}function i1(t){let e=t&&(t[Lm]||t[Vm]);return e||null}function Yh(t){return t&&(t.hasOwnProperty(qh)||t.hasOwnProperty(o1))?t[qh]:null}var Lm=Oe({\u0275prov:Oe}),qh=Oe({\u0275inj:Oe}),Vm=Oe({ngInjectableDef:Oe}),o1=Oe({ngInjectorDef:Oe}),G=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=L({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bm(t){return t&&!!t.\u0275providers}var r1=Oe({\u0275cmp:Oe}),s1=Oe({\u0275dir:Oe}),a1=Oe({\u0275pipe:Oe});var Fa=Oe({\u0275fac:Oe}),qr=Oe({__NG_ELEMENT_ID__:Oe}),Kh=Oe({__NG_ENV_ID__:Oe});function Go(t){return typeof t=="string"?t:t==null?"":String(t)}function l1(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Go(t)}function c1(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new q(-200,t)}function Zd(t,e){throw new q(-201,!1)}var fe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(fe||{}),zu;function jm(){return zu}function Dt(t){let e=zu;return zu=t,e}function Um(t,e,i){let n=Kd(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&fe.Optional)return null;if(e!==void 0)return e;Zd(t,"Injector")}var u1={},Kr=u1,$u="__NG_DI_FLAG__",Pa="ngTempTokenPath",d1="ngTokenPath",f1=/\n/gm,p1="\u0275",Zh="__source",zo;function h1(){return zo}function gi(t){let e=zo;return zo=t,e}function m1(t,e=fe.Default){if(zo===void 0)throw new q(-203,!1);return zo===null?Um(t,void 0,e):zo.get(t,e&fe.Optional?null:void 0,e)}function H(t,e=fe.Default){return(jm()||m1)(vt(t),e)}function b(t,e=fe.Default){return H(t,sl(e))}function sl(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Gu(t){let e=[];for(let i=0;i<t.length;i++){let n=vt(t[i]);if(Array.isArray(n)){if(n.length===0)throw new q(900,!1);let o,r=fe.Default;for(let s=0;s<n.length;s++){let a=n[s],l=g1(a);typeof l=="number"?l===-1?o=a.token:r|=l:o=a}e.push(H(o,r))}else e.push(H(n))}return e}function Hm(t,e){return t[$u]=e,t.prototype[$u]=e,t}function g1(t){return t[$u]}function _1(t,e,i,n){let o=t[Pa];throw e[Zh]&&o.unshift(e[Zh]),t.message=v1(` 5 `+t.message,o,i,n),t[d1]=o,t[Pa]=null,t}function v1(t,e,i,n=null){t=t&&t.charAt(0)===` 6 6 `&&t.charAt(1)==p1?t.slice(2):t;let o=At(e);if(Array.isArray(e))o=e.map(At).join(" -> ");else if(typeof e=="object"){let r=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];r.push(s+":"+(typeof a=="string"?JSON.stringify(a):At(a)))}o=`{${r.join(", ")}}`}return`${i}${n?"("+n+")":""}[${o}]: ${t.replace(f1,` 7 `)}`}var $m=zm(Pm("Optional"),8);var y1=zm(Pm("SkipSelf"),4);function ro(t,e){let i=t.hasOwnProperty(Pa);return i?t[Pa]:null}function b1(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let o=t[n],r=e[n];if(i&&(o=i(o),r=i(r)),r!==o)return!1}return!0}function C1(t){return t.flat(Number.POSITIVE_INFINITY)}function Jd(t,e){t.forEach(i=>Array.isArray(i)?Jd(i,e):e(i))}function Gm(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Va(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function D1(t,e){let i=[];for(let n=0;n<t;n++)i.push(e);return i}function w1(t,e,i,n){let o=t.length;if(o==e)t.push(i,n);else if(o===1)t.push(n,t[0]),t[0]=i;else{for(o--,t.push(t[o-1],t[o]);o>e;){let r=o-2;t[o]=t[r],o--}t[e]=i,t[e+1]=n}}function ll(t,e,i){let n=os(t,e);return n>=0?t[n|1]=i:(n=~n,w1(t,n,e,i)),n}function Iu(t,e){let i=os(t,e);if(i>=0)return t[i|1]}function os(t,e){return E1(t,e,1)}function E1(t,e,i){let n=0,o=t.length>>i;for(;o!==n;){let r=n+(o-n>>1),s=t[r<<i];if(e===s)return r<<i;s>e?o=r:n=r+1}return~(o<<i)}var Go={},wt=[],Kr=new G(""),Wm=new G("",-1),Ym=new G(""),Ba=class{get(e,i=qr){if(i===qr){let n=new Error(`NullInjectorError: No provider for ${At(e)}!`);throw n.name="NullInjectorError",n}return i}},qm=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(qm||{}),Rn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Rn||{}),yi=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(yi||{});function S1(t,e,i){let n=t.length;for(;;){let o=t.indexOf(e,i);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=e.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}i=o+1}}function Yu(t,e,i){let n=0;for(;n<i.length;){let o=i[n];if(typeof o=="number"){if(o!==0)break;n++;let r=i[n++],s=i[n++],a=i[n++];t.setAttribute(e,s,a,r)}else{let r=o,s=i[++n];M1(r)?t.setProperty(e,r,s):t.setAttribute(e,r,s),n++}}return n}function Km(t){return t===3||t===4||t===6}function M1(t){return t.charCodeAt(0)===64}function Zr(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let o=e[n];typeof o=="number"?i=o:i===0||(i===-1||i===2?Jh(t,i,o,null,e[++n]):Jh(t,i,o,null,null))}}return t}function Jh(t,e,i,n,o){let r=0,s=t.length;if(e===-1)s=-1;else for(;r<t.length;){let a=t[r++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=r-1;break}}}for(;r<t.length;){let a=t[r];if(typeof a=="number")break;if(a===i){if(n===null){o!==null&&(t[r+1]=o);return}else if(n===t[r+1]){t[r+2]=o;return}}r++,n!==null&&r++,o!==null&&r++}s!==-1&&(t.splice(s,0,e),r=s+1),t.splice(r++,0,i),n!==null&&t.splice(r++,0,n),o!==null&&t.splice(r++,0,o)}var Zm="ng-template";function T1(t,e,i,n){let o=0;if(n){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&S1(e[o+1].toLowerCase(),i,0)!==-1)return!0}else if(Xd(t))return!1;if(o=e.indexOf(1,o),o>-1){let r;for(;++o<e.length&&typeof(r=e[o])=="string";)if(r.toLowerCase()===i)return!0}return!1}function Xd(t){return t.type===4&&t.value!==Zm}function I1(t,e,i){let n=t.type===4&&!i?Zm:t.value;return e===n}function x1(t,e,i){let n=4,o=t.attrs,r=o!==null?A1(o):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!_n(n)&&!_n(l))return!1;if(s&&_n(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!I1(t,l,i)||l===""&&e.length===1){if(_n(n))return!1;s=!0}}else if(n&8){if(o===null||!T1(t,o,l,i)){if(_n(n))return!1;s=!0}}else{let d=e[++a],p=O1(l,o,Xd(t),i);if(p===-1){if(_n(n))return!1;s=!0;continue}if(d!==""){let m;if(p>r?m="":m=o[p+1].toLowerCase(),n&2&&d!==m){if(_n(n))return!1;s=!0}}}}return _n(n)||s}function _n(t){return(t&1)===0}function O1(t,e,i,n){if(e===null)return-1;let o=0;if(n||!i){let r=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)r=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=r?1:2}return-1}else return R1(e,t)}function Qm(t,e,i=!1){for(let n=0;n<e.length;n++)if(x1(t,e[n],i))return!0;return!1}function N1(t){let e=t.attrs;if(e!=null){let i=e.indexOf(5);if(!(i&1))return e[i+1]}return null}function A1(t){for(let e=0;e<t.length;e++){let i=t[e];if(Km(i))return e}return t.length}function R1(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function k1(t,e){e:for(let i=0;i<e.length;i++){let n=e[i];if(t.length===n.length){for(let o=0;o<t.length;o++)if(t[o]!==n[o])continue e;return!0}}return!1}function Xh(t,e){return t?":not("+e.trim()+")":e}function F1(t){let e=t[0],i=1,n=2,o="",r=!1;for(;i<t.length;){let s=t[i];if(typeof s=="string")if(n&2){let a=t[++i];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!_n(s)&&(e+=Xh(r,o),o=""),n=s,r=r||!_n(n);i++}return o!==""&&(e+=Xh(r,o)),e}function P1(t){return t.map(F1).join(",")}function L1(t){let e=[],i=[],n=1,o=2;for(;n<t.length;){let r=t[n];if(typeof r=="string")o===2?r!==""&&e.push(r,t[++n]):o===8&&i.push(r);else{if(!_n(o))break;o=r}n++}return{attrs:e,classes:i}}function V(t){return is(()=>{let e=eg(t),i=Se(Y({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===qm.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Rn.Emulated,styles:t.styles||wt,_:null,schemas:t.schemas||null,tView:null,id:""});tg(i);let n=t.dependencies;return i.directiveDefs=tm(n,!1),i.pipeDefs=tm(n,!0),i.id=U1(i),i})}function V1(t){return so(t)||Jm(t)}function B1(t){return t!==null}function Ht(t){return is(()=>({type:t.type,bootstrap:t.bootstrap||wt,declarations:t.declarations||wt,imports:t.imports||wt,exports:t.exports||wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function em(t,e){if(t==null)return Go;let i={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,s,a=yi.None;Array.isArray(o)?(a=o[0],r=o[1],s=o[2]??r):(r=o,s=o),e?(i[r]=a!==yi.None?[n,a]:n,e[r]=s):i[r]=n}return i}function ae(t){return is(()=>{let e=eg(t);return tg(e),e})}function ef(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function so(t){return t[r1]||null}function Jm(t){return t[s1]||null}function Xm(t){return t[a1]||null}function j1(t){let e=so(t)||Jm(t)||Xm(t);return e!==null?e.standalone:!1}function eg(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Go,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||wt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:em(t.inputs,e),outputs:em(t.outputs),debugInfo:null}}function tg(t){t.features?.forEach(e=>e(t))}function tm(t,e){if(!t)return null;let i=e?Xm:V1;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(B1)}function U1(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of i)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function rs(t){return{\u0275providers:t}}function H1(...t){return{\u0275providers:ng(!0,t),\u0275fromNgModule:!0}}function ng(t,...e){let i=[],n=new Set,o,r=s=>{i.push(s)};return Jd(e,s=>{let a=s;qu(a,r,[],n)&&(o||=[],o.push(a))}),o!==void 0&&ig(o,r),i}function ig(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:o}=t[i];tf(o,r=>{e(r,n)})}}function qu(t,e,i,n){if(t=vt(t),!t)return!1;let o=null,r=qh(t),s=!r&&so(t);if(!r&&!s){let l=t.ngModule;if(r=qh(l),r)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let d of l)qu(d,e,i,n)}}else if(r){if(r.imports!=null&&!a){n.add(o);let d;try{Jd(r.imports,p=>{qu(p,e,i,n)&&(d||=[],d.push(p))})}finally{}d!==void 0&&ig(d,e)}if(!a){let d=ro(o)||(()=>new o);e({provide:o,useFactory:d,deps:wt},o),e({provide:Ym,useValue:o,multi:!0},o),e({provide:Kr,useValue:()=>H(o),multi:!0},o)}let l=r.providers;if(l!=null&&!a){let d=t;tf(l,p=>{e(p,d)})}}else return!1;return o!==t&&t.providers!==void 0}function tf(t,e){for(let i of t)jm(i)&&(i=i.\u0275providers),Array.isArray(i)?tf(i,e):e(i)}var z1=Oe({provide:String,useValue:Oe});function og(t){return t!==null&&typeof t=="object"&&z1 in t}function $1(t){return!!(t&&t.useExisting)}function G1(t){return!!(t&&t.useFactory)}function Wo(t){return typeof t=="function"}function W1(t){return!!t.useClass}var cl=new G(""),Oa={},Y1={},xu;function ul(){return xu===void 0&&(xu=new Ba),xu}var Rt=class{},Qr=class extends Rt{get destroyed(){return this._destroyed}constructor(e,i,n,o){super(),this.parent=i,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Zu(e,s=>this.processProvider(s)),this.records.set(Wm,Bo(void 0,this)),o.has("environment")&&this.records.set(Rt,Bo(void 0,this));let r=this.records.get(cl);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Ym,wt,fe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=ce(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ce(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=gi(this),n=Dt(void 0),o;try{return e()}finally{gi(i),Dt(n)}}get(e,i=qr,n=fe.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Zh))return e[Zh](this);n=al(n);let o,r=gi(this),s=Dt(void 0);try{if(!(n&fe.SkipSelf)){let l=this.records.get(e);if(l===void 0){let d=J1(e)&&Zd(e);d&&this.injectableDefInScope(d)?l=Bo(Ku(e),Oa):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&fe.Self?ul():this.parent;return i=n&fe.Optional&&i===qr?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[La]=a[La]||[]).unshift(At(e)),r)throw a;return _1(a,e,"R3InjectorError",this.source)}else throw a}finally{Dt(s),gi(r)}}resolveInjectorInitializers(){let e=ce(null),i=gi(this),n=Dt(void 0),o;try{let r=this.get(Kr,wt,fe.Self);for(let s of r)s()}finally{gi(i),Dt(n),ce(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(At(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(e){e=vt(e);let i=Wo(e)?e:vt(e&&e.provide),n=K1(e);if(!Wo(e)&&e.multi===!0){let o=this.records.get(i);o||(o=Bo(void 0,Oa,!0),o.factory=()=>Wu(o.multi),this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=ce(null);try{return i.value===Oa&&(i.value=Y1,i.value=i.factory()),typeof i.value=="object"&&i.value&&Q1(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{ce(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=vt(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function Ku(t){let e=Zd(t),i=e!==null?e.factory:ro(t);if(i!==null)return i;if(t instanceof G)throw new q(204,!1);if(t instanceof Function)return q1(t);throw new q(204,!1)}function q1(t){if(t.length>0)throw new q(204,!1);let i=i1(t);return i!==null?()=>i.factory(t):()=>new t}function K1(t){if(og(t))return Bo(void 0,t.useValue);{let e=rg(t);return Bo(e,Oa)}}function rg(t,e,i){let n;if(Wo(t)){let o=vt(t);return ro(o)||Ku(o)}else if(og(t))n=()=>vt(t.useValue);else if(G1(t))n=()=>t.useFactory(...Wu(t.deps||[]));else if($1(t))n=()=>H(vt(t.useExisting));else{let o=vt(t&&(t.useClass||t.provide));if(Z1(t))n=()=>new o(...Wu(t.deps));else return ro(o)||Ku(o)}return n}function Bo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Z1(t){return!!t.deps}function Q1(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function J1(t){return typeof t=="function"||typeof t=="object"&&t instanceof G}function Zu(t,e){for(let i of t)Array.isArray(i)?Zu(i,e):i&&jm(i)?Zu(i.\u0275providers,e):e(i)}function sg(t,e){t instanceof Qr&&t.assertNotDestroyed();let i,n=gi(t),o=Dt(void 0);try{return e()}finally{gi(n),Dt(o)}}function ag(){return Um()!==void 0||h1()!=null}function dl(t){if(!ag())throw new q(-203,!1)}function X1(t){return typeof t=="function"}var Qn=0,X=1,Q=2,ht=3,yn=4,Et=5,Yo=6,ja=7,ft=8,qo=9,kn=10,Re=11,Jr=12,nm=13,nr=14,kt=15,ao=16,jo=17,qn=18,fl=19,lg=20,_i=21,Ou=22,jt=23,et=25,cg=1;var lo=7,Ua=8,Ko=9,pt=10,Ha=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Ha||{});function vi(t){return Array.isArray(t)&&typeof t[cg]=="object"}function Jn(t){return Array.isArray(t)&&t[cg]===!0}function nf(t){return(t.flags&4)!==0}function pl(t){return t.componentOffset>-1}function hl(t){return(t.flags&1)===1}function bi(t){return!!t.template}function Qu(t){return(t[Q]&512)!==0}var Ju=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function ug(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function yt(){return dg}function dg(t){return t.type.prototype.ngOnChanges&&(t.setInput=tb),eb}yt.ngInherit=!0;function eb(){let t=pg(this),e=t?.current;if(e){let i=t.previous;if(i===Go)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function tb(t,e,i,n,o){let r=this.declaredInputs[n],s=pg(t)||nb(t,{previous:Go,current:null}),a=s.current||(s.current={}),l=s.previous,d=l[r];a[r]=new Ju(d&&d.currentValue,i,l===Go),ug(t,e,o,i)}var fg="__ngSimpleChanges__";function pg(t){return t[fg]||null}function nb(t,e){return t[fg]=e}var im=null;var Nn=function(t,e,i){im?.(t,e,i)},ib="svg",ob="math";function Fn(t){for(;Array.isArray(t);)t=t[Qn];return t}function hg(t,e){return Fn(e[t])}function zt(t,e){return Fn(e[t.index])}function of(t,e){return t.data[e]}function rf(t,e){return t[e]}function wi(t,e){let i=e[t];return vi(i)?i:i[Qn]}function rb(t){return(t[Q]&4)===4}function sf(t){return(t[Q]&128)===128}function sb(t){return Jn(t[ht])}function Ci(t,e){return e==null?null:t[e]}function mg(t){t[jo]=0}function gg(t){t[Q]&1024||(t[Q]|=1024,sf(t)&&gl(t))}function ab(t,e){for(;t>0;)e=e[nr],t--;return e}function ml(t){return!!(t[Q]&9216||t[jt]?.dirty)}function Xu(t){t[kn].changeDetectionScheduler?.notify(8),t[Q]&64&&(t[Q]|=1024),ml(t)&&gl(t)}function gl(t){t[kn].changeDetectionScheduler?.notify(0);let e=co(t);for(;e!==null&&!(e[Q]&8192||(e[Q]|=8192,!sf(e)));)e=co(e)}function _g(t,e){if((t[Q]&256)===256)throw new q(911,!1);t[_i]===null&&(t[_i]=[]),t[_i].push(e)}function lb(t,e){if(t[_i]===null)return;let i=t[_i].indexOf(e);i!==-1&&t[_i].splice(i,1)}function co(t){let e=t[ht];return Jn(e)?e[ht]:e}var se={lFrame:Mg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var vg=!1;function cb(){return se.lFrame.elementDepthCount}function ub(){se.lFrame.elementDepthCount++}function db(){se.lFrame.elementDepthCount--}function yg(){return se.bindingsEnabled}function bg(){return se.skipHydrationRootTNode!==null}function fb(t){return se.skipHydrationRootTNode===t}function pb(){se.skipHydrationRootTNode=null}function K(){return se.lFrame.lView}function ke(){return se.lFrame.tView}function S(t){return se.lFrame.contextLView=t,t[ft]}function M(t){return se.lFrame.contextLView=null,t}function lt(){let t=Cg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Cg(){return se.lFrame.currentTNode}function hb(){let t=se.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function go(t,e){let i=se.lFrame;i.currentTNode=t,i.isParent=e}function af(){return se.lFrame.isParent}function lf(){se.lFrame.isParent=!1}function mb(){return se.lFrame.contextLView}function Dg(){return vg}function om(t){vg=t}function ss(){let t=se.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function gb(){return se.lFrame.bindingIndex}function _b(t){return se.lFrame.bindingIndex=t}function _o(){return se.lFrame.bindingIndex++}function cf(t){let e=se.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function vb(){return se.lFrame.inI18n}function yb(t,e){let i=se.lFrame;i.bindingIndex=i.bindingRootIndex=t,ed(e)}function bb(){return se.lFrame.currentDirectiveIndex}function ed(t){se.lFrame.currentDirectiveIndex=t}function Cb(t){let e=se.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function wg(){return se.lFrame.currentQueryIndex}function uf(t){se.lFrame.currentQueryIndex=t}function Db(t){let e=t[X];return e.type===2?e.declTNode:e.type===1?t[Et]:null}function Eg(t,e,i){if(i&fe.SkipSelf){let o=e,r=t;for(;o=o.parent,o===null&&!(i&fe.Host);)if(o=Db(r),o===null||(r=r[nr],o.type&10))break;if(o===null)return!1;e=o,t=r}let n=se.lFrame=Sg();return n.currentTNode=e,n.lView=t,!0}function df(t){let e=Sg(),i=t[X];se.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Sg(){let t=se.lFrame,e=t===null?null:t.child;return e===null?Mg(t):e}function Mg(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Tg(){let t=se.lFrame;return se.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ig=Tg;function ff(){let t=Tg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function wb(t){return(se.lFrame.contextLView=ab(t,se.lFrame.contextLView))[ft]}function Xn(){return se.lFrame.selectedIndex}function uo(t){se.lFrame.selectedIndex=t}function as(){let t=se.lFrame;return of(t.tView,t.selectedIndex)}function Eb(){return se.lFrame.currentNamespace}var xg=!0;function _l(){return xg}function vl(t){xg=t}function Sb(t,e,i){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=e.type.prototype;if(n){let s=dg(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}o&&(i.preOrderHooks??=[]).push(0-t,o),r&&((i.preOrderHooks??=[]).push(t,r),(i.preOrderCheckHooks??=[]).push(t,r))}function yl(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let r=t.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:d,ngOnDestroy:p}=r;s&&(t.contentHooks??=[]).push(-i,s),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),l&&(t.viewHooks??=[]).push(-i,l),d&&((t.viewHooks??=[]).push(i,d),(t.viewCheckHooks??=[]).push(i,d)),p!=null&&(t.destroyHooks??=[]).push(i,p)}}function Na(t,e,i){Og(t,e,3,i)}function Aa(t,e,i,n){(t[Q]&3)===i&&Og(t,e,i,n)}function Nu(t,e){let i=t[Q];(i&3)===e&&(i&=16383,i+=1,t[Q]=i)}function Og(t,e,i,n){let o=n!==void 0?t[jo]&65535:0,r=n??-1,s=e.length-1,a=0;for(let l=o;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],n!=null&&a>=n)break}else e[l]<0&&(t[jo]+=65536),(a<r||r==-1)&&(Mb(t,i,e,l),t[jo]=(t[jo]&4294901760)+l+2),l++}function rm(t,e){Nn(4,t,e);let i=ce(null);try{e.call(t)}finally{ce(i),Nn(5,t,e)}}function Mb(t,e,i,n){let o=i[n]<0,r=i[n+1],s=o?-i[n]:i[n],a=t[s];o?t[Q]>>14<t[jo]>>16&&(t[Q]&3)===e&&(t[Q]+=16384,rm(a,r)):rm(a,r)}var zo=-1,fo=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function Tb(t){return t instanceof fo}function Ib(t){return(t.flags&8)!==0}function xb(t){return(t.flags&16)!==0}var Au={},td=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=al(n);let o=this.injector.get(e,Au,n);return o!==Au||i===Au?o:this.parentInjector.get(e,i,n)}};function Ng(t){return t!==zo}function za(t){return t&32767}function Ob(t){return t>>16}function $a(t,e){let i=Ob(t),n=e;for(;i>0;)n=n[nr],i--;return n}var nd=!0;function Ga(t){let e=nd;return nd=t,e}var Nb=256,Ag=Nb-1,Rg=5,Ab=0,An={};function Rb(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(Yr)&&(n=i[Yr]),n==null&&(n=i[Yr]=Ab++);let o=n&Ag,r=1<<o;e.data[t+(o>>Rg)]|=r}function Wa(t,e){let i=kg(t,e);if(i!==-1)return i;let n=e[X];n.firstCreatePass&&(t.injectorIndex=e.length,Ru(n.data,t),Ru(e,null),Ru(n.blueprint,null));let o=pf(t,e),r=t.injectorIndex;if(Ng(o)){let s=za(o),a=$a(o,e),l=a[X].data;for(let d=0;d<8;d++)e[r+d]=a[s+d]|l[s+d]}return e[r+8]=o,r}function Ru(t,e){t.push(0,0,0,0,0,0,0,0,e)}function kg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function pf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,o=e;for(;o!==null;){if(n=Bg(o),n===null)return zo;if(i++,o=o[nr],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return zo}function id(t,e,i){Rb(t,e,i)}function kb(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,o=0;for(;o<n;){let r=i[o];if(Km(r))break;if(r===0)o=o+2;else if(typeof r=="number")for(o++;o<n&&typeof i[o]=="string";)o++;else{if(r===e)return i[o+1];o=o+2}}}return null}function Fg(t,e,i){if(i&fe.Optional||t!==void 0)return t;Qd(e,"NodeInjector")}function Pg(t,e,i,n){if(i&fe.Optional&&n===void 0&&(n=null),!(i&(fe.Self|fe.Host))){let o=t[qo],r=Dt(void 0);try{return o?o.get(e,n,i&fe.Optional):Hm(e,n,i&fe.Optional)}finally{Dt(r)}}return Fg(n,e,i)}function Lg(t,e,i,n=fe.Default,o){if(t!==null){if(e[Q]&2048&&!(n&fe.Self)){let s=Vb(t,e,i,n,An);if(s!==An)return s}let r=Vg(t,e,i,n,An);if(r!==An)return r}return Pg(e,i,n,o)}function Vg(t,e,i,n,o){let r=Pb(i);if(typeof r=="function"){if(!Eg(e,t,n))return n&fe.Host?Fg(o,i,n):Pg(e,i,n,o);try{let s;if(s=r(n),s==null&&!(n&fe.Optional))Qd(i);else return s}finally{Ig()}}else if(typeof r=="number"){let s=null,a=kg(t,e),l=zo,d=n&fe.Host?e[kt][Et]:null;for((a===-1||n&fe.SkipSelf)&&(l=a===-1?pf(t,e):e[a+8],l===zo||!am(n,!1)?a=-1:(s=e[X],a=za(l),e=$a(l,e)));a!==-1;){let p=e[X];if(sm(r,a,p.data)){let m=Fb(a,e,i,s,n,d);if(m!==An)return m}l=e[a+8],l!==zo&&am(n,e[X].data[a+8]===d)&&sm(r,a,e)?(s=p,a=za(l),e=$a(l,e)):a=-1}}return o}function Fb(t,e,i,n,o,r){let s=e[X],a=s.data[t+8],l=n==null?pl(a)&&nd:n!=s&&(a.type&3)!==0,d=o&fe.Host&&r===a,p=Ra(a,s,i,l,d);return p!==null?po(e,s,p,a):An}function Ra(t,e,i,n,o){let r=t.providerIndexes,s=e.data,a=r&1048575,l=t.directiveStart,d=t.directiveEnd,p=r>>20,m=n?a:a+p,_=o?a+p:d;for(let g=m;g<_;g++){let D=s[g];if(g<l&&i===D||g>=l&&D.type===i)return g}if(o){let g=s[l];if(g&&bi(g)&&g.type===i)return l}return null}function po(t,e,i,n){let o=t[i],r=e.data;if(Tb(o)){let s=o;s.resolving&&c1(l1(r[i]));let a=Ga(s.canSeeViewProviders);s.resolving=!0;let l,d=s.injectImpl?Dt(s.injectImpl):null,p=Eg(t,n,fe.Default);try{o=t[i]=s.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&Sb(i,r[i],e)}finally{d!==null&&Dt(d),Ga(a),s.resolving=!1,Ig()}}return o}function Pb(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Yr)?t[Yr]:void 0;return typeof e=="number"?e>=0?e&Ag:Lb:e}function sm(t,e,i){let n=1<<t;return!!(i[e+(t>>Rg)]&n)}function am(t,e){return!(t&fe.Self)&&!(t&fe.Host&&e)}var oo=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return Lg(this._tNode,this._lView,e,al(n),i)}};function Lb(){return new oo(lt(),K())}function $t(t){return is(()=>{let e=t.prototype.constructor,i=e[Pa]||od(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[Pa]||od(o);if(r&&r!==i)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function od(t){return Lm(t)?()=>{let e=od(vt(t));return e&&e()}:ro(t)}function Vb(t,e,i,n,o){let r=t,s=e;for(;r!==null&&s!==null&&s[Q]&2048&&!(s[Q]&512);){let a=Vg(r,s,i,n|fe.Self,An);if(a!==An)return a;let l=r.parent;if(!l){let d=s[lg];if(d){let p=d.get(i,An,n);if(p!==An)return p}l=Bg(s),s=s[nr]}r=l}return o}function Bg(t){let e=t[X],i=e.type;return i===2?e.declTNode:i===1?t[Et]:null}function ls(t){return kb(lt(),t)}function lm(t,e=null,i=null,n){let o=Bb(t,e,i,n);return o.resolveInjectorInitializers(),o}function Bb(t,e=null,i=null,n,o=new Set){let r=[i||wt,H1(t)];return n=n||(typeof t=="object"?void 0:At(t)),new Qr(r,e||ul(),n||null,o)}var to=class to{static create(e,i){if(Array.isArray(e))return lm({name:""},i,e,"");{let n=e.name??"";return lm({name:n},e.parent,e.providers,n)}}};to.THROW_IF_NOT_FOUND=qr,to.NULL=new Ba,to.\u0275prov=L({token:to,providedIn:"any",factory:()=>H(Wm)}),to.__NG_ELEMENT_ID__=-1;var Ue=to;var jb=new G("");jb.__NG_ELEMENT_ID__=t=>{let e=lt();if(e===null)throw new q(204,!1);if(e.type&2)return e.value;if(t&fe.Optional)return null;throw new q(204,!1)};var Ub="ngOriginalError";function ku(t){return t[Ub]}var jg=!0,ei=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Hb,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),rd=class extends ei{constructor(e){super(),this._lView=e}onDestroy(e){return _g(this._lView,e),()=>lb(this._lView,e)}};function Hb(){return new rd(K())}var ir=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new qi(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var sd=class extends he{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,ag()&&(this.destroyRef=C(ei,{optional:!0})??void 0,this.pendingTasks=C(ir,{optional:!0})??void 0)}emit(e){let i=ce(null);try{super.next(e)}finally{ce(i)}}subscribe(e,i,n){let o=e,r=i||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:r,complete:s});return e instanceof je&&e.add(a),a}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},re=sd;function Ya(...t){}function Ug(t){let e,i;function n(){t=Ya;try{i!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(i),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(()=>{t(),n()})),()=>n()}function cm(t){return queueMicrotask(()=>t()),()=>{t=Ya}}var hf="isAngularZone",qa=hf+"_ID",zb=0,ge=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new re(!1),this.onMicrotaskEmpty=new re(!1),this.onStable=new re(!1),this.onError=new re(!1);let{enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=jg}=e;if(typeof Zone>"u")throw new q(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)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&n,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=r,Wb(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(hf)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new q(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,o){let r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,e,$b,Ya,Ya);try{return r.runTask(s,i,n)}finally{r.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},$b={};function mf(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Gb(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Ug(()=>{t.callbackScheduled=!1,ad(t),t.isCheckStableRunning=!0,mf(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),ad(t)}function Wb(t){let e=()=>{Gb(t)},i=zb++;t._inner=t._inner.fork({name:"angular",properties:{[hf]:!0,[qa]:i,[qa+i]:!0},onInvokeTask:(n,o,r,s,a,l)=>{if(Yb(l))return n.invokeTask(r,s,a,l);try{return um(t),n.invokeTask(r,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),dm(t)}},onInvoke:(n,o,r,s,a,l,d)=>{try{return um(t),n.invoke(r,s,a,l,d)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!qb(l)&&e(),dm(t)}},onHasTask:(n,o,r,s)=>{n.hasTask(r,s),o===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,ad(t),mf(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,o,r,s)=>(n.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function ad(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function um(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dm(t){t._nesting--,mf(t)}var ld=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new re,this.onMicrotaskEmpty=new re,this.onStable=new re,this.onError=new re}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,o){return e.apply(i,n)}};function Yb(t){return Hg(t,"__ignore_ng_zone__")}function qb(t){return Hg(t,"__scheduler_tick__")}function Hg(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Kn=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&ku(e);for(;i&&ku(i);)i=ku(i);return i||null}},Kb=new G("",{providedIn:"root",factory:()=>{let t=C(ge),e=C(Kn);return i=>t.runOutsideAngular(()=>e.handleError(i))}});function fm(t,e){return Fm(t,e)}function Zb(t){return Fm(km,t)}var De=(fm.required=Zb,fm);function Qb(){return or(lt(),K())}function or(t,e){return new ye(zt(t,e))}var ye=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Qb;let t=e;return t})();function Jb(t){return t instanceof ye?t.nativeElement:t}function Xb(){return this._results[Symbol.iterator]()}var cd=class t{get changes(){return this._changes??=new re}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=Xb)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=C1(e);(this._changesDetected=!b1(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zg(t){return(t.flags&128)===128}var $g=new Map,eC=0;function tC(){return eC++}function nC(t){$g.set(t[fl],t)}function ud(t){$g.delete(t[fl])}var pm="__ngContext__";function Di(t,e){vi(e)?(t[pm]=e[fl],nC(e)):t[pm]=e}function Gg(t){return Yg(t[Jr])}function Wg(t){return Yg(t[yn])}function Yg(t){for(;t!==null&&!Jn(t);)t=t[yn];return t}var dd;function qg(t){dd=t}function iC(){if(dd!==void 0)return dd;if(typeof document<"u")return document;throw new q(210,!1)}var gf=new G("",{providedIn:"root",factory:()=>oC}),oC="ng",_f=new G(""),Gt=new G("",{providedIn:"platform",factory:()=>"unknown"});var vf=new G("",{providedIn:"root",factory:()=>iC().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var rC="h",sC="b";var aC=()=>null;function yf(t,e,i=!1){return aC(t,e,i)}var Kg=!1,lC=new G("",{providedIn:"root",factory:()=>Kg});var Sa;function cC(){if(Sa===void 0&&(Sa=null,io.trustedTypes))try{Sa=io.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Sa}function bl(t){return cC()?.createHTML(t)||t}var Zn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rm})`}},fd=class extends Zn{getTypeName(){return"HTML"}},pd=class extends Zn{getTypeName(){return"Style"}},hd=class extends Zn{getTypeName(){return"Script"}},md=class extends Zn{getTypeName(){return"URL"}},gd=class extends Zn{getTypeName(){return"ResourceURL"}};function Vn(t){return t instanceof Zn?t.changingThisBreaksApplicationSecurity:t}function vo(t,e){let i=uC(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${Rm})`)}return i===e}function uC(t){return t instanceof Zn&&t.getTypeName()||null}function Zg(t){return new fd(t)}function Qg(t){return new pd(t)}function Jg(t){return new hd(t)}function Xg(t){return new md(t)}function e0(t){return new gd(t)}function dC(t){let e=new vd(t);return fC()?new _d(e):e}var _d=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(bl(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.firstChild?.remove(),i)}catch{return null}}},vd=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=bl(e),i}};function fC(){try{return!!new window.DOMParser().parseFromString(bl(""),"text/html")}catch{return!1}}var pC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cl(t){return t=String(t),t.match(pC)?t:"unsafe:"+t}function ti(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function cs(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var t0=ti("area,br,col,hr,img,wbr"),n0=ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),i0=ti("rp,rt"),hC=cs(i0,n0),mC=cs(n0,ti("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")),gC=cs(i0,ti("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")),hm=cs(t0,mC,gC,hC),o0=ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_C=ti("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"),vC=ti("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"),yC=cs(o0,_C,vC),bC=ti("script,style,template"),yd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,o=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){o.push(i),i=wC(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=DC(i);if(r){i=r;break}i=o.pop()}}return this.buf.join("")}startElement(e){let i=mm(e).toLowerCase();if(!hm.hasOwnProperty(i))return this.sanitizedSomething=!0,!bC.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let o=0;o<n.length;o++){let r=n.item(o),s=r.name,a=s.toLowerCase();if(!yC.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;o0[a]&&(l=Cl(l)),this.buf.push(" ",s,'="',gm(l),'"')}return this.buf.push(">"),!0}endElement(e){let i=mm(e).toLowerCase();hm.hasOwnProperty(i)&&!t0.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(gm(e))}};function CC(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function DC(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw r0(e);return e}function wC(t){let e=t.firstChild;if(e&&CC(t,e))throw r0(e);return e}function mm(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function r0(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var EC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,SC=/([^\#-~ |!])/g;function gm(t){return t.replace(/&/g,"&").replace(EC,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(SC,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ma;function s0(t,e){let i=null;try{Ma=Ma||dC(t);let n=e?String(e):"";i=Ma.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=i.innerHTML,i=Ma.getInertBodyElement(n)}while(n!==r);let a=new yd().sanitizeChildren(_m(i)||i);return bl(a)}finally{if(i){let n=_m(i)||i;for(;n.firstChild;)n.firstChild.remove()}}}function _m(t){return"content"in t&&MC(t)?t.content:null}function MC(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var bn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(bn||{});function Bn(t){let e=TC();return e?e.sanitize(bn.URL,t)||"":vo(t,"URL")?Vn(t):Cl($o(t))}function TC(){let t=K();return t&&t[kn].sanitizer}var IC=/^>|^->|<!--|-->|--!>|<!-$/g,xC=/(<|>)/g,OC="\u200B$1\u200B";function NC(t){return t.replace(IC,e=>e.replace(xC,OC))}function a0(t){return(t??C(Ue)).get(Gt)==="browser"}var Pn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Pn||{}),AC;function bf(t,e){return AC(t,e)}function Uo(t,e,i,n,o){if(n!=null){let r,s=!1;Jn(n)?r=n:vi(n)&&(s=!0,n=n[Qn]);let a=Fn(n);t===0&&i!==null?o==null?f0(e,i,a):Ka(e,i,a,o||null,!0):t===1&&i!==null?Ka(e,i,a,o||null,!0):t===2?WC(e,a,s):t===3&&e.destroyNode(a),r!=null&&qC(e,t,r,i,o)}}function RC(t,e){return t.createText(e)}function kC(t,e,i){t.setValue(e,i)}function FC(t,e){return t.createComment(NC(e))}function l0(t,e,i){return t.createElement(e,i)}function PC(t,e){c0(t,e),e[Qn]=null,e[Et]=null}function LC(t,e,i,n,o,r){n[Qn]=o,n[Et]=e,El(t,n,i,1,o,r)}function c0(t,e){e[kn].changeDetectionScheduler?.notify(9),El(t,e,e[Re],2,null,null)}function VC(t){let e=t[Jr];if(!e)return Fu(t[X],t);for(;e;){let i=null;if(vi(e))i=e[Jr];else{let n=e[pt];n&&(i=n)}if(!i){for(;e&&!e[yn]&&e!==t;)vi(e)&&Fu(e[X],e),e=e[ht];e===null&&(e=t),vi(e)&&Fu(e[X],e),i=e&&e[yn]}e=i}}function BC(t,e,i,n){let o=pt+n,r=i.length;n>0&&(i[o-1][yn]=e),n<r-pt?(e[yn]=i[o],Gm(i,pt+n,e)):(i.push(e),e[yn]=null),e[ht]=i;let s=e[ao];s!==null&&i!==s&&u0(s,e);let a=e[qn];a!==null&&a.insertView(t),Xu(e),e[Q]|=128}function u0(t,e){let i=t[Ko],n=e[ht];if(vi(n))t[Q]|=Ha.HasTransplantedViews;else{let o=n[ht][kt];e[kt]!==o&&(t[Q]|=Ha.HasTransplantedViews)}i===null?t[Ko]=[e]:i.push(e)}function Cf(t,e){let i=t[Ko],n=i.indexOf(e);i.splice(n,1)}function Xr(t,e){if(t.length<=pt)return;let i=pt+e,n=t[i];if(n){let o=n[ao];o!==null&&o!==t&&Cf(o,n),e>0&&(t[i-1][yn]=n[yn]);let r=Va(t,pt+e);PC(n[X],n);let s=r[qn];s!==null&&s.detachView(r[X]),n[ht]=null,n[yn]=null,n[Q]&=-129}return n}function Dl(t,e){if(!(e[Q]&256)){let i=e[Re];i.destroyNode&&El(t,e,i,3,null,null),VC(e)}}function Fu(t,e){if(e[Q]&256)return;let i=ce(null);try{e[Q]&=-129,e[Q]|=256,e[jt]&&su(e[jt]),UC(t,e),jC(t,e),e[X].type===1&&e[Re].destroy();let n=e[ao];if(n!==null&&Jn(e[ht])){n!==e[ht]&&Cf(n,e);let o=e[qn];o!==null&&o.detachView(t)}ud(e)}finally{ce(i)}}function jC(t,e){let i=t.cleanup,n=e[ja];if(i!==null)for(let r=0;r<i.length-1;r+=2)if(typeof i[r]=="string"){let s=i[r+3];s>=0?n[s]():n[-s].unsubscribe(),r+=2}else{let s=n[i[r+1]];i[r].call(s)}n!==null&&(e[ja]=null);let o=e[_i];if(o!==null){e[_i]=null;for(let r=0;r<o.length;r++){let s=o[r];s()}}}function UC(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let o=e[i[n]];if(!(o instanceof fo)){let r=i[n+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){let a=o[r[s]],l=r[s+1];Nn(4,a,l);try{l.call(a)}finally{Nn(5,a,l)}}else{Nn(4,o,r);try{r.call(o)}finally{Nn(5,o,r)}}}}}function d0(t,e,i){return HC(t,e.parent,i)}function HC(t,e,i){let n=e;for(;n!==null&&n.type&168;)e=n,n=e.parent;if(n===null)return i[Qn];{let{componentOffset:o}=n;if(o>-1){let{encapsulation:r}=t.data[n.directiveStart+o];if(r===Rn.None||r===Rn.Emulated)return null}return zt(n,i)}}function Ka(t,e,i,n,o){t.insertBefore(e,i,n,o)}function f0(t,e,i){t.appendChild(e,i)}function vm(t,e,i,n,o){n!==null?Ka(t,e,i,n,o):f0(t,e,i)}function p0(t,e){return t.parentNode(e)}function zC(t,e){return t.nextSibling(e)}function h0(t,e,i){return GC(t,e,i)}function $C(t,e,i){return t.type&40?zt(t,i):null}var GC=$C,ym;function wl(t,e,i,n){let o=d0(t,n,e),r=e[Re],s=n.parent||e[Et],a=h0(s,n,e);if(o!=null)if(Array.isArray(i))for(let l=0;l<i.length;l++)vm(r,o,i[l],a,!1);else vm(r,o,i,a,!1);ym!==void 0&&ym(r,n,e,i,o)}function Wr(t,e){if(e!==null){let i=e.type;if(i&3)return zt(e,t);if(i&4)return bd(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Wr(t,n);{let o=t[e.index];return Jn(o)?bd(-1,o):Fn(o)}}else{if(i&128)return Wr(t,e.next);if(i&32)return bf(e,t)()||Fn(t[e.index]);{let n=m0(t,e);if(n!==null){if(Array.isArray(n))return n[0];let o=co(t[kt]);return Wr(o,n)}else return Wr(t,e.next)}}}return null}function m0(t,e){if(e!==null){let n=t[kt][Et],o=e.projection;return n.projection[o]}return null}function bd(t,e){let i=pt+t+1;if(i<e.length){let n=e[i],o=n[X].firstChild;if(o!==null)return Wr(n,o)}return e[lo]}function WC(t,e,i){t.removeChild(null,e,i)}function Df(t,e,i,n,o,r,s){for(;i!=null;){if(i.type===128){i=i.next;continue}let a=n[i.index],l=i.type;if(s&&e===0&&(a&&Di(Fn(a),n),i.flags|=2),(i.flags&32)!==32)if(l&8)Df(t,e,i.child,n,o,r,!1),Uo(e,t,o,a,r);else if(l&32){let d=bf(i,n),p;for(;p=d();)Uo(e,t,o,p,r);Uo(e,t,o,a,r)}else l&16?g0(t,e,n,i,o,r):Uo(e,t,o,a,r);i=s?i.projectionNext:i.next}}function El(t,e,i,n,o,r){Df(i,n,t.firstChild,e,o,r,!1)}function YC(t,e,i){let n=e[Re],o=d0(t,i,e),r=i.parent||e[Et],s=h0(r,i,e);g0(n,0,e,i,o,s)}function g0(t,e,i,n,o,r){let s=i[kt],l=s[Et].projection[n.projection];if(Array.isArray(l))for(let d=0;d<l.length;d++){let p=l[d];Uo(e,t,o,p,r)}else{let d=l,p=s[ht];zg(n)&&(d.flags|=128),Df(t,e,d,p,o,r,!0)}}function qC(t,e,i,n,o){let r=i[lo],s=Fn(i);r!==s&&Uo(e,t,n,r,o);for(let a=pt;a<i.length;a++){let l=i[a];El(l[X],l,t,e,n,r)}}function KC(t,e,i,n,o){if(e)o?t.addClass(i,n):t.removeClass(i,n);else{let r=n.indexOf("-")===-1?void 0:Pn.DashCase;o==null?t.removeStyle(i,n,r):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=Pn.Important),t.setStyle(i,n,o,r))}}function ZC(t,e,i){t.setAttribute(e,"style",i)}function _0(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function v0(t,e,i){let{mergedAttrs:n,classes:o,styles:r}=i;n!==null&&Yu(t,e,n),o!==null&&_0(t,e,o),r!==null&&ZC(t,e,r)}var St={};function h(t=1){y0(ke(),K(),Xn()+t,!1)}function y0(t,e,i,n){if(!n)if((e[Q]&3)===3){let r=t.preOrderCheckHooks;r!==null&&Na(e,r,i)}else{let r=t.preOrderHooks;r!==null&&Aa(e,r,0,i)}uo(i)}function w(t,e=fe.Default){let i=K();if(i===null)return H(t,e);let n=lt();return Lg(n,i,vt(t),e)}function b0(t,e,i,n,o,r){let s=ce(null);try{let a=null;o&yi.SignalBased&&(a=e[n][Tn]),a!==null&&a.transformFn!==void 0&&(r=a.transformFn(r)),o&yi.HasDecoratorInputTransform&&(r=t.inputTransforms[n].call(e,r)),t.setInput!==null?t.setInput(e,a,r,i,n):ug(e,a,n,r)}finally{ce(s)}}function QC(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let o=i[n];if(o<0)uo(~o);else{let r=o,s=i[++n],a=i[++n];yb(s,r);let l=e[r];a(2,l)}}}finally{uo(-1)}}function Sl(t,e,i,n,o,r,s,a,l,d,p){let m=e.blueprint.slice();return m[Qn]=o,m[Q]=n|4|128|8|64,(d!==null||t&&t[Q]&2048)&&(m[Q]|=2048),mg(m),m[ht]=m[nr]=t,m[ft]=i,m[kn]=s||t&&t[kn],m[Re]=a||t&&t[Re],m[qo]=l||t&&t[qo]||null,m[Et]=r,m[fl]=tC(),m[Yo]=p,m[lg]=d,m[kt]=e.type==2?t[kt]:m,m}function rr(t,e,i,n,o){let r=t.data[e];if(r===null)r=JC(t,e,i,n,o),vb()&&(r.flags|=32);else if(r.type&64){r.type=i,r.value=n,r.attrs=o;let s=hb();r.injectorIndex=s===null?-1:s.injectorIndex}return go(r,!0),r}function JC(t,e,i,n,o){let r=Cg(),s=af(),a=s?r:r&&r.parent,l=t.data[e]=oD(t,a,i,e,n,o);return t.firstChild===null&&(t.firstChild=l),r!==null&&(s?r.child==null&&l.parent!==null&&(r.child=l):r.next===null&&(r.next=l,l.prev=r)),l}function C0(t,e,i,n){if(i===0)return-1;let o=e.length;for(let r=0;r<i;r++)e.push(n),t.blueprint.push(n),t.data.push(null);return o}function D0(t,e,i,n,o){let r=Xn(),s=n&2;try{uo(-1),s&&e.length>et&&y0(t,e,et,!1),Nn(s?2:0,o),i(n,o)}finally{uo(r),Nn(s?3:1,o)}}function wf(t,e,i){if(nf(e)){let n=ce(null);try{let o=e.directiveStart,r=e.directiveEnd;for(let s=o;s<r;s++){let a=t.data[s];if(a.contentQueries){let l=i[s];a.contentQueries(1,l,s)}}}finally{ce(n)}}}function Ef(t,e,i){yg()&&(uD(t,e,i,zt(i,e)),(i.flags&64)===64&&S0(t,e,i))}function Sf(t,e,i=zt){let n=e.localNames;if(n!==null){let o=e.index+1;for(let r=0;r<n.length;r+=2){let s=n[r+1],a=s===-1?i(e,t):t[s];t[o++]=a}}}function w0(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Mf(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Mf(t,e,i,n,o,r,s,a,l,d,p){let m=et+n,_=m+o,g=XC(m,_),D=typeof d=="function"?d():d;return g[X]={type:t,blueprint:g,template:i,queries:null,viewQuery:a,declTNode:e,data:g.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:_,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 r=="function"?r():r,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:D,incompleteFirstPass:!1,ssrId:p}}function XC(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:St);return i}function eD(t,e,i,n){let r=n.get(lC,Kg)||i===Rn.ShadowDom,s=t.selectRootElement(e,r);return tD(s),s}function tD(t){nD(t)}var nD=()=>null;function iD(t,e,i,n){let o=I0(e);o.push(i),t.firstCreatePass&&x0(t).push(n,o.length-1)}function oD(t,e,i,n,o,r){let s=e?e.injectorIndex:-1,a=0;return bg()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function bm(t,e,i,n,o){for(let r in e){if(!e.hasOwnProperty(r))continue;let s=e[r];if(s===void 0)continue;n??={};let a,l=yi.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let d=r;if(o!==null){if(!o.hasOwnProperty(r))continue;d=o[r]}t===0?Cm(n,i,d,a,l):Cm(n,i,d,a)}return n}function Cm(t,e,i,n,o){let r;t.hasOwnProperty(i)?(r=t[i]).push(e,n):r=t[i]=[e,n],o!==void 0&&r.push(o)}function rD(t,e,i){let n=e.directiveStart,o=e.directiveEnd,r=t.data,s=e.attrs,a=[],l=null,d=null;for(let p=n;p<o;p++){let m=r[p],_=i?i.get(m):null,g=_?_.inputs:null,D=_?_.outputs:null;l=bm(0,m.inputs,p,l,g),d=bm(1,m.outputs,p,d,D);let x=l!==null&&s!==null&&!Xd(e)?CD(l,p,s):null;a.push(x)}l!==null&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=d}function sD(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Ml(t,e,i,n,o,r,s,a){let l=zt(e,i),d=e.inputs,p;!a&&d!=null&&(p=d[n])?(If(t,i,p,n,o),pl(e)&&aD(i,e.index)):e.type&3?(n=sD(n),o=s!=null?s(o,e.value||"",n):o,r.setProperty(l,n,o)):e.type&12}function aD(t,e){let i=wi(e,t);i[Q]&16||(i[Q]|=64)}function Tf(t,e,i,n){if(yg()){let o=n===null?null:{"":-1},r=fD(t,i),s,a;r===null?s=a=null:[s,a]=r,s!==null&&E0(t,e,i,s,o,a),o&&pD(i,n,o)}i.mergedAttrs=Zr(i.mergedAttrs,i.attrs)}function E0(t,e,i,n,o,r){for(let d=0;d<n.length;d++)id(Wa(i,e),t,n[d].type);mD(i,t.data.length,n.length);for(let d=0;d<n.length;d++){let p=n[d];p.providersResolver&&p.providersResolver(p)}let s=!1,a=!1,l=C0(t,e,n.length,null);for(let d=0;d<n.length;d++){let p=n[d];i.mergedAttrs=Zr(i.mergedAttrs,p.hostAttrs),gD(t,i,e,l,p),hD(l,p,o),p.contentQueries!==null&&(i.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(i.flags|=64);let m=p.type.prototype;!s&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),s=!0),!a&&(m.ngOnChanges||m.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),l++}rD(t,i,r)}function lD(t,e,i,n,o){let r=o.hostBindings;if(r){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;cD(s)!=a&&s.push(a),s.push(i,n,r)}}function cD(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function uD(t,e,i,n){let o=i.directiveStart,r=i.directiveEnd;pl(i)&&_D(e,i,t.data[o+i.componentOffset]),t.firstCreatePass||Wa(i,e),Di(n,e);let s=i.initialInputs;for(let a=o;a<r;a++){let l=t.data[a],d=po(e,t,a,i);if(Di(d,e),s!==null&&bD(e,a-o,d,l,i,s),bi(l)){let p=wi(i.index,e);p[ft]=po(e,t,a,i)}}}function S0(t,e,i){let n=i.directiveStart,o=i.directiveEnd,r=i.index,s=bb();try{uo(r);for(let a=n;a<o;a++){let l=t.data[a],d=e[a];ed(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&dD(l,d)}}finally{uo(-1),ed(s)}}function dD(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function fD(t,e){let i=t.directiveRegistry,n=null,o=null;if(i)for(let r=0;r<i.length;r++){let s=i[r];if(Qm(e,s.selectors,!1))if(n||(n=[]),bi(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),n.unshift(...a,s);let l=a.length;Cd(t,e,l)}else n.unshift(s),Cd(t,e,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,n,o),n.push(s)}return n===null?null:[n,o]}function Cd(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function pD(t,e,i){if(e){let n=t.localNames=[];for(let o=0;o<e.length;o+=2){let r=i[e[o+1]];if(r==null)throw new q(-301,!1);n.push(e[o],r)}}}function hD(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;bi(e)&&(i[""]=t)}}function mD(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function gD(t,e,i,n,o){t.data[n]=o;let r=o.factory||(o.factory=ro(o.type,!0)),s=new fo(r,bi(o),w);t.blueprint[n]=s,i[n]=s,lD(t,e,n,C0(t,i,o.hostVars,St),o)}function _D(t,e,i){let n=zt(e,t),o=w0(i),r=t[kn].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=Tl(t,Sl(t,o,null,s,n,e,null,r.createRenderer(n,i),null,null,null));t[e.index]=a}function vD(t,e,i,n,o,r){let s=zt(t,e);yD(e[Re],s,r,t.value,i,n,o)}function yD(t,e,i,n,o,r,s){if(r==null)t.removeAttribute(e,o,i);else{let a=s==null?$o(r):s(r,n||"",o);t.setAttribute(e,o,a,i)}}function bD(t,e,i,n,o,r){let s=r[e];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],d=s[a++],p=s[a++],m=s[a++];b0(n,i,l,d,p,m)}}function CD(t,e,i){let n=null,o=0;for(;o<i.length;){let r=i[o];if(r===0){o+=4;continue}else if(r===5){o+=2;continue}if(typeof r=="number")break;if(t.hasOwnProperty(r)){n===null&&(n=[]);let s=t[r];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(r,s[a+1],s[a+2],i[o+1]);break}}o+=2}return n}function M0(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function T0(t,e){let i=t.contentQueries;if(i!==null){let n=ce(null);try{for(let o=0;o<i.length;o+=2){let r=i[o],s=i[o+1];if(s!==-1){let a=t.data[s];uf(r),a.contentQueries(2,e[s],s)}}}finally{ce(n)}}}function Tl(t,e){return t[Jr]?t[nm][yn]=e:t[Jr]=e,t[nm]=e,e}function Dd(t,e,i){uf(0);let n=ce(null);try{e(t,i)}finally{ce(n)}}function I0(t){return t[ja]??=[]}function x0(t){return t.cleanup??=[]}function O0(t,e){let i=t[qo],n=i?i.get(Kn,null):null;n&&n.handleError(e)}function If(t,e,i,n,o){for(let r=0;r<i.length;){let s=i[r++],a=i[r++],l=i[r++],d=e[s],p=t.data[s];b0(p,d,n,a,l,o)}}function N0(t,e,i){let n=hg(e,t);kC(t[Re],n,i)}function DD(t,e){let i=wi(e,t),n=i[X];wD(n,i);let o=i[Qn];o!==null&&i[Yo]===null&&(i[Yo]=yf(o,i[qo])),xf(n,i,i[ft])}function wD(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function xf(t,e,i){df(e);try{let n=t.viewQuery;n!==null&&Dd(1,n,i);let o=t.template;o!==null&&D0(t,e,o,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[qn]?.finishViewCreation(t),t.staticContentQueries&&T0(t,e),t.staticViewQueries&&Dd(2,t.viewQuery,i);let r=t.components;r!==null&&ED(e,r)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[Q]&=-5,ff()}}function ED(t,e){for(let i=0;i<e.length;i++)DD(t,e[i])}function us(t,e,i,n){let o=ce(null);try{let r=e.tView,a=t[Q]&4096?4096:16,l=Sl(t,r,i,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),d=t[e.index];l[ao]=d;let p=t[qn];return p!==null&&(l[qn]=p.createEmbeddedView(r)),xf(r,l,i),l}finally{ce(o)}}function A0(t,e){let i=pt+e;if(i<t.length)return t[i]}function Zo(t,e){return!e||e.firstChild===null||zg(t)}function ds(t,e,i,n=!0){let o=e[X];if(BC(o,e,t,i),n){let s=bd(i,t),a=e[Re],l=p0(a,t[lo]);l!==null&&LC(o,t[Et],a,e,l,s)}let r=e[Yo];r!==null&&r.firstChild!==null&&(r.firstChild=null)}function R0(t,e){let i=Xr(t,e);return i!==void 0&&Dl(i[X],i),i}function Za(t,e,i,n,o=!1){for(;i!==null;){if(i.type===128){i=o?i.projectionNext:i.next;continue}let r=e[i.index];r!==null&&n.push(Fn(r)),Jn(r)&&SD(r,n);let s=i.type;if(s&8)Za(t,e,i.child,n);else if(s&32){let a=bf(i,e),l;for(;l=a();)n.push(l)}else if(s&16){let a=m0(e,i);if(Array.isArray(a))n.push(...a);else{let l=co(e[kt]);Za(l[X],l,a,n,!0)}}i=o?i.projectionNext:i.next}return n}function SD(t,e){for(let i=pt;i<t.length;i++){let n=t[i],o=n[X].firstChild;o!==null&&Za(n[X],n,o,e)}t[lo]!==t[Qn]&&e.push(t[lo])}var k0=[];function MD(t){return t[jt]??TD(t)}function TD(t){let e=k0.pop()??Object.create(xD);return e.lView=t,e}function ID(t){t.lView[jt]!==t&&(t.lView=null,k0.push(t))}var xD=Se(Y({},jr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{gl(t.lView)},consumerOnSignalRead(){this.lView[jt]=this}});function OD(t){let e=t[jt]??Object.create(ND);return e.lView=t,e}var ND=Se(Y({},jr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=co(t.lView);for(;e&&!F0(e[X]);)e=co(e);e&&gg(e)},consumerOnSignalRead(){this.lView[jt]=this}});function F0(t){return t.type!==2}var AD=100;function P0(t,e=!0,i=0){let n=t[kn],o=n.rendererFactory,r=!1;r||o.begin?.();try{RD(t,i)}catch(s){throw e&&O0(t,s),s}finally{r||(o.end?.(),n.inlineEffectRunner?.flush())}}function RD(t,e){let i=Dg();try{om(!0),wd(t,e);let n=0;for(;ml(t);){if(n===AD)throw new q(103,!1);n++,wd(t,1)}}finally{om(i)}}function kD(t,e,i,n){let o=e[Q];if((o&256)===256)return;let r=!1,s=!1;!r&&e[kn].inlineEffectRunner?.flush(),df(e);let a=!0,l=null,d=null;r||(F0(t)?(d=MD(e),l=qs(d)):oh()===null?(a=!1,d=OD(e),l=qs(d)):e[jt]&&(su(e[jt]),e[jt]=null));try{mg(e),_b(t.bindingStartIndex),i!==null&&D0(t,e,i,2,n);let p=(o&3)===3;if(!r)if(p){let g=t.preOrderCheckHooks;g!==null&&Na(e,g,null)}else{let g=t.preOrderHooks;g!==null&&Aa(e,g,0,null),Nu(e,0)}if(s||FD(e),L0(e,0),t.contentQueries!==null&&T0(t,e),!r)if(p){let g=t.contentCheckHooks;g!==null&&Na(e,g)}else{let g=t.contentHooks;g!==null&&Aa(e,g,1),Nu(e,1)}QC(t,e);let m=t.components;m!==null&&B0(e,m,0);let _=t.viewQuery;if(_!==null&&Dd(2,_,n),!r)if(p){let g=t.viewCheckHooks;g!==null&&Na(e,g)}else{let g=t.viewHooks;g!==null&&Aa(e,g,2),Nu(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ou]){for(let g of e[Ou])g();e[Ou]=null}r||(e[Q]&=-73)}catch(p){throw r||gl(e),p}finally{d!==null&&(ou(d,l),a&&ID(d)),ff()}}function L0(t,e){for(let i=Gg(t);i!==null;i=Wg(i))for(let n=pt;n<i.length;n++){let o=i[n];V0(o,e)}}function FD(t){for(let e=Gg(t);e!==null;e=Wg(e)){if(!(e[Q]&Ha.HasTransplantedViews))continue;let i=e[Ko];for(let n=0;n<i.length;n++){let o=i[n];gg(o)}}}function PD(t,e,i){let n=wi(e,t);V0(n,i)}function V0(t,e){sf(t)&&wd(t,e)}function wd(t,e){let n=t[X],o=t[Q],r=t[jt],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(r?.dirty&&ru(r)),s||=!1,r&&(r.dirty=!1),t[Q]&=-9217,s)kD(n,t,n.template,t[ft]);else if(o&8192){L0(t,1);let a=n.components;a!==null&&B0(t,a,1)}}function B0(t,e,i){for(let n=0;n<e.length;n++)PD(t,e[n],i)}function Of(t,e){let i=Dg()?64:1088;for(t[kn].changeDetectionScheduler?.notify(e);t;){t[Q]|=i;let n=co(t);if(Qu(t)&&!n)return t;t=n}return null}var ho=class{get rootNodes(){let e=this._lView,i=e[X];return Za(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ft]}set context(e){this._lView[ft]=e}get destroyed(){return(this._lView[Q]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ht];if(Jn(e)){let i=e[Ua],n=i?i.indexOf(this):-1;n>-1&&(Xr(e,n),Va(i,n))}this._attachedToViewContainer=!1}Dl(this._lView[X],this._lView)}onDestroy(e){_g(this._lView,e)}markForCheck(){Of(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Q]&=-129}reattach(){Xu(this._lView),this._lView[Q]|=128}detectChanges(){this._lView[Q]|=1024,P0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Qu(this._lView),i=this._lView[ao];i!==null&&!e&&Cf(i,this._lView),c0(this._lView[X],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=e;let i=Qu(this._lView),n=this._lView[ao];n!==null&&!i&&u0(n,this._lView),Xu(this._lView)}},Ln=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BD;let t=e;return t})(),LD=Ln,VD=class extends LD{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let o=us(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new ho(o)}};function BD(){return Il(lt(),K())}function Il(t,e){return t.type&4?new VD(e,t,or(t,e)):null}var bL=new RegExp(`^(\\d+)*(${sC}|${rC})*(.*)`);var jD=()=>null;function Qo(t,e){return jD(t,e)}var Jo=class{},xl=new G("",{providedIn:"root",factory:()=>!1});var j0=new G(""),U0=new G(""),Ed=class{},Qa=class{};function UD(t){let e=Error(`No component factory found for ${At(t)}.`);return e[HD]=t,e}var HD="ngComponent";var Sd=class{resolveComponentFactory(e){throw UD(e)}},Bf=class Bf{};Bf.NULL=new Sd;var es=Bf,Xo=class{},Wt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>zD();let t=e;return t})();function zD(){let t=K(),e=lt(),i=wi(e.index,t);return(vi(i)?i:t)[Re]}var $D=(()=>{let e=class e{};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();function Ja(t,e,i){let n=i?t.styles:null,o=i?t.classes:null,r=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")r=a;else if(r==1)o=zu(o,a);else if(r==2){let l=a,d=e[++s];n=zu(n,l+": "+d+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=o:t.classesWithoutHost=o}var Md=class extends es{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=so(e);return new ts(i,this.ngModule)}};function Dm(t,e){let i=[];for(let n in t){if(!t.hasOwnProperty(n))continue;let o=t[n];if(o===void 0)continue;let r=Array.isArray(o),s=r?o[0]:o,a=r?o[1]:yi.None;e?i.push({propName:s,templateName:n,isSignal:(a&yi.SignalBased)!==0}):i.push({propName:s,templateName:n})}return i}function GD(t){let e=t.toLowerCase();return e==="svg"?ib:e==="math"?ob:null}var ts=class extends Qa{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=Dm(e.inputs,!0);if(i!==null)for(let o of n)i.hasOwnProperty(o.propName)&&(o.transform=i[o.propName]);return n}get outputs(){return Dm(this.componentDef.outputs,!1)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=P1(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,o){let r=ce(null);try{o=o||this.ngModule;let s=o instanceof Rt?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new td(e,s):e,l=a.get(Xo,null);if(l===null)throw new q(407,!1);let d=a.get($D,null),p=a.get(Jo,null),m={rendererFactory:l,sanitizer:d,inlineEffectRunner:null,changeDetectionScheduler:p},_=l.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=n?eD(_,n,this.componentDef.encapsulation,a):l0(_,g,GD(g)),x=512;this.componentDef.signals?x|=4096:this.componentDef.onPush||(x|=16);let O=null;D!==null&&(O=yf(D,a,!0));let N=Mf(0,null,null,1,0,null,null,null,null,null,null),z=Sl(null,N,null,x,null,null,m,_,a,null,O);df(z);let le,P,oe=null;try{let $=this.componentDef,pe,Ae=null;$.findHostDirectiveDefs?(pe=[],Ae=new Map,$.findHostDirectiveDefs($,pe,Ae),pe.push($)):pe=[$];let $e=WD(z,D);oe=YD($e,D,$,pe,z,m,_),P=of(N,et),D&&ZD(_,$,D,n),i!==void 0&&QD(P,this.ngContentSelectors,i),le=KD(oe,$,pe,Ae,z,[JD]),xf(N,z,null)}catch($){throw oe!==null&&ud(oe),ud(z),$}finally{ff()}return new Td(this.componentType,le,or(P,z),z,P)}finally{ce(r)}}},Td=class extends Ed{constructor(e,i,n,o,r){super(),this.location=n,this._rootLView=o,this._tNode=r,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new ho(o,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,o;if(n!==null&&(o=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let r=this._rootLView;If(r[X],r,o,e,i),this.previousInputValues.set(e,i);let s=wi(this._tNode.index,r);Of(s,1)}}get injector(){return new oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function WD(t,e){let i=t[X],n=et;return t[n]=e,rr(i,n,2,"#host",null)}function YD(t,e,i,n,o,r,s){let a=o[X];qD(n,t,e,s);let l=null;e!==null&&(l=yf(e,o[qo]));let d=r.rendererFactory.createRenderer(e,i),p=16;i.signals?p=4096:i.onPush&&(p=64);let m=Sl(o,w0(i),null,p,o[t.index],t,r,d,null,null,l);return a.firstCreatePass&&Cd(a,t,n.length-1),Tl(o,m),o[t.index]=m}function qD(t,e,i,n){for(let o of t)e.mergedAttrs=Zr(e.mergedAttrs,o.hostAttrs);e.mergedAttrs!==null&&(Ja(e,e.mergedAttrs,!0),i!==null&&v0(n,i,e))}function KD(t,e,i,n,o,r){let s=lt(),a=o[X],l=zt(s,o);E0(a,o,s,i,null,n);for(let p=0;p<i.length;p++){let m=s.directiveStart+p,_=po(o,a,m,s);Di(_,o)}S0(a,o,s),l&&Di(l,o);let d=po(o,a,s.directiveStart+s.componentOffset,s);if(t[ft]=o[ft]=d,r!==null)for(let p of r)p(d,e);return wf(a,s,o),d}function ZD(t,e,i,n){if(n)Yu(t,i,["ng-version","18.2.11"]);else{let{attrs:o,classes:r}=L1(e.selectors[0]);o&&Yu(t,i,o),r&&r.length>0&&_0(t,i,r.join(" "))}}function QD(t,e,i){let n=t.projection=[];for(let o=0;o<e.length;o++){let r=i[o];n.push(r!=null?Array.from(r):null)}}function JD(){let t=lt();yl(K()[X],t)}var Ei=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=XD;let t=e;return t})();function XD(){let t=lt();return z0(t,K())}var ew=Ei,H0=class extends ew{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return or(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){let e=pf(this._hostTNode,this._hostLView);if(Ng(e)){let i=$a(e,this._hostLView),n=za(e),o=i[X].data[n+8];return new oo(o,i)}else return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=wm(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-pt}createEmbeddedView(e,i,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let s=Qo(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},r,s);return this.insertImpl(a,o,Zo(this._hostTNode,s)),a}createComponent(e,i,n,o,r){let s=e&&!X1(e),a;if(s)a=i;else{let D=i||{};a=D.index,n=D.injector,o=D.projectableNodes,r=D.environmentInjector||D.ngModuleRef}let l=s?e:new ts(so(e)),d=n||this.parentInjector;if(!r&&l.ngModule==null){let x=(s?d:this.parentInjector).get(Rt,null);x&&(r=x)}let p=so(l.componentType??{}),m=Qo(this._lContainer,p?.id??null),_=m?.firstChild??null,g=l.create(d,o,_,r);return this.insertImpl(g.hostView,a,Zo(this._hostTNode,m)),g}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let o=e._lView;if(sb(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=o[ht],d=new H0(l,l[Et],l[ht]);d.detach(d.indexOf(e))}}let r=this._adjustIndex(i),s=this._lContainer;return ds(s,o,r,n),e.attachToViewContainerRef(),Gm(Pu(s),r,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=wm(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=Xr(this._lContainer,i);n&&(Va(Pu(this._lContainer),i),Dl(n[X],n))}detach(e){let i=this._adjustIndex(e,-1),n=Xr(this._lContainer,i);return n&&Va(Pu(this._lContainer),i)!=null?new ho(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function wm(t){return t[Ua]}function Pu(t){return t[Ua]||(t[Ua]=[])}function z0(t,e){let i,n=e[t.index];return Jn(n)?i=n:(i=M0(n,e,null,t),e[t.index]=i,Tl(e,i)),nw(i,e,t,n),new H0(i,t,e)}function tw(t,e){let i=t[Re],n=i.createComment(""),o=zt(e,t),r=p0(i,o);return Ka(i,r,n,zC(i,o),!1),n}var nw=rw,iw=()=>!1;function ow(t,e,i){return iw(t,e,i)}function rw(t,e,i,n){if(t[lo])return;let o;i.type&8?o=Fn(n):o=tw(e,i),t[lo]=o}var Id=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},xd=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,o=[];for(let r=0;r<n;r++){let s=i.getByIndex(r),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)Nf(e,i).matches!==null&&this.queries[i].setDirty()}},Xa=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=pw(e):this.predicate=e}},Od=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let o=i!==null?i.length:0,r=this.getByIndex(n).embeddedTView(e,o);r&&(r.indexInDeclarationView=n,i!==null?i.push(r):i=[r])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Nd=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let o=0;o<n.length;o++){let r=n[o];this.matchTNodeWithReadOption(e,i,sw(i,r)),this.matchTNodeWithReadOption(e,i,Ra(i,e,r,!1,!1))}else n===Ln?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,Ra(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let o=this.metadata.read;if(o!==null)if(o===ye||o===Ei||o===Ln&&i.type&4)this.addMatch(i.index,-2);else{let r=Ra(i,e,o,!1,!1);r!==null&&this.addMatch(i.index,r)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};function sw(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function aw(t,e){return t.type&11?or(t,e):t.type&4?Il(t,e):null}function lw(t,e,i,n){return i===-1?aw(e,t):i===-2?cw(t,e,n):po(t,t[X],i,e)}function cw(t,e,i){if(i===ye)return or(e,t);if(i===Ln)return Il(e,t);if(i===Ei)return z0(e,t)}function $0(t,e,i,n){let o=e[qn].queries[n];if(o.matches===null){let r=t.data,s=i.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let d=s[l];if(d<0)a.push(null);else{let p=r[d];a.push(lw(e,p,s[l+1],i.metadata.read))}}o.matches=a}return o.matches}function Ad(t,e,i,n){let o=t.queries.getByIndex(i),r=o.matches;if(r!==null){let s=$0(t,e,o,i);for(let a=0;a<r.length;a+=2){let l=r[a];if(l>0)n.push(s[a/2]);else{let d=r[a+1],p=e[-l];for(let m=pt;m<p.length;m++){let _=p[m];_[ao]===_[ht]&&Ad(_[X],_,d,n)}if(p[Ko]!==null){let m=p[Ko];for(let _=0;_<m.length;_++){let g=m[_];Ad(g[X],g,d,n)}}}}}return n}function uw(t,e){return t[qn].queries[e].queryList}function G0(t,e,i){let n=new cd((i&4)===4);return iD(t,e,n,n.destroy),(e[qn]??=new xd).queries.push(new Id(n))-1}function dw(t,e,i){let n=ke();return n.firstCreatePass&&(W0(n,new Xa(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),G0(n,K(),e)}function fw(t,e,i,n){let o=ke();if(o.firstCreatePass){let r=lt();W0(o,new Xa(e,i,n),r.index),hw(o,t),(i&2)===2&&(o.staticContentQueries=!0)}return G0(o,K(),i)}function pw(t){return t.split(",").map(e=>e.trim())}function W0(t,e,i){t.queries===null&&(t.queries=new Od),t.queries.track(new Nd(e,i))}function hw(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Nf(t,e){return t.queries.getByIndex(e)}function mw(t,e){let i=t[X],n=Nf(i,e);return n.crossesNgTemplate?Ad(i,t,e,[]):$0(i,t,n,e)}var Em=new Set;function jn(t){Em.has(t)||(Em.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function gw(t){return typeof t=="function"&&t[Tn]!==void 0}function Si(t,e){jn("NgSignals");let i=mh(t),n=i[Tn];return e?.equal&&(n.equal=e.equal),i.set=o=>Qs(n,o),i.update=o=>gh(n,o),i.asReadonly=_w.bind(i),i}function _w(){let t=this[Tn];if(t.readonlyFn===void 0){let e=()=>this();e[Tn]=t,t.readonlyFn=e}return t.readonlyFn}function Y0(t){return gw(t)&&typeof t.set=="function"}function vw(t){return Object.getPrototypeOf(t.prototype).constructor}function tt(t){let e=vw(t.type),i=!0,n=[t];for(;e;){let o;if(bi(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new q(903,!1);o=e.\u0275dir}if(o){if(i){n.push(o);let s=t;s.inputs=Ta(t.inputs),s.inputTransforms=Ta(t.inputTransforms),s.declaredInputs=Ta(t.declaredInputs),s.outputs=Ta(t.outputs);let a=o.hostBindings;a&&ww(t,a);let l=o.viewQuery,d=o.contentQueries;if(l&&Cw(t,l),d&&Dw(t,d),yw(t,o),t1(t.outputs,o.outputs),bi(o)&&o.data.animation){let p=t.data;p.animation=(p.animation||[]).concat(o.data.animation)}}let r=o.features;if(r)for(let s=0;s<r.length;s++){let a=r[s];a&&a.ngInherit&&a(t),a===tt&&(i=!1)}}e=Object.getPrototypeOf(e)}bw(n)}function yw(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let o=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=e.inputTransforms[o]}}}function bw(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=Zr(o.hostAttrs,i=Zr(i,o.hostAttrs))}}function Ta(t){return t===Go?{}:t===wt?[]:t}function Cw(t,e){let i=t.viewQuery;i?t.viewQuery=(n,o)=>{e(n,o),i(n,o)}:t.viewQuery=e}function Dw(t,e){let i=t.contentQueries;i?t.contentQueries=(n,o,r)=>{e(n,o,r),i(n,o,r)}:t.contentQueries=e}function ww(t,e){let i=t.hostBindings;i?t.hostBindings=(n,o)=>{e(n,o),i(n,o)}:t.hostBindings=e}var er=class{};var el=class extends er{constructor(e){super(),this.componentFactoryResolver=new Md(this),this.instance=null;let i=new Qr([...e.providers,{provide:er,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],e.parent||ul(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ew(t,e,i=null){return new el({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function q0(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Ol(t,e,i){return t[e]=i}function Sw(t,e){return t[e]}function Ft(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function Af(t,e,i,n){let o=Ft(t,e,i);return Ft(t,e+1,n)||o}function Mw(t,e,i,n,o){let r=Af(t,e,i,n);return Ft(t,e+2,o)||r}function Tw(t){return(t.flags&32)===32}function Iw(t,e,i,n,o,r,s,a,l){let d=e.consts,p=rr(e,t,4,s||null,a||null);Tf(e,i,p,Ci(d,l)),yl(e,p);let m=p.tView=Mf(2,p,n,o,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,d,null);return e.queries!==null&&(e.queries.template(e,p),m.queries=e.queries.embeddedTView(p)),p}function tl(t,e,i,n,o,r,s,a,l,d){let p=i+et,m=e.firstCreatePass?Iw(p,e,t,n,o,r,s,a,l):e.data[p];go(m,!1);let _=xw(e,t,m,i);_l()&&wl(e,t,_,m),Di(_,t);let g=M0(_,t,_,m);return t[p]=g,Tl(t,g),ow(g,m,t),hl(m)&&Ef(e,t,m),l!=null&&Sf(t,m,d),m}function T(t,e,i,n,o,r,s,a){let l=K(),d=ke(),p=Ci(d.consts,r);return tl(l,d,t,e,i,n,o,p,s,a),T}var xw=Ow;function Ow(t,e,i,n){return vl(!0),e[Re].createComment("")}var Nt=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Nt||{}),K0=(()=>{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})(),no=class no{constructor(){this.ngZone=C(ge),this.scheduler=C(Jo),this.errorHandler=C(Kn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of no.PHASES)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[e]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>i.hooks[e](i.pipelinedValue))}catch(n){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};no.PHASES=[Nt.EarlyRead,Nt.Write,Nt.MixedReadWrite,Nt.Read],no.\u0275prov=L({token:no,providedIn:"root",factory:()=>new no});var Rd=no,kd=class{constructor(e,i,n,o){this.impl=e,this.hooks=i,this.once=n,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Nl(t,e){!e?.injector&&dl(Nl);let i=e?.injector??C(Ue);return a0(i)?(jn("NgAfterRender"),Z0(t,i,e,!1)):Q0}function sr(t,e){!e?.injector&&dl(sr);let i=e?.injector??C(Ue);return a0(i)?(jn("NgAfterNextRender"),Z0(t,i,e,!0)):Q0}function Nw(t,e){if(t instanceof Function){let i=[void 0,void 0,void 0,void 0];return i[e]=t,i}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function Z0(t,e,i,n){let o=e.get(K0);o.impl??=e.get(Rd);let r=i?.phase??Nt.MixedReadWrite,s=i?.manualCleanup!==!0?e.get(ei):null,a=new kd(o.impl,Nw(t,r),n,s);return o.impl.register(a),a}var Q0={destroy(){}};function Mt(t,e,i,n){let o=K(),r=_o();if(Ft(o,r,e)){let s=ke(),a=as();vD(a,o,t,e,i,n)}return Mt}function Rf(t,e,i,n){return Ft(t,_o(),i)?e+$o(i)+n:St}function Aw(t,e,i,n,o,r){let s=gb(),a=Af(t,s,i,o);return cf(2),a?e+$o(i)+n+$o(o)+r:St}function Ia(t,e){return t<<17|e<<2}function mo(t){return t>>17&32767}function Rw(t){return(t&2)==2}function kw(t,e){return t&131071|e<<17}function Fd(t){return t|2}function tr(t){return(t&131068)>>2}function Lu(t,e){return t&-131069|e<<2}function Fw(t){return(t&1)===1}function Pd(t){return t|1}function Pw(t,e,i,n,o,r){let s=r?e.classBindings:e.styleBindings,a=mo(s),l=tr(s);t[n]=i;let d=!1,p;if(Array.isArray(i)){let m=i;p=m[1],(p===null||os(m,p)>0)&&(d=!0)}else p=i;if(o)if(l!==0){let _=mo(t[a+1]);t[n+1]=Ia(_,a),_!==0&&(t[_+1]=Lu(t[_+1],n)),t[a+1]=kw(t[a+1],n)}else t[n+1]=Ia(a,0),a!==0&&(t[a+1]=Lu(t[a+1],n)),a=n;else t[n+1]=Ia(l,0),a===0?a=n:t[l+1]=Lu(t[l+1],n),l=n;d&&(t[n+1]=Fd(t[n+1])),Sm(t,p,n,!0),Sm(t,p,n,!1),Lw(e,p,t,n,r),s=Ia(a,l),r?e.classBindings=s:e.styleBindings=s}function Lw(t,e,i,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof e=="string"&&os(r,e)>=0&&(i[n+1]=Pd(i[n+1]))}function Sm(t,e,i,n){let o=t[i+1],r=e===null,s=n?mo(o):tr(o),a=!1;for(;s!==0&&(a===!1||r);){let l=t[s],d=t[s+1];Vw(l,e)&&(a=!0,t[s+1]=n?Pd(d):Fd(d)),s=n?mo(d):tr(d)}a&&(t[i+1]=n?Fd(o):Pd(o))}function Vw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?os(t,e)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bw(t){return t.substring(vn.key,vn.keyEnd)}function jw(t){return Uw(t),J0(t,X0(t,0,vn.textEnd))}function J0(t,e){let i=vn.textEnd;return i===e?-1:(e=vn.keyEnd=Hw(t,vn.key=e,i),X0(t,e,i))}function Uw(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function X0(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function Hw(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function A(t,e,i){let n=K(),o=_o();if(Ft(n,o,e)){let r=ke(),s=as();Ml(r,s,n,t,e,n[Re],i,!1)}return A}function Ld(t,e,i,n,o){let r=e.inputs,s=o?"class":"style";If(t,i,r[s],s,n)}function be(t,e,i){return t_(t,e,i,!1),be}function Qe(t,e){return t_(t,e,null,!0),Qe}function ar(t){n_(qw,e_,t,!0)}function e_(t,e){for(let i=jw(e);i>=0;i=J0(e,i))ll(t,Bw(e),!0)}function t_(t,e,i,n){let o=K(),r=ke(),s=cf(2);if(r.firstUpdatePass&&o_(r,t,s,n),e!==St&&Ft(o,s,e)){let a=r.data[Xn()];r_(r,a,o,o[Re],t,o[s+1]=Zw(e,i),n,s)}}function n_(t,e,i,n){let o=ke(),r=cf(2);o.firstUpdatePass&&o_(o,null,r,n);let s=K();if(i!==St&&Ft(s,r,i)){let a=o.data[Xn()];if(s_(a,n)&&!i_(o,r)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=zu(l,i||"")),Ld(o,a,s,i,n)}else Kw(o,a,s,s[Re],s[r+1],s[r+1]=Yw(t,e,i),n,r)}}function i_(t,e){return e>=t.expandoStartIndex}function o_(t,e,i,n){let o=t.data;if(o[i+1]===null){let r=o[Xn()],s=i_(t,i);s_(r,n)&&e===null&&!s&&(e=!1),e=zw(o,r,e,n),Pw(o,r,e,i,s,n)}}function zw(t,e,i,n){let o=Cb(t),r=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(i=Vu(null,t,e,i,n),i=ns(i,e.attrs,n),r=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(i=Vu(o,t,e,i,n),r===null){let l=$w(t,e,n);l!==void 0&&Array.isArray(l)&&(l=Vu(null,t,e,l[1],n),l=ns(l,e.attrs,n),Gw(t,e,n,l))}else r=Ww(t,e,n)}return r!==void 0&&(n?e.residualClasses=r:e.residualStyles=r),i}function $w(t,e,i){let n=i?e.classBindings:e.styleBindings;if(tr(n)!==0)return t[mo(n)]}function Gw(t,e,i,n){let o=i?e.classBindings:e.styleBindings;t[mo(o)]=n}function Ww(t,e,i){let n,o=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<o;r++){let s=t[r].hostAttrs;n=ns(n,s,i)}return ns(n,e.attrs,i)}function Vu(t,e,i,n,o){let r=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(r=e[a],n=ns(n,r.hostAttrs,o),r!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function ns(t,e,i){let n=i?1:2,o=-1;if(e!==null)for(let r=0;r<e.length;r++){let s=e[r];typeof s=="number"?o=s:o===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),ll(t,s,i?!0:e[++r]))}return t===void 0?null:t}function Yw(t,e,i){if(i==null||i==="")return wt;let n=[],o=Vn(i);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(n,o[r],!0);else if(typeof o=="object")for(let r in o)o.hasOwnProperty(r)&&t(n,r,o[r]);else typeof o=="string"&&e(n,o);return n}function qw(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&ll(t,n,i)}function Kw(t,e,i,n,o,r,s,a){o===St&&(o=wt);let l=0,d=0,p=0<o.length?o[0]:null,m=0<r.length?r[0]:null;for(;p!==null||m!==null;){let _=l<o.length?o[l+1]:void 0,g=d<r.length?r[d+1]:void 0,D=null,x;p===m?(l+=2,d+=2,_!==g&&(D=m,x=g)):m===null||p!==null&&p<m?(l+=2,D=p):(d+=2,D=m,x=g),D!==null&&r_(t,e,i,n,D,x,s,a),p=l<o.length?o[l]:null,m=d<r.length?r[d]:null}}function r_(t,e,i,n,o,r,s,a){if(!(e.type&3))return;let l=t.data,d=l[a+1],p=Fw(d)?Mm(l,e,i,o,tr(d),s):void 0;if(!nl(p)){nl(r)||Rw(d)&&(r=Mm(l,null,i,o,a,s));let m=hg(Xn(),i);KC(n,s,m,o,r)}}function Mm(t,e,i,n,o,r){let s=e===null,a;for(;o>0;){let l=t[o],d=Array.isArray(l),p=d?l[1]:l,m=p===null,_=i[o+1];_===St&&(_=m?wt:void 0);let g=m?Iu(_,n):p===n?_:void 0;if(d&&!nl(g)&&(g=Iu(l,n)),nl(g)&&(a=g,s))return a;let D=t[o+1];o=s?mo(D):tr(D)}if(e!==null){let l=r?e.residualClasses:e.residualStyles;l!=null&&(a=Iu(l,n))}return a}function nl(t){return t!==void 0}function Zw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=At(Vn(t)))),t}function s_(t,e){return(t.flags&(e?8:16))!==0}function lr(t,e,i){let n=K(),o=Rf(n,t,e,i);n_(ll,e_,o,!0)}var Vd=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),o=Math.max(e,i),r=this.detach(o);if(o-n>1){let s=this.detach(n);this.attach(n,r),this.attach(o,s)}else this.attach(n,r)}move(e,i){this.attach(i,this.detach(e))}};function Bu(t,e,i,n,o){return t===i&&Object.is(e,n)?1:Object.is(o(t,e),o(i,n))?-1:0}function Qw(t,e,i){let n,o,r=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;r<=s&&r<=l;){let d=t.at(r),p=e[r],m=Bu(r,d,r,p,i);if(m!==0){m<0&&t.updateValue(r,p),r++;continue}let _=t.at(s),g=e[l],D=Bu(s,_,l,g,i);if(D!==0){D<0&&t.updateValue(s,g),s--,l--;continue}let x=i(r,d),O=i(s,_),N=i(r,p);if(Object.is(N,O)){let z=i(l,g);Object.is(z,x)?(t.swap(r,s),t.updateValue(s,g),l--,s--):t.move(s,r),t.updateValue(r,p),r++;continue}if(n??=new il,o??=Im(t,r,s,i),Bd(t,n,r,N))t.updateValue(r,p),r++,s++;else if(o.has(N))n.set(x,t.detach(r)),s--;else{let z=t.create(r,e[r]);t.attach(r,z),r++,s++}}for(;r<=l;)Tm(t,n,i,r,e[r]),r++}else if(e!=null){let l=e[Symbol.iterator](),d=l.next();for(;!d.done&&r<=s;){let p=t.at(r),m=d.value,_=Bu(r,p,r,m,i);if(_!==0)_<0&&t.updateValue(r,m),r++,d=l.next();else{n??=new il,o??=Im(t,r,s,i);let g=i(r,m);if(Bd(t,n,r,g))t.updateValue(r,m),r++,s++,d=l.next();else if(!o.has(g))t.attach(r,t.create(r,m)),r++,s++,d=l.next();else{let D=i(r,p);n.set(D,t.detach(r)),s--}}}for(;!d.done;)Tm(t,n,i,t.length,d.value),d=l.next()}for(;r<=s;)t.destroy(t.detach(s--));n?.forEach(l=>{t.destroy(l)})}function Bd(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function Tm(t,e,i,n,o){if(Bd(t,e,n,i(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Im(t,e,i,n){let o=new Set;for(let r=e;r<=i;r++)o.add(n(r,t.at(r)));return o}var il=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),e(n,i)}}};function I(t,e){jn("NgControlFlow");let i=K(),n=_o(),o=i[n]!==St?i[n]:-1,r=o!==-1?ol(i,et+o):void 0,s=0;if(Ft(i,n,t)){let a=ce(null);try{if(r!==void 0&&R0(r,s),t!==-1){let l=et+t,d=ol(i,l),p=zd(i[X],l),m=Qo(d,p.tView.ssrId),_=us(i,p,e,{dehydratedView:m});ds(d,_,s,Zo(p,m))}}finally{ce(a)}}else if(r!==void 0){let a=A0(r,s);a!==void 0&&(a[ft]=e)}}var jd=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-pt}};function Yt(t){return t}function fs(t,e){return e}var Ud=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function te(t,e,i,n,o,r,s,a,l,d,p,m,_){jn("NgControlFlow");let g=K(),D=ke(),x=l!==void 0,O=K(),N=a?s.bind(O[kt][ft]):s,z=new Ud(x,N);O[et+t]=z,tl(g,D,t+1,e,i,n,o,Ci(D.consts,r)),x&&tl(g,D,t+2,l,d,p,m,Ci(D.consts,_))}var Hd=class extends Vd{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-pt}at(e){return this.getLView(e)[ft].$implicit}attach(e,i){let n=i[Yo];this.needsIndexUpdate||=e!==this.length,ds(this.lContainer,i,e,Zo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Jw(this.lContainer,e)}create(e,i){let n=Qo(this.lContainer,this.templateTNode.tView.ssrId),o=us(this.hostLView,this.templateTNode,new jd(this.lContainer,i,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(e){Dl(e[X],e),this.operationsCounter?.recordDestroy()}updateValue(e,i){this.getLView(e)[ft].$implicit=i}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[ft].$index=e}getLView(e){return Xw(this.lContainer,e)}};function ne(t){let e=ce(null),i=Xn();try{let n=K(),o=n[X],r=n[i],s=i+1,a=ol(n,s);if(r.liveCollection===void 0){let d=zd(o,s);r.liveCollection=new Hd(a,n,d)}else r.liveCollection.reset();let l=r.liveCollection;if(Qw(l,t,r.trackByFn),l.updateIndexes(),r.hasEmptyBlock){let d=_o(),p=l.length===0;if(Ft(n,d,p)){let m=i+2,_=ol(n,m);if(p){let g=zd(o,m),D=Qo(_,g.tView.ssrId),x=us(n,g,void 0,{dehydratedView:D});ds(_,x,0,Zo(g,D))}else R0(_,0)}}}finally{ce(e)}}function ol(t,e){return t[e]}function Jw(t,e){return Xr(t,e)}function Xw(t,e){return A0(t,e)}function zd(t,e){return of(t,e)}function eE(t,e,i,n,o,r){let s=e.consts,a=Ci(s,o),l=rr(e,t,2,n,a);return Tf(e,i,l,Ci(s,r)),l.attrs!==null&&Ja(l,l.attrs,!1),l.mergedAttrs!==null&&Ja(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function c(t,e,i,n){let o=K(),r=ke(),s=et+t,a=o[Re],l=r.firstCreatePass?eE(s,r,o,e,i,n):r.data[s],d=tE(r,o,l,a,e,t);o[s]=d;let p=hl(l);return go(l,!0),v0(a,d,l),!Tw(l)&&_l()&&wl(r,o,d,l),cb()===0&&Di(d,o),ub(),p&&(Ef(r,o,l),wf(r,l,o)),n!==null&&Sf(o,l),c}function u(){let t=lt();af()?lf():(t=t.parent,go(t,!1));let e=t;fb(e)&&pb(),db();let i=ke();return i.firstCreatePass&&(yl(i,t),nf(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&Ib(e)&&Ld(i,e,K(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&xb(e)&&Ld(i,e,K(),e.stylesWithoutHost,!1),u}function v(t,e,i,n){return c(t,e,i,n),u(),v}var tE=(t,e,i,n,o,r)=>(vl(!0),l0(n,o,Eb()));function nE(t,e,i,n,o){let r=e.consts,s=Ci(r,n),a=rr(e,t,8,"ng-container",s);s!==null&&Ja(a,s,!0);let l=Ci(r,o);return Tf(e,i,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function kf(t,e,i){let n=K(),o=ke(),r=t+et,s=o.firstCreatePass?nE(r,o,n,e,i):o.data[r];go(s,!0);let a=iE(o,n,s,t);return n[r]=a,_l()&&wl(o,n,a,s),Di(a,n),hl(s)&&(Ef(o,n,s),wf(o,s,n)),i!=null&&Sf(n,s),kf}function Ff(){let t=lt(),e=ke();return af()?lf():(t=t.parent,go(t,!1)),e.firstCreatePass&&(yl(e,t),nf(t)&&e.queries.elementEnd(t)),Ff}var iE=(t,e,i,n)=>(vl(!0),FC(e[Re],""));function U(){return K()}function Mi(t,e,i){let n=K(),o=_o();if(Ft(n,o,e)){let r=ke(),s=as();Ml(r,s,n,t,e,n[Re],i,!0)}return Mi}var eo=void 0;function oE(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var rE=["en",[["a","p"],["AM","PM"],eo],[["AM","PM"],eo,eo],[["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"]],eo,[["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"]],eo,[["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}",eo,"{1} 'at' {0}",eo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",oE],ju={};function qt(t){let e=sE(t),i=xm(e);if(i)return i;let n=e.split("-")[0];if(i=xm(n),i)return i;if(n==="en")return rE;throw new q(701,!1)}function xm(t){return t in ju||(ju[t]=io.ng&&io.ng.common&&io.ng.common.locales&&io.ng.common.locales[t]),ju[t]}var He=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(He||{});function sE(t){return t.toLowerCase().replace(/_/g,"-")}var rl="en-US";var aE=rl;function lE(t){typeof t=="string"&&(aE=t.toLowerCase().replace(/_/g,"-"))}var cE=(t,e,i)=>{};function b(t,e,i,n){let o=K(),r=ke(),s=lt();return a_(r,o,o[Re],s,t,e,n),b}function uE(t,e,i,n){let o=t.cleanup;if(o!=null)for(let r=0;r<o.length-1;r+=2){let s=o[r];if(s===i&&o[r+1]===n){let a=e[ja],l=o[r+2];return a.length>l?a[l]:null}typeof s=="string"&&(r+=2)}return null}function a_(t,e,i,n,o,r,s){let a=hl(n),d=t.firstCreatePass&&x0(t),p=e[ft],m=I0(e),_=!0;if(n.type&3||s){let x=zt(n,e),O=s?s(x):x,N=m.length,z=s?P=>s(Fn(P[n.index])):n.index,le=null;if(!s&&a&&(le=uE(t,e,o,n.index)),le!==null){let P=le.__ngLastListenerFn__||le;P.__ngNextListenerFn__=r,le.__ngLastListenerFn__=r,_=!1}else{r=Nm(n,e,p,r),cE(x,o,r);let P=i.listen(O,o,r);m.push(r,P),d&&d.push(o,z,N,N+1)}}else r=Nm(n,e,p,r);let g=n.outputs,D;if(_&&g!==null&&(D=g[o])){let x=D.length;if(x)for(let O=0;O<x;O+=2){let N=D[O],z=D[O+1],oe=e[N][z].subscribe(r),$=m.length;m.push(r,oe),d&&d.push(o,n.index,$,-($+1))}}}function Om(t,e,i,n){let o=ce(null);try{return Nn(6,e,i),i(n)!==!1}catch(r){return O0(t,r),!1}finally{Nn(7,e,i),ce(o)}}function Nm(t,e,i,n){return function o(r){if(r===Function)return n;let s=t.componentOffset>-1?wi(t.index,e):e;Of(s,5);let a=Om(e,i,n,r),l=o.__ngNextListenerFn__;for(;l;)a=Om(e,i,l,r)&&a,l=l.__ngNextListenerFn__;return a}}function y(t=1){return wb(t)}function dE(t,e){let i=null,n=N1(t);for(let o=0;o<e.length;o++){let r=e[o];if(r==="*"){i=o;continue}if(n===null?Qm(t,r,!0):k1(n,r))return o}return i}function Al(t){let e=K()[kt][Et];if(!e.projection){let i=t?t.length:1,n=e.projection=D1(i,null),o=n.slice(),r=e.child;for(;r!==null;){if(r.type!==128){let s=t?dE(r,t):0;s!==null&&(o[s]?o[s].projectionNext=r:n[s]=r,o[s]=r)}r=r.next}}}function cr(t,e=0,i,n,o,r){let s=K(),a=ke(),l=n?t+1:null;l!==null&&tl(s,a,l,n,o,r,null,i);let d=rr(a,et+t,16,null,i||null);d.projection===null&&(d.projection=e),lf();let m=!s[Yo]||bg();s[kt][Et].projection[d.projection]===null&&l!==null?fE(s,a,l):m&&(d.flags&32)!==32&&YC(a,s,d)}function fE(t,e,i){let n=et+i,o=e.data[n],r=t[n],s=Qo(r,o.tView.ssrId),a=us(t,o,void 0,{dehydratedView:s});ds(r,a,0,Zo(o,s))}function ni(t,e,i,n,o){let r=K(),s=Rf(r,e,i,n);if(s!==St){let a=ke(),l=as();Ml(a,l,r,t,s,r[Re],o,!1)}return ni}function yo(t,e,i,n){fw(t,e,i,n)}function ur(t,e,i){dw(t,e,i)}function Kt(t){let e=K(),i=ke(),n=wg();uf(n+1);let o=Nf(i,n);if(t.dirty&&rb(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let r=mw(e,n);t.reset(r,Jb),t.notifyOnChanges()}return!0}return!1}function Zt(){return uw(K(),wg())}function pE(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function dr(t){let e=mb();return rf(e,et+t)}function f(t,e=""){let i=K(),n=ke(),o=t+et,r=n.firstCreatePass?rr(n,o,1,e,null):n.data[o],s=hE(n,i,r,e,t);i[o]=s,_l()&&wl(n,i,s,r),go(r,!1)}var hE=(t,e,i,n,o)=>(vl(!0),RC(e[Re],n));function J(t){return B("",t,""),J}function B(t,e,i){let n=K(),o=Rf(n,t,e,i);return o!==St&&N0(n,Xn(),o),B}function Tt(t,e,i,n,o){let r=K(),s=Aw(r,t,e,i,n,o);return s!==St&&N0(r,Xn(),s),Tt}function R(t,e,i){Y0(e)&&(e=e());let n=K(),o=_o();if(Ft(n,o,e)){let r=ke(),s=as();Ml(r,s,n,t,e,n[Re],i,!1)}return R}function F(t,e){let i=Y0(t);return i&&t.set(e),i}function k(t,e){let i=K(),n=ke(),o=lt();return a_(n,i,i[Re],o,t,e),k}function mE(t,e,i){let n=ke();if(n.firstCreatePass){let o=bi(t);$d(i,n.data,n.blueprint,o,!0),$d(e,n.data,n.blueprint,o,!1)}}function $d(t,e,i,n,o){if(t=vt(t),Array.isArray(t))for(let r=0;r<t.length;r++)$d(t[r],e,i,n,o);else{let r=ke(),s=K(),a=lt(),l=Wo(t)?t:vt(t.provide),d=rg(t),p=a.providerIndexes&1048575,m=a.directiveStart,_=a.providerIndexes>>20;if(Wo(t)||!t.multi){let g=new fo(d,o,w),D=Hu(l,e,o?p:p+_,m);D===-1?(id(Wa(a,s),r,l),Uu(r,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),i.push(g),s.push(g)):(i[D]=g,s[D]=g)}else{let g=Hu(l,e,p+_,m),D=Hu(l,e,p,p+_),x=g>=0&&i[g],O=D>=0&&i[D];if(o&&!O||!o&&!x){id(Wa(a,s),r,l);let N=vE(o?_E:gE,i.length,o,n,d);!o&&O&&(i[D].providerFactory=N),Uu(r,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),i.push(N),s.push(N)}else{let N=l_(i[o?D:g],d,!o&&n);Uu(r,t,g>-1?g:D,N)}!o&&n&&O&&i[D].componentProviders++}}}function Uu(t,e,i,n){let o=Wo(e),r=W1(e);if(o||r){let l=(r?vt(e.useClass):e).prototype.ngOnDestroy;if(l){let d=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let p=d.indexOf(i);p===-1?d.push(i,[n,l]):d[p+1].push(n,l)}else d.push(i,l)}}}function l_(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Hu(t,e,i,n){for(let o=i;o<n;o++)if(e[o]===t)return o;return-1}function gE(t,e,i,n){return Gd(this.multi,[])}function _E(t,e,i,n){let o=this.multi,r;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=po(i,i[X],this.providerFactory.index,n);r=a.slice(0,s),Gd(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],Gd(o,r);return r}function Gd(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function vE(t,e,i,n,o){let r=new fo(t,i,w);return r.multi=[],r.index=e,r.componentProviders=0,l_(r,o,n&&!i),r}function nt(t,e=[]){return i=>{i.providersResolver=(n,o)=>mE(n,o?o(t):t,e)}}var yE=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=ng(!1,n.type),r=o.length>0?Ew([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,r)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=L({token:e,providedIn:"environment",factory:()=>new e(H(Rt))});let t=e;return t})();function j(t){jn("NgStandalone"),t.getStandaloneInjector=e=>e.get(yE).getOrCreateStandaloneInjector(t)}function fr(t,e,i){let n=ss()+t,o=K();return o[n]===St?Ol(o,n,i?e.call(i):e()):Sw(o,n)}function c_(t,e,i,n){return d_(K(),ss(),t,e,i,n)}function u_(t,e,i,n,o,r){return CE(K(),ss(),t,e,i,n,o,r)}function Pf(t,e){let i=t[e];return i===St?void 0:i}function d_(t,e,i,n,o,r){let s=e+i;return Ft(t,s,o)?Ol(t,s+1,r?n.call(r,o):n(o)):Pf(t,s+1)}function bE(t,e,i,n,o,r,s){let a=e+i;return Af(t,a,o,r)?Ol(t,a+2,s?n.call(s,o,r):n(o,r)):Pf(t,a+2)}function CE(t,e,i,n,o,r,s,a){let l=e+i;return Mw(t,l,o,r,s)?Ol(t,l+3,a?n.call(a,o,r,s):n(o,r,s)):Pf(t,l+3)}function Qt(t,e){let i=ke(),n,o=t+et;i.firstCreatePass?(n=DE(e,i.pipeRegistry),i.data[o]=n,n.onDestroy&&(i.destroyHooks??=[]).push(o,n.onDestroy)):n=i.data[o];let r=n.factory||(n.factory=ro(n.type,!0)),s,a=Dt(w);try{let l=Ga(!1),d=r();return Ga(l),pE(i,K(),o,d),d}finally{Dt(a)}}function DE(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Ti(t,e,i){let n=t+et,o=K(),r=rf(o,n);return f_(o,n)?d_(o,ss(),e,r.transform,i,r):r.transform(i)}function Rl(t,e,i,n){let o=t+et,r=K(),s=rf(r,o);return f_(r,o)?bE(r,ss(),e,s.transform,i,n,s):s.transform(i,n)}function f_(t,e){return t[X].data[e].pure}function p_(t,e){return Il(t,e)}var h_=new G("");function ps(t){return!!t&&typeof t.then=="function"}function m_(t){return!!t&&typeof t.subscribe=="function"}var wE=new G(""),g_=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=C(wE,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let r of this.appInits){let s=r();if(ps(s))n.push(s);else if(m_(s)){let a=new Promise((l,d)=>{s.subscribe({complete:l,error:d})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(r=>{this.reject(r)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),__=new G("");function EE(){hh(()=>{throw new q(600,!1)})}function SE(t){return t.isBoundToModule}var ME=10;function TE(t,e,i){try{let n=i();return ps(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var ii=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=C(Kb),this.afterRenderManager=C(K0),this.zonelessEnabled=C(xl),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new he,this.afterTick=new he,this.componentTypes=[],this.components=[],this.isStable=C(ir).hasPendingTasks.pipe(Me(n=>!n)),this._injector=C(Rt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(o=>{n=this.isStable.subscribe({next:r=>{r&&o()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,o){let r=n instanceof Qa;if(!this._injector.get(g_).done){let g=!r&&j1(n),D=!1;throw new q(405,D)}let a;r?a=n:a=this._injector.get(es).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=SE(a)?void 0:this._injector.get(er),d=o||a.selector,p=a.create(Ue.NULL,[],d,l),m=p.location.nativeElement,_=p.injector.get(h_,null);return _?.registerApplication(m),p.onDestroy(()=>{this.detachView(p.hostView),ka(this.components,p),_?.unregisterApplication(m)}),this._loadComponent(p),p}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new q(101,!1);let n=ce(null);try{this._runningTick=!0,this.synchronize()}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,ce(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Xo,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let o=0;for(;this.dirtyFlags!==0&&o++<ME;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let o=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(o);for(let{_lView:r,notifyErrorHandler:s}of this._views)IE(r,s,o,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>ml(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;ka(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(__,[]);[...this._bootstrapListeners,...o].forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ka(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new q(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ka(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function IE(t,e,i,n){if(!i&&!ml(t))return;P0(t,e,i&&!n?0:1)}var xE=(()=>{let e=class e{constructor(){this.zone=C(ge),this.changeDetectionScheduler=C(Jo),this.applicationRef=C(ii)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),OE=new G("",{factory:()=>!1});function v_({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:i}){return t??=()=>new ge(Se(Y({},b_()),{scheduleInRootZone:i})),[{provide:ge,useFactory:t},{provide:Kr,multi:!0,useFactory:()=>{let n=C(xE,{optional:!0});return()=>n.initialize()}},{provide:Kr,multi:!0,useFactory:()=>{let n=C(NE);return()=>{n.initialize()}}},e===!0?{provide:j0,useValue:!0}:[],{provide:U0,useValue:i??jg}]}function y_(t){let e=t?.ignoreChangesOutsideZone,i=t?.scheduleInRootZone,n=v_({ngZoneFactory:()=>{let o=b_(t);return o.scheduleInRootZone=i,o.shouldCoalesceEventChangeDetection&&jn("NgZone_CoalesceEvent"),new ge(o)},ignoreChangesOutsideZone:e,scheduleInRootZone:i});return rs([{provide:OE,useValue:!0},{provide:xl,useValue:!1},n])}function b_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var NE=(()=>{let e=class e{constructor(){this.subscription=new je,this.initialized=!1,this.zone=C(ge),this.pendingTasks=C(ir)}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(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var AE=(()=>{let e=class e{constructor(){this.appRef=C(ii),this.taskService=C(ir),this.ngZone=C(ge),this.zonelessEnabled=C(xl),this.disableScheduling=C(j0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new je,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(qa):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(U0,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 ld||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?cm:Ug;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(qa+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,cm(()=>{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)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RE(){return typeof $localize<"u"&&$localize.locale||rl}var hs=new G("",{providedIn:"root",factory:()=>C(hs,fe.Optional|fe.SkipSelf)||RE()});var Wd=new G("");function xa(t){return!t.moduleRef}function kE(t){let e=xa(t)?t.r3Injector:t.moduleRef.injector,i=e.get(ge);return i.run(()=>{xa(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(Kn,null),o;if(i.runOutsideAngular(()=>{o=i.onError.subscribe({next:r=>{n.handleError(r)}})}),xa(t)){let r=()=>e.destroy(),s=t.platformInjector.get(Wd);s.add(r),e.onDestroy(()=>{o.unsubscribe(),s.delete(r)})}else{let r=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Wd);s.add(r),t.moduleRef.onDestroy(()=>{ka(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(r)})}return TE(n,i,()=>{let r=e.get(g_);return r.runInitializers(),r.donePromise.then(()=>{let s=e.get(hs,rl);if(lE(s||rl),xa(t)){let a=e.get(ii);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return FE(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function FE(t,e){let i=t.injector.get(ii);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>i.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(i);else throw new q(-403,!1);e.push(t)}var Fa=null;function PE(t=[],e){return Ue.create({name:e,providers:[{provide:cl,useValue:"platform"},{provide:Wd,useValue:new Set([()=>Fa=null])},...t]})}function LE(t=[]){if(Fa)return Fa;let e=PE(t);return Fa=e,EE(),VE(e),e}function VE(t){t.get(_f,null)?.forEach(i=>i())}var Jt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BE;let t=e;return t})();function BE(t){return jE(lt(),K(),(t&16)===16)}function jE(t,e,i){if(pl(t)&&!i){let n=wi(t.index,e);return new ho(n,n)}else if(t.type&175){let n=e[kt];return new ho(n,e)}return null}var Yd=class{constructor(){}supports(e){return e instanceof Map||q0(e)}create(){return new qd}},qd=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let i;for(i=this._mapHead;i!==null;i=i._next)e(i)}forEachPreviousItem(e){let i;for(i=this._previousMapHead;i!==null;i=i._nextPrevious)e(i)}forEachChangedItem(e){let i;for(i=this._changesHead;i!==null;i=i._nextChanged)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||q0(e)))throw new q(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,o)=>{if(i&&i.key===o)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let r=this._getOrCreateRecordForKey(o,n);i=this._insertBeforeOrAppend(i,r)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){let n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,i);let r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}let n=new Kd(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}},Kd=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Am(){return new Lf([new Yd])}var Lf=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o){let r=o.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Am()),deps:[[e,new y1,new $m]]}}find(n){let o=this.factories.find(r=>r.supports(n));if(o)return o;throw new q(901,!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:Am});let t=e;return t})();function C_(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,o=LE(n),r=[v_({}),{provide:Jo,useExisting:AE},...i||[]],s=new el({providers:r,parent:o,debugName:"",runEnvironmentInitializers:!1});return kE({r3Injector:s.injector,platformInjector:o,rootComponent:e})}catch(e){return Promise.reject(e)}}function Vf(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function pr(t,e){jn("NgSignals");let i=dh(t);return e?.equal&&(i[Tn].equal=e.equal),i}function Un(t){let e=ce(null);try{return t()}finally{ce(e)}}function kl(t,e){let i=so(t),n=e.elementInjector||ul();return new ts(i).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}var M_=null;function mr(){return M_}function T_(t){M_??=t}var zl=class{};var Fe=new G("");var bt=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(bt||{}),Ee=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Ee||{}),Pt=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Pt||{}),Ii={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 HE(t){return qt(t)[He.LocaleId]}function zE(t,e,i){let n=qt(t),o=[n[He.DayPeriodsFormat],n[He.DayPeriodsStandalone]],r=Xt(o,e);return Xt(r,i)}function $E(t,e,i){let n=qt(t),o=[n[He.DaysFormat],n[He.DaysStandalone]],r=Xt(o,e);return Xt(r,i)}function GE(t,e,i){let n=qt(t),o=[n[He.MonthsFormat],n[He.MonthsStandalone]],r=Xt(o,e);return Xt(r,i)}function WE(t,e){let n=qt(t)[He.Eras];return Xt(n,e)}function Fl(t,e){let i=qt(t);return Xt(i[He.DateFormat],e)}function Pl(t,e){let i=qt(t);return Xt(i[He.TimeFormat],e)}function Ll(t,e){let n=qt(t)[He.DateTimeFormat];return Xt(n,e)}function Gl(t,e){let i=qt(t),n=i[He.NumberSymbols][e];if(typeof n>"u"){if(e===Ii.CurrencyDecimal)return i[He.NumberSymbols][Ii.Decimal];if(e===Ii.CurrencyGroup)return i[He.NumberSymbols][Ii.Group]}return n}function I_(t){if(!t[He.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[He.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function YE(t){let e=qt(t);return I_(e),(e[He.ExtraData][2]||[]).map(n=>typeof n=="string"?jf(n):[jf(n[0]),jf(n[1])])}function qE(t,e,i){let n=qt(t);I_(n);let o=[n[He.ExtraData][0],n[He.ExtraData][1]],r=Xt(o,e)||[];return Xt(r,i)||[]}function Xt(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function jf(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}var KE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Vl={},ZE=/((?:[^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]*)/,ri=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ri||{}),ve=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ve||{}),_e=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(_e||{});function x_(t,e,i,n){let o=rS(t);e=oi(i,e)||e;let s=[],a;for(;e;)if(a=ZE.exec(e),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;e=p}else{s.push(e);break}let l=o.getTimezoneOffset();n&&(l=N_(n,l),o=oS(o,n,!0));let d="";return s.forEach(p=>{let m=nS(p);d+=m?m(o,i,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function $l(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function oi(t,e){let i=HE(t);if(Vl[i]??={},Vl[i][e])return Vl[i][e];let n="";switch(e){case"shortDate":n=Fl(t,Pt.Short);break;case"mediumDate":n=Fl(t,Pt.Medium);break;case"longDate":n=Fl(t,Pt.Long);break;case"fullDate":n=Fl(t,Pt.Full);break;case"shortTime":n=Pl(t,Pt.Short);break;case"mediumTime":n=Pl(t,Pt.Medium);break;case"longTime":n=Pl(t,Pt.Long);break;case"fullTime":n=Pl(t,Pt.Full);break;case"short":let o=oi(t,"shortTime"),r=oi(t,"shortDate");n=Bl(Ll(t,Pt.Short),[o,r]);break;case"medium":let s=oi(t,"mediumTime"),a=oi(t,"mediumDate");n=Bl(Ll(t,Pt.Medium),[s,a]);break;case"long":let l=oi(t,"longTime"),d=oi(t,"longDate");n=Bl(Ll(t,Pt.Long),[l,d]);break;case"full":let p=oi(t,"fullTime"),m=oi(t,"fullDate");n=Bl(Ll(t,Pt.Full),[p,m]);break}return n&&(Vl[i][e]=n),n}function Bl(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function Cn(t,e,i="-",n,o){let r="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,r=i));let s=String(t);for(;s.length<e;)s="0"+s;return n&&(s=s.slice(s.length-e)),r+s}function QE(t,e){return Cn(t,3).substring(0,e)}function Ge(t,e,i=0,n=!1,o=!1){return function(r,s){let a=JE(t,r);if((i>0||a>-i)&&(a+=i),t===ve.Hours)a===0&&i===-12&&(a=12);else if(t===ve.FractionalSeconds)return QE(a,e);let l=Gl(s,Ii.MinusSign);return Cn(a,e,l,n,o)}}function JE(t,e){switch(t){case ve.FullYear:return e.getFullYear();case ve.Month:return e.getMonth();case ve.Date:return e.getDate();case ve.Hours:return e.getHours();case ve.Minutes:return e.getMinutes();case ve.Seconds:return e.getSeconds();case ve.FractionalSeconds:return e.getMilliseconds();case ve.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Te(t,e,i=bt.Format,n=!1){return function(o,r){return XE(o,r,t,e,i,n)}}function XE(t,e,i,n,o,r){switch(i){case _e.Months:return GE(e,o,n)[t.getMonth()];case _e.Days:return $E(e,o,n)[t.getDay()];case _e.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(r){let d=YE(e),p=qE(e,o,n),m=d.findIndex(_=>{if(Array.isArray(_)){let[g,D]=_,x=s>=g.hours&&a>=g.minutes,O=s<D.hours||s===D.hours&&a<D.minutes;if(g.hours<D.hours){if(x&&O)return!0}else if(x||O)return!0}else if(_.hours===s&&_.minutes===a)return!0;return!1});if(m!==-1)return p[m]}return zE(e,o,n)[s<12?0:1];case _e.Eras:return WE(e,n)[t.getFullYear()<=0?0:1];default:let l=i;throw new Error(`unexpected translation type ${l}`)}}function jl(t){return function(e,i,n){let o=-1*n,r=Gl(i,Ii.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case ri.Short:return(o>=0?"+":"")+Cn(s,2,r)+Cn(Math.abs(o%60),2,r);case ri.ShortGMT:return"GMT"+(o>=0?"+":"")+Cn(s,1,r);case ri.Long:return"GMT"+(o>=0?"+":"")+Cn(s,2,r)+":"+Cn(Math.abs(o%60),2,r);case ri.Extended:return n===0?"Z":(o>=0?"+":"")+Cn(s,2,r)+":"+Cn(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}var eS=0,Hl=4;function tS(t){let e=$l(t,eS,1).getDay();return $l(t,0,1+(e<=Hl?Hl:Hl+7)-e)}function O_(t){let e=t.getDay(),i=e===0?-3:Hl-e;return $l(t.getFullYear(),t.getMonth(),t.getDate()+i)}function Uf(t,e=!1){return function(i,n){let o;if(e){let r=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,s=i.getDate();o=1+Math.floor((s+r)/7)}else{let r=O_(i),s=tS(r.getFullYear()),a=r.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Cn(o,t,Gl(n,Ii.MinusSign))}}function Ul(t,e=!1){return function(i,n){let r=O_(i).getFullYear();return Cn(r,t,Gl(n,Ii.MinusSign),e)}}var Hf={};function nS(t){if(Hf[t])return Hf[t];let e;switch(t){case"G":case"GG":case"GGG":e=Te(_e.Eras,Ee.Abbreviated);break;case"GGGG":e=Te(_e.Eras,Ee.Wide);break;case"GGGGG":e=Te(_e.Eras,Ee.Narrow);break;case"y":e=Ge(ve.FullYear,1,0,!1,!0);break;case"yy":e=Ge(ve.FullYear,2,0,!0,!0);break;case"yyy":e=Ge(ve.FullYear,3,0,!1,!0);break;case"yyyy":e=Ge(ve.FullYear,4,0,!1,!0);break;case"Y":e=Ul(1);break;case"YY":e=Ul(2,!0);break;case"YYY":e=Ul(3);break;case"YYYY":e=Ul(4);break;case"M":case"L":e=Ge(ve.Month,1,1);break;case"MM":case"LL":e=Ge(ve.Month,2,1);break;case"MMM":e=Te(_e.Months,Ee.Abbreviated);break;case"MMMM":e=Te(_e.Months,Ee.Wide);break;case"MMMMM":e=Te(_e.Months,Ee.Narrow);break;case"LLL":e=Te(_e.Months,Ee.Abbreviated,bt.Standalone);break;case"LLLL":e=Te(_e.Months,Ee.Wide,bt.Standalone);break;case"LLLLL":e=Te(_e.Months,Ee.Narrow,bt.Standalone);break;case"w":e=Uf(1);break;case"ww":e=Uf(2);break;case"W":e=Uf(1,!0);break;case"d":e=Ge(ve.Date,1);break;case"dd":e=Ge(ve.Date,2);break;case"c":case"cc":e=Ge(ve.Day,1);break;case"ccc":e=Te(_e.Days,Ee.Abbreviated,bt.Standalone);break;case"cccc":e=Te(_e.Days,Ee.Wide,bt.Standalone);break;case"ccccc":e=Te(_e.Days,Ee.Narrow,bt.Standalone);break;case"cccccc":e=Te(_e.Days,Ee.Short,bt.Standalone);break;case"E":case"EE":case"EEE":e=Te(_e.Days,Ee.Abbreviated);break;case"EEEE":e=Te(_e.Days,Ee.Wide);break;case"EEEEE":e=Te(_e.Days,Ee.Narrow);break;case"EEEEEE":e=Te(_e.Days,Ee.Short);break;case"a":case"aa":case"aaa":e=Te(_e.DayPeriods,Ee.Abbreviated);break;case"aaaa":e=Te(_e.DayPeriods,Ee.Wide);break;case"aaaaa":e=Te(_e.DayPeriods,Ee.Narrow);break;case"b":case"bb":case"bbb":e=Te(_e.DayPeriods,Ee.Abbreviated,bt.Standalone,!0);break;case"bbbb":e=Te(_e.DayPeriods,Ee.Wide,bt.Standalone,!0);break;case"bbbbb":e=Te(_e.DayPeriods,Ee.Narrow,bt.Standalone,!0);break;case"B":case"BB":case"BBB":e=Te(_e.DayPeriods,Ee.Abbreviated,bt.Format,!0);break;case"BBBB":e=Te(_e.DayPeriods,Ee.Wide,bt.Format,!0);break;case"BBBBB":e=Te(_e.DayPeriods,Ee.Narrow,bt.Format,!0);break;case"h":e=Ge(ve.Hours,1,-12);break;case"hh":e=Ge(ve.Hours,2,-12);break;case"H":e=Ge(ve.Hours,1);break;case"HH":e=Ge(ve.Hours,2);break;case"m":e=Ge(ve.Minutes,1);break;case"mm":e=Ge(ve.Minutes,2);break;case"s":e=Ge(ve.Seconds,1);break;case"ss":e=Ge(ve.Seconds,2);break;case"S":e=Ge(ve.FractionalSeconds,1);break;case"SS":e=Ge(ve.FractionalSeconds,2);break;case"SSS":e=Ge(ve.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=jl(ri.Short);break;case"ZZZZZ":e=jl(ri.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=jl(ri.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=jl(ri.Long);break;default:return null}return Hf[t]=e,e}function N_(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function iS(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function oS(t,e,i){let n=i?-1:1,o=t.getTimezoneOffset(),r=N_(e,o);return iS(t,n*(r-o))}function rS(t){if(D_(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,r=1,s=1]=t.split("-").map(a=>+a);return $l(o,r-1,s)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(KE))return sS(n)}let e=new Date(t);if(!D_(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function sS(t){let e=new Date(0),i=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),d=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return r.call(e,s,a,l,d),e}function D_(t){return t instanceof Date&&!isNaN(t.valueOf())}function Wl(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[o,r]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(o.trim()===e)return decodeURIComponent(r)}return null}var zf=/\s+/,w_=[],Gf=(()=>{let e=class e{constructor(n,o){this._ngEl=n,this._renderer=o,this.initialClasses=w_,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(zf):w_}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(zf):n}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let o of n)this._updateState(o,!0);else if(n!=null)for(let o of Object.keys(n))this._updateState(o,!!n[o]);this._applyStateDiff()}_updateState(n,o){let r=this.stateMap.get(n);r!==void 0?(r.enabled!==o&&(r.changed=!0,r.enabled=o),r.touched=!0):this.stateMap.set(n,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let o=n[0],r=n[1];r.changed?(this._toggleClass(o,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),r.touched=!1}}_toggleClass(n,o){n=n.trim(),n.length>0&&n.split(zf).forEach(r=>{o?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt))},e.\u0275dir=ae({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var gr=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new $f,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){E_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){E_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(w(Ei),w(Ln))},e.\u0275dir=ae({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),$f=class{constructor(){this.$implicit=null,this.ngIf=null}};function E_(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${At(e)}'.`)}var A_=(()=>{let e=class e{constructor(n,o,r){this._ngEl=n,this._differs=o,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,o){let[r,s]=n.split("."),a=r.indexOf("-")===-1?void 0:Pn.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(n){n.forEachRemovedItem(o=>this._setStyle(o.key,null)),n.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),n.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Lf),w(Wt))},e.\u0275dir=ae({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),Wf=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,o,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,r):!1,get:(n,o,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,r)}})}};e.\u0275fac=function(o){return new(o||e)(w(Ei))},e.\u0275dir=ae({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[yt]});let t=e;return t})();function R_(t,e){return new q(2100,!1)}var aS=/(?:[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,_r=(()=>{let e=class e{transform(n){if(n==null)return null;if(typeof n!="string")throw R_(e,n);return n.replace(aS,o=>o[0].toUpperCase()+o.slice(1).toLowerCase())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275pipe=ef({name:"titlecase",type:e,pure:!0,standalone:!0});let t=e;return t})();var lS="mediumDate",cS=new G(""),uS=new G(""),Yl=(()=>{let e=class e{constructor(n,o,r){this.locale=n,this.defaultTimezone=o,this.defaultOptions=r}transform(n,o,r,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??lS,l=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return x_(n,a,s||this.locale,l)}catch(a){throw R_(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(w(hs,16),w(cS,24),w(uS,24))},e.\u0275pipe=ef({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var k_="browser",dS="server";function vr(t){return t===dS}var hr=class{};var gs=class{},Kl=class{},si=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`8 `).forEach(i=>{let n=i.indexOf(":");if(n>0){let o=i.slice(0,n),r=o.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let o=(e.op==="a"?this.headers.get(i):void 0)||[];o.push(...n),this.headers.set(i,o);break;case"d":let r=e.value;if(!r)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>r.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(r=>r.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var qf=class{encodeKey(e){return F_(e)}encodeValue(e){return F_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function pS(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[s,a]=r==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,r)),e.decodeValue(o.slice(r+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}var hS=/%(\d[a-f0-9])/gi,mS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function F_(t){return encodeURIComponent(t).replace(hS,(e,i)=>mS[i]??e)}function ql(t){return`${t}`}var Oi=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new qf,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=pS(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],o=Array.isArray(n)?n.map(ql):[ql(n)];this.map.set(i,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(r=>{i.push({param:n,value:r,op:"a"})}):i.push({param:n,value:o,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(ql(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(ql(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Kf=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function gS(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function P_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function L_(t){return typeof Blob<"u"&&t instanceof Blob}function V_(t){return typeof FormData<"u"&&t instanceof FormData}function _S(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ms=class t{constructor(e,i,n,o){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let r;if(gS(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new si,this.context??=new Kf,!this.params)this.params=new Oi,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||P_(this.body)||L_(this.body)||V_(this.body)||_S(this.body)?this.body:this.body instanceof Oi?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||V_(this.body)?null:L_(this.body)?this.body.type||null:P_(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Oi?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,o=e.responseType||this.responseType,r=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress,d=e.headers||this.headers,p=e.params||this.params,m=e.context??this.context;return e.setHeaders!==void 0&&(d=Object.keys(e.setHeaders).reduce((_,g)=>_.set(g,e.setHeaders[g]),d)),e.setParams&&(p=Object.keys(e.setParams).reduce((_,g)=>_.set(g,e.setParams[g]),p)),new t(i,n,s,{params:p,headers:d,context:m,reportProgress:l,responseType:o,withCredentials:a,transferCache:r})}},Ni=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ni||{}),_s=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new si,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Zl=class t extends _s{constructor(e={}){super(e),this.type=Ni.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},vs=class t extends _s{constructor(e={}){super(e),this.type=Ni.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},xi=class extends _s{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},H_=200,vS=204;function Yf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Ve=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,r={}){let s;if(n instanceof ms)s=n;else{let d;r.headers instanceof si?d=r.headers:d=new si(r.headers);let p;r.params&&(r.params instanceof Oi?p=r.params:p=new Oi({fromObject:r.params})),s=new ms(n,o,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:p,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let a=gn(s).pipe(yu(d=>this.handler.handle(d)));if(n instanceof ms||r.observe==="events")return a;let l=a.pipe(_t(d=>d instanceof vs));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Me(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return l.pipe(Me(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return l.pipe(Me(d=>{if(d.body!==null&&typeof d.body!="string")throw new Error("Response is not a string.");return d.body}));case"json":default:return l.pipe(Me(d=>d.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Oi().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,r={}){return this.request("PATCH",n,Yf(r,o))}post(n,o,r={}){return this.request("POST",n,Yf(r,o))}put(n,o,r={}){return this.request("PUT",n,Yf(r,o))}};e.\u0275fac=function(o){return new(o||e)(H(gs))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),yS=/^\)\]\}',?\n/,bS="X-Request-URL";function B_(t){if(t.url)return t.url;let e=bS.toLocaleLowerCase();return t.headers.get(e)}var CS=(()=>{let e=class e{constructor(){this.fetchImpl=C(Zf,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=C(ge)}handle(n){return new ee(o=>{let r=new AbortController;return this.doRequest(n,r.signal,o).then(Qf,s=>o.error(new xi({error:s}))),()=>r.abort()})}doRequest(n,o,r){return E(this,null,function*(){let s=this.createRequestInit(n),a;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Y({signal:o},s)));DS(D),r.next({type:Ni.Sent}),a=yield D}catch(D){r.error(new xi({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let l=new si(a.headers),d=a.statusText,p=B_(a)??n.urlWithParams,m=a.status,_=null;if(n.reportProgress&&r.next(new Zl({headers:l,status:m,statusText:d,url:p})),a.body){let D=a.headers.get("content-length"),x=[],O=a.body.getReader(),N=0,z,le,P=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>E(this,null,function*(){for(;;){let{done:$,value:pe}=yield O.read();if($)break;if(x.push(pe),N+=pe.length,n.reportProgress){le=n.responseType==="text"?(le??"")+(z??=new TextDecoder).decode(pe,{stream:!0}):void 0;let Ae=()=>r.next({type:Ni.DownloadProgress,total:D?+D:void 0,loaded:N,partialText:le});P?P.run(Ae):Ae()}}}));let oe=this.concatChunks(x,N);try{let $=a.headers.get("Content-Type")??"";_=this.parseBody(n,oe,$)}catch($){r.error(new xi({error:$,headers:new si(a.headers),status:a.status,statusText:a.statusText,url:B_(a)??n.urlWithParams}));return}}m===0&&(m=_?H_:0),m>=200&&m<300?(r.next(new vs({body:_,headers:l,status:m,statusText:d,url:p})),r.complete()):r.error(new xi({error:_,headers:l,status:m,statusText:d,url:p}))})}parseBody(n,o,r){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(yS,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:r});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},r=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>o[s]=a.join(",")),n.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:r}}concatChunks(n,o){let r=new Uint8Array(o),s=0;for(let a of n)r.set(a,s),s+=a.length;return r}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Zf=class{};function Qf(){}function DS(t){t.then(Qf,Qf)}function wS(t,e){return e(t)}function ES(t,e,i){return(n,o)=>sg(i,()=>e(n,r=>t(r,o)))}var Jf=new G(""),SS=new G(""),MS=new G("",{providedIn:"root",factory:()=>!0});var j_=(()=>{let e=class e extends gs{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=C(ir),this.contributeToStability=C(MS)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Jf),...this.injector.get(SS,[])]));this.chain=o.reduceRight((r,s)=>ES(r,s,this.injector),wS)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,r=>this.backend.handle(r)).pipe(wa(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(H(Kl),H(Rt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();var TS=/^\)\]\}',?\n/;function IS(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var U_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new q(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?mn(o.\u0275loadImpl()):gn(null)).pipe(mi(()=>new ee(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((O,N)=>a.setRequestHeader(O,N.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let O=n.detectContentTypeHeader();O!==null&&a.setRequestHeader("Content-Type",O)}if(n.responseType){let O=n.responseType.toLowerCase();a.responseType=O!=="json"?O:"text"}let l=n.serializeBody(),d=null,p=()=>{if(d!==null)return d;let O=a.statusText||"OK",N=new si(a.getAllResponseHeaders()),z=IS(a)||n.url;return d=new Zl({headers:N,status:a.status,statusText:O,url:z}),d},m=()=>{let{headers:O,status:N,statusText:z,url:le}=p(),P=null;N!==vS&&(P=typeof a.response>"u"?a.responseText:a.response),N===0&&(N=P?H_:0);let oe=N>=200&&N<300;if(n.responseType==="json"&&typeof P=="string"){let $=P;P=P.replace(TS,"");try{P=P!==""?JSON.parse(P):null}catch(pe){P=$,oe&&(oe=!1,P={error:pe,text:P})}}oe?(s.next(new vs({body:P,headers:O,status:N,statusText:z,url:le||void 0})),s.complete()):s.error(new xi({error:P,headers:O,status:N,statusText:z,url:le||void 0}))},_=O=>{let{url:N}=p(),z=new xi({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:N||void 0});s.error(z)},g=!1,D=O=>{g||(s.next(p()),g=!0);let N={type:Ni.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(N.total=O.total),n.responseType==="text"&&a.responseText&&(N.partialText=a.responseText),s.next(N)},x=O=>{let N={type:Ni.UploadProgress,loaded:O.loaded};O.lengthComputable&&(N.total=O.total),s.next(N)};return a.addEventListener("load",m),a.addEventListener("error",_),a.addEventListener("timeout",_),a.addEventListener("abort",_),n.reportProgress&&(a.addEventListener("progress",D),l!==null&&a.upload&&a.upload.addEventListener("progress",x)),a.send(l),s.next({type:Ni.Sent}),()=>{a.removeEventListener("error",_),a.removeEventListener("abort",_),a.removeEventListener("load",m),a.removeEventListener("timeout",_),n.reportProgress&&(a.removeEventListener("progress",D),l!==null&&a.upload&&a.upload.removeEventListener("progress",x)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(H(hr))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),z_=new G(""),xS="XSRF-TOKEN",OS=new G("",{providedIn:"root",factory:()=>xS}),NS="X-XSRF-TOKEN",AS=new G("",{providedIn:"root",factory:()=>NS}),Ql=class{},RS=(()=>{let e=class e{constructor(n,o,r){this.doc=n,this.platform=o,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wl(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(H(Fe),H(Gt),H(OS))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function kS(t,e){let i=t.url.toLowerCase();if(!C(z_)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=C(Ql).getToken(),o=C(AS);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var $_=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}($_||{});function FS(t,e){return{\u0275kind:t,\u0275providers:e}}function G_(...t){let e=[Ve,U_,j_,{provide:gs,useExisting:j_},{provide:Kl,useFactory:()=>C(CS,{optional:!0})??C(U_)},{provide:Jf,useValue:kS,multi:!0},{provide:z_,useValue:!0},{provide:Ql,useClass:RS}];for(let i of t)e.push(...i.\u0275providers);return rs(e)}function W_(t){return FS($_.Interceptors,t.map(e=>({provide:Jf,useValue:e,multi:!0})))}var tp=class extends zl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},np=class t extends tp{static makeCurrent(){T_(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.remove()}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=LS();return i==null?null:VS(i)}resetBaseElement(){ys=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wl(document.cookie,e)}},ys=null;function LS(){return ys=ys||document.querySelector("base"),ys?ys.getAttribute("href"):null}function VS(t){return new URL(t,document.baseURI).pathname}var BS=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),ip=new G(""),Z_=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(r=>{r.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,r){return this._findPluginFor(o).addEventListener(n,o,r)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new q(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(H(ip),H(ge))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Jl=class{constructor(e){this._doc=e}},Xf="ng-app-id",Q_=(()=>{let e=class e{constructor(n,o,r,s={}){this.doc=n,this.appId=o,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=vr(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(r=>r.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Xf}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(r=>{r.textContent!=null&&o.set(r.textContent,r)}),o}return null}changeUsageCount(n,o){let r=this.styleRef;if(r.has(n)){let s=r.get(n);return s.usage+=o,s.usage}return r.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let r=this.styleNodesInDOM,s=r?.get(o);if(s?.parentNode===n)return r.delete(o),s.removeAttribute(Xf),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Xf,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let r=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(r):s.set(o,{elements:[r],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(H(Fe),H(gf),H(vf,8),H(Gt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),ep={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},rp=/%COMP%/g,J_="%COMP%",jS=`_nghost-${J_}`,US=`_ngcontent-${J_}`,HS=!0,zS=new G("",{providedIn:"root",factory:()=>HS});function $S(t){return US.replace(rp,t)}function GS(t){return jS.replace(rp,t)}function X_(t,e){return e.map(i=>i.replace(rp,t))}var Y_=(()=>{let e=class e{constructor(n,o,r,s,a,l,d,p=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=d,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=vr(l),this.defaultRenderer=new bs(n,a,d,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Rn.ShadowDom&&(o=Se(Y({},o),{encapsulation:Rn.Emulated}));let r=this.getOrCreateRenderer(n,o);return r instanceof Xl?r.applyToHost(n):r instanceof Cs&&r.applyStyles(),r}getOrCreateRenderer(n,o){let r=this.rendererByCompId,s=r.get(o.id);if(!s){let a=this.doc,l=this.ngZone,d=this.eventManager,p=this.sharedStylesHost,m=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(o.encapsulation){case Rn.Emulated:s=new Xl(d,p,o,this.appId,m,a,l,_);break;case Rn.ShadowDom:return new op(d,p,n,o,a,l,this.nonce,_);default:s=new Cs(d,p,o,m,a,l,_);break}r.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(H(Z_),H(Q_),H(gf),H(zS),H(Fe),H(Gt),H(ge),H(vf))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),bs=class{constructor(e,i,n,o){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(ep[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(q_(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(q_(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){i.remove()}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new q(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,o){if(o){i=o+":"+i;let r=ep[o];r?e.setAttributeNS(r,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let o=ep[n];o?e.removeAttributeNS(o,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,o){o&(Pn.DashCase|Pn.Important)?e.style.setProperty(i,n,o&Pn.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Pn.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=mr().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function q_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var op=class extends bs{constructor(e,i,n,o,r,s,a,l){super(e,r,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=X_(o.id,o.styles);for(let p of d){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=p,this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(null,i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Cs=class extends bs{constructor(e,i,n,o,r,s,a,l){super(e,r,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=o,this.styles=l?X_(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Xl=class extends Cs{constructor(e,i,n,o,r,s,a,l){let d=o+"-"+n.id;super(e,i,n,r,s,a,l,d),this.contentAttr=$S(d),this.hostAttr=GS(d)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},WS=(()=>{let e=class e extends Jl{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,r){return n.addEventListener(o,r,!1),()=>this.removeEventListener(n,o,r)}removeEventListener(n,o,r){return n.removeEventListener(o,r)}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),K_=["alt","control","meta","shift"],YS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qS={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KS=(()=>{let e=class e extends Jl{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,r){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mr().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),r=o.shift();if(o.length===0||!(r==="keydown"||r==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),K_.forEach(p=>{let m=o.indexOf(p);m>-1&&(o.splice(m,1),a+=p+".")}),a+=s,o.length!=0||s.length===0)return null;let d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(n,o){let r=YS[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(r=n.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),K_.forEach(a=>{if(a!==r){let l=qS[a];l(n)&&(s+=a+".")}}),s+=r,s===o)}static eventCallback(n,o,r){return s=>{e.matchEventFullKeyCode(s,n)&&r.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function ev(t,e){return C_(Y({rootComponent:t},ZS(e)))}function ZS(t){return{appProviders:[...tM,...t?.providers??[]],platformProviders:eM}}function QS(){np.makeCurrent()}function JS(){return new Kn}function XS(){return qg(document),document}var eM=[{provide:Gt,useValue:k_},{provide:_f,useValue:QS,multi:!0},{provide:Fe,useFactory:XS,deps:[]}];var tM=[{provide:cl,useValue:"root"},{provide:Kn,useFactory:JS,deps:[]},{provide:ip,useClass:WS,multi:!0,deps:[Fe,ge,Gt]},{provide:ip,useClass:KS,multi:!0,deps:[Fe]},Y_,Q_,Z_,{provide:Xo,useExisting:Y_},{provide:hr,useClass:BS,deps:[]},[]];var sp=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:function(o){let r=null;return o?r=new(o||e):r=H(nM),r},providedIn:"root"});let t=e;return t})(),nM=(()=>{let e=class e extends sp{constructor(n){super(),this._doc=n}sanitize(n,o){if(o==null)return null;switch(n){case bn.NONE:return o;case bn.HTML:return vo(o,"HTML")?Vn(o):s0(this._doc,String(o)).toString();case bn.STYLE:return vo(o,"Style")?Vn(o):o;case bn.SCRIPT:if(vo(o,"Script"))return Vn(o);throw new q(5200,!1);case bn.URL:return vo(o,"URL")?Vn(o):Cl(String(o));case bn.RESOURCE_URL:if(vo(o,"ResourceURL"))return Vn(o);throw new q(5201,!1);default:throw new q(5202,!1)}}bypassSecurityTrustHtml(n){return Zg(n)}bypassSecurityTrustStyle(n){return Qg(n)}bypassSecurityTrustScript(n){return Jg(n)}bypassSecurityTrustUrl(n){return Xg(n)}bypassSecurityTrustResourceUrl(n){return e0(n)}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ap={},iM=location.href.split("?")[1].split("&");for(let t of iM){let[e,i]=t.split("=");ap[e]=i}var ec="https://api.luckynode.com",ze=`/wp-json/${ap.slug}/v1`,tv=ap.nonce;function nv(t,e){if(t.url.startsWith("/")){let i=t.clone({headers:t.headers.set("X-WP-Nonce",tv||"invalidnonceonpurpose")});return e(i)}return e(t)}var iv={providers:[y_({eventCoalescing:!0}),G_(W_([nv]))]};function ai(t){t||(dl(ai),t=C(ei));let e=new ee(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(Ze(e))}var hv=(()=>{let e=class e{constructor(n,o){this._renderer=n,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(n,o){this._renderer.setProperty(this._elementRef.nativeElement,n,o)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(o){return new(o||e)(w(Wt),w(ye))},e.\u0275dir=ae({type:e});let t=e;return t})(),Is=(()=>{let e=class e extends hv{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,features:[tt]});let t=e;return t})(),Hn=new G(""),oM={provide:Hn,useExisting:at(()=>wn),multi:!0},wn=(()=>{let e=class e extends Is{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,r){o&1&&b("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[nt([oM]),tt]});let t=e;return t})(),rM={provide:Hn,useExisting:at(()=>it),multi:!0};function sM(){let t=mr()?mr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var aM=new G(""),it=(()=>{let e=class e extends hv{constructor(n,o,r){super(n,o),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!sM())}writeValue(n){let o=n??"";this.setProperty("value",o)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(o){return new(o||e)(w(Wt),w(ye),w(aM,8))},e.\u0275dir=ae({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(o,r){o&1&&b("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[nt([rM]),tt]});let t=e;return t})();function ov(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var wr=new G(""),mv=new G("");function lM(t){return e=>{if(ov(e.value)||ov(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function rv(t){return null}function gv(t){return t!=null}function _v(t){return ps(t)?mn(t):t}function vv(t){let e={};return t.forEach(i=>{e=i!=null?Y(Y({},e),i):e}),Object.keys(e).length===0?null:e}function yv(t,e){return e.map(i=>i(t))}function cM(t){return!t.validate}function bv(t){return t.map(e=>cM(e)?e:i=>e.validate(i))}function uM(t){if(!t)return null;let e=t.filter(gv);return e.length==0?null:function(i){return vv(yv(i,e))}}function cp(t){return t!=null?uM(bv(t)):null}function dM(t){if(!t)return null;let e=t.filter(gv);return e.length==0?null:function(i){let n=yv(i,e).map(_v);return vu(n).pipe(Me(vv))}}function up(t){return t!=null?dM(bv(t)):null}function sv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function fM(t){return t._rawValidators}function pM(t){return t._rawAsyncValidators}function lp(t){return t?Array.isArray(t)?t:[t]:[]}function nc(t,e){return Array.isArray(t)?t.includes(e):t===e}function av(t,e){let i=lp(e);return lp(t).forEach(o=>{nc(i,o)||i.push(o)}),i}function lv(t,e){return lp(e).filter(i=>!nc(t,i))}var ic=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=cp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=up(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Cr=class extends ic{get formDirective(){return null}get path(){return null}},Ts=class extends ic{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},oc=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},hM={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},eB=Se(Y({},hM),{"[class.ng-submitted]":"isSubmitted"}),Pe=(()=>{let e=class e extends oc{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Ts,2))},e.\u0275dir=ae({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,r){o&2&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[tt]});let t=e;return t})(),en=(()=>{let e=class e extends oc{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Cr,10))},e.\u0275dir=ae({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,r){o&2&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[tt]});let t=e;return t})();var Ds="VALID",tc="INVALID",yr="PENDING",ws="DISABLED",Dr=class{},rc=class extends Dr{constructor(e,i){super(),this.value=e,this.source=i}},Ss=class extends Dr{constructor(e,i){super(),this.pristine=e,this.source=i}},Ms=class extends Dr{constructor(e,i){super(),this.touched=e,this.source=i}},br=class extends Dr{constructor(e,i){super(),this.status=e,this.source=i}};function Cv(t){return(lc(t)?t.validators:t)||null}function mM(t){return Array.isArray(t)?cp(t):t||null}function Dv(t,e){return(lc(e)?e.asyncValidators:t)||null}function gM(t){return Array.isArray(t)?up(t):t||null}function lc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function _M(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new q(1e3,"");if(!n[i])throw new q(1001,"")}function vM(t,e,i){t._forEachChild((n,o)=>{if(i[o]===void 0)throw new q(1002,"")})}var sc=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=pr(()=>this.statusReactive()),this.statusReactive=Si(void 0),this._pristine=pr(()=>this.pristineReactive()),this.pristineReactive=Si(!0),this._touched=pr(()=>this.touchedReactive()),this.touchedReactive=Si(!1),this._events=new he,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Un(this.statusReactive)}set status(e){Un(()=>this.statusReactive.set(e))}get valid(){return this.status===Ds}get invalid(){return this.status===tc}get pending(){return this.status==yr}get disabled(){return this.status===ws}get enabled(){return this.status!==ws}get pristine(){return Un(this.pristineReactive)}set pristine(e){Un(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Un(this.touchedReactive)}set touched(e){Un(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(av(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(av(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(lv(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(lv(e,this._rawAsyncValidators))}hasValidator(e){return nc(this._rawValidators,e)}hasAsyncValidator(e){return nc(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Se(Y({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Ms(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new Ms(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Se(Y({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Ss(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new Ss(!0,n))}markAsPending(e={}){this.status=yr;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new br(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Se(Y({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=ws,this.errors=null,this._forEachChild(o=>{o.disable(Se(Y({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rc(this.value,n)),this._events.next(new br(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Se(Y({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Ds,this._forEachChild(n=>{n.enable(Se(Y({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Se(Y({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ds||this.status===yr)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new rc(this.value,i)),this._events.next(new br(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Se(Y({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ws:Ds}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=yr,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=_v(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,o)=>n&&n._find(o),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new br(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new re,this.statusChanges=new re}_calculateStatus(){return this._allControlsDisabled()?ws:this.errors?tc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yr)?yr:this._anyControlsHaveStatus(tc)?tc:Ds}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),o&&this._events.next(new Ss(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new Ms(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){lc(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=mM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=gM(this._rawAsyncValidators)}},ac=class extends sc{constructor(e,i,n){super(Cv(i),Dv(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){vM(this,!0,e),Object.keys(e).forEach(n=>{_M(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,o)=>((n.enabled||this.disabled)&&(i[o]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((o,r)=>{n=i(n,o,r)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var dp=new G("CallSetDisabledState",{providedIn:"root",factory:()=>fp}),fp="always";function yM(t,e){return[...e.path,t]}function wv(t,e,i=fp){Ev(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),CM(t,e),wM(t,e),DM(t,e),bM(t,e)}function cv(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function bM(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Ev(t,e){let i=fM(t);e.validator!==null?t.setValidators(sv(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=pM(t);e.asyncValidator!==null?t.setAsyncValidators(sv(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();cv(e._rawValidators,o),cv(e._rawAsyncValidators,o)}function CM(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Sv(t,e)})}function DM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Sv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Sv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wM(t,e){let i=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function EM(t,e){t==null,Ev(t,e)}function SM(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function MM(t){return Object.getPrototypeOf(t.constructor)===Is}function TM(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function IM(t,e){if(!e)return null;Array.isArray(e);let i,n,o;return e.forEach(r=>{r.constructor===it?i=r:MM(r)?n=r:o=r}),o||n||i||null}var xM={provide:Cr,useExisting:at(()=>Lt)},Es=Promise.resolve(),Lt=(()=>{let e=class e extends Cr{get submitted(){return Un(this.submittedReactive)}constructor(n,o,r){super(),this.callSetDisabledState=r,this._submitted=pr(()=>this.submittedReactive()),this.submittedReactive=Si(!1),this._directives=new Set,this.ngSubmit=new re,this.form=new ac({},cp(n),up(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Es.then(()=>{let o=this._findContainer(n.path);n.control=o.registerControl(n.name,n.control),wv(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Es.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Es.then(()=>{let o=this._findContainer(n.path),r=new ac({});EM(r,n),o.registerControl(n.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Es.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,o){Es.then(()=>{this.form.get(n.path).setValue(o)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),TM(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(o){return new(o||e)(w(wr,10),w(mv,10),w(dp,8))},e.\u0275dir=ae({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,r){o&1&&b("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([xM]),tt]});let t=e;return t})();function uv(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function dv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var OM=class extends sc{constructor(e=null,i,n){super(Cv(i),Dv(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lc(i)&&(i.nonNullable||i.initialValueIsDefault)&&(dv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){uv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){uv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){dv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var NM={provide:Ts,useExisting:at(()=>Ne)},fv=Promise.resolve(),Ne=(()=>{let e=class e extends Ts{constructor(n,o,r,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new OM,this._registered=!1,this.name="",this.update=new re,this._parent=n,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=IM(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let o=n.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),SM(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){wv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){fv.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let o=n.isDisabled.currentValue,r=o!==0&&Vf(o);fv.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?yM(n,this._parent):[n]}};e.\u0275fac=function(o){return new(o||e)(w(Cr,9),w(wr,10),w(mv,10),w(Hn,10),w(Jt,8),w(dp,8))},e.\u0275dir=ae({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[nt([NM]),tt,yt]});let t=e;return t})(),tn=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),AM={provide:Hn,useExisting:at(()=>bo),multi:!0},bo=(()=>{let e=class e extends Is{writeValue(n){let o=n??"";this.setProperty("value",o)}registerOnChange(n){this.onChange=o=>{n(o==""?null:parseFloat(o))}}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(o,r){o&1&&b("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[nt([AM]),tt]});let t=e;return t})();var RM={provide:Hn,useExisting:at(()=>It),multi:!0};function Mv(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function kM(t){return t.split(":")[0]}var It=(()=>{let e=class e extends Is{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let o=this._getOptionId(n),r=Mv(o,n);this.setProperty("value",r)}registerOnChange(n){this.onChange=o=>{this.value=this._getOptionValue(o),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o),n))return o;return null}_getOptionValue(n){let o=kM(n);return this._optionMap.has(o)?this._optionMap.get(o):n}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(o,r){o&1&&b("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[nt([RM]),tt]});let t=e;return t})(),nn=(()=>{let e=class e{constructor(n,o,r){this._element=n,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Mv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt),w(It,9))},e.\u0275dir=ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),FM={provide:Hn,useExisting:at(()=>Tv),multi:!0};function pv(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function PM(t){return t.split(":")[0]}var Tv=(()=>{let e=class e extends Is{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let o;if(Array.isArray(n)){let r=n.map(s=>this._getOptionId(s));o=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else o=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(n){this.onChange=o=>{let r=[],s=o.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l<a.length;l++){let d=a[l],p=this._getOptionValue(d.value);r.push(p)}}else{let a=o.options;for(let l=0;l<a.length;l++){let d=a[l];if(d.selected){let p=this._getOptionValue(d.value);r.push(p)}}}this.value=r,n(r)}}_registerOption(n){let o=(this._idCounter++).toString();return this._optionMap.set(o,n),o}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o)._value,n))return o;return null}_getOptionValue(n){let o=PM(n);return this._optionMap.has(o)?this._optionMap.get(o)._value:n}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(o,r){o&1&&b("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[nt([FM]),tt]});let t=e;return t})(),on=(()=>{let e=class e{constructor(n,o,r){this._element=n,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(pv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(pv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt),w(Tv,9))},e.\u0275dir=ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function LM(t){return typeof t=="number"?t:parseFloat(t)}var VM=(()=>{let e=class e{constructor(){this._validator=rv}ngOnChanges(n){if(this.inputName in n){let o=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):rv,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,features:[yt]});let t=e;return t})();var BM={provide:wr,useExisting:at(()=>pp),multi:!0},pp=(()=>{let e=class e extends VM{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>LM(n),this.createValidator=n=>lM(n)}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(o,r){o&2&&Mt("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[nt([BM]),tt]});let t=e;return t})();var jM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();var Ce=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:dp,useValue:n.callSetDisabledState??fp}]}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({imports:[jM]});let t=e;return t})();var We="top",ct="bottom",ot="right",Je="left",cc="auto",Ai=[We,ct,ot,Je],li="start",Co="end",Iv="clippingParents",uc="viewport",Er="popper",xv="reference",hp=Ai.reduce(function(t,e){return t.concat([e+"-"+li,e+"-"+Co])},[]),dc=[].concat(Ai,[cc]).reduce(function(t,e){return t.concat([e,e+"-"+li,e+"-"+Co])},[]),UM="beforeRead",HM="read",zM="afterRead",$M="beforeMain",GM="main",WM="afterMain",YM="beforeWrite",qM="write",KM="afterWrite",Ov=[UM,HM,zM,$M,GM,WM,YM,qM,KM];function rt(t){return t?(t.nodeName||"").toLowerCase():null}function Le(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function sn(t){var e=Le(t).Element;return t instanceof e||t instanceof Element}function Xe(t){var e=Le(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Sr(t){if(typeof ShadowRoot>"u")return!1;var e=Le(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZM(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var n=e.styles[i]||{},o=e.attributes[i]||{},r=e.elements[i];!Xe(r)||!rt(r)||(Object.assign(r.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?r.removeAttribute(s):r.setAttribute(s,a===!0?"":a)}))})}function QM(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],r=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:i[n]),a=s.reduce(function(l,d){return l[d]="",l},{});!Xe(o)||!rt(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}}var Nv={name:"applyStyles",enabled:!0,phase:"write",fn:ZM,effect:QM,requires:["computeStyles"]};function st(t){return t.split("-")[0]}var En=Math.max,Do=Math.min,ci=Math.round;function Mr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xs(){return!/^((?!chrome|android).)*safari/i.test(Mr())}function an(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=t.getBoundingClientRect(),o=1,r=1;e&&Xe(t)&&(o=t.offsetWidth>0&&ci(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&ci(n.height)/t.offsetHeight||1);var s=sn(t)?Le(t):window,a=s.visualViewport,l=!xs()&&i,d=(n.left+(l&&a?a.offsetLeft:0))/o,p=(n.top+(l&&a?a.offsetTop:0))/r,m=n.width/o,_=n.height/r;return{width:m,height:_,top:p,right:d+m,bottom:p+_,left:d,x:d,y:p}}function wo(t){var e=an(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Os(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Sr(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ct(t){return Le(t).getComputedStyle(t)}function mp(t){return["table","td","th"].indexOf(rt(t))>=0}function ut(t){return((sn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ui(t){return rt(t)==="html"?t:t.assignedSlot||t.parentNode||(Sr(t)?t.host:null)||ut(t)}function Av(t){return!Xe(t)||Ct(t).position==="fixed"?null:t.offsetParent}function JM(t){var e=/firefox/i.test(Mr()),i=/Trident/i.test(Mr());if(i&&Xe(t)){var n=Ct(t);if(n.position==="fixed")return null}var o=ui(t);for(Sr(o)&&(o=o.host);Xe(o)&&["html","body"].indexOf(rt(o))<0;){var r=Ct(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Sn(t){for(var e=Le(t),i=Av(t);i&&mp(i)&&Ct(i).position==="static";)i=Av(i);return i&&(rt(i)==="html"||rt(i)==="body"&&Ct(i).position==="static")?e:i||JM(t)||e}function Eo(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function So(t,e,i){return En(t,Do(e,i))}function Rv(t,e,i){var n=So(t,e,i);return n>i?i:n}function Ns(){return{top:0,right:0,bottom:0,left:0}}function As(t){return Object.assign({},Ns(),t)}function Rs(t,e){return e.reduce(function(i,n){return i[n]=t,i},{})}var XM=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,As(typeof e!="number"?e:Rs(e,Ai))};function eT(t){var e,i=t.state,n=t.name,o=t.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=st(i.placement),l=Eo(a),d=[Je,ot].indexOf(a)>=0,p=d?"height":"width";if(!(!r||!s)){var m=XM(o.padding,i),_=wo(r),g=l==="y"?We:Je,D=l==="y"?ct:ot,x=i.rects.reference[p]+i.rects.reference[l]-s[l]-i.rects.popper[p],O=s[l]-i.rects.reference[l],N=Sn(r),z=N?l==="y"?N.clientHeight||0:N.clientWidth||0:0,le=x/2-O/2,P=m[g],oe=z-_[p]-m[D],$=z/2-_[p]/2+le,pe=So(P,$,oe),Ae=l;i.modifiersData[n]=(e={},e[Ae]=pe,e.centerOffset=pe-$,e)}}function tT(t){var e=t.state,i=t.options,n=i.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Os(e.elements.popper,o)&&(e.elements.arrow=o))}var gp={name:"arrow",enabled:!0,phase:"main",fn:eT,effect:tT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ln(t){return t.split("-")[1]}var nT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iT(t,e){var i=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:ci(i*o)/o||0,y:ci(n*o)/o||0}}function kv(t){var e,i=t.popper,n=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,d=t.adaptive,p=t.roundOffsets,m=t.isFixed,_=s.x,g=_===void 0?0:_,D=s.y,x=D===void 0?0:D,O=typeof p=="function"?p({x:g,y:x}):{x:g,y:x};g=O.x,x=O.y;var N=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),le=Je,P=We,oe=window;if(d){var $=Sn(i),pe="clientHeight",Ae="clientWidth";if($===Le(i)&&($=ut(i),Ct($).position!=="static"&&a==="absolute"&&(pe="scrollHeight",Ae="scrollWidth")),$=$,o===We||(o===Je||o===ot)&&r===Co){P=ct;var $e=m&&$===oe&&oe.visualViewport?oe.visualViewport.height:$[pe];x-=$e-n.height,x*=l?1:-1}if(o===Je||(o===We||o===ct)&&r===Co){le=ot;var qe=m&&$===oe&&oe.visualViewport?oe.visualViewport.width:$[Ae];g-=qe-n.width,g*=l?1:-1}}var dt=Object.assign({position:a},d&&nT),dn=p===!0?iT({x:g,y:x},Le(i)):{x:g,y:x};if(g=dn.x,x=dn.y,l){var mt;return Object.assign({},dt,(mt={},mt[P]=z?"0":"",mt[le]=N?"0":"",mt.transform=(oe.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",mt))}return Object.assign({},dt,(e={},e[P]=z?x+"px":"",e[le]=N?g+"px":"",e.transform="",e))}function oT(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=n===void 0?!0:n,r=i.adaptive,s=r===void 0?!0:r,a=i.roundOffsets,l=a===void 0?!0:a,d={placement:st(e.placement),variation:ln(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kv(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kv(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Fv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oT,data:{}};var fc={passive:!0};function rT(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,r=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=Le(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(p){p.addEventListener("scroll",i.update,fc)}),a&&l.addEventListener("resize",i.update,fc),function(){r&&d.forEach(function(p){p.removeEventListener("scroll",i.update,fc)}),a&&l.removeEventListener("resize",i.update,fc)}}var Pv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rT,data:{}};var sT={left:"right",right:"left",bottom:"top",top:"bottom"};function Tr(t){return t.replace(/left|right|bottom|top/g,function(e){return sT[e]})}var aT={start:"end",end:"start"};function pc(t){return t.replace(/start|end/g,function(e){return aT[e]})}function Mo(t){var e=Le(t),i=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function To(t){return an(ut(t)).left+Mo(t).scrollLeft}function _p(t,e){var i=Le(t),n=ut(t),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var d=xs();(d||!d&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+To(t),y:l}}function vp(t){var e,i=ut(t),n=Mo(t),o=(e=t.ownerDocument)==null?void 0:e.body,r=En(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=En(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+To(t),l=-n.scrollTop;return Ct(o||i).direction==="rtl"&&(a+=En(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}function Io(t){var e=Ct(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function hc(t){return["html","body","#document"].indexOf(rt(t))>=0?t.ownerDocument.body:Xe(t)&&Io(t)?t:hc(ui(t))}function Ri(t,e){var i;e===void 0&&(e=[]);var n=hc(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),r=Le(n),s=o?[r].concat(r.visualViewport||[],Io(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Ri(ui(s)))}function Ir(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lT(t,e){var i=an(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Lv(t,e,i){return e===uc?Ir(_p(t,i)):sn(e)?lT(e,i):Ir(vp(ut(t)))}function cT(t){var e=Ri(ui(t)),i=["absolute","fixed"].indexOf(Ct(t).position)>=0,n=i&&Xe(t)?Sn(t):t;return sn(n)?e.filter(function(o){return sn(o)&&Os(o,n)&&rt(o)!=="body"}):[]}function yp(t,e,i,n){var o=e==="clippingParents"?cT(t):[].concat(e),r=[].concat(o,[i]),s=r[0],a=r.reduce(function(l,d){var p=Lv(t,d,n);return l.top=En(p.top,l.top),l.right=Do(p.right,l.right),l.bottom=Do(p.bottom,l.bottom),l.left=En(p.left,l.left),l},Lv(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ks(t){var e=t.reference,i=t.element,n=t.placement,o=n?st(n):null,r=n?ln(n):null,s=e.x+e.width/2-i.width/2,a=e.y+e.height/2-i.height/2,l;switch(o){case We:l={x:s,y:e.y-i.height};break;case ct:l={x:s,y:e.y+e.height};break;case ot:l={x:e.x+e.width,y:a};break;case Je:l={x:e.x-i.width,y:a};break;default:l={x:e.x,y:e.y}}var d=o?Eo(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(r){case li:l[d]=l[d]-(e[p]/2-i[p]/2);break;case Co:l[d]=l[d]+(e[p]/2-i[p]/2);break;default:}}return l}function ki(t,e){e===void 0&&(e={});var i=e,n=i.placement,o=n===void 0?t.placement:n,r=i.strategy,s=r===void 0?t.strategy:r,a=i.boundary,l=a===void 0?Iv:a,d=i.rootBoundary,p=d===void 0?uc:d,m=i.elementContext,_=m===void 0?Er:m,g=i.altBoundary,D=g===void 0?!1:g,x=i.padding,O=x===void 0?0:x,N=As(typeof O!="number"?O:Rs(O,Ai)),z=_===Er?xv:Er,le=t.rects.popper,P=t.elements[D?z:_],oe=yp(sn(P)?P:P.contextElement||ut(t.elements.popper),l,p,s),$=an(t.elements.reference),pe=ks({reference:$,element:le,strategy:"absolute",placement:o}),Ae=Ir(Object.assign({},le,pe)),$e=_===Er?Ae:$,qe={top:oe.top-$e.top+N.top,bottom:$e.bottom-oe.bottom+N.bottom,left:oe.left-$e.left+N.left,right:$e.right-oe.right+N.right},dt=t.modifiersData.offset;if(_===Er&&dt){var dn=dt[o];Object.keys(qe).forEach(function(mt){var ji=[ot,ct].indexOf(mt)>=0?1:-1,Ui=[We,ct].indexOf(mt)>=0?"y":"x";qe[mt]+=dn[Ui]*ji})}return qe}function bp(t,e){e===void 0&&(e={});var i=e,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,d=l===void 0?dc:l,p=ln(n),m=p?a?hp:hp.filter(function(D){return ln(D)===p}):Ai,_=m.filter(function(D){return d.indexOf(D)>=0});_.length===0&&(_=m);var g=_.reduce(function(D,x){return D[x]=ki(t,{placement:x,boundary:o,rootBoundary:r,padding:s})[st(x)],D},{});return Object.keys(g).sort(function(D,x){return g[D]-g[x]})}function uT(t){if(st(t)===cc)return[];var e=Tr(t);return[pc(t),e,pc(e)]}function dT(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=i.mainAxis,r=o===void 0?!0:o,s=i.altAxis,a=s===void 0?!0:s,l=i.fallbackPlacements,d=i.padding,p=i.boundary,m=i.rootBoundary,_=i.altBoundary,g=i.flipVariations,D=g===void 0?!0:g,x=i.allowedAutoPlacements,O=e.options.placement,N=st(O),z=N===O,le=l||(z||!D?[Tr(O)]:uT(O)),P=[O].concat(le).reduce(function(Oo,pi){return Oo.concat(st(pi)===cc?bp(e,{placement:pi,boundary:p,rootBoundary:m,padding:d,flipVariations:D,allowedAutoPlacements:x}):pi)},[]),oe=e.rects.reference,$=e.rects.popper,pe=new Map,Ae=!0,$e=P[0],qe=0;qe<P.length;qe++){var dt=P[qe],dn=st(dt),mt=ln(dt)===li,ji=[We,ct].indexOf(dn)>=0,Ui=ji?"width":"height",Ot=ki(e,{placement:dt,boundary:p,rootBoundary:m,altBoundary:_,padding:d}),fn=ji?mt?ot:Je:mt?ct:We;oe[Ui]>$[Ui]&&(fn=Tr(fn));var Bs=Tr(fn),Hi=[];if(r&&Hi.push(Ot[dn]<=0),a&&Hi.push(Ot[fn]<=0,Ot[Bs]<=0),Hi.every(function(Oo){return Oo})){$e=dt,Ae=!1;break}pe.set(dt,Hi)}if(Ae)for(var js=D?3:1,Jc=function(pi){var Vr=P.find(function(Hs){var zi=pe.get(Hs);if(zi)return zi.slice(0,pi).every(function(Xc){return Xc})});if(Vr)return $e=Vr,"break"},Lr=js;Lr>0;Lr--){var Us=Jc(Lr);if(Us==="break")break}e.placement!==$e&&(e.modifiersData[n]._skip=!0,e.placement=$e,e.reset=!0)}}var Cp={name:"flip",enabled:!0,phase:"main",fn:dT,requiresIfExists:["offset"],data:{_skip:!1}};function fT(t,e,i){var n=st(t),o=[Je,We].indexOf(n)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Je,ot].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function pT(t){var e=t.state,i=t.options,n=t.name,o=i.offset,r=o===void 0?[0,0]:o,s=dc.reduce(function(p,m){return p[m]=fT(m,e.rects,r),p},{}),a=s[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=s}var Dp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pT};function hT(t){var e=t.state,i=t.name;e.modifiersData[i]=ks({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Vv={name:"popperOffsets",enabled:!0,phase:"read",fn:hT,data:{}};function wp(t){return t==="x"?"y":"x"}function mT(t){var e=t.state,i=t.options,n=t.name,o=i.mainAxis,r=o===void 0?!0:o,s=i.altAxis,a=s===void 0?!1:s,l=i.boundary,d=i.rootBoundary,p=i.altBoundary,m=i.padding,_=i.tether,g=_===void 0?!0:_,D=i.tetherOffset,x=D===void 0?0:D,O=ki(e,{boundary:l,rootBoundary:d,padding:m,altBoundary:p}),N=st(e.placement),z=ln(e.placement),le=!z,P=Eo(N),oe=wp(P),$=e.modifiersData.popperOffsets,pe=e.rects.reference,Ae=e.rects.popper,$e=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,qe=typeof $e=="number"?{mainAxis:$e,altAxis:$e}:Object.assign({mainAxis:0,altAxis:0},$e),dt=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,dn={x:0,y:0};if($){if(r){var mt,ji=P==="y"?We:Je,Ui=P==="y"?ct:ot,Ot=P==="y"?"height":"width",fn=$[P],Bs=fn+O[ji],Hi=fn-O[Ui],js=g?-Ae[Ot]/2:0,Jc=z===li?pe[Ot]:Ae[Ot],Lr=z===li?-Ae[Ot]:-pe[Ot],Us=e.elements.arrow,Oo=g&&Us?wo(Us):{width:0,height:0},pi=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ns(),Vr=pi[ji],Hs=pi[Ui],zi=So(0,pe[Ot],Oo[Ot]),Xc=le?pe[Ot]/2-js-zi-Vr-qe.mainAxis:Jc-zi-Vr-qe.mainAxis,fy=le?-pe[Ot]/2+js+zi+Hs+qe.mainAxis:Lr+zi+Hs+qe.mainAxis,eu=e.elements.arrow&&Sn(e.elements.arrow),py=eu?P==="y"?eu.clientTop||0:eu.clientLeft||0:0,qp=(mt=dt?.[P])!=null?mt:0,hy=fn+Xc-qp-py,my=fn+fy-qp,Kp=So(g?Do(Bs,hy):Bs,fn,g?En(Hi,my):Hi);$[P]=Kp,dn[P]=Kp-fn}if(a){var Zp,gy=P==="x"?We:Je,_y=P==="x"?ct:ot,$i=$[oe],zs=oe==="y"?"height":"width",Qp=$i+O[gy],Jp=$i-O[_y],tu=[We,Je].indexOf(N)!==-1,Xp=(Zp=dt?.[oe])!=null?Zp:0,eh=tu?Qp:$i-pe[zs]-Ae[zs]-Xp+qe.altAxis,th=tu?$i+pe[zs]+Ae[zs]-Xp-qe.altAxis:Jp,nh=g&&tu?Rv(eh,$i,th):So(g?eh:Qp,$i,g?th:Jp);$[oe]=nh,dn[oe]=nh-$i}e.modifiersData[n]=dn}}var Ep={name:"preventOverflow",enabled:!0,phase:"main",fn:mT,requiresIfExists:["offset"]};function Sp(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Mp(t){return t===Le(t)||!Xe(t)?Mo(t):Sp(t)}function gT(t){var e=t.getBoundingClientRect(),i=ci(e.width)/t.offsetWidth||1,n=ci(e.height)/t.offsetHeight||1;return i!==1||n!==1}function Tp(t,e,i){i===void 0&&(i=!1);var n=Xe(e),o=Xe(e)&&gT(e),r=ut(e),s=an(t,o,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&((rt(e)!=="body"||Io(r))&&(a=Mp(e)),Xe(e)?(l=an(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=To(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function _T(t){var e=new Map,i=new Set,n=[];t.forEach(function(r){e.set(r.name,r)});function o(r){i.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!i.has(a)){var l=e.get(a);l&&o(l)}}),n.push(r)}return t.forEach(function(r){i.has(r.name)||o(r)}),n}function Ip(t){var e=_T(t);return Ov.reduce(function(i,n){return i.concat(e.filter(function(o){return o.phase===n}))},[])}function xp(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Op(t){var e=t.reduce(function(i,n){var o=i[n.name];return i[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,i},{});return Object.keys(e).map(function(i){return e[i]})}var Bv={placement:"bottom",modifiers:[],strategy:"absolute"};function jv(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Uv(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,o=e.defaultOptions,r=o===void 0?Bv:o;return function(a,l,d){d===void 0&&(d=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bv,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},m=[],_=!1,g={state:p,setOptions:function(N){var z=typeof N=="function"?N(p.options):N;x(),p.options=Object.assign({},r,p.options,z),p.scrollParents={reference:sn(a)?Ri(a):a.contextElement?Ri(a.contextElement):[],popper:Ri(l)};var le=Ip(Op([].concat(n,p.options.modifiers)));return p.orderedModifiers=le.filter(function(P){return P.enabled}),D(),g.update()},forceUpdate:function(){if(!_){var N=p.elements,z=N.reference,le=N.popper;if(jv(z,le)){p.rects={reference:Tp(z,Sn(le),p.options.strategy==="fixed"),popper:wo(le)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(qe){return p.modifiersData[qe.name]=Object.assign({},qe.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var oe=p.orderedModifiers[P],$=oe.fn,pe=oe.options,Ae=pe===void 0?{}:pe,$e=oe.name;typeof $=="function"&&(p=$({state:p,options:Ae,name:$e,instance:g})||p)}}}},update:xp(function(){return new Promise(function(O){g.forceUpdate(),O(p)})}),destroy:function(){x(),_=!0}};if(!jv(a,l))return g;g.setOptions(d).then(function(O){!_&&d.onFirstUpdate&&d.onFirstUpdate(O)});function D(){p.orderedModifiers.forEach(function(O){var N=O.name,z=O.options,le=z===void 0?{}:z,P=O.effect;if(typeof P=="function"){var oe=P({state:p,name:N,instance:g,options:le}),$=function(){};m.push(oe||$)}})}function x(){m.forEach(function(O){return O()}),m=[]}return g}}var vT=[Pv,Vv,Fv,Nv],Np=Uv({defaultModifiers:vT});var yT=["*"];var bT=t=>({$implicit:t});var CT=["dialog"],DT=["ngbNavOutlet",""];function wT(t,e){}function ET(t,e){if(t&1&&(c(0,"div",0),T(1,wT,0,0,"ng-template",1),u()),t&2){let i=y().$implicit,n=y();A("item",i)("nav",n.nav)("role",n.paneRole),h(),A("ngTemplateOutlet",(i.contentTpl==null?null:i.contentTpl.templateRef)||null)("ngTemplateOutletContext",c_(5,bT,i.active||n.isPanelTransitioning(i)))}}function ST(t,e){if(t&1&&T(0,ET,2,7,"div",0),t&2){let i=e.$implicit,n=y();I(i.isPanelInDom()||n.isPanelTransitioning(i)?0:-1)}}function MT(t,e){if(t&1&&(c(0,"span"),f(1),u()),t&2){let i=y().$implicit,n=y();ar(n.highlightClass),h(),J(i)}}function TT(t,e){if(t&1&&(kf(0),f(1),Ff()),t&2){let i=y().$implicit;h(),J(i)}}function IT(t,e){if(t&1&&T(0,MT,2,4,"span",0)(1,TT,2,1,"ng-container"),t&2){let i=e.$index;I(i%2!==0?0:1)}}var xT=(t,e,i)=>({result:t,term:e,formatter:i});function OT(t,e){if(t&1&&v(0,"ngb-highlight",2),t&2){let i=e.result,n=e.term,o=e.formatter;A("result",o(i))("term",n)}}function NT(t,e){}function AT(t,e){if(t&1){let i=U();c(0,"button",3),b("mouseenter",function(){let o=S(i).$index,r=y();return M(r.markActive(o))})("click",function(){let o=S(i).$implicit,r=y();return M(r.select(o))}),T(1,NT,0,0,"ng-template",4),u()}if(t&2){let i=e.$implicit,n=e.$index,o=y(),r=dr(1);Qe("active",n===o.activeIdx),A("id",o.id+"-"+n),h(),A("ngTemplateOutlet",o.resultTemplate||r)("ngTemplateOutletContext",u_(5,xT,i,o.term,o.formatter))}}var qv={animation:!0,transitionTimerDelayMs:5},Kv=(()=>{let e=class e{constructor(){this.animation=qv.animation}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RT(t){let{transitionDelay:e,transitionDuration:i}=window.getComputedStyle(t),n=parseFloat(e),o=parseFloat(i);return(n+o)*1e3}function Fs(t){return t!=null?`${t}`:""}function Zv(t){return typeof t=="string"}function Fi(t){return t!=null}function kT(t){return t&&t.then}function FT(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function PT(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function Pp(t){return(t||document.body).getBoundingClientRect()}function LT(t){return e=>new ee(i=>{let n=s=>t.run(()=>i.next(s)),o=s=>t.run(()=>i.error(s)),r=()=>t.run(()=>i.complete());return e.subscribe({next:n,error:o,complete:r})})}function Hv(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Qv(t=document){let e=t?.activeElement;return e?e.shadowRoot?Qv(e.shadowRoot):e:null}var VT=()=>{},{transitionTimerDelayMs:BT}=qv,mc=new Map,Mn=(t,e,i,n)=>{let o=n.context||{},r=mc.get(e);if(r)switch(n.runningTransition){case"continue":return Wn;case"stop":t.run(()=>r.transition$.complete()),o=Object.assign(r.context,o),mc.delete(e)}let s=i(e,n.animation,o)||VT;if(!n.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>s()),gn(void 0).pipe(LT(t));let a=new he,l=new he,d=a.pipe(Du(!0));mc.set(e,{transition$:a,complete:()=>{l.next(),l.complete()},context:o});let p=RT(e);return t.runOutsideAngular(()=>{let m=xe(e,"transitionend").pipe(Ze(d),_t(({target:g})=>g===e)),_=Qi(p+BT).pipe(Ze(d));Da(_,m,l).pipe(Ze(d)).subscribe(()=>{mc.delete(e),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};var gc=(t,e)=>e?e.some(i=>i.contains(t)):!1,zv=(t,e)=>!e||PT(t,e)!=null,jT=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),UT=t=>jT?()=>setTimeout(()=>t(),100):t;function Jv(t,e,i,n,o,r,s,a){i&&t.runOutsideAngular(UT(()=>{let l=_=>{let g=_.target;return _.button===2||gc(g,s)?!1:i==="inside"?gc(g,r)&&zv(g,a):i==="outside"?!gc(g,r):zv(g,a)||!gc(g,r)},d=xe(e,"keydown").pipe(Ze(o),_t(_=>_.key==="Escape"),Xi(_=>_.preventDefault())),p=xe(e,"mousedown").pipe(Me(l),Ze(o)),m=xe(e,"mouseup").pipe(Gr(p),_t(([_,g])=>g),Cu(0),Ze(o));Da([d.pipe(Me(_=>0)),m.pipe(Me(_=>1))]).subscribe(_=>t.run(()=>n(_)))}))}var Xv=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function ey(t){let e=Array.from(t.querySelectorAll(Xv)).filter(i=>i.tabIndex!==-1);return[e[0],e[e.length-1]]}var HT=(t,e,i,n=!1)=>{t.runOutsideAngular(()=>{let o=xe(e,"focusin").pipe(Ze(i),Me(r=>r.target));xe(e,"keydown").pipe(Ze(i),_t(r=>r.key==="Tab"),Gr(o)).subscribe(([r,s])=>{let[a,l]=ey(e);(s===a||s===e)&&r.shiftKey&&(l.focus(),r.preventDefault()),s===l&&!r.shiftKey&&(a.focus(),r.preventDefault())}),n&&xe(e,"click").pipe(Ze(i),Gr(o),Me(r=>r[1])).subscribe(r=>r.focus())})},zT=(()=>{let e=class e{constructor(){this._element=C(Fe).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$T=/\s+/,GT=/ +/gi,WT={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function YT(t,e){let[i,n]=WT[t];return e&&n||i}var qT=/^left/,KT=/^right/,ZT=/^start/,QT=/^end/;function JT(t,e){let[i,n]=e.split("-"),o=i.replace(qT,"start").replace(KT,"end"),r=[o];if(n){let s=n;(i==="left"||i==="right")&&(s=s.replace(ZT,"top").replace(QT,"bottom")),r.push(`${o}-${s}`)}return t&&(r=r.map(s=>`${t}-${s}`)),r.join(" ")}function $v({placement:t,baseClass:e},i){let n=Array.isArray(t)?t:t.split($T),o=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],r=n.findIndex(d=>d==="auto");r>=0&&o.forEach(function(d){n.find(p=>p.search("^"+d)!==-1)==null&&n.splice(r++,1,d)});let s=n.map(d=>YT(d,i.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:d}){let p=new RegExp(e+"(-[a-z]+)*","gi"),m=d.elements.popper,_=d.placement,g=m.className;g=g.replace(p,""),g+=` ${JT(e,_)}`,g=g.trim().replace(GT," "),m.className=g}},Cp,Ep,gp,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Gv(t){return t}function ty(){let t=C(zT),e=null;return{createPopper(i){if(!e){let o=(i.updatePopperOptions||Gv)($v(i,t));e=Np(i.hostElement,i.targetElement,o)}},update(){e&&e.update()},setOptions(i){if(e){let o=(i.updatePopperOptions||Gv)($v(i,t));e.setOptions(o)}},destroy(){e&&(e.destroy(),e=null)}}}function ny(t){return e=>(e.modifiers.push(Dp,{name:"offset",options:{offset:()=>t}}),e)}var DH=new Date(1882,10,12),wH=new Date(2174,10,25);var EH=1e3*60*60*24;var Lp=1080,XT=24*Lp,eI=12*Lp+793,SH=29*XT+eI,MH=11*Lp+204;var tI=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n,this.container=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Vp=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=C(ye).nativeElement,this.tabindex=0}set disabled(n){this._disabled=n===""||n===!0}get disabled(){return this._disabled}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(o,r){o&2&&(Mi("tabIndex",r.disabled?-1:r.tabindex),Qe("disabled",r.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let t=e;return t})();var Bp=(()=>{let e=class e{constructor(){this.dropdown=C(_c),this.nativeElement=C(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(o,r,s){if(o&1&&yo(s,Vp,4),o&2){let a;Kt(a=Zt())&&(r.menuItems=a)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(o,r){o&1&&b("keydown.ArrowUp",function(a){return r.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return r.dropdown.onKeyDown(a)})("keydown.Home",function(a){return r.dropdown.onKeyDown(a)})("keydown.End",function(a){return r.dropdown.onKeyDown(a)})("keydown.Enter",function(a){return r.dropdown.onKeyDown(a)})("keydown.Space",function(a){return r.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return r.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return r.dropdown.onKeyDown(a)}),o&2&&Qe("show",r.dropdown.isOpen())},standalone:!0});let t=e;return t})(),Ap=(()=>{let e=class e{constructor(){this.dropdown=C(_c),this.nativeElement=C(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(o,r){o&2&&(Mt("aria-expanded",r.dropdown.isOpen()),Qe("show",r.dropdown.isOpen()))},standalone:!0});let t=e;return t})(),iy=(()=>{let e=class e extends Ap{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(o,r){o&1&&b("click",function(){return r.dropdown.toggle()})("keydown.ArrowUp",function(a){return r.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return r.dropdown.onKeyDown(a)})("keydown.Home",function(a){return r.dropdown.onKeyDown(a)})("keydown.End",function(a){return r.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return r.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return r.dropdown.onKeyDown(a)}),o&2&&(Mt("aria-expanded",r.dropdown.isOpen()),Qe("show",r.dropdown.isOpen()))},standalone:!0,features:[nt([{provide:Ap,useExisting:at(()=>e)}]),tt]});let t=e;return t})(),_c=(()=>{let e=class e{constructor(){this._changeDetector=C(Jt),this._config=C(tI),this._document=C(Fe),this._injector=C(Ue),this._ngZone=C(ge),this._nativeElement=C(ye).nativeElement,this._destroyCloseHandlers$=new he,this._bodyContainer=null,this._positioning=ty(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new re}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){sr(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},{phase:Nt.Write,injector:this._injector})}ngOnChanges(n){if(n.container&&this._open&&this._applyContainer(this.container),n.placement&&!n.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),n.dropdownClass){let{currentValue:o,previousValue:r}=n.dropdownClass;this._applyCustomDropdownClass(o,r)}n.autoClose&&this._open&&(this.autoClose=n.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(ny([0,2])(n))}),this._applyPlacementClasses(),this._afterRenderRef=Nl(()=>{this._positionMenu()},{phase:Nt.Write,injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Jv(this._ngZone,this._document,this.autoClose,n=>{this.close(),n===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(n){let{key:o}=n,r=this._getMenuElements(),s=-1,a=null,l=this._isEventFromToggle(n);if(!l&&r.length&&r.forEach((d,p)=>{d.contains(n.target)&&(a=d),d===Qv(this._document)&&(s=p)}),o===" "||o==="Enter"){a&&(this.autoClose===!0||this.autoClose==="inside")&&xe(a,"click").pipe(Yn(1)).subscribe(()=>this.close());return}if(o==="Tab"){if(n.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===n.target){this.container==="body"&&!n.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):n.shiftKey&&this.close();return}else if(this.container==="body"){let d=this._menu.nativeElement.querySelectorAll(Xv);n.shiftKey&&n.target===d[0]?(this._anchor.nativeElement.focus(),n.preventDefault()):!n.shiftKey&&n.target===d[d.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else xe(n.target,"focusout").pipe(Yn(1)).subscribe(({relatedTarget:d})=>{this._nativeElement.contains(d)||this.close()});return}if(l||a){if(this.open(),r.length){switch(o){case"ArrowDown":s=Math.min(s+1,r.length-1);break;case"ArrowUp":if(this._isDropup()&&s===-1){s=r.length-1;break}s=Math.max(s-1,0);break;case"Home":s=0;break;case"End":s=r.length-1;break}r[s].focus()}n.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(n){return this._anchor.nativeElement.contains(n.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:n})=>!n).map(({nativeElement:n})=>n):[]}_positionMenu(){let n=this._menu;this.isOpen()&&n&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(n){return Array.isArray(n)?n[0]:n.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(n=null){if(this._resetContainer(),n==="body"){let o=this._menu.nativeElement,r=this._bodyContainer=this._bodyContainer||this._document.createElement("div");r.style.position="absolute",o.style.position="static",r.style.zIndex="1055",r.appendChild(o),this._document.body.appendChild(r)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(n,o){let r=this.container==="body"?this._bodyContainer:this._nativeElement;r&&(o&&r.classList.remove(o),n&&r.classList.add(n))}_applyPlacementClasses(n){if(this._menu){n||(n=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let o=n.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(o),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(o))}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(o,r,s){if(o&1&&(yo(s,Bp,5),yo(s,Ap,5)),o&2){let a;Kt(a=Zt())&&(r._menu=a.first),Kt(a=Zt())&&(r._anchor=a.first)}},hostVars:2,hostBindings:function(o,r){o&2&&Qe("show",r.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[yt]});let t=e;return t})();var oy=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})(),nI=(()=>{let e=class e{constructor(){this._ngbConfig=C(Kv),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),di=class{constructor(e,i,n){this.nodes=e,this.viewRef=i,this.componentRef=n}},Rp=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=C(Fe),this._applicationRef=C(ii),this._injector=C(Ue),this._viewContainerRef=C(Ei),this._ngZone=C(ge)}open(e,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:o}=this._windowRef.location,r=new he;sr(()=>{r.next(),r.complete()},{injector:this._injector,phase:Nt.MixedReadWrite});let s=r.pipe(gt(()=>Mn(this._ngZone,o,({classList:a})=>a.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(e=!1){return this._windowRef?Mn(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:e,runningTransition:"stop"}).pipe(Xi(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):gn(void 0)}_getContentRef(e,i){if(e)if(e instanceof Ln){let n=e.createEmbeddedView(i);return this._applicationRef.attachView(n),new di([n.rootNodes],n)}else return new di([[this._document.createTextNode(`${e}`)]]);else return new di([])}},iI=(()=>{let e=class e{constructor(){this._document=C(Fe)}hide(){let n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),o=this._document.body,r=o.style,{overflow:s,paddingRight:a}=r;if(n>0){let l=parseFloat(window.getComputedStyle(o).paddingRight);r.paddingRight=`${l+n}px`}return r.overflow="hidden",()=>{n>0&&(r.paddingRight=a),r.overflow=s}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oI=(()=>{let e=class e{constructor(){this._nativeElement=C(ye).nativeElement,this._zone=C(ge),this._injector=C(Ue)}ngOnInit(){sr(()=>Mn(this._zone,this._nativeElement,(n,o)=>{o&&Pp(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Nt.MixedReadWrite})}hide(){return Mn(this._zone,this._nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(o,r){o&2&&(ar("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),Qe("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[j],decls:0,vars:0,template:function(o,r){},encapsulation:2});let t=e;return t})(),cn=class{update(e){}close(e){}dismiss(e){}},rI=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],sI=["animation","backdropClass"],kp=class{_applyWindowOptions(e,i){rI.forEach(n=>{Fi(i[n])&&(e[n]=i[n])})}_applyBackdropOptions(e,i){sI.forEach(n=>{Fi(i[n])&&(e[n]=i[n])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Ze(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Ze(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,i,n,o){this._windowCmptRef=e,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=o,this._closed=new he,this._dismissed=new he,this._hidden=new he,e.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,s)=>{this._resolve=r,this._reject=s}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let i=this._beforeDismiss();kT(i)?i.then(n=>{n!==!1&&this._dismiss(e)},()=>{}):i!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():gn(void 0);e.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),$r(e,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Fp=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(Fp||{}),aI=(()=>{let e=class e{constructor(){this._document=C(Fe),this._elRef=C(ye),this._zone=C(ge),this._injector=C(Ue),this._closed$=new he,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new re,this.shown=new he,this.hidden=new he}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Zv(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,sr(()=>this._show(),{injector:this._injector,phase:Nt.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:n}=this._elRef,o={animation:this.animation,runningTransition:"stop"},r=Mn(this._zone,n,()=>n.classList.remove("show"),o),s=Mn(this._zone,this._dialogEl.nativeElement,()=>{},o),a=$r(r,s);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let n={animation:this.animation,runningTransition:"continue"},o=Mn(this._zone,this._elRef.nativeElement,(s,a)=>{a&&Pp(s),s.classList.add("show")},n),r=Mn(this._zone,this._dialogEl.nativeElement,()=>{},n);$r(o,r).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{xe(n,"keydown").pipe(Ze(this._closed$),_t(r=>r.key==="Escape")).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Fp.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let o=!1;xe(this._dialogEl.nativeElement,"mousedown").pipe(Ze(this._closed$),Xi(()=>o=!1),mi(()=>xe(n,"mouseup").pipe(Ze(this._closed$),Yn(1))),_t(({target:r})=>n===r)).subscribe(()=>{o=!0}),xe(n,"click").pipe(Ze(this._closed$)).subscribe(({target:r})=>{n===r&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!o&&this._zone.run(()=>this.dismiss(Fp.BACKDROP_CLICK))),o=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){let o=n.querySelector("[ngbAutofocus]"),r=ey(n)[0];(o||r||n).focus()}}_restoreFocus(){let n=this._document.body,o=this._elWithFocus,r;o&&o.focus&&n.contains(o)?r=o:r=n,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Mn(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(o,r){if(o&1&&ur(CT,7),o&2){let s;Kt(s=Zt())&&(r._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(o,r){o&2&&(Mt("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),ar("modal d-block"+(r.windowClass?" "+r.windowClass:"")),Qe("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[j],ngContentSelectors:yT,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(o,r){o&1&&(Al(),c(0,"div",1,0)(2,"div",2),cr(3),u()()),o&2&&ar("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}9 `],encapsulation:2});let t=e;return t})(),lI=(()=>{let e=class e{constructor(){this._applicationRef= C(ii),this._injector=C(Ue),this._environmentInjector=C(Rt),this._document=C(Fe),this._scrollBar=C(iI),this._activeWindowCmptHasChanged=new he,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new re;let n=C(ge);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let o=this._windowCmpts[this._windowCmpts.length-1];HT(n,o.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(o.location.nativeElement)}})}_restoreScrollBar(){let n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,o,r){let s=r.container instanceof HTMLElement?r.container:Fi(r.container)?this._document.querySelector(r.container):this._document.body;if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new cn;n=r.injector||n;let l=n.get(Rt,null)||this._environmentInjector,d=this._getContentRef(n,l,o,a,r),p=r.backdrop!==!1?this._attachBackdrop(s):void 0,m=this._attachWindowComponent(s,d.nodes),_=new kp(m,d,p,r.beforeDismiss);return this._registerModalRef(_),this._registerWindowCmpt(m),_.hidden.pipe(Yn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=g=>{_.close(g)},a.dismiss=g=>{_.dismiss(g)},a.update=g=>{_.update(g)},_.update(r),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),p&&p.instance&&p.changeDetectorRef.detectChanges(),m.changeDetectorRef.detectChanges(),_}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(o=>o.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let o=kl(oI,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(o.hostView),n.appendChild(o.location.nativeElement),o}_attachWindowComponent(n,o){let r=kl(aI,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:o});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_getContentRef(n,o,r,s,a){return r?r instanceof Ln?this._createFromTemplateRef(r,s):Zv(r)?this._createFromString(r):this._createFromComponent(n,o,r,s,a):new di([])}_createFromTemplateRef(n,o){let r={$implicit:o,close(a){o.close(a)},dismiss(a){o.dismiss(a)}},s=n.createEmbeddedView(r);return this._applicationRef.attachView(s),new di([s.rootNodes],s)}_createFromString(n){let o=this._document.createTextNode(`${n}`);return new di([[o]])}_createFromComponent(n,o,r,s,a){let l=Ue.create({providers:[{provide:cn,useValue:s}],parent:n}),d=kl(r,{environmentInjector:o,elementInjector:l}),p=d.location.nativeElement;return a.scrollable&&p.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new di([[p]],d.hostView,d)}_setAriaHidden(n){let o=n.parentElement;o&&n!==this._document.body&&(Array.from(o.children).forEach(r=>{r!==n&&r.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(o))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,o)=>{n?o.setAttribute("aria-hidden",n):o.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){let o=()=>{let r=this._modalRefs.indexOf(n);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(o,o)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{let o=this._windowCmpts.indexOf(n);o>-1&&(this._windowCmpts.splice(o,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xr=(()=>{let e=class e{constructor(){this._injector=C(Ue),this._modalStack=C(lI),this._config=C(nI)}open(n,o={}){let r=Y(Se(Y({},this._config),{animation:this._config.animation}),o);return this._modalStack.open(this._injector,n,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var cI=(()=>{let e=class e{constructor(){this._ngbConfig=C(Kv),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ry=t=>Fi(t)&&t!=="",uI=0,Ps=(()=>{let e=class e{constructor(){this.templateRef=C(Ln)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["ng-template","ngbNavContent",""]],standalone:!0});let t=e;return t})(),vc=(()=>{let e=class e{constructor(n){this.role=n,this.nav=C(xo)}};e.\u0275fac=function(o){return new(o||e)(ls("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNavItem","",5,"ng-container"]],hostVars:1,hostBindings:function(o,r){o&2&&Mt("role",r.role?r.role:r.nav.roles?"presentation":void 0)},standalone:!0});let t=e;return t})(),Or=(()=>{let e=class e{constructor(){this._nav=C(xo),this._nativeElement=C(ye).nativeElement,this.disabled=!1,this.shown=new re,this.hidden=new re}ngOnInit(){Fi(this.domId)||(this.domId=`ngb-nav-${uI++}`)}get active(){return this._nav.activeId===this.id}get id(){return ry(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Fi(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(o,r,s){if(o&1&&yo(s,Ps,4),o&2){let a;Kt(a=Zt())&&(r.contentTpl=a.first)}},hostAttrs:[1,"nav-item"],inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[0,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0});let t=e;return t})(),xo=(()=>{let e=class e{constructor(n){this.role=n,this._config=C(cI),this._cd=C(Jt),this._document=C(Fe),this._nativeElement=C(ye).nativeElement,this.destroyRef=C(ei),this._navigatingWithKeyboard=!1,this.activeIdChange=new re,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new re,this.hidden=new re,this.navItemChange$=new he,this.navChange=new re}click(n){n.disabled||this._updateActiveId(n.id)}onFocusout({relatedTarget:n}){this._nativeElement.contains(n)||(this._navigatingWithKeyboard=!1)}onKeyDown(n){if(this.roles!=="tablist"||!this.keyboard)return;let o=this.links.filter(a=>!a.navItem.disabled),{length:r}=o,s=-1;if(o.forEach((a,l)=>{a.nativeElement===this._document.activeElement&&(s=l)}),r){switch(n.key){case"ArrowUp":case"ArrowLeft":s=(s-1+r)%r;break;case"ArrowRight":case"ArrowDown":s=(s+1)%r;break;case"Home":s=0;break;case"End":s=r-1;break}this.keyboard==="changeWithArrows"&&this.select(o[s].navItem.id),o[s].nativeElement.focus(),this._navigatingWithKeyboard=!0,n.preventDefault()}}select(n){this._updateActiveId(n,!1)}ngAfterContentInit(){if(!Fi(this.activeId)){let n=this.items.first?this.items.first.id:null;ry(n)&&(this._updateActiveId(n,!1),this._cd.detectChanges())}this.items.changes.pipe(ai(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:n}){n&&!n.firstChange&&this._notifyItemChanged(n.currentValue)}_updateActiveId(n,o=!0){if(this.activeId!==n){let r=!1;o&&this.navChange.emit({activeId:this.activeId,nextId:n,preventDefault:()=>{r=!0}}),r||(this.activeId=n,this.activeIdChange.emit(n),this._notifyItemChanged(n))}}_notifyItemChanged(n){this.navItemChange$.next(this._getItemById(n))}_getItemById(n){return this.items&&this.items.find(o=>o.id===n)||null}};e.\u0275fac=function(o){return new(o||e)(ls("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNav",""]],contentQueries:function(o,r,s){if(o&1&&(yo(s,Or,4),yo(s,Nr,5)),o&2){let a;Kt(a=Zt())&&(r.items=a),Kt(a=Zt())&&(r.links=a)}},hostAttrs:[1,"nav"],hostVars:4,hostBindings:function(o,r){o&1&&b("keydown.arrowLeft",function(a){return r.onKeyDown(a)})("keydown.arrowRight",function(a){return r.onKeyDown(a)})("keydown.arrowDown",function(a){return r.onKeyDown(a)})("keydown.arrowUp",function(a){return r.onKeyDown(a)})("keydown.Home",function(a){return r.onKeyDown(a)})("keydown.End",function(a){return r.onKeyDown(a)})("focusout",function(a){return r.onFocusout(a)}),o&2&&(Mt("aria-orientation",r.orientation==="vertical"&&r.roles==="tablist"?"vertical":void 0)("role",r.role?r.role:r.roles?"tablist":void 0),Qe("flex-column",r.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[yt]});let t=e;return t})(),Nr=(()=>{let e=class e{constructor(n){this.role=n,this.navItem=C(Or),this.nav=C(xo),this.nativeElement=C(ye).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}};e.\u0275fac=function(o){return new(o||e)(ls("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNavLink",""]],hostAttrs:[1,"nav-link"],hostVars:12,hostBindings:function(o,r){o&2&&(Mi("id",r.navItem.domId),Mt("role",r.role?r.role:r.nav.roles?"tab":void 0)("tabindex",r.tabindex)("aria-controls",r.navItem.isPanelInDom()?r.navItem.panelDomId:null)("aria-selected",r.navItem.active)("aria-disabled",r.navItem.disabled),Qe("nav-item",r.navItem.isNgContainer())("active",r.navItem.active)("disabled",r.navItem.disabled))},standalone:!0});let t=e;return t})(),yc=(()=>{let e=class e extends Nr{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["button","ngbNavLink",""]],hostAttrs:["type","button"],hostVars:1,hostBindings:function(o,r){o&1&&b("click",function(){return r.nav.click(r.navItem)}),o&2&&Mi("disabled",r.navItem.disabled)},standalone:!0,features:[tt]});let t=e;return t})();var dI=({classList:t})=>(t.remove("show"),()=>t.remove("active")),fI=(t,e)=>{e&&Pp(t),t.classList.add("show")},Wv=(()=>{let e=class e{constructor(){this.nativeElement=C(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(o,r){o&2&&(Mi("id",r.item.panelDomId),Mt("role",r.role?r.role:r.nav.roles?"tabpanel":void 0)("aria-labelledby",r.item.domId),Qe("fade",r.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0});let t=e;return t})(),bc=(()=>{let e=class e{constructor(){this._cd=C(Jt),this._ngZone=C(ge),this._activePane=null}isPanelTransitioning(n){return this._activePane?.item===n}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ai(this.nav.destroyRef),Mu(this._activePane?.item||null),Vo(),Su(1)).subscribe(n=>{let o={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Mn(this._ngZone,this._activePane.nativeElement,dI,o).subscribe(()=>{let r=this._activePane?.item;this._activePane=this._getPaneForItem(n),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),Mn(this._ngZone,this._activePane.nativeElement,fI,o).subscribe(()=>{n&&(n.shown.emit(),this.nav.shown.emit(n.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show","active")}_getPaneForItem(n){return this._panes&&this._panes.find(o=>o.item===n)||null}_getActivePane(){return this._panes&&this._panes.find(n=>n.item.active)||null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["","ngbNavOutlet",""]],viewQuery:function(o,r){if(o&1&&ur(Wv,5),o&2){let s;Kt(s=Zt())&&(r._panes=s)}},hostAttrs:[1,"tab-content"],inputs:{paneRole:"paneRole",nav:[0,"ngbNavOutlet","nav"]},standalone:!0,features:[j],attrs:DT,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){o&1&&te(0,ST,1,1,null,null,fs),o&2&&ne(r.nav.items)},dependencies:[Wv,Wf],encapsulation:2,changeDetection:0});let t=e;return t})();var Ar=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();var pI=(()=>{let e=class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(n){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let o=Fs(this.result),r=Array.isArray(this.term)?this.term:[this.term],s=p=>this.accentSensitive?p:Hv(p),a=r.map(p=>FT(s(Fs(p)))).filter(p=>p),l=this.accentSensitive?o:Hv(o),d=a.length?l.split(new RegExp(`(${a.join("|")})`,"gmi")):[o];if(this.accentSensitive)this.parts=d;else{let p=0;this.parts=d.map(m=>o.substring(p,p+=m.length))}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[yt,j],decls:2,vars:0,consts:[[3,"class"]],template:function(o,r){o&1&&te(0,IT,2,1,null,null,Yt),o&2&&ne(r.parts)},styles:[`.ngb-highlight{font-weight:700}10 `],encapsulation:2,changeDetection:0});let t=e;return t})(),hI=new G("live announcer delay",{providedIn:"root",factory:()=>100});function Yv(t,e=!1){let i=t.body.querySelector("#ngb-live");return i==null&&e&&(i=t.createElement("div"),i.setAttribute("id","ngb-live"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.classList.add("visually-hidden"),t.body.appendChild(i)),i}var mI=(()=>{let e=class e{constructor(){this._document=C(Fe),this._delay=C(hI)}ngOnDestroy(){let n=Yv(this._document);n&&n.parentElement.removeChild(n)}say(n){let o=Yv(this._document,!0),r=this._delay;if(o!=null){o.textContent="";let s=()=>o.textContent=n;r===null?s():setTimeout(s,r)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gI=(()=>{let e=class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_I=(()=>{let e=class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Fs,this.selectEvent=new re,this.activeChangeEvent=new re}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(n){this.activeIdx=n,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(n){this.selectEvent.emit(n)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(o,r){o&1&&b("mousedown",function(a){return a.preventDefault()}),o&2&&(Mi("id",r.id),ar("dropdown-menu show"+(r.popupClass?" "+r.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[j],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){o&1&&(T(0,OT,1,2,"ng-template",null,0,p_),te(2,AT,2,9,"button",1,Yt)),o&2&&(h(2),ne(r.results))},dependencies:[pI,Wf],encapsulation:2});let t=e;return t})(),vI=0,sy=(()=>{let e=class e{constructor(){this._nativeElement=C(ye).nativeElement,this._config=C(gI),this._live=C(mI),this._document=C(Fe),this._ngZone=C(ge),this._changeDetector=C(Jt),this._injector=C(Ue),this._popupService=new Rp(_I),this._positioning=ty(),this._subscription=null,this._closed$=new he,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=xe(this._nativeElement,"input").pipe(Me(n=>n.target.value)),this._resubscribeTypeahead$=new qi(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new re,this.activeDescendant=null,this.popupId=`ngb-typeahead-${vI++}`,this._onTouched=()=>{},this._onChange=n=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:n}){n&&!n.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}writeValue(n){this._writeInputValue(this._formatItemForInput(n)),this.showHint&&(this._inputValueBackup=n)}setDisabledState(n){this._nativeElement.disabled=n}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(n){if(this.isPopupOpen())switch(n.key){case"ArrowDown":n.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":n.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let o=this._windowRef.instance.getActive();Fi(o)&&(n.preventDefault(),n.stopPropagation(),this._selectResult(o)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:n}=this._popupService.open();this._windowRef=n,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(o=>this._selectResultClosePopup(o)),this._windowRef.instance.activeChangeEvent.subscribe(o=>this.activeDescendant=o),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:o=>this.popperOptions(ny([0,2])(o))}),this._afterRenderRef=Nl(()=>{this._positioning.update()},{phase:Nt.MixedReadWrite,injector:this._injector}))}),Jv(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(n){let o=!1;this.selectItem.emit({item:n,preventDefault:()=>{o=!0}}),this._resubscribeTypeahead$.next(null),o||(this.writeValue(n),this._onChange(n))}_selectResultClosePopup(n){this._selectResult(n),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let n=this._inputValueBackup.toLowerCase(),o=this._formatItemForInput(this._windowRef.instance.getActive());n===o.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+o.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,o.length])):this._writeInputValue(o)}}_formatItemForInput(n){return n!=null&&this.inputFormatter?this.inputFormatter(n):Fs(n)}_writeInputValue(n){this._nativeElement.value=Fs(n)}_subscribeToUserInput(){let n=this._valueChanges$.pipe(Xi(o=>{this._inputValueBackup=this.showHint?o:null,this._inputValueForSelectOnExact=this.selectOnExact?o:null,this._onChange(this.editable?o:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>gn([]));this._subscription=this._resubscribeTypeahead$.pipe(mi(()=>n)).subscribe(o=>{!o||o.length===0?this._closePopup():this.selectOnExact&&o.length===1&&this._formatItemForInput(o[0])===this._inputValueForSelectOnExact?(this._selectResult(o[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",o),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let r=o?o.length:0;this._live.say(r===0?"No results available":`${r} result${r===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(o,r){o&1&&b("blur",function(){return r.handleBlur()})("keydown",function(a){return r.handleKeyDown(a)}),o&2&&(Mi("autocomplete",r.autocomplete),Mt("aria-autocomplete",r.showHint?"both":"list")("aria-activedescendant",r.activeDescendant)("aria-owns",r.isPopupOpen()?r.popupId:null)("aria-expanded",r.isPopupOpen()),Qe("open",r.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[nt([{provide:Hn,useExisting:at(()=>e),multi:!0}]),yt]});let t=e;return t})(),Cc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();function yI(t,e){if(t&1&&(c(0,"div",28),f(1),u()),t&2){let i=y();h(),B(" ",i.failMessage," ")}}var wc=class t{constructor(e){this.http=e}activeModal=C(cn);savingImageSize=!1;failMessage="";newImageSize={name:"",width:0,height:0,crop:!1};newImageSizeHorizontalCrop="center";newImageSizeVerticalCrop="center";imageSizesUrl=`${ze}/optimization/image/image-sizes`;ngOnInit(){}saveAddedImageSize=()=>{this.savingImageSize=!0,this.failMessage="";let e=JSON.parse(JSON.stringify(this.newImageSize));this.newImageSize.crop&&(e.crop=[this.newImageSizeHorizontalCrop,this.newImageSizeVerticalCrop]),Z(this.http.post(this.imageSizesUrl,e)).then(()=>{this.activeModal.close()}).catch(i=>{console.error(i),this.failMessage="Failed to save image size. Please check values."}).finally(()=>{this.savingImageSize=!1})};static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-settings-add-size"]],standalone:!0,features:[j],decls:49,vars:10,consts:[[3,"ngSubmit"],[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"mb-3"],["for","sName",1,"form-label"],["type","text","step","1","id","sName","name","sName",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sW",1,"form-label"],["type","number","step","2","id","sW","name","sW",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sH",1,"form-label"],["type","number","step","3","id","sH","name","sH",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sC",1,"form-check-label","w-100"],["type","checkbox","step","4","id","sC","name","sC",1,"form-check-input",3,"ngModelChange","ngModel"],["for","hC",1,"form-label"],["id","hC","step","5",1,"form-select","form-select-sm",3,"ngModelChange","ngModel","disabled"],["value","left"],["value","center"],["value","right"],["for","vC",1,"form-label"],["id","vC","step","6",1,"form-select","form-select-sm",3,"ngModelChange","ngModel","disabled"],["value","top"],["value","bottom"],["class","modal-body text-bg-danger",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-sm","btn-success",3,"disabled"],[1,"fas","fa-save","me-2"],[1,"modal-body","text-bg-danger"]],template:function(i,n){i&1&&(c(0,"form",0),b("ngSubmit",function(){return n.saveAddedImageSize()}),c(1,"div",1)(2,"h5",2),f(3,"New Image Size"),u(),c(4,"button",3),b("click",function(){return n.activeModal.dismiss("Cross click")}),u()(),c(5,"div",4)(6,"div",5)(7,"label",6),f(8,"Name"),u(),c(9,"input",7),k("ngModelChange",function(r){return F(n.newImageSize.name,r)||(n.newImageSize.name=r),r}),u()(),c(10,"div",5)(11,"label",8),f(12,"Width"),u(),c(13,"input",9),k("ngModelChange",function(r){return F(n.newImageSize.width,r)||(n.newImageSize.width=r),r}),u()(),c(14,"div",5)(15,"label",10),f(16,"Height"),u(),c(17,"input",11),k("ngModelChange",function(r){return F(n.newImageSize.height,r)||(n.newImageSize.height=r),r}),u()(),c(18,"div",5)(19,"label",12),f(20,"Crop?"),u(),c(21,"input",13),k("ngModelChange",function(r){return F(n.newImageSize.crop,r)||(n.newImageSize.crop=r),r}),u()(),c(22,"div",5)(23,"label",14),f(24,"Horizontal Crop"),u(),c(25,"select",15),k("ngModelChange",function(r){return F(n.newImageSizeHorizontalCrop,r)||(n.newImageSizeHorizontalCrop=r),r}),c(26,"option",16),f(27,"Left"),u(),c(28,"option",17),f(29,"Center"),u(),c(30,"option",18),f(31,"Right"),u()()(),c(32,"div",5)(33,"label",19),f(34," Vertical Crop "),u(),c(35,"select",20),k("ngModelChange",function(r){return F(n.newImageSizeVerticalCrop,r)||(n.newImageSizeVerticalCrop=r),r}),c(36,"option",21),f(37,"Top"),u(),c(38,"option",17),f(39,"Center"),u(),c(40,"option",22),f(41,"Bottom"),u()()()(),T(42,yI,2,1,"div",23),c(43,"div",24)(44,"button",25),b("click",function(){return n.activeModal.dismiss("Close click")}),f(45," Cancel "),u(),c(46,"button",26),v(47,"i",27),f(48,"Save "),u()()()),i&2&&(h(9),R("ngModel",n.newImageSize.name),h(4),R("ngModel",n.newImageSize.width),h(4),R("ngModel",n.newImageSize.height),h(4),R("ngModel",n.newImageSize.crop),h(4),R("ngModel",n.newImageSizeHorizontalCrop),A("disabled",!n.newImageSize.crop),h(10),R("ngModel",n.newImageSizeVerticalCrop),A("disabled",!n.newImageSize.crop),h(7),A("ngIf",n.failMessage),h(4),A("disabled",n.savingImageSize))},dependencies:[Ce,tn,nn,on,it,bo,wn,It,Pe,en,Ne,Lt,gr]})};var Ec=class t{title="";question="";cancelWord="";okWord="";activeModal=C(cn);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-confirm"]],inputs:{title:"title",question:"question",cancelWord:"cancelWord",okWord:"okWord"},standalone:!0,features:[j],decls:11,vars:4,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-sm","btn-success",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2),u(),c(3,"button",2),b("click",function(){return n.activeModal.dismiss()}),u()(),c(4,"div",3),f(5),u(),c(6,"div",4)(7,"button",5),b("click",function(){return n.activeModal.dismiss()}),f(8),u(),c(9,"button",6),b("click",function(){return n.activeModal.close()}),f(10),u()()),i&2&&(h(2),J(n.title||"Please Confirm"),h(3),B(" ",n.question,`11 `),h(3),B(" ",n.cancelWord||"Cancel"," "),h(2),B(" ",n.okWord||"OK"," "))}})};var Sc=class t{title="";alert="";okWord="";activeModal=C(cn);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-alert"]],inputs:{title:"title",alert:"alert",okWord:"okWord"},standalone:!0,features:[j],decls:9,vars:3,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","submit",1,"btn","btn-sm","btn-success",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2),u(),c(3,"button",2),b("click",function(){return n.activeModal.dismiss()}),u()(),c(4,"div",3),f(5),u(),c(6,"div",4)(7,"button",5),b("click",function(){return n.activeModal.close()}),f(8),u()()),i&2&&(h(2),J(n.title||"Please note"),h(3),B(" ",n.alert,`12 `),h(3),B(" ",n.okWord||"OK"," "))}})};var un=class t{modalService= C(xr);constructor(){}confirm=(e,i="Please confirm",n="OK",o="Cancel")=>new Promise(r=>{let s=this.modalService.open(Ec);s.componentInstance.title=i,s.componentInstance.question=e,s.componentInstance.okWord=n,s.componentInstance.cancelWord=o,On(s.closed).then(()=>r(!0)),On(s.dismissed).then(()=>r(!1))});alert=(e,i="Notice",n="OK")=>new Promise(o=>{let r=this.modalService.open(Sc);r.componentInstance.title=i,r.componentInstance.question=e,r.componentInstance.okWord=n,On(r.closed).then(o),On(r.dismissed).then(o)});strLastReplace=(e,i,n)=>{let o=n.split(e),r=o.pop();return o.join(e)+i+r};static \u0275fac=function(i){return new(i||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pi=class t{constructor(e){this.http=e}imageSettingsUrl=`${ze}/optimization/image/settings`;imageSettings=null;populate=(e=!1)=>E(this,null,function*(){yield Promise.all([this.populateimageSettings(e)])});populateimageSettings=(e=!1)=>E(this,null,function*(){(this.imageSettings===null||e)&&(this.imageSettings=(yield Z(this.http.get(this.imageSettingsUrl)).catch(console.error))||null)});saveImageSettings=()=>E(this,null,function*(){yield Z(this.http.post(this.imageSettingsUrl,this.imageSettings))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function bI(t,e){if(t&1&&(c(0,"div",30),f(1),u()),t&2){let i=y(2);h(),B(" ",i.saveNotification," ")}}function CI(t,e){if(t&1){let i=U();c(0,"form",13),b("ngSubmit",function(){S(i);let o=y();return M(o.onSubmit())}),c(1,"div",6)(2,"h5",7),f(3," General "),u(),c(4,"div",10)(5,"label",14),f(6," Keep Originals "),c(7,"div",15),f(8," If/When images are resized originals will be preserved separately. "),v(9,"br"),f(10," It is highly recommended to keep this enabled, because this will allow you to revert your images back to originals. "),u()(),c(11,"span",16)(12,"input",17),k("ngModelChange",function(o){S(i);let r=y();return F(r.sS.imageSettings.keepOriginals,o)||(r.sS.imageSettings.keepOriginals=o),M(o)}),u()()(),c(13,"div",18)(14,"label",19),f(15," Convert to "),c(16,"div",20),f(17," Should images be converted to WebP or Avif formats. "),u()(),c(18,"span",21)(19,"select",22),k("ngModelChange",function(o){S(i);let r=y();return F(r.sS.imageSettings.convertTo,o)||(r.sS.imageSettings.convertTo=o),M(o)}),c(20,"option",23),f(21,"Do not Convert"),u(),c(22,"option",24),f(23,"WebP"),u(),c(24,"option",25),f(25,"Avif"),u()()()(),T(26,bI,2,1,"div",26),c(27,"div",27)(28,"button",28),v(29,"i",29),f(30,"Save Settings "),u()()()()}if(t&2){let i=y();h(12),R("ngModel",i.sS.imageSettings.keepOriginals),h(7),R("ngModel",i.sS.imageSettings.convertTo),h(7),A("ngIf",i.saveNotification),h(2),A("disabled",i.disabledSubmit)}}function DI(t,e){t&1&&(c(0,"tr")(1,"td",31),f(2," Please wait, retrieving intermediate image sizes from wordpress. "),u()())}function wI(t,e){t&1&&f(0," center,center ")}function EI(t,e){if(t&1&&f(0),t&2){let i,n=y().$implicit,o=y(2);B(" ",(i=o.imageSizes[n]==null?null:o.imageSizes[n].crop)!==null&&i!==void 0?i:"No Crop Behavior Saved","")}}function SI(t,e){if(t&1){let i=U();c(0,"i",34),b("click",function(){S(i);let o=y().$implicit,r=y(2);return M(r.deleteImageSize(o))}),u()}}function MI(t,e){if(t&1&&(c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),u(),c(7,"td"),T(8,wI,1,0)(9,EI,1,1),u(),c(10,"td"),f(11),u(),c(12,"td",32),T(13,SI,1,0,"i",33),u()()),t&2){let i,n,o,r=e.$implicit,s=y(2);h(2),B(" ",r," "),h(2),B(" ",(i=s.imageSizes[r]==null?null:s.imageSizes[r].width)!==null&&i!==void 0?i:"No Width Saved"," "),h(2),B(" ",(n=s.imageSizes[r]==null?null:s.imageSizes[r].height)!==null&&n!==void 0?n:"No Height Saved"," "),h(2),I((s.imageSizes[r]==null?null:s.imageSizes[r].crop)==="1"||(s.imageSizes[r]==null?null:s.imageSizes[r].crop)===1?8:9),h(3),B(" ",(o=s.imageSizes[r]==null?null:s.imageSizes[r].source)!==null&&o!==void 0?o:"Wordpress"," "),h(2),I(s.imageSizes[r]!=null&&s.imageSizes[r].isOurs?13:-1)}}function TI(t,e){t&1&&(c(0,"tr")(1,"td",31),f(2," There are no intermediate image sizes defined yet. "),u()())}function II(t,e){if(t&1&&te(0,MI,14,6,"tr",null,Yt,!1,TI,3,0,"tr"),t&2){let i=y();ne(i.imageSizeNames)}}var Rr=class t{constructor(e,i,n){this.http=e;this.utilities=i;this.sS=n}modalService=C(xr);disabledSubmit=!1;saveNotification="";imageSizes=void 0;imageSizeNames=[];gettingImageSizes=!0;addingImageSize=!1;savingImageSize=!1;newImageSizeHorizontalCrop="center";newImageSizeVerticalCrop="center";imageSizesUrl=`${ze}/optimization/image/image-sizes`;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),this.getImageSizes()})}getImageSizes=()=>{Z(this.http.get(this.imageSizesUrl)).then(e=>{this.imageSizes=e;let i=Object.entries(this.imageSizes||{});i.sort(([n,o],[r,s])=>parseFloat(o.width)>parseFloat(s.width)?1:-1),this.imageSizeNames=[];for(let[n,o]of i)this.imageSizeNames.push(n);this.gettingImageSizes=!1}).catch(console.error)};onSubmit=()=>{this.disabledSubmit=!0,this.saveNotification="",this.sS.saveImageSettings().then(()=>{this.saveNotification="Settings are now saved"}).catch(e=>{this.saveNotification="Failed to save settings",console.error(e)}).finally(()=>{this.disabledSubmit=!1,setTimeout(()=>{this.saveNotification=""},3e3)})};startAddingImageSize=()=>{this.addingImageSize=!0,this.modalService.open(wc).closed.subscribe(()=>{this.getImageSizes()})};deleteImageSize=e=>E(this,null,function*(){(yield this.utilities.confirm("Are you sure you want to delete "+e))&&Z(this.http.delete(this.imageSizesUrl+"?name="+e)).then(this.getImageSizes).catch(console.error)});static \u0275fac=function(i){return new(i||t)(w(Ve),w(un),w(Pi))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-settings"]],standalone:!0,features:[j],decls:36,vars:2,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[3,"ngSubmit",4,"ngIf"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"btn","btn-xs","btn-outline-light","text-bg-secondary","ms-auto",3,"click"],[1,"fas","fa-add","me-2"],[1,"card-body","d-flex"],[1,"table","table-sm","table-striped","m-0"],["scope","col"],[3,"ngSubmit"],["for","keepO",1,"form-label"],["id","keepOHelp",1,"form-text"],[1,"form-check","form-switch","ms-auto"],["type","checkbox","role","switch","id","keepO","name","keepO",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"card-body","border-top","d-flex"],["for","convTo",1,"form-label"],["id","convToHelp",1,"form-text"],[1,"ms-auto"],["id","convTo","name","convTo","aria-describedby","convToHelp",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","false"],["value","WebP"],["value","Avif"],["class","card-body text-bg-success",4,"ngIf"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"disabled"],[1,"fas","fa-save","me-2"],[1,"card-body","text-bg-success"],["colspan","100"],[2,"text-align","center"],[1,"fas","fa-trash","ptr"],[1,"fas","fa-trash","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Image Optimization Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),T(9,CI,31,4,"form",5),u(),c(10,"div",2)(11,"div",6)(12,"h5",7),f(13," Image Sizes "),c(14,"button",8),b("click",function(){return n.startAddingImageSize()}),v(15,"i",9),f(16,"Add New Size "),u()(),c(17,"div",10)(18,"table",11)(19,"thead")(20,"tr")(21,"th",12),f(22,"Name"),u(),c(23,"th",12),f(24,"Width"),u(),c(25,"th",12),f(26,"Height"),u(),c(27,"th",12),f(28,"Crops?"),u(),c(29,"th",12),f(30,"Source"),u(),c(31,"th",12),f(32,"\xA0"),u()()(),c(33,"tbody"),T(34,DI,3,0,"tr")(35,II,3,1),u()()()()()()()),i&2&&(h(9),A("ngIf",n.sS.imageSettings),h(25),I(n.gettingImageSizes?34:35))},dependencies:[Ce,tn,nn,on,wn,It,Pe,en,Ne,Lt,gr]})};var Vs=(t,e,i)=>{let n=i.split(t),o=n.pop();return n.join(t)+e+o};var Mc=(t,e)=>t?.value?.name>e?.value?.name?1:-1;var Li=class t{constructor(e){this.http=e}mediaListUrl="/wp-json/wp/v2/media";mediaList=[];populateMediaList=()=>E(this,null,function*(){let e=!0;this.mediaList=[];let i=100,n=0,o=0;for(;e;){n++;try{let r=yield Z(this.http.get(`${this.mediaListUrl}?order=asc&orderby=title&per_page=${i}&page=${n}`,{observe:"response"})).catch(console.error);if(!r)e=!1;else{let{headers:s,body:a}=r;o=parseInt(s.get("x-wp-totalpages"),10),n>=o&&(e=!1);for(let l of a||[])this.mediaList.push(l)}}catch(r){console.error(r),e=!1}}});reFetchMedium=e=>E(this,null,function*(){let i=this.mediaList[e].id;this.mediaList[e]=yield Z(this.http.get(`/wp-json/wp/v2/media/${i}`))});optimizeMedium=e=>E(this,null,function*(){let i=`${ze}/optimization/image/use-optimized`;yield Z(this.http.post(i,this.mediaList[e])).catch(console.error),yield this.reFetchMedium(e)});fileDetailsUrl=`${ze}/optimization/image/get-file-details`;getFileDetails=e=>E(this,null,function*(){return yield Z(this.http.post(this.fileDetailsUrl,{path:e}))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var we=class t{constructor(){this.prepare()}currentPage="home";sCP=e=>this.currentPage=e;linkMap=new Map;links=[];prepare=()=>{this.linkMap.set("home",{name:"Home",isPro:!1,link:"home",icon:"fas fa-house"}),this.linkMap.set("optimization-home",{isPro:!1,name:"Optimization",link:"optimization-home",icon:"fas fa-gauge-simple-high"}),this.linkMap.set("optimization-image-home",{isPro:!1,name:"Image Optimization",link:"optimization-image-home",icon:"fas fa-image",parent:"optimization-home"}),this.linkMap.set("optimization-image-supervised",{isPro:!1,name:"Supervised Optimization",link:"optimization-image-supervised",parent:"optimization-image-home"}),this.linkMap.set("optimization-image-bulk",{isPro:!1,name:"Bulk Optimization",link:"optimization-image-bulk",parent:"optimization-image-home"}),this.linkMap.set("optimization-image-settings",{isPro:!1,name:"Settings",link:"optimization-image-settings",parent:"optimization-image-home"}),this.linkMap.set("maintenance-home",{isPro:!0,name:"Maintenance",link:"maintenance-home",icon:"fas fa-wrench"}),this.linkMap.set("maintenance-cron",{isPro:!0,name:"Cron Setup",link:"maintenance-cron",parent:"maintenance-home"}),this.linkMap.set("maintenance-mailgun",{isPro:!0,name:"Mailgun Settings",link:"maintenance-mailgun",parent:"maintenance-home"}),this.linkMap.set("crm-home",{isPro:!0,name:"CRM",link:"crm-home",icon:"fas fa-handshake"}),this.linkMap.set("crm-contact-list",{isPro:!0,name:"Contacts",link:"crm-contact-list",parent:"crm-home"}),this.linkMap.set("crm-explore-list",{isPro:!0,name:"Explorer",link:"crm-explore-list",parent:"crm-home"}),this.linkMap.set("crm-email-template-list",{isPro:!0,name:"Email Templates",link:"crm-email-template-list",parent:"crm-home"}),this.linkMap.set("crm-campaign-list",{isPro:!0,name:"Campaigns",link:"crm-campaign-list",parent:"crm-home"}),this.linkMap.set("crm-settings",{isPro:!0,name:"Settings",link:"crm-settings",parent:"crm-home"}),this.linkMap.set("ai-home",{isPro:!0,isComingSoon:!0,icon:"fas fa-brain",name:"AI Content Generation",link:"ai-home"}),this.linkMap.set("subscription-home",{isPro:!1,name:"Subscription",link:"subscription-home",icon:"fas fa-id-card"});for(let e of this.linkMap.values())(!e.icon||e.icon==="")&&(e.icon="fas fa-caret-right"),e.icon+=" fa-fw";this.links=[];for(let e of this.linkMap.values())if(!e.parent)this.links.push(e);else{let i=this.linkMap.get(e.parent);i.children??=[],i.children.push(e)}};static \u0275fac=function(i){return new(i||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function xI(t,e){if(t&1){let i=U();c(0,"div",5)(1,"div",7),f(2," Before working on any optimization please make sure that you defined the settings. "),v(3,"br"),c(4,"button",8),b("click",function(){S(i);let o=y();return M(o.nS.sCP("optimization-image-settings"))}),f(5,"Go to Image Optimization Settings"),u()()()}}function OI(t,e){t&1&&(c(0,"h6",11),f(1,"Please optimize your images."),u())}function NI(t,e){t&1&&f(0," Good job. All media in your library are optimized. ")}function AI(t,e){t&1&&f(0,"is")}function RI(t,e){t&1&&f(0,"are")}function kI(t,e){t&1&&f(0,"medium")}function FI(t,e){t&1&&f(0,"media")}function PI(t,e){if(t&1&&(f(0," There "),T(1,AI,1,0)(2,RI,1,0),f(3),T(4,kI,1,0)(5,FI,1,0),f(6," in your library pending optimization. "),v(7,"br"),f(8,' Please use "Initiate Bulk Optimization" button on this screen to fix this. ')),t&2){let i=y(2);h(),I(i.pendingCount===1?1:2),h(2),B(" ",i.pendingCount," "),h(),I(i.pendingCount===1?4:5)}}function LI(t,e){if(t&1){let i=U();c(0,"button",20),b("click",function(){S(i);let o=y(3);return M(o.nS.sCP("optimization-image-settings"))}),f(1,"Optimization Disabled, Go to Settings"),u()}}function VI(t,e){if(t&1){let i=U();c(0,"button",21),b("click",function(){S(i);let o=y(3);return M(o.bulkOptimize())}),f(1," Initiate "),u()}if(t&2){let i=y(3);A("disabled",i.optimizing)}}function BI(t,e){if(t&1&&T(0,LI,2,0,"button",18)(1,VI,2,1,"button",19),t&2){let i=y(2);I(i.sS.imageSettings.convertTo==="false"?0:1)}}function jI(t,e){if(t&1&&(c(0,"div",5)(1,"div",7)(2,"div",9)(3,"h5",10),f(4,"Status"),u(),T(5,OI,2,0,"h6",11),c(6,"div",12)(7,"p",13),T(8,NI,1,0)(9,PI,9,3),u(),c(10,"div",14)(11,"div",15)(12,"strong"),f(13),u()()()()()(),c(14,"div",7)(15,"div",16)(16,"h5",10),f(17,"You are saving"),u(),c(18,"div",12)(19,"p",13),f(20),v(21,"br")(22,"br"),f(23," or in other words "),v(24,"br")(25,"br"),f(26),u()()()(),c(27,"div",7)(28,"div",16)(29,"h5",10),f(30,"Let's Go"),u(),c(31,"div",17),T(32,BI,2,1),u()()()()),t&2){let i=y();h(5),I(i.pendingCount>0?5:-1),h(3),I(i.pendingCount===0?8:9),h(3),A("ngClass",i.barClasses)("ngStyle",i.barStyles),h(2),B("",i.optimizedRatio,"%"),h(7),B(" ",i.savingSize," "),h(6),B(" ",i.savingRatio," "),h(6),I(i.sS.imageSettings?32:-1)}}function UI(t,e){if(t&1&&(c(0,"div",6)(1,"div",7)(2,"div",9)(3,"h5",10),f(4,"Optimization Log"),u(),c(5,"div",12)(6,"pre"),f(7),u()()()()()),t&2){let i=y();h(7),J(i.optimizationLog)}}var kr=class t{constructor(e,i,n){this.mS=e;this.sS=i;this.nS=n}isSystemReady=!1;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),(typeof this.sS.imageSettings?.convertTo<"u"||typeof this.sS.imageSettings?.keepOriginals<"u")&&(this.isSystemReady=!0),yield this.mS.populateMediaList(),this.calculateStatus(),yield this.calculateSavings()})}mediaCount=0;optimizedCount=0;pendingCount=0;optimizedRatio=0;barClasses=[];barStyles={};calculateStatus=(e=!1)=>{this.barClasses=["progress-bar","progress-bar-striped"],e&&this.barClasses.push("progress-bar-animated"),this.optimizedCount=0,this.mediaCount=0;for(let i of this.mS.mediaList)i.media_type==="image"&&(this.mediaCount++,i.media_details?.luckynode_optimized==="luckynode_converted"&&this.optimizedCount++);this.pendingCount=this.mediaCount-this.optimizedCount,this.optimizedRatio=parseInt((this.optimizedCount/this.mediaCount*100).toFixed(0),10),this.optimizedRatio<50?(this.barClasses.push("bg-danger"),this.barClasses.push("text-white")):this.optimizedRatio<100?(this.barClasses.push("bg-warning"),this.barClasses.push("text-black")):this.barClasses.push("bg-success"),this.barStyles={width:this.optimizedRatio+"%"}};savingSize="";savingRatio="0%";calculateSavings=()=>E(this,null,function*(){let e=0,i=0;for(let n of this.mS.mediaList)if(n.media_type==="image"&&n.media_details?.luckynode_optimized==="luckynode_converted"){let o=n.media_details.file,r=yield this.mS.getFileDetails(o),s=Vs(n.media_details.sizes.full.file,n.media_details.original_image,o),a=yield this.mS.getFileDetails(s);e+=r.fileSize,i+=a.fileSize}this.savingSize=((i-e)/1024).toFixed(2)+"kb",this.savingSize+=` (${i-e} b)`,i===0?this.savingRatio="0%":this.savingRatio=((i-e)/i*100).toFixed(2)+"%"});optimizing=!1;optimizationLog="";bulkOptimize=()=>E(this,null,function*(){this.optimizing=!0,this.addLog("Starting optimization",!0),this.calculateStatus(!0);for(let[e,i]of this.mS.mediaList.entries())this.addLog(`Currently pending media to optimize: ${this.pendingCount}`),i.media_type==="image"&&i.media_details?.luckynode_optimized!=="luckynode_converted"&&(this.addLog(`Now optimizing ${i.title.rendered}`),yield this.mS.optimizeMedium(e),this.addLog(`Done optimizing ${i.title.rendered}`),this.calculateStatus(!0));this.optimizing=!1,this.calculateStatus(),this.calculateSavings()});addLog=(e,i=!1)=>{i&&(this.optimizationLog=""),this.optimizationLog=e+`13 `+this.optimizationLog};static \u0275fac=function(i){return new(i||t)(w(Li),w(Pi),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-bulk"]],standalone:!0,features:[j],decls:12,vars:3,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"row","mt-0"],[1,"row","my-3"],[1,"row","mb-3"],[1,"col"],["type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],[1,"card"],[1,"card- header","text-light","fw-bold","bg-secondary"],[1,"card-header","mb-2","text-body-secondary","bg-warning"],[1,"card-body"],[1,"card-text"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress","my-3",2,"height","2rem"],[3,"ngClass","ngStyle"],[1,"card","h-100"],[1,"card-body","d-flex"],["type","button",1,"btn","btn-outline-danger"],["type","button",1,"btn","btn-success","btn-lg","mx-auto","my-auto","rounded-circle","border",2,"width","100px","height","100px",3,"disabled"],["type","button",1,"btn","btn-outline-danger",3,"click"],["type","button",1,"btn","btn-success","btn-lg","mx-auto","my-auto","rounded-circle","border",2,"width","100px","height","100px",3,"click","disabled"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Bulk Optimization"),u(),c(5,"div",3),f(6,"\xA0"),u()()(),c(7,"div",4),v(8,"hr"),u(),T(9,xI,6,0,"div",5)(10,jI,33,8,"div",5)(11,UI,8,1,"div",6),u()),i&2&&(h(9),I(n.isSystemReady?-1:9),h(),I(n.isSystemReady?10:-1),h(),I(n.optimizing?11:-1))},dependencies:[Gf,A_]})};function HI(t,e){if(t&1&&(c(0,"div",3),f(1),u()),t&2){let i=y();h(),B(" ",i.failMessage,`14 `)}}var Tc=class t{constructor(e){this.http=e}activeModal=C(cn);currentMessage="Are you ready?";regenerating=!1;data=void 0;ngOnInit(){}failMessage="";useOriginalUrl=`${ze}/optimization/image/use-original`;useOriginal=()=>E(this,null,function*(){this.currentMessage="Please wait, your server is now working on it",this.regenerating=!0;let e=yield Z(this.http.post(this.useOriginalUrl,this.data)).catch(console.error);console.log(e),console.log(e==="success"),e==="success"?(this.currentMessage="All done. Good bye.",setTimeout(()=>{this.activeModal.close()},1e3)):(this.failMessage=e,this.currentMessage="Something went wrong. Please read below message.",this.regenerating=!1)});static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-supervised-use-original"]],inputs:{data:"data"},standalone:!0,features:[j],decls:12,vars:4,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],[1,"modal-body"],[1,"modal-body","text-bg-danger"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click","disabled"],["type","button",1,"btn","btn-sm","btn-success","text-light",3,"click","disabled"],[1,"fas","fa-play","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2,"Use Original Image"),u()(),c(3,"div",2),f(4),u(),T(5,HI,2,1,"div",3),c(6,"div",4)(7,"button",5),b("click",function(){return n.activeModal.dismiss("Close click")}),f(8,"Cancel"),u(),c(9,"button",6),b("click",function(){return n.useOriginal()}),v(10,"i",7),f(11,"Start"),u()()),i&2&&(h(4),B(" ",n.currentMessage,`15 `),h(),I(n.failMessage?5:-1),h(2),A("disabled",n.regenerating),h(2),A("disabled",n.regenerating))},dependencies:[ Ce]})};function zI(t,e){if(t&1){let i=U();c(0,"div",5)(1,"div",6)(2,"button",7),b("click",function(){S(i);let o=y();return M(o.useOriginalImage())}),f(3,"Use Original Image"),u()()()}}function $I(t,e){if(t&1){let i=U();c(0,"div",5)(1,"div",6)(2,"button",7),b("click",function(){S(i);let o=y();return M(o.nS.sCP("optimization-image-settings"))}),f(3,"Optimization Disabled, Go to Settings"),u()()()}}function GI(t,e){t&1&&(c(0,"button",10),v(1,"i",11),u())}function WI(t,e){if(t&1){let i=U();c(0,"button",7),b("click",function(){S(i);let o=y(2);return M(o.useOptimizedImage())}),f(1,"Optimize"),u()}}function YI(t,e){if(t&1&&(c(0,"div",5)(1,"div",6),T(2,GI,2,0,"button",10)(3,WI,2,0,"button",10),u()()),t&2){let i=y();h(2),I(i.optimizingImage?2:3)}}function qI(t,e){if(t&1){let i=U();c(0,"div",9)(1,"div",12),f(2," Before working on any optimization please make sure that you defined the settings. "),v(3,"br"),c(4,"button",13),b("click",function(){S(i);let o=y();return M(o.nS.sCP("optimization-image-settings"))}),f(5,"Go to Image Optimization Settings"),u()()()}}function KI(t,e){t&1&&(c(0,"label",19),f(1,"All Images"),u())}function ZI(t,e){t&1&&(c(0,"label",19),f(1,"Images Pending Optimization"),u())}function QI(t,e){if(t&1){let i=U();c(0,"div",9)(1,"div",2)(2,"h5"),f(3),u(),c(4,"div",3),f(5,"\xA0"),u(),c(6,"div",5)(7,"div",16)(8,"input",17),k("ngModelChange",function(o){S(i);let r=y(2);return F(r.showAll,o)||(r.showAll=o),M(o)}),u(),T(9,KI,2,0,"label",18)(10,ZI,2,0,"label",18),u()(),c(11,"div",5),f(12),u()()()}if(t&2){let i=y(2);h(3),J((i.currentData==null||i.currentData.title==null?null:i.currentData.title.rendered)||"There is no title for the media"),h(5),R("ngModel",i.showAll),h(),A("ngIf",i.showAll),h(),A("ngIf",!i.showAll),h(2),Tt(" Media ",i.currentImage+1," of ",i.imageList.length," ")}}function JI(t,e){t&1&&(c(0,"div",21),f(1," No optimization done yet. "),u())}function XI(t,e){t&1&&(c(0,"div",21),f(1," Original Image is not preserved. "),u())}function ex(t,e){if(t&1&&(c(0,"div",21)(1,"div",22),v(2,"img",23),c(3,"div",24)(4,"h5",25),f(5,"Original Image"),u(),c(6,"span",26),f(7),v(8,"br"),f(9),v(10,"br"),f(11),v(12,"br"),u()()()()),t&2){let i=y(3);h(2),A("src",i.originalImage.url,Bn),h(5),B(" Extension: ",i.originalImage.ext," "),h(2),Tt(" File Size: ",i.originalImage.sizekb," (",i.originalImage.size,") "),h(2),B(" Saving: ",i.originalImage.saving," ")}}function tx(t,e){if(t&1&&(c(0,"div",20)(1,"div",21)(2,"div",22),v(3,"img",23),c(4,"div",24)(5,"h5",25),f(6,"Active Image"),u(),c(7,"span",26),f(8),v(9,"br"),f(10),v(11,"br"),f(12),v(13,"br"),u()()()(),T(14,JI,2,0,"div",27)(15,XI,2,0,"div",27)(16,ex,13,5,"div",27),u()),t&2){let i=y(2);h(3),A("src",i.activeImage.url,Bn),h(5),B(" Extension: ",i.activeImage.ext," "),h(2),Tt(" File Size: ",i.activeImage.sizekb," (",i.activeImage.size,") "),h(2),B(" Saving: ",i.activeImage.saving," "),h(2),A("ngIf",!i.originalImage.optimized),h(),A("ngIf",i.originalImage.optimized&&!i.originalImage.exists),h(),A("ngIf",i.originalImage.optimized&&i.originalImage.exists)}}function nx(t,e){if(t&1&&T(0,QI,13,6,"div",14)(1,tx,17,8,"div",15),t&2){let i=y();A("ngIf",i.currentData),h(),A("ngIf",i.currentData)}}var Fr=class t{constructor(e,i,n){this.mS=e;this.sS=i;this.nS=n}modalService=C(xr);showAll=!0;currentImage=0;currentData=void 0;imageList=[];indexList=[];fileDetailsUrl=`${ze}/optimization/image/get-file-details`;activeImage={url:"",ext:"",size:"",sizekb:"",saving:""};originalImage={optimized:!1,exists:!1,url:"",ext:"",size:"",sizekb:"",saving:""};isSystemReady=!1;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),(typeof this.sS.imageSettings?.convertTo<"u"||typeof this.sS.imageSettings?.keepOriginals<"u")&&(this.isSystemReady=!0),this.populateImageList()})}getExtension=e=>e.split(".").pop();nextImage=()=>{this.currentImage=++this.currentImage%(this.imageList?.length||1),this.setCurrentData()};previousImage=()=>{this.currentImage=--this.currentImage,this.currentImage<0&&(this.currentImage=this.imageList.length-1),this.setCurrentData()};populateImageList=()=>E(this,null,function*(){try{yield this.mS.populateMediaList();for(let[e,i]of this.mS.mediaList.entries())i.media_type==="image"&&(this.imageList.push(i),this.indexList.push(e));this.currentData||(this.currentImage=0,this.setCurrentData())}catch(e){console.error(e)}});setCurrentData=()=>E(this,null,function*(){let e=new Intl.NumberFormat;this.imageList[this.currentImage]=this.mS.mediaList[this.indexList[this.currentImage]],this.currentData=this.imageList[this.currentImage],this.activeImage.url=this.currentData.source_url,this.activeImage.ext=this.getExtension(this.currentData.media_details?.sizes?.full?.file)||"undefined",this.activeImage.size=e.format(this.currentData.media_details?.filesize)+" b",this.activeImage.sizekb=(this.currentData.media_details?.filesize/1024).toFixed(2)+" kb",this.activeImage.saving="n/a",this.originalImage.optimized=!!this.currentData.media_details.luckynode_optimized,this.originalImage.exists=!!this.currentData.media_details.original_image,this.originalImage.url=Vs(this.currentData.media_details.sizes.full.file,this.currentData.media_details.original_image,this.currentData.source_url),this.originalImage.ext=this.getExtension(this.originalImage.url)||"";let i=Vs(this.currentData.media_details.sizes.full.file,this.currentData.media_details.original_image,this.currentData.media_details.file);if(this.originalImage.size="n/a",this.originalImage.sizekb="n/a",this.originalImage.saving="n/a",this.originalImage.exists){let n=yield this.mS.getFileDetails(i).catch(console.error);n&&(this.originalImage.size=n.fileSize+" b",this.originalImage.sizekb=(n.fileSize/1024).toFixed(2)+" kb",this.activeImage.saving=((1-this.currentData.media_details?.filesize/n.fileSize)*100).toFixed(2)+"%",this.originalImage.saving=this.activeImage.saving)}});useOriginalImage=()=>E(this,null,function*(){let e=this.modalService.open(Tc,{backdrop:"static",size:"lg",keyboard:!1});e.componentInstance.data=this.currentData,yield On(e.closed),yield this.mS.reFetchMedium(this.indexList[this.currentImage]),this.imageList[this.currentImage]=this.mS.mediaList[this.indexList[this.currentImage]],this.setCurrentData()});optimizingImage=!1;useOptimizedImage=()=>E(this,null,function*(){this.optimizingImage=!0,yield this.mS.optimizeMedium(this.indexList[this.currentImage]),this.setCurrentData(),this.optimizingImage=!1});static \u0275fac=function(i){return new(i||t)(w(Li),w(Pi),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-supervised"]],standalone:!0,features:[j],decls:20,vars:5,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],["class","ms-3",4,"ngIf"],[1,"ms-3"],["role","group",1,"btn-group","btn-group-sm","my-auto"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"row","mt-0"],[1,"row","my-3"],["type","button",1,"btn","btn-outline-secondary"],[1,"fas","fa-sync","fa-spin"],[1,"col"],["type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],["class","row my-3",4,"ngIf"],["class","row",4,"ngIf"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","sA","name","sA",1,"form-check-input",3,"ngModelChange","ngModel"],["class","form-label","for","sA",4,"ngIf"],["for","sA",1,"form-label"],[1,"row"],[1,"col-6"],[1,"card"],[1,"card-img-top",3,"src"],[1,"card-body"],[1,"card-title"],[1,"card-text"],["class","col-6",4,"ngIf"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Supervised Optimization"),u(),c(5,"div",3),f(6,"\xA0"),u(),T(7,zI,4,0,"div",4)(8,$I,4,0,"div",4)(9,YI,4,1,"div",4),c(10,"div",5)(11,"div",6)(12,"button",7),b("click",function(){return n.previousImage()}),f(13,"Previous"),u(),c(14,"button",7),b("click",function(){return n.nextImage()}),f(15,"Next"),u()()()()(),c(16,"div",8),v(17,"hr"),u(),T(18,qI,6,0,"div",9)(19,nx,2,2),u()),i&2&&(h(7),A("ngIf",n.originalImage.optimized&&n.originalImage.exists),h(),A("ngIf",!n.originalImage.optimized&&!n.originalImage.exists&&(n.sS.imageSettings==null?null:n.sS.imageSettings.convertTo)==="false"),h(),A("ngIf",!n.originalImage.optimized&&!n.originalImage.exists&&(n.sS.imageSettings==null?null:n.sS.imageSettings.convertTo)!=="false"),h(9),I(n.isSystemReady?-1:18),h(),I(n.isSystemReady?19:-1))},dependencies:[gr,Ce,wn,Pe,Ne]})};function ix(t,e){t&1&&v(0,"lnf-optimization-image-supervised")}function ox(t,e){t&1&&v(0,"lnf-optimization-image-bulk")}function rx(t,e){t&1&&v(0,"lnf-optimization-image-settings")}var Ic=class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-home"]],standalone:!0,features:[j],decls:18,vars:1,consts:[["nav","ngbNav"],[1,"container-fluid","p-1"],[1,"row"],[1,"col"],["ngbNav","",1,"nav-tabs","border-0"],["ngbNavItem","",1,"mb-0"],["ngbNavLink",""],["ngbNavContent",""],[1,"border","p-1",3,"ngbNavOutlet"]],template:function(i,n){if(i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4,0)(5,"li",5)(6,"button",6),f(7,"Supervised Optimization"),u(),T(8,ix,1,0,"ng-template",7),u(),c(9,"li",5)(10,"button",6),f(11,"Bulk Optimization"),u(),T(12,ox,1,0,"ng-template",7),u(),c(13,"li",5)(14,"button",6),f(15,"Settings"),u(),T(16,rx,1,0,"ng-template",7),u()(),v(17,"div",8),u()()()),i&2){let o=dr(4);h(17),A("ngbNavOutlet",o)}},dependencies:[Ar,Ps,xo,Or,vc,yc,Nr,bc,Rr,kr,Fr]})};function sx(t,e){t&1&&v(0,"lnf-optimization-image-home")}var xc=class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-home"]],standalone:!0,features:[j],decls:10,vars:1,consts:[["nav","ngbNav"],[1,"container-fluid","p-1"],[1,"row"],[1,"col"],["ngbNav","",1,"nav-tabs","border-0"],["ngbNavItem","",1,"mb-0"],["ngbNavLink",""],["ngbNavContent",""],[1,"border","p-1",3,"ngbNavOutlet"]],template:function(i,n){if(i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4,0)(5,"li",5)(6,"button",6),f(7,"Image Optimization"),u(),T(8,sx,1,0,"ng-template",7),u()(),v(9,"div",8),u()()()),i&2){let o=dr(4);h(9),A("ngbNavOutlet",o)}},dependencies:[Ar,Ps,xo,Or,vc,yc,Nr,bc,Ic]})};var Vi=class t{constructor(e){this.http=e;this.checkRegistration()}subscription={registered:!1,id:"",origin:"",email:"",licenseValidUntil:"",emailVerified:!1,licenseValid:!1};rUrl=`${ec}/subscriber`;checkSubscription=()=>E(this,null,function*(){let e=yield Z(this.http.post(`${this.rUrl}/verify`,{})).catch(console.error);return console.log(e),e});checkRegistration=()=>E(this,null,function*(){try{this.subscription=yield Z(this.http.get(`${this.rUrl}/check-registration`))}catch(e){console.error(e)}});tempExtend=()=>E(this,null,function*(){yield Z(this.http.get(`${this.rUrl}/temp-extend`))});register=e=>E(this,null,function*(){return yield Z(this.http.post(`${this.rUrl}/register`,{email:e}))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var zp=(t,e)=>e.name,ax=()=>[];function lx(t,e){if(t&1){let i=U();c(0,"li",12),b("click",function(){S(i);let o=y().$implicit,r=y(7);return M(r.nS.sCP(o.link||"home"))}),c(1,"span",14),v(2,"i",15),u(),f(3),u()}if(t&2){let i=y().$implicit;h(3),B(" ",i.name," ")}}function cx(t,e){if(t&1&&T(0,lx,4,1,"li",11),t&2){let i=e.$implicit,n=y(7);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function ux(t,e){if(t&1&&(c(0,"ul",13),te(1,cx,1,1,null,null,zp),u()),t&2){let i=y(2).$implicit;h(),ne(i.children)}}function dx(t,e){t&1&&v(0,"br")}function fx(t,e){if(t&1){let i=U();c(0,"strong",12),b("click",function(){S(i);let o=y().$implicit,r=y(4);return M(r.nS.sCP(o.link||"home"))}),f(1),u(),T(2,ux,3,0,"ul",13)(3,dx,1,0,"br")}if(t&2){let i=y().$implicit;h(),J(i.name),h(),I(i.children?2:3)}}function px(t,e){if(t&1&&T(0,fx,4,2),t&2){let i=e.$implicit,n=y(4);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function hx(t,e){if(t&1){let i=U();c(0,"strong",12),b("click",function(){S(i);let o=y(2).$implicit,r=y(2);return M(r.nS.sCP(o.link||"home"))}),f(1),u()}if(t&2){let i=y(2).$implicit;h(),J(i.name)}}function mx(t,e){t&1&&(c(0,"strong",11),f(1,"Coming soon, stay tuned"),u())}function gx(t,e){if(t&1){let i=U();c(0,"div",7)(1,"div",8)(2,"h5",9),b("click",function(){S(i);let o=y().$implicit,r=y(2);return M(r.nS.sCP(o.link||"home"))}),f(3),u(),c(4,"div",10),te(5,px,1,1,null,null,zp),T(7,hx,2,1,"strong",11)(8,mx,2,0,"strong",11),u()()()}if(t&2){let i=y().$implicit;h(3),B(" ",i.name," "),h(2),ne(i.children||fr(3,ax)),h(2),I(!i.children&&!i.isComingSoon?7:-1),h(),I(!i.children&&i.isComingSoon?8:-1)}}function _x(t,e){if(t&1&&T(0,gx,9,4,"div",7),t&2){let i=e.$implicit,n=y(2);I((i.isPro&&n.sS.subscription.licenseValid||!i.isPro)&&i.link!=="home"?0:-1)}}function vx(t,e){if(t&1){let i=U();c(0,"div",6)(1,"div",8)(2,"h5",16),f(3,"Go Pro"),u(),c(4,"div",10),f(5," LuckyNode is a dynamic and evolving WordPress plugin, offering essential tools to enhance your website's performance and management. Currently, LuckyNode provides Image Optimization as a free feature, helping you reduce file sizes and improve load times effortlessly. For users looking to extend their site's capabilities, we offer a CRM feature as part of our paid, pro version\u2014perfect for managing customer relationships and streamlining business operations. As we continue to develop LuckyNode, new functionalities are regularly added to meet the growing needs of our users, ensuring that your WordPress site remains powerful and efficient. "),v(6,"br")(7,"br"),c(8,"strong"),f(9,"Unlock More with LuckyNode Pro!"),u(),f(10," Take your website to the next level with advanced features like our powerful CRM tool. Manage your customer relationships, streamline your workflow, and enjoy priority support. Upgrade to Pro now and experience the full potential of LuckyNode! "),v(11,"br")(12,"br"),c(13,"button",17),b("click",function(){S(i);let o=y(2);return M(o.nS.sCP("subscription-home"))}),f(14,"Go Pro Now"),u()()()()}}function yx(t,e){if(t&1&&(c(0,"div",5),te(1,_x,1,1,null,null,zp),T(3,vx,15,0,"div",6),u()),t&2){let i=y();h(),ne(i.nS.links),h(2),I(i.sS.subscription.licenseValid?-1:3)}}var Oc=class t{constructor(e,i){this.nS=e;this.sS=i}static \u0275fac=function(i){return new(i||t)(w(we),w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-home"]],standalone:!0,features:[j],decls:10,vars:1,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"row","mt-0"],[1,"row","my-3"],[1,"col"],[1,"col","mb-3"],[1,"card"],[1,"card-header","text-light","fw-bold","bg-secondary","ptr",3,"click"],[1,"card-body"],[1,"ptr"],[1,"ptr",3,"click"],[1,"fa-ul","mt-3","ms-4"],[1,"fa-li"],[1,"fas","fa-chevron-right"],[1,"card-header","text-light","fw-bold","bg-secondary"],["type","button",1,"btn","btn-sm","btn-secondary","ms-auto","my-auto",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Welcome to LuckyNode Plugin"),u(),c(5,"div",3),f(6,"\xA0"),u()()(),c(7,"div",4),v(8,"hr"),u(),T(9,yx,4,1,"div",5),u()),i&2&&(h(9),I(n.sS.subscription.origin?9:-1))}})};var Nc=class t{constructor(e){this.http=e}makeRequest=()=>E(this,null,function*(){let e=yield Z(this.http.get("http://localhost:3000")).catch(console.error);console.log({result:e})});static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-ai-content-settings"]],standalone:!0,features:[j],decls:11,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],["type","button",1,"btn","btn-secondary","btn-sm",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"AI Content Generation Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"button",5),b("click",function(){return n.makeRequest()}),f(10,"Let's try"),u()()()())},dependencies:[Ce]})};function bx(t,e){t&1&&f(0,"(Verified, thank you.)")}function Cx(t,e){t&1&&f(0,"(Pending verification. Please check your inbox.)")}function Dx(t,e){if(t&1&&(f(0),Qt(1,"date")),t&2){let i=y(3);B(" Your license is valid until ",Rl(1,1,i.sS.subscription.licenseValidUntil,"medium"),". ")}}function wx(t,e){if(t&1){let i=U();f(0," You currently don't have a valid license. "),v(1,"br"),f(2," Until further notice you can extend your subscription for free. "),v(3,"br"),c(4,"button",9),b("click",function(){S(i);let o=y(3);return M(o.extend())}),f(5,"Extend"),u()}}function Ex(t,e){if(t&1&&(c(0,"div",8)(1,"strong"),f(2,"Domain:"),u(),f(3),v(4,"br"),c(5,"strong"),f(6,"Registered Email Address:"),u(),f(7),T(8,bx,1,0)(9,Cx,1,0),v(10,"br")(11,"br")(12,"hr"),c(13,"strong"),f(14,"License Status:"),u(),T(15,Dx,2,4)(16,wx,6,0),v(17,"br"),u()),t&2){let i=y(2);h(3),B(" ",i.sS.subscription.origin," "),h(4),B(" ",i.sS.subscription.email," "),h(),I(i.sS.subscription.emailVerified?8:9),h(7),I(i.sS.subscription.licenseValid?15:16)}}function Sx(t,e){if(t&1){let i=U();c(0,"form",10),b("ngSubmit",function(){S(i);let o=y(2);return M(o.register())}),c(1,"div",7)(2,"div",11)(3,"label",12),f(4,"Valid Email Address"),u(),c(5,"input",13),k("ngModelChange",function(o){S(i);let r=y(2);return F(r.email,o)||(r.email=o),M(o)}),u()()(),c(6,"div",14)(7,"button",15),v(8,"i",16),f(9,"Register "),u()()()}if(t&2){let i=y(2);h(5),R("ngModel",i.email)}}function Mx(t,e){if(t&1&&T(0,Ex,18,4,"div",8)(1,Sx,10,1,"form"),t&2){let i=y();I(i.sS.subscription.registered===!0?0:1)}}function Tx(t,e){t&1&&(c(0,"div",7),f(1," Checking registaration status. Please wait. "),u())}var Ac=class t{constructor(e){this.sS=e}registrationResult=void 0;subscriptionChecked=!1;email="";ngOnInit(){return E(this,null,function*(){this.checkRegistration()})}extend=()=>E(this,null,function*(){yield this.sS.tempExtend(),this.checkRegistration()});checkRegistration=()=>E(this,null,function*(){yield this.sS.checkRegistration(),this.subscriptionChecked=!0,this.sS.subscription.email&&!this.sS.subscription.emailVerified&&setTimeout(()=>{this.checkRegistration()},3e3)});register=()=>E(this,null,function*(){this.registrationResult=yield this.sS.register(this.email)});static \u0275fac=function(i){return new(i||t)(w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-subscription-home"]],standalone:!0,features:[j],decls:14,vars:2,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"card-body","d-flex"],[1,"card-body"],["type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[3,"ngSubmit"],[1,"mb-3","w-100"],["for","email",1,"form-label"],["type","email","name","email","id","email",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto"],[1,"fas","fa-user-plus","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"My Subscription"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"div",5)(10,"h5",6),f(11," Your Registration Information "),u(),T(12,Mx,2,1)(13,Tx,2,0,"div",7),u()()()()),i&2&&(h(12),I(n.subscriptionChecked?12:-1),h(),I(n.subscriptionChecked?-1:13))},dependencies:[Ce,tn,it,Pe,en,Ne,Lt,Yl]})};var Rc=class t{constructor(e){this.nS=e}static \u0275fac=function(i){return new(i||t)(w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-home"]],standalone:!0,features:[j],decls:22,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"fa-ul","mt-3","ms-4"],[1,"ptr",3,"click"],[1,"fa-li"],[1,"fas","fa-chevron-right"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"ul",5)(10,"li",6),b("click",function(){return n.nS.sCP("crm-campaigns")}),c(11,"span",7),v(12,"i",8),u(),f(13,"Campaigns"),u(),c(14,"li",6),b("click",function(){return n.nS.sCP("crm-explorer")}),c(15,"span",7),v(16,"i",8),u(),f(17,"Explorer"),u(),c(18,"li",6),b("click",function(){return n.nS.sCP("crm-settings")}),c(19,"span",7),v(20,"i",8),u(),f(21,"Settings"),u()()()()())}})};var Ye=class t{constructor(e){this.http=e}url=`${ze}/database`;insert=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"insert"},e))).catch(console.error)});update=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"update"},e))).catch(console.error)});delete=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"delete"},e))).catch(console.error)});selectAll=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"selectAll"},e))).catch(console.error)});insertTask=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"insertTask"},e))).catch(console.error)});campaignMails=e=>E(this,null,function*(){return Z(this.http.post(this.url,Y({action:"campaignMails"},e))).catch(console.error)});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Be=class t{constructor(e,i){this.http=e;this.dbS=i;this.populate()}settingsUrl=`${ze}/crm/settings`;crmSettings=null;populate=(e=!1)=>E(this,null,function*(){yield Promise.all([this.populateSettings(e),this.populateEmailTemplates(),this.populateCampaigns()])});populateSettings=(e=!1)=>E(this,null,function*(){(this.crmSettings===null||e)&&(this.crmSettings=(yield Z(this.http.get(this.settingsUrl)).catch(console.error))||null)});saveSettings=()=>E(this,null,function*(){yield Z(this.http.post(this.settingsUrl,this.crmSettings))});currentEmailTemplate="";emailTemplates=new Map;populateEmailTemplates=()=>E(this,null,function*(){this.emailTemplates.clear();for(let e of((yield this.dbS.selectAll({type:"email-template"}).catch(console.error))||[]).sort(Mc))this.emailTemplates.set(e.id,e)});testEmailTemplate=e=>E(this,null,function*(){let i=`${ze}/crm/email-template/test`,n=(yield Z(this.http.post(i,{id:e})).catch(console.error))||null;console.log(n)});contacts=new Map;currentContact="";populateContacts=()=>E(this,null,function*(){this.contacts.clear();for(let e of((yield this.dbS.selectAll({type:"contact"}).catch(console.error))||[]).sort(Mc))this.contacts.set(e.id,e)});currentCampaign="";campaigns=new Map;populateCampaigns=()=>E(this,null,function*(){this.campaigns.clear();for(let e of((yield this.dbS.selectAll({type:"campaign"}).catch(console.error))||[]).sort(Mc))this.campaigns.set(e.id,e)});static \u0275fac=function(i){return new(i||t)(H(Ve),H(Ye))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function Ix(t,e){if(t&1){let i=U();c(0,"form",5),b("ngSubmit",function(){S(i);let o=y();return M(o.crmS.saveSettings())}),c(1,"div",6)(2,"h5",7),f(3," General Settings "),u(),c(4,"div",8)(5,"div",9)(6,"label",10),f(7,"Google Maps API Key"),u(),c(8,"input",11),k("ngModelChange",function(o){S(i);let r=y();return F(r.crmS.crmSettings.googleAPIKey,o)||(r.crmS.crmSettings.googleAPIKey=o),M(o)}),u(),c(9,"div",12),f(10," LuckyNode CRM uses Google Maps API in the explorer functionality. "),v(11,"br"),f(12," You should be activating Google Places API (New) on Google Cloud Console "),v(13,"br"),f(14," and defining an API key to paste in this field. "),u()(),c(15,"div",9)(16,"label",13),f(17,"Daily Automated Mail Sending Limit"),u(),c(18,"input",14),k("ngModelChange",function(o){S(i);let r=y();return F(r.crmS.crmSettings.smtpDailyLimit,o)||(r.crmS.crmSettings.smtpDailyLimit=o),M(o)}),u(),c(19,"div",15),f(20," Some of the mail sending services endorse a daily sending limit. "),v(21,"br"),f(22," This is the place where you can limit LuckyNode CRM to obey those limits. "),u()()(),c(23,"div",16)(24,"button",17),v(25,"i",18),f(26,"Save Settings "),u()()()()}if(t&2){let i=y();h(8),R("ngModel",i.crmS.crmSettings.googleAPIKey),h(10),R("ngModel",i.crmS.crmSettings.smtpDailyLimit)}}var kc=class t{constructor(e){this.crmS=e}static \u0275fac=function(i){return new(i||t)(w(Be))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-settings"]],standalone:!0,features:[j],decls:10,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[3,"ngSubmit"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"card-body"],[1,"mb-3"],["for","gapikey",1,"form-label"],["type","text","name","gapikey","id","gapikey",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","gapiHelp",1,"form-text"],["for","smtplimit",1,"form-label"],["type","number","name","smtplimit","id","smtplimit",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","smtpHelp",1,"form-text"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto"],[1,"fas","fa-save","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),T(9,Ix,27,2,"form"),u()()()),i&2&&(h(9),I(n.crmS.crmSettings?9:-1))},dependencies:[Ce,tn,it,bo,Pe,en,Ne,Lt]})};var xx=(t,e)=>e.id;function Ox(t,e){if(t&1){let i=U();c(0,"i",14),b("click",function(){S(i);let o=y().$implicit,r=y();return M(r.delete(o.id))}),u()}}function Nx(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),Qt(5,"titlecase"),u(),c(6,"td",9)(7,"i",11),b("click",function(){let o=S(i).$implicit,r=y();return M(r.edit(o.id))}),u(),T(8,Ox,1,0,"i",12),c(9,"i",13),b("click",function(){let o=S(i).$implicit,r=y();return M(r.stats(o.id))}),u()()()}if(t&2){let i=e.$implicit;h(2),J(i.value.name||"No Name Given"),h(2),B(" ",Ti(5,3,i.value.status||"Pending")," "),h(4),I(i.value.status==="pending"?8:-1)}}var Fc=class t{constructor(e,i,n,o){this.nS=e;this.dbS=i;this.crmS=n;this.uS=o}ngOnInit(){this.crmS.populateCampaigns()}edit=e=>{this.crmS.currentCampaign=e,this.nS.sCP("crm-campaign")};stats=e=>{this.crmS.currentCampaign=e,this.nS.sCP("crm-campaign-stats")};delete=e=>E(this,null,function*(){try{if(yield this.uS.confirm("Are you sure?","Delete campaign","Yes","Cancel")){let i=yield this.dbS.delete({id:e}).catch(n=>{console.log("This is database delete error"),console.error(n)});console.log({result:i}),yield this.crmS.populateCampaigns()}}catch(i){console.log("this is parent error"),console.error(i)}});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(Be),w(un))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign-list"]],standalone:!0,features:[j],decls:23,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"],[1,"sticky-top","border"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"fas","fa-pen-to-square","ptr",3,"click"],[1,"fas","fa-trash","ptr","ms-2","text-danger"],[1,"fas","fa-chart-column","ptr","ms-2",3,"click"],[1,"fas","fa-trash","ptr","ms-2","text-danger",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Campaigns"),u(),c(5,"button",3),b("click",function(){return n.nS.sCP("crm-campaign")}),f(6,"New Campaign"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead",8)(13,"tr")(14,"th"),f(15,"Name"),u(),c(16,"th"),f(17,"Status"),u(),c(18,"th",9),v(19,"i",10),u()()(),c(20,"tbody"),te(21,Nx,10,5,"tr",null,xx),u()()()()()),i&2&&(h(21),ne(n.crmS.campaigns.values()))},dependencies:[_r]})};var xt=class t{constructor(e){this.http=e;this.populateCountries()}rUrl=`${ec}/geography`;search=e=>E(this,null,function*(){return Z(this.http.post(`${this.rUrl}/search`,{phrase:e}))});countCities=(e,i)=>E(this,null,function*(){return Z(this.http.post(`${this.rUrl}/city-count`,{type:e,id:i}))});countries=new Map;populatingO=!1;populateCountries=()=>E(this,null,function*(){if(!(this.countries.size>0||this.populatingO)){this.populatingO=!0;for(let e of(yield Z(this.http.get(`${this.rUrl}/countries`)).catch(console.error))||[])typeof e.id=="number"&&(e.id=e.id.toString()),this.countries.set(e.id,e);this.populatingO=!1}});getStates=e=>E(this,null,function*(){let i=new Map;for(let n of(yield Z(this.http.post(`${this.rUrl}/states`,{country:e})).catch(console.error))||[])typeof n.id=="number"&&(n.id=n.id.toString()),i.set(n.id,n);return i});getCities=(e,i)=>E(this,null,function*(){let n=new Map;for(let o of(yield Z(this.http.post(`${this.rUrl}/cities`,{country:e,state:i})).catch(console.error))||[])typeof o.id=="number"&&(o.id=o.id.toString()),n.set(o.id,o);return n});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pc=(t,e)=>e.id;function Ax(t,e){if(t&1){let i=U();c(0,"button",30),b("click",function(){S(i);let o=y().$index,r=y();return M(r.removeGPText(o))}),v(1,"i",31),u()}}function Rx(t,e){if(t&1){let i=U();c(0,"div",14)(1,"span",27),f(2,"Phrase: "),u(),c(3,"input",28),k("ngModelChange",function(o){let r=S(i).$index,s=y();return F(s.gpTexts[r],o)||(s.gpTexts[r]=o),M(o)}),u(),T(4,Ax,2,0,"button",29),u()}if(t&2){let i=e.$index,n=y();h(3),ni("name","gpText",n.gpTexts[i],""),ni("id","gpText",n.gpTexts[i],""),R("ngModel",n.gpTexts[i]),h(),I(n.gpTexts.length>1?4:-1)}}function kx(t,e){t&1&&v(0,"i",24)}function Fx(t,e){t&1&&v(0,"i",25)}function Px(t,e){if(t&1){let i=U();c(0,"button",37),b("click",function(){let o=S(i).$implicit,r=y(2);return M(r.add("country",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (",i.path,")")}}function Lx(t,e){if(t&1){let i=U();c(0,"button",37),b("click",function(){let o=S(i).$implicit,r=y(2);return M(r.add("state",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (@",i.path,")")}}function Vx(t,e){if(t&1){let i=U();c(0,"button",37),b("click",function(){let o=S(i).$implicit,r=y(2);return M(r.add("city",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (@",i.path,")")}}function Bx(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),Qt(3,"titlecase"),u(),c(4,"td"),f(5),Qt(6,"titlecase"),u(),c(7,"td",35),f(8),u(),c(9,"td",38)(10,"i",39),b("click",function(){let o=S(i).$implicit,r=y(2);return M(r.remove(o.id))}),u()()()}if(t&2){let i=e.$implicit;h(2),J(Ti(3,3,i.type)),h(3),J(Ti(6,5,i.name)),h(3),J(i.cityCount)}}function jx(t,e){if(t&1&&(c(0,"div",5)(1,"div",32)(2,"div",11)(3,"h5",8),f(4,"Geography Search Results"),u(),c(5,"div",9),te(6,Px,2,2,"button",33,Pc),te(8,Lx,2,2,"button",33,Pc),te(10,Vx,2,2,"button",33,Pc),u()()(),c(12,"div",32)(13,"div",11)(14,"h5",8),f(15,"Geography Selections"),u(),c(16,"div",9)(17,"table",34)(18,"thead")(19,"tr")(20,"th"),f(21,"Type"),u(),c(22,"th"),f(23,"Name"),u(),c(24,"th",35),f(25,"# Cities"),u(),c(26,"th"),f(27,"\xA0"),u()()(),c(28,"tbody"),te(29,Bx,11,7,"tr",null,Pc),c(31,"tr")(32,"td"),f(33,"\xA0"),u(),c(34,"th",36),f(35,"Total Number of Cities to Explore"),u(),c(36,"td",35),f(37),u(),c(38,"td"),f(39,"\xA0"),u()()()()()()()()),t&2){let i=y();h(6),ne(i.searchResult.countries),h(2),ne(i.searchResult.states),h(2),ne(i.searchResult.cities),h(19),ne(i.selections),h(8),J(i.totalCities)}}var Lc=class t{constructor(e,i,n,o){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o}searchResult=null;searchPhrase="";searching=!1;selections=[];totalCities=0;gpTexts=[""];areWeReadyToSave=!1;name="";checkReadinessToSave=()=>{if(this.areWeReadyToSave=!0,this.name.length<3){this.areWeReadyToSave=!1;return}if(this.selections.length===0){this.areWeReadyToSave=!1;return}if(this.totalCities===0){this.areWeReadyToSave=!1;return}if(parseInt(this.gpTexts.map(i=>i.length.toString()).join(""),0)===0){this.areWeReadyToSave=!1;return}};search=()=>E(this,null,function*(){this.searchResult=null,this.searching=!0,this.searchResult=yield this.gS.search(this.searchPhrase),this.cleanUp(),this.searching=!1});addGPText=()=>{this.gpTexts.push(""),this.checkReadinessToSave()};removeGPText=e=>{this.gpTexts.splice(e,1),this.checkReadinessToSave()};add=(e,i,n)=>{let o={type:e,id:i,name:n,cityCount:0};e!=="city"?this.gS.countCities(e,i).then(r=>{o.cityCount=r.count,this.calculateTotal()}):o.cityCount=1,this.selections.push(o),this.cleanUp(),this.calculateTotal(),this.checkReadinessToSave()};remove=e=>{this.selections=this.selections.filter(i=>i.id!==e),this.cleanUp(),this.calculateTotal(),this.checkReadinessToSave()};calculateTotal=()=>{this.totalCities=0;for(let e of this.selections)this.totalCities+=e.cityCount;this.checkReadinessToSave()};cleanUp=()=>{if(this.searchResult)for(let e of this.selections)this.searchResult.countries=this.searchResult.countries.filter(i=>i.id!==e.id),this.searchResult.states=this.searchResult.states.filter(i=>i.id!==e.id),this.searchResult.cities=this.searchResult.cities.filter(i=>i.id!==e.id);this.checkReadinessToSave()};creating=!1;create=()=>E(this,null,function*(){this.creating=!0;let e={name:this.name,gpTexts:this.gpTexts,selections:this.selections};console.log(e);let i=yield this.dbS.insert({type:"exploration",value:e});console.log(i),this.creating=!1,this.nS.sCP("crm-explore-list")});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-explorer"]],standalone:!0,features:[j],decls:54,vars:6,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"row","mt-0"],[1,"row"],[1,"col-4"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["type","text","name","name","id","name",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],[1,"card"],[1,"mb-3"],[1,"form-label"],[1,"input-group","input-group-sm","mb-2"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["id","gpTextHelp",1,"form-text"],[1,"col-8","mb-3"],[3,"ngSubmit"],["for","phrase",1,"form-label"],["type","text","name","phrase","id","phrase",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","phraseHelp",1,"form-text"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click","disabled"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"fas","fa-magnifying-glass-location","me-2"],[1,"container-fluid","mx-0","px-0"],[1,"input-group-text"],["type","text",1,"form-control","form-control-sm",3,"ngModelChange","name","id","ngModel"],["type","button",1,"btn","btn-outline-secondary"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-trash"],[1,"col","py-3"],["type","button",1,"btn","btn-sm","btn-outline-secondary","me-2","mb-2"],[1,"table","table-sm","table-striped","table-bordered"],[1,"text-end"],["scope","row"],["type","button",1,"btn","btn-sm","btn-outline-secondary","me-2","mb-2",3,"click"],[1,"text-center"],[1,"fas","fa-trash","text-danger","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Explorer"),u(),c(5,"button",3),b("click",function(){return n.create()}),f(6,"Create Explore"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"div",7)(12,"h5",8),f(13,"Name"),u(),c(14,"div",9)(15,"input",10),k("ngModelChange",function(r){return F(n.name,r)||(n.name=r),r}),u()()(),c(16,"div",11)(17,"h5",8),f(18,"What are you looking for?"),u(),c(19,"div",9)(20,"div",12)(21,"label",13),f(22,"Google Places Search Phrase"),u(),te(23,Rx,5,6,"div",14,Yt),c(25,"button",15),b("click",function(){return n.addGPText()}),f(26,"Add Search Phrase"),u(),c(27,"div",16),f(28," These are the phrases we will be searching for you in Google Places API according to the entries you will make in the geographic search. "),v(29,"br"),f(30,' e.g. If you enter "Dentist" in this field and select city of Dubai, we will search for "Dentist in Dubai" for you. '),v(31,"br"),f(32,' or, if you select "United Kingdom (whole country)", we will make a similar search to above for each city in the UK for you. '),v(33,"br"),f(34," As you search for geographies below, we will let you know how many cities exist within a geography you select as well as the total number of cities. "),u()()()()(),c(35,"div",17)(36,"div",11)(37,"form",18),b("ngSubmit",function(){return n.search()}),c(38,"h5",8),f(39,"Search Geographic Targes"),u(),c(40,"div",9)(41,"div",12)(42,"label",19),f(43,"Please enter country/state/city"),u(),c(44,"input",20),k("ngModelChange",function(r){return F(n.searchPhrase,r)||(n.searchPhrase=r),r}),u(),c(45,"div",21),f(46,"Please note; LuckyNode will find your targets city by city, so adding a whole country/state will mean that there will be many steps in the explore phase."),u()()(),c(47,"div",22)(48,"button",23),b("click",function(){return n.search()}),T(49,kx,1,0,"i",24)(50,Fx,1,0,"i",25),f(51," Search "),u()()()(),c(52,"div",26),T(53,jx,40,1,"div",5),u()()()()),i&2&&(h(5),A("disabled",!n.areWeReadyToSave||n.creating),h(10),R("ngModel",n.name),h(8),ne(n.gpTexts),h(21),R("ngModel",n.searchPhrase),h(4),A("disabled",n.searching||n.searchPhrase.length<3),h(),I(n.searching?49:50),h(4),I(n.searchResult?53:-1))},dependencies:[Ce,tn,it,Pe,en,Ne,Lt,_r]})};var Vc=class t{constructor(e){this.nS=e}static \u0275fac=function(i){return new(i||t)(w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-home"]],standalone:!0,features:[j],decls:14,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"fa-ul","mt-3","ms-4"],[1,"ptr",3,"click"],[1,"fa-li"],[1,"fas","fa-chevron-right"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Maintenance"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"ul",5)(10,"li",6),b("click",function(){return n.nS.sCP("maintenance-cron")}),c(11,"span",7),v(12,"i",8),u(),f(13,"Cron Setup"),u()()()()())}})};var Bi=class t{constructor(e){this.http=e}mailgunSettings=null;url=`${ze}/maintenance`;mailgunSettingsUrl=`${ze}/maintenance/mailgun/settings`;cronCheck=()=>Z(this.http.get(`${this.url}/cron-check`));cronFixDisableCron=()=>Z(this.http.get(`${this.url}/cron-fix-disable-cron`));cronFixMissingCrontab=()=>Z(this.http.get(`${this.url}/cron-fix-missing-crontab`));populateMailgunSettings=(e=!1)=>E(this,null,function*(){(this.mailgunSettings===null||e)&&(this.mailgunSettings=(yield Z(this.http.get(this.mailgunSettingsUrl)).catch(console.error))||null)});saveMailgunSettings=()=>E(this,null,function*(){yield Z(this.http.post(this.mailgunSettingsUrl,this.mailgunSettings))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ux=()=>[];function Hx(t,e){t&1&&(f(0,` This value should be "true", let's fix it. `),v(1,"br"))}function zx(t,e){t&1&&(v(0,"i",12),f(1," Fixing, please wait... "))}function $x(t,e){t&1&&f(0," Fix This ")}function Gx(t,e){if(t&1){let i=U();c(0,"button",11),b("click",function(){S(i);let o=y(2);return M(o.fixDisableCron())}),T(1,zx,2,0)(2,$x,1,0),u()}if(t&2){let i=y(2);A("disabled",i.fixingDisableCron),h(),I(i.fixingDisableCron?1:2)}}function Wx(t,e){t&1&&(c(0,"button",9),f(1," All good. Nothing to do here. "),u()),t&2&&A("disabled",!0)}function Yx(t,e){t&1&&v(0,"i",13)}function qx(t,e){if(t&1&&(c(0,"pre"),f(1),T(2,Yx,1,0,"i",13),u()),t&2){let i=e.$implicit,n=y(3);h(),B("",i," "),h(),I(i===n.expectedCrontab?2:-1)}}function Kx(t,e){t&1&&(f(0," We found the exact crontab we were looking for. Good job. "),v(1,"br"))}function Zx(t,e){if(t&1&&(f(0," We couldn't find the exact crontab we were looking for. Which is:"),v(1,"br"),c(2,"pre"),f(3),u(),f(4," If you don't see an equivalent crontab in the list, or you don't have another method that runs this cron job. Please fix it using the button below: ")),t&2){let i=y(3);h(3),J(i.expectedCrontab)}}function Qx(t,e){t&1&&(v(0,"i",12),f(1," Fixing, please wait... "))}function Jx(t,e){t&1&&f(0," Fix This ")}function Xx(t,e){if(t&1){let i=U();c(0,"button",11),b("click",function(){S(i);let o=y(3);return M(o.fixCronTab())}),T(1,Qx,2,0)(2,Jx,1,0),u()}if(t&2){let i=y(3);A("disabled",i.fixingCronTab),h(),I(i.fixingCronTab?1:2)}}function eO(t,e){t&1&&(c(0,"button",9),f(1," All good. Nothing to do here. "),u()),t&2&&A("disabled",!0)}function tO(t,e){if(t&1&&(c(0,"div",10)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Cronjobs Defined on the Server"),u(),c(5,"div",7),f(6," Below you can see crontab entries on your server: "),v(7,"hr"),te(8,qx,3,2,"pre",null,Yt),v(10,"hr"),T(11,Kx,2,0,"br")(12,Zx,5,1),u(),c(13,"div",8),T(14,Xx,3,2,"button",9)(15,eO,2,1,"button",9),u()()()()),t&2){let i=y(2);h(8),ne(i.cronCR.crons||fr(2,Ux)),h(3),I(i.foundCrontab===!0?11:12),h(3),I(i.foundCrontab?15:14)}}function nO(t,e){if(t&1&&(c(0,"div",10)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Cron Job Setup"),u(),c(5,"div",7)(6,"strong"),f(7,"As soon as you register your domain with LuckyNode ecosystem, we start to send 1 cron calls per minute to your site."),u(),v(8,"hr"),f(9," So you are all covered here. "),v(10,"br")(11,"br"),f(12," Alternativetly if you would like to also run a local cron job on your server, "),v(13,"br"),f(14," below crontab entry should serve you well: "),v(15,"br"),c(16,"pre"),f(17),u()()()()()),t&2){let i=y(2);h(17),J(i.expectedCrontab)}}function iO(t,e){if(t&1&&(c(0,"div",4)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Wordpress Config for Cron"),u(),c(5,"div",7),f(6," Below you can see DISABLE_WP_CRON value of your Wordpress configuration: "),v(7,"hr"),c(8,"pre"),f(9),u(),v(10,"hr"),T(11,Hx,2,0,"br"),u(),c(12,"div",8),T(13,Gx,3,2,"button",9)(14,Wx,2,1,"button",9),u()()()(),T(15,tO,16,3,"div",10)(16,nO,18,1,"div",10)),t&2){let i=y();h(9),B("DISABLE_WP_CRON = ",i.cronCR.DISABLE_WP_CRON,""),h(2),I(i.cronCR.DISABLE_WP_CRON===!1?11:-1),h(2),I(i.cronCR.DISABLE_WP_CRON===!1?13:14),h(2),I(i.canExec?15:16)}}var Bc=class t{constructor(e){this.mS=e}cronCR=null;expectedCrontab="";expectedCrontabUrl="";foundCrontab=!1;canExec=!1;ngOnInit(){this.checkCron()}checkCron=()=>E(this,null,function*(){this.cronCR=yield this.mS.cronCheck(),this.expectedCrontab=`* * * * * curl ${this.cronCR.siteURL}/wp-cron.php?doing_wp_cron >/dev/null 2>&1`,this.expectedCrontabUrl=`${this.cronCR.siteURL}/wp-cron.php?doing_wp_cron`,this.foundCrontab=!1,Array.isArray(this.cronCR.crons)&&(this.canExec=!0);for(let e of this.cronCR.crons)e===this.expectedCrontab&&(this.foundCrontab=!0)});fixingCronTab=!1;fixCronTab=()=>E(this,null,function*(){this.fixingCronTab=!1,yield this.mS.cronFixMissingCrontab(),yield this.checkCron(),setTimeout(()=>E(this,null,function*(){yield this.checkCron(),this.fixingCronTab=!1}),3e3)});fixingDisableCron=!1;fixDisableCron=()=>E(this,null,function*(){this.fixingDisableCron=!0,yield this.mS.cronFixDisableCron(),yield this.checkCron(),setTimeout(()=>E(this,null,function*(){yield this.checkCron(),this.fixingDisableCron=!1}),3e3)});static \u0275fac=function(i){return new(i||t)(w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-cron"]],standalone:!0,features:[j],decls:8,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"card-footer","border-top","d-flex"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"disabled"],[1,"row","py-3"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click","disabled"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"far","fa-square-check"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Cron Setup"),u()()(),c(5,"div",3),v(6,"hr"),u(),T(7,iO,17,4),u()),i&2&&(h(7),I(n.cronCR?7:-1))}})};var oO=(t,e)=>e.id;function rO(t,e){if(t&1&&f(0),t&2){let i=y().$implicit;B("",i.explorePercentage,"%")}}function sO(t,e){if(t&1&&(c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),Qt(7,"titlecase"),T(8,rO,1,1),u()()),t&2){let i=e.$implicit;h(2),J(i.id),h(2),J((i.value==null?null:i.value.name)||"No Name Given"),h(2),B(" ",Ti(7,4,(i.value==null?null:i.value.status)||"Pending")," "),h(2),I((i.value==null?null:i.value.status)==="Exploring"?8:-1)}}var jc=class t{constructor(e,i,n,o){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o}explorations=null;interval;ngOnInit(){this.getAll(),this.interval=setInterval(this.getAll,5e3)}ngOnDestroy(){clearInterval(this.interval)}getAll=()=>E(this,null,function*(){this.explorations=yield this.dbS.selectAll({type:"exploration"});for(let e of this.explorations){e.countAll=(e.value.combinations||[]).length,e.countDone=0;for(let i of e.value.combinations||[])i.done&&e.countDone++;e.countAll&&(e.explorePercentage=(e.countDone/e.countAll*100).toFixed(2))}});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-explore-list"]],standalone:!0,features:[j],decls:23,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Explore List"),u(),c(5,"button",3),b("click",function(){return n.nS.sCP("crm-explorer")}),f(6,"New Exploration"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead")(13,"tr")(14,"th"),f(15,"#"),u(),c(16,"th"),f(17,"Name"),u(),c(18,"th"),f(19,"Status"),u()()(),c(20,"tbody"),te(21,sO,9,6,"tr",null,oO),u()()()()()),i&2&&(h(21),ne(n.explorations))},dependencies:[Ce,_r]})};var aO=(t,e)=>e.id;function lO(t,e){if(t&1&&v(0,"img",16),t&2){let i=y().$implicit;A("src",i.value.avatar,Bn)}}function cO(t,e){t&1&&(c(0,"div",17),v(1,"i",24),u())}function uO(t,e){t&1&&(c(0,"button",18),v(1,"i",25),f(2," Ready"),u())}function dO(t,e){t&1&&(c(0,"button",19),v(1,"i",26),f(2," Browsing"),u())}function fO(t,e){if(t&1&&(c(0,"a",20),f(1),u()),t&2){let i=y().$implicit;h(),J(i.value.website)}}function pO(t,e){t&1&&f(0,"-")}function hO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",13)(2,"input",14),k("ngModelChange",function(o){let r=S(i).$implicit;return F(r.checked,o)||(r.checked=o),M(o)}),u()(),c(3,"td",15),T(4,lO,1,1,"img",16)(5,cO,2,0,"div",17),u(),c(6,"td",13),f(7),u(),c(8,"td",15),T(9,uO,3,0,"button",18)(10,dO,3,0,"button",19),u(),c(11,"td",13),T(12,fO,2,1,"a",20)(13,pO,1,0),u(),c(14,"td",13),f(15),u(),c(16,"td",13),f(17),u(),c(18,"td",13),f(19),u(),c(20,"td",13),f(21),u(),c(22,"td",13),f(23),Qt(24,"date"),u(),c(25,"td",21)(26,"i",22),b("click",function(){let o=S(i).$implicit,r=y();return M(r.edit(o.id))}),u(),c(27,"i",23),b("click",function(){let o=S(i).$implicit,r=y();return M(r.delete(o.id))}),u()()()}if(t&2){let i=e.$implicit,n=y();h(2),R("ngModel",i.checked),h(2),I(i.value.avatar?4:-1),h(),I(i.value.avatar?-1:5),h(2),J(i.value.name||"-"),h(2),I(n.isReady(i)?9:10),h(3),I(i.value.website?12:13),h(3),J(i.value.address||"-"),h(2),J(i.value.city||"-"),h(2),J(i.value.state||"-"),h(2),J(i.value.country||"-"),h(2),J(Rl(24,11,i.createdOn,"longDate"))}}var Uc=class t{constructor(e,i,n,o,r){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o;this.uS=r;this.prepare()}contacts=[];prepare=()=>E(this,null,function*(){yield this.crmS.populateContacts(),this.contacts=Array.from(this.crmS.contacts.values()),this.contacts.forEach(e=>e.checked=!1)});isReady=e=>(e?.value?.status||"").substring(0,5).toLowerCase()==="ready";edit=e=>{this.crmS.currentContact=e,this.nS.sCP("crm-contact")};delete=e=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Contact"))&&(yield this.dbS.delete({id:e}).catch(console.error))}catch(i){console.error(i)}finally{yield this.prepare()}});deleting=!1;deleteSelected=()=>E(this,null,function*(){this.deleting=!0;try{if(yield this.uS.confirm("Are you sure?","Delete Contact"))for(let e of this.contacts)e.checked&&(yield this.dbS.delete({id:e.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.prepare(),this.deleting=!1}});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye),w(we),w(un))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-contact-list"]],standalone:!0,features:[j],decls:42,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-auto",3,"click","disabled"],[1,"fas","fa-trash","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col",2,"height","calc(100vh - 160px)","overflow","auto"],[1,"table","table-borderless"],[1,"sticky-top"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"align-middle"],["type","checkbox",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"align-middle","text-center"],["alt","Avatar",1,"rounded-circle",2,"height","32px",3,"src"],[1,"d-flex","rounded-circle","bg-info","align-middle","text-center","text-white","p-0","mx-auto","my-0","fs-4",2,"width","32px","height","32px"],["type","button",1,"btn","btn-sm","btn-info"],["type","button",1,"btn","btn-sm","btn-warning"],["href","contact.value.website","target","_blank"],[1,"text-center","align-middle","text-nowrap"],[1,"fas","fa-pen-to-square","ptr","me-2",3,"click"],[1,"fas","fa-trash","text-danger","ptr","me-2",3,"click"],[1,"fas","fa-star","m-auto"],[1,"fas","fa-check","me-2"],[1,"fas","fa-sync","fa-spin","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Contact List"),u(),c(5,"button",3),b("click",function(){return n.deleteSelected()}),v(6,"i",4),f(7," Delete Selected "),u(),c(8,"button",5),b("click",function(){return n.nS.sCP("crm-contact")}),f(9,"New Contact"),u()()(),c(10,"div",6),v(11,"hr"),u(),c(12,"div",7)(13,"div",8)(14,"table",9)(15,"thead",10)(16,"tr")(17,"th"),f(18,"\xA0"),u(),c(19,"th",11),f(20,"Avatar"),u(),c(21,"th"),f(22,"Name"),u(),c(23,"th",11),f(24,"Status"),u(),c(25,"th"),f(26,"Website"),u(),c(27,"th"),f(28,"Address"),u(),c(29,"th"),f(30,"City"),u(),c(31,"th"),f(32,"State"),u(),c(33,"th"),f(34,"Country"),u(),c(35,"th"),f(36,"Added"),u(),c(37,"th",11),v(38,"i",12),u()()(),c(39,"tbody"),te(40,hO,28,14,"tr",null,aO),u()()()()()),i&2&&(h(5),A("disabled",n.deleting),h(35),ne(n.contacts))},dependencies:[Ce,wn,Pe,Ne,Yl]})};function mO(t,e){t&1&&(v(0,"i",17),f(1," Saving, please wait... "))}function gO(t,e){t&1&&(v(0,"i",18),f(1," Save "))}function _O(t,e){if(t&1){let i=U();c(0,"div",4)(1,"div",2)(2,"div",5)(3,"div",6)(4,"label",7),f(5,"Domain"),u(),c(6,"input",8),k("ngModelChange",function(o){S(i);let r=y();return F(r.mS.mailgunSettings.domain,o)||(r.mS.mailgunSettings.domain=o),M(o)}),u(),c(7,"label",9),f(8,"API Key"),u(),c(9,"input",10),k("ngModelChange",function(o){S(i);let r=y();return F(r.mS.mailgunSettings.apiKey,o)||(r.mS.mailgunSettings.apiKey=o),M(o)}),u(),c(10,"label",11),f(11,"Region"),u(),c(12,"select",12),k("ngModelChange",function(o){S(i);let r=y();return F(r.mS.mailgunSettings.region,o)||(r.mS.mailgunSettings.region=o),M(o)}),c(13,"option",13),f(14,"US"),u(),c(15,"option",14),f(16,"EU"),u()()(),c(17,"div",15)(18,"button",16),b("click",function(){S(i);let o=y();return M(o.save())}),T(19,mO,2,0)(20,gO,2,0),u()()()()()}if(t&2){let i=y();h(6),R("ngModel",i.mS.mailgunSettings.domain),h(3),R("ngModel",i.mS.mailgunSettings.apiKey),h(3),R("ngModel",i.mS.mailgunSettings.region),h(7),I(i.saving?19:20)}}var Hc=class t{constructor(e){this.mS=e}ngOnInit(){this.mS.populateMailgunSettings()}saving=!1;save=()=>E(this,null,function*(){this.saving=!0,yield this.mS.saveMailgunSettings(),this.saving=!1});static \u0275fac=function(i){return new(i||t)(w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-mailgun"]],standalone:!0,features:[j],decls:15,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-body"],["for","domain",1,"form-label"],["type","text","name","domain","id","domain",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","apikey",1,"form-label"],["type","password","name","apikey","id","apikey",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","region",1,"form-label"],["id","region","name","region",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","us"],["value","eu"],[1,"card-footer","border-top","d-flex"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"fas","fa-floppy-disk","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Mailgun Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),f(9," While sending email messages via LuckyNode plugin you will be needing a Mailgun account. "),v(10,"br"),f(11," We are enforcing this to ensure you don't have issues with email deliverability. "),v(12,"br"),f(13," In the future we are planning to support more email relay service providers, but for now, please bear with us. "),u()(),T(14,_O,21,4,"div",4),u()),i&2&&(h(14),I(n.mS.mailgunSettings?14:-1))},dependencies:[Ce,nn,on,it,It,Pe,Ne]})};var Gp=class{constructor(){this.subject=new Gn(1),this.subscriptions=new je}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){let o=n[e].currentValue;o!=null&&i(o)}}))}has(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){let o=n[e].currentValue;i(o)}}))}notFirst(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){let o=n[e].currentValue;i(o)}}))}notFirstAndEmpty(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){let o=n[e].currentValue;o!=null&&i(o)}}))}},ay=new G("NGX_ECHARTS_CONFIG"),ly=(()=>{let e=class e{constructor(n,o,r){this.el=o,this.ngZone=r,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new re,this.optionsError=new re,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Gn(1),this.resize$=new he,this.changeFilter=new Gp,this.resizeObFired=!1,this.echarts=n.echarts,this.theme=n.theme||null}ngOnChanges(n){this.changeFilter.doFilter(n)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(Tu(100,xn,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(n=>{for(let o of n)o.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",n=>this.onOptionsChange(n)),this.changeFilter.notFirstAndEmpty("merge",n=>this.setOption(n)),this.changeFilter.has("loading",n=>this.toggleLoading(!!n)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(n){this.chart?n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(o=>n?o.showLoading(this.loadingType,this.loadingOpts):o.hideLoading())}setOption(n,o){if(this.chart)try{this.chart.setOption(n,o)}catch(r){console.error(r),this.optionsError.emit(r)}}refreshChart(){return E(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let n=this.el.nativeElement;if(window&&window.getComputedStyle){let o=window.getComputedStyle(n,null).getPropertyValue("height");(!o||o==="0px")&&(!n.style.height||n.style.height==="0px")&&(n.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:r})=>r(n,this.theme,this.initOpts)))}initChart(){return E(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(n){return E(this,null,function*(){n&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(n){return this.chartInit.pipe(mi(o=>new ee(r=>(o.on(n,s=>this.ngZone.run(()=>r.next(s))),()=>{this.chart&&(this.chart.isDisposed()||o.off(n))}))))}};e.\u0275fac=function(o){return new(o||e)(w(ay),w(ye),w(ge))},e.\u0275dir=ae({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[yt]});let t=e;return t})(),zc=(t={})=>({provide:ay,useFactory:()=>Se(Y({},t),{echarts:()=>import("./chunk-25X2RZSW.js")})});var cy=(t,e)=>e.id;function vO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit;A("value",i.id),h(),Tt("",i.value.name," (",i.value.subject,")")}}function yO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit;A("value",i.id),h(),Tt("",i.name," (",i.native,")")}}function bO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit,n=y();A("value",i),h(),J(n.pad0(i.toString()))}}function CO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit,n=y();A("value",i),h(),J(n.pad0(i.toString()))}}var $c=class t{constructor(e,i,n){this.crmS=e;this.gS=i;this.dbS=n}chartOption={xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line"}]};campaign={id:"",type:"campaign",value:{name:"",emailTemplate:"",country:"0",send:{atH:"0",atM:"0",atTZ:"targetCountry",onMon:!0,onTue:!0,onWed:!0,onThu:!0,onFri:!0,onSat:!1,onSun:!1,limitPerDay:10,limitPerType:"globally"},futureContacts:"yes",status:"pending"}};labelWidth=150;hours=[...new Array(24).keys()];minutes=[...new Array(60).keys()];pad0=e=>`0${e}`.slice(-2);ngOnInit(){return E(this,null,function*(){yield this.crmS.populateCampaigns(),yield this.crmS.populateEmailTemplates(),yield this.gS.populateCountries(),this.crmS.currentCampaign!==""&&this.crmS.campaigns.has(this.crmS.currentCampaign)&&(this.campaign=Y({},this.crmS.campaigns.get(this.crmS.currentCampaign)),this.campaign.value.country===0&&(this.campaign.value.country="0"))})}ngOnDestroy(){this.crmS.currentCampaign=""}areWeReadyToSave=()=>{for(let e of Object.keys(this.campaign.value))if(!this.campaign.value[e])return!1;return!0};saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.campaign.id)yield this.dbS.update(this.campaign);else{let e=yield this.dbS.insert(this.campaign);e.id&&(this.campaign.id=e.id)}yield this.crmS.populateCampaigns(),this.saving=!1});checkingNewContacts=!1;checkNewContacts=()=>E(this,null,function*(){this.checkingNewContacts=!0,yield this.save(),yield this.dbS.insertTask({type:"initiateCampaign",data:this.campaign.id}),this.checkingNewContacts=!1});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign"]],standalone:!0,features:[nt([zc()]),j],decls:90,vars:33,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"fas","fa-rotate","me-2"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"input-group","input-group-sm","mb-1"],[1,"input-group-text"],["type","text","name","cName","id","cName",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","cTemplate","name","cTemplate",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],[3,"value"],["id","cCountry","name","cCountry",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModelChange","ngModel"],["id","atH","name","atH",1,"form-select","form-select-sm",2,"max-width","100px",3,"ngModelChange","ngModel"],["id","atM","name","atM",1,"form-select","form-select-sm",2,"max-width","100px",3,"ngModelChange","ngModel"],["id","atTZ","name","atTZ",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","targetCountry"],["value","server"],["id","fc","name","fc",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","yes"],["value","no"],["type","number","name","lpd","id","lpd","min","1",3,"ngModelChange","ngModel"],["value","globally"],["value","country"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Campaign"),u(),c(5,"button",3),b("click",function(){return n.save()}),v(6,"i",4),f(7," Save "),u(),c(8,"button",5),b("click",function(){return n.checkNewContacts()}),v(9,"i",6),f(10," Check for New Contacts "),u()()(),c(11,"div",7),v(12,"hr"),u(),c(13,"div",8)(14,"div",9)(15,"div",10)(16,"span",11),f(17,"Name"),u(),c(18,"input",12),k("ngModelChange",function(r){return F(n.campaign.value.name,r)||(n.campaign.value.name=r),r}),u()(),c(19,"div",10)(20,"span",11),f(21,"Email Template"),u(),c(22,"select",13),k("ngModelChange",function(r){return F(n.campaign.value.emailTemplate,r)||(n.campaign.value.emailTemplate=r),r}),te(23,vO,2,3,"option",14,cy),u()(),c(25,"div",10)(26,"span",11),f(27,"Send to all contacts in"),u(),c(28,"select",15),k("ngModelChange",function(r){return F(n.campaign.value.country,r)||(n.campaign.value.country=r),r}),c(29,"option",14),f(30,"any country"),u(),te(31,yO,2,3,"option",14,cy),u()(),c(33,"div",10)(34,"span",11),f(35,"Sending Days"),u(),c(36,"div",11),f(37," Mon:\xA0"),c(38,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onMon,r)||(n.campaign.value.send.onMon=r),r}),u()(),c(39,"div",11),f(40," Tue:\xA0"),c(41,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onTue,r)||(n.campaign.value.send.onTue=r),r}),u()(),c(42,"div",11),f(43," Wed:\xA0"),c(44,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onWed,r)||(n.campaign.value.send.onWed=r),r}),u()(),c(45,"div",11),f(46," Thu:\xA0"),c(47,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onThu,r)||(n.campaign.value.send.onThu=r),r}),u()(),c(48,"div",11),f(49," Fri:\xA0"),c(50,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onFri,r)||(n.campaign.value.send.onFri=r),r}),u()(),c(51,"div",11),f(52," Sat:\xA0"),c(53,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onSat,r)||(n.campaign.value.send.onSat=r),r}),u()(),c(54,"div",11),f(55," Sun:\xA0"),c(56,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onSun,r)||(n.campaign.value.send.onSun=r),r}),u()()(),c(57,"div",10)(58,"span",11),f(59,"Sending Time"),u(),c(60,"select",17),k("ngModelChange",function(r){return F(n.campaign.value.send.atH,r)||(n.campaign.value.send.atH=r),r}),te(61,bO,2,2,"option",14,fs),u(),c(63,"select",18),k("ngModelChange",function(r){return F(n.campaign.value.send.atM,r)||(n.campaign.value.send.atM=r),r}),te(64,CO,2,2,"option",14,fs),u(),c(66,"span",11),f(67,"of"),u(),c(68,"select",19),k("ngModelChange",function(r){return F(n.campaign.value.send.atTZ,r)||(n.campaign.value.send.atTZ=r),r}),c(69,"option",20),f(70,"target country time"),u(),c(71,"option",21),f(72,"server time"),u()()(),c(73,"div",10)(74,"span",11),f(75,"Future Contacts"),u(),c(76,"select",22),k("ngModelChange",function(r){return F(n.campaign.value.futureContacts,r)||(n.campaign.value.futureContacts=r),r}),c(77,"option",23),f(78,"Include contacts created in the future"),u(),c(79,"option",24),f(80,"Don't include contacts in the future"),u()()(),c(81,"div",10)(82,"span",11),f(83,"Limit Sending"),u(),c(84,"input",25),k("ngModelChange",function(r){return F(n.campaign.value.send.limitPerDay,r)||(n.campaign.value.send.limitPerDay=r),r}),u(),c(85,"select",22),k("ngModelChange",function(r){return F(n.campaign.value.send.limitPerType,r)||(n.campaign.value.send.limitPerType=r),r}),c(86,"option",26),f(87,"per day Globally"),u(),c(88,"option",27),f(89,"per day per Country"),u()()()()()()),i&2&&(h(5),A("disabled",!n.areWeReadyToSave()||n.saving),h(3),A("disabled",n.checkingNewContacts),h(8),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.emailTemplate),h(),ne(n.crmS.emailTemplates.values()),h(3),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.country),h(),A("value",0),h(2),ne(n.gS.countries.values()),h(3),be("width",n.labelWidth,"px"),h(4),R("ngModel",n.campaign.value.send.onMon),h(3),R("ngModel",n.campaign.value.send.onTue),h(3),R("ngModel",n.campaign.value.send.onWed),h(3),R("ngModel",n.campaign.value.send.onThu),h(3),R("ngModel",n.campaign.value.send.onFri),h(3),R("ngModel",n.campaign.value.send.onSat),h(3),R("ngModel",n.campaign.value.send.onSun),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.send.atH),h(),ne(n.hours),h(2),R("ngModel",n.campaign.value.send.atM),h(),ne(n.minutes),h(4),R("ngModel",n.campaign.value.send.atTZ),h(6),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.futureContacts),h(6),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.send.limitPerDay),h(),R("ngModel",n.campaign.value.send.limitPerType))},dependencies:[Ce,nn,on,it,bo,wn,It,Pe,pp,Ne]})};var DO=(t,e)=>e.id;function wO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),u(),c(7,"td"),f(8),u(),c(9,"td"),f(10),u(),c(11,"td",9)(12,"i",11),b("click",function(){let o=S(i).$implicit,r=y();return M(r.edit(o.id))}),u()()()}if(t&2){let i,n=e.$implicit,o=y();h(2),J(n.value.name||"No Name Given"),h(2),J(n.value.subject||"No Subject Given"),h(2),B(" ",n.value.attachments.length," "),h(2),J(((i=o.crmS.contacts.get(n.value.contact))==null||i.value==null?null:i.value.name)||"N/A"),h(2),B(" ",n.value.testEmailAddress," ")}}var Gc=class t{constructor(e,i){this.nS=e;this.crmS=i}ngOnInit(){this.crmS.populateEmailTemplates(),this.crmS.populateContacts()}edit=e=>{this.crmS.currentEmailTemplate=e,this.nS.sCP("crm-email-template")};static \u0275fac=function(i){return new(i||t)(w(we),w(Be))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-email-template-list"]],standalone:!0,features:[j],decls:29,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"],[1,"sticky-top","border"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"fas","fa-pen-to-square","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Email Template List"),u(),c(5,"button",3),b("click",function(){return n.nS.sCP("crm-email-template")}),f(6,"New Template"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead",8)(13,"tr")(14,"th"),f(15,"Name"),u(),c(16,"th"),f(17,"Subject"),u(),c(18,"th"),f(19,"Attachments"),u(),c(20,"th"),f(21,"Testing Contact"),u(),c(22,"th"),f(23,"Testing Email Address"),u(),c(24,"th",9),v(25,"i",10),u()()(),c(26,"tbody"),te(27,wO,13,5,"tr",null,DO),u()()()()()),i&2&&(h(27),ne(n.crmS.emailTemplates.values()))}})};var Wc={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},uy=new G("config",{providedIn:"root",factory:()=>({modules:Wc})});var EO=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],SO=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function MO(t,e){t&1&&v(0,"div",0)}function TO(t,e){t&1&&v(0,"div",0)}var Yc=(t,e)=>t||e||"html",IO=()=>new ee(t=>{let e=requestAnimationFrame(()=>{t.next(),t.complete()});return()=>cancelAnimationFrame(e)}),xO=(()=>{let e=class e{constructor(n,o){this.config=o,this.quill$=_u(()=>E(this,null,function*(){if(!this.Quill){let r=this.document.addEventListener;this.document.addEventListener=this.document.__zone_symbol__addEventListener||this.document.addEventListener;let s=yield import("./chunk-QH7V45P4.js");this.document.addEventListener=r,this.Quill=s.default?.default??s.default??s}return this.config.customOptions?.forEach(r=>{let s=this.Quill.import(r.import);s.whitelist=r.whitelist,this.Quill.register(s,!0,this.config.suppressGlobalRegisterWarning)}),yield this.registerCustomModules(this.Quill,this.config.customModules,this.config.suppressGlobalRegisterWarning)})).pipe(Eu({bufferSize:1,refCount:!0})),this.document=n.get(Fe),this.config||(this.config={modules:Wc})}getQuill(){return this.quill$}registerCustomModules(n,o,r){return E(this,null,function*(){if(Array.isArray(o))for(let{implementation:s,path:a}of o)gu(s)&&(s=yield On(s)),n.register(a,s,r);return n})}};e.\u0275fac=function(o){return new(o||e)(H(Ue),H(uy,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),OO=(()=>{let e=class e{constructor(){this.format=De(void 0),this.theme=De(void 0),this.modules=De(void 0),this.debug=De(!1),this.readOnly=De(!1),this.placeholder=De(void 0),this.maxLength=De(void 0),this.minLength=De(void 0),this.required=De(!1),this.formats=De(void 0),this.customToolbarPosition=De("top"),this.sanitize=De(void 0),this.beforeRender=De(void 0),this.styles=De(null),this.registry=De(void 0),this.bounds=De(void 0),this.customOptions=De([]),this.customModules=De([]),this.trackChanges=De(void 0),this.classes=De(void 0),this.trimOnValidation=De(!1),this.linkPlaceholder=De(void 0),this.compareValues=De(!1),this.filterNull=De(!1),this.debounceTime=De(void 0),this.defaultEmptyValue=De(null),this.onEditorCreated=new re,this.onEditorChanged=new re,this.onContentChanged=new re,this.onSelectionChanged=new re,this.onFocus=new re,this.onBlur=new re,this.onNativeFocus=new re,this.onNativeBlur=new re,this.disabled=!1,this.toolbarPosition=Si("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=C(ye),this.document=C(Fe),this.cd=C(Jt),this.domSanitizer=C(sp),this.platformId=C(Gt),this.renderer=C(Wt),this.zone=C(ge),this.service=C(xO),this.destroyRef=C(ei),this.valueGetter=De(n=>{let o=n.getSemanticHTML();this.isEmptyValue(o)&&(o=this.defaultEmptyValue());let r=o,s=Yc(this.format(),this.service.config.format);if(s==="text")r=n.getText();else if(s==="object")r=n.getContents();else if(s==="json")try{r=JSON.stringify(n.getContents())}catch{r=n.getText()}return r}),this.valueSetter=De((n,o)=>{let r=Yc(this.format(),this.service.config.format);if(r==="html")return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(o=this.domSanitizer.sanitize(bn.HTML,o)),n.clipboard.convert({html:o});if(r==="json")try{return JSON.parse(o)}catch{return[{insert:o}]}return o}),this.selectionChangeHandler=(n,o,r)=>{let s=this.trackChanges()||this.service.config.trackChanges,a=!n&&!!this.onModelTouched&&(r==="user"||s&&s==="all");!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!a||this.zone.run(()=>{n===null?this.onBlur.emit({editor:this.quillEditor,source:r}):o===null&&this.onFocus.emit({editor:this.quillEditor,source:r}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:o,range:n,source:r}),a&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(n,o,r)=>{let s=this.quillEditor.getText(),a=this.quillEditor.getContents(),l=this.quillEditor.getSemanticHTML();this.isEmptyValue(l)&&(l=this.defaultEmptyValue());let d=this.trackChanges()||this.service.config.trackChanges,p=(r==="user"||d&&d==="all")&&!!this.onModelChange;!this.onContentChanged.observed&&!p||this.zone.run(()=>{if(p){let m=this.valueGetter();this.onModelChange(m(this.quillEditor))}this.onContentChanged.emit({content:a,delta:n,editor:this.quillEditor,html:l,oldDelta:o,source:r,text:s}),this.cd.markForCheck()})},this.editorChangeHandler=(n,o,r,s)=>{if(this.onEditorChanged.observed)if(n==="text-change"){let a=this.quillEditor.getText(),l=this.quillEditor.getContents(),d=this.quillEditor.getSemanticHTML();this.isEmptyValue(d)&&(d=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:l,delta:o,editor:this.quillEditor,event:n,html:d,oldDelta:r,source:s,text:a}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:n,oldRange:r,range:o,source:s}),this.cd.markForCheck()})}}static normalizeClassNames(n){return n.trim().split(" ").reduce((r,s)=>{let a=s.trim();return a&&r.push(a),r},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){vr(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(gt(n=>{let o=[this.service.registerCustomModules(n,this.customModules())],r=this.beforeRender()??this.service.config.beforeRender;return r&&o.push(r()),Promise.all(o).then(()=>n)})).subscribe(n=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");let o=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),r=Object.assign({},this.modules()||this.service.config.modules);o?r.toolbar=o:r.toolbar===void 0&&(r.toolbar=Wc.toolbar);let s=this.placeholder()!==void 0?this.placeholder():this.service.config.placeholder;s===void 0&&(s="Insert text here ...");let a=this.styles();a&&Object.keys(a).forEach(_=>{this.renderer.setStyle(this.editorElem,_,a[_])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(_=>{let g=n.import(_.import);g.whitelist=_.whitelist,n.register(g,!0)});let l=this.bounds()&&this.bounds()==="self"?this.editorElem:this.bounds();l||(l=this.service.config.bounds?this.service.config.bounds:this.document.body);let d=this.debug();!d&&d!==!1&&this.service.config.debug&&(d=this.service.config.debug);let p=this.readOnly();!p&&this.readOnly()!==!1&&(p=this.service.config.readOnly!==void 0?this.service.config.readOnly:!1);let m=this.formats();if(!m&&m===void 0&&(m=this.service.config.formats?[...this.service.config.formats]:this.service.config.formats===null?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new n(this.editorElem,{bounds:l,debug:d,formats:m,modules:r,placeholder:s,readOnly:p,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed){xe(this.quillEditor.scroll.domNode,"blur").pipe(ai(this.destroyRef)).subscribe(()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"}));let _=this.quillEditor.getModule("toolbar");_.container&&xe(_.container,"mousedown").pipe(ai(this.destroyRef)).subscribe(g=>g.preventDefault())}if(this.onNativeFocus.observed&&xe(this.quillEditor.scroll.domNode,"focus").pipe(ai(this.destroyRef)).subscribe(()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){let g=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");g?.dataset&&(g.dataset.link=this.linkPlaceholder())}}),this.content){if(Yc(this.format(),this.service.config.format)==="text")this.quillEditor.setText(this.content,"silent");else{let x=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(x,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),!(!this.onEditorCreated.observed&&!this.onValidatorChanged)&&IO().pipe(ai(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(n){if(this.quillEditor){if(n.readOnly&&this.quillEditor.enable(!n.readOnly.currentValue),n.placeholder&&(this.quillEditor.root.dataset.placeholder=n.placeholder.currentValue),n.styles){let o=n.styles.currentValue,r=n.styles.previousValue;r&&Object.keys(r).forEach(s=>{this.renderer.removeStyle(this.editorElem,s)}),o&&Object.keys(o).forEach(s=>{this.renderer.setStyle(this.editorElem,s,this.styles()[s])})}if(n.classes){let o=n.classes.currentValue,r=n.classes.previousValue;r&&this.removeClasses(r),o&&this.addClasses(o)}n.debounceTime&&this.addQuillEventListeners()}}addClasses(n){e.normalizeClassNames(n).forEach(o=>{this.renderer.addClass(this.editorElem,o)})}removeClasses(n){e.normalizeClassNames(n).forEach(o=>{this.renderer.removeClass(this.editorElem,o)})}writeValue(n){if(this.filterNull()&&n===null||(this.content=n,!this.quillEditor))return;let o=Yc(this.format(),this.service.config.format),s=this.valueSetter()(this.quillEditor,n);if(this.compareValues()){let a=this.quillEditor.getContents();if(JSON.stringify(a)===JSON.stringify(s))return}if(n){o==="text"?this.quillEditor.setText(n):this.quillEditor.setContents(s);return}this.quillEditor.setText("")}setDisabledState(n=this.disabled){this.disabled=n,this.quillEditor&&(n?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}registerOnValidatorChange(n){this.onValidatorChanged=n}validate(){if(!this.quillEditor)return null;let n={},o=!0,r=this.quillEditor.getText(),s=this.trimOnValidation()?r.trim().length:r.length===1&&r.trim().length===0?0:r.length-1,a=this.quillEditor.getContents().ops,l=!!a&&a.length===1&&[`16 `,""].includes(a[0].insert?.toString());return this.minLength()&&s&&s<this.minLength()&&(n.minLengthError={given:s,minLength:this.minLength()},o=!1),this.maxLength()&&s>this.maxLength()&&(n.maxLengthError={given:s,maxLength:this.maxLength()},o=!1),this.required()&&!s&&l&&(n.requiredError={empty:!0},o=!1),o?null:n}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new je,this.subscription.add(xe(this.quillEditor,"selection-change").subscribe(([r,s,a])=>{this.selectionChangeHandler(r,s,a)}));let n=xe(this.quillEditor,"text-change"),o=xe(this.quillEditor,"editor-change");typeof this.debounceTime()=="number"&&(n=n.pipe(Ji(this.debounceTime())),o=o.pipe(Ji(this.debounceTime()))),this.subscription.add(n.subscribe(([r,s,a])=>{this.textChangeHandler(r,s,a)})),this.subscription.add(o.subscribe(([r,s,a,l])=>{this.editorChangeHandler(r,s,a,l)}))})}dispose(){this.subscription!==null&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(n){return n==="<p></p>"||n==="<div></div>"||n==="<p><br></p>"||n==="<div><br></div>"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,inputs:{format:[1,"format"],theme:[1,"theme"],modules:[1,"modules"],debug:[1,"debug"],readOnly:[1,"readOnly"],placeholder:[1,"placeholder"],maxLength:[1,"maxLength"],minLength:[1,"minLength"],required:[1,"required"],formats:[1,"formats"],customToolbarPosition:[1,"customToolbarPosition"],sanitize:[1,"sanitize"],beforeRender:[1,"beforeRender"],styles:[1,"styles"],registry:[1,"registry"],bounds:[1,"bounds"],customOptions:[1,"customOptions"],customModules:[1,"customModules"],trackChanges:[1,"trackChanges"],classes:[1,"classes"],trimOnValidation:[1,"trimOnValidation"],linkPlaceholder:[1,"linkPlaceholder"],compareValues:[1,"compareValues"],filterNull:[1,"filterNull"],debounceTime:[1,"debounceTime"],defaultEmptyValue:[1,"defaultEmptyValue"],valueGetter:[1,"valueGetter"],valueSetter:[1,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[yt]});let t=e;return t})(),dy=(()=>{let e=class e extends OO{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275cmp=V({type:e,selectors:[["quill-editor"]],standalone:!0,features:[nt([{multi:!0,provide:Hn,useExisting:at(()=>e)},{multi:!0,provide:wr,useExisting:at(()=>e)}]),tt,j],ngContentSelectors:SO,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(o,r){o&1&&(Al(EO),T(0,MO,1,0,"div",0),cr(1),cr(2,1),cr(3,2),T(4,TO,1,0,"div",0)),o&2&&(I(r.toolbarPosition()!=="top"?0:-1),h(4),I(r.toolbarPosition()==="top"?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]});let t=e;return t})();var NO=["cInstance"],AO=["instance"];function RO(t,e){return this.attachment}var kO=()=>({height:"calc(100vh - 200px)"});function FO(t,e){t&1&&v(0,"i",6)}function PO(t,e){t&1&&v(0,"i",7)}function LO(t,e){t&1&&v(0,"i",9)}function VO(t,e){t&1&&v(0,"i",7)}function BO(t,e){t&1&&v(0,"i",40)}function jO(t,e){t&1&&v(0,"i",41)}function UO(t,e){t&1&&v(0,"i",42)}function HO(t,e){if(t&1){let i=U();c(0,"div",39)(1,"span"),T(2,BO,1,0,"i",40)(3,jO,1,0,"i",41)(4,UO,1,0,"i",42),f(5),u(),c(6,"i",43),b("click",function(){S(i);let o=y().$index,r=y();return M(r.removeAttachment(o))}),u()()}if(t&2){let i,n=e;h(2),I(n.mime_type==="application/pdf"?2:n.media_type==="image"?3:4),h(3),B(" ",(i=(i=n.title==null?null:n.title.rendered)!==null&&i!==void 0?i:n.guid.rendered)!==null&&i!==void 0?i:"No ID"," ")}}function zO(t,e){if(t&1&&T(0,HO,7,2,"div",39),t&2){let i,n=e.$implicit,o=y();I((i=o.attachedMedia.get(n))?0:-1,i)}}var qc=class t{constructor(e,i,n,o,r,s){this.nS=e;this.dbS=i;this.mS=n;this.crmS=o;this.uS=r;this.aS=s}labelWidth="114";template={id:"",type:"email-template",value:{name:"",from:{name:"",address:""},replyTo:{name:"",address:""},subject:"",content:"",attachments:[],contact:"",testEmailAddress:""}};attachment;quill;modules={toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"super"},{script:"sub"}],[{header:"1"},{header:"2"},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["direction",{align:[]}],["link","image","video","formula"],["clean"]]};attachedMedia=new Map;created(e){this.quill=e}insertAtCaret=e=>{let i=this.quill.getSelection(!0);this.quill.insertText(i,e)};insertVariable=e=>{e="{{"+e+"}}",this.insertAtCaret(e)};saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.template.id)yield this.dbS.update(this.template);else{let e=yield this.dbS.insert(this.template);e.id&&(this.template.id=e.id)}yield this.crmS.populateEmailTemplates(),this.saving=!1});testing=!1;test=()=>E(this,null,function*(){if(this.testing=!0,yield this.save(),!this.template.id){this.uS.alert("Please save template before testing","Unsaved Template","OK"),this.testing=!1;return}if(!this.template.value.contact){this.uS.alert("You need to assign a contact to test the template.","Missing Contact Assignment","OK"),this.testing=!1;return}if(!this.template.value.testEmailAddress){this.uS.alert("You need to assign an email address as the test recipient.","Missing Contact Assignment","OK"),this.testing=!1;return}if(!this.aS.mailgunSettings?.domain||!this.aS.mailgunSettings?.apiKey||!this.aS.mailgunSettings?.region){(yield this.uS.confirm("In order to send email messages using LuckyNode plugin, you need to enter your Mailgun Account settings as a prerequisite.","Missing Mailgun Settings","Go to Mailgun Settings","Stay on this screen"))&&this.nS.sCP("maintenance-mailgun"),this.testing=!1;return}yield this.crmS.testEmailTemplate(this.template.id),this.testing=!1});ngOnInit(){return E(this,null,function*(){yield this.crmS.populateEmailTemplates(),yield this.crmS.populateContacts(),yield this.mS.populateMediaList(),this.crmS.currentEmailTemplate!==""&&this.crmS.emailTemplates.has(this.crmS.currentEmailTemplate)&&(this.template=Y({},this.crmS.emailTemplates.get(this.crmS.currentEmailTemplate)),console.log(this.template),this.populateAttachedMedia()),yield this.aS.populateMailgunSettings();let e=this.template.value.contact;this.template.value.contact="0",setTimeout(()=>{this.template.value.contact=e},0)})}ngOnDestroy(){this.crmS.currentEmailTemplate=""}populateAttachedMedia=()=>{for(let e of this.template.value.attachments)for(let i of this.mS.mediaList||[])i.id===e&&this.attachedMedia.set(e,i)};cFocus$=new he;cClick$=new he;cInstance;searchContact=e=>{let i=e.pipe(Ji(200),Vo()),n=this.cClick$.pipe(_t(()=>!this.cInstance.isPopupOpen())),o=this.cFocus$;return zr(i,o,n).pipe(Me(r=>r===""?[...this.crmS.contacts.values()]:[...this.crmS.contacts.values()].filter(s=>s.value.name.toLowerCase().indexOf(r.toLowerCase())>-1).slice(0,10)))};formatContact=e=>typeof e=="object"?(e?.value||{name:""}).name:this.crmS.contacts.has(e)?this.crmS.contacts.get(e)?.value?.name||"Contact without name":"Contact Not found";selectContact=e=>{setTimeout(()=>{this.template.value.contact=e.item.id},0)};formatMedia=e=>decodeURI((e?.title||{rendered:""}).rendered);selectMedia=e=>{let i=!1;for(let n of this.template.value.attachments)n===e?.item?.id&&(i=!0);!i&&e?.item?.id&&(this.template.value.attachments.push(e.item.id),this.populateAttachedMedia()),setTimeout(()=>{this.attachment=null},100)};focus$=new he;click$=new he;instance;searchMedia=e=>{let i=e.pipe(Ji(200),Vo()),n=this.click$.pipe(_t(()=>!this.instance.isPopupOpen())),o=this.focus$;return zr(i,o,n).pipe(Me(r=>(r===""?this.mS.mediaList:(this.mS.mediaList||[]).filter(s=>s.title.rendered.toLowerCase().indexOf(r.toLowerCase())>-1)).slice(0,10)))};removeAttachment=e=>(this.template.value.attachments||[]).splice(e,1);delete=()=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Template"))&&this.template.id&&(yield this.dbS.delete({id:this.template.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.crmS.populateEmailTemplates(),this.nS.sCP("crm-email-template-list")}});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(Li),w(Be),w(un),w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-email-template"]],viewQuery:function(i,n){if(i&1&&(ur(NO,7),ur(AO,7)),i&2){let o;Kt(o=Zt())&&(n.cInstance=o.first),Kt(o=Zt())&&(n.instance=o.first)}},standalone:!0,features:[j],decls:96,vars:41,consts:[["cInstance","ngbTypeahead"],["instance","ngbTypeahead"],[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],[1,"fas","fa-sync","fa-spin","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"far","fa-eye","me-2"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-3","text-danger",3,"click"],[1,"fas","fa-trash","me-2"],[1,"row","mt-0"],[1,"row"],[1,"col-9"],["format","html","theme","snow",3,"ngModelChange","onEditorCreated","modules","styles","ngModel"],[1,"col-3"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],[1,"input-group","input-group-sm","mb-1"],["for","tName",1,"input-group-text"],["type","text","name","tName","id","tName",1,"form-control",3,"ngModelChange","ngModel"],["for","tSubject",1,"input-group-text"],["type","text","name","tSubject","id","tSubject",1,"form-control",3,"ngModelChange","ngModel"],["for","tFromName",1,"input-group-text"],["type","text","name","tFromName","id","tFromName",1,"form-control",3,"ngModelChange","ngModel"],["for","tFrom",1,"input-group-text"],["type","text","name","tFrom","id","tFrom",1,"form-control",3,"ngModelChange","ngModel"],["for","trt",1,"input-group-text"],["type","text","name","trt","id","trt",1,"form-control",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-sm","btn-outline-secondary","mb-1","me-1",3,"click"],[1,"mb-3"],["for","tContact",1,"form-label"],["id","tContact","name","tContact","type","text",1,"form-control","form-control-sm",3,"ngModelChange","selectItem","focus","click","ngModel","ngbTypeahead","inputFormatter","resultFormatter","selectOnExact","editable"],["for","tEmail",1,"form-label"],["type","email","name","tEmail","id","tEmail",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","tEmailHelp",1,"form-text"],["id","attachment","name","attachment","type","text",1,"form-control","form-control-sm",3,"ngModelChange","selectItem","focus","click","ngModel","ngbTypeahead","inputFormatter","resultFormatter","selectOnExact","editable"],[1,"d-flex","justify-content-between","p-2"],[1,"fa-solid","fa-file-pdf"],[1,"fa-solid","fa-file-image"],[1,"fa-solid","fa-file"],[1,"fas","fa-trash","ptr","text-danger",3,"click"]],template:function(i,n){if(i&1){let o=U();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"h5"),f(4,"Email Template"),u(),c(5,"button",5),b("click",function(){return S(o),M(n.save())}),T(6,FO,1,0,"i",6)(7,PO,1,0,"i",7),f(8," Save "),u(),c(9,"button",8),b("click",function(){return S(o),M(n.test())}),T(10,LO,1,0,"i",9)(11,VO,1,0,"i",7),f(12," Test "),u(),c(13,"button",10),b("click",function(){return S(o),M(n.delete())}),v(14,"i",11),f(15," Delete"),u()()(),c(16,"div",12),v(17,"hr"),u(),c(18,"div",13)(19,"div",14)(20,"quill-editor",15),k("ngModelChange",function(s){return S(o),F(n.template.value.content,s)||(n.template.value.content=s),M(s)}),b("onEditorCreated",function(s){return S(o),M(n.created(s))}),u()(),c(21,"div",16)(22,"div",17)(23,"h5",18),f(24,"Template"),u(),c(25,"div",19)(26,"div",20)(27,"label",21),f(28,"Name"),u(),c(29,"input",22),k("ngModelChange",function(s){return S(o),F(n.template.value.name,s)||(n.template.value.name=s),M(s)}),u()(),c(30,"div",20)(31,"label",23),f(32,"Subject:"),u(),c(33,"input",24),k("ngModelChange",function(s){return S(o),F(n.template.value.subject,s)||(n.template.value.subject=s),M(s)}),u()(),c(34,"div",20)(35,"label",25),f(36,"From Name:"),u(),c(37,"input",26),k("ngModelChange",function(s){return S(o),F(n.template.value.from.name,s)||(n.template.value.from.name=s),M(s)}),u()(),c(38,"div",20)(39,"label",27),f(40,"From:"),u(),c(41,"input",28),k("ngModelChange",function(s){return S(o),F(n.template.value.from.address,s)||(n.template.value.from.address=s),M(s)}),u()(),c(42,"div",20)(43,"label",29),f(44,"Reply To Name:"),u(),c(45,"input",30),k("ngModelChange",function(s){return S(o),F(n.template.value.replyTo.name,s)||(n.template.value.replyTo.name=s),M(s)}),u()(),c(46,"div",20)(47,"label",29),f(48,"Reply To Address:"),u(),c(49,"input",30),k("ngModelChange",function(s){return S(o),F(n.template.value.replyTo.address,s)||(n.template.value.replyTo.address=s),M(s)}),u()()()(),c(50,"div",17)(51,"h5",18),f(52,"Available Variables"),u(),c(53,"div",19)(54,"button",31),b("click",function(){return S(o),M(n.insertVariable("name"))}),f(55,"Name"),u(),c(56,"button",31),b("click",function(){return S(o),M(n.insertVariable("titleCaseName"))}),f(57,"Name (Title Case)"),u(),c(58,"button",31),b("click",function(){return S(o),M(n.insertVariable("type"))}),f(59,"Type"),u(),c(60,"button",31),b("click",function(){return S(o),M(n.insertVariable("titleCaseType"))}),f(61,"Type (Title Case)"),u(),c(62,"button",31),b("click",function(){return S(o),M(n.insertVariable("address"))}),f(63,"Address"),u(),c(64,"button",31),b("click",function(){return S(o),M(n.insertVariable("city"))}),f(65,"City"),u(),c(66,"button",31),b("click",function(){return S(o),M(n.insertVariable("state"))}),f(67,"State"),u(),c(68,"button",31),b("click",function(){return S(o),M(n.insertVariable("country"))}),f(69,"Country"),u(),c(70,"button",31),b("click",function(){return S(o),M(n.insertVariable("website"))}),f(71,"Website"),u()()(),c(72,"div",17)(73,"h5",18),f(74,"Testing"),u(),c(75,"div",19)(76,"div",32)(77,"label",33),f(78,"Select a Contact for Testing"),u(),c(79,"input",34,0),k("ngModelChange",function(s){return S(o),F(n.template.value.contact,s)||(n.template.value.contact=s),M(s)}),b("selectItem",function(s){return S(o),M(n.selectContact(s))})("focus",function(s){return S(o),M(n.cFocus$.next(s.target.value))})("click",function(s){return S(o),M(n.cClick$.next(s.target.value))}),u()(),c(81,"div",32)(82,"label",35),f(83,"Email Address for Testing"),u(),c(84,"input",36),k("ngModelChange",function(s){return S(o),F(n.template.value.testEmailAddress,s)||(n.template.value.testEmailAddress=s),M(s)}),u(),c(85,"div",37),f(86,"You can enter multiple email addresses separated by comma or semicolon."),u()()()(),c(87,"div",17)(88,"h5",18),f(89,"Attachments"),u(),c(90,"div",19)(91,"div",32)(92,"input",38,1),k("ngModelChange",function(s){return S(o),F(n.attachment,s)||(n.attachment=s),M(s)}),b("selectItem",function(s){return S(o),M(n.selectMedia(s))})("focus",function(s){return S(o),M(n.focus$.next(s.target.value))})("click",function(s){return S(o),M(n.click$.next(s.target.value))}),u(),te(94,zO,1,1,null,null,RO,!0),u()()()()()()}i&2&&(h(5),A("disabled",n.saving),h(),I(n.saving?-1:6),h(),I(n.saving?7:-1),h(2),A("disabled",n.testing),h(),I(n.testing?-1:10),h(),I(n.testing?11:-1),h(9),A("modules",n.modules)("styles",fr(40,kO)),R("ngModel",n.template.value.content),h(7),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.subject),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.from.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.from.address),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.replyTo.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.replyTo.address),h(30),R("ngModel",n.template.value.contact),A("ngbTypeahead",n.searchContact)("inputFormatter",n.formatContact)("resultFormatter",n.formatContact)("selectOnExact",!0)("editable",!1),h(5),R("ngModel",n.template.value.testEmailAddress),h(8),R("ngModel",n.attachment),A("ngbTypeahead",n.searchMedia)("inputFormatter",n.formatMedia)("resultFormatter",n.formatMedia)("selectOnExact",!0)("editable",!1),h(2),ne(n.template.value.attachments))},dependencies:[dy,Ce,it,Pe,Ne,Cc,sy],styles:["quill-editor[_ngcontent-%COMP%]{display:block}"]})};var Wp=(t,e)=>e.id;function $O(t,e){if(t&1&&(c(0,"h5"),f(1),u()),t&2){let i=y();h(),B("Contact Details: ",i.contact.value.name||"No Name Given","")}}function GO(t,e){t&1&&(c(0,"h5"),f(1,"New Contact"),u())}function WO(t,e){if(t&1){let i=U();c(0,"button",32),b("click",function(){S(i);let o=y();return M(o.browse())}),v(1,"i",33),f(2," Browse for Contact Information"),u()}}function YO(t,e){if(t&1&&(c(0,"span",14),v(1,"img",34),u(),c(2,"a",18),v(3,"i",19),u()),t&2){let i=y();h(),A("src",i.contact.value.avatar,Bn),h(),A("href",i.contact.value.avatar,Bn)}}function qO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",35)(2,"input",36),k("ngModelChange",function(o){let r=S(i).$index,s=y();return F(s.contact.value.emailAddresses[r],o)||(s.contact.value.emailAddresses[r]=o),M(o)}),u()(),c(3,"td",23)(4,"i",37),b("click",function(){let o=S(i).$index,r=y();return M(r.deleteEmail(o))}),u()()()}if(t&2){let i=e.$index,n=y();h(2),ni("name","email",i,""),ni("id","email",i,""),R("ngModel",n.contact.value.emailAddresses[i])}}function KO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",35)(2,"input",38),k("ngModelChange",function(o){let r=S(i).$index,s=y();return F(s.contact.value.phoneNumbers[r],o)||(s.contact.value.phoneNumbers[r]=o),M(o)}),u()(),c(3,"td",23)(4,"i",37),b("click",function(){let o=S(i).$index,r=y();return M(r.deletePhone(o))}),u()()()}if(t&2){let i=e.$index,n=y();h(2),ni("name","phone",i,""),ni("id","phone",i,""),R("ngModel",n.contact.value.phoneNumbers[i])}}function ZO(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),J(i.name)}}function QO(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),J(i.name)}}function JO(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),Tt("",i.name," (",i.native,")")}}function XO(t,e){if(t&1){let i=U();c(0,"div",13)(1,"span",14),f(2,"Google Maps Link"),u(),c(3,"input",39),k("ngModelChange",function(o){S(i);let r=y();return F(r.contact.value.googleValues.googleMapsUri,o)||(r.contact.value.googleValues.googleMapsUri=o),M(o)}),u(),c(4,"a",18),v(5,"i",19),u()()}if(t&2){let i=y();h(),be("width",i.labelWidth,"px"),h(2),R("ngModel",i.contact.value.googleValues.googleMapsUri),A("disabled",!0),h(),A("href",i.contact.value.googleValues.googleMapsUri,Bn)}}var Kc=class t{constructor(e,i,n,o,r){this.nS=e;this.dbS=i;this.crmS=n;this.uS=o;this.gS=r}ngOnInit(){this.prepare()}ngOnDestroy(){this.crmS.currentContact=""}prepare=()=>E(this,null,function*(){yield this.crmS.populateContacts(),this.crmS.currentContact!==""&&this.crmS.contacts.has(this.crmS.currentContact)&&(this.contact=Y({},this.crmS.contacts.get(this.crmS.currentContact))),this.contact.value.country&&(yield this.populateStates()),this.contact.value.state&&(yield this.populateCities())});contact={id:"",type:"contact",value:{name:"",emailAddresses:[],phoneNumbers:[],status:"Ready"}};labelWidth=200;addEmail=()=>{this.contact.value.emailAddresses.push("")};deleteEmail=e=>E(this,null,function*(){(yield this.uS.confirm("Are you sure?","Delete Email Address"))&&this.contact.value.emailAddresses.splice(e,1)});cities=new Map;states=new Map;populateStates=()=>E(this,null,function*(){this.states=yield this.gS.getStates(this.contact.value.country)});populateCities=()=>E(this,null,function*(){this.cities=yield this.gS.getCities(this.contact.value.country,this.contact.value.state)});addPhone=()=>{this.contact.value.phoneNumbers.push("")};deletePhone=e=>E(this,null,function*(){(yield this.uS.confirm("Are you sure?","Delete Phone Number"))&&this.contact.value.phoneNumbers.splice(e,1)});saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.contact.id)yield this.dbS.update(this.contact);else{let e=yield this.dbS.insert(this.contact);e.id&&(this.contact.id=e.id)}yield this.crmS.populateContacts(),this.saving=!1});delete=()=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Contact"))&&this.contact.id&&(yield this.dbS.delete({id:this.contact.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.crmS.populateContacts(),this.nS.sCP("crm-contact-list")}});isReady=()=>(this.contact.value.status||"").substring(0,5).toLowerCase()==="ready";canBrowse=()=>this.isReady()&&!!this.contact.value.website&&!!this.contact.id&&!this.initiatingBrowse;initiatingBrowse=!1;browse=()=>E(this,null,function*(){this.initiatingBrowse=!0,yield this.dbS.insertTask({type:"browseContact",data:this.contact.id}),yield this.prepare(),this.initiatingBrowse=!1});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(Be),w(un),w(xt))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-contact"]],standalone:!0,features:[j],decls:95,vars:34,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],[1,"ms-auto"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-3","text-danger",3,"click"],[1,"fas","fa-trash","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],["type","button",1,"btn","btn-sm","btn-outline-success","ms-3"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"card","mb-3"],[1,"input-group","input-group-sm","mb-1"],[1,"input-group-text"],["type","text","name","name","id","name",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","type","id","type",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","website","id","website",1,"form-control",3,"ngModelChange","ngModel"],["target","_blank",1,"btn","btn-outline-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square"],["type","text","name","avatar","id","avatar",1,"form-control",3,"ngModelChange","ngModel"],[1,"form-control","text-end"],[1,"table","table-sm","table-hover","text-start"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],["type","button",1,"btn","btn-sm","btn-outline-success",3,"click"],[1,"fas","fa-plus","me-2"],["type","text","name","address","id","address",1,"form-control",3,"ngModelChange","ngModel"],["id","cCity","name","cCity",1,"form-select",3,"ngModelChange","ngModel"],[3,"value"],["id","cState","name","cState",1,"form-select",3,"ngModelChange","change","ngModel"],["id","cCountry","name","cCountry",1,"form-select",3,"ngModelChange","change","ngModel"],["type","button",1,"btn","btn-sm","btn-outline-success","ms-3",3,"click"],[1,"fas","fa-repeat","me-2"],["alt","Avatar",1,"rounded-circle",2,"height","32px",3,"src"],[1,"p-0"],["type","email",1,"form-control","form-control-sm","m-0",3,"ngModelChange","name","id","ngModel"],[1,"fas","fa-trash","text-danger","ptr",3,"click"],["type","tel",1,"form-control","form-control-sm","m-0",3,"ngModelChange","name","id","ngModel"],["type","text","name","gmLink","id","gmLink",1,"form-control",3,"ngModelChange","ngModel","disabled"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),T(3,$O,2,1,"h5")(4,GO,2,0,"h5"),c(5,"span",3),f(6,"\xA0"),u(),c(7,"button",4),b("click",function(){return n.delete()}),v(8,"i",5),f(9," Delete"),u(),c(10,"button",6),b("click",function(){return n.save()}),v(11,"i",7),f(12," Save"),u(),T(13,WO,3,0,"button",8),u()(),c(14,"div",9),v(15,"hr"),u(),c(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"span",14),f(21,"Name"),u(),c(22,"input",15),k("ngModelChange",function(r){return F(n.contact.value.name,r)||(n.contact.value.name=r),r}),u()(),c(23,"div",13)(24,"span",14),f(25,"Type"),u(),c(26,"input",16),k("ngModelChange",function(r){return F(n.contact.value.type,r)||(n.contact.value.type=r),r}),u()(),c(27,"div",13)(28,"span",14),f(29,"Website"),u(),c(30,"input",17),k("ngModelChange",function(r){return F(n.contact.value.website,r)||(n.contact.value.website=r),r}),u(),c(31,"a",18),v(32,"i",19),u()(),c(33,"div",13)(34,"span",14),f(35,"Avatar Url"),u(),c(36,"input",20),k("ngModelChange",function(r){return F(n.contact.value.avatar,r)||(n.contact.value.avatar=r),r}),u(),T(37,YO,4,2),u(),c(38,"div",13)(39,"span",14),f(40,"Email Addresses"),u(),c(41,"span",21)(42,"table",22)(43,"thead")(44,"tr")(45,"th"),f(46,"Address"),u(),c(47,"th",23),v(48,"i",24),u()()(),c(49,"tbody"),te(50,qO,5,5,"tr",null,Yt),u()(),c(52,"button",25),b("click",function(){return n.addEmail()}),v(53,"i",26),f(54," Add New "),u()()(),c(55,"div",13)(56,"span",14),f(57,"Phone Numbers"),u(),c(58,"span",21)(59,"table",22)(60,"thead")(61,"tr")(62,"th"),f(63,"Number"),u(),c(64,"th",23),v(65,"i",24),u()()(),c(66,"tbody"),te(67,KO,5,5,"tr",null,Yt),u()(),c(69,"button",25),b("click",function(){return n.addPhone()}),v(70,"i",26),f(71," Add New "),u()()(),c(72,"div",13)(73,"span",14),f(74,"Address"),u(),c(75,"input",27),k("ngModelChange",function(r){return F(n.contact.value.address,r)||(n.contact.value.address=r),r}),u()(),c(76,"div",13)(77,"span",14),f(78,"City"),u(),c(79,"select",28),k("ngModelChange",function(r){return F(n.contact.value.city,r)||(n.contact.value.city=r),r}),te(80,ZO,2,2,"option",29,Wp),u()(),c(82,"div",13)(83,"span",14),f(84,"State"),u(),c(85,"select",30),k("ngModelChange",function(r){return F(n.contact.value.state,r)||(n.contact.value.state=r),r}),b("change",function(){return n.populateCities()}),te(86,QO,2,2,"option",29,Wp),u()(),c(88,"div",13)(89,"span",14),f(90,"Country"),u(),c(91,"select",31),k("ngModelChange",function(r){return F(n.contact.value.country,r)||(n.contact.value.country=r),r}),b("change",function(){return n.populateStates()}),te(92,JO,2,3,"option",29,Wp),u()(),T(94,XO,6,5,"div",13),u()()()()),i&2&&(h(3),I(n.contact.value.name?3:4),h(7),A("disabled",n.saving),h(3),I(n.canBrowse()?13:-1),h(7),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.name),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.type),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.website),h(),A("href",n.contact.value.website,Bn),h(3),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.avatar),h(),I(n.contact.value.avatar?37:-1),h(2),be("width",n.labelWidth,"px"),h(11),ne(n.contact.value.emailAddresses),h(6),be("width",n.labelWidth,"px"),h(11),ne(n.contact.value.phoneNumbers),h(6),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.address),h(2),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.city),h(),ne(n.cities.values()),h(3),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.state),h(),ne(n.states.values()),h(3),be("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.country),h(),ne(n.gS.countries.values()),h(2),I(n.contact.value.googleValues?94:-1))},dependencies:[Ce,nn,on,it,It,Pe,Ne,Cc]})};function eN(t,e){if(t&1&&v(0,"div",11),t&2){let i=y();A("options",i.chartOption)}}var Zc=class t{constructor(e,i,n){this.crmS=e;this.gS=i;this.dbS=n}chartOption={legend:{},tooltip:{},xAxis:{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{rotate:45}},yAxis:{}};isReady=!1;chartType="line";campaign={id:"",type:"campaign",value:{}};ngOnInit(){return E(this,null,function*(){yield this.crmS.populateCampaigns(),this.crmS.populateEmailTemplates(),this.gS.populateCountries(),this.crmS.currentCampaign!==""&&this.crmS.campaigns.has(this.crmS.currentCampaign)&&(this.campaign=Y({},this.crmS.campaigns.get(this.crmS.currentCampaign)),this.campaign.value.country===0&&(this.campaign.value.country="0")),this.prepareData()})}ngOnDestroy(){this.crmS.currentCampaign=""}prepareData=()=>E(this,null,function*(){this.isReady=!1;let e=yield this.dbS.campaignMails(this.campaign),i=new Set,n=new Set,o={};for(let s of e)s.status="",s.value.isAccepted===!0&&(s.status="accepted",s.when=s.value.acceptedWhen),s.value.isDelivered===!0&&(s.status="delivered",s.when=s.value.deliveredWhen),s.value.isOpened===!0&&(s.status="opened",s.when=s.value.openedWhen),s.value.isClicked===!0&&(s.status="clicked",s.when=s.value.clickedWhen),s.value.isUnsubscribed===!0&&(s.status="unsubscribed",s.when=s.value.unsubscribedWhen),s.value.isComplained===!0&&(s.status="complained",s.when=s.value.complainedWhen),s.value.isFailed===!0&&(s.status="failed",s.when=s.value.failedWhen),s.status===""&&(s.status=s.value.status,s.when=s.value.when),s.when=s.when.substring(0,10),i.add(s.status),n.add(s.when),o[s.when]??={},o[s.when][s.status]??=0,o[s.when][s.status]++;let r=Object.keys(o).sort();this.chartOption.dataset={dimensions:["when",...Array.from(i)],source:[...r.map(s=>Y({when:s},o[s]))]},this.chartOption.series=Array.from(i).map(s=>({type:this.chartType,stack:"x"})),this.isReady=!0});static \u0275fac=function(i){return new(i||t)(w(Be),w(xt),w(Ye))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign-stats"]],standalone:!0,features:[nt([zc()]),j],decls:19,vars:6,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-rotate","me-2"],[1,"ms-2"],["id","cTemplate","name","cTemplate",1,"form-select","form-select-sm",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"row","mt-0"],[1,"row"],[1,"col"],["echarts","",1,"stats-chart",3,"options"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4),u(),c(5,"button",3),b("click",function(){return n.prepareData()}),v(6,"i",4),f(7," Refresh "),u(),c(8,"form",5)(9,"select",6),k("ngModelChange",function(r){return F(n.chartType,r)||(n.chartType=r),r}),b("change",function(){return n.prepareData()}),c(10,"option",7),f(11,"Bar Chart"),u(),c(12,"option",7),f(13,"Line Chart"),u()()()()(),c(14,"div",8),v(15,"hr"),u(),c(16,"div",9)(17,"div",10),T(18,eN,1,1,"div",11),u()()()),i&2&&(h(4),B("Campaign Stats: ",n.campaign.value.name,""),h(),A("disabled",!n.isReady),h(4),R("ngModel",n.chartType),h(),A("value","bar"),h(2),A("value","line"),h(6),I(n.isReady?18:-1))},dependencies:[Ce,tn,nn,on,It,Pe,en,Ne,Lt,ly],styles:[".stats-chart[_ngcontent-%COMP%]{height:calc(100vh - 200px)}"]})};var Yp=(t,e)=>e.name;function tN(t,e){if(t&1){let i=U();c(0,"a",11),b("click",function(){S(i);let o=y(2).$implicit,r=y();return M(r.nS.sCP(o.link))}),v(1,"i"),f(2),u()}if(t&2){let i=y(2).$implicit;h(),lr("",i.icon," me-1"),h(),B(" ",i.name," ")}}function nN(t,e){if(t&1){let i=U();c(0,"a",14),b("click",function(){S(i);let o=y().$implicit,r=y(6);return M(r.nS.sCP(o.link))}),v(1,"i"),f(2),u()}if(t&2){let i=y().$implicit;h(),lr("",i.icon," ms-3 me-1"),h(),B(" ",i.name,"")}}function iN(t,e){if(t&1&&T(0,nN,3,4,"a",15),t&2){let i=e.$implicit,n=y(6);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function oN(t,e){if(t&1){let i=U();c(0,"a",14),b("click",function(){S(i);let o=y().$implicit,r=y(4);return M(r.nS.sCP(o.link))}),v(1,"i"),f(2),u(),te(3,iN,1,1,null,null,Yp)}if(t&2){let i=y().$implicit;h(),lr("",i.icon," me-1"),h(),B(" ",i.name,""),h(),ne(i.children)}}function rN(t,e){if(t&1&&T(0,oN,5,4),t&2){let i=e.$implicit,n=y(4);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function sN(t,e){if(t&1&&(c(0,"a",12),v(1,"i"),f(2),u(),c(3,"div",13),te(4,rN,1,1,null,null,Yp),u()),t&2){let i=y(2).$implicit;h(),lr("",i.icon," me-1"),h(),B(" ",i.name," "),h(2),ne(i.children)}}function aN(t,e){if(t&1&&(c(0,"a",12),v(1,"i"),f(2),u(),c(3,"div",13)(4,"a",15),f(5,"Coming soon, stay tuned"),u()()),t&2){let i=y(2).$implicit;h(),lr("",i.icon," me-1"),h(),B(" ",i.name," ")}}function lN(t,e){if(t&1&&(c(0,"li",9),T(1,tN,3,4,"a",10)(2,sN,6,4)(3,aN,6,4),u()),t&2){let i=y().$implicit;h(),I(!i.children&&!i.isComingSoon?1:-1),h(),I(i.children?2:-1),h(),I(i.isComingSoon?3:-1)}}function cN(t,e){if(t&1&&T(0,lN,4,3,"li",9),t&2){let i=e.$implicit,n=y();I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function uN(t,e){t&1&&v(0,"lnf-optimization-home")}function dN(t,e){t&1&&v(0,"lnf-optimization-image-settings")}function fN(t,e){t&1&&v(0,"lnf-optimization-image-bulk")}function pN(t,e){t&1&&v(0,"lnf-optimization-image-supervised")}function hN(t,e){t&1&&v(0,"lnf-ai-content-settings")}function mN(t,e){t&1&&v(0,"lnf-crm-home")}function gN(t,e){t&1&&v(0,"lnf-crm-settings")}function _N(t,e){t&1&&v(0,"lnf-crm-campaign-list")}function vN(t,e){t&1&&v(0,"lnf-crm-campaign")}function yN(t,e){t&1&&v(0,"lnf-crm-campaign-stats")}function bN(t,e){t&1&&v(0,"lnf-crm-email-template-list")}function CN(t,e){t&1&&v(0,"lnf-crm-email-template")}function DN(t,e){t&1&&v(0,"lnf-crm-explorer")}function wN(t,e){t&1&&v(0,"lnf-crm-explore-list")}function EN(t,e){t&1&&v(0,"lnf-crm-contact")}function SN(t,e){t&1&&v(0,"lnf-crm-contact-list")}function MN(t,e){t&1&&v(0,"lnf-subscription-home")}function TN(t,e){t&1&&v(0,"lnf-maintenance-home")}function IN(t,e){t&1&&v(0,"lnf-maintenance-cron")}function xN(t,e){t&1&&v(0,"lnf-maintenance-mailgun")}function ON(t,e){t&1&&v(0,"lnf-home")}function NN(t,e){t&1&&v(0,"lnf-home")}var Qc=class t{constructor(e,i){this.nS=e;this.sS=i}collapsed=!0;ngOnInit(){this.sS.checkRegistration()}static \u0275fac=function(i){return new(i||t)(w(we),w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-root"]],standalone:!0,features:[j],decls:34,vars:4,consts:[[1,"navbar","navbar-expand-md","navbar-light","bg-body-tertiary","border-bottom","shadow","shadow-sm"],[1,"container-fluid"],["src","luckynode-menuicon.svg","alt","LuckyNode Logo","width","24","height","24",1,"me-2","ptr",3,"click"],[1,"navbar-brand","h3","my-auto","ptr",3,"click"],["type","button","aria-controls","navbarContent","aria-label","Toggle navigation",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],["id","navbarContent",1,"navbar-collapse"],[1,"navbar-nav","ms-auto"],[2,"height","calc(100vh - 50px)","overflow","auto"],["ngbDropdown","",1,"nav-item","me-3"],["tabindex","0","role","button",1,"nav-link","fw-medium"],["tabindex","0","role","button",1,"nav-link","fw-medium",3,"click"],["tabindex","0","ngbDropdownToggle","","role","button",1,"nav-link","fw-medium"],["ngbDropdownMenu","","aria-labelledby","navbarDropdown2",1,"dropdown-menu","dropdown-menu-end"],["ngbDropdownItem","",1,"ptr",3,"click"],["ngbDropdownItem","",1,"ptr"]],template:function(i,n){if(i&1&&(c(0,"nav",0)(1,"div",1)(2,"img",2),b("click",function(){return n.nS.sCP("home")}),u(),c(3,"span",3),b("click",function(){return n.nS.sCP("home")}),f(4," LuckyNode "),u(),c(5,"button",4),b("click",function(){return n.collapsed=!n.collapsed}),v(6,"span",5),u(),c(7,"div",6)(8,"ul",7),te(9,cN,1,1,null,null,Yp),u()()()(),c(11,"div",8),T(12,uN,1,0,"lnf-optimization-home")(13,dN,1,0,"lnf-optimization-image-settings")(14,fN,1,0,"lnf-optimization-image-bulk")(15,pN,1,0,"lnf-optimization-image-supervised")(16,hN,1,0,"lnf-ai-content-settings")(17,mN,1,0,"lnf-crm-home")(18,gN,1,0,"lnf-crm-settings")(19,_N,1,0,"lnf-crm-campaign-list")(20,vN,1,0,"lnf-crm-campaign")(21,yN,1,0,"lnf-crm-campaign-stats")(22,bN,1,0,"lnf-crm-email-template-list")(23,CN,1,0,"lnf-crm-email-template")(24,DN,1,0,"lnf-crm-explorer")(25,wN,1,0,"lnf-crm-explore-list")(26,EN,1,0,"lnf-crm-contact")(27,SN,1,0,"lnf-crm-contact-list")(28,MN,1,0,"lnf-subscription-home")(29,TN,1,0,"lnf-maintenance-home")(30,IN,1,0,"lnf-maintenance-cron")(31,xN,1,0,"lnf-maintenance-mailgun")(32,ON,1,0,"lnf-home")(33,NN,1,0,"lnf-home"),u()),i&2){let o;h(5),Mt("aria-expanded",!n.collapsed),h(2),Qe("collapse",n.collapsed),h(2),ne(n.nS.links),h(3),I((o=n.nS.currentPage)==="optimization-home"?12:o==="optimization-image-settings"?13:o==="optimization-image-bulk"?14:o==="optimization-image-supervised"?15:o==="ai-content-settings"?16:o==="crm-home"?17:o==="crm-settings"?18:o==="crm-campaign-list"?19:o==="crm-campaign"?20:o==="crm-campaign-stats"?21:o==="crm-email-template-list"?22:o==="crm-email-template"?23:o==="crm-explorer"?24:o==="crm-explore-list"?25:o==="crm-contact"?26:o==="crm-contact-list"?27:o==="subscription-home"?28:o==="maintenance-home"?29:o==="maintenance-cron"?30:o==="maintenance-mailgun"?31:o==="home"?32:33)}},dependencies:[Ar,oy,_c,iy,Bp,Vp,Oc,xc,Rr,kr,Fr,Nc,Ac,Rc,Fc,$c,Zc,Gc,qc,Lc,jc,Uc,Kc,kc,Vc,Bc,Hc],styles:[".navbar[_ngcontent-%COMP%] .megamenu[_ngcontent-%COMP%]{padding:1rem;z-index:99999}@media all and (min-width: 992px){.navbar[_ngcontent-%COMP%] .has-megamenu[_ngcontent-%COMP%]{position:static!important}.navbar[_ngcontent-%COMP%] .megamenu[_ngcontent-%COMP%]{left:0;right:0;width:100%;margin-top:0}}@media (max-width: 991px){.navbar.fixed-top[_ngcontent-%COMP%] .navbar-collapse[_ngcontent-%COMP%], .navbar.sticky-top[_ngcontent-%COMP%] .navbar-collapse[_ngcontent-%COMP%]{overflow-y:auto;max-height:90vh;margin-top:10px}}"]})};ev(Qc,iv).catch(t=>console.error(t));7 `)}`}var zm=Hm(Fm("Optional"),8);var y1=Hm(Fm("SkipSelf"),4);function ro(t,e){let i=t.hasOwnProperty(Fa);return i?t[Fa]:null}function C1(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let o=t[n],r=e[n];if(i&&(o=i(o),r=i(r)),r!==o)return!1}return!0}function b1(t){return t.flat(Number.POSITIVE_INFINITY)}function Qd(t,e){t.forEach(i=>Array.isArray(i)?Qd(i,e):e(i))}function $m(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function La(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function D1(t,e){let i=[];for(let n=0;n<t;n++)i.push(e);return i}function w1(t,e,i,n){let o=t.length;if(o==e)t.push(i,n);else if(o===1)t.push(n,t[0]),t[0]=i;else{for(o--,t.push(t[o-1],t[o]);o>e;){let r=o-2;t[o]=t[r],o--}t[e]=i,t[e+1]=n}}function al(t,e,i){let n=rs(t,e);return n>=0?t[n|1]=i:(n=~n,w1(t,n,e,i)),n}function Tu(t,e){let i=rs(t,e);if(i>=0)return t[i|1]}function rs(t,e){return E1(t,e,1)}function E1(t,e,i){let n=0,o=t.length>>i;for(;o!==n;){let r=n+(o-n>>1),s=t[r<<i];if(e===s)return r<<i;s>e?o=r:n=r+1}return~(o<<i)}var Wo={},wt=[],Zr=new G(""),Gm=new G("",-1),Wm=new G(""),Va=class{get(e,i=Kr){if(i===Kr){let n=new Error(`NullInjectorError: No provider for ${At(e)}!`);throw n.name="NullInjectorError",n}return i}},Ym=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Ym||{}),Rn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Rn||{}),yi=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(yi||{});function S1(t,e,i){let n=t.length;for(;;){let o=t.indexOf(e,i);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=e.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}i=o+1}}function Wu(t,e,i){let n=0;for(;n<i.length;){let o=i[n];if(typeof o=="number"){if(o!==0)break;n++;let r=i[n++],s=i[n++],a=i[n++];t.setAttribute(e,s,a,r)}else{let r=o,s=i[++n];M1(r)?t.setProperty(e,r,s):t.setAttribute(e,r,s),n++}}return n}function qm(t){return t===3||t===4||t===6}function M1(t){return t.charCodeAt(0)===64}function Qr(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let o=e[n];typeof o=="number"?i=o:i===0||(i===-1||i===2?Qh(t,i,o,null,e[++n]):Qh(t,i,o,null,null))}}return t}function Qh(t,e,i,n,o){let r=0,s=t.length;if(e===-1)s=-1;else for(;r<t.length;){let a=t[r++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=r-1;break}}}for(;r<t.length;){let a=t[r];if(typeof a=="number")break;if(a===i){if(n===null){o!==null&&(t[r+1]=o);return}else if(n===t[r+1]){t[r+2]=o;return}}r++,n!==null&&r++,o!==null&&r++}s!==-1&&(t.splice(s,0,e),r=s+1),t.splice(r++,0,i),n!==null&&t.splice(r++,0,n),o!==null&&t.splice(r++,0,o)}var Km="ng-template";function T1(t,e,i,n){let o=0;if(n){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&S1(e[o+1].toLowerCase(),i,0)!==-1)return!0}else if(Jd(t))return!1;if(o=e.indexOf(1,o),o>-1){let r;for(;++o<e.length&&typeof(r=e[o])=="string";)if(r.toLowerCase()===i)return!0}return!1}function Jd(t){return t.type===4&&t.value!==Km}function I1(t,e,i){let n=t.type===4&&!i?Km:t.value;return e===n}function x1(t,e,i){let n=4,o=t.attrs,r=o!==null?A1(o):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!_n(n)&&!_n(l))return!1;if(s&&_n(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!I1(t,l,i)||l===""&&e.length===1){if(_n(n))return!1;s=!0}}else if(n&8){if(o===null||!T1(t,o,l,i)){if(_n(n))return!1;s=!0}}else{let d=e[++a],p=O1(l,o,Jd(t),i);if(p===-1){if(_n(n))return!1;s=!0;continue}if(d!==""){let m;if(p>r?m="":m=o[p+1].toLowerCase(),n&2&&d!==m){if(_n(n))return!1;s=!0}}}}return _n(n)||s}function _n(t){return(t&1)===0}function O1(t,e,i,n){if(e===null)return-1;let o=0;if(n||!i){let r=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)r=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=r?1:2}return-1}else return R1(e,t)}function Zm(t,e,i=!1){for(let n=0;n<e.length;n++)if(x1(t,e[n],i))return!0;return!1}function N1(t){let e=t.attrs;if(e!=null){let i=e.indexOf(5);if(!(i&1))return e[i+1]}return null}function A1(t){for(let e=0;e<t.length;e++){let i=t[e];if(qm(i))return e}return t.length}function R1(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function k1(t,e){e:for(let i=0;i<e.length;i++){let n=e[i];if(t.length===n.length){for(let o=0;o<t.length;o++)if(t[o]!==n[o])continue e;return!0}}return!1}function Jh(t,e){return t?":not("+e.trim()+")":e}function F1(t){let e=t[0],i=1,n=2,o="",r=!1;for(;i<t.length;){let s=t[i];if(typeof s=="string")if(n&2){let a=t[++i];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!_n(s)&&(e+=Jh(r,o),o=""),n=s,r=r||!_n(n);i++}return o!==""&&(e+=Jh(r,o)),e}function P1(t){return t.map(F1).join(",")}function L1(t){let e=[],i=[],n=1,o=2;for(;n<t.length;){let r=t[n];if(typeof r=="string")o===2?r!==""&&e.push(r,t[++n]):o===8&&i.push(r);else{if(!_n(o))break;o=r}n++}return{attrs:e,classes:i}}function V(t){return os(()=>{let e=Xm(t),i=Se(Y({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ym.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Rn.Emulated,styles:t.styles||wt,_:null,schemas:t.schemas||null,tView:null,id:""});eg(i);let n=t.dependencies;return i.directiveDefs=em(n,!1),i.pipeDefs=em(n,!0),i.id=U1(i),i})}function V1(t){return so(t)||Qm(t)}function B1(t){return t!==null}function Ht(t){return os(()=>({type:t.type,bootstrap:t.bootstrap||wt,declarations:t.declarations||wt,imports:t.imports||wt,exports:t.exports||wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Xh(t,e){if(t==null)return Wo;let i={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,s,a=yi.None;Array.isArray(o)?(a=o[0],r=o[1],s=o[2]??r):(r=o,s=o),e?(i[r]=a!==yi.None?[n,a]:n,e[r]=s):i[r]=n}return i}function ae(t){return os(()=>{let e=Xm(t);return eg(e),e})}function Xd(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function so(t){return t[r1]||null}function Qm(t){return t[s1]||null}function Jm(t){return t[a1]||null}function j1(t){let e=so(t)||Qm(t)||Jm(t);return e!==null?e.standalone:!1}function Xm(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Wo,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||wt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Xh(t.inputs,e),outputs:Xh(t.outputs),debugInfo:null}}function eg(t){t.features?.forEach(e=>e(t))}function em(t,e){if(!t)return null;let i=e?Jm:V1;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(B1)}function U1(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of i)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ss(t){return{\u0275providers:t}}function H1(...t){return{\u0275providers:tg(!0,t),\u0275fromNgModule:!0}}function tg(t,...e){let i=[],n=new Set,o,r=s=>{i.push(s)};return Qd(e,s=>{let a=s;Yu(a,r,[],n)&&(o||=[],o.push(a))}),o!==void 0&&ng(o,r),i}function ng(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:o}=t[i];ef(o,r=>{e(r,n)})}}function Yu(t,e,i,n){if(t=vt(t),!t)return!1;let o=null,r=Yh(t),s=!r&&so(t);if(!r&&!s){let l=t.ngModule;if(r=Yh(l),r)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let d of l)Yu(d,e,i,n)}}else if(r){if(r.imports!=null&&!a){n.add(o);let d;try{Qd(r.imports,p=>{Yu(p,e,i,n)&&(d||=[],d.push(p))})}finally{}d!==void 0&&ng(d,e)}if(!a){let d=ro(o)||(()=>new o);e({provide:o,useFactory:d,deps:wt},o),e({provide:Wm,useValue:o,multi:!0},o),e({provide:Zr,useValue:()=>H(o),multi:!0},o)}let l=r.providers;if(l!=null&&!a){let d=t;ef(l,p=>{e(p,d)})}}else return!1;return o!==t&&t.providers!==void 0}function ef(t,e){for(let i of t)Bm(i)&&(i=i.\u0275providers),Array.isArray(i)?ef(i,e):e(i)}var z1=Oe({provide:String,useValue:Oe});function ig(t){return t!==null&&typeof t=="object"&&z1 in t}function $1(t){return!!(t&&t.useExisting)}function G1(t){return!!(t&&t.useFactory)}function Yo(t){return typeof t=="function"}function W1(t){return!!t.useClass}var ll=new G(""),xa={},Y1={},Iu;function cl(){return Iu===void 0&&(Iu=new Va),Iu}var Rt=class{},Jr=class extends Rt{get destroyed(){return this._destroyed}constructor(e,i,n,o){super(),this.parent=i,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ku(e,s=>this.processProvider(s)),this.records.set(Gm,jo(void 0,this)),o.has("environment")&&this.records.set(Rt,jo(void 0,this));let r=this.records.get(ll);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(Wm,wt,fe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=ce(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ce(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=gi(this),n=Dt(void 0),o;try{return e()}finally{gi(i),Dt(n)}}get(e,i=Kr,n=fe.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Kh))return e[Kh](this);n=sl(n);let o,r=gi(this),s=Dt(void 0);try{if(!(n&fe.SkipSelf)){let l=this.records.get(e);if(l===void 0){let d=J1(e)&&Kd(e);d&&this.injectableDefInScope(d)?l=jo(qu(e),xa):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&fe.Self?cl():this.parent;return i=n&fe.Optional&&i===Kr?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Pa]=a[Pa]||[]).unshift(At(e)),r)throw a;return _1(a,e,"R3InjectorError",this.source)}else throw a}finally{Dt(s),gi(r)}}resolveInjectorInitializers(){let e=ce(null),i=gi(this),n=Dt(void 0),o;try{let r=this.get(Zr,wt,fe.Self);for(let s of r)s()}finally{gi(i),Dt(n),ce(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(At(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new q(205,!1)}processProvider(e){e=vt(e);let i=Yo(e)?e:vt(e&&e.provide),n=K1(e);if(!Yo(e)&&e.multi===!0){let o=this.records.get(i);o||(o=jo(void 0,xa,!0),o.factory=()=>Gu(o.multi),this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=ce(null);try{return i.value===xa&&(i.value=Y1,i.value=i.factory()),typeof i.value=="object"&&i.value&&Q1(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{ce(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=vt(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function qu(t){let e=Kd(t),i=e!==null?e.factory:ro(t);if(i!==null)return i;if(t instanceof G)throw new q(204,!1);if(t instanceof Function)return q1(t);throw new q(204,!1)}function q1(t){if(t.length>0)throw new q(204,!1);let i=i1(t);return i!==null?()=>i.factory(t):()=>new t}function K1(t){if(ig(t))return jo(void 0,t.useValue);{let e=og(t);return jo(e,xa)}}function og(t,e,i){let n;if(Yo(t)){let o=vt(t);return ro(o)||qu(o)}else if(ig(t))n=()=>vt(t.useValue);else if(G1(t))n=()=>t.useFactory(...Gu(t.deps||[]));else if($1(t))n=()=>H(vt(t.useExisting));else{let o=vt(t&&(t.useClass||t.provide));if(Z1(t))n=()=>new o(...Gu(t.deps));else return ro(o)||qu(o)}return n}function jo(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Z1(t){return!!t.deps}function Q1(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function J1(t){return typeof t=="function"||typeof t=="object"&&t instanceof G}function Ku(t,e){for(let i of t)Array.isArray(i)?Ku(i,e):i&&Bm(i)?Ku(i.\u0275providers,e):e(i)}function rg(t,e){t instanceof Jr&&t.assertNotDestroyed();let i,n=gi(t),o=Dt(void 0);try{return e()}finally{gi(n),Dt(o)}}function sg(){return jm()!==void 0||h1()!=null}function ul(t){if(!sg())throw new q(-203,!1)}function X1(t){return typeof t=="function"}var Qn=0,X=1,Q=2,ht=3,yn=4,Et=5,qo=6,Ba=7,ft=8,Ko=9,kn=10,Re=11,Xr=12,tm=13,ir=14,kt=15,ao=16,Uo=17,qn=18,dl=19,ag=20,_i=21,xu=22,jt=23,et=25,lg=1;var lo=7,ja=8,Zo=9,pt=10,Ua=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Ua||{});function vi(t){return Array.isArray(t)&&typeof t[lg]=="object"}function Jn(t){return Array.isArray(t)&&t[lg]===!0}function tf(t){return(t.flags&4)!==0}function fl(t){return t.componentOffset>-1}function pl(t){return(t.flags&1)===1}function Ci(t){return!!t.template}function Zu(t){return(t[Q]&512)!==0}var Qu=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function cg(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function yt(){return ug}function ug(t){return t.type.prototype.ngOnChanges&&(t.setInput=tC),eC}yt.ngInherit=!0;function eC(){let t=fg(this),e=t?.current;if(e){let i=t.previous;if(i===Wo)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function tC(t,e,i,n,o){let r=this.declaredInputs[n],s=fg(t)||nC(t,{previous:Wo,current:null}),a=s.current||(s.current={}),l=s.previous,d=l[r];a[r]=new Qu(d&&d.currentValue,i,l===Wo),cg(t,e,o,i)}var dg="__ngSimpleChanges__";function fg(t){return t[dg]||null}function nC(t,e){return t[dg]=e}var nm=null;var Nn=function(t,e,i){nm?.(t,e,i)},iC="svg",oC="math";function Fn(t){for(;Array.isArray(t);)t=t[Qn];return t}function pg(t,e){return Fn(e[t])}function zt(t,e){return Fn(e[t.index])}function nf(t,e){return t.data[e]}function of(t,e){return t[e]}function wi(t,e){let i=e[t];return vi(i)?i:i[Qn]}function rC(t){return(t[Q]&4)===4}function rf(t){return(t[Q]&128)===128}function sC(t){return Jn(t[ht])}function bi(t,e){return e==null?null:t[e]}function hg(t){t[Uo]=0}function mg(t){t[Q]&1024||(t[Q]|=1024,rf(t)&&ml(t))}function aC(t,e){for(;t>0;)e=e[ir],t--;return e}function hl(t){return!!(t[Q]&9216||t[jt]?.dirty)}function Ju(t){t[kn].changeDetectionScheduler?.notify(8),t[Q]&64&&(t[Q]|=1024),hl(t)&&ml(t)}function ml(t){t[kn].changeDetectionScheduler?.notify(0);let e=co(t);for(;e!==null&&!(e[Q]&8192||(e[Q]|=8192,!rf(e)));)e=co(e)}function gg(t,e){if((t[Q]&256)===256)throw new q(911,!1);t[_i]===null&&(t[_i]=[]),t[_i].push(e)}function lC(t,e){if(t[_i]===null)return;let i=t[_i].indexOf(e);i!==-1&&t[_i].splice(i,1)}function co(t){let e=t[ht];return Jn(e)?e[ht]:e}var se={lFrame:Sg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var _g=!1;function cC(){return se.lFrame.elementDepthCount}function uC(){se.lFrame.elementDepthCount++}function dC(){se.lFrame.elementDepthCount--}function vg(){return se.bindingsEnabled}function yg(){return se.skipHydrationRootTNode!==null}function fC(t){return se.skipHydrationRootTNode===t}function pC(){se.skipHydrationRootTNode=null}function Z(){return se.lFrame.lView}function ke(){return se.lFrame.tView}function M(t){return se.lFrame.contextLView=t,t[ft]}function T(t){return se.lFrame.contextLView=null,t}function lt(){let t=Cg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Cg(){return se.lFrame.currentTNode}function hC(){let t=se.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function go(t,e){let i=se.lFrame;i.currentTNode=t,i.isParent=e}function sf(){return se.lFrame.isParent}function af(){se.lFrame.isParent=!1}function mC(){return se.lFrame.contextLView}function bg(){return _g}function im(t){_g=t}function as(){let t=se.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function gC(){return se.lFrame.bindingIndex}function _C(t){return se.lFrame.bindingIndex=t}function _o(){return se.lFrame.bindingIndex++}function lf(t){let e=se.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function vC(){return se.lFrame.inI18n}function yC(t,e){let i=se.lFrame;i.bindingIndex=i.bindingRootIndex=t,Xu(e)}function CC(){return se.lFrame.currentDirectiveIndex}function Xu(t){se.lFrame.currentDirectiveIndex=t}function bC(t){let e=se.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Dg(){return se.lFrame.currentQueryIndex}function cf(t){se.lFrame.currentQueryIndex=t}function DC(t){let e=t[X];return e.type===2?e.declTNode:e.type===1?t[Et]:null}function wg(t,e,i){if(i&fe.SkipSelf){let o=e,r=t;for(;o=o.parent,o===null&&!(i&fe.Host);)if(o=DC(r),o===null||(r=r[ir],o.type&10))break;if(o===null)return!1;e=o,t=r}let n=se.lFrame=Eg();return n.currentTNode=e,n.lView=t,!0}function uf(t){let e=Eg(),i=t[X];se.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Eg(){let t=se.lFrame,e=t===null?null:t.child;return e===null?Sg(t):e}function Sg(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Mg(){let t=se.lFrame;return se.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Tg=Mg;function df(){let t=Mg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function wC(t){return(se.lFrame.contextLView=aC(t,se.lFrame.contextLView))[ft]}function Xn(){return se.lFrame.selectedIndex}function uo(t){se.lFrame.selectedIndex=t}function ls(){let t=se.lFrame;return nf(t.tView,t.selectedIndex)}function EC(){return se.lFrame.currentNamespace}var Ig=!0;function gl(){return Ig}function _l(t){Ig=t}function SC(t,e,i){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=e.type.prototype;if(n){let s=ug(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}o&&(i.preOrderHooks??=[]).push(0-t,o),r&&((i.preOrderHooks??=[]).push(t,r),(i.preOrderCheckHooks??=[]).push(t,r))}function vl(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let r=t.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:d,ngOnDestroy:p}=r;s&&(t.contentHooks??=[]).push(-i,s),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),l&&(t.viewHooks??=[]).push(-i,l),d&&((t.viewHooks??=[]).push(i,d),(t.viewCheckHooks??=[]).push(i,d)),p!=null&&(t.destroyHooks??=[]).push(i,p)}}function Oa(t,e,i){xg(t,e,3,i)}function Na(t,e,i,n){(t[Q]&3)===i&&xg(t,e,i,n)}function Ou(t,e){let i=t[Q];(i&3)===e&&(i&=16383,i+=1,t[Q]=i)}function xg(t,e,i,n){let o=n!==void 0?t[Uo]&65535:0,r=n??-1,s=e.length-1,a=0;for(let l=o;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],n!=null&&a>=n)break}else e[l]<0&&(t[Uo]+=65536),(a<r||r==-1)&&(MC(t,i,e,l),t[Uo]=(t[Uo]&4294901760)+l+2),l++}function om(t,e){Nn(4,t,e);let i=ce(null);try{e.call(t)}finally{ce(i),Nn(5,t,e)}}function MC(t,e,i,n){let o=i[n]<0,r=i[n+1],s=o?-i[n]:i[n],a=t[s];o?t[Q]>>14<t[Uo]>>16&&(t[Q]&3)===e&&(t[Q]+=16384,om(a,r)):om(a,r)}var $o=-1,fo=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function TC(t){return t instanceof fo}function IC(t){return(t.flags&8)!==0}function xC(t){return(t.flags&16)!==0}var Nu={},ed=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=sl(n);let o=this.injector.get(e,Nu,n);return o!==Nu||i===Nu?o:this.parentInjector.get(e,i,n)}};function Og(t){return t!==$o}function Ha(t){return t&32767}function OC(t){return t>>16}function za(t,e){let i=OC(t),n=e;for(;i>0;)n=n[ir],i--;return n}var td=!0;function $a(t){let e=td;return td=t,e}var NC=256,Ng=NC-1,Ag=5,AC=0,An={};function RC(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(qr)&&(n=i[qr]),n==null&&(n=i[qr]=AC++);let o=n&Ng,r=1<<o;e.data[t+(o>>Ag)]|=r}function Ga(t,e){let i=Rg(t,e);if(i!==-1)return i;let n=e[X];n.firstCreatePass&&(t.injectorIndex=e.length,Au(n.data,t),Au(e,null),Au(n.blueprint,null));let o=ff(t,e),r=t.injectorIndex;if(Og(o)){let s=Ha(o),a=za(o,e),l=a[X].data;for(let d=0;d<8;d++)e[r+d]=a[s+d]|l[s+d]}return e[r+8]=o,r}function Au(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Rg(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ff(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,o=e;for(;o!==null;){if(n=Vg(o),n===null)return $o;if(i++,o=o[ir],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return $o}function nd(t,e,i){RC(t,e,i)}function kC(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,o=0;for(;o<n;){let r=i[o];if(qm(r))break;if(r===0)o=o+2;else if(typeof r=="number")for(o++;o<n&&typeof i[o]=="string";)o++;else{if(r===e)return i[o+1];o=o+2}}}return null}function kg(t,e,i){if(i&fe.Optional||t!==void 0)return t;Zd(e,"NodeInjector")}function Fg(t,e,i,n){if(i&fe.Optional&&n===void 0&&(n=null),!(i&(fe.Self|fe.Host))){let o=t[Ko],r=Dt(void 0);try{return o?o.get(e,n,i&fe.Optional):Um(e,n,i&fe.Optional)}finally{Dt(r)}}return kg(n,e,i)}function Pg(t,e,i,n=fe.Default,o){if(t!==null){if(e[Q]&2048&&!(n&fe.Self)){let s=VC(t,e,i,n,An);if(s!==An)return s}let r=Lg(t,e,i,n,An);if(r!==An)return r}return Fg(e,i,n,o)}function Lg(t,e,i,n,o){let r=PC(i);if(typeof r=="function"){if(!wg(e,t,n))return n&fe.Host?kg(o,i,n):Fg(e,i,n,o);try{let s;if(s=r(n),s==null&&!(n&fe.Optional))Zd(i);else return s}finally{Tg()}}else if(typeof r=="number"){let s=null,a=Rg(t,e),l=$o,d=n&fe.Host?e[kt][Et]:null;for((a===-1||n&fe.SkipSelf)&&(l=a===-1?ff(t,e):e[a+8],l===$o||!sm(n,!1)?a=-1:(s=e[X],a=Ha(l),e=za(l,e)));a!==-1;){let p=e[X];if(rm(r,a,p.data)){let m=FC(a,e,i,s,n,d);if(m!==An)return m}l=e[a+8],l!==$o&&sm(n,e[X].data[a+8]===d)&&rm(r,a,e)?(s=p,a=Ha(l),e=za(l,e)):a=-1}}return o}function FC(t,e,i,n,o,r){let s=e[X],a=s.data[t+8],l=n==null?fl(a)&&td:n!=s&&(a.type&3)!==0,d=o&fe.Host&&r===a,p=Aa(a,s,i,l,d);return p!==null?po(e,s,p,a):An}function Aa(t,e,i,n,o){let r=t.providerIndexes,s=e.data,a=r&1048575,l=t.directiveStart,d=t.directiveEnd,p=r>>20,m=n?a:a+p,_=o?a+p:d;for(let g=m;g<_;g++){let D=s[g];if(g<l&&i===D||g>=l&&D.type===i)return g}if(o){let g=s[l];if(g&&Ci(g)&&g.type===i)return l}return null}function po(t,e,i,n){let o=t[i],r=e.data;if(TC(o)){let s=o;s.resolving&&c1(l1(r[i]));let a=$a(s.canSeeViewProviders);s.resolving=!0;let l,d=s.injectImpl?Dt(s.injectImpl):null,p=wg(t,n,fe.Default);try{o=t[i]=s.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&SC(i,r[i],e)}finally{d!==null&&Dt(d),$a(a),s.resolving=!1,Tg()}}return o}function PC(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(qr)?t[qr]:void 0;return typeof e=="number"?e>=0?e&Ng:LC:e}function rm(t,e,i){let n=1<<t;return!!(i[e+(t>>Ag)]&n)}function sm(t,e){return!(t&fe.Self)&&!(t&fe.Host&&e)}var oo=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return Pg(this._tNode,this._lView,e,sl(n),i)}};function LC(){return new oo(lt(),Z())}function $t(t){return os(()=>{let e=t.prototype.constructor,i=e[Fa]||id(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[Fa]||id(o);if(r&&r!==i)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function id(t){return Pm(t)?()=>{let e=id(vt(t));return e&&e()}:ro(t)}function VC(t,e,i,n,o){let r=t,s=e;for(;r!==null&&s!==null&&s[Q]&2048&&!(s[Q]&512);){let a=Lg(r,s,i,n|fe.Self,An);if(a!==An)return a;let l=r.parent;if(!l){let d=s[ag];if(d){let p=d.get(i,An,n);if(p!==An)return p}l=Vg(s),s=s[ir]}r=l}return o}function Vg(t){let e=t[X],i=e.type;return i===2?e.declTNode:i===1?t[Et]:null}function cs(t){return kC(lt(),t)}function am(t,e=null,i=null,n){let o=BC(t,e,i,n);return o.resolveInjectorInitializers(),o}function BC(t,e=null,i=null,n,o=new Set){let r=[i||wt,H1(t)];return n=n||(typeof t=="object"?void 0:At(t)),new Jr(r,e||cl(),n||null,o)}var to=class to{static create(e,i){if(Array.isArray(e))return am({name:""},i,e,"");{let n=e.name??"";return am({name:n},e.parent,e.providers,n)}}};to.THROW_IF_NOT_FOUND=Kr,to.NULL=new Va,to.\u0275prov=L({token:to,providedIn:"any",factory:()=>H(Gm)}),to.__NG_ELEMENT_ID__=-1;var He=to;var jC=new G("");jC.__NG_ELEMENT_ID__=t=>{let e=lt();if(e===null)throw new q(204,!1);if(e.type&2)return e.value;if(t&fe.Optional)return null;throw new q(204,!1)};var UC="ngOriginalError";function Ru(t){return t[UC]}var Bg=!0,ei=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=HC,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),od=class extends ei{constructor(e){super(),this._lView=e}onDestroy(e){return gg(this._lView,e),()=>lC(this._lView,e)}};function HC(){return new od(Z())}var or=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new qi(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var rd=class extends he{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,sg()&&(this.destroyRef=b(ei,{optional:!0})??void 0,this.pendingTasks=b(or,{optional:!0})??void 0)}emit(e){let i=ce(null);try{super.next(e)}finally{ce(i)}}subscribe(e,i,n){let o=e,r=i||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:r,complete:s});return e instanceof Ue&&e.add(a),a}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},re=rd;function Wa(...t){}function jg(t){let e,i;function n(){t=Wa;try{i!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(i),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(()=>{t(),n()})),()=>n()}function lm(t){return queueMicrotask(()=>t()),()=>{t=Wa}}var pf="isAngularZone",Ya=pf+"_ID",zC=0,ge=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new re(!1),this.onMicrotaskEmpty=new re(!1),this.onStable=new re(!1),this.onError=new re(!1);let{enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Bg}=e;if(typeof Zone>"u")throw new q(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)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&n,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=r,WC(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pf)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new q(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new q(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,o){let r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,e,$C,Wa,Wa);try{return r.runTask(s,i,n)}finally{r.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},$C={};function hf(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function GC(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){jg(()=>{t.callbackScheduled=!1,sd(t),t.isCheckStableRunning=!0,hf(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),sd(t)}function WC(t){let e=()=>{GC(t)},i=zC++;t._inner=t._inner.fork({name:"angular",properties:{[pf]:!0,[Ya]:i,[Ya+i]:!0},onInvokeTask:(n,o,r,s,a,l)=>{if(YC(l))return n.invokeTask(r,s,a,l);try{return cm(t),n.invokeTask(r,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),um(t)}},onInvoke:(n,o,r,s,a,l,d)=>{try{return cm(t),n.invoke(r,s,a,l,d)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!qC(l)&&e(),um(t)}},onHasTask:(n,o,r,s)=>{n.hasTask(r,s),o===r&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,sd(t),hf(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,o,r,s)=>(n.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function sd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cm(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function um(t){t._nesting--,hf(t)}var ad=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new re,this.onMicrotaskEmpty=new re,this.onStable=new re,this.onError=new re}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,o){return e.apply(i,n)}};function YC(t){return Ug(t,"__ignore_ng_zone__")}function qC(t){return Ug(t,"__scheduler_tick__")}function Ug(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Kn=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Ru(e);for(;i&&Ru(i);)i=Ru(i);return i||null}},KC=new G("",{providedIn:"root",factory:()=>{let t=b(ge),e=b(Kn);return i=>t.runOutsideAngular(()=>e.handleError(i))}});function dm(t,e){return km(t,e)}function ZC(t){return km(Rm,t)}var De=(dm.required=ZC,dm);function QC(){return rr(lt(),Z())}function rr(t,e){return new ye(zt(t,e))}var ye=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=QC;let t=e;return t})();function JC(t){return t instanceof ye?t.nativeElement:t}function XC(){return this._results[Symbol.iterator]()}var ld=class t{get changes(){return this._changes??=new re}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=XC)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=b1(e);(this._changesDetected=!C1(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Hg(t){return(t.flags&128)===128}var zg=new Map,eb=0;function tb(){return eb++}function nb(t){zg.set(t[dl],t)}function cd(t){zg.delete(t[dl])}var fm="__ngContext__";function Di(t,e){vi(e)?(t[fm]=e[dl],nb(e)):t[fm]=e}function $g(t){return Wg(t[Xr])}function Gg(t){return Wg(t[yn])}function Wg(t){for(;t!==null&&!Jn(t);)t=t[yn];return t}var ud;function Yg(t){ud=t}function ib(){if(ud!==void 0)return ud;if(typeof document<"u")return document;throw new q(210,!1)}var mf=new G("",{providedIn:"root",factory:()=>ob}),ob="ng",gf=new G(""),Gt=new G("",{providedIn:"platform",factory:()=>"unknown"});var _f=new G("",{providedIn:"root",factory:()=>ib().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var rb="h",sb="b";var ab=()=>null;function vf(t,e,i=!1){return ab(t,e,i)}var qg=!1,lb=new G("",{providedIn:"root",factory:()=>qg});var Ea;function cb(){if(Ea===void 0&&(Ea=null,io.trustedTypes))try{Ea=io.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ea}function yl(t){return cb()?.createHTML(t)||t}var Zn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Am})`}},dd=class extends Zn{getTypeName(){return"HTML"}},fd=class extends Zn{getTypeName(){return"Style"}},pd=class extends Zn{getTypeName(){return"Script"}},hd=class extends Zn{getTypeName(){return"URL"}},md=class extends Zn{getTypeName(){return"ResourceURL"}};function Vn(t){return t instanceof Zn?t.changingThisBreaksApplicationSecurity:t}function vo(t,e){let i=ub(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${Am})`)}return i===e}function ub(t){return t instanceof Zn&&t.getTypeName()||null}function Kg(t){return new dd(t)}function Zg(t){return new fd(t)}function Qg(t){return new pd(t)}function Jg(t){return new hd(t)}function Xg(t){return new md(t)}function db(t){let e=new _d(t);return fb()?new gd(e):e}var gd=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(yl(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.firstChild?.remove(),i)}catch{return null}}},_d=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=yl(e),i}};function fb(){try{return!!new window.DOMParser().parseFromString(yl(""),"text/html")}catch{return!1}}var pb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cl(t){return t=String(t),t.match(pb)?t:"unsafe:"+t}function ti(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function us(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var e0=ti("area,br,col,hr,img,wbr"),t0=ti("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),n0=ti("rp,rt"),hb=us(n0,t0),mb=us(t0,ti("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")),gb=us(n0,ti("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")),pm=us(e0,mb,gb,hb),i0=ti("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_b=ti("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"),vb=ti("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"),yb=us(i0,_b,vb),Cb=ti("script,style,template"),vd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,o=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){o.push(i),i=wb(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=Db(i);if(r){i=r;break}i=o.pop()}}return this.buf.join("")}startElement(e){let i=hm(e).toLowerCase();if(!pm.hasOwnProperty(i))return this.sanitizedSomething=!0,!Cb.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let o=0;o<n.length;o++){let r=n.item(o),s=r.name,a=s.toLowerCase();if(!yb.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;i0[a]&&(l=Cl(l)),this.buf.push(" ",s,'="',mm(l),'"')}return this.buf.push(">"),!0}endElement(e){let i=hm(e).toLowerCase();pm.hasOwnProperty(i)&&!e0.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(mm(e))}};function bb(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Db(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw o0(e);return e}function wb(t){let e=t.firstChild;if(e&&bb(t,e))throw o0(e);return e}function hm(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function o0(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Eb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sb=/([^\#-~ |!])/g;function mm(t){return t.replace(/&/g,"&").replace(Eb,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(Sb,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Sa;function r0(t,e){let i=null;try{Sa=Sa||db(t);let n=e?String(e):"";i=Sa.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=i.innerHTML,i=Sa.getInertBodyElement(n)}while(n!==r);let a=new vd().sanitizeChildren(gm(i)||i);return yl(a)}finally{if(i){let n=gm(i)||i;for(;n.firstChild;)n.firstChild.remove()}}}function gm(t){return"content"in t&&Mb(t)?t.content:null}function Mb(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Cn=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Cn||{});function Bn(t){let e=Tb();return e?e.sanitize(Cn.URL,t)||"":vo(t,"URL")?Vn(t):Cl(Go(t))}function Tb(){let t=Z();return t&&t[kn].sanitizer}var Ib=/^>|^->|<!--|-->|--!>|<!-$/g,xb=/(<|>)/g,Ob="\u200B$1\u200B";function Nb(t){return t.replace(Ib,e=>e.replace(xb,Ob))}function s0(t){return(t??b(He)).get(Gt)==="browser"}var Pn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Pn||{}),Ab;function yf(t,e){return Ab(t,e)}function Ho(t,e,i,n,o){if(n!=null){let r,s=!1;Jn(n)?r=n:vi(n)&&(s=!0,n=n[Qn]);let a=Fn(n);t===0&&i!==null?o==null?d0(e,i,a):qa(e,i,a,o||null,!0):t===1&&i!==null?qa(e,i,a,o||null,!0):t===2?Wb(e,a,s):t===3&&e.destroyNode(a),r!=null&&qb(e,t,r,i,o)}}function Rb(t,e){return t.createText(e)}function kb(t,e,i){t.setValue(e,i)}function Fb(t,e){return t.createComment(Nb(e))}function a0(t,e,i){return t.createElement(e,i)}function Pb(t,e){l0(t,e),e[Qn]=null,e[Et]=null}function Lb(t,e,i,n,o,r){n[Qn]=o,n[Et]=e,wl(t,n,i,1,o,r)}function l0(t,e){e[kn].changeDetectionScheduler?.notify(9),wl(t,e,e[Re],2,null,null)}function Vb(t){let e=t[Xr];if(!e)return ku(t[X],t);for(;e;){let i=null;if(vi(e))i=e[Xr];else{let n=e[pt];n&&(i=n)}if(!i){for(;e&&!e[yn]&&e!==t;)vi(e)&&ku(e[X],e),e=e[ht];e===null&&(e=t),vi(e)&&ku(e[X],e),i=e&&e[yn]}e=i}}function Bb(t,e,i,n){let o=pt+n,r=i.length;n>0&&(i[o-1][yn]=e),n<r-pt?(e[yn]=i[o],$m(i,pt+n,e)):(i.push(e),e[yn]=null),e[ht]=i;let s=e[ao];s!==null&&i!==s&&c0(s,e);let a=e[qn];a!==null&&a.insertView(t),Ju(e),e[Q]|=128}function c0(t,e){let i=t[Zo],n=e[ht];if(vi(n))t[Q]|=Ua.HasTransplantedViews;else{let o=n[ht][kt];e[kt]!==o&&(t[Q]|=Ua.HasTransplantedViews)}i===null?t[Zo]=[e]:i.push(e)}function Cf(t,e){let i=t[Zo],n=i.indexOf(e);i.splice(n,1)}function es(t,e){if(t.length<=pt)return;let i=pt+e,n=t[i];if(n){let o=n[ao];o!==null&&o!==t&&Cf(o,n),e>0&&(t[i-1][yn]=n[yn]);let r=La(t,pt+e);Pb(n[X],n);let s=r[qn];s!==null&&s.detachView(r[X]),n[ht]=null,n[yn]=null,n[Q]&=-129}return n}function bl(t,e){if(!(e[Q]&256)){let i=e[Re];i.destroyNode&&wl(t,e,i,3,null,null),Vb(e)}}function ku(t,e){if(e[Q]&256)return;let i=ce(null);try{e[Q]&=-129,e[Q]|=256,e[jt]&&ru(e[jt]),Ub(t,e),jb(t,e),e[X].type===1&&e[Re].destroy();let n=e[ao];if(n!==null&&Jn(e[ht])){n!==e[ht]&&Cf(n,e);let o=e[qn];o!==null&&o.detachView(t)}cd(e)}finally{ce(i)}}function jb(t,e){let i=t.cleanup,n=e[Ba];if(i!==null)for(let r=0;r<i.length-1;r+=2)if(typeof i[r]=="string"){let s=i[r+3];s>=0?n[s]():n[-s].unsubscribe(),r+=2}else{let s=n[i[r+1]];i[r].call(s)}n!==null&&(e[Ba]=null);let o=e[_i];if(o!==null){e[_i]=null;for(let r=0;r<o.length;r++){let s=o[r];s()}}}function Ub(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let o=e[i[n]];if(!(o instanceof fo)){let r=i[n+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){let a=o[r[s]],l=r[s+1];Nn(4,a,l);try{l.call(a)}finally{Nn(5,a,l)}}else{Nn(4,o,r);try{r.call(o)}finally{Nn(5,o,r)}}}}}function u0(t,e,i){return Hb(t,e.parent,i)}function Hb(t,e,i){let n=e;for(;n!==null&&n.type&168;)e=n,n=e.parent;if(n===null)return i[Qn];{let{componentOffset:o}=n;if(o>-1){let{encapsulation:r}=t.data[n.directiveStart+o];if(r===Rn.None||r===Rn.Emulated)return null}return zt(n,i)}}function qa(t,e,i,n,o){t.insertBefore(e,i,n,o)}function d0(t,e,i){t.appendChild(e,i)}function _m(t,e,i,n,o){n!==null?qa(t,e,i,n,o):d0(t,e,i)}function f0(t,e){return t.parentNode(e)}function zb(t,e){return t.nextSibling(e)}function p0(t,e,i){return Gb(t,e,i)}function $b(t,e,i){return t.type&40?zt(t,i):null}var Gb=$b,vm;function Dl(t,e,i,n){let o=u0(t,n,e),r=e[Re],s=n.parent||e[Et],a=p0(s,n,e);if(o!=null)if(Array.isArray(i))for(let l=0;l<i.length;l++)_m(r,o,i[l],a,!1);else _m(r,o,i,a,!1);vm!==void 0&&vm(r,n,e,i,o)}function Yr(t,e){if(e!==null){let i=e.type;if(i&3)return zt(e,t);if(i&4)return yd(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Yr(t,n);{let o=t[e.index];return Jn(o)?yd(-1,o):Fn(o)}}else{if(i&128)return Yr(t,e.next);if(i&32)return yf(e,t)()||Fn(t[e.index]);{let n=h0(t,e);if(n!==null){if(Array.isArray(n))return n[0];let o=co(t[kt]);return Yr(o,n)}else return Yr(t,e.next)}}}return null}function h0(t,e){if(e!==null){let n=t[kt][Et],o=e.projection;return n.projection[o]}return null}function yd(t,e){let i=pt+t+1;if(i<e.length){let n=e[i],o=n[X].firstChild;if(o!==null)return Yr(n,o)}return e[lo]}function Wb(t,e,i){t.removeChild(null,e,i)}function bf(t,e,i,n,o,r,s){for(;i!=null;){if(i.type===128){i=i.next;continue}let a=n[i.index],l=i.type;if(s&&e===0&&(a&&Di(Fn(a),n),i.flags|=2),(i.flags&32)!==32)if(l&8)bf(t,e,i.child,n,o,r,!1),Ho(e,t,o,a,r);else if(l&32){let d=yf(i,n),p;for(;p=d();)Ho(e,t,o,p,r);Ho(e,t,o,a,r)}else l&16?m0(t,e,n,i,o,r):Ho(e,t,o,a,r);i=s?i.projectionNext:i.next}}function wl(t,e,i,n,o,r){bf(i,n,t.firstChild,e,o,r,!1)}function Yb(t,e,i){let n=e[Re],o=u0(t,i,e),r=i.parent||e[Et],s=p0(r,i,e);m0(n,0,e,i,o,s)}function m0(t,e,i,n,o,r){let s=i[kt],l=s[Et].projection[n.projection];if(Array.isArray(l))for(let d=0;d<l.length;d++){let p=l[d];Ho(e,t,o,p,r)}else{let d=l,p=s[ht];Hg(n)&&(d.flags|=128),bf(t,e,d,p,o,r,!0)}}function qb(t,e,i,n,o){let r=i[lo],s=Fn(i);r!==s&&Ho(e,t,n,r,o);for(let a=pt;a<i.length;a++){let l=i[a];wl(l[X],l,t,e,n,r)}}function Kb(t,e,i,n,o){if(e)o?t.addClass(i,n):t.removeClass(i,n);else{let r=n.indexOf("-")===-1?void 0:Pn.DashCase;o==null?t.removeStyle(i,n,r):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=Pn.Important),t.setStyle(i,n,o,r))}}function Zb(t,e,i){t.setAttribute(e,"style",i)}function g0(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function _0(t,e,i){let{mergedAttrs:n,classes:o,styles:r}=i;n!==null&&Wu(t,e,n),o!==null&&g0(t,e,o),r!==null&&Zb(t,e,r)}var St={};function h(t=1){v0(ke(),Z(),Xn()+t,!1)}function v0(t,e,i,n){if(!n)if((e[Q]&3)===3){let r=t.preOrderCheckHooks;r!==null&&Oa(e,r,i)}else{let r=t.preOrderHooks;r!==null&&Na(e,r,0,i)}uo(i)}function w(t,e=fe.Default){let i=Z();if(i===null)return H(t,e);let n=lt();return Pg(n,i,vt(t),e)}function y0(t,e,i,n,o,r){let s=ce(null);try{let a=null;o&yi.SignalBased&&(a=e[n][Tn]),a!==null&&a.transformFn!==void 0&&(r=a.transformFn(r)),o&yi.HasDecoratorInputTransform&&(r=t.inputTransforms[n].call(e,r)),t.setInput!==null?t.setInput(e,a,r,i,n):cg(e,a,n,r)}finally{ce(s)}}function Qb(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let o=i[n];if(o<0)uo(~o);else{let r=o,s=i[++n],a=i[++n];yC(s,r);let l=e[r];a(2,l)}}}finally{uo(-1)}}function El(t,e,i,n,o,r,s,a,l,d,p){let m=e.blueprint.slice();return m[Qn]=o,m[Q]=n|4|128|8|64,(d!==null||t&&t[Q]&2048)&&(m[Q]|=2048),hg(m),m[ht]=m[ir]=t,m[ft]=i,m[kn]=s||t&&t[kn],m[Re]=a||t&&t[Re],m[Ko]=l||t&&t[Ko]||null,m[Et]=r,m[dl]=tb(),m[qo]=p,m[ag]=d,m[kt]=e.type==2?t[kt]:m,m}function sr(t,e,i,n,o){let r=t.data[e];if(r===null)r=Jb(t,e,i,n,o),vC()&&(r.flags|=32);else if(r.type&64){r.type=i,r.value=n,r.attrs=o;let s=hC();r.injectorIndex=s===null?-1:s.injectorIndex}return go(r,!0),r}function Jb(t,e,i,n,o){let r=Cg(),s=sf(),a=s?r:r&&r.parent,l=t.data[e]=oD(t,a,i,e,n,o);return t.firstChild===null&&(t.firstChild=l),r!==null&&(s?r.child==null&&l.parent!==null&&(r.child=l):r.next===null&&(r.next=l,l.prev=r)),l}function C0(t,e,i,n){if(i===0)return-1;let o=e.length;for(let r=0;r<i;r++)e.push(n),t.blueprint.push(n),t.data.push(null);return o}function b0(t,e,i,n,o){let r=Xn(),s=n&2;try{uo(-1),s&&e.length>et&&v0(t,e,et,!1),Nn(s?2:0,o),i(n,o)}finally{uo(r),Nn(s?3:1,o)}}function Df(t,e,i){if(tf(e)){let n=ce(null);try{let o=e.directiveStart,r=e.directiveEnd;for(let s=o;s<r;s++){let a=t.data[s];if(a.contentQueries){let l=i[s];a.contentQueries(1,l,s)}}}finally{ce(n)}}}function wf(t,e,i){vg()&&(uD(t,e,i,zt(i,e)),(i.flags&64)===64&&E0(t,e,i))}function Ef(t,e,i=zt){let n=e.localNames;if(n!==null){let o=e.index+1;for(let r=0;r<n.length;r+=2){let s=n[r+1],a=s===-1?i(e,t):t[s];t[o++]=a}}}function D0(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Sf(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Sf(t,e,i,n,o,r,s,a,l,d,p){let m=et+n,_=m+o,g=Xb(m,_),D=typeof d=="function"?d():d;return g[X]={type:t,blueprint:g,template:i,queries:null,viewQuery:a,declTNode:e,data:g.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:_,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 r=="function"?r():r,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:D,incompleteFirstPass:!1,ssrId:p}}function Xb(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:St);return i}function eD(t,e,i,n){let r=n.get(lb,qg)||i===Rn.ShadowDom,s=t.selectRootElement(e,r);return tD(s),s}function tD(t){nD(t)}var nD=()=>null;function iD(t,e,i,n){let o=T0(e);o.push(i),t.firstCreatePass&&I0(t).push(n,o.length-1)}function oD(t,e,i,n,o,r){let s=e?e.injectorIndex:-1,a=0;return yg()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ym(t,e,i,n,o){for(let r in e){if(!e.hasOwnProperty(r))continue;let s=e[r];if(s===void 0)continue;n??={};let a,l=yi.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let d=r;if(o!==null){if(!o.hasOwnProperty(r))continue;d=o[r]}t===0?Cm(n,i,d,a,l):Cm(n,i,d,a)}return n}function Cm(t,e,i,n,o){let r;t.hasOwnProperty(i)?(r=t[i]).push(e,n):r=t[i]=[e,n],o!==void 0&&r.push(o)}function rD(t,e,i){let n=e.directiveStart,o=e.directiveEnd,r=t.data,s=e.attrs,a=[],l=null,d=null;for(let p=n;p<o;p++){let m=r[p],_=i?i.get(m):null,g=_?_.inputs:null,D=_?_.outputs:null;l=ym(0,m.inputs,p,l,g),d=ym(1,m.outputs,p,d,D);let x=l!==null&&s!==null&&!Jd(e)?bD(l,p,s):null;a.push(x)}l!==null&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=d}function sD(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Sl(t,e,i,n,o,r,s,a){let l=zt(e,i),d=e.inputs,p;!a&&d!=null&&(p=d[n])?(Tf(t,i,p,n,o),fl(e)&&aD(i,e.index)):e.type&3?(n=sD(n),o=s!=null?s(o,e.value||"",n):o,r.setProperty(l,n,o)):e.type&12}function aD(t,e){let i=wi(e,t);i[Q]&16||(i[Q]|=64)}function Mf(t,e,i,n){if(vg()){let o=n===null?null:{"":-1},r=fD(t,i),s,a;r===null?s=a=null:[s,a]=r,s!==null&&w0(t,e,i,s,o,a),o&&pD(i,n,o)}i.mergedAttrs=Qr(i.mergedAttrs,i.attrs)}function w0(t,e,i,n,o,r){for(let d=0;d<n.length;d++)nd(Ga(i,e),t,n[d].type);mD(i,t.data.length,n.length);for(let d=0;d<n.length;d++){let p=n[d];p.providersResolver&&p.providersResolver(p)}let s=!1,a=!1,l=C0(t,e,n.length,null);for(let d=0;d<n.length;d++){let p=n[d];i.mergedAttrs=Qr(i.mergedAttrs,p.hostAttrs),gD(t,i,e,l,p),hD(l,p,o),p.contentQueries!==null&&(i.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(i.flags|=64);let m=p.type.prototype;!s&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),s=!0),!a&&(m.ngOnChanges||m.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),l++}rD(t,i,r)}function lD(t,e,i,n,o){let r=o.hostBindings;if(r){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;cD(s)!=a&&s.push(a),s.push(i,n,r)}}function cD(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function uD(t,e,i,n){let o=i.directiveStart,r=i.directiveEnd;fl(i)&&_D(e,i,t.data[o+i.componentOffset]),t.firstCreatePass||Ga(i,e),Di(n,e);let s=i.initialInputs;for(let a=o;a<r;a++){let l=t.data[a],d=po(e,t,a,i);if(Di(d,e),s!==null&&CD(e,a-o,d,l,i,s),Ci(l)){let p=wi(i.index,e);p[ft]=po(e,t,a,i)}}}function E0(t,e,i){let n=i.directiveStart,o=i.directiveEnd,r=i.index,s=CC();try{uo(r);for(let a=n;a<o;a++){let l=t.data[a],d=e[a];Xu(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&dD(l,d)}}finally{uo(-1),Xu(s)}}function dD(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function fD(t,e){let i=t.directiveRegistry,n=null,o=null;if(i)for(let r=0;r<i.length;r++){let s=i[r];if(Zm(e,s.selectors,!1))if(n||(n=[]),Ci(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),n.unshift(...a,s);let l=a.length;Cd(t,e,l)}else n.unshift(s),Cd(t,e,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,n,o),n.push(s)}return n===null?null:[n,o]}function Cd(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function pD(t,e,i){if(e){let n=t.localNames=[];for(let o=0;o<e.length;o+=2){let r=i[e[o+1]];if(r==null)throw new q(-301,!1);n.push(e[o],r)}}}function hD(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;Ci(e)&&(i[""]=t)}}function mD(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function gD(t,e,i,n,o){t.data[n]=o;let r=o.factory||(o.factory=ro(o.type,!0)),s=new fo(r,Ci(o),w);t.blueprint[n]=s,i[n]=s,lD(t,e,n,C0(t,i,o.hostVars,St),o)}function _D(t,e,i){let n=zt(e,t),o=D0(i),r=t[kn].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=Ml(t,El(t,o,null,s,n,e,null,r.createRenderer(n,i),null,null,null));t[e.index]=a}function vD(t,e,i,n,o,r){let s=zt(t,e);yD(e[Re],s,r,t.value,i,n,o)}function yD(t,e,i,n,o,r,s){if(r==null)t.removeAttribute(e,o,i);else{let a=s==null?Go(r):s(r,n||"",o);t.setAttribute(e,o,a,i)}}function CD(t,e,i,n,o,r){let s=r[e];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],d=s[a++],p=s[a++],m=s[a++];y0(n,i,l,d,p,m)}}function bD(t,e,i){let n=null,o=0;for(;o<i.length;){let r=i[o];if(r===0){o+=4;continue}else if(r===5){o+=2;continue}if(typeof r=="number")break;if(t.hasOwnProperty(r)){n===null&&(n=[]);let s=t[r];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(r,s[a+1],s[a+2],i[o+1]);break}}o+=2}return n}function S0(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function M0(t,e){let i=t.contentQueries;if(i!==null){let n=ce(null);try{for(let o=0;o<i.length;o+=2){let r=i[o],s=i[o+1];if(s!==-1){let a=t.data[s];cf(r),a.contentQueries(2,e[s],s)}}}finally{ce(n)}}}function Ml(t,e){return t[Xr]?t[tm][yn]=e:t[Xr]=e,t[tm]=e,e}function bd(t,e,i){cf(0);let n=ce(null);try{e(t,i)}finally{ce(n)}}function T0(t){return t[Ba]??=[]}function I0(t){return t.cleanup??=[]}function x0(t,e){let i=t[Ko],n=i?i.get(Kn,null):null;n&&n.handleError(e)}function Tf(t,e,i,n,o){for(let r=0;r<i.length;){let s=i[r++],a=i[r++],l=i[r++],d=e[s],p=t.data[s];y0(p,d,n,a,l,o)}}function O0(t,e,i){let n=pg(e,t);kb(t[Re],n,i)}function DD(t,e){let i=wi(e,t),n=i[X];wD(n,i);let o=i[Qn];o!==null&&i[qo]===null&&(i[qo]=vf(o,i[Ko])),If(n,i,i[ft])}function wD(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function If(t,e,i){uf(e);try{let n=t.viewQuery;n!==null&&bd(1,n,i);let o=t.template;o!==null&&b0(t,e,o,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[qn]?.finishViewCreation(t),t.staticContentQueries&&M0(t,e),t.staticViewQueries&&bd(2,t.viewQuery,i);let r=t.components;r!==null&&ED(e,r)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[Q]&=-5,df()}}function ED(t,e){for(let i=0;i<e.length;i++)DD(t,e[i])}function ds(t,e,i,n){let o=ce(null);try{let r=e.tView,a=t[Q]&4096?4096:16,l=El(t,r,i,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),d=t[e.index];l[ao]=d;let p=t[qn];return p!==null&&(l[qn]=p.createEmbeddedView(r)),If(r,l,i),l}finally{ce(o)}}function N0(t,e){let i=pt+e;if(i<t.length)return t[i]}function Qo(t,e){return!e||e.firstChild===null||Hg(t)}function fs(t,e,i,n=!0){let o=e[X];if(Bb(o,e,t,i),n){let s=yd(i,t),a=e[Re],l=f0(a,t[lo]);l!==null&&Lb(o,t[Et],a,e,l,s)}let r=e[qo];r!==null&&r.firstChild!==null&&(r.firstChild=null)}function A0(t,e){let i=es(t,e);return i!==void 0&&bl(i[X],i),i}function Ka(t,e,i,n,o=!1){for(;i!==null;){if(i.type===128){i=o?i.projectionNext:i.next;continue}let r=e[i.index];r!==null&&n.push(Fn(r)),Jn(r)&&SD(r,n);let s=i.type;if(s&8)Ka(t,e,i.child,n);else if(s&32){let a=yf(i,e),l;for(;l=a();)n.push(l)}else if(s&16){let a=h0(e,i);if(Array.isArray(a))n.push(...a);else{let l=co(e[kt]);Ka(l[X],l,a,n,!0)}}i=o?i.projectionNext:i.next}return n}function SD(t,e){for(let i=pt;i<t.length;i++){let n=t[i],o=n[X].firstChild;o!==null&&Ka(n[X],n,o,e)}t[lo]!==t[Qn]&&e.push(t[lo])}var R0=[];function MD(t){return t[jt]??TD(t)}function TD(t){let e=R0.pop()??Object.create(xD);return e.lView=t,e}function ID(t){t.lView[jt]!==t&&(t.lView=null,R0.push(t))}var xD=Se(Y({},Ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{ml(t.lView)},consumerOnSignalRead(){this.lView[jt]=this}});function OD(t){let e=t[jt]??Object.create(ND);return e.lView=t,e}var ND=Se(Y({},Ur),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=co(t.lView);for(;e&&!k0(e[X]);)e=co(e);e&&mg(e)},consumerOnSignalRead(){this.lView[jt]=this}});function k0(t){return t.type!==2}var AD=100;function F0(t,e=!0,i=0){let n=t[kn],o=n.rendererFactory,r=!1;r||o.begin?.();try{RD(t,i)}catch(s){throw e&&x0(t,s),s}finally{r||(o.end?.(),n.inlineEffectRunner?.flush())}}function RD(t,e){let i=bg();try{im(!0),Dd(t,e);let n=0;for(;hl(t);){if(n===AD)throw new q(103,!1);n++,Dd(t,1)}}finally{im(i)}}function kD(t,e,i,n){let o=e[Q];if((o&256)===256)return;let r=!1,s=!1;!r&&e[kn].inlineEffectRunner?.flush(),uf(e);let a=!0,l=null,d=null;r||(k0(t)?(d=MD(e),l=Ys(d)):ih()===null?(a=!1,d=OD(e),l=Ys(d)):e[jt]&&(ru(e[jt]),e[jt]=null));try{hg(e),_C(t.bindingStartIndex),i!==null&&b0(t,e,i,2,n);let p=(o&3)===3;if(!r)if(p){let g=t.preOrderCheckHooks;g!==null&&Oa(e,g,null)}else{let g=t.preOrderHooks;g!==null&&Na(e,g,0,null),Ou(e,0)}if(s||FD(e),P0(e,0),t.contentQueries!==null&&M0(t,e),!r)if(p){let g=t.contentCheckHooks;g!==null&&Oa(e,g)}else{let g=t.contentHooks;g!==null&&Na(e,g,1),Ou(e,1)}Qb(t,e);let m=t.components;m!==null&&V0(e,m,0);let _=t.viewQuery;if(_!==null&&bd(2,_,n),!r)if(p){let g=t.viewCheckHooks;g!==null&&Oa(e,g)}else{let g=t.viewHooks;g!==null&&Na(e,g,2),Ou(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[xu]){for(let g of e[xu])g();e[xu]=null}r||(e[Q]&=-73)}catch(p){throw r||ml(e),p}finally{d!==null&&(iu(d,l),a&&ID(d)),df()}}function P0(t,e){for(let i=$g(t);i!==null;i=Gg(i))for(let n=pt;n<i.length;n++){let o=i[n];L0(o,e)}}function FD(t){for(let e=$g(t);e!==null;e=Gg(e)){if(!(e[Q]&Ua.HasTransplantedViews))continue;let i=e[Zo];for(let n=0;n<i.length;n++){let o=i[n];mg(o)}}}function PD(t,e,i){let n=wi(e,t);L0(n,i)}function L0(t,e){rf(t)&&Dd(t,e)}function Dd(t,e){let n=t[X],o=t[Q],r=t[jt],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(r?.dirty&&ou(r)),s||=!1,r&&(r.dirty=!1),t[Q]&=-9217,s)kD(n,t,n.template,t[ft]);else if(o&8192){P0(t,1);let a=n.components;a!==null&&V0(t,a,1)}}function V0(t,e,i){for(let n=0;n<e.length;n++)PD(t,e[n],i)}function xf(t,e){let i=bg()?64:1088;for(t[kn].changeDetectionScheduler?.notify(e);t;){t[Q]|=i;let n=co(t);if(Zu(t)&&!n)return t;t=n}return null}var ho=class{get rootNodes(){let e=this._lView,i=e[X];return Ka(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ft]}set context(e){this._lView[ft]=e}get destroyed(){return(this._lView[Q]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[ht];if(Jn(e)){let i=e[ja],n=i?i.indexOf(this):-1;n>-1&&(es(e,n),La(i,n))}this._attachedToViewContainer=!1}bl(this._lView[X],this._lView)}onDestroy(e){gg(this._lView,e)}markForCheck(){xf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Q]&=-129}reattach(){Ju(this._lView),this._lView[Q]|=128}detectChanges(){this._lView[Q]|=1024,F0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Zu(this._lView),i=this._lView[ao];i!==null&&!e&&Cf(i,this._lView),l0(this._lView[X],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new q(902,!1);this._appRef=e;let i=Zu(this._lView),n=this._lView[ao];n!==null&&!i&&c0(n,this._lView),Ju(this._lView)}},Ln=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BD;let t=e;return t})(),LD=Ln,VD=class extends LD{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let o=ds(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new ho(o)}};function BD(){return Tl(lt(),Z())}function Tl(t,e){return t.type&4?new VD(e,t,rr(t,e)):null}var xL=new RegExp(`^(\\d+)*(${sb}|${rb})*(.*)`);var jD=()=>null;function Jo(t,e){return jD(t,e)}var Xo=class{},Il=new G("",{providedIn:"root",factory:()=>!1});var B0=new G(""),j0=new G(""),wd=class{},Za=class{};function UD(t){let e=Error(`No component factory found for ${At(t)}.`);return e[HD]=t,e}var HD="ngComponent";var Ed=class{resolveComponentFactory(e){throw UD(e)}},Vf=class Vf{};Vf.NULL=new Ed;var ts=Vf,er=class{},Wt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>zD();let t=e;return t})();function zD(){let t=Z(),e=lt(),i=wi(e.index,t);return(vi(i)?i:t)[Re]}var $D=(()=>{let e=class e{};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();function Qa(t,e,i){let n=i?t.styles:null,o=i?t.classes:null,r=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")r=a;else if(r==1)o=Hu(o,a);else if(r==2){let l=a,d=e[++s];n=Hu(n,l+": "+d+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=o:t.classesWithoutHost=o}var Sd=class extends ts{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=so(e);return new ns(i,this.ngModule)}};function bm(t,e){let i=[];for(let n in t){if(!t.hasOwnProperty(n))continue;let o=t[n];if(o===void 0)continue;let r=Array.isArray(o),s=r?o[0]:o,a=r?o[1]:yi.None;e?i.push({propName:s,templateName:n,isSignal:(a&yi.SignalBased)!==0}):i.push({propName:s,templateName:n})}return i}function GD(t){let e=t.toLowerCase();return e==="svg"?iC:e==="math"?oC:null}var ns=class extends Za{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=bm(e.inputs,!0);if(i!==null)for(let o of n)i.hasOwnProperty(o.propName)&&(o.transform=i[o.propName]);return n}get outputs(){return bm(this.componentDef.outputs,!1)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=P1(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,o){let r=ce(null);try{o=o||this.ngModule;let s=o instanceof Rt?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new ed(e,s):e,l=a.get(er,null);if(l===null)throw new q(407,!1);let d=a.get($D,null),p=a.get(Xo,null),m={rendererFactory:l,sanitizer:d,inlineEffectRunner:null,changeDetectionScheduler:p},_=l.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",D=n?eD(_,n,this.componentDef.encapsulation,a):a0(_,g,GD(g)),x=512;this.componentDef.signals?x|=4096:this.componentDef.onPush||(x|=16);let O=null;D!==null&&(O=vf(D,a,!0));let N=Sf(0,null,null,1,0,null,null,null,null,null,null),z=El(null,N,null,x,null,null,m,_,a,null,O);uf(z);let le,P,oe=null;try{let $=this.componentDef,pe,Ae=null;$.findHostDirectiveDefs?(pe=[],Ae=new Map,$.findHostDirectiveDefs($,pe,Ae),pe.push($)):pe=[$];let $e=WD(z,D);oe=YD($e,D,$,pe,z,m,_),P=nf(N,et),D&&ZD(_,$,D,n),i!==void 0&&QD(P,this.ngContentSelectors,i),le=KD(oe,$,pe,Ae,z,[JD]),If(N,z,null)}catch($){throw oe!==null&&cd(oe),cd(z),$}finally{df()}return new Md(this.componentType,le,rr(P,z),z,P)}finally{ce(r)}}},Md=class extends wd{constructor(e,i,n,o,r){super(),this.location=n,this._rootLView=o,this._tNode=r,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new ho(o,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,o;if(n!==null&&(o=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let r=this._rootLView;Tf(r[X],r,o,e,i),this.previousInputValues.set(e,i);let s=wi(this._tNode.index,r);xf(s,1)}}get injector(){return new oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function WD(t,e){let i=t[X],n=et;return t[n]=e,sr(i,n,2,"#host",null)}function YD(t,e,i,n,o,r,s){let a=o[X];qD(n,t,e,s);let l=null;e!==null&&(l=vf(e,o[Ko]));let d=r.rendererFactory.createRenderer(e,i),p=16;i.signals?p=4096:i.onPush&&(p=64);let m=El(o,D0(i),null,p,o[t.index],t,r,d,null,null,l);return a.firstCreatePass&&Cd(a,t,n.length-1),Ml(o,m),o[t.index]=m}function qD(t,e,i,n){for(let o of t)e.mergedAttrs=Qr(e.mergedAttrs,o.hostAttrs);e.mergedAttrs!==null&&(Qa(e,e.mergedAttrs,!0),i!==null&&_0(n,i,e))}function KD(t,e,i,n,o,r){let s=lt(),a=o[X],l=zt(s,o);w0(a,o,s,i,null,n);for(let p=0;p<i.length;p++){let m=s.directiveStart+p,_=po(o,a,m,s);Di(_,o)}E0(a,o,s),l&&Di(l,o);let d=po(o,a,s.directiveStart+s.componentOffset,s);if(t[ft]=o[ft]=d,r!==null)for(let p of r)p(d,e);return Df(a,s,o),d}function ZD(t,e,i,n){if(n)Wu(t,i,["ng-version","18.2.11"]);else{let{attrs:o,classes:r}=L1(e.selectors[0]);o&&Wu(t,i,o),r&&r.length>0&&g0(t,i,r.join(" "))}}function QD(t,e,i){let n=t.projection=[];for(let o=0;o<e.length;o++){let r=i[o];n.push(r!=null?Array.from(r):null)}}function JD(){let t=lt();vl(Z()[X],t)}var Ei=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=XD;let t=e;return t})();function XD(){let t=lt();return H0(t,Z())}var ew=Ei,U0=class extends ew{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return rr(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){let e=ff(this._hostTNode,this._hostLView);if(Og(e)){let i=za(e,this._hostLView),n=Ha(e),o=i[X].data[n+8];return new oo(o,i)}else return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=Dm(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-pt}createEmbeddedView(e,i,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let s=Jo(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},r,s);return this.insertImpl(a,o,Qo(this._hostTNode,s)),a}createComponent(e,i,n,o,r){let s=e&&!X1(e),a;if(s)a=i;else{let D=i||{};a=D.index,n=D.injector,o=D.projectableNodes,r=D.environmentInjector||D.ngModuleRef}let l=s?e:new ns(so(e)),d=n||this.parentInjector;if(!r&&l.ngModule==null){let x=(s?d:this.parentInjector).get(Rt,null);x&&(r=x)}let p=so(l.componentType??{}),m=Jo(this._lContainer,p?.id??null),_=m?.firstChild??null,g=l.create(d,o,_,r);return this.insertImpl(g.hostView,a,Qo(this._hostTNode,m)),g}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let o=e._lView;if(sC(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=o[ht],d=new U0(l,l[Et],l[ht]);d.detach(d.indexOf(e))}}let r=this._adjustIndex(i),s=this._lContainer;return fs(s,o,r,n),e.attachToViewContainerRef(),$m(Fu(s),r,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=Dm(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=es(this._lContainer,i);n&&(La(Fu(this._lContainer),i),bl(n[X],n))}detach(e){let i=this._adjustIndex(e,-1),n=es(this._lContainer,i);return n&&La(Fu(this._lContainer),i)!=null?new ho(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function Dm(t){return t[ja]}function Fu(t){return t[ja]||(t[ja]=[])}function H0(t,e){let i,n=e[t.index];return Jn(n)?i=n:(i=S0(n,e,null,t),e[t.index]=i,Ml(e,i)),nw(i,e,t,n),new U0(i,t,e)}function tw(t,e){let i=t[Re],n=i.createComment(""),o=zt(e,t),r=f0(i,o);return qa(i,r,n,zb(i,o),!1),n}var nw=rw,iw=()=>!1;function ow(t,e,i){return iw(t,e,i)}function rw(t,e,i,n){if(t[lo])return;let o;i.type&8?o=Fn(n):o=tw(e,i),t[lo]=o}var Td=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Id=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,o=[];for(let r=0;r<n;r++){let s=i.getByIndex(r),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)Of(e,i).matches!==null&&this.queries[i].setDirty()}},Ja=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=pw(e):this.predicate=e}},xd=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let o=i!==null?i.length:0,r=this.getByIndex(n).embeddedTView(e,o);r&&(r.indexInDeclarationView=n,i!==null?i.push(r):i=[r])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Od=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let o=0;o<n.length;o++){let r=n[o];this.matchTNodeWithReadOption(e,i,sw(i,r)),this.matchTNodeWithReadOption(e,i,Aa(i,e,r,!1,!1))}else n===Ln?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,Aa(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let o=this.metadata.read;if(o!==null)if(o===ye||o===Ei||o===Ln&&i.type&4)this.addMatch(i.index,-2);else{let r=Aa(i,e,o,!1,!1);r!==null&&this.addMatch(i.index,r)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};function sw(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function aw(t,e){return t.type&11?rr(t,e):t.type&4?Tl(t,e):null}function lw(t,e,i,n){return i===-1?aw(e,t):i===-2?cw(t,e,n):po(t,t[X],i,e)}function cw(t,e,i){if(i===ye)return rr(e,t);if(i===Ln)return Tl(e,t);if(i===Ei)return H0(e,t)}function z0(t,e,i,n){let o=e[qn].queries[n];if(o.matches===null){let r=t.data,s=i.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let d=s[l];if(d<0)a.push(null);else{let p=r[d];a.push(lw(e,p,s[l+1],i.metadata.read))}}o.matches=a}return o.matches}function Nd(t,e,i,n){let o=t.queries.getByIndex(i),r=o.matches;if(r!==null){let s=z0(t,e,o,i);for(let a=0;a<r.length;a+=2){let l=r[a];if(l>0)n.push(s[a/2]);else{let d=r[a+1],p=e[-l];for(let m=pt;m<p.length;m++){let _=p[m];_[ao]===_[ht]&&Nd(_[X],_,d,n)}if(p[Zo]!==null){let m=p[Zo];for(let _=0;_<m.length;_++){let g=m[_];Nd(g[X],g,d,n)}}}}}return n}function uw(t,e){return t[qn].queries[e].queryList}function $0(t,e,i){let n=new ld((i&4)===4);return iD(t,e,n,n.destroy),(e[qn]??=new Id).queries.push(new Td(n))-1}function dw(t,e,i){let n=ke();return n.firstCreatePass&&(G0(n,new Ja(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),$0(n,Z(),e)}function fw(t,e,i,n){let o=ke();if(o.firstCreatePass){let r=lt();G0(o,new Ja(e,i,n),r.index),hw(o,t),(i&2)===2&&(o.staticContentQueries=!0)}return $0(o,Z(),i)}function pw(t){return t.split(",").map(e=>e.trim())}function G0(t,e,i){t.queries===null&&(t.queries=new xd),t.queries.track(new Od(e,i))}function hw(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Of(t,e){return t.queries.getByIndex(e)}function mw(t,e){let i=t[X],n=Of(i,e);return n.crossesNgTemplate?Nd(i,t,e,[]):z0(i,t,n,e)}var wm=new Set;function jn(t){wm.has(t)||(wm.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function gw(t){return typeof t=="function"&&t[Tn]!==void 0}function Si(t,e){jn("NgSignals");let i=hh(t),n=i[Tn];return e?.equal&&(n.equal=e.equal),i.set=o=>Zs(n,o),i.update=o=>mh(n,o),i.asReadonly=_w.bind(i),i}function _w(){let t=this[Tn];if(t.readonlyFn===void 0){let e=()=>this();e[Tn]=t,t.readonlyFn=e}return t.readonlyFn}function W0(t){return gw(t)&&typeof t.set=="function"}function vw(t){return Object.getPrototypeOf(t.prototype).constructor}function tt(t){let e=vw(t.type),i=!0,n=[t];for(;e;){let o;if(Ci(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new q(903,!1);o=e.\u0275dir}if(o){if(i){n.push(o);let s=t;s.inputs=Ma(t.inputs),s.inputTransforms=Ma(t.inputTransforms),s.declaredInputs=Ma(t.declaredInputs),s.outputs=Ma(t.outputs);let a=o.hostBindings;a&&ww(t,a);let l=o.viewQuery,d=o.contentQueries;if(l&&bw(t,l),d&&Dw(t,d),yw(t,o),t1(t.outputs,o.outputs),Ci(o)&&o.data.animation){let p=t.data;p.animation=(p.animation||[]).concat(o.data.animation)}}let r=o.features;if(r)for(let s=0;s<r.length;s++){let a=r[s];a&&a.ngInherit&&a(t),a===tt&&(i=!1)}}e=Object.getPrototypeOf(e)}Cw(n)}function yw(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let o=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(o))continue;t.inputTransforms??={},t.inputTransforms[o]=e.inputTransforms[o]}}}function Cw(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=Qr(o.hostAttrs,i=Qr(i,o.hostAttrs))}}function Ma(t){return t===Wo?{}:t===wt?[]:t}function bw(t,e){let i=t.viewQuery;i?t.viewQuery=(n,o)=>{e(n,o),i(n,o)}:t.viewQuery=e}function Dw(t,e){let i=t.contentQueries;i?t.contentQueries=(n,o,r)=>{e(n,o,r),i(n,o,r)}:t.contentQueries=e}function ww(t,e){let i=t.hostBindings;i?t.hostBindings=(n,o)=>{e(n,o),i(n,o)}:t.hostBindings=e}var tr=class{};var Xa=class extends tr{constructor(e){super(),this.componentFactoryResolver=new Sd(this),this.instance=null;let i=new Jr([...e.providers,{provide:tr,useValue:this},{provide:ts,useValue:this.componentFactoryResolver}],e.parent||cl(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ew(t,e,i=null){return new Xa({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function Y0(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function xl(t,e,i){return t[e]=i}function Sw(t,e){return t[e]}function Ft(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function Nf(t,e,i,n){let o=Ft(t,e,i);return Ft(t,e+1,n)||o}function Mw(t,e,i,n,o){let r=Nf(t,e,i,n);return Ft(t,e+2,o)||r}function Tw(t){return(t.flags&32)===32}function Iw(t,e,i,n,o,r,s,a,l){let d=e.consts,p=sr(e,t,4,s||null,a||null);Mf(e,i,p,bi(d,l)),vl(e,p);let m=p.tView=Sf(2,p,n,o,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,d,null);return e.queries!==null&&(e.queries.template(e,p),m.queries=e.queries.embeddedTView(p)),p}function el(t,e,i,n,o,r,s,a,l,d){let p=i+et,m=e.firstCreatePass?Iw(p,e,t,n,o,r,s,a,l):e.data[p];go(m,!1);let _=xw(e,t,m,i);gl()&&Dl(e,t,_,m),Di(_,t);let g=S0(_,t,_,m);return t[p]=g,Ml(t,g),ow(g,m,t),pl(m)&&wf(e,t,m),l!=null&&Ef(t,m,d),m}function S(t,e,i,n,o,r,s,a){let l=Z(),d=ke(),p=bi(d.consts,r);return el(l,d,t,e,i,n,o,p,s,a),S}var xw=Ow;function Ow(t,e,i,n){return _l(!0),e[Re].createComment("")}var Nt=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Nt||{}),q0=(()=>{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})(),no=class no{constructor(){this.ngZone=b(ge),this.scheduler=b(Xo),this.errorHandler=b(Kn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of no.PHASES)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[e]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>i.hooks[e](i.pipelinedValue))}catch(n){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};no.PHASES=[Nt.EarlyRead,Nt.Write,Nt.MixedReadWrite,Nt.Read],no.\u0275prov=L({token:no,providedIn:"root",factory:()=>new no});var Ad=no,Rd=class{constructor(e,i,n,o){this.impl=e,this.hooks=i,this.once=n,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Ol(t,e){!e?.injector&&ul(Ol);let i=e?.injector??b(He);return s0(i)?(jn("NgAfterRender"),K0(t,i,e,!1)):Z0}function ar(t,e){!e?.injector&&ul(ar);let i=e?.injector??b(He);return s0(i)?(jn("NgAfterNextRender"),K0(t,i,e,!0)):Z0}function Nw(t,e){if(t instanceof Function){let i=[void 0,void 0,void 0,void 0];return i[e]=t,i}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function K0(t,e,i,n){let o=e.get(q0);o.impl??=e.get(Ad);let r=i?.phase??Nt.MixedReadWrite,s=i?.manualCleanup!==!0?e.get(ei):null,a=new Rd(o.impl,Nw(t,r),n,s);return o.impl.register(a),a}var Z0={destroy(){}};function Mt(t,e,i,n){let o=Z(),r=_o();if(Ft(o,r,e)){let s=ke(),a=ls();vD(a,o,t,e,i,n)}return Mt}function Af(t,e,i,n){return Ft(t,_o(),i)?e+Go(i)+n:St}function Aw(t,e,i,n,o,r){let s=gC(),a=Nf(t,s,i,o);return lf(2),a?e+Go(i)+n+Go(o)+r:St}function Ta(t,e){return t<<17|e<<2}function mo(t){return t>>17&32767}function Rw(t){return(t&2)==2}function kw(t,e){return t&131071|e<<17}function kd(t){return t|2}function nr(t){return(t&131068)>>2}function Pu(t,e){return t&-131069|e<<2}function Fw(t){return(t&1)===1}function Fd(t){return t|1}function Pw(t,e,i,n,o,r){let s=r?e.classBindings:e.styleBindings,a=mo(s),l=nr(s);t[n]=i;let d=!1,p;if(Array.isArray(i)){let m=i;p=m[1],(p===null||rs(m,p)>0)&&(d=!0)}else p=i;if(o)if(l!==0){let _=mo(t[a+1]);t[n+1]=Ta(_,a),_!==0&&(t[_+1]=Pu(t[_+1],n)),t[a+1]=kw(t[a+1],n)}else t[n+1]=Ta(a,0),a!==0&&(t[a+1]=Pu(t[a+1],n)),a=n;else t[n+1]=Ta(l,0),a===0?a=n:t[l+1]=Pu(t[l+1],n),l=n;d&&(t[n+1]=kd(t[n+1])),Em(t,p,n,!0),Em(t,p,n,!1),Lw(e,p,t,n,r),s=Ta(a,l),r?e.classBindings=s:e.styleBindings=s}function Lw(t,e,i,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof e=="string"&&rs(r,e)>=0&&(i[n+1]=Fd(i[n+1]))}function Em(t,e,i,n){let o=t[i+1],r=e===null,s=n?mo(o):nr(o),a=!1;for(;s!==0&&(a===!1||r);){let l=t[s],d=t[s+1];Vw(l,e)&&(a=!0,t[s+1]=n?Fd(d):kd(d)),s=n?mo(d):nr(d)}a&&(t[i+1]=n?kd(o):Fd(o))}function Vw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?rs(t,e)>=0:!1}var vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bw(t){return t.substring(vn.key,vn.keyEnd)}function jw(t){return Uw(t),Q0(t,J0(t,0,vn.textEnd))}function Q0(t,e){let i=vn.textEnd;return i===e?-1:(e=vn.keyEnd=Hw(t,vn.key=e,i),J0(t,e,i))}function Uw(t){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=t.length}function J0(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function Hw(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function A(t,e,i){let n=Z(),o=_o();if(Ft(n,o,e)){let r=ke(),s=ls();Sl(r,s,n,t,e,n[Re],i,!1)}return A}function Pd(t,e,i,n,o){let r=e.inputs,s=o?"class":"style";Tf(t,i,r[s],s,n)}function Ce(t,e,i){return e_(t,e,i,!1),Ce}function Qe(t,e){return e_(t,e,null,!0),Qe}function lr(t){t_(qw,X0,t,!0)}function X0(t,e){for(let i=jw(e);i>=0;i=Q0(e,i))al(t,Bw(e),!0)}function e_(t,e,i,n){let o=Z(),r=ke(),s=lf(2);if(r.firstUpdatePass&&i_(r,t,s,n),e!==St&&Ft(o,s,e)){let a=r.data[Xn()];o_(r,a,o,o[Re],t,o[s+1]=Zw(e,i),n,s)}}function t_(t,e,i,n){let o=ke(),r=lf(2);o.firstUpdatePass&&i_(o,null,r,n);let s=Z();if(i!==St&&Ft(s,r,i)){let a=o.data[Xn()];if(r_(a,n)&&!n_(o,r)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=Hu(l,i||"")),Pd(o,a,s,i,n)}else Kw(o,a,s,s[Re],s[r+1],s[r+1]=Yw(t,e,i),n,r)}}function n_(t,e){return e>=t.expandoStartIndex}function i_(t,e,i,n){let o=t.data;if(o[i+1]===null){let r=o[Xn()],s=n_(t,i);r_(r,n)&&e===null&&!s&&(e=!1),e=zw(o,r,e,n),Pw(o,r,e,i,s,n)}}function zw(t,e,i,n){let o=bC(t),r=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(i=Lu(null,t,e,i,n),i=is(i,e.attrs,n),r=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(i=Lu(o,t,e,i,n),r===null){let l=$w(t,e,n);l!==void 0&&Array.isArray(l)&&(l=Lu(null,t,e,l[1],n),l=is(l,e.attrs,n),Gw(t,e,n,l))}else r=Ww(t,e,n)}return r!==void 0&&(n?e.residualClasses=r:e.residualStyles=r),i}function $w(t,e,i){let n=i?e.classBindings:e.styleBindings;if(nr(n)!==0)return t[mo(n)]}function Gw(t,e,i,n){let o=i?e.classBindings:e.styleBindings;t[mo(o)]=n}function Ww(t,e,i){let n,o=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<o;r++){let s=t[r].hostAttrs;n=is(n,s,i)}return is(n,e.attrs,i)}function Lu(t,e,i,n,o){let r=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(r=e[a],n=is(n,r.hostAttrs,o),r!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function is(t,e,i){let n=i?1:2,o=-1;if(e!==null)for(let r=0;r<e.length;r++){let s=e[r];typeof s=="number"?o=s:o===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),al(t,s,i?!0:e[++r]))}return t===void 0?null:t}function Yw(t,e,i){if(i==null||i==="")return wt;let n=[],o=Vn(i);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(n,o[r],!0);else if(typeof o=="object")for(let r in o)o.hasOwnProperty(r)&&t(n,r,o[r]);else typeof o=="string"&&e(n,o);return n}function qw(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&al(t,n,i)}function Kw(t,e,i,n,o,r,s,a){o===St&&(o=wt);let l=0,d=0,p=0<o.length?o[0]:null,m=0<r.length?r[0]:null;for(;p!==null||m!==null;){let _=l<o.length?o[l+1]:void 0,g=d<r.length?r[d+1]:void 0,D=null,x;p===m?(l+=2,d+=2,_!==g&&(D=m,x=g)):m===null||p!==null&&p<m?(l+=2,D=p):(d+=2,D=m,x=g),D!==null&&o_(t,e,i,n,D,x,s,a),p=l<o.length?o[l]:null,m=d<r.length?r[d]:null}}function o_(t,e,i,n,o,r,s,a){if(!(e.type&3))return;let l=t.data,d=l[a+1],p=Fw(d)?Sm(l,e,i,o,nr(d),s):void 0;if(!tl(p)){tl(r)||Rw(d)&&(r=Sm(l,null,i,o,a,s));let m=pg(Xn(),i);Kb(n,s,m,o,r)}}function Sm(t,e,i,n,o,r){let s=e===null,a;for(;o>0;){let l=t[o],d=Array.isArray(l),p=d?l[1]:l,m=p===null,_=i[o+1];_===St&&(_=m?wt:void 0);let g=m?Tu(_,n):p===n?_:void 0;if(d&&!tl(g)&&(g=Tu(l,n)),tl(g)&&(a=g,s))return a;let D=t[o+1];o=s?mo(D):nr(D)}if(e!==null){let l=r?e.residualClasses:e.residualStyles;l!=null&&(a=Tu(l,n))}return a}function tl(t){return t!==void 0}function Zw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=At(Vn(t)))),t}function r_(t,e){return(t.flags&(e?8:16))!==0}function cr(t,e,i){let n=Z(),o=Af(n,t,e,i);t_(al,X0,o,!0)}var Ld=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),o=Math.max(e,i),r=this.detach(o);if(o-n>1){let s=this.detach(n);this.attach(n,r),this.attach(o,s)}else this.attach(n,r)}move(e,i){this.attach(i,this.detach(e))}};function Vu(t,e,i,n,o){return t===i&&Object.is(e,n)?1:Object.is(o(t,e),o(i,n))?-1:0}function Qw(t,e,i){let n,o,r=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;r<=s&&r<=l;){let d=t.at(r),p=e[r],m=Vu(r,d,r,p,i);if(m!==0){m<0&&t.updateValue(r,p),r++;continue}let _=t.at(s),g=e[l],D=Vu(s,_,l,g,i);if(D!==0){D<0&&t.updateValue(s,g),s--,l--;continue}let x=i(r,d),O=i(s,_),N=i(r,p);if(Object.is(N,O)){let z=i(l,g);Object.is(z,x)?(t.swap(r,s),t.updateValue(s,g),l--,s--):t.move(s,r),t.updateValue(r,p),r++;continue}if(n??=new nl,o??=Tm(t,r,s,i),Vd(t,n,r,N))t.updateValue(r,p),r++,s++;else if(o.has(N))n.set(x,t.detach(r)),s--;else{let z=t.create(r,e[r]);t.attach(r,z),r++,s++}}for(;r<=l;)Mm(t,n,i,r,e[r]),r++}else if(e!=null){let l=e[Symbol.iterator](),d=l.next();for(;!d.done&&r<=s;){let p=t.at(r),m=d.value,_=Vu(r,p,r,m,i);if(_!==0)_<0&&t.updateValue(r,m),r++,d=l.next();else{n??=new nl,o??=Tm(t,r,s,i);let g=i(r,m);if(Vd(t,n,r,g))t.updateValue(r,m),r++,s++,d=l.next();else if(!o.has(g))t.attach(r,t.create(r,m)),r++,s++,d=l.next();else{let D=i(r,p);n.set(D,t.detach(r)),s--}}}for(;!d.done;)Mm(t,n,i,t.length,d.value),d=l.next()}for(;r<=s;)t.destroy(t.detach(s--));n?.forEach(l=>{t.destroy(l)})}function Vd(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function Mm(t,e,i,n,o){if(Vd(t,e,n,i(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function Tm(t,e,i,n){let o=new Set;for(let r=e;r<=i;r++)o.add(n(r,t.at(r)));return o}var nl=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),e(n,i)}}};function I(t,e){jn("NgControlFlow");let i=Z(),n=_o(),o=i[n]!==St?i[n]:-1,r=o!==-1?il(i,et+o):void 0,s=0;if(Ft(i,n,t)){let a=ce(null);try{if(r!==void 0&&A0(r,s),t!==-1){let l=et+t,d=il(i,l),p=Hd(i[X],l),m=Jo(d,p.tView.ssrId),_=ds(i,p,e,{dehydratedView:m});fs(d,_,s,Qo(p,m))}}finally{ce(a)}}else if(r!==void 0){let a=N0(r,s);a!==void 0&&(a[ft]=e)}}var Bd=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-pt}};function Yt(t){return t}function yo(t,e){return e}var jd=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function ee(t,e,i,n,o,r,s,a,l,d,p,m,_){jn("NgControlFlow");let g=Z(),D=ke(),x=l!==void 0,O=Z(),N=a?s.bind(O[kt][ft]):s,z=new jd(x,N);O[et+t]=z,el(g,D,t+1,e,i,n,o,bi(D.consts,r)),x&&el(g,D,t+2,l,d,p,m,bi(D.consts,_))}var Ud=class extends Ld{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-pt}at(e){return this.getLView(e)[ft].$implicit}attach(e,i){let n=i[qo];this.needsIndexUpdate||=e!==this.length,fs(this.lContainer,i,e,Qo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,Jw(this.lContainer,e)}create(e,i){let n=Jo(this.lContainer,this.templateTNode.tView.ssrId),o=ds(this.hostLView,this.templateTNode,new Bd(this.lContainer,i,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(e){bl(e[X],e),this.operationsCounter?.recordDestroy()}updateValue(e,i){this.getLView(e)[ft].$implicit=i}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[ft].$index=e}getLView(e){return Xw(this.lContainer,e)}};function te(t){let e=ce(null),i=Xn();try{let n=Z(),o=n[X],r=n[i],s=i+1,a=il(n,s);if(r.liveCollection===void 0){let d=Hd(o,s);r.liveCollection=new Ud(a,n,d)}else r.liveCollection.reset();let l=r.liveCollection;if(Qw(l,t,r.trackByFn),l.updateIndexes(),r.hasEmptyBlock){let d=_o(),p=l.length===0;if(Ft(n,d,p)){let m=i+2,_=il(n,m);if(p){let g=Hd(o,m),D=Jo(_,g.tView.ssrId),x=ds(n,g,void 0,{dehydratedView:D});fs(_,x,0,Qo(g,D))}else A0(_,0)}}}finally{ce(e)}}function il(t,e){return t[e]}function Jw(t,e){return es(t,e)}function Xw(t,e){return N0(t,e)}function Hd(t,e){return nf(t,e)}function eE(t,e,i,n,o,r){let s=e.consts,a=bi(s,o),l=sr(e,t,2,n,a);return Mf(e,i,l,bi(s,r)),l.attrs!==null&&Qa(l,l.attrs,!1),l.mergedAttrs!==null&&Qa(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function c(t,e,i,n){let o=Z(),r=ke(),s=et+t,a=o[Re],l=r.firstCreatePass?eE(s,r,o,e,i,n):r.data[s],d=tE(r,o,l,a,e,t);o[s]=d;let p=pl(l);return go(l,!0),_0(a,d,l),!Tw(l)&&gl()&&Dl(r,o,d,l),cC()===0&&Di(d,o),uC(),p&&(wf(r,o,l),Df(r,l,o)),n!==null&&Ef(o,l),c}function u(){let t=lt();sf()?af():(t=t.parent,go(t,!1));let e=t;fC(e)&&pC(),dC();let i=ke();return i.firstCreatePass&&(vl(i,t),tf(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&IC(e)&&Pd(i,e,Z(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&xC(e)&&Pd(i,e,Z(),e.stylesWithoutHost,!1),u}function v(t,e,i,n){return c(t,e,i,n),u(),v}var tE=(t,e,i,n,o,r)=>(_l(!0),a0(n,o,EC()));function nE(t,e,i,n,o){let r=e.consts,s=bi(r,n),a=sr(e,t,8,"ng-container",s);s!==null&&Qa(a,s,!0);let l=bi(r,o);return Mf(e,i,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function Rf(t,e,i){let n=Z(),o=ke(),r=t+et,s=o.firstCreatePass?nE(r,o,n,e,i):o.data[r];go(s,!0);let a=iE(o,n,s,t);return n[r]=a,gl()&&Dl(o,n,a,s),Di(a,n),pl(s)&&(wf(o,n,s),Df(o,s,n)),i!=null&&Ef(n,s),Rf}function kf(){let t=lt(),e=ke();return sf()?af():(t=t.parent,go(t,!1)),e.firstCreatePass&&(vl(e,t),tf(t)&&e.queries.elementEnd(t)),kf}var iE=(t,e,i,n)=>(_l(!0),Fb(e[Re],""));function U(){return Z()}function Mi(t,e,i){let n=Z(),o=_o();if(Ft(n,o,e)){let r=ke(),s=ls();Sl(r,s,n,t,e,n[Re],i,!0)}return Mi}var eo=void 0;function oE(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var rE=["en",[["a","p"],["AM","PM"],eo],[["AM","PM"],eo,eo],[["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"]],eo,[["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"]],eo,[["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}",eo,"{1} 'at' {0}",eo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",oE],Bu={};function qt(t){let e=sE(t),i=Im(e);if(i)return i;let n=e.split("-")[0];if(i=Im(n),i)return i;if(n==="en")return rE;throw new q(701,!1)}function Im(t){return t in Bu||(Bu[t]=io.ng&&io.ng.common&&io.ng.common.locales&&io.ng.common.locales[t]),Bu[t]}var ze=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(ze||{});function sE(t){return t.toLowerCase().replace(/_/g,"-")}var ol="en-US";var aE=ol;function lE(t){typeof t=="string"&&(aE=t.toLowerCase().replace(/_/g,"-"))}var cE=(t,e,i)=>{};function C(t,e,i,n){let o=Z(),r=ke(),s=lt();return s_(r,o,o[Re],s,t,e,n),C}function uE(t,e,i,n){let o=t.cleanup;if(o!=null)for(let r=0;r<o.length-1;r+=2){let s=o[r];if(s===i&&o[r+1]===n){let a=e[Ba],l=o[r+2];return a.length>l?a[l]:null}typeof s=="string"&&(r+=2)}return null}function s_(t,e,i,n,o,r,s){let a=pl(n),d=t.firstCreatePass&&I0(t),p=e[ft],m=T0(e),_=!0;if(n.type&3||s){let x=zt(n,e),O=s?s(x):x,N=m.length,z=s?P=>s(Fn(P[n.index])):n.index,le=null;if(!s&&a&&(le=uE(t,e,o,n.index)),le!==null){let P=le.__ngLastListenerFn__||le;P.__ngNextListenerFn__=r,le.__ngLastListenerFn__=r,_=!1}else{r=Om(n,e,p,r),cE(x,o,r);let P=i.listen(O,o,r);m.push(r,P),d&&d.push(o,z,N,N+1)}}else r=Om(n,e,p,r);let g=n.outputs,D;if(_&&g!==null&&(D=g[o])){let x=D.length;if(x)for(let O=0;O<x;O+=2){let N=D[O],z=D[O+1],oe=e[N][z].subscribe(r),$=m.length;m.push(r,oe),d&&d.push(o,n.index,$,-($+1))}}}function xm(t,e,i,n){let o=ce(null);try{return Nn(6,e,i),i(n)!==!1}catch(r){return x0(t,r),!1}finally{Nn(7,e,i),ce(o)}}function Om(t,e,i,n){return function o(r){if(r===Function)return n;let s=t.componentOffset>-1?wi(t.index,e):e;xf(s,5);let a=xm(e,i,n,r),l=o.__ngNextListenerFn__;for(;l;)a=xm(e,i,l,r)&&a,l=l.__ngNextListenerFn__;return a}}function y(t=1){return wC(t)}function dE(t,e){let i=null,n=N1(t);for(let o=0;o<e.length;o++){let r=e[o];if(r==="*"){i=o;continue}if(n===null?Zm(t,r,!0):k1(n,r))return o}return i}function Nl(t){let e=Z()[kt][Et];if(!e.projection){let i=t?t.length:1,n=e.projection=D1(i,null),o=n.slice(),r=e.child;for(;r!==null;){if(r.type!==128){let s=t?dE(r,t):0;s!==null&&(o[s]?o[s].projectionNext=r:n[s]=r,o[s]=r)}r=r.next}}}function ur(t,e=0,i,n,o,r){let s=Z(),a=ke(),l=n?t+1:null;l!==null&&el(s,a,l,n,o,r,null,i);let d=sr(a,et+t,16,null,i||null);d.projection===null&&(d.projection=e),af();let m=!s[qo]||yg();s[kt][Et].projection[d.projection]===null&&l!==null?fE(s,a,l):m&&(d.flags&32)!==32&&Yb(a,s,d)}function fE(t,e,i){let n=et+i,o=e.data[n],r=t[n],s=Jo(r,o.tView.ssrId),a=ds(t,o,void 0,{dehydratedView:s});fs(r,a,0,Qo(o,s))}function ni(t,e,i,n,o){let r=Z(),s=Af(r,e,i,n);if(s!==St){let a=ke(),l=ls();Sl(a,l,r,t,s,r[Re],o,!1)}return ni}function Co(t,e,i,n){fw(t,e,i,n)}function dr(t,e,i){dw(t,e,i)}function Kt(t){let e=Z(),i=ke(),n=Dg();cf(n+1);let o=Of(i,n);if(t.dirty&&rC(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let r=mw(e,n);t.reset(r,JC),t.notifyOnChanges()}return!0}return!1}function Zt(){return uw(Z(),Dg())}function pE(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function fr(t){let e=mC();return of(e,et+t)}function f(t,e=""){let i=Z(),n=ke(),o=t+et,r=n.firstCreatePass?sr(n,o,1,e,null):n.data[o],s=hE(n,i,r,e,t);i[o]=s,gl()&&Dl(n,i,s,r),go(r,!1)}var hE=(t,e,i,n,o)=>(_l(!0),Rb(e[Re],n));function J(t){return B("",t,""),J}function B(t,e,i){let n=Z(),o=Af(n,t,e,i);return o!==St&&O0(n,Xn(),o),B}function Tt(t,e,i,n,o){let r=Z(),s=Aw(r,t,e,i,n,o);return s!==St&&O0(r,Xn(),s),Tt}function R(t,e,i){W0(e)&&(e=e());let n=Z(),o=_o();if(Ft(n,o,e)){let r=ke(),s=ls();Sl(r,s,n,t,e,n[Re],i,!1)}return R}function F(t,e){let i=W0(t);return i&&t.set(e),i}function k(t,e){let i=Z(),n=ke(),o=lt();return s_(n,i,i[Re],o,t,e),k}function mE(t,e,i){let n=ke();if(n.firstCreatePass){let o=Ci(t);zd(i,n.data,n.blueprint,o,!0),zd(e,n.data,n.blueprint,o,!1)}}function zd(t,e,i,n,o){if(t=vt(t),Array.isArray(t))for(let r=0;r<t.length;r++)zd(t[r],e,i,n,o);else{let r=ke(),s=Z(),a=lt(),l=Yo(t)?t:vt(t.provide),d=og(t),p=a.providerIndexes&1048575,m=a.directiveStart,_=a.providerIndexes>>20;if(Yo(t)||!t.multi){let g=new fo(d,o,w),D=Uu(l,e,o?p:p+_,m);D===-1?(nd(Ga(a,s),r,l),ju(r,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),i.push(g),s.push(g)):(i[D]=g,s[D]=g)}else{let g=Uu(l,e,p+_,m),D=Uu(l,e,p,p+_),x=g>=0&&i[g],O=D>=0&&i[D];if(o&&!O||!o&&!x){nd(Ga(a,s),r,l);let N=vE(o?_E:gE,i.length,o,n,d);!o&&O&&(i[D].providerFactory=N),ju(r,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),i.push(N),s.push(N)}else{let N=a_(i[o?D:g],d,!o&&n);ju(r,t,g>-1?g:D,N)}!o&&n&&O&&i[D].componentProviders++}}}function ju(t,e,i,n){let o=Yo(e),r=W1(e);if(o||r){let l=(r?vt(e.useClass):e).prototype.ngOnDestroy;if(l){let d=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let p=d.indexOf(i);p===-1?d.push(i,[n,l]):d[p+1].push(n,l)}else d.push(i,l)}}}function a_(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Uu(t,e,i,n){for(let o=i;o<n;o++)if(e[o]===t)return o;return-1}function gE(t,e,i,n){return $d(this.multi,[])}function _E(t,e,i,n){let o=this.multi,r;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=po(i,i[X],this.providerFactory.index,n);r=a.slice(0,s),$d(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],$d(o,r);return r}function $d(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function vE(t,e,i,n,o){let r=new fo(t,i,w);return r.multi=[],r.index=e,r.componentProviders=0,a_(r,o,n&&!i),r}function nt(t,e=[]){return i=>{i.providersResolver=(n,o)=>mE(n,o?o(t):t,e)}}var yE=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=tg(!1,n.type),r=o.length>0?Ew([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,r)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=L({token:e,providedIn:"environment",factory:()=>new e(H(Rt))});let t=e;return t})();function j(t){jn("NgStandalone"),t.getStandaloneInjector=e=>e.get(yE).getOrCreateStandaloneInjector(t)}function pr(t,e,i){let n=as()+t,o=Z();return o[n]===St?xl(o,n,i?e.call(i):e()):Sw(o,n)}function l_(t,e,i,n){return u_(Z(),as(),t,e,i,n)}function c_(t,e,i,n,o,r){return bE(Z(),as(),t,e,i,n,o,r)}function Ff(t,e){let i=t[e];return i===St?void 0:i}function u_(t,e,i,n,o,r){let s=e+i;return Ft(t,s,o)?xl(t,s+1,r?n.call(r,o):n(o)):Ff(t,s+1)}function CE(t,e,i,n,o,r,s){let a=e+i;return Nf(t,a,o,r)?xl(t,a+2,s?n.call(s,o,r):n(o,r)):Ff(t,a+2)}function bE(t,e,i,n,o,r,s,a){let l=e+i;return Mw(t,l,o,r,s)?xl(t,l+3,a?n.call(a,o,r,s):n(o,r,s)):Ff(t,l+3)}function Qt(t,e){let i=ke(),n,o=t+et;i.firstCreatePass?(n=DE(e,i.pipeRegistry),i.data[o]=n,n.onDestroy&&(i.destroyHooks??=[]).push(o,n.onDestroy)):n=i.data[o];let r=n.factory||(n.factory=ro(n.type,!0)),s,a=Dt(w);try{let l=$a(!1),d=r();return $a(l),pE(i,Z(),o,d),d}finally{Dt(a)}}function DE(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Ti(t,e,i){let n=t+et,o=Z(),r=of(o,n);return d_(o,n)?u_(o,as(),e,r.transform,i,r):r.transform(i)}function Al(t,e,i,n){let o=t+et,r=Z(),s=of(r,o);return d_(r,o)?CE(r,as(),e,s.transform,i,n,s):s.transform(i,n)}function d_(t,e){return t[X].data[e].pure}function f_(t,e){return Tl(t,e)}var p_=new G("");function ps(t){return!!t&&typeof t.then=="function"}function h_(t){return!!t&&typeof t.subscribe=="function"}var wE=new G(""),m_=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=b(wE,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let r of this.appInits){let s=r();if(ps(s))n.push(s);else if(h_(s)){let a=new Promise((l,d)=>{s.subscribe({complete:l,error:d})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(r=>{this.reject(r)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),g_=new G("");function EE(){ph(()=>{throw new q(600,!1)})}function SE(t){return t.isBoundToModule}var ME=10;function TE(t,e,i){try{let n=i();return ps(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var ii=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(KC),this.afterRenderManager=b(q0),this.zonelessEnabled=b(Il),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new he,this.afterTick=new he,this.componentTypes=[],this.components=[],this.isStable=b(or).hasPendingTasks.pipe(Me(n=>!n)),this._injector=b(Rt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(o=>{n=this.isStable.subscribe({next:r=>{r&&o()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,o){let r=n instanceof Za;if(!this._injector.get(m_).done){let g=!r&&j1(n),D=!1;throw new q(405,D)}let a;r?a=n:a=this._injector.get(ts).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=SE(a)?void 0:this._injector.get(tr),d=o||a.selector,p=a.create(He.NULL,[],d,l),m=p.location.nativeElement,_=p.injector.get(p_,null);return _?.registerApplication(m),p.onDestroy(()=>{this.detachView(p.hostView),Ra(this.components,p),_?.unregisterApplication(m)}),this._loadComponent(p),p}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new q(101,!1);let n=ce(null);try{this._runningTick=!0,this.synchronize()}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,ce(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(er,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let o=0;for(;this.dirtyFlags!==0&&o++<ME;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let o=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(o);for(let{_lView:r,notifyErrorHandler:s}of this._views)IE(r,s,o,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>hl(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;Ra(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(g_,[]);[...this._bootstrapListeners,...o].forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ra(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new q(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ra(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function IE(t,e,i,n){if(!i&&!hl(t))return;F0(t,e,i&&!n?0:1)}var xE=(()=>{let e=class e{constructor(){this.zone=b(ge),this.changeDetectionScheduler=b(Xo),this.applicationRef=b(ii)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),OE=new G("",{factory:()=>!1});function __({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:i}){return t??=()=>new ge(Se(Y({},y_()),{scheduleInRootZone:i})),[{provide:ge,useFactory:t},{provide:Zr,multi:!0,useFactory:()=>{let n=b(xE,{optional:!0});return()=>n.initialize()}},{provide:Zr,multi:!0,useFactory:()=>{let n=b(NE);return()=>{n.initialize()}}},e===!0?{provide:B0,useValue:!0}:[],{provide:j0,useValue:i??Bg}]}function v_(t){let e=t?.ignoreChangesOutsideZone,i=t?.scheduleInRootZone,n=__({ngZoneFactory:()=>{let o=y_(t);return o.scheduleInRootZone=i,o.shouldCoalesceEventChangeDetection&&jn("NgZone_CoalesceEvent"),new ge(o)},ignoreChangesOutsideZone:e,scheduleInRootZone:i});return ss([{provide:OE,useValue:!0},{provide:Il,useValue:!1},n])}function y_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var NE=(()=>{let e=class e{constructor(){this.subscription=new Ue,this.initialized=!1,this.zone=b(ge),this.pendingTasks=b(or)}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(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var AE=(()=>{let e=class e{constructor(){this.appRef=b(ii),this.taskService=b(or),this.ngZone=b(ge),this.zonelessEnabled=b(Il),this.disableScheduling=b(B0,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ue,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ya):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(j0,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 ad||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?lm:jg;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ya+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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(o){throw this.taskService.remove(n),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,lm(()=>{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)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RE(){return typeof $localize<"u"&&$localize.locale||ol}var hs=new G("",{providedIn:"root",factory:()=>b(hs,fe.Optional|fe.SkipSelf)||RE()});var Gd=new G("");function Ia(t){return!t.moduleRef}function kE(t){let e=Ia(t)?t.r3Injector:t.moduleRef.injector,i=e.get(ge);return i.run(()=>{Ia(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(Kn,null),o;if(i.runOutsideAngular(()=>{o=i.onError.subscribe({next:r=>{n.handleError(r)}})}),Ia(t)){let r=()=>e.destroy(),s=t.platformInjector.get(Gd);s.add(r),e.onDestroy(()=>{o.unsubscribe(),s.delete(r)})}else{let r=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Gd);s.add(r),t.moduleRef.onDestroy(()=>{Ra(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(r)})}return TE(n,i,()=>{let r=e.get(m_);return r.runInitializers(),r.donePromise.then(()=>{let s=e.get(hs,ol);if(lE(s||ol),Ia(t)){let a=e.get(ii);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return FE(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function FE(t,e){let i=t.injector.get(ii);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>i.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(i);else throw new q(-403,!1);e.push(t)}var ka=null;function PE(t=[],e){return He.create({name:e,providers:[{provide:ll,useValue:"platform"},{provide:Gd,useValue:new Set([()=>ka=null])},...t]})}function LE(t=[]){if(ka)return ka;let e=PE(t);return ka=e,EE(),VE(e),e}function VE(t){t.get(gf,null)?.forEach(i=>i())}var Jt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=BE;let t=e;return t})();function BE(t){return jE(lt(),Z(),(t&16)===16)}function jE(t,e,i){if(fl(t)&&!i){let n=wi(t.index,e);return new ho(n,n)}else if(t.type&175){let n=e[kt];return new ho(n,e)}return null}var Wd=class{constructor(){}supports(e){return e instanceof Map||Y0(e)}create(){return new Yd}},Yd=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let i;for(i=this._mapHead;i!==null;i=i._next)e(i)}forEachPreviousItem(e){let i;for(i=this._previousMapHead;i!==null;i=i._nextPrevious)e(i)}forEachChangedItem(e){let i;for(i=this._changesHead;i!==null;i=i._nextChanged)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||Y0(e)))throw new q(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,o)=>{if(i&&i.key===o)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let r=this._getOrCreateRecordForKey(o,n);i=this._insertBeforeOrAppend(i,r)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){let n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,i);let r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}let n=new qd(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}},qd=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Nm(){return new Pf([new Wd])}var Pf=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o){let r=o.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Nm()),deps:[[e,new y1,new zm]]}}find(n){let o=this.factories.find(r=>r.supports(n));if(o)return o;throw new q(901,!1)}};e.\u0275prov=L({token:e,providedIn:"root",factory:Nm});let t=e;return t})();function C_(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,o=LE(n),r=[__({}),{provide:Xo,useExisting:AE},...i||[]],s=new Xa({providers:r,parent:o,debugName:"",runEnvironmentInitializers:!1});return kE({r3Injector:s.injector,platformInjector:o,rootComponent:e})}catch(e){return Promise.reject(e)}}function Lf(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function hr(t,e){jn("NgSignals");let i=uh(t);return e?.equal&&(i[Tn].equal=e.equal),i}function Un(t){let e=ce(null);try{return t()}finally{ce(e)}}function Rl(t,e){let i=so(t),n=e.elementInjector||cl();return new ns(i).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}var S_=null;function gr(){return S_}function M_(t){S_??=t}var Hl=class{};var Fe=new G("");var Ct=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ct||{}),Ee=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Ee||{}),Pt=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Pt||{}),Ii={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 HE(t){return qt(t)[ze.LocaleId]}function zE(t,e,i){let n=qt(t),o=[n[ze.DayPeriodsFormat],n[ze.DayPeriodsStandalone]],r=Xt(o,e);return Xt(r,i)}function $E(t,e,i){let n=qt(t),o=[n[ze.DaysFormat],n[ze.DaysStandalone]],r=Xt(o,e);return Xt(r,i)}function GE(t,e,i){let n=qt(t),o=[n[ze.MonthsFormat],n[ze.MonthsStandalone]],r=Xt(o,e);return Xt(r,i)}function WE(t,e){let n=qt(t)[ze.Eras];return Xt(n,e)}function kl(t,e){let i=qt(t);return Xt(i[ze.DateFormat],e)}function Fl(t,e){let i=qt(t);return Xt(i[ze.TimeFormat],e)}function Pl(t,e){let n=qt(t)[ze.DateTimeFormat];return Xt(n,e)}function $l(t,e){let i=qt(t),n=i[ze.NumberSymbols][e];if(typeof n>"u"){if(e===Ii.CurrencyDecimal)return i[ze.NumberSymbols][Ii.Decimal];if(e===Ii.CurrencyGroup)return i[ze.NumberSymbols][Ii.Group]}return n}function T_(t){if(!t[ze.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[ze.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function YE(t){let e=qt(t);return T_(e),(e[ze.ExtraData][2]||[]).map(n=>typeof n=="string"?Bf(n):[Bf(n[0]),Bf(n[1])])}function qE(t,e,i){let n=qt(t);T_(n);let o=[n[ze.ExtraData][0],n[ze.ExtraData][1]],r=Xt(o,e)||[];return Xt(r,i)||[]}function Xt(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function Bf(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}var KE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ll={},ZE=/((?:[^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]*)/,ri=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ri||{}),ve=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ve||{}),_e=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(_e||{});function I_(t,e,i,n){let o=rS(t);e=oi(i,e)||e;let s=[],a;for(;e;)if(a=ZE.exec(e),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;e=p}else{s.push(e);break}let l=o.getTimezoneOffset();n&&(l=O_(n,l),o=oS(o,n,!0));let d="";return s.forEach(p=>{let m=nS(p);d+=m?m(o,i,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function zl(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function oi(t,e){let i=HE(t);if(Ll[i]??={},Ll[i][e])return Ll[i][e];let n="";switch(e){case"shortDate":n=kl(t,Pt.Short);break;case"mediumDate":n=kl(t,Pt.Medium);break;case"longDate":n=kl(t,Pt.Long);break;case"fullDate":n=kl(t,Pt.Full);break;case"shortTime":n=Fl(t,Pt.Short);break;case"mediumTime":n=Fl(t,Pt.Medium);break;case"longTime":n=Fl(t,Pt.Long);break;case"fullTime":n=Fl(t,Pt.Full);break;case"short":let o=oi(t,"shortTime"),r=oi(t,"shortDate");n=Vl(Pl(t,Pt.Short),[o,r]);break;case"medium":let s=oi(t,"mediumTime"),a=oi(t,"mediumDate");n=Vl(Pl(t,Pt.Medium),[s,a]);break;case"long":let l=oi(t,"longTime"),d=oi(t,"longDate");n=Vl(Pl(t,Pt.Long),[l,d]);break;case"full":let p=oi(t,"fullTime"),m=oi(t,"fullDate");n=Vl(Pl(t,Pt.Full),[p,m]);break}return n&&(Ll[i][e]=n),n}function Vl(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function bn(t,e,i="-",n,o){let r="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,r=i));let s=String(t);for(;s.length<e;)s="0"+s;return n&&(s=s.slice(s.length-e)),r+s}function QE(t,e){return bn(t,3).substring(0,e)}function Ge(t,e,i=0,n=!1,o=!1){return function(r,s){let a=JE(t,r);if((i>0||a>-i)&&(a+=i),t===ve.Hours)a===0&&i===-12&&(a=12);else if(t===ve.FractionalSeconds)return QE(a,e);let l=$l(s,Ii.MinusSign);return bn(a,e,l,n,o)}}function JE(t,e){switch(t){case ve.FullYear:return e.getFullYear();case ve.Month:return e.getMonth();case ve.Date:return e.getDate();case ve.Hours:return e.getHours();case ve.Minutes:return e.getMinutes();case ve.Seconds:return e.getSeconds();case ve.FractionalSeconds:return e.getMilliseconds();case ve.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Te(t,e,i=Ct.Format,n=!1){return function(o,r){return XE(o,r,t,e,i,n)}}function XE(t,e,i,n,o,r){switch(i){case _e.Months:return GE(e,o,n)[t.getMonth()];case _e.Days:return $E(e,o,n)[t.getDay()];case _e.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(r){let d=YE(e),p=qE(e,o,n),m=d.findIndex(_=>{if(Array.isArray(_)){let[g,D]=_,x=s>=g.hours&&a>=g.minutes,O=s<D.hours||s===D.hours&&a<D.minutes;if(g.hours<D.hours){if(x&&O)return!0}else if(x||O)return!0}else if(_.hours===s&&_.minutes===a)return!0;return!1});if(m!==-1)return p[m]}return zE(e,o,n)[s<12?0:1];case _e.Eras:return WE(e,n)[t.getFullYear()<=0?0:1];default:let l=i;throw new Error(`unexpected translation type ${l}`)}}function Bl(t){return function(e,i,n){let o=-1*n,r=$l(i,Ii.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case ri.Short:return(o>=0?"+":"")+bn(s,2,r)+bn(Math.abs(o%60),2,r);case ri.ShortGMT:return"GMT"+(o>=0?"+":"")+bn(s,1,r);case ri.Long:return"GMT"+(o>=0?"+":"")+bn(s,2,r)+":"+bn(Math.abs(o%60),2,r);case ri.Extended:return n===0?"Z":(o>=0?"+":"")+bn(s,2,r)+":"+bn(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}var eS=0,Ul=4;function tS(t){let e=zl(t,eS,1).getDay();return zl(t,0,1+(e<=Ul?Ul:Ul+7)-e)}function x_(t){let e=t.getDay(),i=e===0?-3:Ul-e;return zl(t.getFullYear(),t.getMonth(),t.getDate()+i)}function jf(t,e=!1){return function(i,n){let o;if(e){let r=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,s=i.getDate();o=1+Math.floor((s+r)/7)}else{let r=x_(i),s=tS(r.getFullYear()),a=r.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return bn(o,t,$l(n,Ii.MinusSign))}}function jl(t,e=!1){return function(i,n){let r=x_(i).getFullYear();return bn(r,t,$l(n,Ii.MinusSign),e)}}var Uf={};function nS(t){if(Uf[t])return Uf[t];let e;switch(t){case"G":case"GG":case"GGG":e=Te(_e.Eras,Ee.Abbreviated);break;case"GGGG":e=Te(_e.Eras,Ee.Wide);break;case"GGGGG":e=Te(_e.Eras,Ee.Narrow);break;case"y":e=Ge(ve.FullYear,1,0,!1,!0);break;case"yy":e=Ge(ve.FullYear,2,0,!0,!0);break;case"yyy":e=Ge(ve.FullYear,3,0,!1,!0);break;case"yyyy":e=Ge(ve.FullYear,4,0,!1,!0);break;case"Y":e=jl(1);break;case"YY":e=jl(2,!0);break;case"YYY":e=jl(3);break;case"YYYY":e=jl(4);break;case"M":case"L":e=Ge(ve.Month,1,1);break;case"MM":case"LL":e=Ge(ve.Month,2,1);break;case"MMM":e=Te(_e.Months,Ee.Abbreviated);break;case"MMMM":e=Te(_e.Months,Ee.Wide);break;case"MMMMM":e=Te(_e.Months,Ee.Narrow);break;case"LLL":e=Te(_e.Months,Ee.Abbreviated,Ct.Standalone);break;case"LLLL":e=Te(_e.Months,Ee.Wide,Ct.Standalone);break;case"LLLLL":e=Te(_e.Months,Ee.Narrow,Ct.Standalone);break;case"w":e=jf(1);break;case"ww":e=jf(2);break;case"W":e=jf(1,!0);break;case"d":e=Ge(ve.Date,1);break;case"dd":e=Ge(ve.Date,2);break;case"c":case"cc":e=Ge(ve.Day,1);break;case"ccc":e=Te(_e.Days,Ee.Abbreviated,Ct.Standalone);break;case"cccc":e=Te(_e.Days,Ee.Wide,Ct.Standalone);break;case"ccccc":e=Te(_e.Days,Ee.Narrow,Ct.Standalone);break;case"cccccc":e=Te(_e.Days,Ee.Short,Ct.Standalone);break;case"E":case"EE":case"EEE":e=Te(_e.Days,Ee.Abbreviated);break;case"EEEE":e=Te(_e.Days,Ee.Wide);break;case"EEEEE":e=Te(_e.Days,Ee.Narrow);break;case"EEEEEE":e=Te(_e.Days,Ee.Short);break;case"a":case"aa":case"aaa":e=Te(_e.DayPeriods,Ee.Abbreviated);break;case"aaaa":e=Te(_e.DayPeriods,Ee.Wide);break;case"aaaaa":e=Te(_e.DayPeriods,Ee.Narrow);break;case"b":case"bb":case"bbb":e=Te(_e.DayPeriods,Ee.Abbreviated,Ct.Standalone,!0);break;case"bbbb":e=Te(_e.DayPeriods,Ee.Wide,Ct.Standalone,!0);break;case"bbbbb":e=Te(_e.DayPeriods,Ee.Narrow,Ct.Standalone,!0);break;case"B":case"BB":case"BBB":e=Te(_e.DayPeriods,Ee.Abbreviated,Ct.Format,!0);break;case"BBBB":e=Te(_e.DayPeriods,Ee.Wide,Ct.Format,!0);break;case"BBBBB":e=Te(_e.DayPeriods,Ee.Narrow,Ct.Format,!0);break;case"h":e=Ge(ve.Hours,1,-12);break;case"hh":e=Ge(ve.Hours,2,-12);break;case"H":e=Ge(ve.Hours,1);break;case"HH":e=Ge(ve.Hours,2);break;case"m":e=Ge(ve.Minutes,1);break;case"mm":e=Ge(ve.Minutes,2);break;case"s":e=Ge(ve.Seconds,1);break;case"ss":e=Ge(ve.Seconds,2);break;case"S":e=Ge(ve.FractionalSeconds,1);break;case"SS":e=Ge(ve.FractionalSeconds,2);break;case"SSS":e=Ge(ve.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Bl(ri.Short);break;case"ZZZZZ":e=Bl(ri.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Bl(ri.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Bl(ri.Long);break;default:return null}return Uf[t]=e,e}function O_(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function iS(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function oS(t,e,i){let n=i?-1:1,o=t.getTimezoneOffset(),r=O_(e,o);return iS(t,n*(r-o))}function rS(t){if(b_(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,r=1,s=1]=t.split("-").map(a=>+a);return zl(o,r-1,s)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(KE))return sS(n)}let e=new Date(t);if(!b_(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function sS(t){let e=new Date(0),i=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-i,a=Number(t[5]||0)-n,l=Number(t[6]||0),d=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return r.call(e,s,a,l,d),e}function b_(t){return t instanceof Date&&!isNaN(t.valueOf())}function Gl(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[o,r]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(o.trim()===e)return decodeURIComponent(r)}return null}var Hf=/\s+/,D_=[],$f=(()=>{let e=class e{constructor(n,o){this._ngEl=n,this._renderer=o,this.initialClasses=D_,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Hf):D_}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Hf):n}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let o of n)this._updateState(o,!0);else if(n!=null)for(let o of Object.keys(n))this._updateState(o,!!n[o]);this._applyStateDiff()}_updateState(n,o){let r=this.stateMap.get(n);r!==void 0?(r.enabled!==o&&(r.changed=!0,r.enabled=o),r.touched=!0):this.stateMap.set(n,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let o=n[0],r=n[1];r.changed?(this._toggleClass(o,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),r.touched=!1}}_toggleClass(n,o){n=n.trim(),n.length>0&&n.split(Hf).forEach(r=>{o?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt))},e.\u0275dir=ae({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var _r=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new zf,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){w_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){w_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(w(Ei),w(Ln))},e.\u0275dir=ae({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),zf=class{constructor(){this.$implicit=null,this.ngIf=null}};function w_(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${At(e)}'.`)}var N_=(()=>{let e=class e{constructor(n,o,r){this._ngEl=n,this._differs=o,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,o){let[r,s]=n.split("."),a=r.indexOf("-")===-1?void 0:Pn.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(n){n.forEachRemovedItem(o=>this._setStyle(o.key,null)),n.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),n.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Pf),w(Wt))},e.\u0275dir=ae({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),Gf=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,o,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,r):!1,get:(n,o,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,r)}})}};e.\u0275fac=function(o){return new(o||e)(w(Ei))},e.\u0275dir=ae({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[yt]});let t=e;return t})();function A_(t,e){return new q(2100,!1)}var aS=/(?:[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,vr=(()=>{let e=class e{transform(n){if(n==null)return null;if(typeof n!="string")throw A_(e,n);return n.replace(aS,o=>o[0].toUpperCase()+o.slice(1).toLowerCase())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275pipe=Xd({name:"titlecase",type:e,pure:!0,standalone:!0});let t=e;return t})();var lS="mediumDate",cS=new G(""),uS=new G(""),Wl=(()=>{let e=class e{constructor(n,o,r){this.locale=n,this.defaultTimezone=o,this.defaultOptions=r}transform(n,o,r,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??lS,l=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return I_(n,a,s||this.locale,l)}catch(a){throw A_(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(w(hs,16),w(cS,24),w(uS,24))},e.\u0275pipe=Xd({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var R_="browser",dS="server";function yr(t){return t===dS}var mr=class{};var gs=class{},ql=class{},si=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` 8 `).forEach(i=>{let n=i.indexOf(":");if(n>0){let o=i.slice(0,n),r=o.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let o=(e.op==="a"?this.headers.get(i):void 0)||[];o.push(...n),this.headers.set(i,o);break;case"d":let r=e.value;if(!r)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>r.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(r=>r.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var Yf=class{encodeKey(e){return k_(e)}encodeValue(e){return k_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function pS(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[s,a]=r==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,r)),e.decodeValue(o.slice(r+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}var hS=/%(\d[a-f0-9])/gi,mS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function k_(t){return encodeURIComponent(t).replace(hS,(e,i)=>mS[i]??e)}function Yl(t){return`${t}`}var Oi=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Yf,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=pS(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],o=Array.isArray(n)?n.map(Yl):[Yl(n)];this.map.set(i,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(r=>{i.push({param:n,value:r,op:"a"})}):i.push({param:n,value:o,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Yl(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(Yl(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var qf=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function gS(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function F_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function P_(t){return typeof Blob<"u"&&t instanceof Blob}function L_(t){return typeof FormData<"u"&&t instanceof FormData}function _S(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ms=class t{constructor(e,i,n,o){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let r;if(gS(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new si,this.context??=new qf,!this.params)this.params=new Oi,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||F_(this.body)||P_(this.body)||L_(this.body)||_S(this.body)?this.body:this.body instanceof Oi?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||L_(this.body)?null:P_(this.body)?this.body.type||null:F_(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Oi?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,o=e.responseType||this.responseType,r=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,l=e.reportProgress??this.reportProgress,d=e.headers||this.headers,p=e.params||this.params,m=e.context??this.context;return e.setHeaders!==void 0&&(d=Object.keys(e.setHeaders).reduce((_,g)=>_.set(g,e.setHeaders[g]),d)),e.setParams&&(p=Object.keys(e.setParams).reduce((_,g)=>_.set(g,e.setParams[g]),p)),new t(i,n,s,{params:p,headers:d,context:m,reportProgress:l,responseType:o,withCredentials:a,transferCache:r})}},Ni=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ni||{}),_s=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new si,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Kl=class t extends _s{constructor(e={}){super(e),this.type=Ni.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},vs=class t extends _s{constructor(e={}){super(e),this.type=Ni.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},xi=class extends _s{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},U_=200,vS=204;function Wf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Ve=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,r={}){let s;if(n instanceof ms)s=n;else{let d;r.headers instanceof si?d=r.headers:d=new si(r.headers);let p;r.params&&(r.params instanceof Oi?p=r.params:p=new Oi({fromObject:r.params})),s=new ms(n,o,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:p,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let a=gn(s).pipe(vu(d=>this.handler.handle(d)));if(n instanceof ms||r.observe==="events")return a;let l=a.pipe(_t(d=>d instanceof vs));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Me(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return d.body}));case"blob":return l.pipe(Me(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Error("Response is not a Blob.");return d.body}));case"text":return l.pipe(Me(d=>{if(d.body!==null&&typeof d.body!="string")throw new Error("Response is not a string.");return d.body}));case"json":default:return l.pipe(Me(d=>d.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Oi().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,r={}){return this.request("PATCH",n,Wf(r,o))}post(n,o,r={}){return this.request("POST",n,Wf(r,o))}put(n,o,r={}){return this.request("PUT",n,Wf(r,o))}};e.\u0275fac=function(o){return new(o||e)(H(gs))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),yS=/^\)\]\}',?\n/,CS="X-Request-URL";function V_(t){if(t.url)return t.url;let e=CS.toLocaleLowerCase();return t.headers.get(e)}var bS=(()=>{let e=class e{constructor(){this.fetchImpl=b(Kf,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=b(ge)}handle(n){return new ne(o=>{let r=new AbortController;return this.doRequest(n,r.signal,o).then(Zf,s=>o.error(new xi({error:s}))),()=>r.abort()})}doRequest(n,o,r){return E(this,null,function*(){let s=this.createRequestInit(n),a;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,Y({signal:o},s)));DS(D),r.next({type:Ni.Sent}),a=yield D}catch(D){r.error(new xi({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let l=new si(a.headers),d=a.statusText,p=V_(a)??n.urlWithParams,m=a.status,_=null;if(n.reportProgress&&r.next(new Kl({headers:l,status:m,statusText:d,url:p})),a.body){let D=a.headers.get("content-length"),x=[],O=a.body.getReader(),N=0,z,le,P=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>E(this,null,function*(){for(;;){let{done:$,value:pe}=yield O.read();if($)break;if(x.push(pe),N+=pe.length,n.reportProgress){le=n.responseType==="text"?(le??"")+(z??=new TextDecoder).decode(pe,{stream:!0}):void 0;let Ae=()=>r.next({type:Ni.DownloadProgress,total:D?+D:void 0,loaded:N,partialText:le});P?P.run(Ae):Ae()}}}));let oe=this.concatChunks(x,N);try{let $=a.headers.get("Content-Type")??"";_=this.parseBody(n,oe,$)}catch($){r.error(new xi({error:$,headers:new si(a.headers),status:a.status,statusText:a.statusText,url:V_(a)??n.urlWithParams}));return}}m===0&&(m=_?U_:0),m>=200&&m<300?(r.next(new vs({body:_,headers:l,status:m,statusText:d,url:p})),r.complete()):r.error(new xi({error:_,headers:l,status:m,statusText:d,url:p}))})}parseBody(n,o,r){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(yS,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:r});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},r=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>o[s]=a.join(",")),n.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:r}}concatChunks(n,o){let r=new Uint8Array(o),s=0;for(let a of n)r.set(a,s),s+=a.length;return r}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Kf=class{};function Zf(){}function DS(t){t.then(Zf,Zf)}function wS(t,e){return e(t)}function ES(t,e,i){return(n,o)=>rg(i,()=>e(n,r=>t(r,o)))}var Qf=new G(""),SS=new G(""),MS=new G("",{providedIn:"root",factory:()=>!0});var B_=(()=>{let e=class e extends gs{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=b(or),this.contributeToStability=b(MS)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Qf),...this.injector.get(SS,[])]));this.chain=o.reduceRight((r,s)=>ES(r,s,this.injector),wS)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,r=>this.backend.handle(r)).pipe(Da(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(H(ql),H(Rt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();var TS=/^\)\]\}',?\n/;function IS(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var j_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new q(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?mn(o.\u0275loadImpl()):gn(null)).pipe(mi(()=>new ne(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((O,N)=>a.setRequestHeader(O,N.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let O=n.detectContentTypeHeader();O!==null&&a.setRequestHeader("Content-Type",O)}if(n.responseType){let O=n.responseType.toLowerCase();a.responseType=O!=="json"?O:"text"}let l=n.serializeBody(),d=null,p=()=>{if(d!==null)return d;let O=a.statusText||"OK",N=new si(a.getAllResponseHeaders()),z=IS(a)||n.url;return d=new Kl({headers:N,status:a.status,statusText:O,url:z}),d},m=()=>{let{headers:O,status:N,statusText:z,url:le}=p(),P=null;N!==vS&&(P=typeof a.response>"u"?a.responseText:a.response),N===0&&(N=P?U_:0);let oe=N>=200&&N<300;if(n.responseType==="json"&&typeof P=="string"){let $=P;P=P.replace(TS,"");try{P=P!==""?JSON.parse(P):null}catch(pe){P=$,oe&&(oe=!1,P={error:pe,text:P})}}oe?(s.next(new vs({body:P,headers:O,status:N,statusText:z,url:le||void 0})),s.complete()):s.error(new xi({error:P,headers:O,status:N,statusText:z,url:le||void 0}))},_=O=>{let{url:N}=p(),z=new xi({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:N||void 0});s.error(z)},g=!1,D=O=>{g||(s.next(p()),g=!0);let N={type:Ni.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(N.total=O.total),n.responseType==="text"&&a.responseText&&(N.partialText=a.responseText),s.next(N)},x=O=>{let N={type:Ni.UploadProgress,loaded:O.loaded};O.lengthComputable&&(N.total=O.total),s.next(N)};return a.addEventListener("load",m),a.addEventListener("error",_),a.addEventListener("timeout",_),a.addEventListener("abort",_),n.reportProgress&&(a.addEventListener("progress",D),l!==null&&a.upload&&a.upload.addEventListener("progress",x)),a.send(l),s.next({type:Ni.Sent}),()=>{a.removeEventListener("error",_),a.removeEventListener("abort",_),a.removeEventListener("load",m),a.removeEventListener("timeout",_),n.reportProgress&&(a.removeEventListener("progress",D),l!==null&&a.upload&&a.upload.removeEventListener("progress",x)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(H(mr))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),H_=new G(""),xS="XSRF-TOKEN",OS=new G("",{providedIn:"root",factory:()=>xS}),NS="X-XSRF-TOKEN",AS=new G("",{providedIn:"root",factory:()=>NS}),Zl=class{},RS=(()=>{let e=class e{constructor(n,o,r){this.doc=n,this.platform=o,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Gl(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(H(Fe),H(Gt),H(OS))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function kS(t,e){let i=t.url.toLowerCase();if(!b(H_)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=b(Zl).getToken(),o=b(AS);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var z_=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(z_||{});function FS(t,e){return{\u0275kind:t,\u0275providers:e}}function $_(...t){let e=[Ve,j_,B_,{provide:gs,useExisting:B_},{provide:ql,useFactory:()=>b(bS,{optional:!0})??b(j_)},{provide:Qf,useValue:kS,multi:!0},{provide:H_,useValue:!0},{provide:Zl,useClass:RS}];for(let i of t)e.push(...i.\u0275providers);return ss(e)}function G_(t){return FS(z_.Interceptors,t.map(e=>({provide:Qf,useValue:e,multi:!0})))}var ep=class extends Hl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},tp=class t extends ep{static makeCurrent(){M_(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.remove()}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=LS();return i==null?null:VS(i)}resetBaseElement(){ys=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Gl(document.cookie,e)}},ys=null;function LS(){return ys=ys||document.querySelector("base"),ys?ys.getAttribute("href"):null}function VS(t){return new URL(t,document.baseURI).pathname}var BS=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),np=new G(""),K_=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(r=>{r.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,r){return this._findPluginFor(o).addEventListener(n,o,r)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new q(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(H(np),H(ge))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Ql=class{constructor(e){this._doc=e}},Jf="ng-app-id",Z_=(()=>{let e=class e{constructor(n,o,r,s={}){this.doc=n,this.appId=o,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=yr(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(r=>r.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Jf}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(r=>{r.textContent!=null&&o.set(r.textContent,r)}),o}return null}changeUsageCount(n,o){let r=this.styleRef;if(r.has(n)){let s=r.get(n);return s.usage+=o,s.usage}return r.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let r=this.styleNodesInDOM,s=r?.get(o);if(s?.parentNode===n)return r.delete(o),s.removeAttribute(Jf),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Jf,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let r=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(r):s.set(o,{elements:[r],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(H(Fe),H(mf),H(_f,8),H(Gt))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Xf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},op=/%COMP%/g,Q_="%COMP%",jS=`_nghost-${Q_}`,US=`_ngcontent-${Q_}`,HS=!0,zS=new G("",{providedIn:"root",factory:()=>HS});function $S(t){return US.replace(op,t)}function GS(t){return jS.replace(op,t)}function J_(t,e){return e.map(i=>i.replace(op,t))}var W_=(()=>{let e=class e{constructor(n,o,r,s,a,l,d,p=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=d,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=yr(l),this.defaultRenderer=new Cs(n,a,d,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Rn.ShadowDom&&(o=Se(Y({},o),{encapsulation:Rn.Emulated}));let r=this.getOrCreateRenderer(n,o);return r instanceof Jl?r.applyToHost(n):r instanceof bs&&r.applyStyles(),r}getOrCreateRenderer(n,o){let r=this.rendererByCompId,s=r.get(o.id);if(!s){let a=this.doc,l=this.ngZone,d=this.eventManager,p=this.sharedStylesHost,m=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(o.encapsulation){case Rn.Emulated:s=new Jl(d,p,o,this.appId,m,a,l,_);break;case Rn.ShadowDom:return new ip(d,p,n,o,a,l,this.nonce,_);default:s=new bs(d,p,o,m,a,l,_);break}r.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(H(K_),H(Z_),H(mf),H(zS),H(Fe),H(Gt),H(ge),H(_f))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),Cs=class{constructor(e,i,n,o){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Xf[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Y_(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Y_(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){i.remove()}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new q(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,o){if(o){i=o+":"+i;let r=Xf[o];r?e.setAttributeNS(r,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let o=Xf[n];o?e.removeAttributeNS(o,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,o){o&(Pn.DashCase|Pn.Important)?e.style.setProperty(i,n,o&Pn.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Pn.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=gr().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function Y_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ip=class extends Cs{constructor(e,i,n,o,r,s,a,l){super(e,r,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=J_(o.id,o.styles);for(let p of d){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=p,this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(null,i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},bs=class extends Cs{constructor(e,i,n,o,r,s,a,l){super(e,r,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=o,this.styles=l?J_(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Jl=class extends bs{constructor(e,i,n,o,r,s,a,l){let d=o+"-"+n.id;super(e,i,n,r,s,a,l,d),this.contentAttr=$S(d),this.hostAttr=GS(d)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},WS=(()=>{let e=class e extends Ql{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,r){return n.addEventListener(o,r,!1),()=>this.removeEventListener(n,o,r)}removeEventListener(n,o,r){return n.removeEventListener(o,r)}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})(),q_=["alt","control","meta","shift"],YS={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qS={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},KS=(()=>{let e=class e extends Ql{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,r){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gr().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),r=o.shift();if(o.length===0||!(r==="keydown"||r==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),q_.forEach(p=>{let m=o.indexOf(p);m>-1&&(o.splice(m,1),a+=p+".")}),a+=s,o.length!=0||s.length===0)return null;let d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(n,o){let r=YS[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(r=n.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),q_.forEach(a=>{if(a!==r){let l=qS[a];l(n)&&(s+=a+".")}}),s+=r,s===o)}static eventCallback(n,o,r){return s=>{e.matchEventFullKeyCode(s,n)&&r.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();function X_(t,e){return C_(Y({rootComponent:t},ZS(e)))}function ZS(t){return{appProviders:[...tM,...t?.providers??[]],platformProviders:eM}}function QS(){tp.makeCurrent()}function JS(){return new Kn}function XS(){return Yg(document),document}var eM=[{provide:Gt,useValue:R_},{provide:gf,useValue:QS,multi:!0},{provide:Fe,useFactory:XS,deps:[]}];var tM=[{provide:ll,useValue:"root"},{provide:Kn,useFactory:JS,deps:[]},{provide:np,useClass:WS,multi:!0,deps:[Fe,ge,Gt]},{provide:np,useClass:KS,multi:!0,deps:[Fe]},W_,Z_,K_,{provide:er,useExisting:W_},{provide:mr,useClass:BS,deps:[]},[]];var rp=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:function(o){let r=null;return o?r=new(o||e):r=H(nM),r},providedIn:"root"});let t=e;return t})(),nM=(()=>{let e=class e extends rp{constructor(n){super(),this._doc=n}sanitize(n,o){if(o==null)return null;switch(n){case Cn.NONE:return o;case Cn.HTML:return vo(o,"HTML")?Vn(o):r0(this._doc,String(o)).toString();case Cn.STYLE:return vo(o,"Style")?Vn(o):o;case Cn.SCRIPT:if(vo(o,"Script"))return Vn(o);throw new q(5200,!1);case Cn.URL:return vo(o,"URL")?Vn(o):Cl(String(o));case Cn.RESOURCE_URL:if(vo(o,"ResourceURL"))return Vn(o);throw new q(5201,!1);default:throw new q(5202,!1)}}bypassSecurityTrustHtml(n){return Kg(n)}bypassSecurityTrustStyle(n){return Zg(n)}bypassSecurityTrustScript(n){return Qg(n)}bypassSecurityTrustUrl(n){return Jg(n)}bypassSecurityTrustResourceUrl(n){return Xg(n)}};e.\u0275fac=function(o){return new(o||e)(H(Fe))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sp={},iM=location.href.split("?")[1].split("&");for(let t of iM){let[e,i]=t.split("=");sp[e]=i}var Xl="https://api.luckynode.com",Be=`/wp-json/${sp.slug}/v1`,ev=sp.nonce;function tv(t,e){if(t.url.startsWith("/")){let i=t.clone({headers:t.headers.set("X-WP-Nonce",ev||"invalidnonceonpurpose")});return e(i)}return e(t)}var nv={providers:[v_({eventCoalescing:!0}),$_(G_([tv]))]};function ai(t){t||(ul(ai),t=b(ei));let e=new ne(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(Ze(e))}var pv=(()=>{let e=class e{constructor(n,o){this._renderer=n,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(n,o){this._renderer.setProperty(this._elementRef.nativeElement,n,o)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(o){return new(o||e)(w(Wt),w(ye))},e.\u0275dir=ae({type:e});let t=e;return t})(),Is=(()=>{let e=class e extends pv{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,features:[tt]});let t=e;return t})(),Hn=new G(""),oM={provide:Hn,useExisting:at(()=>wn),multi:!0},wn=(()=>{let e=class e extends Is{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,r){o&1&&C("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[nt([oM]),tt]});let t=e;return t})(),rM={provide:Hn,useExisting:at(()=>it),multi:!0};function sM(){let t=gr()?gr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var aM=new G(""),it=(()=>{let e=class e extends pv{constructor(n,o,r){super(n,o),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!sM())}writeValue(n){let o=n??"";this.setProperty("value",o)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(o){return new(o||e)(w(Wt),w(ye),w(aM,8))},e.\u0275dir=ae({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(o,r){o&1&&C("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[nt([rM]),tt]});let t=e;return t})();function iv(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var Er=new G(""),hv=new G("");function lM(t){return e=>{if(iv(e.value)||iv(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function ov(t){return null}function mv(t){return t!=null}function gv(t){return ps(t)?mn(t):t}function _v(t){let e={};return t.forEach(i=>{e=i!=null?Y(Y({},e),i):e}),Object.keys(e).length===0?null:e}function vv(t,e){return e.map(i=>i(t))}function cM(t){return!t.validate}function yv(t){return t.map(e=>cM(e)?e:i=>e.validate(i))}function uM(t){if(!t)return null;let e=t.filter(mv);return e.length==0?null:function(i){return _v(vv(i,e))}}function lp(t){return t!=null?uM(yv(t)):null}function dM(t){if(!t)return null;let e=t.filter(mv);return e.length==0?null:function(i){let n=vv(i,e).map(gv);return _u(n).pipe(Me(_v))}}function cp(t){return t!=null?dM(yv(t)):null}function rv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function fM(t){return t._rawValidators}function pM(t){return t._rawAsyncValidators}function ap(t){return t?Array.isArray(t)?t:[t]:[]}function tc(t,e){return Array.isArray(t)?t.includes(e):t===e}function sv(t,e){let i=ap(e);return ap(t).forEach(o=>{tc(i,o)||i.push(o)}),i}function av(t,e){return ap(e).filter(i=>!tc(t,i))}var nc=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=lp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Dr=class extends nc{get formDirective(){return null}get path(){return null}},Ts=class extends nc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},ic=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},hM={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},cB=Se(Y({},hM),{"[class.ng-submitted]":"isSubmitted"}),Pe=(()=>{let e=class e extends ic{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Ts,2))},e.\u0275dir=ae({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,r){o&2&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[tt]});let t=e;return t})(),en=(()=>{let e=class e extends ic{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Dr,10))},e.\u0275dir=ae({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,r){o&2&&Qe("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[tt]});let t=e;return t})();var Ds="VALID",ec="INVALID",Cr="PENDING",ws="DISABLED",wr=class{},oc=class extends wr{constructor(e,i){super(),this.value=e,this.source=i}},Ss=class extends wr{constructor(e,i){super(),this.pristine=e,this.source=i}},Ms=class extends wr{constructor(e,i){super(),this.touched=e,this.source=i}},br=class extends wr{constructor(e,i){super(),this.status=e,this.source=i}};function Cv(t){return(ac(t)?t.validators:t)||null}function mM(t){return Array.isArray(t)?lp(t):t||null}function bv(t,e){return(ac(e)?e.asyncValidators:t)||null}function gM(t){return Array.isArray(t)?cp(t):t||null}function ac(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function _M(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new q(1e3,"");if(!n[i])throw new q(1001,"")}function vM(t,e,i){t._forEachChild((n,o)=>{if(i[o]===void 0)throw new q(1002,"")})}var rc=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=hr(()=>this.statusReactive()),this.statusReactive=Si(void 0),this._pristine=hr(()=>this.pristineReactive()),this.pristineReactive=Si(!0),this._touched=hr(()=>this.touchedReactive()),this.touchedReactive=Si(!1),this._events=new he,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Un(this.statusReactive)}set status(e){Un(()=>this.statusReactive.set(e))}get valid(){return this.status===Ds}get invalid(){return this.status===ec}get pending(){return this.status==Cr}get disabled(){return this.status===ws}get enabled(){return this.status!==ws}get pristine(){return Un(this.pristineReactive)}set pristine(e){Un(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Un(this.touchedReactive)}set touched(e){Un(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(sv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(sv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(av(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(av(e,this._rawAsyncValidators))}hasValidator(e){return tc(this._rawValidators,e)}hasAsyncValidator(e){return tc(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Se(Y({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Ms(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new Ms(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Se(Y({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new Ss(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new Ss(!0,n))}markAsPending(e={}){this.status=Cr;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new br(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Se(Y({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=ws,this.errors=null,this._forEachChild(o=>{o.disable(Se(Y({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new oc(this.value,n)),this._events.next(new br(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Se(Y({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Ds,this._forEachChild(n=>{n.enable(Se(Y({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Se(Y({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ds||this.status===Cr)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new oc(this.value,i)),this._events.next(new br(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Se(Y({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ws:Ds}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=Cr,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=gv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,o)=>n&&n._find(o),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new br(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new re,this.statusChanges=new re}_calculateStatus(){return this._allControlsDisabled()?ws:this.errors?ec:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Cr)?Cr:this._anyControlsHaveStatus(ec)?ec:Ds}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),o&&this._events.next(new Ss(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new Ms(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ac(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=mM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=gM(this._rawAsyncValidators)}},sc=class extends rc{constructor(e,i,n){super(Cv(i),bv(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){vM(this,!0,e),Object.keys(e).forEach(n=>{_M(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,o)=>((n.enabled||this.disabled)&&(i[o]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((o,r)=>{n=i(n,o,r)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var up=new G("CallSetDisabledState",{providedIn:"root",factory:()=>dp}),dp="always";function yM(t,e){return[...e.path,t]}function Dv(t,e,i=dp){wv(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),bM(t,e),wM(t,e),DM(t,e),CM(t,e)}function lv(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function CM(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function wv(t,e){let i=fM(t);e.validator!==null?t.setValidators(rv(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=pM(t);e.asyncValidator!==null?t.setAsyncValidators(rv(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();lv(e._rawValidators,o),lv(e._rawAsyncValidators,o)}function bM(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Ev(t,e)})}function DM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Ev(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Ev(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wM(t,e){let i=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function EM(t,e){t==null,wv(t,e)}function SM(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function MM(t){return Object.getPrototypeOf(t.constructor)===Is}function TM(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function IM(t,e){if(!e)return null;Array.isArray(e);let i,n,o;return e.forEach(r=>{r.constructor===it?i=r:MM(r)?n=r:o=r}),o||n||i||null}var xM={provide:Dr,useExisting:at(()=>Lt)},Es=Promise.resolve(),Lt=(()=>{let e=class e extends Dr{get submitted(){return Un(this.submittedReactive)}constructor(n,o,r){super(),this.callSetDisabledState=r,this._submitted=hr(()=>this.submittedReactive()),this.submittedReactive=Si(!1),this._directives=new Set,this.ngSubmit=new re,this.form=new sc({},lp(n),cp(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Es.then(()=>{let o=this._findContainer(n.path);n.control=o.registerControl(n.name,n.control),Dv(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Es.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Es.then(()=>{let o=this._findContainer(n.path),r=new sc({});EM(r,n),o.registerControl(n.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Es.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,o){Es.then(()=>{this.form.get(n.path).setValue(o)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),TM(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(o){return new(o||e)(w(Er,10),w(hv,10),w(up,8))},e.\u0275dir=ae({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,r){o&1&&C("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[nt([xM]),tt]});let t=e;return t})();function cv(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function uv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var OM=class extends rc{constructor(e=null,i,n){super(Cv(i),bv(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ac(i)&&(i.nonNullable||i.initialValueIsDefault)&&(uv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){cv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){cv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){uv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var NM={provide:Ts,useExisting:at(()=>Ne)},dv=Promise.resolve(),Ne=(()=>{let e=class e extends Ts{constructor(n,o,r,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new OM,this._registered=!1,this.name="",this.update=new re,this._parent=n,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=IM(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let o=n.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),SM(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Dv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){dv.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let o=n.isDisabled.currentValue,r=o!==0&&Lf(o);dv.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?yM(n,this._parent):[n]}};e.\u0275fac=function(o){return new(o||e)(w(Dr,9),w(Er,10),w(hv,10),w(Hn,10),w(Jt,8),w(up,8))},e.\u0275dir=ae({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[nt([NM]),tt,yt]});let t=e;return t})(),tn=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),AM={provide:Hn,useExisting:at(()=>bo),multi:!0},bo=(()=>{let e=class e extends Is{writeValue(n){let o=n??"";this.setProperty("value",o)}registerOnChange(n){this.onChange=o=>{n(o==""?null:parseFloat(o))}}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(o,r){o&1&&C("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[nt([AM]),tt]});let t=e;return t})();var RM={provide:Hn,useExisting:at(()=>It),multi:!0};function Sv(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function kM(t){return t.split(":")[0]}var It=(()=>{let e=class e extends Is{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let o=this._getOptionId(n),r=Sv(o,n);this.setProperty("value",r)}registerOnChange(n){this.onChange=o=>{this.value=this._getOptionValue(o),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o),n))return o;return null}_getOptionValue(n){let o=kM(n);return this._optionMap.has(o)?this._optionMap.get(o):n}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(o,r){o&1&&C("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[nt([RM]),tt]});let t=e;return t})(),nn=(()=>{let e=class e{constructor(n,o,r){this._element=n,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Sv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt),w(It,9))},e.\u0275dir=ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),FM={provide:Hn,useExisting:at(()=>Mv),multi:!0};function fv(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function PM(t){return t.split(":")[0]}var Mv=(()=>{let e=class e extends Is{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let o;if(Array.isArray(n)){let r=n.map(s=>this._getOptionId(s));o=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else o=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(n){this.onChange=o=>{let r=[],s=o.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l<a.length;l++){let d=a[l],p=this._getOptionValue(d.value);r.push(p)}}else{let a=o.options;for(let l=0;l<a.length;l++){let d=a[l];if(d.selected){let p=this._getOptionValue(d.value);r.push(p)}}}this.value=r,n(r)}}_registerOption(n){let o=(this._idCounter++).toString();return this._optionMap.set(o,n),o}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o)._value,n))return o;return null}_getOptionValue(n){let o=PM(n);return this._optionMap.has(o)?this._optionMap.get(o)._value:n}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(o,r){o&1&&C("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[nt([FM]),tt]});let t=e;return t})(),on=(()=>{let e=class e{constructor(n,o,r){this._element=n,this._renderer=o,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(fv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(fv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(o){return new(o||e)(w(ye),w(Wt),w(Mv,9))},e.\u0275dir=ae({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function LM(t){return typeof t=="number"?t:parseFloat(t)}var VM=(()=>{let e=class e{constructor(){this._validator=ov}ngOnChanges(n){if(this.inputName in n){let o=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):ov,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,features:[yt]});let t=e;return t})();var BM={provide:Er,useExisting:at(()=>fp),multi:!0},fp=(()=>{let e=class e extends VM{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>LM(n),this.createValidator=n=>lM(n)}};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(o,r){o&2&&Mt("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[nt([BM]),tt]});let t=e;return t})();var jM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();var be=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:up,useValue:n.callSetDisabledState??dp}]}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({imports:[jM]});let t=e;return t})();var We="top",ct="bottom",ot="right",Je="left",lc="auto",Ai=[We,ct,ot,Je],li="start",Do="end",Tv="clippingParents",cc="viewport",Sr="popper",Iv="reference",pp=Ai.reduce(function(t,e){return t.concat([e+"-"+li,e+"-"+Do])},[]),uc=[].concat(Ai,[lc]).reduce(function(t,e){return t.concat([e,e+"-"+li,e+"-"+Do])},[]),UM="beforeRead",HM="read",zM="afterRead",$M="beforeMain",GM="main",WM="afterMain",YM="beforeWrite",qM="write",KM="afterWrite",xv=[UM,HM,zM,$M,GM,WM,YM,qM,KM];function rt(t){return t?(t.nodeName||"").toLowerCase():null}function Le(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function sn(t){var e=Le(t).Element;return t instanceof e||t instanceof Element}function Xe(t){var e=Le(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Mr(t){if(typeof ShadowRoot>"u")return!1;var e=Le(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ZM(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var n=e.styles[i]||{},o=e.attributes[i]||{},r=e.elements[i];!Xe(r)||!rt(r)||(Object.assign(r.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?r.removeAttribute(s):r.setAttribute(s,a===!0?"":a)}))})}function QM(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],r=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:i[n]),a=s.reduce(function(l,d){return l[d]="",l},{});!Xe(o)||!rt(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}}var Ov={name:"applyStyles",enabled:!0,phase:"write",fn:ZM,effect:QM,requires:["computeStyles"]};function st(t){return t.split("-")[0]}var En=Math.max,wo=Math.min,ci=Math.round;function Tr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xs(){return!/^((?!chrome|android).)*safari/i.test(Tr())}function an(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=t.getBoundingClientRect(),o=1,r=1;e&&Xe(t)&&(o=t.offsetWidth>0&&ci(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&ci(n.height)/t.offsetHeight||1);var s=sn(t)?Le(t):window,a=s.visualViewport,l=!xs()&&i,d=(n.left+(l&&a?a.offsetLeft:0))/o,p=(n.top+(l&&a?a.offsetTop:0))/r,m=n.width/o,_=n.height/r;return{width:m,height:_,top:p,right:d+m,bottom:p+_,left:d,x:d,y:p}}function Eo(t){var e=an(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Os(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Mr(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function bt(t){return Le(t).getComputedStyle(t)}function hp(t){return["table","td","th"].indexOf(rt(t))>=0}function ut(t){return((sn(t)?t.ownerDocument:t.document)||window.document).documentElement}function ui(t){return rt(t)==="html"?t:t.assignedSlot||t.parentNode||(Mr(t)?t.host:null)||ut(t)}function Nv(t){return!Xe(t)||bt(t).position==="fixed"?null:t.offsetParent}function JM(t){var e=/firefox/i.test(Tr()),i=/Trident/i.test(Tr());if(i&&Xe(t)){var n=bt(t);if(n.position==="fixed")return null}var o=ui(t);for(Mr(o)&&(o=o.host);Xe(o)&&["html","body"].indexOf(rt(o))<0;){var r=bt(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}function Sn(t){for(var e=Le(t),i=Nv(t);i&&hp(i)&&bt(i).position==="static";)i=Nv(i);return i&&(rt(i)==="html"||rt(i)==="body"&&bt(i).position==="static")?e:i||JM(t)||e}function So(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Mo(t,e,i){return En(t,wo(e,i))}function Av(t,e,i){var n=Mo(t,e,i);return n>i?i:n}function Ns(){return{top:0,right:0,bottom:0,left:0}}function As(t){return Object.assign({},Ns(),t)}function Rs(t,e){return e.reduce(function(i,n){return i[n]=t,i},{})}var XM=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,As(typeof e!="number"?e:Rs(e,Ai))};function eT(t){var e,i=t.state,n=t.name,o=t.options,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=st(i.placement),l=So(a),d=[Je,ot].indexOf(a)>=0,p=d?"height":"width";if(!(!r||!s)){var m=XM(o.padding,i),_=Eo(r),g=l==="y"?We:Je,D=l==="y"?ct:ot,x=i.rects.reference[p]+i.rects.reference[l]-s[l]-i.rects.popper[p],O=s[l]-i.rects.reference[l],N=Sn(r),z=N?l==="y"?N.clientHeight||0:N.clientWidth||0:0,le=x/2-O/2,P=m[g],oe=z-_[p]-m[D],$=z/2-_[p]/2+le,pe=Mo(P,$,oe),Ae=l;i.modifiersData[n]=(e={},e[Ae]=pe,e.centerOffset=pe-$,e)}}function tT(t){var e=t.state,i=t.options,n=i.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Os(e.elements.popper,o)&&(e.elements.arrow=o))}var mp={name:"arrow",enabled:!0,phase:"main",fn:eT,effect:tT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ln(t){return t.split("-")[1]}var nT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iT(t,e){var i=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:ci(i*o)/o||0,y:ci(n*o)/o||0}}function Rv(t){var e,i=t.popper,n=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,d=t.adaptive,p=t.roundOffsets,m=t.isFixed,_=s.x,g=_===void 0?0:_,D=s.y,x=D===void 0?0:D,O=typeof p=="function"?p({x:g,y:x}):{x:g,y:x};g=O.x,x=O.y;var N=s.hasOwnProperty("x"),z=s.hasOwnProperty("y"),le=Je,P=We,oe=window;if(d){var $=Sn(i),pe="clientHeight",Ae="clientWidth";if($===Le(i)&&($=ut(i),bt($).position!=="static"&&a==="absolute"&&(pe="scrollHeight",Ae="scrollWidth")),$=$,o===We||(o===Je||o===ot)&&r===Do){P=ct;var $e=m&&$===oe&&oe.visualViewport?oe.visualViewport.height:$[pe];x-=$e-n.height,x*=l?1:-1}if(o===Je||(o===We||o===ct)&&r===Do){le=ot;var qe=m&&$===oe&&oe.visualViewport?oe.visualViewport.width:$[Ae];g-=qe-n.width,g*=l?1:-1}}var dt=Object.assign({position:a},d&&nT),dn=p===!0?iT({x:g,y:x},Le(i)):{x:g,y:x};if(g=dn.x,x=dn.y,l){var mt;return Object.assign({},dt,(mt={},mt[P]=z?"0":"",mt[le]=N?"0":"",mt.transform=(oe.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",mt))}return Object.assign({},dt,(e={},e[P]=z?x+"px":"",e[le]=N?g+"px":"",e.transform="",e))}function oT(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=n===void 0?!0:n,r=i.adaptive,s=r===void 0?!0:r,a=i.roundOffsets,l=a===void 0?!0:a,d={placement:st(e.placement),variation:ln(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Rv(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Rv(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var kv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:oT,data:{}};var dc={passive:!0};function rT(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,r=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=Le(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(p){p.addEventListener("scroll",i.update,dc)}),a&&l.addEventListener("resize",i.update,dc),function(){r&&d.forEach(function(p){p.removeEventListener("scroll",i.update,dc)}),a&&l.removeEventListener("resize",i.update,dc)}}var Fv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rT,data:{}};var sT={left:"right",right:"left",bottom:"top",top:"bottom"};function Ir(t){return t.replace(/left|right|bottom|top/g,function(e){return sT[e]})}var aT={start:"end",end:"start"};function fc(t){return t.replace(/start|end/g,function(e){return aT[e]})}function To(t){var e=Le(t),i=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Io(t){return an(ut(t)).left+To(t).scrollLeft}function gp(t,e){var i=Le(t),n=ut(t),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var d=xs();(d||!d&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Io(t),y:l}}function _p(t){var e,i=ut(t),n=To(t),o=(e=t.ownerDocument)==null?void 0:e.body,r=En(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=En(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Io(t),l=-n.scrollTop;return bt(o||i).direction==="rtl"&&(a+=En(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}function xo(t){var e=bt(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function pc(t){return["html","body","#document"].indexOf(rt(t))>=0?t.ownerDocument.body:Xe(t)&&xo(t)?t:pc(ui(t))}function Ri(t,e){var i;e===void 0&&(e=[]);var n=pc(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),r=Le(n),s=o?[r].concat(r.visualViewport||[],xo(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Ri(ui(s)))}function xr(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lT(t,e){var i=an(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Pv(t,e,i){return e===cc?xr(gp(t,i)):sn(e)?lT(e,i):xr(_p(ut(t)))}function cT(t){var e=Ri(ui(t)),i=["absolute","fixed"].indexOf(bt(t).position)>=0,n=i&&Xe(t)?Sn(t):t;return sn(n)?e.filter(function(o){return sn(o)&&Os(o,n)&&rt(o)!=="body"}):[]}function vp(t,e,i,n){var o=e==="clippingParents"?cT(t):[].concat(e),r=[].concat(o,[i]),s=r[0],a=r.reduce(function(l,d){var p=Pv(t,d,n);return l.top=En(p.top,l.top),l.right=wo(p.right,l.right),l.bottom=wo(p.bottom,l.bottom),l.left=En(p.left,l.left),l},Pv(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ks(t){var e=t.reference,i=t.element,n=t.placement,o=n?st(n):null,r=n?ln(n):null,s=e.x+e.width/2-i.width/2,a=e.y+e.height/2-i.height/2,l;switch(o){case We:l={x:s,y:e.y-i.height};break;case ct:l={x:s,y:e.y+e.height};break;case ot:l={x:e.x+e.width,y:a};break;case Je:l={x:e.x-i.width,y:a};break;default:l={x:e.x,y:e.y}}var d=o?So(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(r){case li:l[d]=l[d]-(e[p]/2-i[p]/2);break;case Do:l[d]=l[d]+(e[p]/2-i[p]/2);break;default:}}return l}function ki(t,e){e===void 0&&(e={});var i=e,n=i.placement,o=n===void 0?t.placement:n,r=i.strategy,s=r===void 0?t.strategy:r,a=i.boundary,l=a===void 0?Tv:a,d=i.rootBoundary,p=d===void 0?cc:d,m=i.elementContext,_=m===void 0?Sr:m,g=i.altBoundary,D=g===void 0?!1:g,x=i.padding,O=x===void 0?0:x,N=As(typeof O!="number"?O:Rs(O,Ai)),z=_===Sr?Iv:Sr,le=t.rects.popper,P=t.elements[D?z:_],oe=vp(sn(P)?P:P.contextElement||ut(t.elements.popper),l,p,s),$=an(t.elements.reference),pe=ks({reference:$,element:le,strategy:"absolute",placement:o}),Ae=xr(Object.assign({},le,pe)),$e=_===Sr?Ae:$,qe={top:oe.top-$e.top+N.top,bottom:$e.bottom-oe.bottom+N.bottom,left:oe.left-$e.left+N.left,right:$e.right-oe.right+N.right},dt=t.modifiersData.offset;if(_===Sr&&dt){var dn=dt[o];Object.keys(qe).forEach(function(mt){var ji=[ot,ct].indexOf(mt)>=0?1:-1,Ui=[We,ct].indexOf(mt)>=0?"y":"x";qe[mt]+=dn[Ui]*ji})}return qe}function yp(t,e){e===void 0&&(e={});var i=e,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,d=l===void 0?uc:l,p=ln(n),m=p?a?pp:pp.filter(function(D){return ln(D)===p}):Ai,_=m.filter(function(D){return d.indexOf(D)>=0});_.length===0&&(_=m);var g=_.reduce(function(D,x){return D[x]=ki(t,{placement:x,boundary:o,rootBoundary:r,padding:s})[st(x)],D},{});return Object.keys(g).sort(function(D,x){return g[D]-g[x]})}function uT(t){if(st(t)===lc)return[];var e=Ir(t);return[fc(t),e,fc(e)]}function dT(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=i.mainAxis,r=o===void 0?!0:o,s=i.altAxis,a=s===void 0?!0:s,l=i.fallbackPlacements,d=i.padding,p=i.boundary,m=i.rootBoundary,_=i.altBoundary,g=i.flipVariations,D=g===void 0?!0:g,x=i.allowedAutoPlacements,O=e.options.placement,N=st(O),z=N===O,le=l||(z||!D?[Ir(O)]:uT(O)),P=[O].concat(le).reduce(function(No,pi){return No.concat(st(pi)===lc?yp(e,{placement:pi,boundary:p,rootBoundary:m,padding:d,flipVariations:D,allowedAutoPlacements:x}):pi)},[]),oe=e.rects.reference,$=e.rects.popper,pe=new Map,Ae=!0,$e=P[0],qe=0;qe<P.length;qe++){var dt=P[qe],dn=st(dt),mt=ln(dt)===li,ji=[We,ct].indexOf(dn)>=0,Ui=ji?"width":"height",Ot=ki(e,{placement:dt,boundary:p,rootBoundary:m,altBoundary:_,padding:d}),fn=ji?mt?ot:Je:mt?ct:We;oe[Ui]>$[Ui]&&(fn=Ir(fn));var Vs=Ir(fn),Hi=[];if(r&&Hi.push(Ot[dn]<=0),a&&Hi.push(Ot[fn]<=0,Ot[Vs]<=0),Hi.every(function(No){return No})){$e=dt,Ae=!1;break}pe.set(dt,Hi)}if(Ae)for(var Bs=D?3:1,Qc=function(pi){var Br=P.find(function(Us){var zi=pe.get(Us);if(zi)return zi.slice(0,pi).every(function(Jc){return Jc})});if(Br)return $e=Br,"break"},Vr=Bs;Vr>0;Vr--){var js=Qc(Vr);if(js==="break")break}e.placement!==$e&&(e.modifiersData[n]._skip=!0,e.placement=$e,e.reset=!0)}}var Cp={name:"flip",enabled:!0,phase:"main",fn:dT,requiresIfExists:["offset"],data:{_skip:!1}};function fT(t,e,i){var n=st(t),o=[Je,We].indexOf(n)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Je,ot].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function pT(t){var e=t.state,i=t.options,n=t.name,o=i.offset,r=o===void 0?[0,0]:o,s=uc.reduce(function(p,m){return p[m]=fT(m,e.rects,r),p},{}),a=s[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=s}var bp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pT};function hT(t){var e=t.state,i=t.name;e.modifiersData[i]=ks({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Lv={name:"popperOffsets",enabled:!0,phase:"read",fn:hT,data:{}};function Dp(t){return t==="x"?"y":"x"}function mT(t){var e=t.state,i=t.options,n=t.name,o=i.mainAxis,r=o===void 0?!0:o,s=i.altAxis,a=s===void 0?!1:s,l=i.boundary,d=i.rootBoundary,p=i.altBoundary,m=i.padding,_=i.tether,g=_===void 0?!0:_,D=i.tetherOffset,x=D===void 0?0:D,O=ki(e,{boundary:l,rootBoundary:d,padding:m,altBoundary:p}),N=st(e.placement),z=ln(e.placement),le=!z,P=So(N),oe=Dp(P),$=e.modifiersData.popperOffsets,pe=e.rects.reference,Ae=e.rects.popper,$e=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,qe=typeof $e=="number"?{mainAxis:$e,altAxis:$e}:Object.assign({mainAxis:0,altAxis:0},$e),dt=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,dn={x:0,y:0};if($){if(r){var mt,ji=P==="y"?We:Je,Ui=P==="y"?ct:ot,Ot=P==="y"?"height":"width",fn=$[P],Vs=fn+O[ji],Hi=fn-O[Ui],Bs=g?-Ae[Ot]/2:0,Qc=z===li?pe[Ot]:Ae[Ot],Vr=z===li?-Ae[Ot]:-pe[Ot],js=e.elements.arrow,No=g&&js?Eo(js):{width:0,height:0},pi=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ns(),Br=pi[ji],Us=pi[Ui],zi=Mo(0,pe[Ot],No[Ot]),Jc=le?pe[Ot]/2-Bs-zi-Br-qe.mainAxis:Qc-zi-Br-qe.mainAxis,fy=le?-pe[Ot]/2+Bs+zi+Us+qe.mainAxis:Vr+zi+Us+qe.mainAxis,Xc=e.elements.arrow&&Sn(e.elements.arrow),py=Xc?P==="y"?Xc.clientTop||0:Xc.clientLeft||0:0,Yp=(mt=dt?.[P])!=null?mt:0,hy=fn+Jc-Yp-py,my=fn+fy-Yp,qp=Mo(g?wo(Vs,hy):Vs,fn,g?En(Hi,my):Hi);$[P]=qp,dn[P]=qp-fn}if(a){var Kp,gy=P==="x"?We:Je,_y=P==="x"?ct:ot,$i=$[oe],Hs=oe==="y"?"height":"width",Zp=$i+O[gy],Qp=$i-O[_y],eu=[We,Je].indexOf(N)!==-1,Jp=(Kp=dt?.[oe])!=null?Kp:0,Xp=eu?Zp:$i-pe[Hs]-Ae[Hs]-Jp+qe.altAxis,eh=eu?$i+pe[Hs]+Ae[Hs]-Jp-qe.altAxis:Qp,th=g&&eu?Av(Xp,$i,eh):Mo(g?Xp:Zp,$i,g?eh:Qp);$[oe]=th,dn[oe]=th-$i}e.modifiersData[n]=dn}}var wp={name:"preventOverflow",enabled:!0,phase:"main",fn:mT,requiresIfExists:["offset"]};function Ep(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Sp(t){return t===Le(t)||!Xe(t)?To(t):Ep(t)}function gT(t){var e=t.getBoundingClientRect(),i=ci(e.width)/t.offsetWidth||1,n=ci(e.height)/t.offsetHeight||1;return i!==1||n!==1}function Mp(t,e,i){i===void 0&&(i=!1);var n=Xe(e),o=Xe(e)&&gT(e),r=ut(e),s=an(t,o,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&((rt(e)!=="body"||xo(r))&&(a=Sp(e)),Xe(e)?(l=an(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=Io(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function _T(t){var e=new Map,i=new Set,n=[];t.forEach(function(r){e.set(r.name,r)});function o(r){i.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(a){if(!i.has(a)){var l=e.get(a);l&&o(l)}}),n.push(r)}return t.forEach(function(r){i.has(r.name)||o(r)}),n}function Tp(t){var e=_T(t);return xv.reduce(function(i,n){return i.concat(e.filter(function(o){return o.phase===n}))},[])}function Ip(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function xp(t){var e=t.reduce(function(i,n){var o=i[n.name];return i[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,i},{});return Object.keys(e).map(function(i){return e[i]})}var Vv={placement:"bottom",modifiers:[],strategy:"absolute"};function Bv(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function jv(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,o=e.defaultOptions,r=o===void 0?Vv:o;return function(a,l,d){d===void 0&&(d=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vv,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},m=[],_=!1,g={state:p,setOptions:function(N){var z=typeof N=="function"?N(p.options):N;x(),p.options=Object.assign({},r,p.options,z),p.scrollParents={reference:sn(a)?Ri(a):a.contextElement?Ri(a.contextElement):[],popper:Ri(l)};var le=Tp(xp([].concat(n,p.options.modifiers)));return p.orderedModifiers=le.filter(function(P){return P.enabled}),D(),g.update()},forceUpdate:function(){if(!_){var N=p.elements,z=N.reference,le=N.popper;if(Bv(z,le)){p.rects={reference:Mp(z,Sn(le),p.options.strategy==="fixed"),popper:Eo(le)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(qe){return p.modifiersData[qe.name]=Object.assign({},qe.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var oe=p.orderedModifiers[P],$=oe.fn,pe=oe.options,Ae=pe===void 0?{}:pe,$e=oe.name;typeof $=="function"&&(p=$({state:p,options:Ae,name:$e,instance:g})||p)}}}},update:Ip(function(){return new Promise(function(O){g.forceUpdate(),O(p)})}),destroy:function(){x(),_=!0}};if(!Bv(a,l))return g;g.setOptions(d).then(function(O){!_&&d.onFirstUpdate&&d.onFirstUpdate(O)});function D(){p.orderedModifiers.forEach(function(O){var N=O.name,z=O.options,le=z===void 0?{}:z,P=O.effect;if(typeof P=="function"){var oe=P({state:p,name:N,instance:g,options:le}),$=function(){};m.push(oe||$)}})}function x(){m.forEach(function(O){return O()}),m=[]}return g}}var vT=[Fv,Lv,kv,Ov],Op=jv({defaultModifiers:vT});var yT=["*"];var CT=t=>({$implicit:t});var bT=["dialog"],DT=["ngbNavOutlet",""];function wT(t,e){}function ET(t,e){if(t&1&&(c(0,"div",0),S(1,wT,0,0,"ng-template",1),u()),t&2){let i=y().$implicit,n=y();A("item",i)("nav",n.nav)("role",n.paneRole),h(),A("ngTemplateOutlet",(i.contentTpl==null?null:i.contentTpl.templateRef)||null)("ngTemplateOutletContext",l_(5,CT,i.active||n.isPanelTransitioning(i)))}}function ST(t,e){if(t&1&&S(0,ET,2,7,"div",0),t&2){let i=e.$implicit,n=y();I(i.isPanelInDom()||n.isPanelTransitioning(i)?0:-1)}}function MT(t,e){if(t&1&&(c(0,"span"),f(1),u()),t&2){let i=y().$implicit,n=y();lr(n.highlightClass),h(),J(i)}}function TT(t,e){if(t&1&&(Rf(0),f(1),kf()),t&2){let i=y().$implicit;h(),J(i)}}function IT(t,e){if(t&1&&S(0,MT,2,4,"span",0)(1,TT,2,1,"ng-container"),t&2){let i=e.$index;I(i%2!==0?0:1)}}var xT=(t,e,i)=>({result:t,term:e,formatter:i});function OT(t,e){if(t&1&&v(0,"ngb-highlight",2),t&2){let i=e.result,n=e.term,o=e.formatter;A("result",o(i))("term",n)}}function NT(t,e){}function AT(t,e){if(t&1){let i=U();c(0,"button",3),C("mouseenter",function(){let o=M(i).$index,r=y();return T(r.markActive(o))})("click",function(){let o=M(i).$implicit,r=y();return T(r.select(o))}),S(1,NT,0,0,"ng-template",4),u()}if(t&2){let i=e.$implicit,n=e.$index,o=y(),r=fr(1);Qe("active",n===o.activeIdx),A("id",o.id+"-"+n),h(),A("ngTemplateOutlet",o.resultTemplate||r)("ngTemplateOutletContext",c_(5,xT,i,o.term,o.formatter))}}var Yv={animation:!0,transitionTimerDelayMs:5},qv=(()=>{let e=class e{constructor(){this.animation=Yv.animation}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RT(t){let{transitionDelay:e,transitionDuration:i}=window.getComputedStyle(t),n=parseFloat(e),o=parseFloat(i);return(n+o)*1e3}function Fs(t){return t!=null?`${t}`:""}function Kv(t){return typeof t=="string"}function Fi(t){return t!=null}function kT(t){return t&&t.then}function FT(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function PT(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function Fp(t){return(t||document.body).getBoundingClientRect()}function LT(t){return e=>new ne(i=>{let n=s=>t.run(()=>i.next(s)),o=s=>t.run(()=>i.error(s)),r=()=>t.run(()=>i.complete());return e.subscribe({next:n,error:o,complete:r})})}function Uv(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Zv(t=document){let e=t?.activeElement;return e?e.shadowRoot?Zv(e.shadowRoot):e:null}var VT=()=>{},{transitionTimerDelayMs:BT}=Yv,hc=new Map,Mn=(t,e,i,n)=>{let o=n.context||{},r=hc.get(e);if(r)switch(n.runningTransition){case"continue":return Wn;case"stop":t.run(()=>r.transition$.complete()),o=Object.assign(r.context,o),hc.delete(e)}let s=i(e,n.animation,o)||VT;if(!n.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>s()),gn(void 0).pipe(LT(t));let a=new he,l=new he,d=a.pipe(bu(!0));hc.set(e,{transition$:a,complete:()=>{l.next(),l.complete()},context:o});let p=RT(e);return t.runOutsideAngular(()=>{let m=xe(e,"transitionend").pipe(Ze(d),_t(({target:g})=>g===e)),_=Qi(p+BT).pipe(Ze(d));ba(_,m,l).pipe(Ze(d)).subscribe(()=>{hc.delete(e),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};var mc=(t,e)=>e?e.some(i=>i.contains(t)):!1,Hv=(t,e)=>!e||PT(t,e)!=null,jT=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),UT=t=>jT?()=>setTimeout(()=>t(),100):t;function Qv(t,e,i,n,o,r,s,a){i&&t.runOutsideAngular(UT(()=>{let l=_=>{let g=_.target;return _.button===2||mc(g,s)?!1:i==="inside"?mc(g,r)&&Hv(g,a):i==="outside"?!mc(g,r):Hv(g,a)||!mc(g,r)},d=xe(e,"keydown").pipe(Ze(o),_t(_=>_.key==="Escape"),Xi(_=>_.preventDefault())),p=xe(e,"mousedown").pipe(Me(l),Ze(o)),m=xe(e,"mouseup").pipe(Wr(p),_t(([_,g])=>g),Cu(0),Ze(o));ba([d.pipe(Me(_=>0)),m.pipe(Me(_=>1))]).subscribe(_=>t.run(()=>n(_)))}))}var Jv=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Xv(t){let e=Array.from(t.querySelectorAll(Jv)).filter(i=>i.tabIndex!==-1);return[e[0],e[e.length-1]]}var HT=(t,e,i,n=!1)=>{t.runOutsideAngular(()=>{let o=xe(e,"focusin").pipe(Ze(i),Me(r=>r.target));xe(e,"keydown").pipe(Ze(i),_t(r=>r.key==="Tab"),Wr(o)).subscribe(([r,s])=>{let[a,l]=Xv(e);(s===a||s===e)&&r.shiftKey&&(l.focus(),r.preventDefault()),s===l&&!r.shiftKey&&(a.focus(),r.preventDefault())}),n&&xe(e,"click").pipe(Ze(i),Wr(o),Me(r=>r[1])).subscribe(r=>r.focus())})},zT=(()=>{let e=class e{constructor(){this._element=b(Fe).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$T=/\s+/,GT=/ +/gi,WT={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function YT(t,e){let[i,n]=WT[t];return e&&n||i}var qT=/^left/,KT=/^right/,ZT=/^start/,QT=/^end/;function JT(t,e){let[i,n]=e.split("-"),o=i.replace(qT,"start").replace(KT,"end"),r=[o];if(n){let s=n;(i==="left"||i==="right")&&(s=s.replace(ZT,"top").replace(QT,"bottom")),r.push(`${o}-${s}`)}return t&&(r=r.map(s=>`${t}-${s}`)),r.join(" ")}function zv({placement:t,baseClass:e},i){let n=Array.isArray(t)?t:t.split($T),o=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],r=n.findIndex(d=>d==="auto");r>=0&&o.forEach(function(d){n.find(p=>p.search("^"+d)!==-1)==null&&n.splice(r++,1,d)});let s=n.map(d=>YT(d,i.isRTL()));return{placement:s.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:d}){let p=new RegExp(e+"(-[a-z]+)*","gi"),m=d.elements.popper,_=d.placement,g=m.className;g=g.replace(p,""),g+=` ${JT(e,_)}`,g=g.trim().replace(GT," "),m.className=g}},Cp,wp,mp,{enabled:!0,name:"flip",options:{fallbackPlacements:s}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function $v(t){return t}function ey(){let t=b(zT),e=null;return{createPopper(i){if(!e){let o=(i.updatePopperOptions||$v)(zv(i,t));e=Op(i.hostElement,i.targetElement,o)}},update(){e&&e.update()},setOptions(i){if(e){let o=(i.updatePopperOptions||$v)(zv(i,t));e.setOptions(o)}},destroy(){e&&(e.destroy(),e=null)}}}function ty(t){return e=>(e.modifiers.push(bp,{name:"offset",options:{offset:()=>t}}),e)}var NH=new Date(1882,10,12),AH=new Date(2174,10,25);var RH=1e3*60*60*24;var Pp=1080,XT=24*Pp,eI=12*Pp+793,kH=29*XT+eI,FH=11*Pp+204;var tI=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n,this.container=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Lp=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=b(ye).nativeElement,this.tabindex=0}set disabled(n){this._disabled=n===""||n===!0}get disabled(){return this._disabled}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(o,r){o&2&&(Mi("tabIndex",r.disabled?-1:r.tabindex),Qe("disabled",r.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let t=e;return t})();var Vp=(()=>{let e=class e{constructor(){this.dropdown=b(gc),this.nativeElement=b(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(o,r,s){if(o&1&&Co(s,Lp,4),o&2){let a;Kt(a=Zt())&&(r.menuItems=a)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(o,r){o&1&&C("keydown.ArrowUp",function(a){return r.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return r.dropdown.onKeyDown(a)})("keydown.Home",function(a){return r.dropdown.onKeyDown(a)})("keydown.End",function(a){return r.dropdown.onKeyDown(a)})("keydown.Enter",function(a){return r.dropdown.onKeyDown(a)})("keydown.Space",function(a){return r.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return r.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return r.dropdown.onKeyDown(a)}),o&2&&Qe("show",r.dropdown.isOpen())},standalone:!0});let t=e;return t})(),Np=(()=>{let e=class e{constructor(){this.dropdown=b(gc),this.nativeElement=b(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(o,r){o&2&&(Mt("aria-expanded",r.dropdown.isOpen()),Qe("show",r.dropdown.isOpen()))},standalone:!0});let t=e;return t})(),ny=(()=>{let e=class e extends Np{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(o,r){o&1&&C("click",function(){return r.dropdown.toggle()})("keydown.ArrowUp",function(a){return r.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return r.dropdown.onKeyDown(a)})("keydown.Home",function(a){return r.dropdown.onKeyDown(a)})("keydown.End",function(a){return r.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return r.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return r.dropdown.onKeyDown(a)}),o&2&&(Mt("aria-expanded",r.dropdown.isOpen()),Qe("show",r.dropdown.isOpen()))},standalone:!0,features:[nt([{provide:Np,useExisting:at(()=>e)}]),tt]});let t=e;return t})(),gc=(()=>{let e=class e{constructor(){this._changeDetector=b(Jt),this._config=b(tI),this._document=b(Fe),this._injector=b(He),this._ngZone=b(ge),this._nativeElement=b(ye).nativeElement,this._destroyCloseHandlers$=new he,this._bodyContainer=null,this._positioning=ey(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new re}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){ar(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},{phase:Nt.Write,injector:this._injector})}ngOnChanges(n){if(n.container&&this._open&&this._applyContainer(this.container),n.placement&&!n.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),n.dropdownClass){let{currentValue:o,previousValue:r}=n.dropdownClass;this._applyCustomDropdownClass(o,r)}n.autoClose&&this._open&&(this.autoClose=n.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(ty([0,2])(n))}),this._applyPlacementClasses(),this._afterRenderRef=Ol(()=>{this._positionMenu()},{phase:Nt.Write,injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Qv(this._ngZone,this._document,this.autoClose,n=>{this.close(),n===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._afterRenderRef?.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(n){let{key:o}=n,r=this._getMenuElements(),s=-1,a=null,l=this._isEventFromToggle(n);if(!l&&r.length&&r.forEach((d,p)=>{d.contains(n.target)&&(a=d),d===Zv(this._document)&&(s=p)}),o===" "||o==="Enter"){a&&(this.autoClose===!0||this.autoClose==="inside")&&xe(a,"click").pipe(Yn(1)).subscribe(()=>this.close());return}if(o==="Tab"){if(n.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===n.target){this.container==="body"&&!n.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):n.shiftKey&&this.close();return}else if(this.container==="body"){let d=this._menu.nativeElement.querySelectorAll(Jv);n.shiftKey&&n.target===d[0]?(this._anchor.nativeElement.focus(),n.preventDefault()):!n.shiftKey&&n.target===d[d.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else xe(n.target,"focusout").pipe(Yn(1)).subscribe(({relatedTarget:d})=>{this._nativeElement.contains(d)||this.close()});return}if(l||a){if(this.open(),r.length){switch(o){case"ArrowDown":s=Math.min(s+1,r.length-1);break;case"ArrowUp":if(this._isDropup()&&s===-1){s=r.length-1;break}s=Math.max(s-1,0);break;case"Home":s=0;break;case"End":s=r.length-1;break}r[s].focus()}n.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(n){return this._anchor.nativeElement.contains(n.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:n})=>!n).map(({nativeElement:n})=>n):[]}_positionMenu(){let n=this._menu;this.isOpen()&&n&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(n){return Array.isArray(n)?n[0]:n.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(n=null){if(this._resetContainer(),n==="body"){let o=this._menu.nativeElement,r=this._bodyContainer=this._bodyContainer||this._document.createElement("div");r.style.position="absolute",o.style.position="static",r.style.zIndex="1055",r.appendChild(o),this._document.body.appendChild(r)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(n,o){let r=this.container==="body"?this._bodyContainer:this._nativeElement;r&&(o&&r.classList.remove(o),n&&r.classList.add(n))}_applyPlacementClasses(n){if(this._menu){n||(n=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let o=n.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(o),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(o))}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(o,r,s){if(o&1&&(Co(s,Vp,5),Co(s,Np,5)),o&2){let a;Kt(a=Zt())&&(r._menu=a.first),Kt(a=Zt())&&(r._anchor=a.first)}},hostVars:2,hostBindings:function(o,r){o&2&&Qe("show",r.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[yt]});let t=e;return t})();var iy=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})(),nI=(()=>{let e=class e{constructor(){this._ngbConfig=b(qv),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),di=class{constructor(e,i,n){this.nodes=e,this.viewRef=i,this.componentRef=n}},Ap=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=b(Fe),this._applicationRef=b(ii),this._injector=b(He),this._viewContainerRef=b(Ei),this._ngZone=b(ge)}open(e,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:o}=this._windowRef.location,r=new he;ar(()=>{r.next(),r.complete()},{injector:this._injector,phase:Nt.MixedReadWrite});let s=r.pipe(gt(()=>Mn(this._ngZone,o,({classList:a})=>a.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(e=!1){return this._windowRef?Mn(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:e,runningTransition:"stop"}).pipe(Xi(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):gn(void 0)}_getContentRef(e,i){if(e)if(e instanceof Ln){let n=e.createEmbeddedView(i);return this._applicationRef.attachView(n),new di([n.rootNodes],n)}else return new di([[this._document.createTextNode(`${e}`)]]);else return new di([])}},iI=(()=>{let e=class e{constructor(){this._document=b(Fe)}hide(){let n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),o=this._document.body,r=o.style,{overflow:s,paddingRight:a}=r;if(n>0){let l=parseFloat(window.getComputedStyle(o).paddingRight);r.paddingRight=`${l+n}px`}return r.overflow="hidden",()=>{n>0&&(r.paddingRight=a),r.overflow=s}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oI=(()=>{let e=class e{constructor(){this._nativeElement=b(ye).nativeElement,this._zone=b(ge),this._injector=b(He)}ngOnInit(){ar(()=>Mn(this._zone,this._nativeElement,(n,o)=>{o&&Fp(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Nt.MixedReadWrite})}hide(){return Mn(this._zone,this._nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(o,r){o&2&&(lr("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),Qe("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[j],decls:0,vars:0,template:function(o,r){},encapsulation:2});let t=e;return t})(),cn=class{update(e){}close(e){}dismiss(e){}},rI=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],sI=["animation","backdropClass"],Rp=class{_applyWindowOptions(e,i){rI.forEach(n=>{Fi(i[n])&&(e[n]=i[n])})}_applyBackdropOptions(e,i){sI.forEach(n=>{Fi(i[n])&&(e[n]=i[n])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Ze(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Ze(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,i,n,o){this._windowCmptRef=e,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=o,this._closed=new he,this._dismissed=new he,this._hidden=new he,e.instance.dismissEvent.subscribe(r=>{this.dismiss(r)}),this.result=new Promise((r,s)=>{this._resolve=r,this._reject=s}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let i=this._beforeDismiss();kT(i)?i.then(n=>{n!==!1&&this._dismiss(e)},()=>{}):i!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():gn(void 0);e.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Gr(e,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},kp=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(kp||{}),aI=(()=>{let e=class e{constructor(){this._document=b(Fe),this._elRef=b(ye),this._zone=b(ge),this._injector=b(He),this._closed$=new he,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new re,this.shown=new he,this.hidden=new he}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":Kv(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,ar(()=>this._show(),{injector:this._injector,phase:Nt.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:n}=this._elRef,o={animation:this.animation,runningTransition:"stop"},r=Mn(this._zone,n,()=>n.classList.remove("show"),o),s=Mn(this._zone,this._dialogEl.nativeElement,()=>{},o),a=Gr(r,s);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let n={animation:this.animation,runningTransition:"continue"},o=Mn(this._zone,this._elRef.nativeElement,(s,a)=>{a&&Fp(s),s.classList.add("show")},n),r=Mn(this._zone,this._dialogEl.nativeElement,()=>{},n);Gr(o,r).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{xe(n,"keydown").pipe(Ze(this._closed$),_t(r=>r.key==="Escape")).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(kp.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let o=!1;xe(this._dialogEl.nativeElement,"mousedown").pipe(Ze(this._closed$),Xi(()=>o=!1),mi(()=>xe(n,"mouseup").pipe(Ze(this._closed$),Yn(1))),_t(({target:r})=>n===r)).subscribe(()=>{o=!0}),xe(n,"click").pipe(Ze(this._closed$)).subscribe(({target:r})=>{n===r&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!o&&this._zone.run(()=>this.dismiss(kp.BACKDROP_CLICK))),o=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){let o=n.querySelector("[ngbAutofocus]"),r=Xv(n)[0];(o||r||n).focus()}}_restoreFocus(){let n=this._document.body,o=this._elWithFocus,r;o&&o.focus&&n.contains(o)?r=o:r=n,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Mn(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(o,r){if(o&1&&dr(bT,7),o&2){let s;Kt(s=Zt())&&(r._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(o,r){o&2&&(Mt("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),lr("modal d-block"+(r.windowClass?" "+r.windowClass:"")),Qe("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[j],ngContentSelectors:yT,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(o,r){o&1&&(Nl(),c(0,"div",1,0)(2,"div",2),ur(3),u()()),o&2&&lr("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden} 9 `],encapsulation:2});let t=e;return t})(),lI=(()=>{let e=class e{constructor(){this._applicationRef=b(ii),this._injector=b(He),this._environmentInjector=b(Rt),this._document=b(Fe),this._scrollBar=b(iI),this._activeWindowCmptHasChanged=new he,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new re;let n=b(ge);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let o=this._windowCmpts[this._windowCmpts.length-1];HT(n,o.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(o.location.nativeElement)}})}_restoreScrollBar(){let n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,o,r){let s=r.container instanceof HTMLElement?r.container:Fi(r.container)?this._document.querySelector(r.container):this._document.body;if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new cn;n=r.injector||n;let l=n.get(Rt,null)||this._environmentInjector,d=this._getContentRef(n,l,o,a,r),p=r.backdrop!==!1?this._attachBackdrop(s):void 0,m=this._attachWindowComponent(s,d.nodes),_=new Rp(m,d,p,r.beforeDismiss);return this._registerModalRef(_),this._registerWindowCmpt(m),_.hidden.pipe(Yn(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=g=>{_.close(g)},a.dismiss=g=>{_.dismiss(g)},a.update=g=>{_.update(g)},_.update(r),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),p&&p.instance&&p.changeDetectorRef.detectChanges(),m.changeDetectorRef.detectChanges(),_}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(o=>o.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let o=Rl(oI,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(o.hostView),n.appendChild(o.location.nativeElement),o}_attachWindowComponent(n,o){let r=Rl(aI,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:o});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_getContentRef(n,o,r,s,a){return r?r instanceof Ln?this._createFromTemplateRef(r,s):Kv(r)?this._createFromString(r):this._createFromComponent(n,o,r,s,a):new di([])}_createFromTemplateRef(n,o){let r={$implicit:o,close(a){o.close(a)},dismiss(a){o.dismiss(a)}},s=n.createEmbeddedView(r);return this._applicationRef.attachView(s),new di([s.rootNodes],s)}_createFromString(n){let o=this._document.createTextNode(`${n}`);return new di([[o]])}_createFromComponent(n,o,r,s,a){let l=He.create({providers:[{provide:cn,useValue:s}],parent:n}),d=Rl(r,{environmentInjector:o,elementInjector:l}),p=d.location.nativeElement;return a.scrollable&&p.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new di([[p]],d.hostView,d)}_setAriaHidden(n){let o=n.parentElement;o&&n!==this._document.body&&(Array.from(o.children).forEach(r=>{r!==n&&r.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(o))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,o)=>{n?o.setAttribute("aria-hidden",n):o.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){let o=()=>{let r=this._modalRefs.indexOf(n);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(o,o)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{let o=this._windowCmpts.indexOf(n);o>-1&&(this._windowCmpts.splice(o,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Or=(()=>{let e=class e{constructor(){this._injector=b(He),this._modalStack=b(lI),this._config=b(nI)}open(n,o={}){let r=Y(Se(Y({},this._config),{animation:this._config.animation}),o);return this._modalStack.open(this._injector,n,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var cI=(()=>{let e=class e{constructor(){this._ngbConfig=b(qv),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oy=t=>Fi(t)&&t!=="",uI=0,Ps=(()=>{let e=class e{constructor(){this.templateRef=b(Ln)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["ng-template","ngbNavContent",""]],standalone:!0});let t=e;return t})(),_c=(()=>{let e=class e{constructor(n){this.role=n,this.nav=b(Oo)}};e.\u0275fac=function(o){return new(o||e)(cs("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNavItem","",5,"ng-container"]],hostVars:1,hostBindings:function(o,r){o&2&&Mt("role",r.role?r.role:r.nav.roles?"presentation":void 0)},standalone:!0});let t=e;return t})(),Nr=(()=>{let e=class e{constructor(){this._nav=b(Oo),this._nativeElement=b(ye).nativeElement,this.disabled=!1,this.shown=new re,this.hidden=new re}ngOnInit(){Fi(this.domId)||(this.domId=`ngb-nav-${uI++}`)}get active(){return this._nav.activeId===this.id}get id(){return oy(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Fi(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(o,r,s){if(o&1&&Co(s,Ps,4),o&2){let a;Kt(a=Zt())&&(r.contentTpl=a.first)}},hostAttrs:[1,"nav-item"],inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[0,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0});let t=e;return t})(),Oo=(()=>{let e=class e{constructor(n){this.role=n,this._config=b(cI),this._cd=b(Jt),this._document=b(Fe),this._nativeElement=b(ye).nativeElement,this.destroyRef=b(ei),this._navigatingWithKeyboard=!1,this.activeIdChange=new re,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new re,this.hidden=new re,this.navItemChange$=new he,this.navChange=new re}click(n){n.disabled||this._updateActiveId(n.id)}onFocusout({relatedTarget:n}){this._nativeElement.contains(n)||(this._navigatingWithKeyboard=!1)}onKeyDown(n){if(this.roles!=="tablist"||!this.keyboard)return;let o=this.links.filter(a=>!a.navItem.disabled),{length:r}=o,s=-1;if(o.forEach((a,l)=>{a.nativeElement===this._document.activeElement&&(s=l)}),r){switch(n.key){case"ArrowUp":case"ArrowLeft":s=(s-1+r)%r;break;case"ArrowRight":case"ArrowDown":s=(s+1)%r;break;case"Home":s=0;break;case"End":s=r-1;break}this.keyboard==="changeWithArrows"&&this.select(o[s].navItem.id),o[s].nativeElement.focus(),this._navigatingWithKeyboard=!0,n.preventDefault()}}select(n){this._updateActiveId(n,!1)}ngAfterContentInit(){if(!Fi(this.activeId)){let n=this.items.first?this.items.first.id:null;oy(n)&&(this._updateActiveId(n,!1),this._cd.detectChanges())}this.items.changes.pipe(ai(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:n}){n&&!n.firstChange&&this._notifyItemChanged(n.currentValue)}_updateActiveId(n,o=!0){if(this.activeId!==n){let r=!1;o&&this.navChange.emit({activeId:this.activeId,nextId:n,preventDefault:()=>{r=!0}}),r||(this.activeId=n,this.activeIdChange.emit(n),this._notifyItemChanged(n))}}_notifyItemChanged(n){this.navItemChange$.next(this._getItemById(n))}_getItemById(n){return this.items&&this.items.find(o=>o.id===n)||null}};e.\u0275fac=function(o){return new(o||e)(cs("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNav",""]],contentQueries:function(o,r,s){if(o&1&&(Co(s,Nr,4),Co(s,Ar,5)),o&2){let a;Kt(a=Zt())&&(r.items=a),Kt(a=Zt())&&(r.links=a)}},hostAttrs:[1,"nav"],hostVars:4,hostBindings:function(o,r){o&1&&C("keydown.arrowLeft",function(a){return r.onKeyDown(a)})("keydown.arrowRight",function(a){return r.onKeyDown(a)})("keydown.arrowDown",function(a){return r.onKeyDown(a)})("keydown.arrowUp",function(a){return r.onKeyDown(a)})("keydown.Home",function(a){return r.onKeyDown(a)})("keydown.End",function(a){return r.onKeyDown(a)})("focusout",function(a){return r.onFocusout(a)}),o&2&&(Mt("aria-orientation",r.orientation==="vertical"&&r.roles==="tablist"?"vertical":void 0)("role",r.role?r.role:r.roles?"tablist":void 0),Qe("flex-column",r.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[yt]});let t=e;return t})(),Ar=(()=>{let e=class e{constructor(n){this.role=n,this.navItem=b(Nr),this.nav=b(Oo),this.nativeElement=b(ye).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}};e.\u0275fac=function(o){return new(o||e)(cs("role"))},e.\u0275dir=ae({type:e,selectors:[["","ngbNavLink",""]],hostAttrs:[1,"nav-link"],hostVars:12,hostBindings:function(o,r){o&2&&(Mi("id",r.navItem.domId),Mt("role",r.role?r.role:r.nav.roles?"tab":void 0)("tabindex",r.tabindex)("aria-controls",r.navItem.isPanelInDom()?r.navItem.panelDomId:null)("aria-selected",r.navItem.active)("aria-disabled",r.navItem.disabled),Qe("nav-item",r.navItem.isNgContainer())("active",r.navItem.active)("disabled",r.navItem.disabled))},standalone:!0});let t=e;return t})(),vc=(()=>{let e=class e extends Ar{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275dir=ae({type:e,selectors:[["button","ngbNavLink",""]],hostAttrs:["type","button"],hostVars:1,hostBindings:function(o,r){o&1&&C("click",function(){return r.nav.click(r.navItem)}),o&2&&Mi("disabled",r.navItem.disabled)},standalone:!0,features:[tt]});let t=e;return t})();var dI=({classList:t})=>(t.remove("show"),()=>t.remove("active")),fI=(t,e)=>{e&&Fp(t),t.classList.add("show")},Gv=(()=>{let e=class e{constructor(){this.nativeElement=b(ye).nativeElement}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(o,r){o&2&&(Mi("id",r.item.panelDomId),Mt("role",r.role?r.role:r.nav.roles?"tabpanel":void 0)("aria-labelledby",r.item.domId),Qe("fade",r.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"},standalone:!0});let t=e;return t})(),yc=(()=>{let e=class e{constructor(){this._cd=b(Jt),this._ngZone=b(ge),this._activePane=null}isPanelTransitioning(n){return this._activePane?.item===n}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(ai(this.nav.destroyRef),Su(this._activePane?.item||null),Bo(),Eu(1)).subscribe(n=>{let o={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?Mn(this._ngZone,this._activePane.nativeElement,dI,o).subscribe(()=>{let r=this._activePane?.item;this._activePane=this._getPaneForItem(n),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),Mn(this._ngZone,this._activePane.nativeElement,fI,o).subscribe(()=>{n&&(n.shown.emit(),this.nav.shown.emit(n.id))})),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show","active")}_getPaneForItem(n){return this._panes&&this._panes.find(o=>o.item===n)||null}_getActivePane(){return this._panes&&this._panes.find(n=>n.item.active)||null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["","ngbNavOutlet",""]],viewQuery:function(o,r){if(o&1&&dr(Gv,5),o&2){let s;Kt(s=Zt())&&(r._panes=s)}},hostAttrs:[1,"tab-content"],inputs:{paneRole:"paneRole",nav:[0,"ngbNavOutlet","nav"]},standalone:!0,features:[j],attrs:DT,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){o&1&&ee(0,ST,1,1,null,null,yo),o&2&&te(r.nav.items)},dependencies:[Gv,Gf],encapsulation:2,changeDetection:0});let t=e;return t})();var Rr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();var pI=(()=>{let e=class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(n){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let o=Fs(this.result),r=Array.isArray(this.term)?this.term:[this.term],s=p=>this.accentSensitive?p:Uv(p),a=r.map(p=>FT(s(Fs(p)))).filter(p=>p),l=this.accentSensitive?o:Uv(o),d=a.length?l.split(new RegExp(`(${a.join("|")})`,"gmi")):[o];if(this.accentSensitive)this.parts=d;else{let p=0;this.parts=d.map(m=>o.substring(p,p+=m.length))}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[yt,j],decls:2,vars:0,consts:[[3,"class"]],template:function(o,r){o&1&&ee(0,IT,2,1,null,null,Yt),o&2&&te(r.parts)},styles:[`.ngb-highlight{font-weight:700} 10 `],encapsulation:2,changeDetection:0});let t=e;return t})(),hI=new G("live announcer delay",{providedIn:"root",factory:()=>100});function Wv(t,e=!1){let i=t.body.querySelector("#ngb-live");return i==null&&e&&(i=t.createElement("div"),i.setAttribute("id","ngb-live"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.classList.add("visually-hidden"),t.body.appendChild(i)),i}var mI=(()=>{let e=class e{constructor(){this._document=b(Fe),this._delay=b(hI)}ngOnDestroy(){let n=Wv(this._document);n&&n.parentElement.removeChild(n)}say(n){let o=Wv(this._document,!0),r=this._delay;if(o!=null){o.textContent="";let s=()=>o.textContent=n;r===null?s():setTimeout(s,r)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gI=(()=>{let e=class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_I=(()=>{let e=class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Fs,this.selectEvent=new re,this.activeChangeEvent=new re}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(n){this.activeIdx=n,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(n){this.selectEvent.emit(n)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=V({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(o,r){o&1&&C("mousedown",function(a){return a.preventDefault()}),o&2&&(Mi("id",r.id),lr("dropdown-menu show"+(r.popupClass?" "+r.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[j],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(o,r){o&1&&(S(0,OT,1,2,"ng-template",null,0,f_),ee(2,AT,2,9,"button",1,Yt)),o&2&&(h(2),te(r.results))},dependencies:[pI,Gf],encapsulation:2});let t=e;return t})(),vI=0,ry=(()=>{let e=class e{constructor(){this._nativeElement=b(ye).nativeElement,this._config=b(gI),this._live=b(mI),this._document=b(Fe),this._ngZone=b(ge),this._changeDetector=b(Jt),this._injector=b(He),this._popupService=new Ap(_I),this._positioning=ey(),this._subscription=null,this._closed$=new he,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=xe(this._nativeElement,"input").pipe(Me(n=>n.target.value)),this._resubscribeTypeahead$=new qi(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new re,this.activeDescendant=null,this.popupId=`ngb-typeahead-${vI++}`,this._onTouched=()=>{},this._onChange=n=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:n}){n&&!n.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}writeValue(n){this._writeInputValue(this._formatItemForInput(n)),this.showHint&&(this._inputValueBackup=n)}setDisabledState(n){this._nativeElement.disabled=n}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(n){if(this.isPopupOpen())switch(n.key){case"ArrowDown":n.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":n.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let o=this._windowRef.instance.getActive();Fi(o)&&(n.preventDefault(),n.stopPropagation(),this._selectResult(o)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:n}=this._popupService.open();this._windowRef=n,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(o=>this._selectResultClosePopup(o)),this._windowRef.instance.activeChangeEvent.subscribe(o=>this.activeDescendant=o),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:o=>this.popperOptions(ty([0,2])(o))}),this._afterRenderRef=Ol(()=>{this._positioning.update()},{phase:Nt.MixedReadWrite,injector:this._injector}))}),Qv(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(n){let o=!1;this.selectItem.emit({item:n,preventDefault:()=>{o=!0}}),this._resubscribeTypeahead$.next(null),o||(this.writeValue(n),this._onChange(n))}_selectResultClosePopup(n){this._selectResult(n),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let n=this._inputValueBackup.toLowerCase(),o=this._formatItemForInput(this._windowRef.instance.getActive());n===o.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+o.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,o.length])):this._writeInputValue(o)}}_formatItemForInput(n){return n!=null&&this.inputFormatter?this.inputFormatter(n):Fs(n)}_writeInputValue(n){this._nativeElement.value=Fs(n)}_subscribeToUserInput(){let n=this._valueChanges$.pipe(Xi(o=>{this._inputValueBackup=this.showHint?o:null,this._inputValueForSelectOnExact=this.selectOnExact?o:null,this._onChange(this.editable?o:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>gn([]));this._subscription=this._resubscribeTypeahead$.pipe(mi(()=>n)).subscribe(o=>{!o||o.length===0?this._closePopup():this.selectOnExact&&o.length===1&&this._formatItemForInput(o[0])===this._inputValueForSelectOnExact?(this._selectResult(o[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",o),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let r=o?o.length:0;this._live.say(r===0?"No results available":`${r} result${r===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(o,r){o&1&&C("blur",function(){return r.handleBlur()})("keydown",function(a){return r.handleKeyDown(a)}),o&2&&(Mi("autocomplete",r.autocomplete),Mt("aria-autocomplete",r.showHint?"both":"list")("aria-activedescendant",r.activeDescendant)("aria-owns",r.isPopupOpen()?r.popupId:null)("aria-expanded",r.isPopupOpen()),Qe("open",r.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[nt([{provide:Hn,useExisting:at(()=>e),multi:!0}]),yt]});let t=e;return t})(),Cc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Ht({type:e}),e.\u0275inj=Ut({});let t=e;return t})();function yI(t,e){if(t&1&&(c(0,"div",28),f(1),u()),t&2){let i=y();h(),B(" ",i.failMessage," ")}}var Dc=class t{constructor(e){this.http=e}activeModal=b(cn);savingImageSize=!1;failMessage="";newImageSize={name:"",width:0,height:0,crop:!1};newImageSizeHorizontalCrop="center";newImageSizeVerticalCrop="center";imageSizesUrl=`${Be}/optimization/image/image-sizes`;ngOnInit(){}saveAddedImageSize=()=>{this.savingImageSize=!0,this.failMessage="";let e=JSON.parse(JSON.stringify(this.newImageSize));this.newImageSize.crop&&(e.crop=[this.newImageSizeHorizontalCrop,this.newImageSizeVerticalCrop]),K(this.http.post(this.imageSizesUrl,e)).then(()=>{this.activeModal.close()}).catch(i=>{console.error(i),this.failMessage="Failed to save image size. Please check values."}).finally(()=>{this.savingImageSize=!1})};static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-settings-add-size"]],standalone:!0,features:[j],decls:49,vars:10,consts:[[3,"ngSubmit"],[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"mb-3"],["for","sName",1,"form-label"],["type","text","step","1","id","sName","name","sName",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sW",1,"form-label"],["type","number","step","2","id","sW","name","sW",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sH",1,"form-label"],["type","number","step","3","id","sH","name","sH",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","sC",1,"form-check-label","w-100"],["type","checkbox","step","4","id","sC","name","sC",1,"form-check-input",3,"ngModelChange","ngModel"],["for","hC",1,"form-label"],["id","hC","step","5",1,"form-select","form-select-sm",3,"ngModelChange","ngModel","disabled"],["value","left"],["value","center"],["value","right"],["for","vC",1,"form-label"],["id","vC","step","6",1,"form-select","form-select-sm",3,"ngModelChange","ngModel","disabled"],["value","top"],["value","bottom"],["class","modal-body text-bg-danger",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-sm","btn-success",3,"disabled"],[1,"fas","fa-save","me-2"],[1,"modal-body","text-bg-danger"]],template:function(i,n){i&1&&(c(0,"form",0),C("ngSubmit",function(){return n.saveAddedImageSize()}),c(1,"div",1)(2,"h5",2),f(3,"New Image Size"),u(),c(4,"button",3),C("click",function(){return n.activeModal.dismiss("Cross click")}),u()(),c(5,"div",4)(6,"div",5)(7,"label",6),f(8,"Name"),u(),c(9,"input",7),k("ngModelChange",function(r){return F(n.newImageSize.name,r)||(n.newImageSize.name=r),r}),u()(),c(10,"div",5)(11,"label",8),f(12,"Width"),u(),c(13,"input",9),k("ngModelChange",function(r){return F(n.newImageSize.width,r)||(n.newImageSize.width=r),r}),u()(),c(14,"div",5)(15,"label",10),f(16,"Height"),u(),c(17,"input",11),k("ngModelChange",function(r){return F(n.newImageSize.height,r)||(n.newImageSize.height=r),r}),u()(),c(18,"div",5)(19,"label",12),f(20,"Crop?"),u(),c(21,"input",13),k("ngModelChange",function(r){return F(n.newImageSize.crop,r)||(n.newImageSize.crop=r),r}),u()(),c(22,"div",5)(23,"label",14),f(24,"Horizontal Crop"),u(),c(25,"select",15),k("ngModelChange",function(r){return F(n.newImageSizeHorizontalCrop,r)||(n.newImageSizeHorizontalCrop=r),r}),c(26,"option",16),f(27,"Left"),u(),c(28,"option",17),f(29,"Center"),u(),c(30,"option",18),f(31,"Right"),u()()(),c(32,"div",5)(33,"label",19),f(34," Vertical Crop "),u(),c(35,"select",20),k("ngModelChange",function(r){return F(n.newImageSizeVerticalCrop,r)||(n.newImageSizeVerticalCrop=r),r}),c(36,"option",21),f(37,"Top"),u(),c(38,"option",17),f(39,"Center"),u(),c(40,"option",22),f(41,"Bottom"),u()()()(),S(42,yI,2,1,"div",23),c(43,"div",24)(44,"button",25),C("click",function(){return n.activeModal.dismiss("Close click")}),f(45," Cancel "),u(),c(46,"button",26),v(47,"i",27),f(48,"Save "),u()()()),i&2&&(h(9),R("ngModel",n.newImageSize.name),h(4),R("ngModel",n.newImageSize.width),h(4),R("ngModel",n.newImageSize.height),h(4),R("ngModel",n.newImageSize.crop),h(4),R("ngModel",n.newImageSizeHorizontalCrop),A("disabled",!n.newImageSize.crop),h(10),R("ngModel",n.newImageSizeVerticalCrop),A("disabled",!n.newImageSize.crop),h(7),A("ngIf",n.failMessage),h(4),A("disabled",n.savingImageSize))},dependencies:[be,tn,nn,on,it,bo,wn,It,Pe,en,Ne,Lt,_r]})};var wc=class t{title="";question="";cancelWord="";okWord="";activeModal=b(cn);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-confirm"]],inputs:{title:"title",question:"question",cancelWord:"cancelWord",okWord:"okWord"},standalone:!0,features:[j],decls:11,vars:4,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-sm","btn-success",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2),u(),c(3,"button",2),C("click",function(){return n.activeModal.dismiss()}),u()(),c(4,"div",3),f(5),u(),c(6,"div",4)(7,"button",5),C("click",function(){return n.activeModal.dismiss()}),f(8),u(),c(9,"button",6),C("click",function(){return n.activeModal.close()}),f(10),u()()),i&2&&(h(2),J(n.title||"Please Confirm"),h(3),B(" ",n.question,` 11 `),h(3),B(" ",n.cancelWord||"Cancel"," "),h(2),B(" ",n.okWord||"OK"," "))}})};var Ec=class t{title="";alert="";okWord="";activeModal=b(cn);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-alert"]],inputs:{title:"title",alert:"alert",okWord:"okWord"},standalone:!0,features:[j],decls:9,vars:3,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn","btn-xs","btn-close","text-light",3,"click"],[1,"modal-body"],[1,"modal-footer"],["type","submit",1,"btn","btn-sm","btn-success",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2),u(),c(3,"button",2),C("click",function(){return n.activeModal.dismiss()}),u()(),c(4,"div",3),f(5),u(),c(6,"div",4)(7,"button",5),C("click",function(){return n.activeModal.close()}),f(8),u()()),i&2&&(h(2),J(n.title||"Please note"),h(3),B(" ",n.alert,` 12 `),h(3),B(" ",n.okWord||"OK"," "))}})};var un=class t{modalService=b(Or);constructor(){}confirm=(e,i="Please confirm",n="OK",o="Cancel")=>new Promise(r=>{let s=this.modalService.open(wc);s.componentInstance.title=i,s.componentInstance.question=e,s.componentInstance.okWord=n,s.componentInstance.cancelWord=o,On(s.closed).then(()=>r(!0)),On(s.dismissed).then(()=>r(!1))});alert=(e,i="Notice",n="OK")=>new Promise(o=>{let r=this.modalService.open(Ec);r.componentInstance.title=i,r.componentInstance.question=e,r.componentInstance.okWord=n,On(r.closed).then(o),On(r.dismissed).then(o)});strLastReplace=(e,i,n)=>{let o=n.split(e),r=o.pop();return o.join(e)+i+r};static \u0275fac=function(i){return new(i||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Pi=class t{constructor(e){this.http=e}imageSettingsUrl=`${Be}/optimization/image/settings`;imageSettings=null;populate=(e=!1)=>E(this,null,function*(){yield Promise.all([this.populateimageSettings(e)])});populateimageSettings=(e=!1)=>E(this,null,function*(){(this.imageSettings===null||e)&&(this.imageSettings=(yield K(this.http.get(this.imageSettingsUrl)).catch(console.error))||null)});saveImageSettings=()=>E(this,null,function*(){yield K(this.http.post(this.imageSettingsUrl,this.imageSettings))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function CI(t,e){if(t&1&&(c(0,"div",30),f(1),u()),t&2){let i=y(2);h(),B(" ",i.saveNotification," ")}}function bI(t,e){if(t&1){let i=U();c(0,"form",13),C("ngSubmit",function(){M(i);let o=y();return T(o.onSubmit())}),c(1,"div",6)(2,"h5",7),f(3," General "),u(),c(4,"div",10)(5,"label",14),f(6," Keep Originals "),c(7,"div",15),f(8," If/When images are resized originals will be preserved separately. "),v(9,"br"),f(10," It is highly recommended to keep this enabled, because this will allow you to revert your images back to originals. "),u()(),c(11,"span",16)(12,"input",17),k("ngModelChange",function(o){M(i);let r=y();return F(r.sS.imageSettings.keepOriginals,o)||(r.sS.imageSettings.keepOriginals=o),T(o)}),u()()(),c(13,"div",18)(14,"label",19),f(15," Convert to "),c(16,"div",20),f(17," Should images be converted to WebP or Avif formats. "),u()(),c(18,"span",21)(19,"select",22),k("ngModelChange",function(o){M(i);let r=y();return F(r.sS.imageSettings.convertTo,o)||(r.sS.imageSettings.convertTo=o),T(o)}),c(20,"option",23),f(21,"Do not Convert"),u(),c(22,"option",24),f(23,"WebP"),u(),c(24,"option",25),f(25,"Avif"),u()()()(),S(26,CI,2,1,"div",26),c(27,"div",27)(28,"button",28),v(29,"i",29),f(30,"Save Settings "),u()()()()}if(t&2){let i=y();h(12),R("ngModel",i.sS.imageSettings.keepOriginals),h(7),R("ngModel",i.sS.imageSettings.convertTo),h(7),A("ngIf",i.saveNotification),h(2),A("disabled",i.disabledSubmit)}}function DI(t,e){t&1&&(c(0,"tr")(1,"td",31),f(2," Please wait, retrieving intermediate image sizes from wordpress. "),u()())}function wI(t,e){t&1&&f(0," center,center ")}function EI(t,e){if(t&1&&f(0),t&2){let i,n=y().$implicit,o=y(2);B(" ",(i=o.imageSizes[n]==null?null:o.imageSizes[n].crop)!==null&&i!==void 0?i:"No Crop Behavior Saved","")}}function SI(t,e){if(t&1){let i=U();c(0,"i",34),C("click",function(){M(i);let o=y().$implicit,r=y(2);return T(r.deleteImageSize(o))}),u()}}function MI(t,e){if(t&1&&(c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),u(),c(7,"td"),S(8,wI,1,0)(9,EI,1,1),u(),c(10,"td"),f(11),u(),c(12,"td",32),S(13,SI,1,0,"i",33),u()()),t&2){let i,n,o,r=e.$implicit,s=y(2);h(2),B(" ",r," "),h(2),B(" ",(i=s.imageSizes[r]==null?null:s.imageSizes[r].width)!==null&&i!==void 0?i:"No Width Saved"," "),h(2),B(" ",(n=s.imageSizes[r]==null?null:s.imageSizes[r].height)!==null&&n!==void 0?n:"No Height Saved"," "),h(2),I((s.imageSizes[r]==null?null:s.imageSizes[r].crop)==="1"||(s.imageSizes[r]==null?null:s.imageSizes[r].crop)===1?8:9),h(3),B(" ",(o=s.imageSizes[r]==null?null:s.imageSizes[r].source)!==null&&o!==void 0?o:"Wordpress"," "),h(2),I(s.imageSizes[r]!=null&&s.imageSizes[r].isOurs?13:-1)}}function TI(t,e){t&1&&(c(0,"tr")(1,"td",31),f(2," There are no intermediate image sizes defined yet. "),u()())}function II(t,e){if(t&1&&ee(0,MI,14,6,"tr",null,Yt,!1,TI,3,0,"tr"),t&2){let i=y();te(i.imageSizeNames)}}var kr=class t{constructor(e,i,n){this.http=e;this.utilities=i;this.sS=n}modalService=b(Or);disabledSubmit=!1;saveNotification="";imageSizes=void 0;imageSizeNames=[];gettingImageSizes=!0;addingImageSize=!1;savingImageSize=!1;newImageSizeHorizontalCrop="center";newImageSizeVerticalCrop="center";imageSizesUrl=`${Be}/optimization/image/image-sizes`;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),this.getImageSizes()})}getImageSizes=()=>{K(this.http.get(this.imageSizesUrl)).then(e=>{this.imageSizes=e;let i=Object.entries(this.imageSizes||{});i.sort(([n,o],[r,s])=>parseFloat(o.width)>parseFloat(s.width)?1:-1),this.imageSizeNames=[];for(let[n,o]of i)this.imageSizeNames.push(n);this.gettingImageSizes=!1}).catch(console.error)};onSubmit=()=>{this.disabledSubmit=!0,this.saveNotification="",this.sS.saveImageSettings().then(()=>{this.saveNotification="Settings are now saved"}).catch(e=>{this.saveNotification="Failed to save settings",console.error(e)}).finally(()=>{this.disabledSubmit=!1,setTimeout(()=>{this.saveNotification=""},3e3)})};startAddingImageSize=()=>{this.addingImageSize=!0,this.modalService.open(Dc).closed.subscribe(()=>{this.getImageSizes()})};deleteImageSize=e=>E(this,null,function*(){(yield this.utilities.confirm("Are you sure you want to delete "+e))&&K(this.http.delete(this.imageSizesUrl+"?name="+e)).then(this.getImageSizes).catch(console.error)});static \u0275fac=function(i){return new(i||t)(w(Ve),w(un),w(Pi))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-settings"]],standalone:!0,features:[j],decls:36,vars:2,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[3,"ngSubmit",4,"ngIf"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"btn","btn-xs","btn-outline-light","text-bg-secondary","ms-auto",3,"click"],[1,"fas","fa-add","me-2"],[1,"card-body","d-flex"],[1,"table","table-sm","table-striped","m-0"],["scope","col"],[3,"ngSubmit"],["for","keepO",1,"form-label"],["id","keepOHelp",1,"form-text"],[1,"form-check","form-switch","ms-auto"],["type","checkbox","role","switch","id","keepO","name","keepO",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"card-body","border-top","d-flex"],["for","convTo",1,"form-label"],["id","convToHelp",1,"form-text"],[1,"ms-auto"],["id","convTo","name","convTo","aria-describedby","convToHelp",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","false"],["value","WebP"],["value","Avif"],["class","card-body text-bg-success",4,"ngIf"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"disabled"],[1,"fas","fa-save","me-2"],[1,"card-body","text-bg-success"],["colspan","100"],[2,"text-align","center"],[1,"fas","fa-trash","ptr"],[1,"fas","fa-trash","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Image Optimization Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),S(9,bI,31,4,"form",5),u(),c(10,"div",2)(11,"div",6)(12,"h5",7),f(13," Image Sizes "),c(14,"button",8),C("click",function(){return n.startAddingImageSize()}),v(15,"i",9),f(16,"Add New Size "),u()(),c(17,"div",10)(18,"table",11)(19,"thead")(20,"tr")(21,"th",12),f(22,"Name"),u(),c(23,"th",12),f(24,"Width"),u(),c(25,"th",12),f(26,"Height"),u(),c(27,"th",12),f(28,"Crops?"),u(),c(29,"th",12),f(30,"Source"),u(),c(31,"th",12),f(32,"\xA0"),u()()(),c(33,"tbody"),S(34,DI,3,0,"tr")(35,II,3,1),u()()()()()()()),i&2&&(h(9),A("ngIf",n.sS.imageSettings),h(25),I(n.gettingImageSizes?34:35))},dependencies:[be,tn,nn,on,wn,It,Pe,en,Ne,Lt,_r]})};var Li=class t{constructor(e){this.http=e}mediaListUrl="/wp-json/wp/v2/media";mediaList=[];populateMediaList=()=>E(this,null,function*(){let e=!0;this.mediaList=[];let i=100,n=0,o=0;for(;e;){n++;try{let r=yield K(this.http.get(`${this.mediaListUrl}?order=asc&orderby=title&per_page=${i}&page=${n}`,{observe:"response"})).catch(console.error);if(!r)e=!1;else{let{headers:s,body:a}=r;o=parseInt(s.get("x-wp-totalpages"),10),n>=o&&(e=!1);for(let l of a||[])this.mediaList.push(l)}}catch(r){console.error(r),e=!1}}});reFetchMedium=e=>E(this,null,function*(){let i=this.mediaList[e].id;this.mediaList[e]=yield K(this.http.get(`/wp-json/wp/v2/media/${i}`))});optimizeMedium=e=>E(this,null,function*(){let i=`${Be}/optimization/image/use-optimized`;yield K(this.http.post(i,this.mediaList[e])).catch(console.error),yield this.reFetchMedium(e)});getMediumFiles=e=>E(this,null,function*(){yield this.getUploadDir();let i={currentFile:"",originalFile:""};if(i.currentFile=e.source_url.replace(this.uploadDir.baseurl+"/",""),e.media_details?.luckynode_optimized==="luckynode_converted"&&e.media_details?.original_image){let n=i.currentFile.split("/");n.pop(),n.push(e.media_details.original_image),i.originalFile=n.join("/")}return i});fileDetailsUrl=`${Be}/optimization/image/get-file-details`;getFileDetails=e=>E(this,null,function*(){return yield K(this.http.post(this.fileDetailsUrl,{path:e}))});uploadDirUrl=`${Be}/optimization/image/upload-dir`;uploadDir={baseurl:"",subdir:"",url:""};getUploadDir=()=>E(this,null,function*(){return this.uploadDir.baseurl?this.uploadDir:(this.uploadDir=yield K(this.http.get(this.uploadDirUrl)),this.uploadDir)});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var we=class t{constructor(){this.prepare()}currentPage="home";sCP=e=>this.currentPage=e;linkMap=new Map;links=[];prepare=()=>{this.linkMap.set("home",{name:"Home",isPro:!1,link:"home",icon:"fas fa-house"}),this.linkMap.set("optimization-home",{isPro:!1,name:"Optimization",link:"optimization-home",icon:"fas fa-gauge-simple-high"}),this.linkMap.set("optimization-image-home",{isPro:!1,name:"Image Optimization",link:"optimization-image-home",icon:"fas fa-image",parent:"optimization-home"}),this.linkMap.set("optimization-image-supervised",{isPro:!1,name:"Supervised Optimization",link:"optimization-image-supervised",parent:"optimization-image-home"}),this.linkMap.set("optimization-image-bulk",{isPro:!1,name:"Bulk Optimization",link:"optimization-image-bulk",parent:"optimization-image-home"}),this.linkMap.set("optimization-image-settings",{isPro:!1,name:"Settings",link:"optimization-image-settings",parent:"optimization-image-home"}),this.linkMap.set("maintenance-home",{isPro:!0,name:"Maintenance",link:"maintenance-home",icon:"fas fa-wrench"}),this.linkMap.set("maintenance-cron",{isPro:!0,name:"Cron Setup",link:"maintenance-cron",parent:"maintenance-home"}),this.linkMap.set("maintenance-mailgun",{isPro:!0,name:"Mailgun Settings",link:"maintenance-mailgun",parent:"maintenance-home"}),this.linkMap.set("crm-home",{isPro:!0,name:"CRM",link:"crm-home",icon:"fas fa-handshake"}),this.linkMap.set("crm-contact-list",{isPro:!0,name:"Contacts",link:"crm-contact-list",parent:"crm-home"}),this.linkMap.set("crm-explore-list",{isPro:!0,name:"Explorer",link:"crm-explore-list",parent:"crm-home"}),this.linkMap.set("crm-email-template-list",{isPro:!0,name:"Email Templates",link:"crm-email-template-list",parent:"crm-home"}),this.linkMap.set("crm-campaign-list",{isPro:!0,name:"Campaigns",link:"crm-campaign-list",parent:"crm-home"}),this.linkMap.set("crm-settings",{isPro:!0,name:"Settings",link:"crm-settings",parent:"crm-home"}),this.linkMap.set("ai-home",{isPro:!0,isComingSoon:!0,icon:"fas fa-brain",name:"AI Content Generation",link:"ai-home"}),this.linkMap.set("subscription-home",{isPro:!1,name:"Subscription",link:"subscription-home",icon:"fas fa-id-card"});for(let e of this.linkMap.values())(!e.icon||e.icon==="")&&(e.icon="fas fa-caret-right"),e.icon+=" fa-fw";this.links=[];for(let e of this.linkMap.values())if(!e.parent)this.links.push(e);else{let i=this.linkMap.get(e.parent);i.children??=[],i.children.push(e)}};static \u0275fac=function(i){return new(i||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function xI(t,e){if(t&1){let i=U();c(0,"div",5)(1,"div",7),f(2," Before working on any optimization please make sure that you defined the settings. "),v(3,"br"),c(4,"button",8),C("click",function(){M(i);let o=y();return T(o.nS.sCP("optimization-image-settings"))}),f(5,"Go to Image Optimization Settings"),u()()()}}function OI(t,e){t&1&&(c(0,"div",5)(1,"div",7)(2,"div",9)(3,"div",10),f(4," Please wait we are fetching the media from your media library to process. "),v(5,"br")(6,"br")(7,"i",11),u()()()())}function NI(t,e){t&1&&(c(0,"h6",13),f(1,"Please optimize your images."),u())}function AI(t,e){t&1&&f(0," Good job. All media in your library are optimized. ")}function RI(t,e){t&1&&f(0,"is")}function kI(t,e){t&1&&f(0,"are")}function FI(t,e){t&1&&f(0,"medium")}function PI(t,e){t&1&&f(0,"media")}function LI(t,e){if(t&1&&(f(0," There "),S(1,RI,1,0)(2,kI,1,0),f(3),S(4,FI,1,0)(5,PI,1,0),f(6," in your library pending optimization. "),v(7,"br"),f(8,' Please use "Initiate Bulk Optimization" button on this screen to fix this. ')),t&2){let i=y(3);h(),I(i.pendingCount===1?1:2),h(2),B(" ",i.pendingCount," "),h(),I(i.pendingCount===1?4:5)}}function VI(t,e){if(t&1&&(f(0),v(1,"br")),t&2){let i=e.$implicit;B(" ",i," ")}}function BI(t,e){if(t&1&&(v(0,"br"),f(1,"or in other words "),v(2,"br")(3,"br"),f(4)),t&2){let i=y(4);h(4),B(" ",i.savingRatio,"")}}function jI(t,e){if(t&1&&(ee(0,VI,2,1,"br",null,yo),S(2,BI,5,1)),t&2){let i=y(3);te(i.savingSizes),h(2),I(i.savingRatio?2:-1)}}function UI(t,e){t&1&&f(0," Please wait, calculating savings... ")}function HI(t,e){if(t&1){let i=U();c(0,"button",21),C("click",function(){M(i);let o=y(4);return T(o.nS.sCP("optimization-image-settings"))}),f(1,"Optimization Disabled, Go to Settings"),u()}}function zI(t,e){if(t&1){let i=U();c(0,"button",22),C("click",function(){M(i);let o=y(4);return T(o.bulkOptimize())}),f(1," Initiate "),u()}if(t&2){let i=y(4);A("disabled",i.optimizing)}}function $I(t,e){if(t&1&&S(0,HI,2,0,"button",19)(1,zI,2,1,"button",20),t&2){let i=y(3);I(i.sS.imageSettings.convertTo==="false"?0:1)}}function GI(t,e){if(t&1&&(c(0,"div",5)(1,"div",7)(2,"div",9)(3,"h5",12),f(4,"Status"),u(),S(5,NI,2,0,"h6",13),c(6,"div",10)(7,"p",14),S(8,AI,1,0)(9,LI,9,3),u(),c(10,"div",15)(11,"div",16)(12,"strong"),f(13),u()()()()()(),c(14,"div",7)(15,"div",17)(16,"h5",12),f(17,"You are saving"),u(),c(18,"div",10)(19,"p",14),S(20,jI,3,1)(21,UI,1,0),u()()()(),c(22,"div",7)(23,"div",17)(24,"h5",12),f(25,"Let's Go"),u(),c(26,"div",18),S(27,$I,2,1),u()()()()),t&2){let i=y(2);h(5),I(i.pendingCount>0?5:-1),h(3),I(i.pendingCount===0?8:9),h(3),A("ngClass",i.barClasses)("ngStyle",i.barStyles),h(2),B("",i.optimizedRatio,"%"),h(7),I(i.savingCalculated?20:21),h(7),I(i.sS.imageSettings?27:-1)}}function WI(t,e){if(t&1&&S(0,OI,8,0,"div",5)(1,GI,28,7,"div",5),t&2){let i=y();I(i.statusCalculated?1:0)}}function YI(t,e){if(t&1&&(c(0,"div",6)(1,"div",7)(2,"div",9)(3,"h5",12),f(4,"Optimization Log"),u(),c(5,"div",10)(6,"pre"),f(7),u()()()()()),t&2){let i=y();h(7),J(i.optimizationLog)}}var Fr=class t{constructor(e,i,n){this.mS=e;this.sS=i;this.nS=n}isSystemReady=!1;ngOnInit(){return E(this,null,function*(){yield this.mS.getUploadDir(),yield this.sS.populate(),(typeof this.sS.imageSettings?.convertTo<"u"||typeof this.sS.imageSettings?.keepOriginals<"u")&&(this.isSystemReady=!0),yield this.mS.populateMediaList(),this.calculateStatus(),yield this.calculateSavings()})}mediaCount=0;optimizedCount=0;pendingCount=0;optimizedRatio=0;barClasses=[];barStyles={};statusCalculated=!1;calculateStatus=(e=!1)=>{this.statusCalculated=!1,this.barClasses=["progress-bar","progress-bar-striped"],e&&this.barClasses.push("progress-bar-animated"),this.optimizedCount=0,this.mediaCount=0;for(let i of this.mS.mediaList)!i?.media_details?.sizes||i.media_type!=="image"||(this.mediaCount++,i.media_details?.luckynode_optimized==="luckynode_converted"&&this.optimizedCount++);this.pendingCount=this.mediaCount-this.optimizedCount,this.optimizedRatio=parseInt((this.optimizedCount/this.mediaCount*100).toFixed(0),10),this.optimizedRatio<50?(this.barClasses.push("bg-danger"),this.barClasses.push("text-white")):this.optimizedRatio<100?(this.barClasses.push("bg-warning"),this.barClasses.push("text-black")):this.barClasses.push("bg-success"),this.barStyles={width:this.optimizedRatio+"%"},this.statusCalculated=!0};savingSizes=[];savingRatio="";savingCalculated=!1;calculateSavings=()=>E(this,null,function*(){let e=0,i=0;this.savingCalculated=!1,this.savingSizes=[];for(let n of this.mS.mediaList)!n?.media_details?.sizes||n.media_type!=="image"||n.media_details?.luckynode_optimized==="luckynode_converted"&&n.media_details?.luckynode_stats&&(e+=n.media_details?.luckynode_stats.convertedFileSize,i+=n.media_details?.luckynode_stats.originalFileSize);this.savingSizes.push(((i-e)/1024/1024).toFixed(2)+" megabytes"),this.savingSizes.push(((i-e)/1024).toFixed(2)+" kilobytes"),this.savingSizes.push(`${i-e} bytes`),i===0?this.savingRatio="0%":this.savingRatio=((i-e)/i*100).toFixed(2)+"%",this.savingCalculated=!0});optimizing=!1;optimizationLog="";bulkOptimize=()=>E(this,null,function*(){this.optimizing=!0,this.addLog("Starting optimization",!0),this.calculateStatus(!0);for(let[e,i]of this.mS.mediaList.entries())if(this.addLog(`Currently pending media to optimize: ${this.pendingCount}`),i.media_type==="image"){if(i.media_details?.luckynode_optimized!=="luckynode_converted"){let n=yield this.mS.getMediumFiles(i);this.addLog(`Now optimizing ${n.currentFile}`),yield this.mS.optimizeMedium(e),this.addLog(`Done optimizing ${n.currentFile}`),this.calculateStatus(!0)}this.calculateSavings()}this.optimizing=!1,this.calculateStatus(),this.calculateSavings()});addLog=(e,i=!1)=>{i&&(this.optimizationLog=""),this.optimizationLog=e+` 13 `+this.optimizationLog};static \u0275fac=function(i){return new(i||t)(w(Li),w(Pi),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-bulk"]],standalone:!0,features:[j],decls:12,vars:3,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"row","mt-0"],[1,"row","my-3"],[1,"row","mb-3"],[1,"col"],["type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],[1,"card"],[1,"card-body"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"card-header","text-light","fw-bold","bg-secondary"],[1,"card-header","mb-2","text-body-secondary","bg-warning"],[1,"card-text"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress","my-3",2,"height","2rem"],[3,"ngClass","ngStyle"],[1,"card","h-100"],[1,"card-body","d-flex"],["type","button",1,"btn","btn-outline-danger"],["type","button",1,"btn","btn-success","btn-lg","mx-auto","my-auto","rounded-circle","border",2,"width","100px","height","100px",3,"disabled"],["type","button",1,"btn","btn-outline-danger",3,"click"],["type","button",1,"btn","btn-success","btn-lg","mx-auto","my-auto","rounded-circle","border",2,"width","100px","height","100px",3,"click","disabled"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Bulk Optimization"),u(),c(5,"div",3),f(6,"\xA0"),u()()(),c(7,"div",4),v(8,"hr"),u(),S(9,xI,6,0,"div",5)(10,WI,2,1)(11,YI,8,1,"div",6),u()),i&2&&(h(9),I(n.isSystemReady?-1:9),h(),I(n.isSystemReady?10:-1),h(),I(n.optimizing?11:-1))},dependencies:[$f,N_]})};function qI(t,e){if(t&1&&(c(0,"div",3),f(1),u()),t&2){let i=y();h(),B(" ",i.failMessage,` 14 `)}}var Sc=class t{constructor(e){this.http=e}activeModal=b(cn);currentMessage="Are you ready?";regenerating=!1;data=void 0;ngOnInit(){}failMessage="";useOriginalUrl=`${Be}/optimization/image/use-original`;useOriginal=()=>E(this,null,function*(){this.currentMessage="Please wait, your server is now working on it",this.regenerating=!0;let e=yield K(this.http.post(this.useOriginalUrl,this.data)).catch(console.error);console.log(e),console.log(e==="success"),e==="success"?(this.currentMessage="All done. Good bye.",setTimeout(()=>{this.activeModal.close()},1e3)):(this.failMessage=e,this.currentMessage="Something went wrong. Please read below message.",this.regenerating=!1)});static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-supervised-use-original"]],inputs:{data:"data"},standalone:!0,features:[j],decls:12,vars:4,consts:[[1,"modal-header","text-bg-secondary"],[1,"modal-title"],[1,"modal-body"],[1,"modal-body","text-bg-danger"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click","disabled"],["type","button",1,"btn","btn-sm","btn-success","text-light",3,"click","disabled"],[1,"fas","fa-play","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"h5",1),f(2,"Use Original Image"),u()(),c(3,"div",2),f(4),u(),S(5,qI,2,1,"div",3),c(6,"div",4)(7,"button",5),C("click",function(){return n.activeModal.dismiss("Close click")}),f(8,"Cancel"),u(),c(9,"button",6),C("click",function(){return n.useOriginal()}),v(10,"i",7),f(11,"Start"),u()()),i&2&&(h(4),B(" ",n.currentMessage,` 15 `),h(),I(n.failMessage?5:-1),h(2),A("disabled",n.regenerating),h(2),A("disabled",n.regenerating))},dependencies:[be]})};var sy=(t,e,i)=>{let n=i.split(t),o=n.pop();return n.join(t)+e+o};var Mc=(t,e)=>t?.value?.name>e?.value?.name?1:-1;function KI(t,e){t&1&&(c(0,"label",13),f(1,"All Images"),u())}function ZI(t,e){t&1&&(c(0,"label",13),f(1,"Images Pending Optimization"),u())}function QI(t,e){if(t&1){let i=U();c(0,"div",4)(1,"div",9)(2,"button",10),C("click",function(){M(i);let o=y();return T(o.useOriginalImage())}),f(3,"Use Original Image"),u()()()}}function JI(t,e){if(t&1){let i=U();c(0,"div",4)(1,"div",9)(2,"button",10),C("click",function(){M(i);let o=y();return T(o.nS.sCP("optimization-image-settings"))}),f(3,"Optimization Disabled, Go to Settings"),u()()()}}function XI(t,e){t&1&&(c(0,"button",14),v(1,"i",15),u())}function ex(t,e){if(t&1){let i=U();c(0,"button",10),C("click",function(){M(i);let o=y(2);return T(o.useOptimizedImage())}),f(1,"Optimize"),u()}}function tx(t,e){if(t&1&&(c(0,"div",4)(1,"div",9),S(2,XI,2,0,"button",14)(3,ex,2,0,"button",14),u()()),t&2){let i=y();h(2),I(i.optimizingImage?2:3)}}function nx(t,e){if(t&1){let i=U();c(0,"div",12)(1,"div",16),f(2," Before working on any optimization please make sure that you defined the settings. "),v(3,"br"),c(4,"button",17),C("click",function(){M(i);let o=y();return T(o.nS.sCP("optimization-image-settings"))}),f(5,"Go to Image Optimization Settings"),u()()()}}function ix(t,e){t&1&&(c(0,"div",12)(1,"div",16)(2,"h5"),v(3,"i",15),f(4," Please wait, loading media..."),u()()())}function ox(t,e){t&1&&(c(0,"div",12)(1,"div",16)(2,"h5"),f(3,"Hurray!! There is no medium to optimize. Well done."),u()()())}function rx(t,e){if(t&1&&(c(0,"div",12)(1,"div",2)(2,"h5"),f(3),u(),c(4,"div",3),f(5,"\xA0"),u(),c(6,"div",4),f(7),u()()()),t&2){let i=y(3);h(3),J((i.currentData==null||i.currentData.title==null?null:i.currentData.title.rendered)||(i.currentData==null?null:i.currentData.tempTitle)||"There is no title for the media"),h(4),Tt(" Media ",i.currentImage+1," of ",i.imageList.length," ")}}function sx(t,e){t&1&&(c(0,"div",21),f(1," No optimization done yet. "),u())}function ax(t,e){t&1&&(c(0,"div",21),f(1," Original Image is not preserved. "),u())}function lx(t,e){if(t&1&&(c(0,"div",21)(1,"div",22),v(2,"img",23),c(3,"div",24)(4,"h5",25),f(5,"Original Image"),u(),c(6,"span",26),f(7),v(8,"br"),f(9),v(10,"br"),f(11),v(12,"br"),u()()()()),t&2){let i=y(4);h(2),A("src",i.originalImage.url,Bn),h(5),B(" Extension: ",i.originalImage.ext," "),h(2),Tt(" File Size: ",i.originalImage.sizekb," (",i.originalImage.size,") "),h(2),B(" Saving: ",i.originalImage.saving," ")}}function cx(t,e){if(t&1&&(c(0,"div",20)(1,"div",21)(2,"div",22),v(3,"img",23),c(4,"div",24)(5,"h5",25),f(6,"Active Image"),u(),c(7,"span",26),f(8),v(9,"br"),f(10),v(11,"br"),f(12),v(13,"br"),u()()()(),S(14,sx,2,0,"div",27)(15,ax,2,0,"div",27)(16,lx,13,5,"div",27),u()),t&2){let i=y(3);h(3),A("src",i.activeImage.url,Bn),h(5),B(" Extension: ",i.activeImage.ext," "),h(2),Tt(" File Size: ",i.activeImage.sizekb," (",i.activeImage.size,") "),h(2),B(" Saving: ",i.activeImage.saving," "),h(2),A("ngIf",!i.originalImage.optimized),h(),A("ngIf",i.originalImage.optimized&&!i.originalImage.exists),h(),A("ngIf",i.originalImage.optimized&&i.originalImage.exists)}}function ux(t,e){if(t&1&&S(0,ox,4,0,"div",12)(1,rx,8,3,"div",18)(2,cx,17,8,"div",19),t&2){let i=y(2);I(i.currentData?-1:0),h(),A("ngIf",i.currentData),h(),A("ngIf",i.currentData)}}function dx(t,e){if(t&1&&S(0,ix,5,0,"div",12)(1,ux,3,3),t&2){let i=y();I(i.imageListPopulated?-1:0),h(),I(i.imageListPopulated?1:-1)}}var Pr=class t{constructor(e,i,n){this.mS=e;this.sS=i;this.nS=n}modalService=b(Or);showAll=!0;currentImage=0;currentData=void 0;imageList=[];indexList=[];fileDetailsUrl=`${Be}/optimization/image/get-file-details`;activeImage={url:"",ext:"",size:"",sizekb:"",saving:""};originalImage={optimized:!1,exists:!1,url:"",ext:"",size:"",sizekb:"",saving:""};isSystemReady=!1;ngOnInit(){return E(this,null,function*(){yield this.sS.populate(),(typeof this.sS.imageSettings?.convertTo<"u"||typeof this.sS.imageSettings?.keepOriginals<"u")&&(this.isSystemReady=!0),this.populateImageList()})}getExtension=e=>e?e.split(".").pop():"";nextImage=()=>{this.currentImage=++this.currentImage%(this.imageList?.length||1),this.setCurrentData()};previousImage=()=>{this.currentImage=--this.currentImage,this.currentImage<0&&(this.currentImage=this.imageList.length-1),this.setCurrentData()};imageListPopulated=!1;populateImageList=()=>E(this,null,function*(){this.imageListPopulated=!1;try{this.imageList=[],this.indexList=[],this.currentData=void 0,yield this.mS.populateMediaList();for(let[e,i]of this.mS.mediaList.entries())i?.media_details?.sizes&&(this.showAll||!this.showAll&&!i?.media_details?.luckynode_optimized)&&i.media_type==="image"&&(this.imageList.push(i),this.indexList.push(e));this.currentData||(this.currentImage=0,this.setCurrentData())}catch(e){console.error(e)}finally{this.imageListPopulated=!0}});setCurrentData=()=>E(this,null,function*(){let e=new Intl.NumberFormat;if(this.imageList[this.currentImage]=this.mS.mediaList[this.indexList[this.currentImage]],this.currentData=this.imageList[this.currentImage],!this.currentData)return;let i=yield this.mS.getMediumFiles(this.currentData);if(this.currentData.title?.rendered||(this.currentData.tempTitle=(yield this.mS.getMediumFiles(this.currentData)).currentFile),this.activeImage.url=this.currentData.source_url,this.activeImage.ext=this.getExtension(this.currentData.media_details?.sizes?.full?.file||this.currentData.source_url||"")||"",this.activeImage.size=e.format(this.currentData.media_details?.filesize||0)+" b",this.activeImage.sizekb=((this.currentData.media_details?.filesize||0)/1024).toFixed(2)+" kb",this.activeImage.saving="n/a",this.originalImage.optimized=!!this.currentData.media_details?.luckynode_optimized,this.originalImage.exists=!!this.currentData.media_details?.original_image,this.originalImage.size="n/a",this.originalImage.sizekb="n/a",this.originalImage.saving="n/a",this.originalImage.url="",this.originalImage.ext="",this.originalImage.exists&&(this.originalImage.url=sy(i.currentFile||"",i.originalFile||"",this.currentData.source_url),this.originalImage.ext=this.getExtension(this.originalImage.url)||"",this.currentData?.media_details?.luckynode_stats)){let n=this.currentData.media_details.luckynode_stats.originalFileSize;this.originalImage.size=n+" b",this.originalImage.sizekb=(n/1024).toFixed(2)+" kb",this.activeImage.saving=((1-this.currentData.media_details?.filesize/n)*100).toFixed(2)+"%",this.originalImage.saving=this.activeImage.saving}});useOriginalImage=()=>E(this,null,function*(){let e=this.modalService.open(Sc,{backdrop:"static",size:"lg",keyboard:!1});e.componentInstance.data=this.currentData,yield On(e.closed),yield this.mS.reFetchMedium(this.indexList[this.currentImage]),this.imageList[this.currentImage]=this.mS.mediaList[this.indexList[this.currentImage]],this.setCurrentData()});optimizingImage=!1;useOptimizedImage=()=>E(this,null,function*(){this.optimizingImage=!0,yield this.mS.optimizeMedium(this.indexList[this.currentImage]),this.setCurrentData(),this.optimizingImage=!1});static \u0275fac=function(i){return new(i||t)(w(Li),w(Pi),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-supervised"]],standalone:!0,features:[j],decls:25,vars:8,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"ms-3"],[1,"form-check","form-switch"],["type","checkbox","role","switch","id","sA","name","sA",1,"form-check-input",3,"ngModelChange","change","ngModel"],["class","form-label","for","sA",4,"ngIf"],["class","ms-3",4,"ngIf"],["role","group",1,"btn-group","btn-group-sm","my-auto"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"row","mt-0"],[1,"row","my-3"],["for","sA",1,"form-label"],["type","button",1,"btn","btn-outline-secondary"],[1,"fas","fa-sync","fa-spin"],[1,"col"],["type","button",1,"btn","btn-sm","btn-outline-info",3,"click"],["class","row my-3",4,"ngIf"],["class","row",4,"ngIf"],[1,"row"],[1,"col-6"],[1,"card"],[1,"card-img-top",3,"src"],[1,"card-body"],[1,"card-title"],[1,"card-text"],["class","col-6",4,"ngIf"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Supervised Optimization"),u(),c(5,"div",3),f(6,"\xA0"),u(),c(7,"div",4)(8,"div",5)(9,"input",6),k("ngModelChange",function(r){return F(n.showAll,r)||(n.showAll=r),r}),C("change",function(){return n.populateImageList()}),u(),S(10,KI,2,0,"label",7)(11,ZI,2,0,"label",7),u()(),S(12,QI,4,0,"div",8)(13,JI,4,0,"div",8)(14,tx,4,1,"div",8),c(15,"div",4)(16,"div",9)(17,"button",10),C("click",function(){return n.previousImage()}),f(18,"Previous"),u(),c(19,"button",10),C("click",function(){return n.nextImage()}),f(20,"Next"),u()()()()(),c(21,"div",11),v(22,"hr"),u(),S(23,nx,6,0,"div",12)(24,dx,2,2),u()),i&2&&(h(9),R("ngModel",n.showAll),h(),A("ngIf",n.showAll),h(),A("ngIf",!n.showAll),h(),A("ngIf",n.originalImage.optimized&&n.originalImage.exists),h(),A("ngIf",!n.originalImage.optimized&&!n.originalImage.exists&&((n.sS.imageSettings==null?null:n.sS.imageSettings.convertTo)==="false"||!(n.sS.imageSettings!=null&&n.sS.imageSettings.convertTo))),h(),A("ngIf",!n.originalImage.optimized&&!n.originalImage.exists&&(n.sS.imageSettings==null?null:n.sS.imageSettings.convertTo)!=="false"),h(9),I(n.isSystemReady?-1:23),h(),I(n.isSystemReady?24:-1))},dependencies:[_r,be,wn,Pe,Ne]})};function fx(t,e){t&1&&v(0,"lnf-optimization-image-supervised")}function px(t,e){t&1&&v(0,"lnf-optimization-image-bulk")}function hx(t,e){t&1&&v(0,"lnf-optimization-image-settings")}var Tc=class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-image-home"]],standalone:!0,features:[j],decls:18,vars:1,consts:[["nav","ngbNav"],[1,"container-fluid","p-1"],[1,"row"],[1,"col"],["ngbNav","",1,"nav-tabs","border-0"],["ngbNavItem","",1,"mb-0"],["ngbNavLink",""],["ngbNavContent",""],[1,"border","p-1",3,"ngbNavOutlet"]],template:function(i,n){if(i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4,0)(5,"li",5)(6,"button",6),f(7,"Supervised Optimization"),u(),S(8,fx,1,0,"ng-template",7),u(),c(9,"li",5)(10,"button",6),f(11,"Bulk Optimization"),u(),S(12,px,1,0,"ng-template",7),u(),c(13,"li",5)(14,"button",6),f(15,"Settings"),u(),S(16,hx,1,0,"ng-template",7),u()(),v(17,"div",8),u()()()),i&2){let o=fr(4);h(17),A("ngbNavOutlet",o)}},dependencies:[Rr,Ps,Oo,Nr,_c,vc,Ar,yc,kr,Fr,Pr]})};function mx(t,e){t&1&&v(0,"lnf-optimization-image-home")}var Ic=class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["lnf-optimization-home"]],standalone:!0,features:[j],decls:10,vars:1,consts:[["nav","ngbNav"],[1,"container-fluid","p-1"],[1,"row"],[1,"col"],["ngbNav","",1,"nav-tabs","border-0"],["ngbNavItem","",1,"mb-0"],["ngbNavLink",""],["ngbNavContent",""],[1,"border","p-1",3,"ngbNavOutlet"]],template:function(i,n){if(i&1&&(c(0,"div",1)(1,"div",2)(2,"div",3)(3,"ul",4,0)(5,"li",5)(6,"button",6),f(7,"Image Optimization"),u(),S(8,mx,1,0,"ng-template",7),u()(),v(9,"div",8),u()()()),i&2){let o=fr(4);h(9),A("ngbNavOutlet",o)}},dependencies:[Rr,Ps,Oo,Nr,_c,vc,Ar,yc,Tc]})};var Vi=class t{constructor(e){this.http=e;this.checkRegistration()}subscription={registered:!1,id:"",origin:"",email:"",licenseValidUntil:"",emailVerified:!1,licenseValid:!1};rUrl=`${Xl}/subscriber`;checkSubscription=()=>E(this,null,function*(){let e=yield K(this.http.post(`${this.rUrl}/verify`,{})).catch(console.error);return console.log(e),e});checkRegistration=()=>E(this,null,function*(){try{this.subscription=yield K(this.http.get(`${this.rUrl}/check-registration`))}catch(e){console.error(e)}});tempExtend=()=>E(this,null,function*(){yield K(this.http.get(`${this.rUrl}/temp-extend`))});register=e=>E(this,null,function*(){return yield K(this.http.post(`${this.rUrl}/register`,{email:e}))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Hp=(t,e)=>e.name,gx=()=>[];function _x(t,e){if(t&1){let i=U();c(0,"li",12),C("click",function(){M(i);let o=y().$implicit,r=y(7);return T(r.nS.sCP(o.link||"home"))}),c(1,"span",14),v(2,"i",15),u(),f(3),u()}if(t&2){let i=y().$implicit;h(3),B(" ",i.name," ")}}function vx(t,e){if(t&1&&S(0,_x,4,1,"li",11),t&2){let i=e.$implicit,n=y(7);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function yx(t,e){if(t&1&&(c(0,"ul",13),ee(1,vx,1,1,null,null,Hp),u()),t&2){let i=y(2).$implicit;h(),te(i.children)}}function Cx(t,e){t&1&&v(0,"br")}function bx(t,e){if(t&1){let i=U();c(0,"strong",12),C("click",function(){M(i);let o=y().$implicit,r=y(4);return T(r.nS.sCP(o.link||"home"))}),f(1),u(),S(2,yx,3,0,"ul",13)(3,Cx,1,0,"br")}if(t&2){let i=y().$implicit;h(),J(i.name),h(),I(i.children?2:3)}}function Dx(t,e){if(t&1&&S(0,bx,4,2),t&2){let i=e.$implicit,n=y(4);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function wx(t,e){if(t&1){let i=U();c(0,"strong",12),C("click",function(){M(i);let o=y(2).$implicit,r=y(2);return T(r.nS.sCP(o.link||"home"))}),f(1),u()}if(t&2){let i=y(2).$implicit;h(),J(i.name)}}function Ex(t,e){t&1&&(c(0,"strong",11),f(1,"Coming soon, stay tuned"),u())}function Sx(t,e){if(t&1){let i=U();c(0,"div",7)(1,"div",8)(2,"h5",9),C("click",function(){M(i);let o=y().$implicit,r=y(2);return T(r.nS.sCP(o.link||"home"))}),f(3),u(),c(4,"div",10),ee(5,Dx,1,1,null,null,Hp),S(7,wx,2,1,"strong",11)(8,Ex,2,0,"strong",11),u()()()}if(t&2){let i=y().$implicit;h(3),B(" ",i.name," "),h(2),te(i.children||pr(3,gx)),h(2),I(!i.children&&!i.isComingSoon?7:-1),h(),I(!i.children&&i.isComingSoon?8:-1)}}function Mx(t,e){if(t&1&&S(0,Sx,9,4,"div",7),t&2){let i=e.$implicit,n=y(2);I((i.isPro&&n.sS.subscription.licenseValid||!i.isPro)&&i.link!=="home"?0:-1)}}function Tx(t,e){if(t&1){let i=U();c(0,"div",6)(1,"div",8)(2,"h5",16),f(3,"Go Pro"),u(),c(4,"div",10),f(5," LuckyNode is a dynamic and evolving WordPress plugin, offering essential tools to enhance your website's performance and management. Currently, LuckyNode provides Image Optimization as a free feature, helping you reduce file sizes and improve load times effortlessly. For users looking to extend their site's capabilities, we offer a CRM feature as part of our paid, pro version\u2014perfect for managing customer relationships and streamlining business operations. As we continue to develop LuckyNode, new functionalities are regularly added to meet the growing needs of our users, ensuring that your WordPress site remains powerful and efficient. "),v(6,"br")(7,"br"),c(8,"strong"),f(9,"Unlock More with LuckyNode Pro!"),u(),f(10," Take your website to the next level with advanced features like our powerful CRM tool. Manage your customer relationships, streamline your workflow, and enjoy priority support. Upgrade to Pro now and experience the full potential of LuckyNode! "),v(11,"br")(12,"br"),c(13,"button",17),C("click",function(){M(i);let o=y(2);return T(o.nS.sCP("subscription-home"))}),f(14,"Go Pro Now"),u()()()()}}function Ix(t,e){if(t&1&&(c(0,"div",5),ee(1,Mx,1,1,null,null,Hp),S(3,Tx,15,0,"div",6),u()),t&2){let i=y();h(),te(i.nS.links),h(2),I(i.sS.subscription.licenseValid?-1:3)}}var xc=class t{constructor(e,i){this.nS=e;this.sS=i}static \u0275fac=function(i){return new(i||t)(w(we),w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-home"]],standalone:!0,features:[j],decls:10,vars:1,consts:[[1,"container-fluid","my-3"],[1,"row","mt-4","mb-1"],[1,"col","d-flex"],[1,"ms-auto"],[1,"row","mt-0"],[1,"row","my-3"],[1,"col"],[1,"col","mb-3"],[1,"card"],[1,"card-header","text-light","fw-bold","bg-secondary","ptr",3,"click"],[1,"card-body"],[1,"ptr"],[1,"ptr",3,"click"],[1,"fa-ul","mt-3","ms-4"],[1,"fa-li"],[1,"fas","fa-chevron-right"],[1,"card-header","text-light","fw-bold","bg-secondary"],["type","button",1,"btn","btn-sm","btn-secondary","ms-auto","my-auto",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4"),f(4,"Welcome to LuckyNode Plugin"),u(),c(5,"div",3),f(6,"\xA0"),u()()(),c(7,"div",4),v(8,"hr"),u(),S(9,Ix,4,1,"div",5),u()),i&2&&(h(9),I(n.sS.subscription.origin?9:-1))}})};var Oc=class t{constructor(e){this.http=e}makeRequest=()=>E(this,null,function*(){let e=yield K(this.http.get("http://localhost:3000")).catch(console.error);console.log({result:e})});static \u0275fac=function(i){return new(i||t)(w(Ve))};static \u0275cmp=V({type:t,selectors:[["lnf-ai-content-settings"]],standalone:!0,features:[j],decls:11,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],["type","button",1,"btn","btn-secondary","btn-sm",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"AI Content Generation Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"button",5),C("click",function(){return n.makeRequest()}),f(10,"Let's try"),u()()()())},dependencies:[be]})};function xx(t,e){t&1&&f(0,"(Verified, thank you.)")}function Ox(t,e){t&1&&f(0,"(Pending verification. Please check your inbox.)")}function Nx(t,e){if(t&1&&(f(0),Qt(1,"date")),t&2){let i=y(3);B(" Your license is valid until ",Al(1,1,i.sS.subscription.licenseValidUntil,"medium"),". ")}}function Ax(t,e){if(t&1){let i=U();f(0," You currently don't have a valid license. "),v(1,"br"),f(2," Until further notice you can extend your subscription for free. "),v(3,"br"),c(4,"button",9),C("click",function(){M(i);let o=y(3);return T(o.extend())}),f(5,"Extend"),u()}}function Rx(t,e){if(t&1&&(c(0,"div",8)(1,"strong"),f(2,"Domain:"),u(),f(3),v(4,"br"),c(5,"strong"),f(6,"Registered Email Address:"),u(),f(7),S(8,xx,1,0)(9,Ox,1,0),v(10,"br")(11,"br")(12,"hr"),c(13,"strong"),f(14,"License Status:"),u(),S(15,Nx,2,4)(16,Ax,6,0),v(17,"br"),u()),t&2){let i=y(2);h(3),B(" ",i.sS.subscription.origin," "),h(4),B(" ",i.sS.subscription.email," "),h(),I(i.sS.subscription.emailVerified?8:9),h(7),I(i.sS.subscription.licenseValid?15:16)}}function kx(t,e){if(t&1){let i=U();c(0,"form",10),C("ngSubmit",function(){M(i);let o=y(2);return T(o.register())}),c(1,"div",7)(2,"div",11)(3,"label",12),f(4,"Valid Email Address"),u(),c(5,"input",13),k("ngModelChange",function(o){M(i);let r=y(2);return F(r.email,o)||(r.email=o),T(o)}),u()()(),c(6,"div",14)(7,"button",15),v(8,"i",16),f(9,"Register "),u()()()}if(t&2){let i=y(2);h(5),R("ngModel",i.email)}}function Fx(t,e){if(t&1&&S(0,Rx,18,4,"div",8)(1,kx,10,1,"form"),t&2){let i=y();I(i.sS.subscription.registered===!0?0:1)}}function Px(t,e){t&1&&(c(0,"div",7),f(1," Checking registaration status. Please wait. "),u())}var Nc=class t{constructor(e){this.sS=e}registrationResult=void 0;subscriptionChecked=!1;email="";ngOnInit(){return E(this,null,function*(){this.checkRegistration()})}extend=()=>E(this,null,function*(){yield this.sS.tempExtend(),this.checkRegistration()});checkRegistration=()=>E(this,null,function*(){yield this.sS.checkRegistration(),this.subscriptionChecked=!0,this.sS.subscription.email&&!this.sS.subscription.emailVerified&&setTimeout(()=>{this.checkRegistration()},3e3)});register=()=>E(this,null,function*(){this.registrationResult=yield this.sS.register(this.email)});static \u0275fac=function(i){return new(i||t)(w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-subscription-home"]],standalone:!0,features:[j],decls:14,vars:2,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"card-body","d-flex"],[1,"card-body"],["type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[3,"ngSubmit"],[1,"mb-3","w-100"],["for","email",1,"form-label"],["type","email","name","email","id","email",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto"],[1,"fas","fa-user-plus","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"My Subscription"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"div",5)(10,"h5",6),f(11," Your Registration Information "),u(),S(12,Fx,2,1)(13,Px,2,0,"div",7),u()()()()),i&2&&(h(12),I(n.subscriptionChecked?12:-1),h(),I(n.subscriptionChecked?-1:13))},dependencies:[be,tn,it,Pe,en,Ne,Lt,Wl]})};var Ac=class t{constructor(e){this.nS=e}static \u0275fac=function(i){return new(i||t)(w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-home"]],standalone:!0,features:[j],decls:22,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"fa-ul","mt-3","ms-4"],[1,"ptr",3,"click"],[1,"fa-li"],[1,"fas","fa-chevron-right"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"ul",5)(10,"li",6),C("click",function(){return n.nS.sCP("crm-campaigns")}),c(11,"span",7),v(12,"i",8),u(),f(13,"Campaigns"),u(),c(14,"li",6),C("click",function(){return n.nS.sCP("crm-explorer")}),c(15,"span",7),v(16,"i",8),u(),f(17,"Explorer"),u(),c(18,"li",6),C("click",function(){return n.nS.sCP("crm-settings")}),c(19,"span",7),v(20,"i",8),u(),f(21,"Settings"),u()()()()())}})};var Ye=class t{constructor(e){this.http=e}url=`${Be}/database`;insert=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"insert"},e))).catch(console.error)});update=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"update"},e))).catch(console.error)});delete=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"delete"},e))).catch(console.error)});selectAll=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"selectAll"},e))).catch(console.error)});insertTask=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"insertTask"},e))).catch(console.error)});campaignMails=e=>E(this,null,function*(){return K(this.http.post(this.url,Y({action:"campaignMails"},e))).catch(console.error)});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var je=class t{constructor(e,i){this.http=e;this.dbS=i;this.populate()}settingsUrl=`${Be}/crm/settings`;crmSettings=null;populate=(e=!1)=>E(this,null,function*(){yield Promise.all([this.populateSettings(e),this.populateEmailTemplates(),this.populateCampaigns()])});populateSettings=(e=!1)=>E(this,null,function*(){(this.crmSettings===null||e)&&(this.crmSettings=(yield K(this.http.get(this.settingsUrl)).catch(console.error))||null)});saveSettings=()=>E(this,null,function*(){yield K(this.http.post(this.settingsUrl,this.crmSettings))});currentEmailTemplate="";emailTemplates=new Map;populateEmailTemplates=()=>E(this,null,function*(){this.emailTemplates.clear();for(let e of((yield this.dbS.selectAll({type:"email-template"}).catch(console.error))||[]).sort(Mc))this.emailTemplates.set(e.id,e)});testEmailTemplate=e=>E(this,null,function*(){let i=`${Be}/crm/email-template/test`,n=(yield K(this.http.post(i,{id:e})).catch(console.error))||null;console.log(n)});contacts=new Map;currentContact="";populateContacts=()=>E(this,null,function*(){this.contacts.clear();for(let e of((yield this.dbS.selectAll({type:"contact"}).catch(console.error))||[]).sort(Mc))this.contacts.set(e.id,e)});currentCampaign="";campaigns=new Map;populateCampaigns=()=>E(this,null,function*(){this.campaigns.clear();for(let e of((yield this.dbS.selectAll({type:"campaign"}).catch(console.error))||[]).sort(Mc))this.campaigns.set(e.id,e)});static \u0275fac=function(i){return new(i||t)(H(Ve),H(Ye))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};function Lx(t,e){if(t&1){let i=U();c(0,"form",5),C("ngSubmit",function(){M(i);let o=y();return T(o.crmS.saveSettings())}),c(1,"div",6)(2,"h5",7),f(3," General Settings "),u(),c(4,"div",8)(5,"div",9)(6,"label",10),f(7,"Google Maps API Key"),u(),c(8,"input",11),k("ngModelChange",function(o){M(i);let r=y();return F(r.crmS.crmSettings.googleAPIKey,o)||(r.crmS.crmSettings.googleAPIKey=o),T(o)}),u(),c(9,"div",12),f(10," LuckyNode CRM uses Google Maps API in the explorer functionality. "),v(11,"br"),f(12," You should be activating Google Places API (New) on Google Cloud Console "),v(13,"br"),f(14," and defining an API key to paste in this field. "),u()(),c(15,"div",9)(16,"label",13),f(17,"Daily Automated Mail Sending Limit"),u(),c(18,"input",14),k("ngModelChange",function(o){M(i);let r=y();return F(r.crmS.crmSettings.smtpDailyLimit,o)||(r.crmS.crmSettings.smtpDailyLimit=o),T(o)}),u(),c(19,"div",15),f(20," Some of the mail sending services endorse a daily sending limit. "),v(21,"br"),f(22," This is the place where you can limit LuckyNode CRM to obey those limits. "),u()()(),c(23,"div",16)(24,"button",17),v(25,"i",18),f(26,"Save Settings "),u()()()()}if(t&2){let i=y();h(8),R("ngModel",i.crmS.crmSettings.googleAPIKey),h(10),R("ngModel",i.crmS.crmSettings.smtpDailyLimit)}}var Rc=class t{constructor(e){this.crmS=e}static \u0275fac=function(i){return new(i||t)(w(je))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-settings"]],standalone:!0,features:[j],decls:10,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[3,"ngSubmit"],[1,"card"],[1,"card-header","d-flex","text-light","bg-secondary"],[1,"card-body"],[1,"mb-3"],["for","gapikey",1,"form-label"],["type","text","name","gapikey","id","gapikey",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","gapiHelp",1,"form-text"],["for","smtplimit",1,"form-label"],["type","number","name","smtplimit","id","smtplimit",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","smtpHelp",1,"form-text"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto"],[1,"fas","fa-save","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),S(9,Lx,27,2,"form"),u()()()),i&2&&(h(9),I(n.crmS.crmSettings?9:-1))},dependencies:[be,tn,it,bo,Pe,en,Ne,Lt]})};var Vx=(t,e)=>e.id;function Bx(t,e){if(t&1){let i=U();c(0,"i",14),C("click",function(){M(i);let o=y().$implicit,r=y();return T(r.delete(o.id))}),u()}}function jx(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),Qt(5,"titlecase"),u(),c(6,"td",9)(7,"i",11),C("click",function(){let o=M(i).$implicit,r=y();return T(r.edit(o.id))}),u(),S(8,Bx,1,0,"i",12),c(9,"i",13),C("click",function(){let o=M(i).$implicit,r=y();return T(r.stats(o.id))}),u()()()}if(t&2){let i=e.$implicit;h(2),J(i.value.name||"No Name Given"),h(2),B(" ",Ti(5,3,i.value.status||"Pending")," "),h(4),I(i.value.status==="pending"?8:-1)}}var kc=class t{constructor(e,i,n,o){this.nS=e;this.dbS=i;this.crmS=n;this.uS=o}ngOnInit(){this.crmS.populateCampaigns()}edit=e=>{this.crmS.currentCampaign=e,this.nS.sCP("crm-campaign")};stats=e=>{this.crmS.currentCampaign=e,this.nS.sCP("crm-campaign-stats")};delete=e=>E(this,null,function*(){try{if(yield this.uS.confirm("Are you sure?","Delete campaign","Yes","Cancel")){let i=yield this.dbS.delete({id:e}).catch(n=>{console.log("This is database delete error"),console.error(n)});console.log({result:i}),yield this.crmS.populateCampaigns()}}catch(i){console.log("this is parent error"),console.error(i)}});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(je),w(un))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign-list"]],standalone:!0,features:[j],decls:23,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"],[1,"sticky-top","border"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"fas","fa-pen-to-square","ptr",3,"click"],[1,"fas","fa-trash","ptr","ms-2","text-danger"],[1,"fas","fa-chart-column","ptr","ms-2",3,"click"],[1,"fas","fa-trash","ptr","ms-2","text-danger",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Campaigns"),u(),c(5,"button",3),C("click",function(){return n.nS.sCP("crm-campaign")}),f(6,"New Campaign"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead",8)(13,"tr")(14,"th"),f(15,"Name"),u(),c(16,"th"),f(17,"Status"),u(),c(18,"th",9),v(19,"i",10),u()()(),c(20,"tbody"),ee(21,jx,10,5,"tr",null,Vx),u()()()()()),i&2&&(h(21),te(n.crmS.campaigns.values()))},dependencies:[vr]})};var xt=class t{constructor(e){this.http=e;this.populateCountries()}rUrl=`${Xl}/geography`;search=e=>E(this,null,function*(){return K(this.http.post(`${this.rUrl}/search`,{phrase:e}))});countCities=(e,i)=>E(this,null,function*(){return K(this.http.post(`${this.rUrl}/city-count`,{type:e,id:i}))});countries=new Map;populatingO=!1;populateCountries=()=>E(this,null,function*(){if(!(this.countries.size>0||this.populatingO)){this.populatingO=!0;for(let e of(yield K(this.http.get(`${this.rUrl}/countries`)).catch(console.error))||[])typeof e.id=="number"&&(e.id=e.id.toString()),this.countries.set(e.id,e);this.populatingO=!1}});getStates=e=>E(this,null,function*(){let i=new Map;for(let n of(yield K(this.http.post(`${this.rUrl}/states`,{country:e})).catch(console.error))||[])typeof n.id=="number"&&(n.id=n.id.toString()),i.set(n.id,n);return i});getCities=(e,i)=>E(this,null,function*(){let n=new Map;for(let o of(yield K(this.http.post(`${this.rUrl}/cities`,{country:e,state:i})).catch(console.error))||[])typeof o.id=="number"&&(o.id=o.id.toString()),n.set(o.id,o);return n});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Fc=(t,e)=>e.id;function Ux(t,e){if(t&1){let i=U();c(0,"button",30),C("click",function(){M(i);let o=y().$index,r=y();return T(r.removeGPText(o))}),v(1,"i",31),u()}}function Hx(t,e){if(t&1){let i=U();c(0,"div",14)(1,"span",27),f(2,"Phrase: "),u(),c(3,"input",28),k("ngModelChange",function(o){let r=M(i).$index,s=y();return F(s.gpTexts[r],o)||(s.gpTexts[r]=o),T(o)}),u(),S(4,Ux,2,0,"button",29),u()}if(t&2){let i=e.$index,n=y();h(3),ni("name","gpText",n.gpTexts[i],""),ni("id","gpText",n.gpTexts[i],""),R("ngModel",n.gpTexts[i]),h(),I(n.gpTexts.length>1?4:-1)}}function zx(t,e){t&1&&v(0,"i",24)}function $x(t,e){t&1&&v(0,"i",25)}function Gx(t,e){if(t&1){let i=U();c(0,"button",37),C("click",function(){let o=M(i).$implicit,r=y(2);return T(r.add("country",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (",i.path,")")}}function Wx(t,e){if(t&1){let i=U();c(0,"button",37),C("click",function(){let o=M(i).$implicit,r=y(2);return T(r.add("state",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (@",i.path,")")}}function Yx(t,e){if(t&1){let i=U();c(0,"button",37),C("click",function(){let o=M(i).$implicit,r=y(2);return T(r.add("city",o.id,o.name))}),f(1),u()}if(t&2){let i=e.$implicit;h(),Tt("Add ",i.name," (@",i.path,")")}}function qx(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),Qt(3,"titlecase"),u(),c(4,"td"),f(5),Qt(6,"titlecase"),u(),c(7,"td",35),f(8),u(),c(9,"td",38)(10,"i",39),C("click",function(){let o=M(i).$implicit,r=y(2);return T(r.remove(o.id))}),u()()()}if(t&2){let i=e.$implicit;h(2),J(Ti(3,3,i.type)),h(3),J(Ti(6,5,i.name)),h(3),J(i.cityCount)}}function Kx(t,e){if(t&1&&(c(0,"div",5)(1,"div",32)(2,"div",11)(3,"h5",8),f(4,"Geography Search Results"),u(),c(5,"div",9),ee(6,Gx,2,2,"button",33,Fc),ee(8,Wx,2,2,"button",33,Fc),ee(10,Yx,2,2,"button",33,Fc),u()()(),c(12,"div",32)(13,"div",11)(14,"h5",8),f(15,"Geography Selections"),u(),c(16,"div",9)(17,"table",34)(18,"thead")(19,"tr")(20,"th"),f(21,"Type"),u(),c(22,"th"),f(23,"Name"),u(),c(24,"th",35),f(25,"# Cities"),u(),c(26,"th"),f(27,"\xA0"),u()()(),c(28,"tbody"),ee(29,qx,11,7,"tr",null,Fc),c(31,"tr")(32,"td"),f(33,"\xA0"),u(),c(34,"th",36),f(35,"Total Number of Cities to Explore"),u(),c(36,"td",35),f(37),u(),c(38,"td"),f(39,"\xA0"),u()()()()()()()()),t&2){let i=y();h(6),te(i.searchResult.countries),h(2),te(i.searchResult.states),h(2),te(i.searchResult.cities),h(19),te(i.selections),h(8),J(i.totalCities)}}var Pc=class t{constructor(e,i,n,o){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o}searchResult=null;searchPhrase="";searching=!1;selections=[];totalCities=0;gpTexts=[""];areWeReadyToSave=!1;name="";checkReadinessToSave=()=>{if(this.areWeReadyToSave=!0,this.name.length<3){this.areWeReadyToSave=!1;return}if(this.selections.length===0){this.areWeReadyToSave=!1;return}if(this.totalCities===0){this.areWeReadyToSave=!1;return}if(parseInt(this.gpTexts.map(i=>i.length.toString()).join(""),0)===0){this.areWeReadyToSave=!1;return}};search=()=>E(this,null,function*(){this.searchResult=null,this.searching=!0,this.searchResult=yield this.gS.search(this.searchPhrase),this.cleanUp(),this.searching=!1});addGPText=()=>{this.gpTexts.push(""),this.checkReadinessToSave()};removeGPText=e=>{this.gpTexts.splice(e,1),this.checkReadinessToSave()};add=(e,i,n)=>{let o={type:e,id:i,name:n,cityCount:0};e!=="city"?this.gS.countCities(e,i).then(r=>{o.cityCount=r.count,this.calculateTotal()}):o.cityCount=1,this.selections.push(o),this.cleanUp(),this.calculateTotal(),this.checkReadinessToSave()};remove=e=>{this.selections=this.selections.filter(i=>i.id!==e),this.cleanUp(),this.calculateTotal(),this.checkReadinessToSave()};calculateTotal=()=>{this.totalCities=0;for(let e of this.selections)this.totalCities+=e.cityCount;this.checkReadinessToSave()};cleanUp=()=>{if(this.searchResult)for(let e of this.selections)this.searchResult.countries=this.searchResult.countries.filter(i=>i.id!==e.id),this.searchResult.states=this.searchResult.states.filter(i=>i.id!==e.id),this.searchResult.cities=this.searchResult.cities.filter(i=>i.id!==e.id);this.checkReadinessToSave()};creating=!1;create=()=>E(this,null,function*(){this.creating=!0;let e={name:this.name,gpTexts:this.gpTexts,selections:this.selections};console.log(e);let i=yield this.dbS.insert({type:"exploration",value:e});console.log(i),this.creating=!1,this.nS.sCP("crm-explore-list")});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-explorer"]],standalone:!0,features:[j],decls:54,vars:6,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"row","mt-0"],[1,"row"],[1,"col-4"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["type","text","name","name","id","name",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],[1,"card"],[1,"mb-3"],[1,"form-label"],[1,"input-group","input-group-sm","mb-2"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["id","gpTextHelp",1,"form-text"],[1,"col-8","mb-3"],[3,"ngSubmit"],["for","phrase",1,"form-label"],["type","text","name","phrase","id","phrase",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","phraseHelp",1,"form-text"],[1,"card-footer","border-top","d-flex"],["type","submit",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click","disabled"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"fas","fa-magnifying-glass-location","me-2"],[1,"container-fluid","mx-0","px-0"],[1,"input-group-text"],["type","text",1,"form-control","form-control-sm",3,"ngModelChange","name","id","ngModel"],["type","button",1,"btn","btn-outline-secondary"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-trash"],[1,"col","py-3"],["type","button",1,"btn","btn-sm","btn-outline-secondary","me-2","mb-2"],[1,"table","table-sm","table-striped","table-bordered"],[1,"text-end"],["scope","row"],["type","button",1,"btn","btn-sm","btn-outline-secondary","me-2","mb-2",3,"click"],[1,"text-center"],[1,"fas","fa-trash","text-danger","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Explorer"),u(),c(5,"button",3),C("click",function(){return n.create()}),f(6,"Create Explore"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"div",7)(12,"h5",8),f(13,"Name"),u(),c(14,"div",9)(15,"input",10),k("ngModelChange",function(r){return F(n.name,r)||(n.name=r),r}),u()()(),c(16,"div",11)(17,"h5",8),f(18,"What are you looking for?"),u(),c(19,"div",9)(20,"div",12)(21,"label",13),f(22,"Google Places Search Phrase"),u(),ee(23,Hx,5,6,"div",14,Yt),c(25,"button",15),C("click",function(){return n.addGPText()}),f(26,"Add Search Phrase"),u(),c(27,"div",16),f(28," These are the phrases we will be searching for you in Google Places API according to the entries you will make in the geographic search. "),v(29,"br"),f(30,' e.g. If you enter "Dentist" in this field and select city of Dubai, we will search for "Dentist in Dubai" for you. '),v(31,"br"),f(32,' or, if you select "United Kingdom (whole country)", we will make a similar search to above for each city in the UK for you. '),v(33,"br"),f(34," As you search for geographies below, we will let you know how many cities exist within a geography you select as well as the total number of cities. "),u()()()()(),c(35,"div",17)(36,"div",11)(37,"form",18),C("ngSubmit",function(){return n.search()}),c(38,"h5",8),f(39,"Search Geographic Targes"),u(),c(40,"div",9)(41,"div",12)(42,"label",19),f(43,"Please enter country/state/city"),u(),c(44,"input",20),k("ngModelChange",function(r){return F(n.searchPhrase,r)||(n.searchPhrase=r),r}),u(),c(45,"div",21),f(46,"Please note; LuckyNode will find your targets city by city, so adding a whole country/state will mean that there will be many steps in the explore phase."),u()()(),c(47,"div",22)(48,"button",23),C("click",function(){return n.search()}),S(49,zx,1,0,"i",24)(50,$x,1,0,"i",25),f(51," Search "),u()()()(),c(52,"div",26),S(53,Kx,40,1,"div",5),u()()()()),i&2&&(h(5),A("disabled",!n.areWeReadyToSave||n.creating),h(10),R("ngModel",n.name),h(8),te(n.gpTexts),h(21),R("ngModel",n.searchPhrase),h(4),A("disabled",n.searching||n.searchPhrase.length<3),h(),I(n.searching?49:50),h(4),I(n.searchResult?53:-1))},dependencies:[be,tn,it,Pe,en,Ne,Lt,vr]})};var Lc=class t{constructor(e){this.nS=e}static \u0275fac=function(i){return new(i||t)(w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-home"]],standalone:!0,features:[j],decls:14,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"fa-ul","mt-3","ms-4"],[1,"ptr",3,"click"],[1,"fa-li"],[1,"fas","fa-chevron-right"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Maintenance"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2)(9,"ul",5)(10,"li",6),C("click",function(){return n.nS.sCP("maintenance-cron")}),c(11,"span",7),v(12,"i",8),u(),f(13,"Cron Setup"),u()()()()())}})};var Bi=class t{constructor(e){this.http=e}mailgunSettings=null;url=`${Be}/maintenance`;mailgunSettingsUrl=`${Be}/maintenance/mailgun/settings`;cronCheck=()=>K(this.http.get(`${this.url}/cron-check`));cronFixDisableCron=()=>K(this.http.get(`${this.url}/cron-fix-disable-cron`));cronFixMissingCrontab=()=>K(this.http.get(`${this.url}/cron-fix-missing-crontab`));populateMailgunSettings=(e=!1)=>E(this,null,function*(){(this.mailgunSettings===null||e)&&(this.mailgunSettings=(yield K(this.http.get(this.mailgunSettingsUrl)).catch(console.error))||null)});saveMailgunSettings=()=>E(this,null,function*(){yield K(this.http.post(this.mailgunSettingsUrl,this.mailgunSettings))});static \u0275fac=function(i){return new(i||t)(H(Ve))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})};var Zx=()=>[];function Qx(t,e){t&1&&(f(0,` This value should be "true", let's fix it. `),v(1,"br"))}function Jx(t,e){t&1&&(v(0,"i",12),f(1," Fixing, please wait... "))}function Xx(t,e){t&1&&f(0," Fix This ")}function eO(t,e){if(t&1){let i=U();c(0,"button",11),C("click",function(){M(i);let o=y(2);return T(o.fixDisableCron())}),S(1,Jx,2,0)(2,Xx,1,0),u()}if(t&2){let i=y(2);A("disabled",i.fixingDisableCron),h(),I(i.fixingDisableCron?1:2)}}function tO(t,e){t&1&&(c(0,"button",9),f(1," All good. Nothing to do here. "),u()),t&2&&A("disabled",!0)}function nO(t,e){t&1&&v(0,"i",13)}function iO(t,e){if(t&1&&(c(0,"pre"),f(1),S(2,nO,1,0,"i",13),u()),t&2){let i=e.$implicit,n=y(3);h(),B("",i," "),h(),I(i===n.expectedCrontab?2:-1)}}function oO(t,e){t&1&&(f(0," We found the exact crontab we were looking for. Good job. "),v(1,"br"))}function rO(t,e){if(t&1&&(f(0," We couldn't find the exact crontab we were looking for. Which is:"),v(1,"br"),c(2,"pre"),f(3),u(),f(4," If you don't see an equivalent crontab in the list, or you don't have another method that runs this cron job. Please fix it using the button below: ")),t&2){let i=y(3);h(3),J(i.expectedCrontab)}}function sO(t,e){t&1&&(v(0,"i",12),f(1," Fixing, please wait... "))}function aO(t,e){t&1&&f(0," Fix This ")}function lO(t,e){if(t&1){let i=U();c(0,"button",11),C("click",function(){M(i);let o=y(3);return T(o.fixCronTab())}),S(1,sO,2,0)(2,aO,1,0),u()}if(t&2){let i=y(3);A("disabled",i.fixingCronTab),h(),I(i.fixingCronTab?1:2)}}function cO(t,e){t&1&&(c(0,"button",9),f(1," All good. Nothing to do here. "),u()),t&2&&A("disabled",!0)}function uO(t,e){if(t&1&&(c(0,"div",10)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Cronjobs Defined on the Server"),u(),c(5,"div",7),f(6," Below you can see crontab entries on your server: "),v(7,"hr"),ee(8,iO,3,2,"pre",null,Yt),v(10,"hr"),S(11,oO,2,0,"br")(12,rO,5,1),u(),c(13,"div",8),S(14,lO,3,2,"button",9)(15,cO,2,1,"button",9),u()()()()),t&2){let i=y(2);h(8),te(i.cronCR.crons||pr(2,Zx)),h(3),I(i.foundCrontab===!0?11:12),h(3),I(i.foundCrontab?15:14)}}function dO(t,e){if(t&1&&(c(0,"div",10)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Cron Job Setup"),u(),c(5,"div",7)(6,"strong"),f(7,"As soon as you register your domain with LuckyNode ecosystem, we start to send 1 cron calls per minute to your site."),u(),v(8,"hr"),f(9," So you are all covered here. "),v(10,"br")(11,"br"),f(12," Alternativetly if you would like to also run a local cron job on your server, "),v(13,"br"),f(14," below crontab entry should serve you well: "),v(15,"br"),c(16,"pre"),f(17),u()()()()()),t&2){let i=y(2);h(17),J(i.expectedCrontab)}}function fO(t,e){if(t&1&&(c(0,"div",4)(1,"div",2)(2,"div",5)(3,"h5",6),f(4,"Wordpress Config for Cron"),u(),c(5,"div",7),f(6," Below you can see DISABLE_WP_CRON value of your Wordpress configuration: "),v(7,"hr"),c(8,"pre"),f(9),u(),v(10,"hr"),S(11,Qx,2,0,"br"),u(),c(12,"div",8),S(13,eO,3,2,"button",9)(14,tO,2,1,"button",9),u()()()(),S(15,uO,16,3,"div",10)(16,dO,18,1,"div",10)),t&2){let i=y();h(9),B("DISABLE_WP_CRON = ",i.cronCR.DISABLE_WP_CRON,""),h(2),I(i.cronCR.DISABLE_WP_CRON===!1?11:-1),h(2),I(i.cronCR.DISABLE_WP_CRON===!1?13:14),h(2),I(i.canExec?15:16)}}var Vc=class t{constructor(e){this.mS=e}cronCR=null;expectedCrontab="";expectedCrontabUrl="";foundCrontab=!1;canExec=!1;ngOnInit(){this.checkCron()}checkCron=()=>E(this,null,function*(){this.cronCR=yield this.mS.cronCheck(),this.expectedCrontab=`* * * * * curl ${this.cronCR.siteURL}/wp-cron.php?doing_wp_cron >/dev/null 2>&1`,this.expectedCrontabUrl=`${this.cronCR.siteURL}/wp-cron.php?doing_wp_cron`,this.foundCrontab=!1,Array.isArray(this.cronCR.crons)&&(this.canExec=!0);for(let e of this.cronCR.crons)e===this.expectedCrontab&&(this.foundCrontab=!0)});fixingCronTab=!1;fixCronTab=()=>E(this,null,function*(){this.fixingCronTab=!1,yield this.mS.cronFixMissingCrontab(),yield this.checkCron(),setTimeout(()=>E(this,null,function*(){yield this.checkCron(),this.fixingCronTab=!1}),3e3)});fixingDisableCron=!1;fixDisableCron=()=>E(this,null,function*(){this.fixingDisableCron=!0,yield this.mS.cronFixDisableCron(),yield this.checkCron(),setTimeout(()=>E(this,null,function*(){yield this.checkCron(),this.fixingDisableCron=!1}),3e3)});static \u0275fac=function(i){return new(i||t)(w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-cron"]],standalone:!0,features:[j],decls:8,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"card-footer","border-top","d-flex"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"disabled"],[1,"row","py-3"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click","disabled"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"far","fa-square-check"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Cron Setup"),u()()(),c(5,"div",3),v(6,"hr"),u(),S(7,fO,17,4),u()),i&2&&(h(7),I(n.cronCR?7:-1))}})};var pO=(t,e)=>e.id;function hO(t,e){if(t&1&&f(0),t&2){let i=y().$implicit;B("",i.explorePercentage,"%")}}function mO(t,e){if(t&1&&(c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),Qt(7,"titlecase"),S(8,hO,1,1),u()()),t&2){let i=e.$implicit;h(2),J(i.id),h(2),J((i.value==null?null:i.value.name)||"No Name Given"),h(2),B(" ",Ti(7,4,(i.value==null?null:i.value.status)||"Pending")," "),h(2),I((i.value==null?null:i.value.status)==="Exploring"?8:-1)}}var Bc=class t{constructor(e,i,n,o){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o}explorations=null;interval;ngOnInit(){this.getAll(),this.interval=setInterval(this.getAll,5e3)}ngOnDestroy(){clearInterval(this.interval)}getAll=()=>E(this,null,function*(){this.explorations=yield this.dbS.selectAll({type:"exploration"});for(let e of this.explorations){e.countAll=(e.value.combinations||[]).length,e.countDone=0;for(let i of e.value.combinations||[])i.done&&e.countDone++;e.countAll&&(e.explorePercentage=(e.countDone/e.countAll*100).toFixed(2))}});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye),w(we))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-explore-list"]],standalone:!0,features:[j],decls:23,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"CRM Explore List"),u(),c(5,"button",3),C("click",function(){return n.nS.sCP("crm-explorer")}),f(6,"New Exploration"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead")(13,"tr")(14,"th"),f(15,"#"),u(),c(16,"th"),f(17,"Name"),u(),c(18,"th"),f(19,"Status"),u()()(),c(20,"tbody"),ee(21,mO,9,6,"tr",null,pO),u()()()()()),i&2&&(h(21),te(n.explorations))},dependencies:[be,vr]})};var gO=(t,e)=>e.id;function _O(t,e){if(t&1&&v(0,"img",16),t&2){let i=y().$implicit;A("src",i.value.avatar,Bn)}}function vO(t,e){t&1&&(c(0,"div",17),v(1,"i",24),u())}function yO(t,e){t&1&&(c(0,"button",18),v(1,"i",25),f(2," Ready"),u())}function CO(t,e){t&1&&(c(0,"button",19),v(1,"i",26),f(2," Browsing"),u())}function bO(t,e){if(t&1&&(c(0,"a",20),f(1),u()),t&2){let i=y().$implicit;h(),J(i.value.website)}}function DO(t,e){t&1&&f(0,"-")}function wO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",13)(2,"input",14),k("ngModelChange",function(o){let r=M(i).$implicit;return F(r.checked,o)||(r.checked=o),T(o)}),u()(),c(3,"td",15),S(4,_O,1,1,"img",16)(5,vO,2,0,"div",17),u(),c(6,"td",13),f(7),u(),c(8,"td",15),S(9,yO,3,0,"button",18)(10,CO,3,0,"button",19),u(),c(11,"td",13),S(12,bO,2,1,"a",20)(13,DO,1,0),u(),c(14,"td",13),f(15),u(),c(16,"td",13),f(17),u(),c(18,"td",13),f(19),u(),c(20,"td",13),f(21),u(),c(22,"td",13),f(23),Qt(24,"date"),u(),c(25,"td",21)(26,"i",22),C("click",function(){let o=M(i).$implicit,r=y();return T(r.edit(o.id))}),u(),c(27,"i",23),C("click",function(){let o=M(i).$implicit,r=y();return T(r.delete(o.id))}),u()()()}if(t&2){let i=e.$implicit,n=y();h(2),R("ngModel",i.checked),h(2),I(i.value.avatar?4:-1),h(),I(i.value.avatar?-1:5),h(2),J(i.value.name||"-"),h(2),I(n.isReady(i)?9:10),h(3),I(i.value.website?12:13),h(3),J(i.value.address||"-"),h(2),J(i.value.city||"-"),h(2),J(i.value.state||"-"),h(2),J(i.value.country||"-"),h(2),J(Al(24,11,i.createdOn,"longDate"))}}var jc=class t{constructor(e,i,n,o,r){this.crmS=e;this.gS=i;this.dbS=n;this.nS=o;this.uS=r;this.prepare()}contacts=[];prepare=()=>E(this,null,function*(){yield this.crmS.populateContacts(),this.contacts=Array.from(this.crmS.contacts.values()),this.contacts.forEach(e=>e.checked=!1)});isReady=e=>(e?.value?.status||"").substring(0,5).toLowerCase()==="ready";edit=e=>{this.crmS.currentContact=e,this.nS.sCP("crm-contact")};delete=e=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Contact"))&&(yield this.dbS.delete({id:e}).catch(console.error))}catch(i){console.error(i)}finally{yield this.prepare()}});deleting=!1;deleteSelected=()=>E(this,null,function*(){this.deleting=!0;try{if(yield this.uS.confirm("Are you sure?","Delete Contact"))for(let e of this.contacts)e.checked&&(yield this.dbS.delete({id:e.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.prepare(),this.deleting=!1}});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye),w(we),w(un))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-contact-list"]],standalone:!0,features:[j],decls:42,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-auto",3,"click","disabled"],[1,"fas","fa-trash","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col",2,"height","calc(100vh - 160px)","overflow","auto"],[1,"table","table-borderless"],[1,"sticky-top"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"align-middle"],["type","checkbox",1,"form-check-input",3,"ngModelChange","ngModel"],[1,"align-middle","text-center"],["alt","Avatar",1,"rounded-circle",2,"height","32px",3,"src"],[1,"d-flex","rounded-circle","bg-info","align-middle","text-center","text-white","p-0","mx-auto","my-0","fs-4",2,"width","32px","height","32px"],["type","button",1,"btn","btn-sm","btn-info"],["type","button",1,"btn","btn-sm","btn-warning"],["href","contact.value.website","target","_blank"],[1,"text-center","align-middle","text-nowrap"],[1,"fas","fa-pen-to-square","ptr","me-2",3,"click"],[1,"fas","fa-trash","text-danger","ptr","me-2",3,"click"],[1,"fas","fa-star","m-auto"],[1,"fas","fa-check","me-2"],[1,"fas","fa-sync","fa-spin","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Contact List"),u(),c(5,"button",3),C("click",function(){return n.deleteSelected()}),v(6,"i",4),f(7," Delete Selected "),u(),c(8,"button",5),C("click",function(){return n.nS.sCP("crm-contact")}),f(9,"New Contact"),u()()(),c(10,"div",6),v(11,"hr"),u(),c(12,"div",7)(13,"div",8)(14,"table",9)(15,"thead",10)(16,"tr")(17,"th"),f(18,"\xA0"),u(),c(19,"th",11),f(20,"Avatar"),u(),c(21,"th"),f(22,"Name"),u(),c(23,"th",11),f(24,"Status"),u(),c(25,"th"),f(26,"Website"),u(),c(27,"th"),f(28,"Address"),u(),c(29,"th"),f(30,"City"),u(),c(31,"th"),f(32,"State"),u(),c(33,"th"),f(34,"Country"),u(),c(35,"th"),f(36,"Added"),u(),c(37,"th",11),v(38,"i",12),u()()(),c(39,"tbody"),ee(40,wO,28,14,"tr",null,gO),u()()()()()),i&2&&(h(5),A("disabled",n.deleting),h(35),te(n.contacts))},dependencies:[be,wn,Pe,Ne,Wl]})};function EO(t,e){t&1&&(v(0,"i",17),f(1," Saving, please wait... "))}function SO(t,e){t&1&&(v(0,"i",18),f(1," Save "))}function MO(t,e){if(t&1){let i=U();c(0,"div",4)(1,"div",2)(2,"div",5)(3,"div",6)(4,"label",7),f(5,"Domain"),u(),c(6,"input",8),k("ngModelChange",function(o){M(i);let r=y();return F(r.mS.mailgunSettings.domain,o)||(r.mS.mailgunSettings.domain=o),T(o)}),u(),c(7,"label",9),f(8,"API Key"),u(),c(9,"input",10),k("ngModelChange",function(o){M(i);let r=y();return F(r.mS.mailgunSettings.apiKey,o)||(r.mS.mailgunSettings.apiKey=o),T(o)}),u(),c(10,"label",11),f(11,"Region"),u(),c(12,"select",12),k("ngModelChange",function(o){M(i);let r=y();return F(r.mS.mailgunSettings.region,o)||(r.mS.mailgunSettings.region=o),T(o)}),c(13,"option",13),f(14,"US"),u(),c(15,"option",14),f(16,"EU"),u()()(),c(17,"div",15)(18,"button",16),C("click",function(){M(i);let o=y();return T(o.save())}),S(19,EO,2,0)(20,SO,2,0),u()()()()()}if(t&2){let i=y();h(6),R("ngModel",i.mS.mailgunSettings.domain),h(3),R("ngModel",i.mS.mailgunSettings.apiKey),h(3),R("ngModel",i.mS.mailgunSettings.region),h(7),I(i.saving?19:20)}}var Uc=class t{constructor(e){this.mS=e}ngOnInit(){this.mS.populateMailgunSettings()}saving=!1;save=()=>E(this,null,function*(){this.saving=!0,yield this.mS.saveMailgunSettings(),this.saving=!1});static \u0275fac=function(i){return new(i||t)(w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-maintenance-mailgun"]],standalone:!0,features:[j],decls:15,vars:1,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col"],[1,"row","mt-0"],[1,"row"],[1,"card"],[1,"card-body"],["for","domain",1,"form-label"],["type","text","name","domain","id","domain",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","apikey",1,"form-label"],["type","password","name","apikey","id","apikey",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["for","region",1,"form-label"],["id","region","name","region",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","us"],["value","eu"],[1,"card-footer","border-top","d-flex"],["type","button",1,"btn","btn-success","text-light","btn-sm","ms-auto",3,"click"],[1,"fas","fa-sync","fa-spin","me-2"],[1,"fas","fa-floppy-disk","me-2"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Mailgun Settings"),u()()(),c(5,"div",3),v(6,"hr"),u(),c(7,"div",4)(8,"div",2),f(9," While sending email messages via LuckyNode plugin you will be needing a Mailgun account. "),v(10,"br"),f(11," We are enforcing this to ensure you don't have issues with email deliverability. "),v(12,"br"),f(13," In the future we are planning to support more email relay service providers, but for now, please bear with us. "),u()(),S(14,MO,21,4,"div",4),u()),i&2&&(h(14),I(n.mS.mailgunSettings?14:-1))},dependencies:[be,nn,on,it,It,Pe,Ne]})};var $p=class{constructor(){this.subject=new Gn(1),this.subscriptions=new Ue}doFilter(e){this.subject.next(e)}dispose(){this.subscriptions.unsubscribe()}notEmpty(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){let o=n[e].currentValue;o!=null&&i(o)}}))}has(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]){let o=n[e].currentValue;i(o)}}))}notFirst(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){let o=n[e].currentValue;i(o)}}))}notFirstAndEmpty(e,i){this.subscriptions.add(this.subject.subscribe(n=>{if(n[e]&&!n[e].isFirstChange()){let o=n[e].currentValue;o!=null&&i(o)}}))}},ay=new G("NGX_ECHARTS_CONFIG"),ly=(()=>{let e=class e{constructor(n,o,r){this.el=o,this.ngZone=r,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new re,this.optionsError=new re,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Gn(1),this.resize$=new he,this.changeFilter=new $p,this.resizeObFired=!1,this.echarts=n.echarts,this.theme=n.theme||null}ngOnChanges(n){this.changeFilter.doFilter(n)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(Mu(100,xn,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(n=>{for(let o of n)o.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",n=>this.onOptionsChange(n)),this.changeFilter.notFirstAndEmpty("merge",n=>this.setOption(n)),this.changeFilter.has("loading",n=>this.toggleLoading(!!n)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(n){this.chart?n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(o=>n?o.showLoading(this.loadingType,this.loadingOpts):o.hideLoading())}setOption(n,o){if(this.chart)try{this.chart.setOption(n,o)}catch(r){console.error(r),this.optionsError.emit(r)}}refreshChart(){return E(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let n=this.el.nativeElement;if(window&&window.getComputedStyle){let o=window.getComputedStyle(n,null).getPropertyValue("height");(!o||o==="0px")&&(!n.style.height||n.style.height==="0px")&&(n.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:r})=>r(n,this.theme,this.initOpts)))}initChart(){return E(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(n){return E(this,null,function*(){n&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(n){return this.chartInit.pipe(mi(o=>new ne(r=>(o.on(n,s=>this.ngZone.run(()=>r.next(s))),()=>{this.chart&&(this.chart.isDisposed()||o.off(n))}))))}};e.\u0275fac=function(o){return new(o||e)(w(ay),w(ye),w(ge))},e.\u0275dir=ae({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[yt]});let t=e;return t})(),Hc=(t={})=>({provide:ay,useFactory:()=>Se(Y({},t),{echarts:()=>import("./chunk-25X2RZSW.js")})});var cy=(t,e)=>e.id;function TO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit;A("value",i.id),h(),Tt("",i.value.name," (",i.value.subject,")")}}function IO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit;A("value",i.id),h(),Tt("",i.name," (",i.native,")")}}function xO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit,n=y();A("value",i),h(),J(n.pad0(i.toString()))}}function OO(t,e){if(t&1&&(c(0,"option",14),f(1),u()),t&2){let i=e.$implicit,n=y();A("value",i),h(),J(n.pad0(i.toString()))}}var zc=class t{constructor(e,i,n){this.crmS=e;this.gS=i;this.dbS=n}chartOption={xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line"}]};campaign={id:"",type:"campaign",value:{name:"",emailTemplate:"",country:"0",send:{atH:"0",atM:"0",atTZ:"targetCountry",onMon:!0,onTue:!0,onWed:!0,onThu:!0,onFri:!0,onSat:!1,onSun:!1,limitPerDay:10,limitPerType:"globally"},futureContacts:"yes",status:"pending"}};labelWidth=150;hours=[...new Array(24).keys()];minutes=[...new Array(60).keys()];pad0=e=>`0${e}`.slice(-2);ngOnInit(){return E(this,null,function*(){yield this.crmS.populateCampaigns(),yield this.crmS.populateEmailTemplates(),yield this.gS.populateCountries(),this.crmS.currentCampaign!==""&&this.crmS.campaigns.has(this.crmS.currentCampaign)&&(this.campaign=Y({},this.crmS.campaigns.get(this.crmS.currentCampaign)),this.campaign.value.country===0&&(this.campaign.value.country="0"))})}ngOnDestroy(){this.crmS.currentCampaign=""}areWeReadyToSave=()=>{for(let e of Object.keys(this.campaign.value))if(!this.campaign.value[e])return!1;return!0};saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.campaign.id)yield this.dbS.update(this.campaign);else{let e=yield this.dbS.insert(this.campaign);e.id&&(this.campaign.id=e.id)}yield this.crmS.populateCampaigns(),this.saving=!1});checkingNewContacts=!1;checkNewContacts=()=>E(this,null,function*(){this.checkingNewContacts=!0,yield this.save(),yield this.dbS.insertTask({type:"initiateCampaign",data:this.campaign.id}),this.checkingNewContacts=!1});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign"]],standalone:!0,features:[nt([Hc()]),j],decls:90,vars:33,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"fas","fa-rotate","me-2"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"input-group","input-group-sm","mb-1"],[1,"input-group-text"],["type","text","name","cName","id","cName",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","cTemplate","name","cTemplate",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],[3,"value"],["id","cCountry","name","cCountry",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["type","checkbox",1,"form-check-input","mt-0",3,"ngModelChange","ngModel"],["id","atH","name","atH",1,"form-select","form-select-sm",2,"max-width","100px",3,"ngModelChange","ngModel"],["id","atM","name","atM",1,"form-select","form-select-sm",2,"max-width","100px",3,"ngModelChange","ngModel"],["id","atTZ","name","atTZ",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","targetCountry"],["value","server"],["id","fc","name","fc",1,"form-select","form-select-sm",3,"ngModelChange","ngModel"],["value","yes"],["value","no"],["type","number","name","lpd","id","lpd","min","1",3,"ngModelChange","ngModel"],["value","globally"],["value","country"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Campaign"),u(),c(5,"button",3),C("click",function(){return n.save()}),v(6,"i",4),f(7," Save "),u(),c(8,"button",5),C("click",function(){return n.checkNewContacts()}),v(9,"i",6),f(10," Check for New Contacts "),u()()(),c(11,"div",7),v(12,"hr"),u(),c(13,"div",8)(14,"div",9)(15,"div",10)(16,"span",11),f(17,"Name"),u(),c(18,"input",12),k("ngModelChange",function(r){return F(n.campaign.value.name,r)||(n.campaign.value.name=r),r}),u()(),c(19,"div",10)(20,"span",11),f(21,"Email Template"),u(),c(22,"select",13),k("ngModelChange",function(r){return F(n.campaign.value.emailTemplate,r)||(n.campaign.value.emailTemplate=r),r}),ee(23,TO,2,3,"option",14,cy),u()(),c(25,"div",10)(26,"span",11),f(27,"Send to all contacts in"),u(),c(28,"select",15),k("ngModelChange",function(r){return F(n.campaign.value.country,r)||(n.campaign.value.country=r),r}),c(29,"option",14),f(30,"any country"),u(),ee(31,IO,2,3,"option",14,cy),u()(),c(33,"div",10)(34,"span",11),f(35,"Sending Days"),u(),c(36,"div",11),f(37," Mon:\xA0"),c(38,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onMon,r)||(n.campaign.value.send.onMon=r),r}),u()(),c(39,"div",11),f(40," Tue:\xA0"),c(41,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onTue,r)||(n.campaign.value.send.onTue=r),r}),u()(),c(42,"div",11),f(43," Wed:\xA0"),c(44,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onWed,r)||(n.campaign.value.send.onWed=r),r}),u()(),c(45,"div",11),f(46," Thu:\xA0"),c(47,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onThu,r)||(n.campaign.value.send.onThu=r),r}),u()(),c(48,"div",11),f(49," Fri:\xA0"),c(50,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onFri,r)||(n.campaign.value.send.onFri=r),r}),u()(),c(51,"div",11),f(52," Sat:\xA0"),c(53,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onSat,r)||(n.campaign.value.send.onSat=r),r}),u()(),c(54,"div",11),f(55," Sun:\xA0"),c(56,"input",16),k("ngModelChange",function(r){return F(n.campaign.value.send.onSun,r)||(n.campaign.value.send.onSun=r),r}),u()()(),c(57,"div",10)(58,"span",11),f(59,"Sending Time"),u(),c(60,"select",17),k("ngModelChange",function(r){return F(n.campaign.value.send.atH,r)||(n.campaign.value.send.atH=r),r}),ee(61,xO,2,2,"option",14,yo),u(),c(63,"select",18),k("ngModelChange",function(r){return F(n.campaign.value.send.atM,r)||(n.campaign.value.send.atM=r),r}),ee(64,OO,2,2,"option",14,yo),u(),c(66,"span",11),f(67,"of"),u(),c(68,"select",19),k("ngModelChange",function(r){return F(n.campaign.value.send.atTZ,r)||(n.campaign.value.send.atTZ=r),r}),c(69,"option",20),f(70,"target country time"),u(),c(71,"option",21),f(72,"server time"),u()()(),c(73,"div",10)(74,"span",11),f(75,"Future Contacts"),u(),c(76,"select",22),k("ngModelChange",function(r){return F(n.campaign.value.futureContacts,r)||(n.campaign.value.futureContacts=r),r}),c(77,"option",23),f(78,"Include contacts created in the future"),u(),c(79,"option",24),f(80,"Don't include contacts in the future"),u()()(),c(81,"div",10)(82,"span",11),f(83,"Limit Sending"),u(),c(84,"input",25),k("ngModelChange",function(r){return F(n.campaign.value.send.limitPerDay,r)||(n.campaign.value.send.limitPerDay=r),r}),u(),c(85,"select",22),k("ngModelChange",function(r){return F(n.campaign.value.send.limitPerType,r)||(n.campaign.value.send.limitPerType=r),r}),c(86,"option",26),f(87,"per day Globally"),u(),c(88,"option",27),f(89,"per day per Country"),u()()()()()()),i&2&&(h(5),A("disabled",!n.areWeReadyToSave()||n.saving),h(3),A("disabled",n.checkingNewContacts),h(8),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.emailTemplate),h(),te(n.crmS.emailTemplates.values()),h(3),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.country),h(),A("value",0),h(2),te(n.gS.countries.values()),h(3),Ce("width",n.labelWidth,"px"),h(4),R("ngModel",n.campaign.value.send.onMon),h(3),R("ngModel",n.campaign.value.send.onTue),h(3),R("ngModel",n.campaign.value.send.onWed),h(3),R("ngModel",n.campaign.value.send.onThu),h(3),R("ngModel",n.campaign.value.send.onFri),h(3),R("ngModel",n.campaign.value.send.onSat),h(3),R("ngModel",n.campaign.value.send.onSun),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.send.atH),h(),te(n.hours),h(2),R("ngModel",n.campaign.value.send.atM),h(),te(n.minutes),h(4),R("ngModel",n.campaign.value.send.atTZ),h(6),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.futureContacts),h(6),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.campaign.value.send.limitPerDay),h(),R("ngModel",n.campaign.value.send.limitPerType))},dependencies:[be,nn,on,it,bo,wn,It,Pe,fp,Ne]})};var NO=(t,e)=>e.id;function AO(t,e){if(t&1){let i=U();c(0,"tr")(1,"td"),f(2),u(),c(3,"td"),f(4),u(),c(5,"td"),f(6),u(),c(7,"td"),f(8),u(),c(9,"td"),f(10),u(),c(11,"td",9)(12,"i",11),C("click",function(){let o=M(i).$implicit,r=y();return T(r.edit(o.id))}),u()()()}if(t&2){let i,n=e.$implicit,o=y();h(2),J(n.value.name||"No Name Given"),h(2),J(n.value.subject||"No Subject Given"),h(2),B(" ",n.value.attachments.length," "),h(2),J(((i=o.crmS.contacts.get(n.value.contact))==null||i.value==null?null:i.value.name)||"N/A"),h(2),B(" ",n.value.testEmailAddress," ")}}var $c=class t{constructor(e,i){this.nS=e;this.crmS=i}ngOnInit(){this.crmS.populateEmailTemplates(),this.crmS.populateContacts()}edit=e=>{this.crmS.currentEmailTemplate=e,this.nS.sCP("crm-email-template")};static \u0275fac=function(i){return new(i||t)(w(we),w(je))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-email-template-list"]],standalone:!0,features:[j],decls:29,vars:0,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"table","table-sm","table-striped","table-bordered"],[1,"sticky-top","border"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],[1,"fas","fa-pen-to-square","ptr",3,"click"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Email Template List"),u(),c(5,"button",3),C("click",function(){return n.nS.sCP("crm-email-template")}),f(6,"New Template"),u()()(),c(7,"div",4),v(8,"hr"),u(),c(9,"div",5)(10,"div",6)(11,"table",7)(12,"thead",8)(13,"tr")(14,"th"),f(15,"Name"),u(),c(16,"th"),f(17,"Subject"),u(),c(18,"th"),f(19,"Attachments"),u(),c(20,"th"),f(21,"Testing Contact"),u(),c(22,"th"),f(23,"Testing Email Address"),u(),c(24,"th",9),v(25,"i",10),u()()(),c(26,"tbody"),ee(27,AO,13,5,"tr",null,NO),u()()()()()),i&2&&(h(27),te(n.crmS.emailTemplates.values()))}})};var Gc={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},uy=new G("config",{providedIn:"root",factory:()=>({modules:Gc})});var RO=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],kO=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function FO(t,e){t&1&&v(0,"div",0)}function PO(t,e){t&1&&v(0,"div",0)}var Wc=(t,e)=>t||e||"html",LO=()=>new ne(t=>{let e=requestAnimationFrame(()=>{t.next(),t.complete()});return()=>cancelAnimationFrame(e)}),VO=(()=>{let e=class e{constructor(n,o){this.config=o,this.quill$=gu(()=>E(this,null,function*(){if(!this.Quill){let r=this.document.addEventListener;this.document.addEventListener=this.document.__zone_symbol__addEventListener||this.document.addEventListener;let s=yield import("./chunk-QH7V45P4.js");this.document.addEventListener=r,this.Quill=s.default?.default??s.default??s}return this.config.customOptions?.forEach(r=>{let s=this.Quill.import(r.import);s.whitelist=r.whitelist,this.Quill.register(s,!0,this.config.suppressGlobalRegisterWarning)}),yield this.registerCustomModules(this.Quill,this.config.customModules,this.config.suppressGlobalRegisterWarning)})).pipe(wu({bufferSize:1,refCount:!0})),this.document=n.get(Fe),this.config||(this.config={modules:Gc})}getQuill(){return this.quill$}registerCustomModules(n,o,r){return E(this,null,function*(){if(Array.isArray(o))for(let{implementation:s,path:a}of o)mu(s)&&(s=yield On(s)),n.register(a,s,r);return n})}};e.\u0275fac=function(o){return new(o||e)(H(He),H(uy,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),BO=(()=>{let e=class e{constructor(){this.format=De(void 0),this.theme=De(void 0),this.modules=De(void 0),this.debug=De(!1),this.readOnly=De(!1),this.placeholder=De(void 0),this.maxLength=De(void 0),this.minLength=De(void 0),this.required=De(!1),this.formats=De(void 0),this.customToolbarPosition=De("top"),this.sanitize=De(void 0),this.beforeRender=De(void 0),this.styles=De(null),this.registry=De(void 0),this.bounds=De(void 0),this.customOptions=De([]),this.customModules=De([]),this.trackChanges=De(void 0),this.classes=De(void 0),this.trimOnValidation=De(!1),this.linkPlaceholder=De(void 0),this.compareValues=De(!1),this.filterNull=De(!1),this.debounceTime=De(void 0),this.defaultEmptyValue=De(null),this.onEditorCreated=new re,this.onEditorChanged=new re,this.onContentChanged=new re,this.onSelectionChanged=new re,this.onFocus=new re,this.onBlur=new re,this.onNativeFocus=new re,this.onNativeBlur=new re,this.disabled=!1,this.toolbarPosition=Si("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=b(ye),this.document=b(Fe),this.cd=b(Jt),this.domSanitizer=b(rp),this.platformId=b(Gt),this.renderer=b(Wt),this.zone=b(ge),this.service=b(VO),this.destroyRef=b(ei),this.valueGetter=De(n=>{let o=n.getSemanticHTML();this.isEmptyValue(o)&&(o=this.defaultEmptyValue());let r=o,s=Wc(this.format(),this.service.config.format);if(s==="text")r=n.getText();else if(s==="object")r=n.getContents();else if(s==="json")try{r=JSON.stringify(n.getContents())}catch{r=n.getText()}return r}),this.valueSetter=De((n,o)=>{let r=Wc(this.format(),this.service.config.format);if(r==="html")return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(o=this.domSanitizer.sanitize(Cn.HTML,o)),n.clipboard.convert({html:o});if(r==="json")try{return JSON.parse(o)}catch{return[{insert:o}]}return o}),this.selectionChangeHandler=(n,o,r)=>{let s=this.trackChanges()||this.service.config.trackChanges,a=!n&&!!this.onModelTouched&&(r==="user"||s&&s==="all");!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!a||this.zone.run(()=>{n===null?this.onBlur.emit({editor:this.quillEditor,source:r}):o===null&&this.onFocus.emit({editor:this.quillEditor,source:r}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:o,range:n,source:r}),a&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(n,o,r)=>{let s=this.quillEditor.getText(),a=this.quillEditor.getContents(),l=this.quillEditor.getSemanticHTML();this.isEmptyValue(l)&&(l=this.defaultEmptyValue());let d=this.trackChanges()||this.service.config.trackChanges,p=(r==="user"||d&&d==="all")&&!!this.onModelChange;!this.onContentChanged.observed&&!p||this.zone.run(()=>{if(p){let m=this.valueGetter();this.onModelChange(m(this.quillEditor))}this.onContentChanged.emit({content:a,delta:n,editor:this.quillEditor,html:l,oldDelta:o,source:r,text:s}),this.cd.markForCheck()})},this.editorChangeHandler=(n,o,r,s)=>{if(this.onEditorChanged.observed)if(n==="text-change"){let a=this.quillEditor.getText(),l=this.quillEditor.getContents(),d=this.quillEditor.getSemanticHTML();this.isEmptyValue(d)&&(d=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:l,delta:o,editor:this.quillEditor,event:n,html:d,oldDelta:r,source:s,text:a}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:n,oldRange:r,range:o,source:s}),this.cd.markForCheck()})}}static normalizeClassNames(n){return n.trim().split(" ").reduce((r,s)=>{let a=s.trim();return a&&r.push(a),r},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){yr(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(gt(n=>{let o=[this.service.registerCustomModules(n,this.customModules())],r=this.beforeRender()??this.service.config.beforeRender;return r&&o.push(r()),Promise.all(o).then(()=>n)})).subscribe(n=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");let o=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),r=Object.assign({},this.modules()||this.service.config.modules);o?r.toolbar=o:r.toolbar===void 0&&(r.toolbar=Gc.toolbar);let s=this.placeholder()!==void 0?this.placeholder():this.service.config.placeholder;s===void 0&&(s="Insert text here ...");let a=this.styles();a&&Object.keys(a).forEach(_=>{this.renderer.setStyle(this.editorElem,_,a[_])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(_=>{let g=n.import(_.import);g.whitelist=_.whitelist,n.register(g,!0)});let l=this.bounds()&&this.bounds()==="self"?this.editorElem:this.bounds();l||(l=this.service.config.bounds?this.service.config.bounds:this.document.body);let d=this.debug();!d&&d!==!1&&this.service.config.debug&&(d=this.service.config.debug);let p=this.readOnly();!p&&this.readOnly()!==!1&&(p=this.service.config.readOnly!==void 0?this.service.config.readOnly:!1);let m=this.formats();if(!m&&m===void 0&&(m=this.service.config.formats?[...this.service.config.formats]:this.service.config.formats===null?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new n(this.editorElem,{bounds:l,debug:d,formats:m,modules:r,placeholder:s,readOnly:p,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed){xe(this.quillEditor.scroll.domNode,"blur").pipe(ai(this.destroyRef)).subscribe(()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"}));let _=this.quillEditor.getModule("toolbar");_.container&&xe(_.container,"mousedown").pipe(ai(this.destroyRef)).subscribe(g=>g.preventDefault())}if(this.onNativeFocus.observed&&xe(this.quillEditor.scroll.domNode,"focus").pipe(ai(this.destroyRef)).subscribe(()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){let g=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");g?.dataset&&(g.dataset.link=this.linkPlaceholder())}}),this.content){if(Wc(this.format(),this.service.config.format)==="text")this.quillEditor.setText(this.content,"silent");else{let x=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(x,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),!(!this.onEditorCreated.observed&&!this.onValidatorChanged)&&LO().pipe(ai(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(n){if(this.quillEditor){if(n.readOnly&&this.quillEditor.enable(!n.readOnly.currentValue),n.placeholder&&(this.quillEditor.root.dataset.placeholder=n.placeholder.currentValue),n.styles){let o=n.styles.currentValue,r=n.styles.previousValue;r&&Object.keys(r).forEach(s=>{this.renderer.removeStyle(this.editorElem,s)}),o&&Object.keys(o).forEach(s=>{this.renderer.setStyle(this.editorElem,s,this.styles()[s])})}if(n.classes){let o=n.classes.currentValue,r=n.classes.previousValue;r&&this.removeClasses(r),o&&this.addClasses(o)}n.debounceTime&&this.addQuillEventListeners()}}addClasses(n){e.normalizeClassNames(n).forEach(o=>{this.renderer.addClass(this.editorElem,o)})}removeClasses(n){e.normalizeClassNames(n).forEach(o=>{this.renderer.removeClass(this.editorElem,o)})}writeValue(n){if(this.filterNull()&&n===null||(this.content=n,!this.quillEditor))return;let o=Wc(this.format(),this.service.config.format),s=this.valueSetter()(this.quillEditor,n);if(this.compareValues()){let a=this.quillEditor.getContents();if(JSON.stringify(a)===JSON.stringify(s))return}if(n){o==="text"?this.quillEditor.setText(n):this.quillEditor.setContents(s);return}this.quillEditor.setText("")}setDisabledState(n=this.disabled){this.disabled=n,this.quillEditor&&(n?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}registerOnValidatorChange(n){this.onValidatorChanged=n}validate(){if(!this.quillEditor)return null;let n={},o=!0,r=this.quillEditor.getText(),s=this.trimOnValidation()?r.trim().length:r.length===1&&r.trim().length===0?0:r.length-1,a=this.quillEditor.getContents().ops,l=!!a&&a.length===1&&[` 16 `,""].includes(a[0].insert?.toString());return this.minLength()&&s&&s<this.minLength()&&(n.minLengthError={given:s,minLength:this.minLength()},o=!1),this.maxLength()&&s>this.maxLength()&&(n.maxLengthError={given:s,maxLength:this.maxLength()},o=!1),this.required()&&!s&&l&&(n.requiredError={empty:!0},o=!1),o?null:n}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new Ue,this.subscription.add(xe(this.quillEditor,"selection-change").subscribe(([r,s,a])=>{this.selectionChangeHandler(r,s,a)}));let n=xe(this.quillEditor,"text-change"),o=xe(this.quillEditor,"editor-change");typeof this.debounceTime()=="number"&&(n=n.pipe(Ji(this.debounceTime())),o=o.pipe(Ji(this.debounceTime()))),this.subscription.add(n.subscribe(([r,s,a])=>{this.textChangeHandler(r,s,a)})),this.subscription.add(o.subscribe(([r,s,a,l])=>{this.editorChangeHandler(r,s,a,l)}))})}dispose(){this.subscription!==null&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(n){return n==="<p></p>"||n==="<div></div>"||n==="<p><br></p>"||n==="<div><br></div>"}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=ae({type:e,inputs:{format:[1,"format"],theme:[1,"theme"],modules:[1,"modules"],debug:[1,"debug"],readOnly:[1,"readOnly"],placeholder:[1,"placeholder"],maxLength:[1,"maxLength"],minLength:[1,"minLength"],required:[1,"required"],formats:[1,"formats"],customToolbarPosition:[1,"customToolbarPosition"],sanitize:[1,"sanitize"],beforeRender:[1,"beforeRender"],styles:[1,"styles"],registry:[1,"registry"],bounds:[1,"bounds"],customOptions:[1,"customOptions"],customModules:[1,"customModules"],trackChanges:[1,"trackChanges"],classes:[1,"classes"],trimOnValidation:[1,"trimOnValidation"],linkPlaceholder:[1,"linkPlaceholder"],compareValues:[1,"compareValues"],filterNull:[1,"filterNull"],debounceTime:[1,"debounceTime"],defaultEmptyValue:[1,"defaultEmptyValue"],valueGetter:[1,"valueGetter"],valueSetter:[1,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[yt]});let t=e;return t})(),dy=(()=>{let e=class e extends BO{};e.\u0275fac=(()=>{let n;return function(r){return(n||(n=$t(e)))(r||e)}})(),e.\u0275cmp=V({type:e,selectors:[["quill-editor"]],standalone:!0,features:[nt([{multi:!0,provide:Hn,useExisting:at(()=>e)},{multi:!0,provide:Er,useExisting:at(()=>e)}]),tt,j],ngContentSelectors:kO,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(o,r){o&1&&(Nl(RO),S(0,FO,1,0,"div",0),ur(1),ur(2,1),ur(3,2),S(4,PO,1,0,"div",0)),o&2&&(I(r.toolbarPosition()!=="top"?0:-1),h(4),I(r.toolbarPosition()==="top"?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]});let t=e;return t})();var jO=["cInstance"],UO=["instance"];function HO(t,e){return this.attachment}var zO=()=>({height:"calc(100vh - 200px)"});function $O(t,e){t&1&&v(0,"i",6)}function GO(t,e){t&1&&v(0,"i",7)}function WO(t,e){t&1&&v(0,"i",9)}function YO(t,e){t&1&&v(0,"i",7)}function qO(t,e){t&1&&v(0,"i",40)}function KO(t,e){t&1&&v(0,"i",41)}function ZO(t,e){t&1&&v(0,"i",42)}function QO(t,e){if(t&1){let i=U();c(0,"div",39)(1,"span"),S(2,qO,1,0,"i",40)(3,KO,1,0,"i",41)(4,ZO,1,0,"i",42),f(5),u(),c(6,"i",43),C("click",function(){M(i);let o=y().$index,r=y();return T(r.removeAttachment(o))}),u()()}if(t&2){let i,n=e;h(2),I(n.mime_type==="application/pdf"?2:n.media_type==="image"?3:4),h(3),B(" ",(i=(i=n.title==null?null:n.title.rendered)!==null&&i!==void 0?i:n.guid.rendered)!==null&&i!==void 0?i:"No ID"," ")}}function JO(t,e){if(t&1&&S(0,QO,7,2,"div",39),t&2){let i,n=e.$implicit,o=y();I((i=o.attachedMedia.get(n))?0:-1,i)}}var Yc=class t{constructor(e,i,n,o,r,s){this.nS=e;this.dbS=i;this.mS=n;this.crmS=o;this.uS=r;this.aS=s}labelWidth="114";template={id:"",type:"email-template",value:{name:"",from:{name:"",address:""},replyTo:{name:"",address:""},subject:"",content:"",attachments:[],contact:"",testEmailAddress:""}};attachment;quill;modules={toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"super"},{script:"sub"}],[{header:"1"},{header:"2"},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["direction",{align:[]}],["link","image","video","formula"],["clean"]]};attachedMedia=new Map;created(e){this.quill=e}insertAtCaret=e=>{let i=this.quill.getSelection(!0);this.quill.insertText(i,e)};insertVariable=e=>{e="{{"+e+"}}",this.insertAtCaret(e)};saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.template.id)yield this.dbS.update(this.template);else{let e=yield this.dbS.insert(this.template);e.id&&(this.template.id=e.id)}yield this.crmS.populateEmailTemplates(),this.saving=!1});testing=!1;test=()=>E(this,null,function*(){if(this.testing=!0,yield this.save(),!this.template.id){this.uS.alert("Please save template before testing","Unsaved Template","OK"),this.testing=!1;return}if(!this.template.value.contact){this.uS.alert("You need to assign a contact to test the template.","Missing Contact Assignment","OK"),this.testing=!1;return}if(!this.template.value.testEmailAddress){this.uS.alert("You need to assign an email address as the test recipient.","Missing Contact Assignment","OK"),this.testing=!1;return}if(!this.aS.mailgunSettings?.domain||!this.aS.mailgunSettings?.apiKey||!this.aS.mailgunSettings?.region){(yield this.uS.confirm("In order to send email messages using LuckyNode plugin, you need to enter your Mailgun Account settings as a prerequisite.","Missing Mailgun Settings","Go to Mailgun Settings","Stay on this screen"))&&this.nS.sCP("maintenance-mailgun"),this.testing=!1;return}yield this.crmS.testEmailTemplate(this.template.id),this.testing=!1});ngOnInit(){return E(this,null,function*(){yield this.crmS.populateEmailTemplates(),yield this.crmS.populateContacts(),yield this.mS.populateMediaList(),this.crmS.currentEmailTemplate!==""&&this.crmS.emailTemplates.has(this.crmS.currentEmailTemplate)&&(this.template=Y({},this.crmS.emailTemplates.get(this.crmS.currentEmailTemplate)),console.log(this.template),this.populateAttachedMedia()),yield this.aS.populateMailgunSettings();let e=this.template.value.contact;this.template.value.contact="0",setTimeout(()=>{this.template.value.contact=e},0)})}ngOnDestroy(){this.crmS.currentEmailTemplate=""}populateAttachedMedia=()=>{for(let e of this.template.value.attachments)for(let i of this.mS.mediaList||[])i.id===e&&this.attachedMedia.set(e,i)};cFocus$=new he;cClick$=new he;cInstance;searchContact=e=>{let i=e.pipe(Ji(200),Bo()),n=this.cClick$.pipe(_t(()=>!this.cInstance.isPopupOpen())),o=this.cFocus$;return $r(i,o,n).pipe(Me(r=>r===""?[...this.crmS.contacts.values()]:[...this.crmS.contacts.values()].filter(s=>s.value.name.toLowerCase().indexOf(r.toLowerCase())>-1).slice(0,10)))};formatContact=e=>typeof e=="object"?(e?.value||{name:""}).name:this.crmS.contacts.has(e)?this.crmS.contacts.get(e)?.value?.name||"Contact without name":"Contact Not found";selectContact=e=>{setTimeout(()=>{this.template.value.contact=e.item.id},0)};formatMedia=e=>decodeURI((e?.title||{rendered:""}).rendered);selectMedia=e=>{let i=!1;for(let n of this.template.value.attachments)n===e?.item?.id&&(i=!0);!i&&e?.item?.id&&(this.template.value.attachments.push(e.item.id),this.populateAttachedMedia()),setTimeout(()=>{this.attachment=null},100)};focus$=new he;click$=new he;instance;searchMedia=e=>{let i=e.pipe(Ji(200),Bo()),n=this.click$.pipe(_t(()=>!this.instance.isPopupOpen())),o=this.focus$;return $r(i,o,n).pipe(Me(r=>(r===""?this.mS.mediaList:(this.mS.mediaList||[]).filter(s=>s.title.rendered.toLowerCase().indexOf(r.toLowerCase())>-1)).slice(0,10)))};removeAttachment=e=>(this.template.value.attachments||[]).splice(e,1);delete=()=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Template"))&&this.template.id&&(yield this.dbS.delete({id:this.template.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.crmS.populateEmailTemplates(),this.nS.sCP("crm-email-template-list")}});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(Li),w(je),w(un),w(Bi))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-email-template"]],viewQuery:function(i,n){if(i&1&&(dr(jO,7),dr(UO,7)),i&2){let o;Kt(o=Zt())&&(n.cInstance=o.first),Kt(o=Zt())&&(n.instance=o.first)}},standalone:!0,features:[j],decls:96,vars:41,consts:[["cInstance","ngbTypeahead"],["instance","ngbTypeahead"],[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],[1,"fas","fa-sync","fa-spin","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"far","fa-eye","me-2"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-3","text-danger",3,"click"],[1,"fas","fa-trash","me-2"],[1,"row","mt-0"],[1,"row"],[1,"col-9"],["format","html","theme","snow",3,"ngModelChange","onEditorCreated","modules","styles","ngModel"],[1,"col-3"],[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],[1,"input-group","input-group-sm","mb-1"],["for","tName",1,"input-group-text"],["type","text","name","tName","id","tName",1,"form-control",3,"ngModelChange","ngModel"],["for","tSubject",1,"input-group-text"],["type","text","name","tSubject","id","tSubject",1,"form-control",3,"ngModelChange","ngModel"],["for","tFromName",1,"input-group-text"],["type","text","name","tFromName","id","tFromName",1,"form-control",3,"ngModelChange","ngModel"],["for","tFrom",1,"input-group-text"],["type","text","name","tFrom","id","tFrom",1,"form-control",3,"ngModelChange","ngModel"],["for","trt",1,"input-group-text"],["type","text","name","trt","id","trt",1,"form-control",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-sm","btn-outline-secondary","mb-1","me-1",3,"click"],[1,"mb-3"],["for","tContact",1,"form-label"],["id","tContact","name","tContact","type","text",1,"form-control","form-control-sm",3,"ngModelChange","selectItem","focus","click","ngModel","ngbTypeahead","inputFormatter","resultFormatter","selectOnExact","editable"],["for","tEmail",1,"form-label"],["type","email","name","tEmail","id","tEmail",1,"form-control","form-control-sm",3,"ngModelChange","ngModel"],["id","tEmailHelp",1,"form-text"],["id","attachment","name","attachment","type","text",1,"form-control","form-control-sm",3,"ngModelChange","selectItem","focus","click","ngModel","ngbTypeahead","inputFormatter","resultFormatter","selectOnExact","editable"],[1,"d-flex","justify-content-between","p-2"],[1,"fa-solid","fa-file-pdf"],[1,"fa-solid","fa-file-image"],[1,"fa-solid","fa-file"],[1,"fas","fa-trash","ptr","text-danger",3,"click"]],template:function(i,n){if(i&1){let o=U();c(0,"div",2)(1,"div",3)(2,"div",4)(3,"h5"),f(4,"Email Template"),u(),c(5,"button",5),C("click",function(){return M(o),T(n.save())}),S(6,$O,1,0,"i",6)(7,GO,1,0,"i",7),f(8," Save "),u(),c(9,"button",8),C("click",function(){return M(o),T(n.test())}),S(10,WO,1,0,"i",9)(11,YO,1,0,"i",7),f(12," Test "),u(),c(13,"button",10),C("click",function(){return M(o),T(n.delete())}),v(14,"i",11),f(15," Delete"),u()()(),c(16,"div",12),v(17,"hr"),u(),c(18,"div",13)(19,"div",14)(20,"quill-editor",15),k("ngModelChange",function(s){return M(o),F(n.template.value.content,s)||(n.template.value.content=s),T(s)}),C("onEditorCreated",function(s){return M(o),T(n.created(s))}),u()(),c(21,"div",16)(22,"div",17)(23,"h5",18),f(24,"Template"),u(),c(25,"div",19)(26,"div",20)(27,"label",21),f(28,"Name"),u(),c(29,"input",22),k("ngModelChange",function(s){return M(o),F(n.template.value.name,s)||(n.template.value.name=s),T(s)}),u()(),c(30,"div",20)(31,"label",23),f(32,"Subject:"),u(),c(33,"input",24),k("ngModelChange",function(s){return M(o),F(n.template.value.subject,s)||(n.template.value.subject=s),T(s)}),u()(),c(34,"div",20)(35,"label",25),f(36,"From Name:"),u(),c(37,"input",26),k("ngModelChange",function(s){return M(o),F(n.template.value.from.name,s)||(n.template.value.from.name=s),T(s)}),u()(),c(38,"div",20)(39,"label",27),f(40,"From:"),u(),c(41,"input",28),k("ngModelChange",function(s){return M(o),F(n.template.value.from.address,s)||(n.template.value.from.address=s),T(s)}),u()(),c(42,"div",20)(43,"label",29),f(44,"Reply To Name:"),u(),c(45,"input",30),k("ngModelChange",function(s){return M(o),F(n.template.value.replyTo.name,s)||(n.template.value.replyTo.name=s),T(s)}),u()(),c(46,"div",20)(47,"label",29),f(48,"Reply To Address:"),u(),c(49,"input",30),k("ngModelChange",function(s){return M(o),F(n.template.value.replyTo.address,s)||(n.template.value.replyTo.address=s),T(s)}),u()()()(),c(50,"div",17)(51,"h5",18),f(52,"Available Variables"),u(),c(53,"div",19)(54,"button",31),C("click",function(){return M(o),T(n.insertVariable("name"))}),f(55,"Name"),u(),c(56,"button",31),C("click",function(){return M(o),T(n.insertVariable("titleCaseName"))}),f(57,"Name (Title Case)"),u(),c(58,"button",31),C("click",function(){return M(o),T(n.insertVariable("type"))}),f(59,"Type"),u(),c(60,"button",31),C("click",function(){return M(o),T(n.insertVariable("titleCaseType"))}),f(61,"Type (Title Case)"),u(),c(62,"button",31),C("click",function(){return M(o),T(n.insertVariable("address"))}),f(63,"Address"),u(),c(64,"button",31),C("click",function(){return M(o),T(n.insertVariable("city"))}),f(65,"City"),u(),c(66,"button",31),C("click",function(){return M(o),T(n.insertVariable("state"))}),f(67,"State"),u(),c(68,"button",31),C("click",function(){return M(o),T(n.insertVariable("country"))}),f(69,"Country"),u(),c(70,"button",31),C("click",function(){return M(o),T(n.insertVariable("website"))}),f(71,"Website"),u()()(),c(72,"div",17)(73,"h5",18),f(74,"Testing"),u(),c(75,"div",19)(76,"div",32)(77,"label",33),f(78,"Select a Contact for Testing"),u(),c(79,"input",34,0),k("ngModelChange",function(s){return M(o),F(n.template.value.contact,s)||(n.template.value.contact=s),T(s)}),C("selectItem",function(s){return M(o),T(n.selectContact(s))})("focus",function(s){return M(o),T(n.cFocus$.next(s.target.value))})("click",function(s){return M(o),T(n.cClick$.next(s.target.value))}),u()(),c(81,"div",32)(82,"label",35),f(83,"Email Address for Testing"),u(),c(84,"input",36),k("ngModelChange",function(s){return M(o),F(n.template.value.testEmailAddress,s)||(n.template.value.testEmailAddress=s),T(s)}),u(),c(85,"div",37),f(86,"You can enter multiple email addresses separated by comma or semicolon."),u()()()(),c(87,"div",17)(88,"h5",18),f(89,"Attachments"),u(),c(90,"div",19)(91,"div",32)(92,"input",38,1),k("ngModelChange",function(s){return M(o),F(n.attachment,s)||(n.attachment=s),T(s)}),C("selectItem",function(s){return M(o),T(n.selectMedia(s))})("focus",function(s){return M(o),T(n.focus$.next(s.target.value))})("click",function(s){return M(o),T(n.click$.next(s.target.value))}),u(),ee(94,JO,1,1,null,null,HO,!0),u()()()()()()}i&2&&(h(5),A("disabled",n.saving),h(),I(n.saving?-1:6),h(),I(n.saving?7:-1),h(2),A("disabled",n.testing),h(),I(n.testing?-1:10),h(),I(n.testing?11:-1),h(9),A("modules",n.modules)("styles",pr(40,zO)),R("ngModel",n.template.value.content),h(7),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.subject),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.from.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.from.address),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.replyTo.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.template.value.replyTo.address),h(30),R("ngModel",n.template.value.contact),A("ngbTypeahead",n.searchContact)("inputFormatter",n.formatContact)("resultFormatter",n.formatContact)("selectOnExact",!0)("editable",!1),h(5),R("ngModel",n.template.value.testEmailAddress),h(8),R("ngModel",n.attachment),A("ngbTypeahead",n.searchMedia)("inputFormatter",n.formatMedia)("resultFormatter",n.formatMedia)("selectOnExact",!0)("editable",!1),h(2),te(n.template.value.attachments))},dependencies:[dy,be,it,Pe,Ne,Cc,ry],styles:["quill-editor[_ngcontent-%COMP%]{display:block}"]})};var Gp=(t,e)=>e.id;function XO(t,e){if(t&1&&(c(0,"h5"),f(1),u()),t&2){let i=y();h(),B("Contact Details: ",i.contact.value.name||"No Name Given","")}}function eN(t,e){t&1&&(c(0,"h5"),f(1,"New Contact"),u())}function tN(t,e){if(t&1){let i=U();c(0,"button",32),C("click",function(){M(i);let o=y();return T(o.browse())}),v(1,"i",33),f(2," Browse for Contact Information"),u()}}function nN(t,e){if(t&1&&(c(0,"span",14),v(1,"img",34),u(),c(2,"a",18),v(3,"i",19),u()),t&2){let i=y();h(),A("src",i.contact.value.avatar,Bn),h(),A("href",i.contact.value.avatar,Bn)}}function iN(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",35)(2,"input",36),k("ngModelChange",function(o){let r=M(i).$index,s=y();return F(s.contact.value.emailAddresses[r],o)||(s.contact.value.emailAddresses[r]=o),T(o)}),u()(),c(3,"td",23)(4,"i",37),C("click",function(){let o=M(i).$index,r=y();return T(r.deleteEmail(o))}),u()()()}if(t&2){let i=e.$index,n=y();h(2),ni("name","email",i,""),ni("id","email",i,""),R("ngModel",n.contact.value.emailAddresses[i])}}function oN(t,e){if(t&1){let i=U();c(0,"tr")(1,"td",35)(2,"input",38),k("ngModelChange",function(o){let r=M(i).$index,s=y();return F(s.contact.value.phoneNumbers[r],o)||(s.contact.value.phoneNumbers[r]=o),T(o)}),u()(),c(3,"td",23)(4,"i",37),C("click",function(){let o=M(i).$index,r=y();return T(r.deletePhone(o))}),u()()()}if(t&2){let i=e.$index,n=y();h(2),ni("name","phone",i,""),ni("id","phone",i,""),R("ngModel",n.contact.value.phoneNumbers[i])}}function rN(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),J(i.name)}}function sN(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),J(i.name)}}function aN(t,e){if(t&1&&(c(0,"option",29),f(1),u()),t&2){let i=e.$implicit;A("value",i.name),h(),Tt("",i.name," (",i.native,")")}}function lN(t,e){if(t&1){let i=U();c(0,"div",13)(1,"span",14),f(2,"Google Maps Link"),u(),c(3,"input",39),k("ngModelChange",function(o){M(i);let r=y();return F(r.contact.value.googleValues.googleMapsUri,o)||(r.contact.value.googleValues.googleMapsUri=o),T(o)}),u(),c(4,"a",18),v(5,"i",19),u()()}if(t&2){let i=y();h(),Ce("width",i.labelWidth,"px"),h(2),R("ngModel",i.contact.value.googleValues.googleMapsUri),A("disabled",!0),h(),A("href",i.contact.value.googleValues.googleMapsUri,Bn)}}var qc=class t{constructor(e,i,n,o,r){this.nS=e;this.dbS=i;this.crmS=n;this.uS=o;this.gS=r}ngOnInit(){this.prepare()}ngOnDestroy(){this.crmS.currentContact=""}prepare=()=>E(this,null,function*(){yield this.crmS.populateContacts(),this.crmS.currentContact!==""&&this.crmS.contacts.has(this.crmS.currentContact)&&(this.contact=Y({},this.crmS.contacts.get(this.crmS.currentContact))),this.contact.value.country&&(yield this.populateStates()),this.contact.value.state&&(yield this.populateCities())});contact={id:"",type:"contact",value:{name:"",emailAddresses:[],phoneNumbers:[],status:"Ready"}};labelWidth=200;addEmail=()=>{this.contact.value.emailAddresses.push("")};deleteEmail=e=>E(this,null,function*(){(yield this.uS.confirm("Are you sure?","Delete Email Address"))&&this.contact.value.emailAddresses.splice(e,1)});cities=new Map;states=new Map;populateStates=()=>E(this,null,function*(){this.states=yield this.gS.getStates(this.contact.value.country)});populateCities=()=>E(this,null,function*(){this.cities=yield this.gS.getCities(this.contact.value.country,this.contact.value.state)});addPhone=()=>{this.contact.value.phoneNumbers.push("")};deletePhone=e=>E(this,null,function*(){(yield this.uS.confirm("Are you sure?","Delete Phone Number"))&&this.contact.value.phoneNumbers.splice(e,1)});saving=!1;save=()=>E(this,null,function*(){if(this.saving=!0,this.contact.id)yield this.dbS.update(this.contact);else{let e=yield this.dbS.insert(this.contact);e.id&&(this.contact.id=e.id)}yield this.crmS.populateContacts(),this.saving=!1});delete=()=>E(this,null,function*(){try{(yield this.uS.confirm("Are you sure?","Delete Contact"))&&this.contact.id&&(yield this.dbS.delete({id:this.contact.id}).catch(console.error))}catch(e){console.error(e)}finally{yield this.crmS.populateContacts(),this.nS.sCP("crm-contact-list")}});isReady=()=>(this.contact.value.status||"").substring(0,5).toLowerCase()==="ready";canBrowse=()=>this.isReady()&&!!this.contact.value.website&&!!this.contact.id&&!this.initiatingBrowse;initiatingBrowse=!1;browse=()=>E(this,null,function*(){this.initiatingBrowse=!0,yield this.dbS.insertTask({type:"browseContact",data:this.contact.id}),yield this.prepare(),this.initiatingBrowse=!1});static \u0275fac=function(i){return new(i||t)(w(we),w(Ye),w(je),w(un),w(xt))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-contact"]],standalone:!0,features:[j],decls:95,vars:34,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],[1,"ms-auto"],["type","button",1,"btn","btn-sm","btn-outline-danger","ms-3","text-danger",3,"click"],[1,"fas","fa-trash","me-2"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-3",3,"click","disabled"],[1,"fas","fa-floppy-disk","me-2"],["type","button",1,"btn","btn-sm","btn-outline-success","ms-3"],[1,"row","mt-0"],[1,"row"],[1,"col"],[1,"card","mb-3"],[1,"input-group","input-group-sm","mb-1"],[1,"input-group-text"],["type","text","name","name","id","name",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","type","id","type",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","website","id","website",1,"form-control",3,"ngModelChange","ngModel"],["target","_blank",1,"btn","btn-outline-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square"],["type","text","name","avatar","id","avatar",1,"form-control",3,"ngModelChange","ngModel"],[1,"form-control","text-end"],[1,"table","table-sm","table-hover","text-start"],[1,"text-center"],[1,"fas","fa-ellipsis-vertical"],["type","button",1,"btn","btn-sm","btn-outline-success",3,"click"],[1,"fas","fa-plus","me-2"],["type","text","name","address","id","address",1,"form-control",3,"ngModelChange","ngModel"],["id","cCity","name","cCity",1,"form-select",3,"ngModelChange","ngModel"],[3,"value"],["id","cState","name","cState",1,"form-select",3,"ngModelChange","change","ngModel"],["id","cCountry","name","cCountry",1,"form-select",3,"ngModelChange","change","ngModel"],["type","button",1,"btn","btn-sm","btn-outline-success","ms-3",3,"click"],[1,"fas","fa-repeat","me-2"],["alt","Avatar",1,"rounded-circle",2,"height","32px",3,"src"],[1,"p-0"],["type","email",1,"form-control","form-control-sm","m-0",3,"ngModelChange","name","id","ngModel"],[1,"fas","fa-trash","text-danger","ptr",3,"click"],["type","tel",1,"form-control","form-control-sm","m-0",3,"ngModelChange","name","id","ngModel"],["type","text","name","gmLink","id","gmLink",1,"form-control",3,"ngModelChange","ngModel","disabled"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),S(3,XO,2,1,"h5")(4,eN,2,0,"h5"),c(5,"span",3),f(6,"\xA0"),u(),c(7,"button",4),C("click",function(){return n.delete()}),v(8,"i",5),f(9," Delete"),u(),c(10,"button",6),C("click",function(){return n.save()}),v(11,"i",7),f(12," Save"),u(),S(13,tN,3,0,"button",8),u()(),c(14,"div",9),v(15,"hr"),u(),c(16,"div",10)(17,"div",11)(18,"div",12)(19,"div",13)(20,"span",14),f(21,"Name"),u(),c(22,"input",15),k("ngModelChange",function(r){return F(n.contact.value.name,r)||(n.contact.value.name=r),r}),u()(),c(23,"div",13)(24,"span",14),f(25,"Type"),u(),c(26,"input",16),k("ngModelChange",function(r){return F(n.contact.value.type,r)||(n.contact.value.type=r),r}),u()(),c(27,"div",13)(28,"span",14),f(29,"Website"),u(),c(30,"input",17),k("ngModelChange",function(r){return F(n.contact.value.website,r)||(n.contact.value.website=r),r}),u(),c(31,"a",18),v(32,"i",19),u()(),c(33,"div",13)(34,"span",14),f(35,"Avatar Url"),u(),c(36,"input",20),k("ngModelChange",function(r){return F(n.contact.value.avatar,r)||(n.contact.value.avatar=r),r}),u(),S(37,nN,4,2),u(),c(38,"div",13)(39,"span",14),f(40,"Email Addresses"),u(),c(41,"span",21)(42,"table",22)(43,"thead")(44,"tr")(45,"th"),f(46,"Address"),u(),c(47,"th",23),v(48,"i",24),u()()(),c(49,"tbody"),ee(50,iN,5,5,"tr",null,Yt),u()(),c(52,"button",25),C("click",function(){return n.addEmail()}),v(53,"i",26),f(54," Add New "),u()()(),c(55,"div",13)(56,"span",14),f(57,"Phone Numbers"),u(),c(58,"span",21)(59,"table",22)(60,"thead")(61,"tr")(62,"th"),f(63,"Number"),u(),c(64,"th",23),v(65,"i",24),u()()(),c(66,"tbody"),ee(67,oN,5,5,"tr",null,Yt),u()(),c(69,"button",25),C("click",function(){return n.addPhone()}),v(70,"i",26),f(71," Add New "),u()()(),c(72,"div",13)(73,"span",14),f(74,"Address"),u(),c(75,"input",27),k("ngModelChange",function(r){return F(n.contact.value.address,r)||(n.contact.value.address=r),r}),u()(),c(76,"div",13)(77,"span",14),f(78,"City"),u(),c(79,"select",28),k("ngModelChange",function(r){return F(n.contact.value.city,r)||(n.contact.value.city=r),r}),ee(80,rN,2,2,"option",29,Gp),u()(),c(82,"div",13)(83,"span",14),f(84,"State"),u(),c(85,"select",30),k("ngModelChange",function(r){return F(n.contact.value.state,r)||(n.contact.value.state=r),r}),C("change",function(){return n.populateCities()}),ee(86,sN,2,2,"option",29,Gp),u()(),c(88,"div",13)(89,"span",14),f(90,"Country"),u(),c(91,"select",31),k("ngModelChange",function(r){return F(n.contact.value.country,r)||(n.contact.value.country=r),r}),C("change",function(){return n.populateStates()}),ee(92,aN,2,3,"option",29,Gp),u()(),S(94,lN,6,5,"div",13),u()()()()),i&2&&(h(3),I(n.contact.value.name?3:4),h(7),A("disabled",n.saving),h(3),I(n.canBrowse()?13:-1),h(7),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.name),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.type),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.website),h(),A("href",n.contact.value.website,Bn),h(3),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.avatar),h(),I(n.contact.value.avatar?37:-1),h(2),Ce("width",n.labelWidth,"px"),h(11),te(n.contact.value.emailAddresses),h(6),Ce("width",n.labelWidth,"px"),h(11),te(n.contact.value.phoneNumbers),h(6),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.address),h(2),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.city),h(),te(n.cities.values()),h(3),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.state),h(),te(n.states.values()),h(3),Ce("width",n.labelWidth,"px"),h(2),R("ngModel",n.contact.value.country),h(),te(n.gS.countries.values()),h(2),I(n.contact.value.googleValues?94:-1))},dependencies:[be,nn,on,it,It,Pe,Ne,Cc]})};function cN(t,e){if(t&1&&v(0,"div",11),t&2){let i=y();A("options",i.chartOption)}}var Kc=class t{constructor(e,i,n){this.crmS=e;this.gS=i;this.dbS=n}chartOption={legend:{},tooltip:{},xAxis:{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{rotate:45}},yAxis:{}};isReady=!1;chartType="line";campaign={id:"",type:"campaign",value:{}};ngOnInit(){return E(this,null,function*(){yield this.crmS.populateCampaigns(),this.crmS.populateEmailTemplates(),this.gS.populateCountries(),this.crmS.currentCampaign!==""&&this.crmS.campaigns.has(this.crmS.currentCampaign)&&(this.campaign=Y({},this.crmS.campaigns.get(this.crmS.currentCampaign)),this.campaign.value.country===0&&(this.campaign.value.country="0")),this.prepareData()})}ngOnDestroy(){this.crmS.currentCampaign=""}prepareData=()=>E(this,null,function*(){this.isReady=!1;let e=yield this.dbS.campaignMails(this.campaign),i=new Set,n=new Set,o={};for(let s of e)s.status="",s.value.isAccepted===!0&&(s.status="accepted",s.when=s.value.acceptedWhen),s.value.isDelivered===!0&&(s.status="delivered",s.when=s.value.deliveredWhen),s.value.isOpened===!0&&(s.status="opened",s.when=s.value.openedWhen),s.value.isClicked===!0&&(s.status="clicked",s.when=s.value.clickedWhen),s.value.isUnsubscribed===!0&&(s.status="unsubscribed",s.when=s.value.unsubscribedWhen),s.value.isComplained===!0&&(s.status="complained",s.when=s.value.complainedWhen),s.value.isFailed===!0&&(s.status="failed",s.when=s.value.failedWhen),s.status===""&&(s.status=s.value.status,s.when=s.value.when),s.when=s.when.substring(0,10),i.add(s.status),n.add(s.when),o[s.when]??={},o[s.when][s.status]??=0,o[s.when][s.status]++;let r=Object.keys(o).sort();this.chartOption.dataset={dimensions:["when",...Array.from(i)],source:[...r.map(s=>Y({when:s},o[s]))]},this.chartOption.series=Array.from(i).map(s=>({type:this.chartType,stack:"x"})),this.isReady=!0});static \u0275fac=function(i){return new(i||t)(w(je),w(xt),w(Ye))};static \u0275cmp=V({type:t,selectors:[["lnf-crm-campaign-stats"]],standalone:!0,features:[nt([Hc()]),j],decls:19,vars:6,consts:[[1,"container-fluid"],[1,"row","mt-4","mb-1"],[1,"col","d-flex","pb-3"],["type","button",1,"btn","btn-sm","btn-outline-primary","ms-auto",3,"click","disabled"],[1,"fas","fa-rotate","me-2"],[1,"ms-2"],["id","cTemplate","name","cTemplate",1,"form-select","form-select-sm",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"row","mt-0"],[1,"row"],[1,"col"],["echarts","",1,"stats-chart",3,"options"]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4),u(),c(5,"button",3),C("click",function(){return n.prepareData()}),v(6,"i",4),f(7," Refresh "),u(),c(8,"form",5)(9,"select",6),k("ngModelChange",function(r){return F(n.chartType,r)||(n.chartType=r),r}),C("change",function(){return n.prepareData()}),c(10,"option",7),f(11,"Bar Chart"),u(),c(12,"option",7),f(13,"Line Chart"),u()()()()(),c(14,"div",8),v(15,"hr"),u(),c(16,"div",9)(17,"div",10),S(18,cN,1,1,"div",11),u()()()),i&2&&(h(4),B("Campaign Stats: ",n.campaign.value.name,""),h(),A("disabled",!n.isReady),h(4),R("ngModel",n.chartType),h(),A("value","bar"),h(2),A("value","line"),h(6),I(n.isReady?18:-1))},dependencies:[be,tn,nn,on,It,Pe,en,Ne,Lt,ly],styles:[".stats-chart[_ngcontent-%COMP%]{height:calc(100vh - 200px)}"]})};var Wp=(t,e)=>e.name;function uN(t,e){if(t&1){let i=U();c(0,"a",11),C("click",function(){M(i);let o=y(2).$implicit,r=y();return T(r.nS.sCP(o.link))}),v(1,"i"),f(2),u()}if(t&2){let i=y(2).$implicit;h(),cr("",i.icon," me-1"),h(),B(" ",i.name," ")}}function dN(t,e){if(t&1){let i=U();c(0,"a",14),C("click",function(){M(i);let o=y().$implicit,r=y(6);return T(r.nS.sCP(o.link))}),v(1,"i"),f(2),u()}if(t&2){let i=y().$implicit;h(),cr("",i.icon," ms-3 me-1"),h(),B(" ",i.name,"")}}function fN(t,e){if(t&1&&S(0,dN,3,4,"a",15),t&2){let i=e.$implicit,n=y(6);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function pN(t,e){if(t&1){let i=U();c(0,"a",14),C("click",function(){M(i);let o=y().$implicit,r=y(4);return T(r.nS.sCP(o.link))}),v(1,"i"),f(2),u(),ee(3,fN,1,1,null,null,Wp)}if(t&2){let i=y().$implicit;h(),cr("",i.icon," me-1"),h(),B(" ",i.name,""),h(),te(i.children)}}function hN(t,e){if(t&1&&S(0,pN,5,4),t&2){let i=e.$implicit,n=y(4);I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function mN(t,e){if(t&1&&(c(0,"a",12),v(1,"i"),f(2),u(),c(3,"div",13),ee(4,hN,1,1,null,null,Wp),u()),t&2){let i=y(2).$implicit;h(),cr("",i.icon," me-1"),h(),B(" ",i.name," "),h(2),te(i.children)}}function gN(t,e){if(t&1&&(c(0,"a",12),v(1,"i"),f(2),u(),c(3,"div",13)(4,"a",15),f(5,"Coming soon, stay tuned"),u()()),t&2){let i=y(2).$implicit;h(),cr("",i.icon," me-1"),h(),B(" ",i.name," ")}}function _N(t,e){if(t&1&&(c(0,"li",9),S(1,uN,3,4,"a",10)(2,mN,6,4)(3,gN,6,4),u()),t&2){let i=y().$implicit;h(),I(!i.children&&!i.isComingSoon?1:-1),h(),I(i.children?2:-1),h(),I(i.isComingSoon?3:-1)}}function vN(t,e){if(t&1&&S(0,_N,4,3,"li",9),t&2){let i=e.$implicit,n=y();I(i.isPro&&n.sS.subscription.licenseValid||!i.isPro?0:-1)}}function yN(t,e){t&1&&v(0,"lnf-optimization-home")}function CN(t,e){t&1&&v(0,"lnf-optimization-image-settings")}function bN(t,e){t&1&&v(0,"lnf-optimization-image-bulk")}function DN(t,e){t&1&&v(0,"lnf-optimization-image-supervised")}function wN(t,e){t&1&&v(0,"lnf-ai-content-settings")}function EN(t,e){t&1&&v(0,"lnf-crm-home")}function SN(t,e){t&1&&v(0,"lnf-crm-settings")}function MN(t,e){t&1&&v(0,"lnf-crm-campaign-list")}function TN(t,e){t&1&&v(0,"lnf-crm-campaign")}function IN(t,e){t&1&&v(0,"lnf-crm-campaign-stats")}function xN(t,e){t&1&&v(0,"lnf-crm-email-template-list")}function ON(t,e){t&1&&v(0,"lnf-crm-email-template")}function NN(t,e){t&1&&v(0,"lnf-crm-explorer")}function AN(t,e){t&1&&v(0,"lnf-crm-explore-list")}function RN(t,e){t&1&&v(0,"lnf-crm-contact")}function kN(t,e){t&1&&v(0,"lnf-crm-contact-list")}function FN(t,e){t&1&&v(0,"lnf-subscription-home")}function PN(t,e){t&1&&v(0,"lnf-maintenance-home")}function LN(t,e){t&1&&v(0,"lnf-maintenance-cron")}function VN(t,e){t&1&&v(0,"lnf-maintenance-mailgun")}function BN(t,e){t&1&&v(0,"lnf-home")}function jN(t,e){t&1&&v(0,"lnf-home")}var Zc=class t{constructor(e,i){this.nS=e;this.sS=i}collapsed=!0;ngOnInit(){this.sS.checkRegistration()}static \u0275fac=function(i){return new(i||t)(w(we),w(Vi))};static \u0275cmp=V({type:t,selectors:[["lnf-root"]],standalone:!0,features:[j],decls:34,vars:4,consts:[[1,"navbar","navbar-expand-md","navbar-light","bg-body-tertiary","border-bottom","shadow","shadow-sm"],[1,"container-fluid"],["src","luckynode-menuicon.svg","alt","LuckyNode Logo","width","24","height","24",1,"me-2","ptr",3,"click"],[1,"navbar-brand","h3","my-auto","ptr",3,"click"],["type","button","aria-controls","navbarContent","aria-label","Toggle navigation",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],["id","navbarContent",1,"navbar-collapse"],[1,"navbar-nav","ms-auto"],[2,"height","calc(100vh - 50px)","overflow","auto"],["ngbDropdown","",1,"nav-item","me-3"],["tabindex","0","role","button",1,"nav-link","fw-medium"],["tabindex","0","role","button",1,"nav-link","fw-medium",3,"click"],["tabindex","0","ngbDropdownToggle","","role","button",1,"nav-link","fw-medium"],["ngbDropdownMenu","","aria-labelledby","navbarDropdown2",1,"dropdown-menu","dropdown-menu-end"],["ngbDropdownItem","",1,"ptr",3,"click"],["ngbDropdownItem","",1,"ptr"]],template:function(i,n){if(i&1&&(c(0,"nav",0)(1,"div",1)(2,"img",2),C("click",function(){return n.nS.sCP("home")}),u(),c(3,"span",3),C("click",function(){return n.nS.sCP("home")}),f(4," LuckyNode "),u(),c(5,"button",4),C("click",function(){return n.collapsed=!n.collapsed}),v(6,"span",5),u(),c(7,"div",6)(8,"ul",7),ee(9,vN,1,1,null,null,Wp),u()()()(),c(11,"div",8),S(12,yN,1,0,"lnf-optimization-home")(13,CN,1,0,"lnf-optimization-image-settings")(14,bN,1,0,"lnf-optimization-image-bulk")(15,DN,1,0,"lnf-optimization-image-supervised")(16,wN,1,0,"lnf-ai-content-settings")(17,EN,1,0,"lnf-crm-home")(18,SN,1,0,"lnf-crm-settings")(19,MN,1,0,"lnf-crm-campaign-list")(20,TN,1,0,"lnf-crm-campaign")(21,IN,1,0,"lnf-crm-campaign-stats")(22,xN,1,0,"lnf-crm-email-template-list")(23,ON,1,0,"lnf-crm-email-template")(24,NN,1,0,"lnf-crm-explorer")(25,AN,1,0,"lnf-crm-explore-list")(26,RN,1,0,"lnf-crm-contact")(27,kN,1,0,"lnf-crm-contact-list")(28,FN,1,0,"lnf-subscription-home")(29,PN,1,0,"lnf-maintenance-home")(30,LN,1,0,"lnf-maintenance-cron")(31,VN,1,0,"lnf-maintenance-mailgun")(32,BN,1,0,"lnf-home")(33,jN,1,0,"lnf-home"),u()),i&2){let o;h(5),Mt("aria-expanded",!n.collapsed),h(2),Qe("collapse",n.collapsed),h(2),te(n.nS.links),h(3),I((o=n.nS.currentPage)==="optimization-home"?12:o==="optimization-image-settings"?13:o==="optimization-image-bulk"?14:o==="optimization-image-supervised"?15:o==="ai-content-settings"?16:o==="crm-home"?17:o==="crm-settings"?18:o==="crm-campaign-list"?19:o==="crm-campaign"?20:o==="crm-campaign-stats"?21:o==="crm-email-template-list"?22:o==="crm-email-template"?23:o==="crm-explorer"?24:o==="crm-explore-list"?25:o==="crm-contact"?26:o==="crm-contact-list"?27:o==="subscription-home"?28:o==="maintenance-home"?29:o==="maintenance-cron"?30:o==="maintenance-mailgun"?31:o==="home"?32:33)}},dependencies:[Rr,iy,gc,ny,Vp,Lp,xc,Ic,kr,Fr,Pr,Oc,Nc,Ac,kc,zc,Kc,$c,Yc,Pc,Bc,jc,qc,Rc,Lc,Vc,Uc],styles:[".navbar[_ngcontent-%COMP%] .megamenu[_ngcontent-%COMP%]{padding:1rem;z-index:99999}@media all and (min-width: 992px){.navbar[_ngcontent-%COMP%] .has-megamenu[_ngcontent-%COMP%]{position:static!important}.navbar[_ngcontent-%COMP%] .megamenu[_ngcontent-%COMP%]{left:0;right:0;width:100%;margin-top:0}}@media (max-width: 991px){.navbar.fixed-top[_ngcontent-%COMP%] .navbar-collapse[_ngcontent-%COMP%], .navbar.sticky-top[_ngcontent-%COMP%] .navbar-collapse[_ngcontent-%COMP%]{overflow-y:auto;max-height:90vh;margin-top:10px}}"]})};X_(Zc,nv).catch(t=>console.error(t)); -
luckynode/trunk/luckynode.php
r3185011 r3186010 3 3 /** 4 4 * @link https://plugin.luckynode.com/ 5 * @version 1.0. 65 * @version 1.0.7 6 6 * @package LuckyNode 7 7 * … … 10 10 * Plugin URI: https://plugin.luckynode.com/ 11 11 * Description: LuckyNode - Optimize Images | CRM | AI (Coming Soon) 12 * Version: 1.0. 612 * Version: 1.0.7 13 13 * Requires at least: 6.4 14 14 * Tested up to: 6.6.2 -
luckynode/trunk/readme.txt
r3185011 r3186010 4 4 Requires at least: 6.6 5 5 Tested up to: 6.6.2 6 Stable tag: 1.0. 66 Stable tag: 1.0.7 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 44 44 == Changelog == 45 45 46 = 1.0.7 - 11.Nov.2024 = 47 * Bug fixes about image optimization 48 49 = 1.0.6 - 10.Nov.2024 = 50 * Image optimization issue is fixed when optimization settings are not yet defined by the user 51 46 52 = 1.0.5 - 10.Nov.2024 = 47 53 * Home screen updates -
luckynode/trunk/src/luckynode-optimization-image.php
r3184204 r3186010 47 47 if ($settings->convertTo === "WebP" || $settings->convertTo === "Avif") { 48 48 $mime = wp_get_image_mime($filePath); 49 $imageCreate = "imagecreatefrom" . str_replace("jpg", "jpg", explode("/", $mime)[1]);49 $imageCreate = "imagecreatefrom" . explode("/", $mime)[1]; 50 50 if (is_callable($imageCreate)) { 51 51 $sourceImage = $imageCreate($filePath); … … 56 56 } 57 57 if ($sourceImage) { 58 if (!imageistruecolor($sourceImage)) imagepalettetotruecolor($sourceImage); 58 59 $newFormat = strtolower($settings->convertTo); 59 60 $newMime = "image/" . $newFormat; … … 185 186 $doc->loadHTML($image); 186 187 $newImage = $doc->getElementsByTagName('img')[0]; 188 if ($newImage->getAttribute("srcset") === "") { 189 return $image; 190 } 191 if ($newImage->getAttribute("title") === "img-2") { 192 error_log(json_encode($newImage->getAttribute("srcset"))); 193 error_log(json_encode($newImage->getAttribute("title"))); 194 error_log(json_encode($newImage->getAttribute("title"))); 195 error_log(json_encode($newImage->getAttribute("title"))); 196 error_log(json_encode($newImage->getAttribute("title"))); 197 error_log(json_encode($newImage->getAttribute("title"))); 198 error_log(json_encode($newImage->getAttribute("title"))); 199 } 187 200 $srcSetArray = explode("w, ", $newImage->getAttribute("srcset")); 188 201 $srcSetArray[sizeof($srcSetArray) - 1] = substr($srcSetArray[sizeof($srcSetArray) - 1], 0, -1); … … 236 249 register_rest_route( 237 250 $this->slug . '/v1', 251 '/optimization/image/upload-dir', 252 array( 253 array( 254 'methods' => WP_REST_Server::READABLE, 255 'callback' => array($this, 'uploadDir'), 256 'permission_callback' => array($conf, 'permission_callback'), 257 ) 258 ) 259 ); 260 register_rest_route( 261 $this->slug . '/v1', 238 262 '/optimization/image/image-sizes', 239 263 array( … … 321 345 $params = json_decode($request->get_body(), false); 322 346 $id = $params->id; 347 $mediumFiles = $this->getMediumFiles($params); 348 349 $guid = ""; 350 351 if (!property_exists($params, "media_details") || !property_exists($params->media_details, "file")) return "success"; 352 323 353 $pathInfo = pathinfo($params->media_details->file); 324 $dir = ABSPATH . "wp-content/uploads/" . $pathInfo["dirname"] . "/"; 325 $fullPath = ABSPATH . "wp-content/uploads/" . $params->media_details->file; 354 $fullPath = $this->uploadDir(true)->basedir . "/" . $mediumFiles->currentFile; 326 355 $result = $this->createConvertedFile($fullPath, $params->source_url); 327 356 $oldUrls = []; … … 331 360 $guid = $result["newUrl"]; 332 361 333 $sizes = $params->media_details->sizes; 334 foreach ($sizes as $key => $value) { 335 $sizeFullPath = $dir . $value->file; 336 $oldUrls[$key] = ["url" => $value->source_url, "file" => $value->file]; 337 if ($key !== "full" && file_exists($sizeFullPath)) { 338 wp_delete_file($sizeFullPath); 362 363 364 $dir = pathinfo($fullPath)["dirname"]; 365 if (property_exists($params, "media_details") && property_exists($params->media_details, "sizes")) { 366 $sizes = $params->media_details->sizes; 367 foreach ($sizes as $key => $value) { 368 $sizeFullPath = $dir . $value->file; 369 $oldUrls[$key] = ["url" => $value->source_url, "file" => $value->file]; 370 if ($key !== "full" && file_exists($sizeFullPath)) { 371 wp_delete_file($sizeFullPath); 372 } 339 373 } 340 374 } … … 346 380 $output["original_image"] = $pathInfo["basename"]; 347 381 $output["luckynode_optimized"] = "luckynode_converted"; 382 $originalFileSize = filesize($this->uploadDir(true)->basedir . "/" . $mediumFiles->currentFile); 383 $convertedFileSize = filesize($newPath); 384 $output["luckynode_stats"] = [ 385 "originalFileSize" => $originalFileSize, 386 "convertedFileSize" => $convertedFileSize, 387 ]; 348 388 wp_update_attachment_metadata($id, $output); 349 389 … … 372 412 } 373 413 414 // public getMediumFiles = async ( medium: { id: number, source_url: string, media_details?: { luckynode_optimized?: string, original_image?: string } } ) => { 415 function getMediumFiles($medium) { 416 $uploadDir = $this->uploadDir(); 417 418 $toReturn = new stdClass(); 419 $toReturn->currentFile = ""; 420 $toReturn->originalFile = ""; 421 422 if (property_exists($medium, "source_url")) $toReturn->currentFile = str_replace($uploadDir->baseurl . "/", "", $medium->source_url); 423 if ($toReturn->currentFile === "" && property_exists($medium, "id")) $toReturn->currentFile = str_replace($uploadDir->baseurl . "/", "", wp_get_attachment_url($medium->id)); 424 if (property_exists($medium, "media_details") && property_exists($medium->media_details, "luckynode_optimized") && property_exists($medium->media_details, "original_image")) { 425 $ta = explode("/", $toReturn->currentFile); 426 array_pop($ta); 427 array_push($ta, $medium->media_details->original_image); 428 $toReturn->originalFile = implode("/", $ta); 429 } 430 return $toReturn; 431 } 432 374 433 function useOriginal(WP_REST_Request $request) { 375 434 … … 380 439 $params = json_decode($request->get_body(), false); 381 440 $id = $params->id; 382 $guid = $this->str_lreplace(pathinfo($params->media_details->file, PATHINFO_BASENAME), $params->media_details->original_image, $params->source_url); 441 $mediumFiles = $this->getMediumFiles($params); 442 $guid = ""; 443 if (property_exists($params, "guid") && property_exists($params->guid, "rendered")) $guid = $params->guid->rendered; 444 if ($guid === "" && property_exists($params, "source_url")) $guid = $this->str_lreplace($mediumFiles->currentFile, $mediumFiles->originalFile, $params->source_url); 445 383 446 $oldUrls = []; 384 $source = $params->media_details->original_image; 385 $pathInfo = pathinfo($params->media_details->file); 386 $dir = ABSPATH . "wp-content/uploads/" . $pathInfo["dirname"] . "/"; 387 388 $fullPath = $dir . $source; 447 $fullPath = $this->uploadDir(true)->basedir . "/" . $mediumFiles->originalFile; 389 448 $exists = file_exists($fullPath); 449 450 451 $dir = pathinfo($fullPath)["dirname"]; 390 452 391 453 if (!$exists) { … … 393 455 } 394 456 395 $sizes = $params->media_details->sizes; 396 foreach ($sizes as $key => $value) { 397 $sizeFullPath = $dir . $value->file; 398 $oldUrls[$key] = ["url" => $value->source_url, "file" => $value->file]; 399 if (file_exists($sizeFullPath)) { 400 wp_delete_file($sizeFullPath); 457 if (property_exists($params, "media_details") && property_exists($params->media_details, "sizes")) { 458 $sizes = $params->media_details->sizes; 459 foreach ($sizes as $key => $value) { 460 $sizeFullPath = $dir . "/" . $value->file; 461 $oldUrls[$key] = ["url" => $value->source_url, "file" => $value->file]; 462 if (file_exists($sizeFullPath)) { 463 wp_delete_file($sizeFullPath); 464 } 401 465 } 402 466 } … … 409 473 unset($output["media_details"]["original_image"]); 410 474 unset($output["media_details"]["luckynode_optimized"]); 475 unset($output["media_details"]["luckynode_stats"]); 411 476 wp_update_attachment_metadata($id, $output); 412 477 foreach ($oldUrls as $key => $oldUrlValue) { … … 458 523 function imageSizes(WP_REST_Request $request) { 459 524 return $this->get_image_sizes(); 525 } 526 527 function uploadDir($isFull = false) { 528 $ud = wp_get_upload_dir(); 529 $toReturn = new stdClass(); 530 $toReturn->baseurl = $ud["baseurl"]; 531 $toReturn->url = $ud["url"]; 532 $toReturn->subdir = $ud["subdir"]; 533 if ($isFull) $toReturn->basedir = $ud["basedir"]; 534 return $toReturn; 460 535 } 461 536 -
luckynode/trunk/src/version.txt
r3185011 r3186010 1 1.0. 61 1.0.7
Note: See TracChangeset
for help on using the changeset viewer.