kc-sdk 6.9.10931-rc → 7.0.195-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/main.js CHANGED
@@ -1,13 +1,14 @@
1
- var Ym=Object.defineProperty,Jm=Object.defineProperties;var Qm=Object.getOwnPropertyDescriptors;var jl=Object.getOwnPropertySymbols;var Xm=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable;var Bl=(e,t,n)=>t in e?Ym(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X=(e,t)=>{for(var n in t||={})Xm.call(t,n)&&Bl(e,n,t[n]);if(jl)for(var n of jl(t))eg.call(t,n)&&Bl(e,n,t[n]);return e},ve=(e,t)=>Jm(e,Qm(t));var Ul=null;var ts=1,ns=Symbol("SIGNAL");function F(e){let t=Ul;return Ul=e,t}var Hl={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 tg(e){if(!(is(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ts)){if(!e.producerMustRecompute(e)&&!rs(e)){e.dirty=!1,e.lastCleanEpoch=ts;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ts}}function $l(e){return e&&(e.nextProducerIndex=0),F(e)}function Wl(e,t){if(F(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(is(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)os(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function rs(e){_r(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(tg(n),r!==n.version))return!0}return!1}function Gl(e){if(_r(e),is(e))for(let t=0;t<e.producerNode.length;t++)os(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function os(e,t){if(ng(e),_r(e),e.liveConsumerNode.length===1)for(let r=0;r<e.producerNode.length;r++)os(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];_r(o),o.producerIndexOfThis[r]=t}}function is(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function _r(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ng(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function rg(){throw new Error}var og=rg;function zl(e){og=e}function M(e){return typeof e=="function"}function Er(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var xr=Er(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
1
+ var Vg=Object.defineProperty,jg=Object.defineProperties;var Bg=Object.getOwnPropertyDescriptors;var mc=Object.getOwnPropertySymbols;var Hg=Object.prototype.hasOwnProperty,Ug=Object.prototype.propertyIsEnumerable;var gc=(e,t,n)=>t in e?Vg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||={})Hg.call(t,n)&&gc(e,n,t[n]);if(mc)for(var n of mc(t))Ug.call(t,n)&&gc(e,n,t[n]);return e},K=(e,t)=>jg(e,Bg(t));var Xn=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{a(n.next(l))}catch(c){o(c)}},s=l=>{try{a(n.throw(l))}catch(c){o(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,s);a((n=n.apply(e,t)).next())});function Ts(e,t){return Object.is(e,t)}var te=null,Ur=!1,Ms=1,be=Symbol("SIGNAL");function R(e){let t=te;return te=e,t}function yc(){return te}var tr={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 Ns(e){if(Ur)throw new Error("");if(te===null)return;te.consumerOnSignalRead(e);let t=te.nextProducerIndex++;if(zr(te),t<te.producerNode.length&&te.producerNode[t]!==e&&er(te)){let n=te.producerNode[t];Wr(n,te.producerIndexOfThis[t])}te.producerNode[t]!==e&&(te.producerNode[t]=e,te.producerIndexOfThis[t]=er(te)?wc(e,te,t):0),te.producerLastReadVersion[t]=e.version}function $g(){Ms++}function As(e){if(!(er(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ms)){if(!e.producerMustRecompute(e)&&!Os(e)){xs(e);return}e.producerRecomputeValue(e),xs(e)}}function vc(e){if(e.liveConsumerNode===void 0)return;let t=Ur;Ur=!0;try{for(let n of e.liveConsumerNode)n.dirty||Gg(n)}finally{Ur=t}}function Dc(){return te?.consumerAllowSignalWrites!==!1}function Gg(e){e.dirty=!0,vc(e),e.consumerMarkedDirty?.(e)}function xs(e){e.dirty=!1,e.lastCleanEpoch=Ms}function Gr(e){return e&&(e.nextProducerIndex=0),R(e)}function ks(e,t){if(R(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(er(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Wr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Os(e){zr(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(As(n),r!==n.version))return!0}return!1}function Rs(e){if(zr(e),er(e))for(let t=0;t<e.producerNode.length;t++)Wr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function wc(e,t,n){if(Ec(e),e.liveConsumerNode.length===0&&Ic(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=wc(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Wr(e,t){if(Ec(e),e.liveConsumerNode.length===1&&Ic(e))for(let r=0;r<e.producerNode.length;r++)Wr(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];zr(o),o.producerIndexOfThis[r]=t}}function er(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function zr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ec(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ic(e){return e.producerNode!==void 0}function _c(e){let t=Object.create(Wg);t.computation=e;let n=()=>{if(As(t),Ns(t),t.value===$r)throw t.error;return t.value};return n[be]=t,n}var bs=Symbol("UNSET"),Ss=Symbol("COMPUTING"),$r=Symbol("ERRORED"),Wg=K(V({},tr),{value:bs,dirty:!0,error:null,equal:Ts,producerMustRecompute(e){return e.value===bs||e.value===Ss},producerRecomputeValue(e){if(e.value===Ss)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Ss;let n=Gr(e),r;try{r=e.computation()}catch(o){r=$r,e.error=o}finally{ks(e,n)}if(t!==bs&&t!==$r&&r!==$r&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function zg(){throw new Error}var Cc=zg;function bc(){Cc()}function Sc(e){Cc=e}var qg=null;function xc(e){let t=Object.create(Mc);t.value=e;let n=()=>(Ns(t),t.value);return n[be]=t,n}function Fs(e,t){Dc()||bc(),e.equal(e.value,t)||(e.value=t,Zg(e))}function Tc(e,t){Dc()||bc(),Fs(e,t(e.value))}var Mc=K(V({},tr),{equal:Ts,value:void 0});function Zg(e){e.version++,$g(),vc(e),qg?.()}function M(e){return typeof e=="function"}function qr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Zr=qr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
2
  ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=n});function $n(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ue=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof xr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ql(i)}catch(s){t=t??[],s instanceof xr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new xr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ql(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&$n(n,t)}remove(t){let{_finalizers:n}=this;n&&$n(n,t),t instanceof e&&t._removeParent(this)}};ue.EMPTY=(()=>{let e=new ue;return e.closed=!0,e})();var ss=ue.EMPTY;function Sr(e){return e instanceof ue||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function ql(e){M(e)?e():e.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Yt={setTimeout(e,t,...n){let{delegate:r}=Yt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Yt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mr(e){Yt.setTimeout(()=>{let{onUnhandledError:t}=Pe;if(t)t(e);else throw e})}function as(){}var Zl=ls("C",void 0,void 0);function Kl(e){return ls("E",void 0,e)}function Yl(e){return ls("N",e,void 0)}function ls(e,t,n){return{kind:e,value:t,error:n}}var Mt=null;function Jt(e){if(Pe.useDeprecatedSynchronousErrorHandling){let t=!Mt;if(t&&(Mt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Mt;if(Mt=null,n)throw r}}else e()}function Jl(e){Pe.useDeprecatedSynchronousErrorHandling&&Mt&&(Mt.errorThrown=!0,Mt.error=e)}var Tt=class extends ue{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Sr(t)&&t.add(this)):this.destination=ag}static create(t,n,r){return new Qt(t,n,r)}next(t){this.isStopped?us(Yl(t),this):this._next(t)}error(t){this.isStopped?us(Kl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?us(Zl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},ig=Function.prototype.bind;function cs(e,t){return ig.call(e,t)}var ds=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Tr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Tr(r)}else Tr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Tr(n)}}},Qt=class extends Tt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Pe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&cs(t.next,i),error:t.error&&cs(t.error,i),complete:t.complete&&cs(t.complete,i)}):o=t}this.destination=new ds(o)}};function Tr(e){Pe.useDeprecatedSynchronousErrorHandling?Jl(e):Mr(e)}function sg(e){throw e}function us(e,t){let{onStoppedNotification:n}=Pe;n&&Yt.setTimeout(()=>n(e,t))}var ag={closed:!0,next:as,error:sg,complete:as};var Xt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ql(e){return e}function Xl(e){return e.length===0?Ql:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var $=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=cg(n)?n:new Qt(n,r,o);return Jt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ec(r),new r((o,i)=>{let s=new Qt({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Xt](){return this}pipe(...n){return Xl(n)(this)}toPromise(n){return n=ec(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function ec(e){var t;return(t=e??Pe.Promise)!==null&&t!==void 0?t:Promise}function lg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function cg(e){return e&&e instanceof Tt||lg(e)&&Sr(e)}function ug(e){return M(e?.lift)}function de(e){return t=>{if(ug(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function fe(e,t,n,r,o){return new fs(e,t,n,r,o)}var fs=class extends Tt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var tc=Er(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ut=(()=>{class e extends ${constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ar(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new tc}next(n){Jt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Jt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Jt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ss:(this.currentObservers=null,i.push(n),new ue(()=>{this.currentObservers=null,$n(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new $;return n.source=this,n}}return e.create=(t,n)=>new Ar(t,n),e})(),Ar=class extends ut{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ss}};var Wn=class extends ut{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function nc(e){return e&&M(e.schedule)}function rc(e){return e[e.length-1]}function oc(e){return M(rc(e))?e.pop():void 0}function ic(e){return nc(rc(e))?e.pop():void 0}function ac(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function sc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function At(e){return this instanceof At?(this.v=e,this):new At(e)}function lc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(m){return new Promise(function(y,w){i.push([f,m,y,w])>1||l(f,m)})},h&&(o[f]=h(o[f])))}function l(f,h){try{c(r[f](h))}catch(m){p(i[0][3],m)}}function c(f){f.value instanceof At?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,h){f(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function cc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof sc=="function"?sc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Nr=e=>e&&typeof e.length=="number"&&typeof e!="function";function kr(e){return M(e?.then)}function Or(e){return M(e[Xt])}function Fr(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Pr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function dg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Rr=dg();function Lr(e){return M(e?.[Rr])}function Vr(e){return lc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield At(n.read());if(o)return yield At(void 0);yield yield At(r)}}finally{n.releaseLock()}})}function jr(e){return M(e?.getReader)}function pe(e){if(e instanceof $)return e;if(e!=null){if(Or(e))return fg(e);if(Nr(e))return pg(e);if(kr(e))return hg(e);if(Fr(e))return uc(e);if(Lr(e))return mg(e);if(jr(e))return gg(e)}throw Pr(e)}function fg(e){return new $(t=>{let n=e[Xt]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pg(e){return new $(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function hg(e){return new $(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mr)})}function mg(e){return new $(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function uc(e){return new $(t=>{yg(e,t).catch(n=>t.error(n))})}function gg(e){return uc(Vr(e))}function yg(e,t){var n,r,o,i;return ac(this,void 0,void 0,function*(){try{for(n=cc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Se(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Br(e,t=0){return de((n,r)=>{n.subscribe(fe(r,o=>Se(r,e,()=>r.next(o),t),()=>Se(r,e,()=>r.complete(),t),o=>Se(r,e,()=>r.error(o),t)))})}function Ur(e,t=0){return de((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function dc(e,t){return pe(e).pipe(Ur(t),Br(t))}function fc(e,t){return pe(e).pipe(Ur(t),Br(t))}function pc(e,t){return new $(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function hc(e,t){return new $(n=>{let r;return Se(n,t,()=>{r=e[Rr](),Se(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function Hr(e,t){if(!e)throw new Error("Iterable cannot be null");return new $(n=>{Se(n,t,()=>{let r=e[Symbol.asyncIterator]();Se(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function mc(e,t){return Hr(Vr(e),t)}function gc(e,t){if(e!=null){if(Or(e))return dc(e,t);if(Nr(e))return pc(e,t);if(kr(e))return fc(e,t);if(Fr(e))return Hr(e,t);if(Lr(e))return hc(e,t);if(jr(e))return mc(e,t)}throw Pr(e)}function Nt(e,t){return t?gc(e,t):pe(e)}function $r(...e){let t=ic(e);return Nt(e,t)}function he(e,t){return de((n,r)=>{let o=0;n.subscribe(fe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:vg}=Array;function Dg(e,t){return vg(t)?e(...t):e(t)}function yc(e){return he(t=>Dg(e,t))}var{isArray:wg}=Array,{getPrototypeOf:Ig,prototype:Cg,keys:bg}=Object;function vc(e){if(e.length===1){let t=e[0];if(wg(t))return{args:t,keys:null};if(_g(t)){let n=bg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function _g(e){return e&&typeof e=="object"&&Ig(e)===Cg}function Dc(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wc(e,t,n,r,o,i,s,a){let l=[],c=0,u=0,d=!1,p=()=>{d&&!l.length&&!c&&t.complete()},f=m=>c<r?h(m):l.push(m),h=m=>{i&&t.next(m),c++;let y=!1;pe(n(m,u++)).subscribe(fe(t,w=>{o?.(w),i?f(w):t.next(w)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<r;){let w=l.shift();s?Se(t,s,()=>h(w)):h(w)}p()}catch(w){t.error(w)}}))};return e.subscribe(fe(t,f,()=>{d=!0,p()})),()=>{a?.()}}function Wr(e,t,n=1/0){return M(t)?Wr((r,o)=>he((i,s)=>t(r,i,o,s))(pe(e(r,o))),n):(typeof t=="number"&&(n=t),de((r,o)=>wc(r,o,e,n)))}function ps(...e){let t=oc(e),{args:n,keys:r}=vc(e),o=new $(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;pe(n[u]).subscribe(fe(i,p=>{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?Dc(r,a):a),i.complete())}))}});return t?o.pipe(yc(t)):o}function hs(e,t){return de((n,r)=>{let o=0;n.subscribe(fe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function ms(e,t){return M(t)?Wr(e,t,1):Wr(e,1)}function Gr(e){return de((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function gs(e,t){return de((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(fe(r,l=>{o?.unsubscribe();let c=0,u=i++;pe(e(l,u)).subscribe(o=fe(r,d=>r.next(t?t(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var xg="https://g.co/ng/security#xss",E=class extends Error{constructor(t,n){super(bo(t,n)),this.code=t}};function bo(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function nr(e){return{toString:e}.toString()}var zr="__parameters__";function Sg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function ou(e,t,n){return nr(()=>{let r=Sg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(l,c,u){let d=l.hasOwnProperty(zr)?l[zr]:Object.defineProperty(l,zr,{value:[]})[zr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var De=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("Could not find renamed property on target object.")}function Mg(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
4
- `);return n===-1?t:t.substring(0,n)}function Ic(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Tg=L({__forward_ref__:L});function je(e){return e.__forward_ref__=je,e.toString=function(){return ie(this())},e}function re(e){return iu(e)?e():e}function iu(e){return typeof e=="function"&&e.hasOwnProperty(Tg)&&e.__forward_ref__===je}function k(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function we(e){return{providers:e.providers||[],imports:e.imports||[]}}function Da(e){return Cc(e,su)||Cc(e,au)}function Cc(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ag(e){let t=e&&(e[su]||e[au]);return t||null}function bc(e){return e&&(e.hasOwnProperty(_c)||e.hasOwnProperty(Ng))?e[_c]:null}var su=L({\u0275prov:L}),_c=L({\u0275inj:L}),au=L({ngInjectableDef:L}),Ng=L({ngInjectorDef:L}),b=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=k({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function lu(e){return e&&!!e.\u0275providers}var kg=L({\u0275cmp:L}),Og=L({\u0275dir:L}),Fg=L({\u0275pipe:L}),Pg=L({\u0275mod:L}),to=L({\u0275fac:L}),Gn=L({__NG_ELEMENT_ID__:L}),Ec=L({__NG_ENV_ID__:L});function wa(e){return typeof e=="string"?e:e==null?"":String(e)}function Rg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():wa(e)}function Lg(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new E(-200,e)}function Ia(e,t){throw new E(-201,!1)}var T=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(T||{}),Ns;function cu(){return Ns}function Me(e){let t=Ns;return Ns=e,t}function uu(e,t,n){let r=Da(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;Ia(e,"Injector")}var Vg={},qn=Vg,ks="__NG_DI_FLAG__",no="ngTempTokenPath",jg="ngTokenPath",Bg=/\n/gm,Ug="\u0275",xc="__source",rn;function Hg(){return rn}function dt(e){let t=rn;return rn=e,t}function $g(e,t=T.Default){if(rn===void 0)throw new E(-203,!1);return rn===null?uu(e,void 0,t):rn.get(e,t&T.Optional?null:void 0,t)}function _(e,t=T.Default){return(cu()||$g)(re(e),t)}function R(e,t=T.Default){return _(e,_o(t))}function _o(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Os(e){let t=[];for(let n=0;n<e.length;n++){let r=re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new E(900,!1);let o,i=T.Default;for(let s=0;s<r.length;s++){let a=r[s],l=Wg(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push(_(o,i))}else t.push(_(r))}return t}function du(e,t){return e[ks]=t,e.prototype[ks]=t,e}function Wg(e){return e[ks]}function Gg(e,t,n,r){let o=e[no];throw t[xc]&&o.unshift(t[xc]),e.message=zg(`
5
- `+e.message,o,n,r),e[jg]=o,e[no]=null,e}function zg(e,t,n,r=null){e=e&&e.charAt(0)===`
6
- `&&e.charAt(1)==Ug?e.slice(2):e;let o=ie(t);if(Array.isArray(t))o=t.map(ie).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ie(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Bg,`
7
- `)}`}var fu=du(ou("Optional"),8);var qg=du(ou("SkipSelf"),4);function sn(e,t){let n=e.hasOwnProperty(to);return n?e[to]:null}function Ca(e,t){e.forEach(n=>Array.isArray(n)?Ca(n,t):t(n))}function pu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ro(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Kg(e,t,n){let r=rr(e,t);return r>=0?e[r|1]=n:(r=~r,Zg(e,r,t,n)),r}function ys(e,t){let n=rr(e,t);if(n>=0)return e[n|1]}function rr(e,t){return Yg(e,t,1)}function Yg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var an={},Te=[],Zn=new b(""),hu=new b("",-1),mu=new b(""),oo=class{get(t,n=qn){if(n===qn){let r=new Error(`NullInjectorError: No provider for ${ie(t)}!`);throw r.name="NullInjectorError",r}return n}},gu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(gu||{}),We=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(We||{}),te=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(te||{});function Jg(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function Fs(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Xg(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Qg(e){return e===3||e===4||e===6}function Xg(e){return e.charCodeAt(0)===64}function Kn(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Sc(e,n,o,null,t[++r]):Sc(e,n,o,null,null))}}return e}function Sc(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var yu="ng-template";function ey(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Jg(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(ba(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function ba(e){return e.type===4&&e.value!==yu}function ty(e,t,n){let r=e.type===4&&!n?yu:e.value;return t===r}function ny(e,t,n){let r=4,o=e.attrs,i=o!==null?iy(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Re(r)&&!Re(l))return!1;if(s&&Re(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!ty(e,l,n)||l===""&&t.length===1){if(Re(r))return!1;s=!0}}else if(r&8){if(o===null||!ey(e,o,l,n)){if(Re(r))return!1;s=!0}}else{let c=t[++a],u=ry(l,o,ba(e),n);if(u===-1){if(Re(r))return!1;s=!0;continue}if(c!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&c!==d){if(Re(r))return!1;s=!0}}}}return Re(r)||s}function Re(e){return(e&1)===0}function ry(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return sy(t,e)}function oy(e,t,n=!1){for(let r=0;r<t.length;r++)if(ny(e,t[r],n))return!0;return!1}function iy(e){for(let t=0;t<e.length;t++){let n=e[t];if(Qg(n))return t}return e.length}function sy(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Mc(e,t){return e?":not("+t.trim()+")":t}function ay(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Re(s)&&(t+=Mc(i,o),o=""),r=s,i=i||!Re(r);n++}return o!==""&&(t+=Mc(i,o)),t}function ly(e){return e.map(ay).join(",")}function cy(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Re(o))break;o=i}r++}return{attrs:t,classes:n}}function Eo(e){return nr(()=>{let t=wu(e),n=ve(X({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||We.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""});Iu(n);let r=e.dependencies;return n.directiveDefs=Ac(r,!1),n.pipeDefs=Ac(r,!0),n.id=hy(n),n})}function uy(e){return ln(e)||vu(e)}function dy(e){return e!==null}function Ie(e){return nr(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Tc(e,t){if(e==null)return an;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=te.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==te.None?[r,a]:r,t[i]=s):n[i]=r}return n}function z(e){return nr(()=>{let t=wu(e);return Iu(t),t})}function ln(e){return e[kg]||null}function vu(e){return e[Og]||null}function Du(e){return e[Fg]||null}function fy(e){let t=ln(e)||vu(e)||Du(e);return t!==null?t.standalone:!1}function py(e,t){let n=e[Pg]||null;if(!n&&t===!0)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function wu(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||an,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Tc(e.inputs,t),outputs:Tc(e.outputs),debugInfo:null}}function Iu(e){e.features?.forEach(t=>t(e))}function Ac(e,t){if(!e)return null;let n=t?Du:uy;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(dy)}function hy(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function _a(e){return{\u0275providers:e}}function my(...e){return{\u0275providers:gy(!0,e),\u0275fromNgModule:!0}}function gy(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ca(t,s=>{let a=s;Ps(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Cu(o,i),n}function Cu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ea(o,i=>{t(i,r)})}}function Ps(e,t,n,r){if(e=re(e),!e)return!1;let o=null,i=bc(e),s=!i&&ln(e);if(!i&&!s){let l=e.ngModule;if(i=bc(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Ps(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Ca(i.imports,u=>{Ps(u,t,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&Cu(c,t)}if(!a){let c=sn(o)||(()=>new o);t({provide:o,useFactory:c,deps:Te},o),t({provide:mu,useValue:o,multi:!0},o),t({provide:Zn,useValue:()=>_(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;Ea(l,u=>{t(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Ea(e,t){for(let n of e)lu(n)&&(n=n.\u0275providers),Array.isArray(n)?Ea(n,t):t(n)}var yy=L({provide:String,useValue:L});function bu(e){return e!==null&&typeof e=="object"&&yy in e}function vy(e){return!!(e&&e.useExisting)}function Dy(e){return!!(e&&e.useFactory)}function cn(e){return typeof e=="function"}function wy(e){return!!e.useClass}var xo=new b(""),Yr={},Iy={},vs;function _u(){return vs===void 0&&(vs=new oo),vs}var Je=class{},io=class extends Je{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ls(t,s=>this.processProvider(s)),this.records.set(hu,en(void 0,this)),o.has("environment")&&this.records.set(Je,en(void 0,this));let i=this.records.get(xo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(mu,Te,T.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=F(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),F(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=dt(this),r=Me(void 0),o;try{return t()}finally{dt(n),Me(r)}}get(t,n=qn,r=T.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Ec))return t[Ec](this);r=_o(r);let o,i=dt(this),s=Me(void 0);try{if(!(r&T.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=xy(t)&&Da(t);c&&this.injectableDefInScope(c)?l=en(Rs(t),Yr):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&T.Self?_u():this.parent;return n=r&T.Optional&&n===qn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[no]=a[no]||[]).unshift(ie(t)),i)throw a;return Gg(a,t,"R3InjectorError",this.source)}else throw a}finally{Me(s),dt(i)}}resolveInjectorInitializers(){let t=F(null),n=dt(this),r=Me(void 0),o;try{let i=this.get(Zn,Te,T.Self);for(let s of i)s()}finally{dt(n),Me(r),F(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(t){t=re(t);let n=cn(t)?t:re(t&&t.provide),r=by(t);if(!cn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=en(void 0,Yr,!0),o.factory=()=>Os(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=F(null);try{return n.value===Yr&&(n.value=Iy,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ey(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{F(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Rs(e){let t=Da(e),n=t!==null?t.factory:sn(e);if(n!==null)return n;if(e instanceof b)throw new E(204,!1);if(e instanceof Function)return Cy(e);throw new E(204,!1)}function Cy(e){if(e.length>0)throw new E(204,!1);let n=Ag(e);return n!==null?()=>n.factory(e):()=>new e}function by(e){if(bu(e))return en(void 0,e.useValue);{let t=Eu(e);return en(t,Yr)}}function Eu(e,t,n){let r;if(cn(e)){let o=re(e);return sn(o)||Rs(o)}else if(bu(e))r=()=>re(e.useValue);else if(Dy(e))r=()=>e.useFactory(...Os(e.deps||[]));else if(vy(e))r=()=>_(re(e.useExisting));else{let o=re(e&&(e.useClass||e.provide));if(_y(e))r=()=>new o(...Os(e.deps));else return sn(o)||Rs(o)}return r}function en(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _y(e){return!!e.deps}function Ey(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xy(e){return typeof e=="function"||typeof e=="object"&&e instanceof b}function Ls(e,t){for(let n of e)Array.isArray(n)?Ls(n,t):n&&lu(n)?Ls(n.\u0275providers,t):t(n)}function xu(e,t){e instanceof io&&e.assertNotDestroyed();let n,r=dt(e),o=Me(void 0);try{return t()}finally{dt(r),Me(o)}}function Sy(){return cu()!==void 0||Hg()!=null}function My(e){let t=De.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Ty(e){return typeof e=="function"}var tt=0,A=1,C=2,ne=3,Le=4,Be=5,so=6,Yn=7,Ve=8,un=9,Ge=10,K=11,Jn=12,Nc=13,mn=14,ze=15,So=16,tn=17,dn=18,Mo=19,Su=20,ft=21,Ds=22,Ft=23,Qe=25,Mu=1;var Pt=7,ao=8,lo=9,Ae=10,xa=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(xa||{});function kt(e){return Array.isArray(e)&&typeof e[Mu]=="object"}function nt(e){return Array.isArray(e)&&e[Mu]===!0}function Tu(e){return(e.flags&4)!==0}function To(e){return e.componentOffset>-1}function Sa(e){return(e.flags&1)===1}function pt(e){return!!e.template}function Ay(e){return(e[C]&512)!==0}var Vs=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Au(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Ut(){return Nu}function Nu(e){return e.type.prototype.ngOnChanges&&(e.setInput=ky),Ny}Ut.ngInherit=!0;function Ny(){let e=Ou(this),t=e?.current;if(t){let n=e.previous;if(n===an)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ky(e,t,n,r,o){let i=this.declaredInputs[r],s=Ou(e)||Oy(e,{previous:an,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Vs(c&&c.currentValue,n,l===an),Au(e,t,o,n)}var ku="__ngSimpleChanges__";function Ou(e){return e[ku]||null}function Oy(e,t){return e[ku]=t}var kc=null;var He=function(e,t,n){kc?.(e,t,n)},Fy="svg",Py="math",Ry=!1;function Ly(){return Ry}function qe(e){for(;Array.isArray(e);)e=e[tt];return e}function Fu(e,t){return qe(t[e])}function Ne(e,t){return qe(t[e.index])}function Pu(e,t){return e.data[t]}function Vy(e,t){return e[t]}function mt(e,t){let n=t[e];return kt(n)?n:n[tt]}function Ma(e){return(e[C]&128)===128}function jy(e){return nt(e[ne])}function co(e,t){return t==null?null:e[t]}function Ru(e){e[tn]=0}function By(e){e[C]&1024||(e[C]|=1024,Ma(e)&&Qn(e))}function Uy(e,t){for(;e>0;)t=t[mn],e--;return t}function Ta(e){return!!(e[C]&9216||e[Ft]?.dirty)}function js(e){e[Ge].changeDetectionScheduler?.notify(1),Ta(e)?Qn(e):e[C]&64&&(Ly()?(e[C]|=1024,Qn(e)):e[Ge].changeDetectionScheduler?.notify())}function Qn(e){e[Ge].changeDetectionScheduler?.notify();let t=Xn(e);for(;t!==null&&!(t[C]&8192||(t[C]|=8192,!Ma(t)));)t=Xn(t)}function Lu(e,t){if((e[C]&256)===256)throw new E(911,!1);e[ft]===null&&(e[ft]=[]),e[ft].push(t)}function Hy(e,t){if(e[ft]===null)return;let n=e[ft].indexOf(t);n!==-1&&e[ft].splice(n,1)}function Xn(e){let t=e[ne];return nt(t)?t[ne]:t}var S={lFrame:Gu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function $y(){return S.lFrame.elementDepthCount}function Wy(){S.lFrame.elementDepthCount++}function Gy(){S.lFrame.elementDepthCount--}function Vu(){return S.bindingsEnabled}function zy(){return S.skipHydrationRootTNode!==null}function qy(e){return S.skipHydrationRootTNode===e}function Zy(){S.skipHydrationRootTNode=null}function V(){return S.lFrame.lView}function Ce(){return S.lFrame.tView}function B(e){return S.lFrame.contextLView=e,e[Ve]}function U(e){return S.lFrame.contextLView=null,e}function be(){let e=ju();for(;e!==null&&e.type===64;)e=e.parent;return e}function ju(){return S.lFrame.currentTNode}function Ky(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function or(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Bu(){return S.lFrame.isParent}function Yy(){S.lFrame.isParent=!1}function Jy(){return S.lFrame.contextLView}function Uu(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Qy(e){return S.lFrame.bindingIndex=e}function Ao(){return S.lFrame.bindingIndex++}function Xy(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ev(){return S.lFrame.inI18n}function tv(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,Bs(t)}function nv(){return S.lFrame.currentDirectiveIndex}function Bs(e){S.lFrame.currentDirectiveIndex=e}function rv(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Hu(e){S.lFrame.currentQueryIndex=e}function ov(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[Be]:null}function $u(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=ov(i),o===null||(i=i[mn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=Wu();return r.currentTNode=t,r.lView=e,!0}function Aa(e){let t=Wu(),n=e[A];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Wu(){let e=S.lFrame,t=e===null?null:e.child;return t===null?Gu(e):t}function Gu(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function zu(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var qu=zu;function Na(){let e=zu();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function iv(e){return(S.lFrame.contextLView=Uy(e,S.lFrame.contextLView))[Ve]}function gn(){return S.lFrame.selectedIndex}function Rt(e){S.lFrame.selectedIndex=e}function ka(){let e=S.lFrame;return Pu(e.tView,e.selectedIndex)}function sv(){return S.lFrame.currentNamespace}var Zu=!0;function Oa(){return Zu}function Fa(e){Zu=e}function av(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Nu(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Pa(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Jr(e,t,n){Ku(e,t,3,n)}function Qr(e,t,n,r){(e[C]&3)===n&&Ku(e,t,n,r)}function ws(e,t){let n=e[C];(n&3)===t&&(n&=16383,n+=1,e[C]=n)}function Ku(e,t,n,r){let o=r!==void 0?e[tn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[tn]+=65536),(a<i||i==-1)&&(lv(e,n,t,l),e[tn]=(e[tn]&4294901760)+l+2),l++}function Oc(e,t){He(4,e,t);let n=F(null);try{t.call(e)}finally{F(n),He(5,e,t)}}function lv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[C]>>14<e[tn]>>16&&(e[C]&3)===t&&(e[C]+=16384,Oc(a,i)):Oc(a,i)}var on=-1,Lt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function cv(e){return e instanceof Lt}function uv(e){return(e.flags&8)!==0}function dv(e){return(e.flags&16)!==0}function Yu(e){return e!==on}function uo(e){return e&32767}function fv(e){return e>>16}function fo(e,t){let n=fv(e),r=t;for(;n>0;)r=r[mn],n--;return r}var Us=!0;function Fc(e){let t=Us;return Us=e,t}var pv=256,Ju=pv-1,Qu=5,hv=0,$e={};function mv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Gn)&&(r=n[Gn]),r==null&&(r=n[Gn]=hv++);let o=r&Ju,i=1<<o;t.data[e+(o>>Qu)]|=i}function po(e,t){let n=Xu(e,t);if(n!==-1)return n;let r=t[A];r.firstCreatePass&&(e.injectorIndex=t.length,Is(r.data,e),Is(t,null),Is(r.blueprint,null));let o=Ra(e,t),i=e.injectorIndex;if(Yu(o)){let s=uo(o),a=fo(o,t),l=a[A].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Is(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Xu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ra(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=od(o),r===null)return on;if(n++,o=o[mn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return on}function Hs(e,t,n){mv(e,t,n)}function ed(e,t,n){if(n&T.Optional||e!==void 0)return e;Ia(t,"NodeInjector")}function td(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),!(n&(T.Self|T.Host))){let o=e[un],i=Me(void 0);try{return o?o.get(t,r,n&T.Optional):uu(t,r,n&T.Optional)}finally{Me(i)}}return ed(r,t,n)}function nd(e,t,n,r=T.Default,o){if(e!==null){if(t[C]&2048&&!(r&T.Self)){let s=wv(e,t,n,r,$e);if(s!==$e)return s}let i=rd(e,t,n,r,$e);if(i!==$e)return i}return td(t,n,r,o)}function rd(e,t,n,r,o){let i=vv(n);if(typeof i=="function"){if(!$u(t,e,r))return r&T.Host?ed(o,n,r):td(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))Ia(n);else return s}finally{qu()}}else if(typeof i=="number"){let s=null,a=Xu(e,t),l=on,c=r&T.Host?t[ze][Be]:null;for((a===-1||r&T.SkipSelf)&&(l=a===-1?Ra(e,t):t[a+8],l===on||!Rc(r,!1)?a=-1:(s=t[A],a=uo(l),t=fo(l,t)));a!==-1;){let u=t[A];if(Pc(i,a,u.data)){let d=gv(a,t,n,s,r,c);if(d!==$e)return d}l=t[a+8],l!==on&&Rc(r,t[A].data[a+8]===c)&&Pc(i,a,t)?(s=u,a=uo(l),t=fo(l,t)):a=-1}}return o}function gv(e,t,n,r,o,i){let s=t[A],a=s.data[e+8],l=r==null?To(a)&&Us:r!=s&&(a.type&3)!==0,c=o&T.Host&&i===a,u=yv(a,s,n,l,c);return u!==null?fn(t,s,u,a):$e}function yv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:c;for(let f=d;f<p;f++){let h=s[f];if(f<l&&n===h||f>=l&&h.type===n)return f}if(o){let f=s[l];if(f&&pt(f)&&f.type===n)return l}return null}function fn(e,t,n,r){let o=e[n],i=t.data;if(cv(o)){let s=o;s.resolving&&Lg(Rg(i[n]));let a=Fc(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Me(s.injectImpl):null,u=$u(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&av(n,i[n],t)}finally{c!==null&&Me(c),Fc(a),s.resolving=!1,qu()}}return o}function vv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Gn)?e[Gn]:void 0;return typeof t=="number"?t>=0?t&Ju:Dv:t}function Pc(e,t,n){let r=1<<e;return!!(n[t+(e>>Qu)]&r)}function Rc(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var Ot=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return nd(this._tNode,this._lView,t,_o(r),n)}};function Dv(){return new Ot(be(),V())}function yn(e){return nr(()=>{let t=e.prototype.constructor,n=t[to]||$s(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[to]||$s(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function $s(e){return iu(e)?()=>{let t=$s(re(e));return t&&t()}:sn(e)}function wv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[C]&2048&&!(s[C]&512);){let a=rd(i,s,n,r|T.Self,$e);if(a!==$e)return a;let l=i.parent;if(!l){let c=s[Su];if(c){let u=c.get(n,$e,r);if(u!==$e)return u}l=od(s),s=s[mn]}i=l}return o}function od(e){let t=e[A],n=t.type;return n===2?t.declTNode:n===1?e[Be]:null}function Lc(e,t=null,n=null,r){let o=id(e,t,n,r);return o.resolveInjectorInitializers(),o}function id(e,t=null,n=null,r,o=new Set){let i=[n||Te,my(e)];return r=r||(typeof e=="object"?void 0:ie(e)),new io(i,t||_u(),r||null,o)}var vn=(()=>{class e{static{this.THROW_IF_NOT_FOUND=qn}static{this.NULL=new oo}static create(n,r){if(Array.isArray(n))return Lc({name:""},r,n,"");{let o=n.name??"";return Lc({name:o},n.parent,n.providers,o)}}static{this.\u0275prov=k({token:e,providedIn:"any",factory:()=>_(hu)})}static{this.__NG_ELEMENT_ID__=-1}}return e})();var Iv="ngOriginalError";function Cs(e){return e[Iv]}var Xe=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Cs(t);for(;n&&Cs(n);)n=Cs(n);return n||null}},sd=new b("",{providedIn:"root",factory:()=>R(Xe).handleError.bind(void 0)}),ad=(()=>{class e{static{this.__NG_ELEMENT_ID__=Cv}static{this.__NG_ENV_ID__=n=>n}}return e})(),Ws=class extends ad{constructor(t){super(),this._lView=t}onDestroy(t){return Lu(this._lView,t),()=>Hy(this._lView,t)}};function Cv(){return new Ws(V())}function bv(){return No(be(),V())}function No(e,t){return new rt(Ne(e,t))}var rt=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=bv}}return e})();var Gs=class extends ut{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Sy()&&(this.destroyRef=R(ad,{optional:!0})??void 0)}emit(t){let n=F(null);try{super.next(t)}finally{F(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=bs(i),o&&(o=bs(o)),s&&(s=bs(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ue&&t.add(a),a}};function bs(e){return t=>{setTimeout(e,void 0,t)}}var oe=Gs;function ld(e){return(e.flags&128)===128}var cd=new Map,_v=0;function Ev(){return _v++}function xv(e){cd.set(e[Mo],e)}function Sv(e){cd.delete(e[Mo])}var Vc="__ngContext__";function Vt(e,t){kt(t)?(e[Vc]=t[Mo],xv(t)):e[Vc]=t}function ud(e){return fd(e[Jn])}function dd(e){return fd(e[Le])}function fd(e){for(;e!==null&&!nt(e);)e=e[Le];return e}var zs;function pd(e){zs=e}function Mv(){if(zs!==void 0)return zs;if(typeof document<"u")return document;throw new E(210,!1)}var ko=new b("",{providedIn:"root",factory:()=>Tv}),Tv="ng",La=new b(""),gt=new b("",{providedIn:"platform",factory:()=>"unknown"});var Va=new b("",{providedIn:"root",factory:()=>Mv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Av="h",Nv="b";var kv=()=>null;function ja(e,t,n=!1){return kv(e,t,n)}var hd=!1,Ov=new b("",{providedIn:"root",factory:()=>hd});var qs=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xg})`}};function Ba(e){return e instanceof qs?e.changingThisBreaksApplicationSecurity:e}function Fv(e){return e instanceof Function?e():e}var et=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(et||{}),Pv;function Ua(e,t){return Pv(e,t)}function nn(e,t,n,r,o){if(r!=null){let i,s=!1;nt(r)?i=r:kt(r)&&(s=!0,r=r[tt]);let a=qe(r);e===0&&n!==null?o==null?Dd(t,n,a):ho(t,n,a,o||null,!0):e===1&&n!==null?ho(t,n,a,o||null,!0):e===2?Qv(t,a,s):e===3&&t.destroyNode(a),i!=null&&eD(t,e,i,n,o)}}function Rv(e,t){return e.createText(t)}function Lv(e,t,n){e.setValue(t,n)}function md(e,t,n){return e.createElement(t,n)}function Vv(e,t){gd(e,t),t[tt]=null,t[Be]=null}function jv(e,t,n,r,o,i){r[tt]=o,r[Be]=t,Oo(e,r,n,1,o,i)}function gd(e,t){t[Ge].changeDetectionScheduler?.notify(1),Oo(e,t,t[K],2,null,null)}function Bv(e){let t=e[Jn];if(!t)return _s(e[A],e);for(;t;){let n=null;if(kt(t))n=t[Jn];else{let r=t[Ae];r&&(n=r)}if(!n){for(;t&&!t[Le]&&t!==e;)kt(t)&&_s(t[A],t),t=t[ne];t===null&&(t=e),kt(t)&&_s(t[A],t),n=t&&t[Le]}t=n}}function Uv(e,t,n,r){let o=Ae+r,i=n.length;r>0&&(n[o-1][Le]=t),r<i-Ae?(t[Le]=n[o],pu(n,Ae+r,t)):(n.push(t),t[Le]=null),t[ne]=n;let s=t[So];s!==null&&n!==s&&Hv(s,t);let a=t[dn];a!==null&&a.insertView(e),js(t),t[C]|=128}function Hv(e,t){let n=e[lo],o=t[ne][ne][ze];t[ze]!==o&&(e[C]|=xa.HasTransplantedViews),n===null?e[lo]=[t]:n.push(t)}function yd(e,t){let n=e[lo],r=n.indexOf(t);n.splice(r,1)}function Zs(e,t){if(e.length<=Ae)return;let n=Ae+t,r=e[n];if(r){let o=r[So];o!==null&&o!==e&&yd(o,r),t>0&&(e[n-1][Le]=r[Le]);let i=ro(e,Ae+t);Vv(r[A],r);let s=i[dn];s!==null&&s.detachView(i[A]),r[ne]=null,r[Le]=null,r[C]&=-129}return r}function vd(e,t){if(!(t[C]&256)){let n=t[K];n.destroyNode&&Oo(e,t,n,3,null,null),Bv(t)}}function _s(e,t){if(t[C]&256)return;let n=F(null);try{t[C]&=-129,t[C]|=256,t[Ft]&&Gl(t[Ft]),Wv(e,t),$v(e,t),t[A].type===1&&t[K].destroy();let r=t[So];if(r!==null&&nt(t[ne])){r!==t[ne]&&yd(r,t);let o=t[dn];o!==null&&o.detachView(e)}Sv(t)}finally{F(n)}}function $v(e,t){let n=e.cleanup,r=t[Yn];if(n!==null)for(let i=0;i<n.length-1;i+=2)if(typeof n[i]=="string"){let s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Yn]=null);let o=t[ft];if(o!==null){t[ft]=null;for(let i=0;i<o.length;i++){let s=o[i];s()}}}function Wv(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Lt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];He(4,a,l);try{l.call(a)}finally{He(5,a,l)}}else{He(4,o,i);try{i.call(o)}finally{He(5,o,i)}}}}}function Gv(e,t,n){return zv(e,t.parent,n)}function zv(e,t,n){let r=t;for(;r!==null&&r.type&40;)t=r,r=t.parent;if(r===null)return n[tt];{let{componentOffset:o}=r;if(o>-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===We.None||i===We.Emulated)return null}return Ne(r,n)}}function ho(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Dd(e,t,n){e.appendChild(t,n)}function jc(e,t,n,r,o){r!==null?ho(e,t,n,r,o):Dd(e,t,n)}function qv(e,t,n,r){e.removeChild(t,n,r)}function Ha(e,t){return e.parentNode(t)}function Zv(e,t){return e.nextSibling(t)}function Kv(e,t,n){return Jv(e,t,n)}function Yv(e,t,n){return e.type&40?Ne(e,n):null}var Jv=Yv,Bc;function $a(e,t,n,r){let o=Gv(e,r,t),i=t[K],s=r.parent||t[Be],a=Kv(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)jc(i,o,n[l],a,!1);else jc(i,o,n,a,!1);Bc!==void 0&&Bc(i,r,t,n,o)}function Xr(e,t){if(t!==null){let n=t.type;if(n&3)return Ne(t,e);if(n&4)return Ks(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Xr(e,r);{let o=e[t.index];return nt(o)?Ks(-1,o):qe(o)}}else{if(n&32)return Ua(t,e)()||qe(e[t.index]);{let r=wd(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Xn(e[ze]);return Xr(o,r)}else return Xr(e,t.next)}}}return null}function wd(e,t){if(t!==null){let r=e[ze][Be],o=t.projection;return r.projection[o]}return null}function Ks(e,t){let n=Ae+e+1;if(n<t.length){let r=t[n],o=r[A].firstChild;if(o!==null)return Xr(r,o)}return t[Pt]}function Qv(e,t,n){let r=Ha(e,t);r&&qv(e,r,t,n)}function Wa(e,t,n,r,o,i,s){for(;n!=null;){let a=r[n.index],l=n.type;if(s&&t===0&&(a&&Vt(qe(a),r),n.flags|=2),(n.flags&32)!==32)if(l&8)Wa(e,t,n.child,r,o,i,!1),nn(t,e,o,a,i);else if(l&32){let c=Ua(n,r),u;for(;u=c();)nn(t,e,o,u,i);nn(t,e,o,a,i)}else l&16?Xv(e,t,r,n,o,i):nn(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Oo(e,t,n,r,o,i){Wa(n,r,e.firstChild,t,o,i,!1)}function Xv(e,t,n,r,o,i){let s=n[ze],l=s[Be].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];nn(t,e,o,u,i)}else{let c=l,u=s[ne];ld(r)&&(c.flags|=128),Wa(e,t,c,u,o,i,!0)}}function eD(e,t,n,r,o){let i=n[Pt],s=qe(n);i!==s&&nn(t,e,r,i,o);for(let a=Ae;a<n.length;a++){let l=n[a];Oo(l[A],l,e,t,r,i)}}function tD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:et.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=et.Important),e.setStyle(n,r,o,i))}}function nD(e,t,n){e.setAttribute(t,"style",n)}function Id(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Cd(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Fs(e,t,r),o!==null&&Id(e,t,o),i!==null&&nD(e,t,i)}var Ht={};function D(e=1){bd(Ce(),V(),gn()+e,!1)}function bd(e,t,n,r){if(!r)if((t[C]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Jr(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Qr(t,i,0,n)}Rt(n)}function I(e,t=T.Default){let n=V();if(n===null)return _(e,t);let r=be();return nd(r,n,re(e),t)}function _d(e,t,n,r,o,i){let s=F(null);try{let a=null;o&te.SignalBased&&(a=t[r][ns]),a!==null&&a.transformFn!==void 0&&(i=a.transformFn(i)),o&te.HasDecoratorInputTransform&&(i=e.inputTransforms[r].call(t,i)),e.setInput!==null?e.setInput(t,a,i,n,r):Au(t,a,r,i)}finally{F(s)}}function rD(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Rt(~o);else{let i=o,s=n[++r],a=n[++r];tv(s,i);let l=t[i];a(2,l)}}}finally{Rt(-1)}}function Fo(e,t,n,r,o,i,s,a,l,c,u){let d=t.blueprint.slice();return d[tt]=o,d[C]=r|4|128|8|64,(c!==null||e&&e[C]&2048)&&(d[C]|=2048),Ru(d),d[ne]=d[mn]=e,d[Ve]=n,d[Ge]=s||e&&e[Ge],d[K]=a||e&&e[K],d[un]=l||e&&e[un]||null,d[Be]=i,d[Mo]=Ev(),d[so]=u,d[Su]=c,d[ze]=t.type==2?e[ze]:d,d}function Po(e,t,n,r,o){let i=e.data[t];if(i===null)i=oD(e,t,n,r,o),ev()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Ky();i.injectorIndex=s===null?-1:s.injectorIndex}return or(i,!0),i}function oD(e,t,n,r,o){let i=ju(),s=Bu(),a=s?i:i&&i.parent,l=e.data[t]=cD(e,a,n,t,r,o);return e.firstChild===null&&(e.firstChild=l),i!==null&&(s?i.child==null&&l.parent!==null&&(i.child=l):i.next===null&&(i.next=l,l.prev=i)),l}function Ed(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function xd(e,t,n,r,o){let i=gn(),s=r&2;try{Rt(-1),s&&t.length>Qe&&bd(e,t,Qe,!1),He(s?2:0,o),n(r,o)}finally{Rt(i),He(s?3:1,o)}}function Sd(e,t,n){if(Tu(t)){let r=F(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{F(r)}}}function Md(e,t,n){Vu()&&(mD(e,t,n,Ne(n,t)),(n.flags&64)===64&&Fd(e,t,n))}function Td(e,t,n=Ne){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Ad(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ga(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ga(e,t,n,r,o,i,s,a,l,c,u){let d=Qe+r,p=d+o,f=iD(d,p),h=typeof c=="function"?c():c;return f[A]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1,ssrId:u}}function iD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ht);return n}function sD(e,t,n,r){let i=r.get(Ov,hd)||n===We.ShadowDom,s=e.selectRootElement(t,i);return aD(s),s}function aD(e){lD(e)}var lD=()=>null;function cD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return zy()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Uc(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,l=te.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Hc(r,n,c,a,l):Hc(r,n,c,a)}return r}function Hc(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function uD(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],l=null,c=null;for(let u=r;u<o;u++){let d=i[u],p=n?n.get(d):null,f=p?p.inputs:null,h=p?p.outputs:null;l=Uc(0,d.inputs,u,l,f),c=Uc(1,d.outputs,u,c,h);let m=l!==null&&s!==null&&!ba(t)?xD(l,u,s):null;a.push(m)}l!==null&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=c}function dD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Nd(e,t,n,r,o,i,s,a){let l=Ne(t,n),c=t.inputs,u;!a&&c!=null&&(u=c[r])?(za(e,n,u,r,o),To(t)&&fD(n,t.index)):t.type&3?(r=dD(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(l,r,o)):t.type&12}function fD(e,t){let n=mt(t,e);n[C]&16||(n[C]|=64)}function kd(e,t,n,r){if(Vu()){let o=r===null?null:{"":-1},i=yD(e,n),s,a;i===null?s=a=null:[s,a]=i,s!==null&&Od(e,t,n,s,o,a),o&&vD(n,r,o)}n.mergedAttrs=Kn(n.mergedAttrs,n.attrs)}function Od(e,t,n,r,o,i){for(let c=0;c<r.length;c++)Hs(po(n,t),e,r[c].type);wD(n,e.data.length,r.length);for(let c=0;c<r.length;c++){let u=r[c];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,l=Ed(e,t,r.length,null);for(let c=0;c<r.length;c++){let u=r[c];n.mergedAttrs=Kn(n.mergedAttrs,u.hostAttrs),ID(e,n,t,l,u),DD(l,u,o),u.contentQueries!==null&&(n.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(n.flags|=64);let d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}uD(e,n,i)}function pD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;hD(s)!=a&&s.push(a),s.push(n,r,i)}}function hD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function mD(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;To(n)&&CD(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||po(n,t),Vt(r,t);let s=n.initialInputs;for(let a=o;a<i;a++){let l=e.data[a],c=fn(t,e,a,n);if(Vt(c,t),s!==null&&ED(t,a-o,c,l,n,s),pt(l)){let u=mt(n.index,t);u[Ve]=fn(t,e,a,n)}}}function Fd(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=nv();try{Rt(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];Bs(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&gD(l,c)}}finally{Rt(-1),Bs(s)}}function gD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function yD(e,t){let n=e.directiveRegistry,r=null,o=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];if(oy(t,s.selectors,!1))if(r||(r=[]),pt(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s);let l=a.length;Ys(e,t,l)}else r.unshift(s),Ys(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return r===null?null:[r,o]}function Ys(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function vD(e,t,n){if(t){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new E(-301,!1);r.push(t[o],i)}}}function DD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;pt(t)&&(n[""]=e)}}function wD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ID(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=sn(o.type,!0)),s=new Lt(i,pt(o),I);e.blueprint[r]=s,n[r]=s,pD(e,t,r,Ed(e,n,o.hostVars,Ht),o)}function CD(e,t,n){let r=Ne(t,e),o=Ad(n),i=e[Ge].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=Ro(e,Fo(e,o,null,s,r,t,null,i.createRenderer(r,n),null,null,null));e[t.index]=a}function bD(e,t,n,r,o,i){let s=Ne(e,t);_D(t[K],s,i,e.value,n,r,o)}function _D(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?wa(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function ED(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],u=s[a++],d=s[a++];_d(r,n,l,c,u,d)}}function xD(e,t,n){let r=null,o=0;for(;o<n.length;){let i=n[o];if(i===0){o+=4;continue}else if(i===5){o+=2;continue}if(typeof i=="number")break;if(e.hasOwnProperty(i)){r===null&&(r=[]);let s=e[i];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(i,s[a+1],s[a+2],n[o+1]);break}}o+=2}return r}function Pd(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Rd(e,t){let n=e.contentQueries;if(n!==null){let r=F(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Hu(i),a.contentQueries(2,t[s],s)}}}finally{F(r)}}}function Ro(e,t){return e[Jn]?e[Nc][Le]=t:e[Jn]=t,e[Nc]=t,t}function Js(e,t,n){Hu(0);let r=F(null);try{t(e,n)}finally{F(r)}}function SD(e){return e[Yn]||(e[Yn]=[])}function MD(e){return e.cleanup||(e.cleanup=[])}function Ld(e,t){let n=e[un],r=n?n.get(Xe,null):null;r&&r.handleError(t)}function za(e,t,n,r,o){for(let i=0;i<n.length;){let s=n[i++],a=n[i++],l=n[i++],c=t[s],u=e.data[s];_d(u,c,r,a,l,o)}}function TD(e,t,n){let r=Fu(t,e);Lv(e[K],r,n)}function AD(e,t){let n=mt(t,e),r=n[A];ND(r,n);let o=n[tt];o!==null&&n[so]===null&&(n[so]=ja(o,n[un])),qa(r,n,n[Ve])}function ND(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function qa(e,t,n){Aa(t);try{let r=e.viewQuery;r!==null&&Js(1,r,n);let o=e.template;o!==null&&xd(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[dn]?.finishViewCreation(e),e.staticContentQueries&&Rd(e,t),e.staticViewQueries&&Js(2,e.viewQuery,n);let i=e.components;i!==null&&kD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[C]&=-5,Na()}}function kD(e,t){for(let n=0;n<t.length;n++)AD(e,t[n])}function OD(e,t,n,r){let o=F(null);try{let i=t.tView,a=e[C]&4096?4096:16,l=Fo(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[So]=c;let u=e[dn];return u!==null&&(l[dn]=u.createEmbeddedView(i)),qa(i,l,n),l}finally{F(o)}}function $c(e,t){return!t||t.firstChild===null||ld(e)}function FD(e,t,n,r=!0){let o=t[A];if(Uv(o,t,e,n),r){let s=Ks(n,e),a=t[K],l=Ha(a,e[Pt]);l!==null&&jv(o,e[Be],a,t,l,s)}let i=t[so];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function mo(e,t,n,r,o=!1){for(;n!==null;){let i=t[n.index];i!==null&&r.push(qe(i)),nt(i)&&PD(i,r);let s=n.type;if(s&8)mo(e,t,n.child,r);else if(s&32){let a=Ua(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=wd(t,n);if(Array.isArray(a))r.push(...a);else{let l=Xn(t[ze]);mo(l[A],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function PD(e,t){for(let n=Ae;n<e.length;n++){let r=e[n],o=r[A].firstChild;o!==null&&mo(r[A],r,o,t)}e[Pt]!==e[tt]&&t.push(e[Pt])}var Vd=[];function RD(e){return e[Ft]??LD(e)}function LD(e){let t=Vd.pop()??Object.create(jD);return t.lView=e,t}function VD(e){e.lView[Ft]!==e&&(e.lView=null,Vd.push(e))}var jD=ve(X({},Hl),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Qn(e.lView)},consumerOnSignalRead(){this.lView[Ft]=this}}),jd=100;function Bd(e,t=!0,n=0){let r=e[Ge],o=r.rendererFactory,i=!1;i||o.begin?.();try{BD(e,n)}catch(s){throw t&&Ld(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function BD(e,t){Qs(e,t);let n=0;for(;Ta(e);){if(n===jd)throw new E(103,!1);n++,Qs(e,1)}}function UD(e,t,n,r){let o=t[C];if((o&256)===256)return;let i=!1;!i&&t[Ge].inlineEffectRunner?.flush(),Aa(t);let s=null,a=null;!i&&HD(e)&&(a=RD(t),s=$l(a));try{Ru(t),Qy(e.bindingStartIndex),n!==null&&xd(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let d=e.preOrderCheckHooks;d!==null&&Jr(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Qr(t,d,0,null),ws(t,0)}if($D(t),Ud(t,0),e.contentQueries!==null&&Rd(e,t),!i)if(l){let d=e.contentCheckHooks;d!==null&&Jr(t,d)}else{let d=e.contentHooks;d!==null&&Qr(t,d,1),ws(t,1)}rD(e,t);let c=e.components;c!==null&&$d(t,c,0);let u=e.viewQuery;if(u!==null&&Js(2,u,r),!i)if(l){let d=e.viewCheckHooks;d!==null&&Jr(t,d)}else{let d=e.viewHooks;d!==null&&Qr(t,d,2),ws(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ds]){for(let d of t[Ds])d();t[Ds]=null}i||(t[C]&=-73)}catch(l){throw Qn(t),l}finally{a!==null&&(Wl(a,s),VD(a)),Na()}}function HD(e){return e.type!==2}function Ud(e,t){for(let n=ud(e);n!==null;n=dd(n))for(let r=Ae;r<n.length;r++){let o=n[r];Hd(o,t)}}function $D(e){for(let t=ud(e);t!==null;t=dd(t)){if(!(t[C]&xa.HasTransplantedViews))continue;let n=t[lo];for(let r=0;r<n.length;r++){let o=n[r],i=o[ne];By(o)}}}function WD(e,t,n){let r=mt(t,e);Hd(r,n)}function Hd(e,t){Ma(e)&&Qs(e,t)}function Qs(e,t){let r=e[A],o=e[C],i=e[Ft],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&rs(i)),i&&(i.dirty=!1),e[C]&=-9217,s)UD(r,e,r.template,e[Ve]);else if(o&8192){Ud(e,1);let a=r.components;a!==null&&$d(e,a,1)}}function $d(e,t,n){for(let r=0;r<t.length;r++)WD(e,t[r],n)}function Za(e){for(e[Ge].changeDetectionScheduler?.notify();e;){e[C]|=64;let t=Xn(e);if(Ay(e)&&!t)return e;e=t}return null}var jt=class{get rootNodes(){let t=this._lView,n=t[A];return mo(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ve]}set context(t){this._lView[Ve]=t}get destroyed(){return(this._lView[C]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ne];if(nt(t)){let n=t[ao],r=n?n.indexOf(this):-1;r>-1&&(Zs(t,r),ro(n,r))}this._attachedToViewContainer=!1}vd(this._lView[A],this._lView)}onDestroy(t){Lu(this._lView,t)}markForCheck(){Za(this._cdRefInjectingView||this._lView)}detach(){this._lView[C]&=-129}reattach(){js(this._lView),this._lView[C]|=128}detectChanges(){this._lView[C]|=1024,Bd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,gd(this._lView[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t,js(this._lView)}},Lo=(()=>{class e{static{this.__NG_ELEMENT_ID__=qD}}return e})(),GD=Lo,zD=class extends GD{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=OD(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new jt(o)}};function qD(){return ZD(be(),V())}function ZD(e,t){return e.type&4?new zD(t,e,No(e,t)):null}var Sk=new RegExp(`^(\\d+)*(${Nv}|${Av})*(.*)`);var KD=()=>null;function Wc(e,t){return KD(e,t)}var Xs=class{},ea=class{},go=class{};function YD(e){let t=Error(`No component factory found for ${ie(e)}.`);return t[JD]=e,t}var JD="ngComponent";var ta=class{resolveComponentFactory(t){throw YD(t)}},Ka=(()=>{class e{static{this.NULL=new ta}}return e})(),er=class{},yt=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>QD()}}return e})();function QD(){let e=V(),t=be(),n=mt(t.index,e);return(kt(n)?n:e)[K]}var XD=(()=>{class e{static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>null})}}return e})(),Es={};function Gc(...e){}function ew(){let e=typeof De.requestAnimationFrame=="function",t=De[e?"requestAnimationFrame":"setTimeout"],n=De[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var W=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new oe(!1),this.onMicrotaskEmpty=new oe(!1),this.onStable=new oe(!1),this.onError=new oe(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=ew().nativeRequestAnimationFrame,rw(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new E(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,tw,Gc,Gc);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},tw={};function Ya(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function nw(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(De,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,na(e),e.isCheckStableRunning=!0,Ya(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),na(e))}function rw(e){let t=()=>{nw(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(ow(a))return n.invokeTask(o,i,s,a);try{return zc(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),qc(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return zc(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),qc(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,na(e),Ya(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function na(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function zc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function qc(e){e._nesting--,Ya(e)}var ra=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new oe,this.onMicrotaskEmpty=new oe,this.onStable=new oe,this.onError=new oe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function ow(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}function iw(e="zone.js",t){return e==="noop"?new ra:e==="zone.js"?new W(t):e}var Wd=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}}return e})();function oa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Ic(o,a);else if(i==2){let l=a,c=t[++s];r=Ic(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}var ia=class extends Ka{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=ln(t);return new yo(n,this.ngModule)}};function Zc(e){let t=[];for(let n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];r!==void 0&&t.push({propName:Array.isArray(r)?r[0]:r,templateName:n})}return t}function sw(e){let t=e.toLowerCase();return t==="svg"?Fy:t==="math"?Py:null}var sa=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=_o(r);let o=this.injector.get(t,Es,r);return o!==Es||n===Es?o:this.parentInjector.get(t,n,r)}},yo=class extends go{get inputs(){let t=this.componentDef,n=t.inputTransforms,r=Zc(t.inputs);if(n!==null)for(let o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Zc(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=ly(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=F(null);try{o=o||this.ngModule;let s=o instanceof Je?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new sa(t,s):t,l=a.get(er,null);if(l===null)throw new E(407,!1);let c=a.get(XD,null),u=a.get(Wd,null),d=a.get(Xs,null),p={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,afterRenderEventManager:u,changeDetectionScheduler:d},f=l.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",m=r?sD(f,r,this.componentDef.encapsulation,a):md(f,h,sw(h)),y=512;this.componentDef.signals?y|=4096:this.componentDef.onPush||(y|=16);let w=null;m!==null&&(w=ja(m,a,!0));let q=Ga(0,null,null,1,0,null,null,null,null,null,null),N=Fo(null,q,null,y,null,null,p,f,a,null,w);Aa(N);let Q,ge;try{let ye=this.componentDef,Kt,es=null;ye.findHostDirectiveDefs?(Kt=[],es=new Map,ye.findHostDirectiveDefs(ye,Kt,es),Kt.push(ye)):Kt=[ye];let Zm=aw(N,m),Km=lw(Zm,m,ye,Kt,N,p,f);ge=Pu(q,Qe),m&&dw(f,ye,m,r),n!==void 0&&fw(ge,this.ngContentSelectors,n),Q=uw(Km,ye,Kt,es,N,[pw]),qa(q,N,null)}finally{Na()}return new aa(this.componentType,Q,No(ge,N),N,ge)}finally{F(i)}}},aa=class extends ea{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new jt(o,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,o;if(r!==null&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView;za(i[A],i,o,t,n),this.previousInputValues.set(t,n);let s=mt(this._tNode.index,i);Za(s)}}get injector(){return new Ot(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function aw(e,t){let n=e[A],r=Qe;return e[r]=t,Po(n,r,2,"#host",null)}function lw(e,t,n,r,o,i,s){let a=o[A];cw(r,e,t,s);let l=null;t!==null&&(l=ja(t,o[un]));let c=i.rendererFactory.createRenderer(t,n),u=16;n.signals?u=4096:n.onPush&&(u=64);let d=Fo(o,Ad(n),null,u,o[e.index],e,i,c,null,null,l);return a.firstCreatePass&&Ys(a,e,r.length-1),Ro(o,d),o[e.index]=d}function cw(e,t,n,r){for(let o of e)t.mergedAttrs=Kn(t.mergedAttrs,o.hostAttrs);t.mergedAttrs!==null&&(oa(t,t.mergedAttrs,!0),n!==null&&Cd(r,n,t))}function uw(e,t,n,r,o,i){let s=be(),a=o[A],l=Ne(s,o);Od(a,o,s,n,null,r);for(let u=0;u<n.length;u++){let d=s.directiveStart+u,p=fn(o,a,d,s);Vt(p,o)}Fd(a,o,s),l&&Vt(l,o);let c=fn(o,a,s.directiveStart+s.componentOffset,s);if(e[Ve]=o[Ve]=c,i!==null)for(let u of i)u(c,t);return Sd(a,s,o),c}function dw(e,t,n,r){if(r)Fs(e,n,["ng-version","17.3.12"]);else{let{attrs:o,classes:i}=cy(t.selectors[0]);o&&Fs(e,n,o),i&&i.length>0&&Id(e,n,i.join(" "))}}function fw(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null?Array.from(i):null)}}function pw(){let e=be();Pa(V()[A],e)}var Vo=(()=>{class e{static{this.__NG_ELEMENT_ID__=hw}}return e})();function hw(){let e=be();return gw(e,V())}var mw=Vo,Gd=class extends mw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return No(this._hostTNode,this._hostLView)}get injector(){return new Ot(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ra(this._hostTNode,this._hostLView);if(Yu(t)){let n=fo(t,this._hostLView),r=uo(t),o=n[A].data[r+8];return new Ot(o,n)}else return new Ot(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Kc(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Ae}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Wc(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$c(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Ty(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let l=s?t:new yo(ln(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let m=(s?c:this.parentInjector).get(Je,null);m&&(i=m)}let u=ln(l.componentType??{}),d=Wc(this._lContainer,u?.id??null),p=d?.firstChild??null,f=l.create(c,o,p,i);return this.insertImpl(f.hostView,a,$c(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(jy(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[ne],c=new Gd(l,l[Be],l[ne]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return FD(s,o,i,r),t.attachToViewContainerRef(),pu(xs(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Kc(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Zs(this._lContainer,n);r&&(ro(xs(this._lContainer),n),vd(r[A],r))}detach(t){let n=this._adjustIndex(t,-1),r=Zs(this._lContainer,n);return r&&ro(xs(this._lContainer),n)!=null?new jt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Kc(e){return e[ao]}function xs(e){return e[ao]||(e[ao]=[])}function gw(e,t){let n,r=t[e.index];return nt(r)?n=r:(n=Pd(r,t,null,e),t[e.index]=n,Ro(t,n)),vw(n,t,e,r),new Gd(n,e,t)}function yw(e,t){let n=e[K],r=n.createComment(""),o=Ne(t,e),i=Ha(n,o);return ho(n,i,r,Zv(n,o),!1),r}var vw=Iw,Dw=()=>!1;function ww(e,t,n){return Dw(e,t,n)}function Iw(e,t,n,r){if(e[Pt])return;let o;n.type&8?o=qe(r):o=yw(t,n),e[Pt]=o}function Cw(e){return typeof e=="function"&&e[ns]!==void 0}function zd(e){return Cw(e)&&typeof e.set=="function"}function bw(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(Sw))}return i}return vo.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(c=>{o.template=c}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let c=o.styles.length,u=o.styleUrls;o.styleUrls.forEach((d,p)=>{a.push(""),s.push(r(d).then(f=>{a[c+p]=f,u.splice(u.indexOf(d),1),u.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(c=>{a.push(c),o.styleUrl=void 0}));let l=Promise.all(s).then(()=>Mw(i));t.push(l)}),Ew(),Promise.all(t).then(()=>{})}var vo=new Map,_w=new Set;function Ew(){let e=vo;return vo=new Map,e}function xw(){return vo.size===0}function Sw(e){return typeof e=="string"?e:e.text()}function Mw(e){_w.delete(e)}function Tw(e){return Object.getPrototypeOf(e.prototype).constructor}function _e(e){let t=Tw(e.type),n=!0,r=[e];for(;t;){let o;if(pt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new E(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=qr(e.inputs),s.inputTransforms=qr(e.inputTransforms),s.declaredInputs=qr(e.declaredInputs),s.outputs=qr(e.outputs);let a=o.hostBindings;a&&Fw(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&kw(e,l),c&&Ow(e,c),Aw(e,o),Mg(e.outputs,o.outputs),pt(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===_e&&(n=!1)}}t=Object.getPrototypeOf(t)}Nw(r)}function Aw(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];if(r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],t.inputTransforms!==null)){let o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function Nw(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Kn(o.hostAttrs,n=Kn(n,o.hostAttrs))}}function qr(e){return e===an?{}:e===Te?[]:e}function kw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Ow(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Fw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}var pn=class{},la=class{};var Do=class extends pn{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ia(this);let o=py(t);this._bootstrapComponents=Fv(o.bootstrap),this._r3Injector=id(t,n,[{provide:pn,useValue:this},{provide:Ka,useValue:this.componentFactoryResolver},...r],ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ca=class extends la{constructor(t){super(),this.moduleType=t}create(t){return new Do(this.moduleType,t,[])}};function Pw(e,t,n){return new Do(e,t,n)}var ir=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Wn(!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)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function qd(e){return Lw(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Rw(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Lw(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Zd(e,t,n){return e[t]=n}function ht(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Vw(e,t,n,r){let o=ht(e,t,n);return ht(e,t+1,r)||o}function jw(e){return(e.flags&32)===32}function Bw(e,t,n,r,o,i,s,a,l){let c=t.consts,u=Po(t,e,4,s||null,co(c,a));kd(t,n,u,co(c,l)),Pa(t,u);let d=u.tView=Ga(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}function se(e,t,n,r,o,i,s,a){let l=V(),c=Ce(),u=e+Qe,d=c.firstCreatePass?Bw(u,c,l,t,n,r,o,i,s):c.data[u];or(d,!1);let p=Uw(c,l,d,e);Oa()&&$a(c,l,p,d),Vt(p,l);let f=Pd(p,l,p,d);return l[u]=f,Ro(l,f),ww(f,d,l),Sa(d)&&Md(c,l,d),s!=null&&Td(l,d,a),se}var Uw=Hw;function Hw(e,t,n,r){return Fa(!0),t[K].createComment("")}function Ja(e,t,n,r){let o=V(),i=Ao();if(ht(o,i,t)){let s=Ce(),a=ka();bD(a,o,e,t,n,r)}return Ja}function $w(e,t,n,r){return ht(e,Ao(),n)?t+wa(n)+r:Ht}function Zr(e,t){return e<<17|t<<2}function Bt(e){return e>>17&32767}function Ww(e){return(e&2)==2}function Gw(e,t){return e&131071|t<<17}function ua(e){return e|2}function hn(e){return(e&131068)>>2}function Ss(e,t){return e&-131069|t<<2}function zw(e){return(e&1)===1}function da(e){return e|1}function qw(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Bt(s),l=hn(s);e[r]=n;let c=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||rr(d,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=Bt(e[a+1]);e[r+1]=Zr(p,a),p!==0&&(e[p+1]=Ss(e[p+1],r)),e[a+1]=Gw(e[a+1],r)}else e[r+1]=Zr(a,0),a!==0&&(e[a+1]=Ss(e[a+1],r)),a=r;else e[r+1]=Zr(l,0),a===0?a=r:e[l+1]=Ss(e[l+1],r),l=r;c&&(e[r+1]=ua(e[r+1])),Yc(e,u,r,!0),Yc(e,u,r,!1),Zw(t,u,e,r,i),s=Zr(a,l),i?t.classBindings=s:t.styleBindings=s}function Zw(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&rr(i,t)>=0&&(n[r+1]=da(n[r+1]))}function Yc(e,t,n,r){let o=e[n+1],i=t===null,s=r?Bt(o):hn(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];Kw(l,t)&&(a=!0,e[s+1]=r?da(c):ua(c)),s=r?Bt(c):hn(c)}a&&(e[n+1]=r?ua(o):da(o))}function Kw(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?rr(e,t)>=0:!1}function x(e,t,n){let r=V(),o=Ao();if(ht(r,o,t)){let i=Ce(),s=ka();Nd(i,s,r,e,t,r[K],n,!1)}return x}function Jc(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";za(e,n,i[s],s,r)}function jo(e,t){return Yw(e,t,null,!0),jo}function Yw(e,t,n,r){let o=V(),i=Ce(),s=Xy(2);if(i.firstUpdatePass&&Qw(i,e,s,r),t!==Ht&&ht(o,s,t)){let a=i.data[gn()];rI(i,a,o,o[K],e,o[s+1]=oI(t,n),r,s)}}function Jw(e,t){return t>=e.expandoStartIndex}function Qw(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[gn()],s=Jw(e,n);iI(i,r)&&t===null&&!s&&(t=!1),t=Xw(o,i,t,r),qw(o,i,t,n,s,r)}}function Xw(e,t,n,r){let o=rv(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ms(null,e,t,n,r),n=tr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ms(o,e,t,n,r),i===null){let l=eI(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Ms(null,e,t,l[1],r),l=tr(l,t.attrs,r),tI(e,t,r,l))}else i=nI(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function eI(e,t,n){let r=n?t.classBindings:t.styleBindings;if(hn(r)!==0)return e[Bt(r)]}function tI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Bt(o)]=r}function nI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=tr(r,s,n)}return tr(r,t.attrs,n)}function Ms(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=tr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function tr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Kg(e,s,n?!0:t[++i]))}return e===void 0?null:e}function rI(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],u=zw(c)?Qc(l,t,n,o,hn(c),s):void 0;if(!wo(u)){wo(i)||Ww(c)&&(i=Qc(l,null,n,o,a,s));let d=Fu(gn(),n);tD(r,s,d,o,i)}}function Qc(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),u=c?l[1]:l,d=u===null,p=n[o+1];p===Ht&&(p=d?Te:void 0);let f=d?ys(p,r):u===r?p:void 0;if(c&&!wo(f)&&(f=ys(l,r)),wo(f)&&(a=f,s))return a;let h=e[o+1];o=s?Bt(h):hn(h)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=ys(l,r))}return a}function wo(e){return e!==void 0}function oI(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ie(Ba(e)))),e}function iI(e,t){return(e.flags&(t?8:16))!==0}function sI(e,t,n,r,o,i){let s=t.consts,a=co(s,o),l=Po(t,e,2,r,a);return kd(t,n,l,co(s,i)),l.attrs!==null&&oa(l,l.attrs,!1),l.mergedAttrs!==null&&oa(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function v(e,t,n,r){let o=V(),i=Ce(),s=Qe+e,a=o[K],l=i.firstCreatePass?sI(s,i,o,t,n,r):i.data[s],c=aI(i,o,l,a,t,e);o[s]=c;let u=Sa(l);return or(l,!0),Cd(a,c,l),!jw(l)&&Oa()&&$a(i,o,c,l),$y()===0&&Vt(c,o),Wy(),u&&(Md(i,o,l),Sd(i,l,o)),r!==null&&Td(o,l),v}function g(){let e=be();Bu()?Yy():(e=e.parent,or(e,!1));let t=e;qy(t)&&Zy(),Gy();let n=Ce();return n.firstCreatePass&&(Pa(n,e),Tu(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&uv(t)&&Jc(n,t,V(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&dv(t)&&Jc(n,t,V(),t.stylesWithoutHost,!1),g}function ee(e,t,n,r){return v(e,t,n,r),g(),ee}var aI=(e,t,n,r,o,i)=>(Fa(!0),md(r,o,sv()));function ke(){return V()}var Io="en-US";var lI=Io;function cI(e){typeof e=="string"&&(lI=e.toLowerCase().replace(/_/g,"-"))}function G(e,t,n,r){let o=V(),i=Ce(),s=be();return Kd(i,o,o[K],s,e,t,r),G}function uI(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Yn],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function Kd(e,t,n,r,o,i,s){let a=Sa(r),c=e.firstCreatePass&&MD(e),u=t[Ve],d=SD(t),p=!0;if(r.type&3||s){let m=Ne(r,t),y=s?s(m):m,w=d.length,q=s?Q=>s(qe(Q[r.index])):r.index,N=null;if(!s&&a&&(N=uI(e,t,o,r.index)),N!==null){let Q=N.__ngLastListenerFn__||N;Q.__ngNextListenerFn__=i,N.__ngLastListenerFn__=i,p=!1}else{i=eu(r,t,u,i,!1);let Q=n.listen(y,o,i);d.push(i,Q),c&&c.push(o,q,w,w+1)}}else i=eu(r,t,u,i,!1);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let m=h.length;if(m)for(let y=0;y<m;y+=2){let w=h[y],q=h[y+1],ge=t[w][q].subscribe(i),ye=d.length;d.push(i,ge),c&&c.push(o,r.index,ye,-(ye+1))}}}function Xc(e,t,n,r){let o=F(null);try{return He(6,t,n),n(r)!==!1}catch(i){return Ld(e,i),!1}finally{He(7,t,n),F(o)}}function eu(e,t,n,r,o){return function i(s){if(s===Function)return r;let a=e.componentOffset>-1?mt(e.index,t):t;Za(a);let l=Xc(t,n,r,s),c=i.__ngNextListenerFn__;for(;c;)l=Xc(t,n,c,s)&&l,c=c.__ngNextListenerFn__;return o&&l===!1&&s.preventDefault(),l}}function P(e=1){return iv(e)}function Yd(e){let t=Jy();return Vy(t,Qe+e)}function O(e,t=""){let n=V(),r=Ce(),o=e+Qe,i=r.firstCreatePass?Po(r,o,1,t,null):r.data[o],s=dI(r,n,i,t,e);n[o]=s,Oa()&&$a(r,n,s,i),or(i,!1)}var dI=(e,t,n,r,o)=>(Fa(!0),Rv(t[K],r));function Ze(e){return Dn("",e,""),Ze}function Dn(e,t,n){let r=V(),o=$w(r,e,t,n);return o!==Ht&&TD(r,gn(),o),Dn}function Ee(e,t,n){zd(t)&&(t=t());let r=V(),o=Ao();if(ht(r,o,t)){let i=Ce(),s=ka();Nd(i,s,r,e,t,r[K],n,!1)}return Ee}function Oe(e,t){let n=zd(e);return n&&e.set(t),n}function xe(e,t){let n=V(),r=Ce(),o=be();return Kd(r,n,n[K],o,e,t),xe}function fI(e,t,n){let r=Ce();if(r.firstCreatePass){let o=pt(e);fa(n,r.data,r.blueprint,o,!0),fa(t,r.data,r.blueprint,o,!1)}}function fa(e,t,n,r,o){if(e=re(e),Array.isArray(e))for(let i=0;i<e.length;i++)fa(e[i],t,n,r,o);else{let i=Ce(),s=V(),a=be(),l=cn(e)?e:re(e.provide),c=Eu(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(cn(e)||!e.multi){let f=new Lt(c,o,I),h=As(l,t,o?u:u+p,d);h===-1?(Hs(po(a,s),i,l),Ts(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=As(l,t,u+p,d),h=As(l,t,u,u+p),m=f>=0&&n[f],y=h>=0&&n[h];if(o&&!y||!o&&!m){Hs(po(a,s),i,l);let w=mI(o?hI:pI,n.length,o,r,c);!o&&y&&(n[h].providerFactory=w),Ts(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(w),s.push(w)}else{let w=Jd(n[o?h:f],c,!o&&r);Ts(i,e,f>-1?f:h,w)}!o&&r&&y&&n[h].componentProviders++}}}function Ts(e,t,n,r){let o=cn(t),i=wy(t);if(o||i){let l=(i?re(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function Jd(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function As(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function pI(e,t,n,r){return pa(this.multi,[])}function hI(e,t,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=fn(n,n[A],this.providerFactory.index,r);i=a.slice(0,s),pa(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],pa(o,i);return i}function pa(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function mI(e,t,n,r,o){let i=new Lt(e,n,I);return i.multi=[],i.index=t,i.componentProviders=0,Jd(i,o,r&&!n),i}function ot(e,t=[]){return n=>{n.providersResolver=(r,o)=>fI(r,o?o(e):e,t)}}function sr(e,t,n,r){return gI(V(),Uu(),e,t,n,r)}function wn(e,t,n,r,o){return yI(V(),Uu(),e,t,n,r,o)}function Qd(e,t){let n=e[t];return n===Ht?void 0:n}function gI(e,t,n,r,o,i){let s=t+n;return ht(e,s,o)?Zd(e,s+1,i?r.call(i,o):r(o)):Qd(e,s+1)}function yI(e,t,n,r,o,i,s){let a=t+n;return Vw(e,a,o,i)?Zd(e,a+2,s?r.call(s,o,i):r(o,i)):Qd(e,a+2)}var Kr=null;function vI(e){Kr!==null&&(e.defaultEncapsulation!==Kr.defaultEncapsulation||e.preserveWhitespaces!==Kr.preserveWhitespaces)||(Kr=e)}var Qa=new b(""),ar=new b(""),Bo=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Xa||(DI(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static{this.\u0275fac=function(r){return new(r||e)(_(W),_(Uo),_(ar))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})(),Uo=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Xa?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function DI(e){Xa=e}var Xa;function lr(e){return!!e&&typeof e.then=="function"}function Xd(e){return!!e&&typeof e.subscribe=="function"}var wI=new b(""),ef=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=R(wI,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(lr(i))n.push(i);else if(Xd(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),tf=new b("");function II(){zl(()=>{throw new E(600,!1)})}function CI(e){return e.isBoundToModule}function bI(e,t,n){try{let r=n();return lr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function nf(e,t){return Array.isArray(t)?t.reduce(nf,e):X(X({},e),t)}var cr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=R(sd),this.afterRenderEffectManager=R(Wd),this.externalTestViews=new Set,this.beforeRender=new ut,this.afterTick=new ut,this.componentTypes=[],this.components=[],this.isStable=R(ir).hasPendingTasks.pipe(he(n=>!n)),this._injector=R(Je)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof go;if(!this._injector.get(ef).done){let p=!o&&fy(n),f=!1;throw new E(405,f)}let s;o?s=n:s=this._injector.get(Ka).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=CI(s)?void 0:this._injector.get(pn),l=r||s.selector,c=s.create(vn.NULL,[],l,a),u=c.location.nativeElement,d=c.injector.get(Qa,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),eo(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new E(101,!1);let r=F(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,F(r)}}detectChangesInAttachedViews(n){let r=0,o=this.afterRenderEffectManager;for(;;){if(r===jd)throw new E(103,!1);if(n){let i=r===0;this.beforeRender.next(i);for(let{_lView:s,notifyErrorHandler:a}of this._views)_I(s,i,a)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>ha(i))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>ha(i))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;eo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(tf,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>eo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function eo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function _I(e,t,n){!t&&!ha(e)||EI(e,n,t)}function ha(e){return Ta(e)}function EI(e,t,n){let r;n?(r=0,e[C]|=1024):e[C]&64?r=0:r=1,Bd(e,t,r)}var xI=new b("");function SI(e,t,n){let r=new ca(n);return Promise.resolve(r)}function tu(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var MI=(()=>{class e{constructor(){this.zone=R(W),this.applicationRef=R(cr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function TI(e){return[{provide:W,useFactory:e},{provide:Zn,multi:!0,useFactory:()=>{let t=R(MI,{optional:!0});return()=>t.initialize()}},{provide:Zn,multi:!0,useFactory:()=>{let t=R(kI);return()=>{t.initialize()}}},{provide:sd,useFactory:AI}]}function AI(){let e=R(W),t=R(Xe);return n=>e.runOutsideAngular(()=>t.handleError(n))}function NI(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var kI=(()=>{class e{constructor(){this.subscription=new ue,this.initialized=!1,this.zone=R(W),this.pendingTasks=R(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(()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{W.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function OI(){return typeof $localize<"u"&&$localize.locale||Io}var el=new b("",{providedIn:"root",factory:()=>R(el,T.Optional|T.SkipSelf)||OI()});var rf=new b(""),of=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let o=iw(r?.ngZone,NI({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{let i=Pw(n.moduleType,this.injector,TI(()=>o)),s=i.injector.get(Xe,null);return o.runOutsideAngular(()=>{let a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{eo(this._modules,i),a.unsubscribe()})}),bI(s,o,()=>{let a=i.injector.get(ef);return a.runInitializers(),a.donePromise.then(()=>{let l=i.injector.get(el,Io);return cI(l||Io),this._moduleDoBootstrap(i),i})})})}bootstrapModule(n,r=[]){let o=nf({},r);return SI(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){let r=n.injector.get(cr);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(r);else throw new E(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(rf,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(_(vn))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),zn=null,sf=new b("");function FI(e){if(zn&&!zn.get(sf,!1))throw new E(400,!1);II(),zn=e;let t=e.get(of);return LI(e),t}function tl(e,t,n=[]){let r=`Platform: ${t}`,o=new b(r);return(i=[])=>{let s=af();if(!s||s.injector.get(sf,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):FI(PI(a,r))}return RI(o)}}function PI(e=[],t){return vn.create({name:t,providers:[{provide:xo,useValue:"platform"},{provide:rf,useValue:new Set([()=>zn=null])},...e]})}function RI(e){let t=af();if(!t)throw new E(401,!1);return t}function af(){return zn?.get(of)??null}function LI(e){e.get(La,null)?.forEach(n=>n())}var In=(()=>{class e{static{this.__NG_ELEMENT_ID__=VI}}return e})();function VI(e){return jI(be(),V(),(e&16)===16)}function jI(e,t,n){if(To(e)&&!n){let r=mt(e.index,t);return new jt(r,r)}else if(e.type&47){let r=t[ze];return new jt(r,t)}return null}var ma=class{constructor(){}supports(t){return qd(t)}create(t){return new ga(t)}},BI=(e,t)=>t,ga=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||BI}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<nu(r,o,i)?n:r,a=nu(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,u=l-o;if(c!=u){for(let p=0;p<c;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<c&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!qd(t))throw new E(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Rw(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ya(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Co),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Co),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},ya=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},va=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Co=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new va,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function nu(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function ru(){return new nl([new ma])}var nl=(()=>{class e{static{this.\u0275prov=k({token:e,providedIn:"root",factory:ru})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||ru()),deps:[[e,new qg,new fu]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new E(901,!1)}}return e})();var lf=tl(null,"core",[]),cf=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(_(cr))}}static{this.\u0275mod=Ie({type:e})}static{this.\u0275inj=we({})}}return e})();function Ho(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var hf=null;function $t(){return hf}function mf(e){hf??=e}var $o=class{};var Fe=new b("");function Wo(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var rl=/\s+/,uf=[],Go=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=uf,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(rl):uf}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(rl):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(rl).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(I(rt),I(yt))}}static{this.\u0275dir=z({type:e,selectors:[["","ngClass",""]],inputs:{klass:[te.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var ol=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},zo=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new ol(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),df(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);df(i,o)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(I(Vo),I(Lo),I(nl))}}static{this.\u0275dir=z({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function df(e,t){e.context.$implicit=t.item}var qo=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new il,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){ff("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){ff("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(I(Vo),I(Lo))}}static{this.\u0275dir=z({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),il=class{constructor(){this.$implicit=null,this.ngIf=null}};function ff(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ie(t)}'.`)}var Zo=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ie({type:e})}static{this.\u0275inj=we({})}}return e})(),gf="browser",HI="server";function Ko(e){return e===HI}var Cn=class{};var dr=class{},Jo=class{},it=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
8
- `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var ll=class{encodeKey(t){return yf(t)}encodeValue(t){return yf(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function GI(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var zI=/%(\d[a-f0-9])/gi,qI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function yf(e){return encodeURIComponent(e).replace(zI,(t,n)=>qI[n]??t)}function Yo(e){return`${e}`}var vt=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ll,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=GI(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Yo):[Yo(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Yo(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Yo(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var cl=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function ZI(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vf(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Df(e){return typeof Blob<"u"&&e instanceof Blob}function wf(e){return typeof FormData<"u"&&e instanceof FormData}function KI(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ur=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(ZI(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new it,this.context??=new cl,!this.params)this.params=new vt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vf(this.body)||Df(this.body)||wf(this.body)||KI(this.body)?this.body:this.body instanceof vt?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||wf(this.body)?null:Df(this.body)?this.body.type||null:vf(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof vt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,c=t.headers||this.headers,u=t.params||this.params,d=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,f)=>p.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((p,f)=>p.set(f,t.setParams[f]),u)),new e(n,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a,transferCache:i})}},bn=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(bn||{}),fr=class{constructor(t,n=ei.Ok,r="OK"){this.headers=t.headers||new it,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},ul=class e extends fr{constructor(t={}){super(t),this.type=bn.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Qo=class e extends fr{constructor(t={}){super(t),this.type=bn.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Xo=class extends fr{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},ei=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(ei||{});function al(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var dl=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ur)i=n;else{let l;o.headers instanceof it?l=o.headers:l=new it(o.headers);let c;o.params&&(o.params instanceof vt?c=o.params:c=new vt({fromObject:o.params})),i=new ur(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=$r(i).pipe(ms(l=>this.handler.handle(l)));if(n instanceof ur||o.observe==="events")return s;let a=s.pipe(hs(l=>l instanceof Qo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(he(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(he(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(he(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(he(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new vt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,al(o,r))}post(n,r,o={}){return this.request("POST",n,al(o,r))}put(n,r,o={}){return this.request("PUT",n,al(o,r))}static{this.\u0275fac=function(r){return new(r||e)(_(dr))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})();function _f(e,t){return t(e)}function YI(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function JI(e,t,n){return(r,o)=>xu(n,()=>t(r,i=>e(i,o)))}var QI=new b(""),fl=new b(""),XI=new b(""),eC=new b("");function tC(){let e=null;return(t,n)=>{e===null&&(e=(R(QI,{optional:!0})??[]).reduceRight(YI,_f));let r=R(ir),o=r.add();return e(t,n).pipe(Gr(()=>r.remove(o)))}}var If=(()=>{class e extends dr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=R(ir);let o=R(eC,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(fl),...this.injector.get(XI,[])]));this.chain=o.reduceRight((i,s)=>JI(i,s,this.injector),_f)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Gr(()=>this.pendingTasks.remove(r)))}static{this.\u0275fac=function(r){return new(r||e)(_(Jo),_(Je))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})();var nC=/^\)\]\}',?\n/;function rC(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Cf=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new E(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Nt(r.\u0275loadImpl()):$r(null)).pipe(gs(()=>new $(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let m=s.statusText||"OK",y=new it(s.getAllResponseHeaders()),w=rC(s)||n.url;return l=new ul({headers:y,status:s.status,statusText:m,url:w}),l},u=()=>{let{headers:m,status:y,statusText:w,url:q}=c(),N=null;y!==ei.NoContent&&(N=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=N?ei.Ok:0);let Q=y>=200&&y<300;if(n.responseType==="json"&&typeof N=="string"){let ge=N;N=N.replace(nC,"");try{N=N!==""?JSON.parse(N):null}catch(ye){N=ge,Q&&(Q=!1,N={error:ye,text:N})}}Q?(i.next(new Qo({body:N,headers:m,status:y,statusText:w,url:q||void 0})),i.complete()):i.error(new Xo({error:N,headers:m,status:y,statusText:w,url:q||void 0}))},d=m=>{let{url:y}=c(),w=new Xo({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(w)},p=!1,f=m=>{p||(i.next(c()),p=!0);let y={type:bn.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},h=m=>{let y={type:bn.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",h)),s.send(a),i.next({type:bn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(_(Cn))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})(),Ef=new b(""),oC="XSRF-TOKEN",iC=new b("",{providedIn:"root",factory:()=>oC}),sC="X-XSRF-TOKEN",aC=new b("",{providedIn:"root",factory:()=>sC}),ti=class{},lC=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wo(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(_(Fe),_(gt),_(iC))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})();function cC(e,t){let n=e.url.toLowerCase();if(!R(Ef)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=R(ti).getToken(),o=R(aC);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var xf=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(xf||{});function uC(e,t){return{\u0275kind:e,\u0275providers:t}}function dC(...e){let t=[dl,Cf,If,{provide:dr,useExisting:If},{provide:Jo,useExisting:Cf},{provide:fl,useValue:cC,multi:!0},{provide:Ef,useValue:!0},{provide:ti,useClass:lC}];for(let n of e)t.push(...n.\u0275providers);return _a(t)}var bf=new b("");function fC(){return uC(xf.LegacyInterceptors,[{provide:bf,useFactory:tC},{provide:fl,useExisting:bf,multi:!0}])}var Sf=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ie({type:e})}static{this.\u0275inj=we({providers:[dC(fC())]})}}return e})();var ml=class extends $o{constructor(){super(...arguments),this.supportsDOMEvents=!0}},gl=class e extends ml{static makeCurrent(){mf(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=mC();return n==null?null:gC(n)}resetBaseElement(){pr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Wo(document.cookie,t)}},pr=null;function mC(){return pr=pr||document.querySelector("base"),pr?pr.getAttribute("href"):null}function gC(e){return new URL(e,document.baseURI).pathname}var yl=class{addToWindow(t){De.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new E(5103,!1);return i},De.getAllAngularTestabilities=()=>t.getAllTestabilities(),De.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=De.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};De.frameworkStabilizers||(De.frameworkStabilizers=[]),De.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?$t().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},yC=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})(),vl=new b(""),Nf=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(_(vl),_(W))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})(),ni=class{constructor(t){this._doc=t}},pl="ng-app-id",kf=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ko(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${pl}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(pl),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(pl,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(_(Fe),_(ko),_(Va,8),_(gt))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})(),hl={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},wl=/%COMP%/g,Of="%COMP%",vC=`_nghost-${Of}`,DC=`_ngcontent-${Of}`,wC=!0,IC=new b("",{providedIn:"root",factory:()=>wC});function CC(e){return DC.replace(wl,e)}function bC(e){return vC.replace(wl,e)}function Ff(e,t){return t.map(n=>n.replace(wl,e))}var Mf=(()=>{class e{constructor(n,r,o,i,s,a,l,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Ko(a),this.defaultRenderer=new hr(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===We.ShadowDom&&(r=ve(X({},r),{encapsulation:We.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof ri?o.applyToHost(n):o instanceof mr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case We.Emulated:i=new ri(l,c,r,this.appId,u,s,a,d);break;case We.ShadowDom:return new Dl(l,c,n,r,s,a,this.nonce,d);default:i=new mr(l,c,r,u,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(_(Nf),_(kf),_(ko),_(IC),_(Fe),_(gt),_(W),_(Va))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})(),hr=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(hl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Tf(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Tf(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new E(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=hl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=hl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(et.DashCase|et.Important)?t.style.setProperty(n,r,o&et.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&et.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=$t().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Tf(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Dl=class extends hr{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Ff(o.id,o.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},mr=class extends hr{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=l?Ff(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ri=class extends mr{constructor(t,n,r,o,i,s,a,l){let c=o+"-"+r.id;super(t,n,r,i,s,a,l,c),this.contentAttr=CC(c),this.hostAttr=bC(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},_C=(()=>{class e extends ni{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(_(Fe))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})(),Af=["alt","control","meta","shift"],EC={"\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"},xC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},SC=(()=>{class e extends ni{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$t().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Af.forEach(c=>{let u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=EC[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Af.forEach(s=>{if(s!==o){let a=xC[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(_(Fe))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac})}}return e})();function MC(){gl.makeCurrent()}function TC(){return new Xe}function AC(){return pd(document),document}var NC=[{provide:gt,useValue:gf},{provide:La,useValue:MC,multi:!0},{provide:Fe,useFactory:AC,deps:[]}],Pf=tl(lf,"browser",NC),kC=new b(""),OC=[{provide:ar,useClass:yl,deps:[]},{provide:Qa,useClass:Bo,deps:[W,Uo,ar]},{provide:Bo,useClass:Bo,deps:[W,Uo,ar]}],FC=[{provide:xo,useValue:"root"},{provide:Xe,useFactory:TC,deps:[]},{provide:vl,useClass:_C,multi:!0,deps:[Fe,W,gt]},{provide:vl,useClass:SC,multi:!0,deps:[Fe]},Mf,kf,Nf,{provide:er,useExisting:Mf},{provide:Cn,useClass:yC,deps:[]},[]],Rf=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ko,useValue:n.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(_(kC,12))}}static{this.\u0275mod=Ie({type:e})}static{this.\u0275inj=we({providers:[...FC,...OC],imports:[Zo,cf]})}}return e})();var RC=typeof global=="object"&&global&&global.Object===Object&&global,oi=RC;var LC=typeof self=="object"&&self&&self.Object===Object&&self,VC=oi||LC||Function("return this")(),Z=VC;var jC=Z.Symbol,ae=jC;var Lf=Object.prototype,BC=Lf.hasOwnProperty,UC=Lf.toString,gr=ae?ae.toStringTag:void 0;function HC(e){var t=BC.call(e,gr),n=e[gr];try{e[gr]=void 0;var r=!0}catch{}var o=UC.call(e);return r&&(t?e[gr]=n:delete e[gr]),o}var Vf=HC;var $C=Object.prototype,WC=$C.toString;function GC(e){return WC.call(e)}var jf=GC;var zC="[object Null]",qC="[object Undefined]",Bf=ae?ae.toStringTag:void 0;function ZC(e){return e==null?e===void 0?qC:zC:Bf&&Bf in Object(e)?Vf(e):jf(e)}var Ue=ZC;function KC(e){return e!=null&&typeof e=="object"}var le=KC;var YC="[object Symbol]";function JC(e){return typeof e=="symbol"||le(e)&&Ue(e)==YC}var Dt=JC;function QC(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Uf=QC;var XC=Array.isArray,Y=XC;var eb=1/0,Hf=ae?ae.prototype:void 0,$f=Hf?Hf.toString:void 0;function Wf(e){if(typeof e=="string")return e;if(Y(e))return Uf(e,Wf)+"";if(Dt(e))return $f?$f.call(e):"";var t=e+"";return t=="0"&&1/e==-eb?"-0":t}var Gf=Wf;var tb=/\s/;function nb(e){for(var t=e.length;t--&&tb.test(e.charAt(t)););return t}var zf=nb;var rb=/^\s+/;function ob(e){return e&&e.slice(0,zf(e)+1).replace(rb,"")}var qf=ob;function ib(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ce=ib;var Zf=NaN,sb=/^[-+]0x[0-9a-f]+$/i,ab=/^0b[01]+$/i,lb=/^0o[0-7]+$/i,cb=parseInt;function ub(e){if(typeof e=="number")return e;if(Dt(e))return Zf;if(ce(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ce(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qf(e);var n=ab.test(e);return n||lb.test(e)?cb(e.slice(2),n?2:8):sb.test(e)?Zf:+e}var Kf=ub;var Yf=1/0,db=17976931348623157e292;function fb(e){if(!e)return e===0?e:0;if(e=Kf(e),e===Yf||e===-Yf){var t=e<0?-1:1;return t*db}return e===e?e:0}var Jf=fb;function pb(e){var t=Jf(e),n=t%1;return t===t?n?t-n:t:0}var Qf=pb;function hb(e){return e}var Xf=hb;var mb="[object AsyncFunction]",gb="[object Function]",yb="[object GeneratorFunction]",vb="[object Proxy]";function Db(e){if(!ce(e))return!1;var t=Ue(e);return t==gb||t==yb||t==mb||t==vb}var ii=Db;var wb=Z["__core-js_shared__"],si=wb;var ep=function(){var e=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ib(e){return!!ep&&ep in e}var tp=Ib;var Cb=Function.prototype,bb=Cb.toString;function _b(e){if(e!=null){try{return bb.call(e)}catch{}try{return e+""}catch{}}return""}var st=_b;var Eb=/[\\^$.*+?()[\]{}|]/g,xb=/^\[object .+?Constructor\]$/,Sb=Function.prototype,Mb=Object.prototype,Tb=Sb.toString,Ab=Mb.hasOwnProperty,Nb=RegExp("^"+Tb.call(Ab).replace(Eb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kb(e){if(!ce(e)||tp(e))return!1;var t=ii(e)?Nb:xb;return t.test(st(e))}var np=kb;function Ob(e,t){return e?.[t]}var rp=Ob;function Fb(e,t){var n=rp(e,t);return np(n)?n:void 0}var me=Fb;var Pb=me(Z,"WeakMap"),ai=Pb;var op=Object.create,Rb=function(){function e(){}return function(t){if(!ce(t))return{};if(op)return op(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ip=Rb;function Lb(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var sp=Lb;var Vb=function(){try{var e=me(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Il=Vb;function jb(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ap=jb;function Bb(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var lp=Bb;var Ub=9007199254740991,Hb=/^(?:0|[1-9]\d*)$/;function $b(e,t){var n=typeof e;return t=t??Ub,!!t&&(n=="number"||n!="symbol"&&Hb.test(e))&&e>-1&&e%1==0&&e<t}var li=$b;function Wb(e,t,n){t=="__proto__"&&Il?Il(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ci=Wb;function Gb(e,t){return e===t||e!==e&&t!==t}var _n=Gb;var zb=Object.prototype,qb=zb.hasOwnProperty;function Zb(e,t,n){var r=e[t];(!(qb.call(e,t)&&_n(r,n))||n===void 0&&!(t in e))&&ci(e,t,n)}var ui=Zb;function Kb(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),o?ci(n,a,l):ui(n,a,l)}return n}var wt=Kb;var Yb=9007199254740991;function Jb(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yb}var En=Jb;function Qb(e){return e!=null&&En(e.length)&&!ii(e)}var xn=Qb;var Xb=Object.prototype;function e_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xb;return e===n}var Sn=e_;function t_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var cp=t_;var n_="[object Arguments]";function r_(e){return le(e)&&Ue(e)==n_}var Cl=r_;var up=Object.prototype,o_=up.hasOwnProperty,i_=up.propertyIsEnumerable,s_=Cl(function(){return arguments}())?Cl:function(e){return le(e)&&o_.call(e,"callee")&&!i_.call(e,"callee")},di=s_;function a_(){return!1}var dp=a_;var hp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fp=hp&&typeof module=="object"&&module&&!module.nodeType&&module,l_=fp&&fp.exports===hp,pp=l_?Z.Buffer:void 0,c_=pp?pp.isBuffer:void 0,u_=c_||dp,Wt=u_;var d_="[object Arguments]",f_="[object Array]",p_="[object Boolean]",h_="[object Date]",m_="[object Error]",g_="[object Function]",y_="[object Map]",v_="[object Number]",D_="[object Object]",w_="[object RegExp]",I_="[object Set]",C_="[object String]",b_="[object WeakMap]",__="[object ArrayBuffer]",E_="[object DataView]",x_="[object Float32Array]",S_="[object Float64Array]",M_="[object Int8Array]",T_="[object Int16Array]",A_="[object Int32Array]",N_="[object Uint8Array]",k_="[object Uint8ClampedArray]",O_="[object Uint16Array]",F_="[object Uint32Array]",H={};H[x_]=H[S_]=H[M_]=H[T_]=H[A_]=H[N_]=H[k_]=H[O_]=H[F_]=!0;H[d_]=H[f_]=H[__]=H[p_]=H[E_]=H[h_]=H[m_]=H[g_]=H[y_]=H[v_]=H[D_]=H[w_]=H[I_]=H[C_]=H[b_]=!1;function P_(e){return le(e)&&En(e.length)&&!!H[Ue(e)]}var mp=P_;function R_(e){return function(t){return e(t)}}var Mn=R_;var gp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yr=gp&&typeof module=="object"&&module&&!module.nodeType&&module,L_=yr&&yr.exports===gp,bl=L_&&oi.process,V_=function(){try{var e=yr&&yr.require&&yr.require("util").types;return e||bl&&bl.binding&&bl.binding("util")}catch{}}(),at=V_;var yp=at&&at.isTypedArray,j_=yp?Mn(yp):mp,fi=j_;var B_=Object.prototype,U_=B_.hasOwnProperty;function H_(e,t){var n=Y(e),r=!n&&di(e),o=!n&&!r&&Wt(e),i=!n&&!r&&!o&&fi(e),s=n||r||o||i,a=s?cp(e.length,String):[],l=a.length;for(var c in e)(t||U_.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||li(c,l)))&&a.push(c);return a}var pi=H_;function $_(e,t){return function(n){return e(t(n))}}var hi=$_;var W_=hi(Object.keys,Object),vp=W_;var G_=Object.prototype,z_=G_.hasOwnProperty;function q_(e){if(!Sn(e))return vp(e);var t=[];for(var n in Object(e))z_.call(e,n)&&n!="constructor"&&t.push(n);return t}var Dp=q_;function Z_(e){return xn(e)?pi(e):Dp(e)}var Ye=Z_;function K_(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var wp=K_;var Y_=Object.prototype,J_=Y_.hasOwnProperty;function Q_(e){if(!ce(e))return wp(e);var t=Sn(e),n=[];for(var r in e)r=="constructor"&&(t||!J_.call(e,r))||n.push(r);return n}var Ip=Q_;function X_(e){return xn(e)?pi(e,!0):Ip(e)}var Tn=X_;var eE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tE=/^\w*$/;function nE(e,t){if(Y(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Dt(e)?!0:tE.test(e)||!eE.test(e)||t!=null&&e in Object(t)}var An=nE;var rE=me(Object,"create"),lt=rE;function oE(){this.__data__=lt?lt(null):{},this.size=0}var Cp=oE;function iE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var bp=iE;var sE="__lodash_hash_undefined__",aE=Object.prototype,lE=aE.hasOwnProperty;function cE(e){var t=this.__data__;if(lt){var n=t[e];return n===sE?void 0:n}return lE.call(t,e)?t[e]:void 0}var _p=cE;var uE=Object.prototype,dE=uE.hasOwnProperty;function fE(e){var t=this.__data__;return lt?t[e]!==void 0:dE.call(t,e)}var Ep=fE;var pE="__lodash_hash_undefined__";function hE(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lt&&t===void 0?pE:t,this}var xp=hE;function Nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nn.prototype.clear=Cp;Nn.prototype.delete=bp;Nn.prototype.get=_p;Nn.prototype.has=Ep;Nn.prototype.set=xp;var _l=Nn;function mE(){this.__data__=[],this.size=0}var Sp=mE;function gE(e,t){for(var n=e.length;n--;)if(_n(e[n][0],t))return n;return-1}var It=gE;var yE=Array.prototype,vE=yE.splice;function DE(e){var t=this.__data__,n=It(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vE.call(t,n,1),--this.size,!0}var Mp=DE;function wE(e){var t=this.__data__,n=It(t,e);return n<0?void 0:t[n][1]}var Tp=wE;function IE(e){return It(this.__data__,e)>-1}var Ap=IE;function CE(e,t){var n=this.__data__,r=It(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Np=CE;function kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kn.prototype.clear=Sp;kn.prototype.delete=Mp;kn.prototype.get=Tp;kn.prototype.has=Ap;kn.prototype.set=Np;var Ct=kn;var bE=me(Z,"Map"),bt=bE;function _E(){this.size=0,this.__data__={hash:new _l,map:new(bt||Ct),string:new _l}}var kp=_E;function EE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Op=EE;function xE(e,t){var n=e.__data__;return Op(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _t=xE;function SE(e){var t=_t(this,e).delete(e);return this.size-=t?1:0,t}var Fp=SE;function ME(e){return _t(this,e).get(e)}var Pp=ME;function TE(e){return _t(this,e).has(e)}var Rp=TE;function AE(e,t){var n=_t(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Lp=AE;function On(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}On.prototype.clear=kp;On.prototype.delete=Fp;On.prototype.get=Pp;On.prototype.has=Rp;On.prototype.set=Lp;var Gt=On;var NE="Expected a function";function El(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(NE);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(El.Cache||Gt),n}El.Cache=Gt;var Vp=El;var kE=500;function OE(e){var t=Vp(e,function(r){return n.size===kE&&n.clear(),r}),n=t.cache;return t}var jp=OE;var FE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,PE=/\\(\\)?/g,RE=jp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(FE,function(n,r,o,i){t.push(o?i.replace(PE,"$1"):r||n)}),t}),Bp=RE;function LE(e){return e==null?"":Gf(e)}var Up=LE;function VE(e,t){return Y(e)?e:An(e,t)?[e]:Bp(Up(e))}var mi=VE;var jE=1/0;function BE(e){if(typeof e=="string"||Dt(e))return e;var t=e+"";return t=="0"&&1/e==-jE?"-0":t}var Et=BE;function UE(e,t){t=mi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Et(t[n++])];return n&&n==r?e:void 0}var gi=UE;function HE(e,t,n){var r=e==null?void 0:gi(e,t);return r===void 0?n:r}var Hp=HE;function $E(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var yi=$E;var WE=hi(Object.getPrototypeOf,Object),vi=WE;function GE(){this.__data__=new Ct,this.size=0}var $p=GE;function zE(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Wp=zE;function qE(e){return this.__data__.get(e)}var Gp=qE;function ZE(e){return this.__data__.has(e)}var zp=ZE;var KE=200;function YE(e,t){var n=this.__data__;if(n instanceof Ct){var r=n.__data__;if(!bt||r.length<KE-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gt(r)}return n.set(e,t),this.size=n.size,this}var qp=YE;function Fn(e){var t=this.__data__=new Ct(e);this.size=t.size}Fn.prototype.clear=$p;Fn.prototype.delete=Wp;Fn.prototype.get=Gp;Fn.prototype.has=zp;Fn.prototype.set=qp;var xt=Fn;function JE(e,t){return e&&wt(t,Ye(t),e)}var Zp=JE;function QE(e,t){return e&&wt(t,Tn(t),e)}var Kp=QE;var Xp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yp=Xp&&typeof module=="object"&&module&&!module.nodeType&&module,XE=Yp&&Yp.exports===Xp,Jp=XE?Z.Buffer:void 0,Qp=Jp?Jp.allocUnsafe:void 0;function e0(e,t){if(t)return e.slice();var n=e.length,r=Qp?Qp(n):new e.constructor(n);return e.copy(r),r}var eh=e0;function t0(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}var th=t0;function n0(){return[]}var Di=n0;var r0=Object.prototype,o0=r0.propertyIsEnumerable,nh=Object.getOwnPropertySymbols,i0=nh?function(e){return e==null?[]:(e=Object(e),th(nh(e),function(t){return o0.call(e,t)}))}:Di,Pn=i0;function s0(e,t){return wt(e,Pn(e),t)}var rh=s0;var a0=Object.getOwnPropertySymbols,l0=a0?function(e){for(var t=[];e;)yi(t,Pn(e)),e=vi(e);return t}:Di,wi=l0;function c0(e,t){return wt(e,wi(e),t)}var oh=c0;function u0(e,t,n){var r=t(e);return Y(e)?r:yi(r,n(e))}var Ii=u0;function d0(e){return Ii(e,Ye,Pn)}var vr=d0;function f0(e){return Ii(e,Tn,wi)}var ih=f0;var p0=me(Z,"DataView"),Ci=p0;var h0=me(Z,"Promise"),bi=h0;var m0=me(Z,"Set"),_i=m0;var sh="[object Map]",g0="[object Object]",ah="[object Promise]",lh="[object Set]",ch="[object WeakMap]",uh="[object DataView]",y0=st(Ci),v0=st(bt),D0=st(bi),w0=st(_i),I0=st(ai),zt=Ue;(Ci&&zt(new Ci(new ArrayBuffer(1)))!=uh||bt&&zt(new bt)!=sh||bi&&zt(bi.resolve())!=ah||_i&&zt(new _i)!=lh||ai&&zt(new ai)!=ch)&&(zt=function(e){var t=Ue(e),n=t==g0?e.constructor:void 0,r=n?st(n):"";if(r)switch(r){case y0:return uh;case v0:return sh;case D0:return ah;case w0:return lh;case I0:return ch}return t});var ct=zt;var C0=Object.prototype,b0=C0.hasOwnProperty;function _0(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&b0.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var dh=_0;var E0=Z.Uint8Array,Rn=E0;function x0(e){var t=new e.constructor(e.byteLength);return new Rn(t).set(new Rn(e)),t}var Ln=x0;function S0(e,t){var n=t?Ln(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var fh=S0;var M0=/\w*$/;function T0(e){var t=new e.constructor(e.source,M0.exec(e));return t.lastIndex=e.lastIndex,t}var ph=T0;var hh=ae?ae.prototype:void 0,mh=hh?hh.valueOf:void 0;function A0(e){return mh?Object(mh.call(e)):{}}var gh=A0;function N0(e,t){var n=t?Ln(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var yh=N0;var k0="[object Boolean]",O0="[object Date]",F0="[object Map]",P0="[object Number]",R0="[object RegExp]",L0="[object Set]",V0="[object String]",j0="[object Symbol]",B0="[object ArrayBuffer]",U0="[object DataView]",H0="[object Float32Array]",$0="[object Float64Array]",W0="[object Int8Array]",G0="[object Int16Array]",z0="[object Int32Array]",q0="[object Uint8Array]",Z0="[object Uint8ClampedArray]",K0="[object Uint16Array]",Y0="[object Uint32Array]";function J0(e,t,n){var r=e.constructor;switch(t){case B0:return Ln(e);case k0:case O0:return new r(+e);case U0:return fh(e,n);case H0:case $0:case W0:case G0:case z0:case q0:case Z0:case K0:case Y0:return yh(e,n);case F0:return new r;case P0:case V0:return new r(e);case R0:return ph(e);case L0:return new r;case j0:return gh(e)}}var vh=J0;function Q0(e){return typeof e.constructor=="function"&&!Sn(e)?ip(vi(e)):{}}var Dh=Q0;var X0="[object Map]";function ex(e){return le(e)&&ct(e)==X0}var wh=ex;var Ih=at&&at.isMap,tx=Ih?Mn(Ih):wh,Ch=tx;var nx="[object Set]";function rx(e){return le(e)&&ct(e)==nx}var bh=rx;var _h=at&&at.isSet,ox=_h?Mn(_h):bh,Eh=ox;var ix=1,sx=2,ax=4,xh="[object Arguments]",lx="[object Array]",cx="[object Boolean]",ux="[object Date]",dx="[object Error]",Sh="[object Function]",fx="[object GeneratorFunction]",px="[object Map]",hx="[object Number]",Mh="[object Object]",mx="[object RegExp]",gx="[object Set]",yx="[object String]",vx="[object Symbol]",Dx="[object WeakMap]",wx="[object ArrayBuffer]",Ix="[object DataView]",Cx="[object Float32Array]",bx="[object Float64Array]",_x="[object Int8Array]",Ex="[object Int16Array]",xx="[object Int32Array]",Sx="[object Uint8Array]",Mx="[object Uint8ClampedArray]",Tx="[object Uint16Array]",Ax="[object Uint32Array]",j={};j[xh]=j[lx]=j[wx]=j[Ix]=j[cx]=j[ux]=j[Cx]=j[bx]=j[_x]=j[Ex]=j[xx]=j[px]=j[hx]=j[Mh]=j[mx]=j[gx]=j[yx]=j[vx]=j[Sx]=j[Mx]=j[Tx]=j[Ax]=!0;j[dx]=j[Sh]=j[Dx]=!1;function Ei(e,t,n,r,o,i){var s,a=t&ix,l=t&sx,c=t&ax;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!ce(e))return e;var u=Y(e);if(u){if(s=dh(e),!a)return sp(e,s)}else{var d=ct(e),p=d==Sh||d==fx;if(Wt(e))return eh(e,a);if(d==Mh||d==xh||p&&!o){if(s=l||p?{}:Dh(e),!a)return l?oh(e,Kp(s,e)):rh(e,Zp(s,e))}else{if(!j[d])return o?e:{};s=vh(e,d,a)}}i||(i=new xt);var f=i.get(e);if(f)return f;i.set(e,s),Eh(e)?e.forEach(function(y){s.add(Ei(y,t,n,y,e,i))}):Ch(e)&&e.forEach(function(y,w){s.set(w,Ei(y,t,n,w,e,i))});var h=c?l?ih:vr:l?Tn:Ye,m=u?void 0:h(e);return ap(m||e,function(y,w){m&&(w=y,y=e[w]),ui(s,w,Ei(y,t,n,w,e,i))}),s}var Th=Ei;var Nx=1,kx=4;function Ox(e){return Th(e,Nx|kx)}var xl=Ox;var Fx="__lodash_hash_undefined__";function Px(e){return this.__data__.set(e,Fx),this}var Ah=Px;function Rx(e){return this.__data__.has(e)}var Nh=Rx;function xi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Gt;++t<n;)this.add(e[t])}xi.prototype.add=xi.prototype.push=Ah;xi.prototype.has=Nh;var kh=xi;function Lx(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Oh=Lx;function Vx(e,t){return e.has(t)}var Fh=Vx;var jx=1,Bx=2;function Ux(e,t,n,r,o,i){var s=n&jx,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=n&Bx?new kh:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],m=t[d];if(r)var y=s?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(y!==void 0){if(y)continue;p=!1;break}if(f){if(!Oh(t,function(w,q){if(!Fh(f,q)&&(h===w||o(h,w,n,r,i)))return f.push(q)})){p=!1;break}}else if(!(h===m||o(h,m,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var Si=Ux;function Hx(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var Ph=Hx;function $x(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Rh=$x;var Wx=1,Gx=2,zx="[object Boolean]",qx="[object Date]",Zx="[object Error]",Kx="[object Map]",Yx="[object Number]",Jx="[object RegExp]",Qx="[object Set]",Xx="[object String]",eS="[object Symbol]",tS="[object ArrayBuffer]",nS="[object DataView]",Lh=ae?ae.prototype:void 0,Sl=Lh?Lh.valueOf:void 0;function rS(e,t,n,r,o,i,s){switch(n){case nS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case tS:return!(e.byteLength!=t.byteLength||!i(new Rn(e),new Rn(t)));case zx:case qx:case Yx:return _n(+e,+t);case Zx:return e.name==t.name&&e.message==t.message;case Jx:case Xx:return e==t+"";case Kx:var a=Ph;case Qx:var l=r&Wx;if(a||(a=Rh),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=Gx,s.set(e,t);var u=Si(a(e),a(t),r,o,i,s);return s.delete(e),u;case eS:if(Sl)return Sl.call(e)==Sl.call(t)}return!1}var Vh=rS;var oS=1,iS=Object.prototype,sS=iS.hasOwnProperty;function aS(e,t,n,r,o,i){var s=n&oS,a=vr(e),l=a.length,c=vr(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var p=a[d];if(!(s?p in t:sS.call(t,p)))return!1}var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=s;++d<l;){p=a[d];var w=e[p],q=t[p];if(r)var N=s?r(q,w,p,t,e,i):r(w,q,p,e,t,i);if(!(N===void 0?w===q||o(w,q,n,r,i):N)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var Q=e.constructor,ge=t.constructor;Q!=ge&&"constructor"in e&&"constructor"in t&&!(typeof Q=="function"&&Q instanceof Q&&typeof ge=="function"&&ge instanceof ge)&&(m=!1)}return i.delete(e),i.delete(t),m}var jh=aS;var lS=1,Bh="[object Arguments]",Uh="[object Array]",Mi="[object Object]",cS=Object.prototype,Hh=cS.hasOwnProperty;function uS(e,t,n,r,o,i){var s=Y(e),a=Y(t),l=s?Uh:ct(e),c=a?Uh:ct(t);l=l==Bh?Mi:l,c=c==Bh?Mi:c;var u=l==Mi,d=c==Mi,p=l==c;if(p&&Wt(e)){if(!Wt(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new xt),s||fi(e)?Si(e,t,n,r,o,i):Vh(e,t,l,n,r,o,i);if(!(n&lS)){var f=u&&Hh.call(e,"__wrapped__"),h=d&&Hh.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,y=h?t.value():t;return i||(i=new xt),o(m,y,n,r,i)}}return p?(i||(i=new xt),jh(e,t,n,r,o,i)):!1}var $h=uS;function Wh(e,t,n,r,o){return e===t?!0:e==null||t==null||!le(e)&&!le(t)?e!==e&&t!==t:$h(e,t,n,r,Wh,o)}var Ti=Wh;var dS=1,fS=2;function pS(e,t,n,r){var o=n.length,i=o,s=!r;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var l=a[0],c=e[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in e))return!1}else{var d=new xt;if(r)var p=r(c,u,l,e,t,d);if(!(p===void 0?Ti(u,c,dS|fS,r,d):p))return!1}}return!0}var Gh=pS;function hS(e){return e===e&&!ce(e)}var Ai=hS;function mS(e){for(var t=Ye(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ai(o)]}return t}var zh=mS;function gS(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Ni=gS;function yS(e){var t=zh(e);return t.length==1&&t[0][2]?Ni(t[0][0],t[0][1]):function(n){return n===e||Gh(n,e,t)}}var qh=yS;function vS(e,t){return e!=null&&t in Object(e)}var Zh=vS;function DS(e,t,n){t=mi(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Et(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&En(o)&&li(s,o)&&(Y(e)||di(e)))}var Kh=DS;function wS(e,t){return e!=null&&Kh(e,t,Zh)}var Yh=wS;var IS=1,CS=2;function bS(e,t){return An(e)&&Ai(t)?Ni(Et(e),t):function(n){var r=Hp(n,e);return r===void 0&&r===t?Yh(n,e):Ti(t,r,IS|CS)}}var Jh=bS;function _S(e){return function(t){return t?.[e]}}var Qh=_S;function ES(e){return function(t){return gi(t,e)}}var Xh=ES;function xS(e){return An(e)?Qh(Et(e)):Xh(e)}var em=xS;function SS(e){return typeof e=="function"?e:e==null?Xf:typeof e=="object"?Y(e)?Jh(e[0],e[1]):qh(e):em(e)}var ki=SS;function MS(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ml=MS;function TS(e){return function(t,n,r){var o=Object(t);if(!xn(t)){var i=ki(n,3);t=Ye(t),n=function(a){return i(o[a],a,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:void 0}}var tm=TS;var AS=Math.max;function NS(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Qf(n);return o<0&&(o=AS(r+o,0)),lp(e,ki(t,3),o)}var nm=NS;var kS=tm(nm),Tl=kS;function OS(e){return e&&e.length?e[0]:void 0}var Oi=OS;var J={mreServiceBase:"https://test.kc-np.o360.cloud/Handlers/saml2.ashx",mreBaseUrl:"https://www.medicalreferenceengine.com/mre/",tokenServer:"/Token/token/",url:"/",appName:"kcApp",secret:""};var rm=[{name:"aa_togglePhysicianPaymentType (Dev Only)",sdkVisible:!1,example:""},{name:"aa_LoadPhyNpiTaxonomy (Dev Only)",sdkVisible:!1,example:""},{name:"aa_SetEgpSortRules (Dev Only)",sdkVisible:!1,example:{includePriority:"",includeSeverity:"",includeMortality:"",includeElixhauser:"",includeHcc:"",includeRa:""}},{name:"aa_CreateAgpInput (Dev Only)",sdkVisible:!1,example:""},{name:"acsuCloneDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByIds (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByUsernames (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuMergeMultiRegion (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveWebstratUser (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"addGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"addRemCodes (Dev Only)",sdkVisible:!1,example:{diagnosisCodes:[{code:"B700",codeType:"REMD",label:"short label",longLabel:"Long label"}],hcpcsCodes:[{code:"12001",codeType:"REMH",label:"short label",longLabel:"Long label",units:"1",modifier1:"26",modifier2:null,modifier3:null,modifier4:null,modifier5:null}]}},{name:"swapActiveAndGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"recordMode (Dev Only)",sdkVisible:!1,example:""},{name:"addCodes",sdkVisible:!0,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}],editedcode:null,codeSource:"encoder",documentHighlight:!0}},{name:"deleteCodes",sdkVisible:!0,example:{codes:[{uniqueId:"uniqueIdgoeshere",codeType:"I10CM"}]}},{name:"defaultSettings",sdkVisible:!1,example:""},{name:"getInputPatientClaim",sdkVisible:!1,example:""},{name:"getPayerList",sdkVisible:!0,example:{sendingFacility:"001",npi:null,payer:null,taxonomy:null,paymentType:"01"}},{name:"getPatientRecord",sdkVisible:!1,example:""},{name:"getPatientRecord-truncated",sdkVisible:!1,example:""},{name:"getOptimizerInput",sdkVisible:!1,example:""},{name:"cacAuthenticateUser (Dev Only)",sdkVisible:!1,example:{user:"UserName",pw:"EncryptedPW",isForLogin:!0}},{name:"cacChangePwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",currentPw:"EncryptedPw",newPw:"EncryptedPw"}},{name:"cacGetGroups (Dev Only)",sdkVisible:!1,example:""},{name:"cacResetPwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",newPw:"EncryptedPw"}},{name:"cacGetUserInfo (Dev Only)",sdkVisible:!1,example:{user:"UserName"}},{name:"cacUpdateLastLoginTime (Dev Only)",sdkVisible:!1,example:{user:12345}},{name:"callClaimsManager (Dev Only)",sdkVisible:!1,example:""},{name:"closeAllKCWindows",sdkVisible:!1,example:""},{name:"closeAllKCWindowsExceptEncoder",sdkVisible:!0,example:""},{name:"clearSelectedRow",sdkVisible:!0,example:""},{name:"clearPatientRecord",sdkVisible:!0,example:""},{name:"clearHighlight",sdkVisible:!1,example:""},{name:"editsCount",sdkVisible:!1,example:""},{name:"enableEncoder",sdkVisible:!1,example:""},{name:"disableEncoder",sdkVisible:!1,example:""},{name:"disableChildWindows",sdkVisible:!1,example:""},{name:"enableChildWindows",sdkVisible:!1,example:""},{name:"launchCodeSummaryReport",sdkVisible:!0,example:""},{name:"launchEdits",sdkVisible:!0,example:""},{name:"launchIndex",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchLogic",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchTabular",sdkVisible:!0,example:{codeType:"I10CM",code:"A000"}},{name:"launchFacilityLookup",sdkVisible:!0,example:{paymentType:"01",rateFilePath:"C:\\inetpub\\wwwroot\\HSS\\Data\\allpaykc"}},{name:"loadNotes",sdkVisible:!1,example:{AccessType:"All",codeType:"I10CM",NoteType:"Code",Identifier:"",IdentifierSearchLower:"",IdentifierSearchUpper:"",Category:"",Ids:{User:"",Facility:"",Organization:""},AllFacilities:!0}},{name:"loadOrganizationSettings",sdkVisible:!1,example:""},{name:"loadPatientRecord",sdkVisible:!0,example:""},{name:"openEncoder",sdkVisible:!0,example:""},{name:"potentialImpactDisplay (Dev Only)",sdkVisible:!1,example:""},{name:"potentialImpactClear",sdkVisible:!1,example:""},{name:"potentialImpactDisable",sdkVisible:!1,example:""},{name:"potentialImpactEnable",sdkVisible:!1,example:""},{name:"potentialImpactEnableEgp",sdkVisible:!1,example:{enabled:!1}},{name:"potentialImpactInitialize",sdkVisible:!1,example:""},{name:"resetApplication",sdkVisible:!0,example:""},{name:"savePatientRecord",sdkVisible:!0,example:""},{name:"selectRowOnHighlightClick",sdkVisible:!1,example:{uniqueId:"uniqueIdGoesHere"}},{name:"setAuthToken",sdkVisible:!1,example:""},{name:"toggleEgpCompression",sdkVisible:!1,example:{enableCompression:!1}},{name:"updateAbstractInfo",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",abstractInfo:"A"}]},{name:"updateBaseUrl",sdkVisible:!1,example:""},{name:"updateCodes",sdkVisible:!0,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",dxIndic1:"Y"},{uniqueId:"uniqueIdGoesHere",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider"},{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider",revCode:"0250",units:"1",modifier1:{value:"23"},i10Reimbursement:{charges:"$1,000.00"},i9Reimbursement:{charges:"$1,000.00"}}]},{name:"updateComments",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",comments:"C"}]},{name:"updateDemographics",sdkVisible:!0,example:""},{name:"updateDocumentCount",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",documentCount:"3"}]},{name:"updateExcludeFromBilling",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",excludeFromBilling:"X"}]},{name:"updateRedFlag",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",redFlag:"F"}]},{name:"hasCriticalEdits",sdkVisible:!0,example:""},{name:"hasEdits",sdkVisible:!0,example:""},{name:"ReloadMainPod",sdkVisible:!1,example:""},{name:"ReloadCodeSummary",sdkVisible:!1,example:""},{name:"ReloadDemographics",sdkVisible:!1,example:""},{name:"ReloadEdits",sdkVisible:!1,example:""},{name:"ReloadReimbursement",sdkVisible:!1,example:""},{name:"logout",sdkVisible:!0,example:""},{name:"getRowSpecificInfo",sdkVisible:!0,example:["uniqueId1GoesHere","uniqueId2GoesHere"]},{name:"isEditGroupPriceInProgress",sdkVisible:!1,example:""},{name:"addCodesNoEdit",sdkVisible:!1,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}]}},{name:"setQueryImpactVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"setSyncVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"showScratchCodeState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryBtn",sdkVisible:!1,example:{isVisible:!0}},{name:"updateCptWithRange",sdkVisible:!1,example:{codes:[{code:"",units:""}],emCodeRanges:[{from:"",to:""}]}},{name:"launchModal (Dev Only)",sdkVisible:!1,example:{messageType:"info",title:"Test Modal",message:["Test Modal"]}}];var fm=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(I(yt),I(rt))}}static{this.\u0275dir=z({type:e})}}return e})(),$i=(()=>{class e extends fm{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=yn(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,features:[_e]})}}return e})(),jn=new b(""),RS={provide:jn,useExisting:je(()=>kl),multi:!0},kl=(()=>{class e extends $i{writeValue(n){this.setProperty("checked",n)}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=yn(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&G("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[ot([RS]),_e]})}}return e})(),LS={provide:jn,useExisting:je(()=>Bn),multi:!0};function VS(){let e=$t()?$t().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var jS=new b(""),Bn=(()=>{class e extends fm{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!VS())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(I(yt),I(rt),I(jS,8))}}static{this.\u0275dir=z({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&G("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[ot([LS]),_e]})}}return e})();function St(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function pm(e){return e!=null&&typeof e.length=="number"}var Wi=new b(""),Ol=new b(""),BS=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ir=class{static min(t){return US(t)}static max(t){return HS(t)}static required(t){return hm(t)}static requiredTrue(t){return $S(t)}static email(t){return WS(t)}static minLength(t){return GS(t)}static maxLength(t){return zS(t)}static pattern(t){return qS(t)}static nullValidator(t){return Pi(t)}static compose(t){return wm(t)}static composeAsync(t){return Cm(t)}};function US(e){return t=>{if(St(t.value)||St(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function HS(e){return t=>{if(St(t.value)||St(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function hm(e){return St(e.value)?{required:!0}:null}function $S(e){return e.value===!0?null:{required:!0}}function WS(e){return St(e.value)||BS.test(e.value)?null:{email:!0}}function GS(e){return t=>St(t.value)||!pm(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function zS(e){return t=>pm(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function qS(e){if(!e)return Pi;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(St(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function Pi(e){return null}function mm(e){return e!=null}function gm(e){return lr(e)?Nt(e):e}function ym(e){let t={};return e.forEach(n=>{t=n!=null?X(X({},t),n):t}),Object.keys(t).length===0?null:t}function vm(e,t){return t.map(n=>n(e))}function ZS(e){return!e.validate}function Dm(e){return e.map(t=>ZS(t)?t:n=>t.validate(n))}function wm(e){if(!e)return null;let t=e.filter(mm);return t.length==0?null:function(n){return ym(vm(n,t))}}function Im(e){return e!=null?wm(Dm(e)):null}function Cm(e){if(!e)return null;let t=e.filter(mm);return t.length==0?null:function(n){let r=vm(n,t).map(gm);return ps(r).pipe(he(ym))}}function bm(e){return e!=null?Cm(Dm(e)):null}function om(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function _m(e){return e._rawValidators}function Em(e){return e._rawAsyncValidators}function Al(e){return e?Array.isArray(e)?e:[e]:[]}function Ri(e,t){return Array.isArray(e)?e.includes(t):e===t}function im(e,t){let n=Al(t);return Al(e).forEach(o=>{Ri(n,o)||n.push(o)}),n}function sm(e,t){return Al(t).filter(n=>!Ri(e,n))}var Li=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(t){this._rawValidators=t||[],this._composedValidatorFn=Im(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=bm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},qt=class extends Li{get formDirective(){return null}get path(){return null}},Zt=class extends Li{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Vi=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},KS={"[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"},aB=ve(X({},KS),{"[class.ng-submitted]":"isSubmitted"}),Gi=(()=>{class e extends Vi{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(I(Zt,2))}}static{this.\u0275dir=z({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&jo("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[_e]})}}return e})(),xm=(()=>{class e extends Vi{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(I(qt,10))}}static{this.\u0275dir=z({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&jo("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[_e]})}}return e})();var Dr="VALID",Fi="INVALID",Vn="PENDING",wr="DISABLED";function Sm(e){return(zi(e)?e.validators:e)||null}function YS(e){return Array.isArray(e)?Im(e):e||null}function Mm(e,t){return(zi(t)?t.asyncValidators:e)||null}function JS(e){return Array.isArray(e)?bm(e):e||null}function zi(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function QS(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new E(1e3,"");if(!r[n])throw new E(1001,"")}function XS(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new E(1002,"")})}var ji=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Dr}get invalid(){return this.status===Fi}get pending(){return this.status==Vn}get disabled(){return this.status===wr}get enabled(){return this.status!==wr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(im(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(im(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(sm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(sm(t,this._rawAsyncValidators))}hasValidator(t){return Ri(this._rawValidators,t)}hasAsyncValidator(t){return Ri(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Vn,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=wr,this.errors=null,this._forEachChild(r=>{r.disable(ve(X({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ve(X({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Dr,this._forEachChild(r=>{r.enable(ve(X({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(ve(X({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Dr||this.status===Vn)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wr:Dr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Vn,this._hasOwnPendingAsyncValidator=!0;let n=gm(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new oe,this.statusChanges=new oe}_calculateStatus(){return this._allControlsDisabled()?wr:this.errors?Fi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vn)?Vn:this._anyControlsHaveStatus(Fi)?Fi:Dr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){zi(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=YS(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=JS(this._rawAsyncValidators)}},Bi=class extends ji{constructor(t,n,r){super(Sm(n),Mm(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){XS(this,!0,t),Object.keys(t).forEach(r=>{QS(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var qi=new b("CallSetDisabledState",{providedIn:"root",factory:()=>Zi}),Zi="always";function Tm(e,t){return[...t.path,e]}function Nl(e,t,n=Zi){Fl(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),tM(e,t),rM(e,t),nM(e,t),eM(e,t)}function am(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Hi(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Ui(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function eM(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Fl(e,t){let n=_m(e);t.validator!==null?e.setValidators(om(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Em(e);t.asyncValidator!==null?e.setAsyncValidators(om(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Ui(t._rawValidators,o),Ui(t._rawAsyncValidators,o)}function Hi(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=_m(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=Em(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return Ui(t._rawValidators,r),Ui(t._rawAsyncValidators,r),n}function tM(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Am(e,t)})}function nM(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Am(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Am(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function rM(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function oM(e,t){e==null,Fl(e,t)}function iM(e,t){return Hi(e,t)}function Nm(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function sM(e){return Object.getPrototypeOf(e.constructor)===$i}function aM(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function km(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Bn?n=i:sM(i)?r=i:o=i}),o||r||n||null}function lM(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function lm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function cm(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Cr=class extends ji{constructor(t=null,n,r){super(Sm(n),Mm(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zi(n)&&(n.nonNullable||n.initialValueIsDefault)&&(cm(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){lm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){lm(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){cm(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var cM=e=>e instanceof Cr;var uM={provide:Zt,useExisting:je(()=>br)},um=Promise.resolve(),br=(()=>{class e extends Zt{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Cr,this._registered=!1,this.name="",this.update=new oe,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=km(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Nm(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(){Nl(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){um.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Ho(r);um.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Tm(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(I(qt,9),I(Wi,10),I(Ol,10),I(jn,10),I(In,8),I(qi,8))}}static{this.\u0275dir=z({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[te.None,"disabled","isDisabled"],model:[te.None,"ngModel","model"],options:[te.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ot([uM]),_e,Ut]})}}return e})(),Om=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=z({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})();var Fm=new b("");var dM={provide:qt,useExisting:je(()=>Pl)},Pl=(()=>{class e extends qt{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new oe,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Hi(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Nl(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){am(n.control||null,n,!1),lM(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,aM(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(am(r||null,n),cM(o)&&(Nl(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);oM(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&iM(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Fl(this.form,this),this._oldForm&&Hi(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(r){return new(r||e)(I(Wi,10),I(Ol,10),I(qi,8))}}static{this.\u0275dir=z({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&G("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[te.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ot([dM]),_e,Ut]})}}return e})();var fM={provide:Zt,useExisting:je(()=>Rl)},Rl=(()=>{class e extends Zt{set isDisabled(n){}static{this._ngModelWarningSentOnce=!1}constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new oe,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=km(this,i)}ngOnChanges(n){this._added||this._setUpControl(),Nm(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Tm(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(r){return new(r||e)(I(qt,13),I(Wi,10),I(Ol,10),I(jn,10),I(Fm,8))}}static{this.\u0275dir=z({type:e,selectors:[["","formControlName",""]],inputs:{name:[te.None,"formControlName","name"],isDisabled:[te.None,"disabled","isDisabled"],model:[te.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[ot([fM]),_e,Ut]})}}return e})(),pM={provide:jn,useExisting:je(()=>Un),multi:!0};function Pm(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function hM(e){return e.split(":")[0]}var Un=(()=>{class e extends $i{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r=this._getOptionId(n),o=Pm(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=hM(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=yn(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&G("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[ot([pM]),_e]})}}return e})(),Ki=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Pm(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))}static{this.\u0275fac=function(r){return new(r||e)(I(rt),I(yt),I(Un,9))}}static{this.\u0275dir=z({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})(),mM={provide:jn,useExisting:je(()=>Rm),multi:!0};function dm(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function gM(e){return e.split(":")[0]}var Rm=(()=>{class e extends $i{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let l=s[a],c=this._getOptionValue(l.value);o.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=gM(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=yn(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&G("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[ot([mM]),_e]})}}return e})(),Yi=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(dm(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(dm(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))}static{this.\u0275fac=function(r){return new(r||e)(I(rt),I(yt),I(Rm,9))}}static{this.\u0275dir=z({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();var yM=(()=>{class e{constructor(){this._validator=Pi}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Pi,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=z({type:e,features:[Ut]})}}return e})();var vM={provide:Wi,useExisting:je(()=>Ll),multi:!0};var Ll=(()=>{class e extends yM{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ho,this.createValidator=n=>hm}enabled(n){return n}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=yn(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&Ja("required",o._enabled?"":null)},inputs:{required:"required"},features:[ot([vM]),_e]})}}return e})();var Lm=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ie({type:e})}static{this.\u0275inj=we({})}}return e})();var Vm=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:qi,useValue:n.callSetDisabledState??Zi}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ie({type:e})}static{this.\u0275inj=we({imports:[Lm]})}}return e})(),jm=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Fm,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:qi,useValue:n.callSetDisabledState??Zi}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ie({type:e})}static{this.\u0275inj=we({imports:[Lm]})}}return e})();var Hn=(()=>{class e{constructor(){this.signInForm=new Bi({username:new Cr({value:"",disabled:!1},[Ir.required]),organization:new Cr({value:"Hartford HealthCare",disabled:!1},[Ir.required])}),this.serverErrorMessageModel={id:"ServerError",messageType:"error",content:"",visible:!1},this.clientErrorMessageModel={id:"ClientError",messageType:"error",content:"Review the form and correct highlighted fields.",visible:!1},this.busy=!1,this.advancedMode=!1,this.serverError=this.serverErrorMessageModel,this.clientError=this.clientErrorMessageModel,this.username="",this.organization="Hartford HealthCare",this.signInButtonText=this.advancedMode?"Generate Token":"Launch Encoder",this.signInHeaderText=this.advancedMode?"Create Token":"Enter Info",this.userNameDisabled=!1}clearClientError(){this.serverError.visible=!1,this.clientError.visible=!1,this.signInForm.markAsPristine()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ji=(()=>{class e{constructor(){}wrapAsArray(n){return n.charAt(0)!=="["&&(n="["+n),n.charAt(n.length)!=="]"&&(n=n+"]"),n}removeBrackets(n){return n.charAt(0)==="["&&(n=n.substring(1)),n.charAt(n.length-1)==="]"&&(n=n.substring(0,n.length-1)),n}isJson(n){try{return JSON.parse(n)&&n}catch{return!1}}getCurrentDate(){let n=new Date,r=n.getDate(),o=n.getMonth()+1,i=n.getFullYear();return o+"/"+r+"/"+i}getBirthDateISO(){let n=new Date;return n.setFullYear(n.getFullYear()-30),n.toISOString()}getCurrentDateISO(){return new Date().toISOString()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Qi=(()=>{class e{constructor(n,r,o){this.signInService=n,this.stringService=r,this.http=o,this.kcSdk=window.kcSdk,this.sessionTypes=[this.kcSdk.sessionTypes.DX,this.kcSdk.sessionTypes.CMPX,this.kcSdk.sessionTypes.I10CM,this.kcSdk.sessionTypes.ICD10PCS,this.kcSdk.sessionTypes.HCPCS],this.i9I10States=[this.kcSdk.i9I10States.I9,this.kcSdk.i9I10States.I10],this.patientTypes=[this.kcSdk.patientType.INPATIENT,this.kcSdk.patientType.OUTPATIENT,this.kcSdk.patientType.IRF,this.kcSdk.patientType.CAH,this.kcSdk.patientType.SNF],this.selectedPatientType=this.patientTypes[0],this.selectedI9I10State=this.i9I10States[1],this.selectedSessionType=this.sessionTypes[0],this.selectedEncoderTab=this.kcSdk.encoderTabs.LOGIC,this.encoderPhraseCode="",this.WEB_KC="web/KC.html",this.WEB_ENCODER="web/Encoder.html",this.exampleUrl="http://www.google.com",this.exampleDemographicsData={sex:"M",sendingFacility:"001",birthDate:this.stringService.getBirthDateISO(),admitDate:this.stringService.getCurrentDateISO(),dischargeDate:this.stringService.getCurrentDateISO(),patientType:this.kcSdk.patientType.INPATIENT,financialClass:"09"},this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2),this.encoderTabs=[this.kcSdk.encoderTabs.LOGIC,this.kcSdk.encoderTabs.INDEX,this.kcSdk.encoderTabs.TABULAR],this.clientExampleToken="",this.selectedPod="",this.outputJson="",this.sdkKcIsListening=!1,this.sdkEncoderIsListening=!1,this.version=this.kcSdk.version,this.exampleAuthToken={access_token:""},this.closeAllKCWindows=this.kcSdk.closeAllKCWindows,this.workflow=this.kcSdk.workflow,this.selectedWorkflowApi=Oi(this.kcSdk.workflow),this.workflowInput=J.url+this.WEB_KC,this.kcWindowName=this.kcSdk.kcWindow.name,this.encoderWindowName=this.kcSdk.encoderWindow.name,this.apisForAllWindows=[{name:"launch KC",fn:this.kcSdk.kcWindow.launch,windowName:this.kcWindowName},{name:"launch Encoder",fn:this.kcSdk.encoderWindow.launch,windowName:this.encoderWindowName},{name:"loadPatientRecord",fn:this.kcSdk.kcWindow.loadPatientRecord,windowName:this.kcWindowName},{name:"assignConfig",fn:this.kcSdk.kcWindow.assignConfig,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.kcWindow.setAuthToken,windowName:this.kcWindowName},{name:"setDemographics",fn:this.kcSdk.kcWindow.setDemographics,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.encoderWindow.setAuthToken,windowName:this.encoderWindowName},{name:"setDemographics",fn:this.kcSdk.encoderWindow.setDemographics,windowName:this.encoderWindowName},{name:"addCodes",fn:this.kcSdk.kcWindow.addCodes,windowName:this.kcWindowName},{name:"clearPatientRecord",fn:this.kcSdk.kcWindow.clearPatientRecord,windowName:this.kcWindowName},{name:"clearSelectedRow",fn:this.kcSdk.kcWindow.clearSelectedRow,windowName:this.kcWindowName},{name:"closeAllKCWindowsExceptEncoder",fn:this.kcSdk.kcWindow.closeAllKCWindowsExceptEncoder,windowName:this.kcWindowName},{name:"deleteCodes",fn:this.kcSdk.kcWindow.deleteCodes,windowName:this.kcWindowName},{name:"getPayerList",fn:this.kcSdk.kcWindow.getPayerList,windowName:this.kcWindowName},{name:"getRowSpecificInfo",fn:this.kcSdk.kcWindow.getRowSpecificInfo,windowName:this.kcWindowName},{name:"hasCriticalEdits",fn:this.kcSdk.kcWindow.hasCriticalEdits,windowName:this.kcWindowName},{name:"hasEdits",fn:this.kcSdk.kcWindow.hasEdits,windowName:this.kcWindowName},{name:"launchCodeSummaryReport",fn:this.kcSdk.kcWindow.launchCodeSummaryReport,windowName:this.kcWindowName},{name:"launchEdits",fn:this.kcSdk.kcWindow.launchEdits,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.kcWindow.launchIndex,windowName:this.kcWindowName},{name:"launchLogic",fn:this.kcSdk.kcWindow.launchLogic,windowName:this.kcWindowName},{name:"launchTabular",fn:this.kcSdk.kcWindow.launchTabular,windowName:this.kcWindowName},{name:"launchFacilityLookup",fn:this.kcSdk.kcWindow.launchFacilityLookup,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.encoderWindow.launchIndex,windowName:this.encoderWindowName},{name:"launchLogic",fn:this.kcSdk.encoderWindow.launchLogic,windowName:this.encoderWindowName},{name:"launchTabular",fn:this.kcSdk.encoderWindow.launchTabular,windowName:this.encoderWindowName},{name:"logout",fn:this.kcSdk.kcWindow.logout,windowName:this.kcWindowName},{name:"resetApplication",fn:this.kcSdk.kcWindow.resetApplication,windowName:this.kcWindowName},{name:"savePatientRecord",fn:this.kcSdk.kcWindow.savePatientRecord,windowName:this.kcWindowName},{name:"updateCodes",fn:this.kcSdk.kcWindow.updateCodes,windowName:this.kcWindowName},{name:"updateDemographics",fn:this.kcSdk.kcWindow.updateDemographics,windowName:this.kcWindowName},{name:"openEncoder",fn:this.kcSdk.kcWindow.openEncoder,windowName:this.kcWindowName}],this.availableApis=xl(this.apisForAllWindows),this.availableApiSelected=this.availableApis[0],this.workflowWindow=this.kcWindowName,this.runWorkflow=this.kcSdk.processWorkflow,this.doSigninSubmit=()=>{setTimeout(()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}if(document.getElementById("kc-sdk-advanced-mode").checked)this.generateToken();else{let s={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:J.appName,client_secret:J.secret};this.setAuthToken(s).subscribe({next:()=>{this.launchEncoder()},error:a=>{this.signInService.serverError.content=a}})}this.signInService.clearClientError()})},this.generateToken=()=>{if(this.signInService.signInForm.valid){let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:J.appName,client_secret:J.secret};this.setAuthToken(i).subscribe({next:()=>{this.signInService.clearClientError(),this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!1,this.signInService.signInForm.markAsPristine(),this.clientExampleToken=this.exampleAuthToken.access_token},error:s=>{this.signInService.serverError.content=s}})}else this.signInService.serverError.visible=!1,this.signInService.clientError.content="Review the form and correct highlighted fields.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine()},this.launchEncoder=()=>{let i={sessionType:this.selectedSessionType,encoderTab:this.selectedEncoderTab,codePhrase:this.encoderPhraseCode},s=J.url+this.WEB_ENCODER,a=this.encoderDemographics,l=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.encoderWindow.launch(s,this.exampleAuthToken,l,a,i)},this.setAuthToken=i=>new $(s=>{let a={headers:new it({"Content-Type":"application/json"})},l={username:btoa(i.username),organization:i.organizationId,clientId:J.appName};this.http.post(J.tokenServer+"orgLogin",l,a).subscribe({next:c=>{c&&(this.exampleAuthToken.access_token=c.token,this.logOutput("auth","token generated - userName:'"+i.username+"' org: '"+i.organizationId+"'")),s.next()},error:c=>{c.status===401&&(this.exampleAuthToken.access_token="",this.signInService.serverError.visible=!1,this.signInService.clientError.content="Failed to authenticate user.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine());let u=c&&c.message?c.message:"undefined error message";this.logOutput("auth","token exception: "+u),s.error(u)}})}),this.onStateChange=()=>{this.filterSessionTypes(this.selectedI9I10State)},this.onPatientTypeChange=()=>{try{let i=JSON.parse(this.encoderDemographics);i.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(i,null,2)}catch{this.exampleDemographicsData.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2)}},this.launchKc=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:J.appName,client_secret:J.secret};this.setAuthToken(i).subscribe({next:s=>{let a=J.url+this.WEB_KC,l=this.encoderDemographics,c=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.kcWindow.launch(a,this.exampleAuthToken,c,l)},error:s=>{this.signInService.serverError.content=s}})},this.launchReferences=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:J.appName,client_secret:J.secret};this.setAuthToken(i).subscribe({next:()=>{this.kcSdk.launchReferences(this.encoderPhraseCode,this.selectedSessionType.name,this.exampleAuthToken.access_token)},error:s=>{this.signInService.serverError.content=s}})},this.selectedSessionType=this.sessionTypes[0]}filterSessionTypes(n){this.sessionTypes.length=0;for(let r in this.kcSdk.sessionTypes){let o=this.kcSdk.sessionTypes[r];o.state.indexOf(n.value)>-1&&this.sessionTypes.push(o)}this.selectedSessionType=this.sessionTypes[0]}logOutput(n,r){let o={event:n,response:this.stringService.isJson(r)?JSON.parse(r):r};o.event==="editGroupPriceCompleted"&&(o.response=[]),this.outputJson=this.outputJson?[this.stringService.removeBrackets(this.outputJson),JSON.stringify(o,null,2)].join(`,
9
- `):JSON.stringify(o,null,2),this.outputJson=this.stringService.wrapAsArray(this.outputJson),this.scrollLogToBottom()}scrollLogToBottom(){setTimeout(()=>{let n=document.getElementById("kc-sdk-input");n&&(n.scrollTop=n.scrollHeight)})}static{this.\u0275fac=function(r){return new(r||e)(_(Hn),_(Ji),_(dl))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Xi=e=>({"tk-rfrm-has-error":e}),$m=(e,t)=>({"tk-form-field-error":e,"":t});function DM(e,t){if(e&1&&(v(0,"div",27),O(1),g()),e&2){let n=P();D(),Dn(" ",n.SignInService.clientError.content," ")}}function wM(e,t){if(e&1&&(v(0,"div",27),O(1),g()),e&2){let n=P();D(),Dn(" ",n.SignInService.serverError.content," ")}}function IM(e,t){e&1&&(v(0,"span",28),O(1," User name is required. "),g())}function CM(e,t){e&1&&(v(0,"span",29),O(1," Organization is required. "),g())}function bM(e,t){if(e&1){let n=ke();v(0,"button",30),G("click",function(){B(n);let o=P();return U(o.SdkTesterService.launchKc())}),O(1," Launch KC "),g()}if(e&2){let n=P();x("disabled",n.SignInService.busy)}}function _M(e,t){if(e&1){let n=ke();v(0,"button",31),G("click",function(){B(n);let o=P();return U(o.SdkTesterService.launchReferences())}),O(1," Launch References "),g()}if(e&2){let n=P();x("disabled",n.SignInService.busy)}}function EM(e,t){if(e&1){let n=ke();v(0,"tr")(1,"td",7)(2,"label",32),O(3,"PhraseCode:"),g(),v(4,"input",33),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.SdkTesterService.encoderPhraseCode,o)||(i.SdkTesterService.encoderPhraseCode=o),U(o)}),g()()()}if(e&2){let n=P();D(4),Ee("ngModel",n.SdkTesterService.encoderPhraseCode)}}function xM(e,t){if(e&1&&(v(0,"option",38),O(1),g()),e&2){let n=t.$implicit;x("value",n),D(),Ze(n)}}function SM(e,t){if(e&1){let n=ke();v(0,"tr")(1,"td",34)(2,"label",35),O(3,"Encoder Tab:"),g(),v(4,"select",36),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.SdkTesterService.selectedEncoderTab,o)||(i.SdkTesterService.selectedEncoderTab=o),U(o)}),se(5,xM,2,2,"option",37),g()()()}if(e&2){let n=P();D(4),Ee("ngModel",n.SdkTesterService.selectedEncoderTab),D(),x("ngForOf",n.SdkTesterService.encoderTabs)}}function MM(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;x("ngValue",n),D(),Ze(n.value)}}function TM(e,t){if(e&1){let n=ke();v(0,"tr")(1,"td",34)(2,"label",39),O(3,"State:"),g(),v(4,"select",40),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.SdkTesterService.selectedI9I10State,o)||(i.SdkTesterService.selectedI9I10State=o),U(o)}),G("change",function(){B(n);let o=P();return U(o.SdkTesterService.onStateChange())}),se(5,MM,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),Ee("ngModel",n.SdkTesterService.selectedI9I10State),D(),x("ngForOf",n.SdkTesterService.i9I10States)}}function AM(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;x("ngValue",n),D(),Ze(n.name)}}function NM(e,t){if(e&1){let n=ke();v(0,"tr")(1,"td",34)(2,"label",43),O(3,"SessionType:"),g(),v(4,"select",44),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.SdkTesterService.selectedSessionType,o)||(i.SdkTesterService.selectedSessionType=o),U(o)}),se(5,AM,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),Ee("ngModel",n.SdkTesterService.selectedSessionType),D(),x("ngForOf",n.SdkTesterService.sessionTypes)}}function kM(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;x("ngValue",n),D(),Ze(n.displayValue)}}function OM(e,t){if(e&1){let n=ke();v(0,"tr")(1,"td",34)(2,"label",45),O(3,"Patient Type:"),g(),v(4,"select",46),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.SdkTesterService.selectedPatientType,o)||(i.SdkTesterService.selectedPatientType=o),U(o)}),G("change",function(){B(n);let o=P();return U(o.SdkTesterService.onPatientTypeChange())}),se(5,kM,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),Ee("ngModel",n.SdkTesterService.selectedPatientType),D(),x("ngForOf",n.SdkTesterService.patientTypes)}}function FM(e,t){if(e&1){let n=ke();v(0,"tr")(1,"td",7)(2,"label"),O(3,"Demographics:"),g(),v(4,"textarea",47),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.SdkTesterService.encoderDemographics,o)||(i.SdkTesterService.encoderDemographics=o),U(o)}),g()()()}if(e&2){let n=P();D(4),Ee("ngModel",n.SdkTesterService.encoderDemographics)}}var Wm=(()=>{class e{constructor(n,r){this.signInService=n,this.sdkTesterService=r,this.userNameError=!1,this.orgError=!1,this.inAdvancedMode=!1,this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService}get username(){return this.signInService.signInForm.get("username")}get organization(){return this.signInService.signInForm.get("organization")}static{this.\u0275fac=function(r){return new(r||e)(I(Hn),I(Qi))}}static{this.\u0275cmp=Eo({type:e,selectors:[["app-sign-in"]],inputs:{inAdvancedMode:"inAdvancedMode"},decls:58,vars:36,consts:[["ngForm","ngForm"],[1,"sdk-sign-in-container",2,"margin","0 auto"],[1,"tk-margin-left-2t"],["role","presentation",1,"tk-tabl-form-sip","kc-sdk-tester-sign-in-table"],[1,"sign-in-left-side"],["method","post","novalidate","",3,"ngSubmit","formGroup"],[1,"sdk-login-table"],["colspan","3"],["tabindex","-1"],["class","icon-exclamationbox",4,"ngIf"],["tabindex","-1","for","kc-userNameInput","id","kc-userNameLblId",1,"kc-label-padding"],[1,"tk-rfrm-group",3,"ngClass"],[1,"tk-rfrm-columnar-container"],[1,"tk-rfrm-error-container"],["type","text","spellcheck","false","id","kc-userNameInput","formControlName","username",0,"kc","focus-on-me","true","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip UserName_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],[1,"small-dot","kc-sdk-signin-required"],[3,"ngClass"],["id","kc-userName_errormessage","class","tk-padding-left-1t","aria-required","true","aria-invalid","true","aria-describedby","User name is required",4,"ngIf"],["tabindex","-1","for","kc-orgId","id","kc-orgLblId",1,"kc-label-padding"],["type","text","id","kc-orgId","formControlName","organization","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip Org_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],["id","kc-Org_errormessage","class","tk-padding-left-1t","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",4,"ngIf"],["colspan","3",1,"tester-sign-in-button-space"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],["name","generate_token","id","kc-generate_tokenBtnId","value","Generate_Token","enable-default","true","label","whatever",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],[1,"sdk-login-table-inputs"],[4,"ngIf"],[1,"icon-exclamationbox"],["id","kc-userName_errormessage","aria-required","true","aria-invalid","true","aria-describedby","User name is required",1,"tk-padding-left-1t"],["id","kc-Org_errormessage","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",1,"tk-padding-left-1t"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],[1,"kc-encoder-phrasecode-text"],["autoCapitalize","","type","text","id","kc-encoder-phrasecode",1,"kc-encoder-phrasecode-input",3,"ngModelChange","ngModel"],["colspan","3",1,"col-md","kc-simple-mode-inputs"],[1,"kc-encoder-tab-text"],["id","kc-encoder-tab-dropdown",1,"tester-encoder-tab",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"kc-state-text"],["id","kc-state-dropdown",1,"tester-state",3,"ngModelChange","change","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"kc-session-type-text"],["id","kc-session-type-dropdown",1,"tester-session-type",3,"ngModelChange","ngModel"],[1,"kc-patient-type-text"],["id","kc-patient-type-dropdown",1,"patient-type",3,"ngModelChange","change","ngModel"],["name","workflowInput","id","kc-sdk-sign-in-demographics-input","placeholder","Demographics input","spellcheck","false",1,"tester-text-area","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"]],template:function(r,o){if(r&1){let i=ke();v(0,"div",1)(1,"div",2)(2,"table",3)(3,"tbody")(4,"tr")(5,"td",4)(6,"form",5,0),G("ngSubmit",function(){return B(i),U(o.SdkTesterService.doSigninSubmit())}),v(8,"table",6)(9,"tr")(10,"td",7)(11,"h2",8),O(12),g(),se(13,DM,2,1,"div",9)(14,wM,2,1,"div",9),g()(),v(15,"tr")(16,"td")(17,"label",10),O(18,"User name"),g()(),v(19,"td",11)(20,"div")(21,"div",12)(22,"div",13)(23,"input",14),G("keyup",function(){return B(i),U(o.userNameError=!!(o.SignInService.signInForm.controls.username.dirty&&o.SignInService.signInForm.controls.username.invalid))})("blur",function(){return B(i),U(o.userNameError=!!o.SignInService.signInForm.controls.username.invalid)}),g(),ee(24,"div",15),g()()()(),v(25,"td",16)(26,"div")(27,"div",12)(28,"div",13),se(29,IM,2,0,"span",17),g()()()()(),v(30,"tr")(31,"td")(32,"label",18),O(33,"Organization"),g()(),v(34,"td",11)(35,"div",12)(36,"div",13)(37,"input",19),G("keyup",function(){return B(i),U(o.orgError=!!(o.SignInService.signInForm.controls.organization.dirty&&o.SignInService.signInForm.controls.organization.invalid))})("blur",function(){return B(i),U(o.orgError=!!o.SignInService.signInForm.controls.organization.invalid)}),g(),ee(38,"div",15),g()()(),v(39,"td",16)(40,"div")(41,"div",12)(42,"div",13),se(43,CM,2,0,"span",20),g()()()()(),v(44,"tr")(45,"td",21),se(46,bM,2,1,"button",22),v(47,"button",23),O(48),g(),se(49,_M,2,1,"button",24),g()()()()(),v(50,"td")(51,"table",25),se(52,EM,5,1,"tr",26)(53,SM,6,2,"tr",26)(54,TM,6,2,"tr",26)(55,NM,6,2,"tr",26)(56,OM,6,2,"tr",26)(57,FM,5,1,"tr",26),g()()()()()()()}if(r&2){let i=Yd(7);D(6),x("formGroup",o.SignInService.signInForm),D(6),Ze(o.inAdvancedMode?"Create Token":"Enter Info"),D(),x("ngIf",o.SignInService.clientError.visible),D(),x("ngIf",o.SignInService.serverError.visible),D(5),x("ngClass",sr(22,Xi,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),x("ngClass",wn(24,$m,o.userNameError||i.submitted&&o.SignInService.signInForm.controls.username.invalid,o.SignInService.signInForm.controls.username.valid)),D(2),x("ngClass",sr(27,Xi,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),x("ngIf",(o.SignInService.signInForm.controls.username.dirty||i.submitted)&&o.SignInService.signInForm.controls.username.invalid),D(5),x("ngClass",sr(29,Xi,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(3),x("ngClass",wn(31,$m,o.orgError||i.submitted&&o.SignInService.signInForm.controls.organization.invalid,o.SignInService.signInForm.controls.organization.valid)),D(2),x("ngClass",sr(34,Xi,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(4),x("ngIf",(o.SignInService.signInForm.controls.organization.dirty||i.submitted)&&o.SignInService.signInForm.controls.organization.invalid),D(3),x("ngIf",!o.inAdvancedMode),D(),x("disabled",o.SignInService.busy),D(),Dn(" ",o.inAdvancedMode?"Generate Token":"Launch Encoder"," "),D(),x("ngIf",!o.inAdvancedMode),D(3),x("ngIf",!o.inAdvancedMode),D(),x("ngIf",!o.inAdvancedMode),D(),x("ngIf",!o.inAdvancedMode),D(),x("ngIf",!o.inAdvancedMode),D(),x("ngIf",!o.inAdvancedMode),D(),x("ngIf",!o.inAdvancedMode)}},dependencies:[Go,zo,qo,Om,Ki,Yi,Bn,Un,Gi,xm,Ll,br,Pl,Rl]})}}return e})();var Gm=(e,t)=>({dot:!0,"not-listening":e,listening:t});function RM(e,t){e&1&&(v(0,"div",8)(1,"div",11),ee(2,"app-sign-in",12),g()()),e&2&&(D(2),x("inAdvancedMode",!1))}function LM(e,t){if(e&1&&(v(0,"option",33),O(1),g()),e&2){let n=t.$implicit;x("ngValue",n.name),D(),Ze(n.name)}}function VM(e,t){if(e&1){let n=ke();v(0,"div",13)(1,"div",14)(2,"input",15),G("click",function(){B(n);let o=P();return U(o.clearInputOutput())}),g(),v(3,"input",16),G("click",function(){B(n);let o=P();return U(o.SdkTesterService.closeAllKCWindows())}),g(),ee(4,"br"),v(5,"H2",4),O(6,"Select API:"),g(),ee(7,"br"),v(8,"select",17),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.selectedApi,o)||(i.selectedApi=o),U(o)}),G("change",function(){B(n);let o=P();return U(o.onSelectedNewWorkflowApiChange())}),v(9,"option",18),O(10,"launch KC"),g(),v(11,"option",19),O(12,"launch Encoder"),g(),v(13,"option",20),O(14,"assignConfig"),g(),v(15,"option",21),O(16,"setDemographics"),g(),v(17,"option",22),O(18,"setAuthToken"),g(),se(19,LM,2,2,"option",23),g(),ee(20,"br"),v(21,"div",24),ee(22,"br"),v(23,"input",25),G("click",function(){B(n);let o=P();return U(o.callApi())}),g()(),ee(24,"br")(25,"br"),g(),v(26,"div",26)(27,"div",27)(28,"textarea",28),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.SdkTesterService.workflowInput,o)||(i.SdkTesterService.workflowInput=o),U(o)}),g(),ee(29,"br"),g()(),v(30,"div",29)(31,"div",30)(32,"input",31),G("click",function(){B(n);let o=P();return U(o.clearOutput())}),g(),v(33,"textarea",32),xe("ngModelChange",function(o){B(n);let i=P();return Oe(i.SdkTesterService.outputJson,o)||(i.SdkTesterService.outputJson=o),U(o)}),g(),ee(34,"br"),g()()()}if(e&2){let n=P();D(3),x("disabled",!n.SdkTesterService.sdkKcIsListening&&!n.SdkTesterService.sdkEncoderIsListening),D(5),Ee("ngModel",n.selectedApi),D(11),x("ngForOf",n.apiMethods),D(9),Ee("ngModel",n.SdkTesterService.workflowInput),D(5),Ee("ngModel",n.SdkTesterService.outputJson)}}var zm=(()=>{class e{constructor(n,r,o,i,s,a){this.document=n,this.sdkTesterService=r,this.stringService=o,this.signInService=i,this.ngZone=s,this.cdr=a,this.title="sdk-tester",this.kcSdk=window.kcSdk,this.kcNotLaunched=!1,this.devApis=rm,this.selectedApi="",this.spacesToIndent=4,this.clearInputOutput=()=>{this.sdkTesterService.outputJson="",this.clearWorkflow(),this.signInService.clearClientError()},this.clearOutput=()=>{this.sdkTesterService.outputJson=""},this.kcWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.encoderWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.kcListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkKcIsListening=this.kcSdk.kcWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.kcWindowIsListening),this.cdr.detectChanges()})},this.encoderListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkEncoderIsListening=this.kcSdk.encoderWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.encoderWindowIsListening),this.cdr.detectChanges()})},this.workflowComplete=()=>{setTimeout(()=>{this.onSelectedNewWorkflowApiChange(),this.cdr.detectChanges()})},this.advancedModeOnChange=()=>{this.signInService.clearClientError(),this.clearInputOutput(),this.signInService.advancedMode&&(this.populateSdkApis(),this.onSelectedNewWorkflowApiChange())},this.clearWorkflow=()=>{this.kcSdk.clearWorkflow()},this.onSelectedWorkflowApiChange=()=>{let c=this.document.getElementById("kc-workflow")?.selectedIndex||0,u=this.kcSdk.workflow[c];u&&(this.sdkTesterService.workflowInput=JSON.stringify(u.args,null,2))},this.onSelectedNewWorkflowApiChange=()=>{this.sdkTesterService.clientExampleToken&&(this.sdkTesterService.exampleAuthToken.access_token=this.sdkTesterService.clientExampleToken);let c=this.apiMethods.find(p=>p.name===this.selectedApi)?.example;switch(this.selectedApi){case"assignConfig":this.sdkTesterService.workflowInput=JSON.stringify({rcpEndpointUri:this.sdkTesterService.exampleUrl},null,2);break;case"setDemographics":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2);break;case"setAuthToken":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2);break;case"launch KC":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let p=J.url+this.sdkTesterService.WEB_KC,f=this.sdkTesterService.selectedI9I10State,h=[JSON.stringify(p,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(f,null,2),JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2)].join(`,
10
- `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(h);break;case"launch Encoder":this.sdkTesterService.workflowWindow=this.sdkTesterService.encoderWindowName;let m=J.url+this.sdkTesterService.WEB_ENCODER,y=this.sdkTesterService.exampleDemographicsData,w={sessionType:this.kcSdk.sessionTypes.I10CM,encoderTab:this.kcSdk.encoderTabs.LOGIC,codePhrase:"ANGINA"},q=this.sdkTesterService.selectedI9I10State,N=[JSON.stringify(m,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(q,null,2),JSON.stringify(y,null,2),JSON.stringify(w,null,2)].join(`,
11
- `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(N);break;case"updateCodes":this.sdkTesterService.workflowInput=JSON.stringify({codes:c},void 0,this.spacesToIndent);break;case"getRowSpecificInfo":this.sdkTesterService.workflowInput=JSON.stringify({uniqueIds:c},void 0,this.spacesToIndent);break;default:this.sdkTesterService.workflowInput=JSON.stringify(c,void 0,this.spacesToIndent);break}let u=this.selectedApi==="launch Encoder"||this.selectedApi==="launch KC"?this.sdkTesterService.workflowWindow:this.kcSdk.kcWindowIsListening?this.sdkTesterService.kcWindowName:this.sdkTesterService.encoderWindowName,d=Tl(this.sdkTesterService.availableApis,{name:this.selectedApi,windowName:u});d&&(this.sdkTesterService.availableApiSelected=d),this.kcNotLaunched=!d},this.dateParser=(c,u)=>typeof u=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.test(u)?new Date(u):u,this.callApi=()=>{let c=this.sdkTesterService.workflowInput?this.stringService.isJson(this.sdkTesterService.workflowInput)?JSON.parse(this.sdkTesterService.workflowInput,this.dateParser):this.sdkTesterService.workflowInput:[];if(this.kcSdk.clearWorkflow(),this.kcNotLaunched){console.log(new Error("KC window not listening"));return}this.kcSdk.addToWorkflow({fn:this.sdkTesterService.availableApiSelected?.fn,args:c}),this.sdkTesterService.selectedWorkflowApi=Ml(this.kcSdk.workflow),this.SdkTesterService.runWorkflow(this.SdkTesterService.workflowWindow)},this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService,this.kcSdk.setCallback(this.kcSdk.callbacks.SDKEXCEPTION,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.WORKFLOWCOMPLETE,this.workflowComplete),this.kcSdk.setCallback(this.kcSdk.callbacks.SDKRESPONSE,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.KCLISTENINGCHANGED,this.kcListeningChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.ENCODERLISTENINGCHANGED,this.encoderListeningChanged),this.kcSdk.clearWorkflow();let l={grant_type:"org_login",username:"sdkTester",organizationId:"Justice League",enableEncoder:!0,client_id:J.appName,client_secret:J.secret};this.sdkTesterService.filterSessionTypes(this.sdkTesterService.selectedI9I10State),this.sdkTesterService.setAuthToken(l).subscribe()}populateSdkApis(){this.apiMethods=this.devApis.filter(n=>n.sdkVisible).sort((n,r)=>n.name.localeCompare(r.name)),this.selectedApi="launch KC"}static{this.\u0275fac=function(r){return new(r||e)(I(Fe),I(Qi),I(Ji),I(Hn),I(W),I(In))}}static{this.\u0275cmp=Eo({type:e,selectors:[["app-root"]],decls:21,vars:13,consts:[[1,"col-md","sdk-top-controls"],[1,"sdk-version-info"],[1,"sdk-version-label"],[1,"sdk-version"],[1,"tester-text"],[3,"ngClass"],["type","checkbox","id","kc-sdk-advanced-mode","name","kc-sdk-advanced-mode",1,"sdk-tester-checkbox",3,"change","ngModelChange","ngModel"],[1,"container",3,"ngClass"],[1,"row"],["class","row",4,"ngIf"],["class","row sdk-advanced-row",4,"ngIf"],[1,"col-md"],[3,"inAdvancedMode"],[1,"row","sdk-advanced-row"],[1,"col-md-3","sdk-tester-input-side"],["type","button","value","Clear Tester","id","kc-sdk-clear-tester",1,"tester-clear-tester",3,"click"],["type","button","value","Close All KC Windows","id","kc-sdk-close-windows",1,"tester-close-windows",3,"click","disabled"],["id","kc-workflow-available-apis",1,"tester-workflow-available-api",3,"ngModelChange","change","ngModel"],["value","launch KC"],["value","launch Encoder"],["value","assignConfig"],["value","setDemographics"],["value","setAuthToken"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"sdk-workflow-api-buttons"],["type","button","value","Call API","id","kc-sdk-run-workflow",1,"sdk-callApi-button",3,"click"],[1,"col-md-4","sdk-tester-left-side"],[1,"sdk-tester-input-area"],["name","workflowInput","id","kc-sdk-workflow-input","placeholder","Workflow input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[1,"col-md-5","sdk-tester-right-side"],[1,"sdk-tester-output-area"],["type","button","value","Clear Output","id","kc-sdk-clear-tester",1,"tester-clear-output-tester",3,"click"],["placeholder","Output","name","outputJson","id","kc-sdk-input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[3,"ngValue"]],template:function(r,o){r&1&&(v(0,"div",0)(1,"div",1)(2,"label",2),O(3,"sdk version:"),g(),v(4,"div",3),O(5),g(),ee(6,"br"),g(),v(7,"label",4),O(8,"kc listening:"),g(),ee(9,"div",5),v(10,"label",4),O(11,"encoder listening:"),g(),ee(12,"div",5)(13,"br"),v(14,"label"),O(15," Advanced Mode: "),v(16,"input",6),G("change",function(){return o.advancedModeOnChange()}),xe("ngModelChange",function(s){return Oe(o.SignInService.advancedMode,s)||(o.SignInService.advancedMode=s),s}),g()()(),v(17,"div",7),ee(18,"div",8),se(19,RM,3,1,"div",9)(20,VM,35,5,"div",10),g()),r&2&&(D(5),Ze(o.SdkTesterService.version),D(4),x("ngClass",wn(7,Gm,!o.SdkTesterService.sdkKcIsListening,o.SdkTesterService.sdkKcIsListening)),D(3),x("ngClass",wn(10,Gm,!o.SdkTesterService.sdkEncoderIsListening,o.SdkTesterService.sdkEncoderIsListening)),D(4),Ee("ngModel",o.SignInService.advancedMode),D(),x("ngClass",o.SignInService.advancedMode?"sdk-advanced-mode-container":"sdk-simple-mode-container"),D(2),x("ngIf",!o.SignInService.advancedMode),D(),x("ngIf",o.SignInService.advancedMode))},dependencies:[Go,zo,qo,Ki,Yi,Bn,kl,Un,Gi,br,Wm],styles:[`.sdk-callApi-button[_ngcontent-%COMP%]{margin-left:185px}
12
- /*# sourceMappingURL=app.component.css.map */`]})}}return e})();var qm=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Ie({type:e,bootstrap:[zm]})}static{this.\u0275inj=we({imports:[Rf,Zo,Vm,jm,Sf]})}}return e})();Pf().bootstrapModule(qm).catch(e=>console.error(e));
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function nr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ie=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof Zr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Nc(i)}catch(s){t=t??[],s instanceof Zr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Zr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Nc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&nr(n,t)}remove(t){let{_finalizers:n}=this;n&&nr(n,t),t instanceof e&&t._removeParent(this)}};ie.EMPTY=(()=>{let e=new ie;return e.closed=!0,e})();var Ps=ie.EMPTY;function Kr(e){return e instanceof ie||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Nc(e){M(e)?e():e.unsubscribe()}var Re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var rn={setTimeout(e,t,...n){let{delegate:r}=rn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=rn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Yr(e){rn.setTimeout(()=>{let{onUnhandledError:t}=Re;if(t)t(e);else throw e})}function Ls(){}var Ac=Vs("C",void 0,void 0);function kc(e){return Vs("E",void 0,e)}function Oc(e){return Vs("N",e,void 0)}function Vs(e,t,n){return{kind:e,value:t,error:n}}var Pt=null;function on(e){if(Re.useDeprecatedSynchronousErrorHandling){let t=!Pt;if(t&&(Pt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Pt;if(Pt=null,n)throw r}}else e()}function Rc(e){Re.useDeprecatedSynchronousErrorHandling&&Pt&&(Pt.errorThrown=!0,Pt.error=e)}var Lt=class extends ie{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Kr(t)&&t.add(this)):this.destination=Qg}static create(t,n,r){return new sn(t,n,r)}next(t){this.isStopped?Bs(Oc(t),this):this._next(t)}error(t){this.isStopped?Bs(kc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Bs(Ac,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Kg=Function.prototype.bind;function js(e,t){return Kg.call(e,t)}var Hs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Qr(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Qr(r)}else Qr(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Qr(n)}}},sn=class extends Lt{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Re.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&js(t.next,i),error:t.error&&js(t.error,i),complete:t.complete&&js(t.complete,i)}):o=t}this.destination=new Hs(o)}};function Qr(e){Re.useDeprecatedSynchronousErrorHandling?Rc(e):Yr(e)}function Yg(e){throw e}function Bs(e,t){let{onStoppedNotification:n}=Re;n&&rn.setTimeout(()=>n(e,t))}var Qg={closed:!0,next:Ls,error:Yg,complete:Ls};var an=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Fc(e){return e}function Pc(e){return e.length===0?Fc:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var z=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Xg(n)?n:new sn(n,r,o);return on(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Lc(r),new r((o,i)=>{let s=new sn({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[an](){return this}pipe(...n){return Pc(n)(this)}toPromise(n){return n=Lc(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Lc(e){var t;return(t=e??Re.Promise)!==null&&t!==void 0?t:Promise}function Jg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Xg(e){return e&&e instanceof Lt||Jg(e)&&Kr(e)}function ey(e){return M(e?.lift)}function fe(e){return t=>{if(ey(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function pe(e,t,n,r,o){return new Us(e,t,n,r,o)}var Us=class extends Lt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Vc=qr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Qe=(()=>{class e extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Jr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Vc}next(n){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){on(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ps:(this.currentObservers=null,i.push(n),new ie(()=>{this.currentObservers=null,nr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new z;return n.source=this,n}}return e.create=(t,n)=>new Jr(t,n),e})(),Jr=class extends Qe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ps}};var rr=class extends Qe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function jc(e){return e&&M(e.schedule)}function Bc(e){return e[e.length-1]}function Hc(e){return M(Bc(e))?e.pop():void 0}function Uc(e){return jc(Bc(e))?e.pop():void 0}function Gc(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function $c(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(e){return this instanceof Vt?(this.v=e,this):new Vt(e)}function Wc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(m){return new Promise(function(y,w){i.push([f,m,y,w])>1||l(f,m)})},h&&(o[f]=h(o[f])))}function l(f,h){try{c(r[f](h))}catch(m){p(i[0][3],m)}}function c(f){f.value instanceof Vt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function p(f,h){f(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function zc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof $c=="function"?$c(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Xr=e=>e&&typeof e.length=="number"&&typeof e!="function";function eo(e){return M(e?.then)}function to(e){return M(e[an])}function no(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function ro(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ty(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oo=ty();function io(e){return M(e?.[oo])}function so(e){return Wc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Vt(n.read());if(o)return yield Vt(void 0);yield yield Vt(r)}}finally{n.releaseLock()}})}function ao(e){return M(e?.getReader)}function he(e){if(e instanceof z)return e;if(e!=null){if(to(e))return ny(e);if(Xr(e))return ry(e);if(eo(e))return oy(e);if(no(e))return qc(e);if(io(e))return iy(e);if(ao(e))return sy(e)}throw ro(e)}function ny(e){return new z(t=>{let n=e[an]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ry(e){return new z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function oy(e){return new z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Yr)})}function iy(e){return new z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function qc(e){return new z(t=>{ay(e,t).catch(n=>t.error(n))})}function sy(e){return qc(so(e))}function ay(e,t){var n,r,o,i;return Gc(this,void 0,void 0,function*(){try{for(n=zc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Se(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function lo(e,t=0){return fe((n,r)=>{n.subscribe(pe(r,o=>Se(r,e,()=>r.next(o),t),()=>Se(r,e,()=>r.complete(),t),o=>Se(r,e,()=>r.error(o),t)))})}function co(e,t=0){return fe((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Zc(e,t){return he(e).pipe(co(t),lo(t))}function Kc(e,t){return he(e).pipe(co(t),lo(t))}function Yc(e,t){return new z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Qc(e,t){return new z(n=>{let r;return Se(n,t,()=>{r=e[oo](),Se(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function uo(e,t){if(!e)throw new Error("Iterable cannot be null");return new z(n=>{Se(n,t,()=>{let r=e[Symbol.asyncIterator]();Se(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Jc(e,t){return uo(so(e),t)}function Xc(e,t){if(e!=null){if(to(e))return Zc(e,t);if(Xr(e))return Yc(e,t);if(eo(e))return Kc(e,t);if(no(e))return uo(e,t);if(io(e))return Qc(e,t);if(ao(e))return Jc(e,t)}throw ro(e)}function jt(e,t){return t?Xc(e,t):he(e)}function fo(...e){let t=Uc(e);return jt(e,t)}function me(e,t){return fe((n,r)=>{let o=0;n.subscribe(pe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:ly}=Array;function cy(e,t){return ly(t)?e(...t):e(t)}function eu(e){return me(t=>cy(e,t))}var{isArray:uy}=Array,{getPrototypeOf:dy,prototype:fy,keys:py}=Object;function tu(e){if(e.length===1){let t=e[0];if(uy(t))return{args:t,keys:null};if(hy(t)){let n=py(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hy(e){return e&&typeof e=="object"&&dy(e)===fy}function nu(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ru(e,t,n,r,o,i,s,a){let l=[],c=0,u=0,d=!1,p=()=>{d&&!l.length&&!c&&t.complete()},f=m=>c<r?h(m):l.push(m),h=m=>{i&&t.next(m),c++;let y=!1;he(n(m,u++)).subscribe(pe(t,w=>{o?.(w),i?f(w):t.next(w)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<r;){let w=l.shift();s?Se(t,s,()=>h(w)):h(w)}p()}catch(w){t.error(w)}}))};return e.subscribe(pe(t,f,()=>{d=!0,p()})),()=>{a?.()}}function po(e,t,n=1/0){return M(t)?po((r,o)=>me((i,s)=>t(r,i,o,s))(he(e(r,o))),n):(typeof t=="number"&&(n=t),fe((r,o)=>ru(r,o,e,n)))}function $s(...e){let t=Hc(e),{args:n,keys:r}=tu(e),o=new z(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;he(n[u]).subscribe(pe(i,p=>{d||(d=!0,c--),a[u]=p},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?nu(r,a):a),i.complete())}))}});return t?o.pipe(eu(t)):o}function Gs(e,t){return fe((n,r)=>{let o=0;n.subscribe(pe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ws(e,t){return M(t)?po(e,t,1):po(e,1)}function ho(e){return fe((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function zs(e,t){return fe((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(pe(r,l=>{o?.unsubscribe();let c=0,u=i++;he(e(l,u)).subscribe(o=pe(r,d=>r.next(t?t(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var my="https://g.co/ng/security#xss",S=class extends Error{code;constructor(t,n){super(qo(t,n)),this.code=t}};function qo(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function gr(e){return{toString:e}.toString()}var mo="__parameters__";function gy(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function $u(e,t,n){return gr(()=>{let r=gy(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(l,c,u){let d=l.hasOwnProperty(mo)?l[mo]:Object.defineProperty(l,mo,{value:[]})[mo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function H(e){for(let t in e)if(e[t]===H)return t;throw Error("Could not find renamed property on target object.")}function yy(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function De(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(De).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
4
+ `);return n===-1?t:t.substring(0,n)}function ou(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var vy=H({__forward_ref__:H});function Ve(e){return e.__forward_ref__=Ve,e.toString=function(){return De(this())},e}function se(e){return Gu(e)?e():e}function Gu(e){return typeof e=="function"&&e.hasOwnProperty(vy)&&e.__forward_ref__===Ve}function k(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Za(e){return iu(e,Wu)||iu(e,zu)}function iu(e,t){return e.hasOwnProperty(t)?e[t]:null}function Dy(e){let t=e&&(e[Wu]||e[zu]);return t||null}function su(e){return e&&(e.hasOwnProperty(au)||e.hasOwnProperty(wy))?e[au]:null}var Wu=H({\u0275prov:H}),au=H({\u0275inj:H}),zu=H({ngInjectableDef:H}),wy=H({ngInjectorDef:H}),_=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=k({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function qu(e){return e&&!!e.\u0275providers}var Ey=H({\u0275cmp:H}),Iy=H({\u0275dir:H}),_y=H({\u0275pipe:H});var _o=H({\u0275fac:H}),ar=H({__NG_ELEMENT_ID__:H}),lu=H({__NG_ENV_ID__:H});function Ka(e){return typeof e=="string"?e:e==null?"":String(e)}function Cy(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ka(e)}function by(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,e)}function Ya(e,t){throw new S(-201,!1)}var N=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(N||{}),ia;function Zu(){return ia}function xe(e){let t=ia;return ia=e,t}function Ku(e,t,n){let r=Za(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&N.Optional)return null;if(t!==void 0)return t;Ya(e,"Injector")}var Sy={},lr=Sy,sa="__NG_DI_FLAG__",Co="ngTempTokenPath",xy="ngTokenPath",Ty=/\n/gm,My="\u0275",cu="__source",dn;function Ny(){return dn}function ut(e){let t=dn;return dn=e,t}function Ay(e,t=N.Default){if(dn===void 0)throw new S(-203,!1);return dn===null?Ku(e,void 0,t):dn.get(e,t&N.Optional?null:void 0,t)}function x(e,t=N.Default){return(Zu()||Ay)(se(e),t)}function C(e,t=N.Default){return x(e,Zo(t))}function Zo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function aa(e){let t=[];for(let n=0;n<e.length;n++){let r=se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new S(900,!1);let o,i=N.Default;for(let s=0;s<r.length;s++){let a=r[s],l=ky(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push(x(o,i))}else t.push(x(r))}return t}function Yu(e,t){return e[sa]=t,e.prototype[sa]=t,e}function ky(e){return e[sa]}function Oy(e,t,n,r){let o=e[Co];throw t[cu]&&o.unshift(t[cu]),e.message=Ry(`
5
+ `+e.message,o,n,r),e[xy]=o,e[Co]=null,e}function Ry(e,t,n,r=null){e=e&&e.charAt(0)===`
6
+ `&&e.charAt(1)==My?e.slice(2):e;let o=De(t);if(Array.isArray(t))o=t.map(De).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):De(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Ty,`
7
+ `)}`}var Qu=Yu($u("Optional"),8);var Fy=Yu($u("SkipSelf"),4);function pn(e,t){let n=e.hasOwnProperty(_o);return n?e[_o]:null}function Qa(e,t){e.forEach(n=>Array.isArray(n)?Qa(n,t):t(n))}function Ju(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function bo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Py(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Ly(e,t,n){let r=yr(e,t);return r>=0?e[r|1]=n:(r=~r,Py(e,r,t,n)),r}function qs(e,t){let n=yr(e,t);if(n>=0)return e[n|1]}function yr(e,t){return Vy(e,t,1)}function Vy(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var hn={},Te=[],cr=new _(""),Xu=new _("",-1),ed=new _(""),So=class{get(t,n=lr){if(n===lr){let r=new Error(`NullInjectorError: No provider for ${De(t)}!`);throw r.name="NullInjectorError",r}return n}};function mn(e){return e[Ey]||null}function td(e){return e[Iy]||null}function nd(e){return e[_y]||null}function jy(e){let t=mn(e)||td(e)||nd(e);return t!==null?t.standalone:!1}function Ja(e){return{\u0275providers:e}}function By(...e){return{\u0275providers:rd(!0,e),\u0275fromNgModule:!0}}function rd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Qa(t,s=>{let a=s;la(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&od(o,i),n}function od(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Xa(o,i=>{t(i,r)})}}function la(e,t,n,r){if(e=se(e),!e)return!1;let o=null,i=su(e),s=!i&&mn(e);if(!i&&!s){let l=e.ngModule;if(i=su(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)la(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Qa(i.imports,u=>{la(u,t,n,r)&&(c||=[],c.push(u))})}finally{}c!==void 0&&od(c,t)}if(!a){let c=pn(o)||(()=>new o);t({provide:o,useFactory:c,deps:Te},o),t({provide:ed,useValue:o,multi:!0},o),t({provide:cr,useValue:()=>x(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;Xa(l,u=>{t(u,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Xa(e,t){for(let n of e)qu(n)&&(n=n.\u0275providers),Array.isArray(n)?Xa(n,t):t(n)}var Hy=H({provide:String,useValue:H});function id(e){return e!==null&&typeof e=="object"&&Hy in e}function Uy(e){return!!(e&&e.useExisting)}function $y(e){return!!(e&&e.useFactory)}function gn(e){return typeof e=="function"}function Gy(e){return!!e.useClass}var Ko=new _(""),vo={},Wy={},Zs;function el(){return Zs===void 0&&(Zs=new So),Zs}var Ge=class{},ur=class extends Ge{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ua(t,s=>this.processProvider(s)),this.records.set(Xu,ln(void 0,this)),o.has("environment")&&this.records.set(Ge,ln(void 0,this));let i=this.records.get(Ko);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ed,Te,N.Self))}destroy(){ir(this),this._destroyed=!0;let t=R(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(t)}}onDestroy(t){return ir(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ir(this);let n=ut(this),r=xe(void 0),o;try{return t()}finally{ut(n),xe(r)}}get(t,n=lr,r=N.Default){if(ir(this),t.hasOwnProperty(lu))return t[lu](this);r=Zo(r);let o,i=ut(this),s=xe(void 0);try{if(!(r&N.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=Yy(t)&&Za(t);c&&this.injectableDefInScope(c)?l=ln(ca(t),vo):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&N.Self?el():this.parent;return n=r&N.Optional&&n===lr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Co]=a[Co]||[]).unshift(De(t)),i)throw a;return Oy(a,t,"R3InjectorError",this.source)}else throw a}finally{xe(s),ut(i)}}resolveInjectorInitializers(){let t=R(null),n=ut(this),r=xe(void 0),o;try{let i=this.get(cr,Te,N.Self);for(let s of i)s()}finally{ut(n),xe(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(De(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=se(t);let n=gn(t)?t:se(t&&t.provide),r=qy(t);if(!gn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ln(void 0,vo,!0),o.factory=()=>aa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===vo&&(n.value=Wy,n.value=n.factory()),typeof n.value=="object"&&n.value&&Ky(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=se(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ca(e){let t=Za(e),n=t!==null?t.factory:pn(e);if(n!==null)return n;if(e instanceof _)throw new S(204,!1);if(e instanceof Function)return zy(e);throw new S(204,!1)}function zy(e){if(e.length>0)throw new S(204,!1);let n=Dy(e);return n!==null?()=>n.factory(e):()=>new e}function qy(e){if(id(e))return ln(void 0,e.useValue);{let t=sd(e);return ln(t,vo)}}function sd(e,t,n){let r;if(gn(e)){let o=se(e);return pn(o)||ca(o)}else if(id(e))r=()=>se(e.useValue);else if($y(e))r=()=>e.useFactory(...aa(e.deps||[]));else if(Uy(e))r=()=>x(se(e.useExisting));else{let o=se(e&&(e.useClass||e.provide));if(Zy(e))r=()=>new o(...aa(e.deps));else return pn(o)||ca(o)}return r}function ir(e){if(e.destroyed)throw new S(205,!1)}function ln(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zy(e){return!!e.deps}function Ky(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Yy(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function ua(e,t){for(let n of e)Array.isArray(n)?ua(n,t):n&&qu(n)?ua(n.\u0275providers,t):t(n)}function Yo(e,t){e instanceof ur&&ir(e);let n,r=ut(e),o=xe(void 0);try{return t()}finally{ut(r),xe(o)}}function Qy(){return Zu()!==void 0||Ny()!=null}function Jy(e){return typeof e=="function"}var et=0,A=1,I=2,ae=3,Pe=4,je=5,xo=6,To=7,Le=8,yn=9,pt=10,ne=11,dr=12,uu=13,Cn=14,We=15,vn=16,cn=17,Dn=18,Qo=19,ad=20,dt=21,Ks=22,Mo=23,we=24,Je=25,ld=1;var Ht=7,No=8,Ao=9,Me=10,ko=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ko||{});function ft(e){return Array.isArray(e)&&typeof e[ld]=="object"}function tt(e){return Array.isArray(e)&&e[ld]===!0}function cd(e){return(e.flags&4)!==0}function Jo(e){return e.componentOffset>-1}function tl(e){return(e.flags&1)===1}function ht(e){return!!e.template}function da(e){return(e[I]&512)!==0}var fa=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ud(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var bn=(()=>{let e=()=>dd;return e.ngInherit=!0,e})();function dd(e){return e.type.prototype.ngOnChanges&&(e.setInput=ev),Xy}function Xy(){let e=pd(this),t=e?.current;if(t){let n=e.previous;if(n===hn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ev(e,t,n,r,o){let i=this.declaredInputs[r],s=pd(e)||tv(e,{previous:hn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new fa(c&&c.currentValue,n,l===hn),ud(e,t,o,n)}var fd="__ngSimpleChanges__";function pd(e){return e[fd]||null}function tv(e,t){return e[fd]=t}var du=null;var Ue=function(e,t,n){du?.(e,t,n)},nv="svg",rv="math";function ze(e){for(;Array.isArray(e);)e=e[et];return e}function hd(e,t){return ze(t[e])}function Ne(e,t){return ze(t[e.index])}function md(e,t){return e.data[t]}function ov(e,t){return e[t]}function Dt(e,t){let n=t[e];return ft(n)?n:n[et]}function nl(e){return(e[I]&128)===128}function iv(e){return tt(e[ae])}function Oo(e,t){return t==null?null:e[t]}function gd(e){e[cn]=0}function rl(e){e[I]&1024||(e[I]|=1024,nl(e)&&ei(e))}function sv(e,t){for(;e>0;)t=t[Cn],e--;return t}function Xo(e){return!!(e[I]&9216||e[we]?.dirty)}function pa(e){e[pt].changeDetectionScheduler?.notify(9),e[I]&64&&(e[I]|=1024),Xo(e)&&ei(e)}function ei(e){e[pt].changeDetectionScheduler?.notify(0);let t=Ut(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!nl(t)));)t=Ut(t)}function yd(e,t){if((e[I]&256)===256)throw new S(911,!1);e[dt]===null&&(e[dt]=[]),e[dt].push(t)}function av(e,t){if(e[dt]===null)return;let n=e[dt].indexOf(t);n!==-1&&e[dt].splice(n,1)}function Ut(e){let t=e[ae];return tt(t)?t[ae]:t}var T={lFrame:Sd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ha=!1;function lv(){return T.lFrame.elementDepthCount}function cv(){T.lFrame.elementDepthCount++}function uv(){T.lFrame.elementDepthCount--}function vd(){return T.bindingsEnabled}function dv(){return T.skipHydrationRootTNode!==null}function fv(e){return T.skipHydrationRootTNode===e}function pv(){T.skipHydrationRootTNode=null}function j(){return T.lFrame.lView}function Ee(){return T.lFrame.tView}function U(e){return T.lFrame.contextLView=e,e[Le]}function $(e){return T.lFrame.contextLView=null,e}function ye(){let e=Dd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Dd(){return T.lFrame.currentTNode}function hv(){let e=T.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vr(e,t){let n=T.lFrame;n.currentTNode=e,n.isParent=t}function wd(){return T.lFrame.isParent}function mv(){T.lFrame.isParent=!1}function gv(){return T.lFrame.contextLView}function Ed(){return ha}function fu(e){let t=ha;return ha=e,t}function Id(){let e=T.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function yv(e){return T.lFrame.bindingIndex=e}function ti(){return T.lFrame.bindingIndex++}function vv(e){let t=T.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Dv(){return T.lFrame.inI18n}function wv(e,t){let n=T.lFrame;n.bindingIndex=n.bindingRootIndex=e,ma(t)}function Ev(){return T.lFrame.currentDirectiveIndex}function ma(e){T.lFrame.currentDirectiveIndex=e}function Iv(e){let t=T.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _d(e){T.lFrame.currentQueryIndex=e}function _v(e){let t=e[A];return t.type===2?t.declTNode:t.type===1?e[je]:null}function Cd(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&N.Host);)if(o=_v(i),o===null||(i=i[Cn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=T.lFrame=bd();return r.currentTNode=t,r.lView=e,!0}function ol(e){let t=bd(),n=e[A];T.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function bd(){let e=T.lFrame,t=e===null?null:e.child;return t===null?Sd(e):t}function Sd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function xd(){let e=T.lFrame;return T.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Td=xd;function il(){let e=xd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Cv(e){return(T.lFrame.contextLView=sv(e,T.lFrame.contextLView))[Le]}function Sn(){return T.lFrame.selectedIndex}function $t(e){T.lFrame.selectedIndex=e}function sl(){let e=T.lFrame;return md(e.tView,e.selectedIndex)}function bv(){return T.lFrame.currentNamespace}var Md=!0;function al(){return Md}function ll(e){Md=e}function Sv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=dd(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function cl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Do(e,t,n){Nd(e,t,3,n)}function wo(e,t,n,r){(e[I]&3)===n&&Nd(e,t,n,r)}function Ys(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function Nd(e,t,n,r){let o=r!==void 0?e[cn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let l=o;l<s;l++)if(typeof t[l+1]=="number"){if(a=t[l],r!=null&&a>=r)break}else t[l]<0&&(e[cn]+=65536),(a<i||i==-1)&&(xv(e,n,t,l),e[cn]=(e[cn]&4294901760)+l+2),l++}function pu(e,t){Ue(4,e,t);let n=R(null);try{t.call(e)}finally{R(n),Ue(5,e,t)}}function xv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[cn]>>16&&(e[I]&3)===t&&(e[I]+=16384,pu(a,i)):pu(a,i)}var fn=-1,Gt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Tv(e){return e instanceof Gt}function Mv(e){return(e.flags&8)!==0}function Nv(e){return(e.flags&16)!==0}function ga(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];kv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Av(e){return e===3||e===4||e===6}function kv(e){return e.charCodeAt(0)===64}function fr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?hu(e,n,o,null,t[++r]):hu(e,n,o,null,null))}}return e}function hu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Qs={},ya=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Zo(r);let o=this.injector.get(t,Qs,r);return o!==Qs||n===Qs?o:this.parentInjector.get(t,n,r)}};function Ad(e){return e!==fn}function Ro(e){return e&32767}function Ov(e){return e>>16}function Fo(e,t){let n=Ov(e),r=t;for(;n>0;)r=r[Cn],n--;return r}var va=!0;function mu(e){let t=va;return va=e,t}var Rv=256,kd=Rv-1,Od=5,Fv=0,$e={};function Pv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ar)&&(r=n[ar]),r==null&&(r=n[ar]=Fv++);let o=r&kd,i=1<<o;t.data[e+(o>>Od)]|=i}function Po(e,t){let n=Rd(e,t);if(n!==-1)return n;let r=t[A];r.firstCreatePass&&(e.injectorIndex=t.length,Js(r.data,e),Js(t,null),Js(r.blueprint,null));let o=ul(e,t),i=e.injectorIndex;if(Ad(o)){let s=Ro(o),a=Fo(o,t),l=a[A].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Js(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ul(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=jd(o),r===null)return fn;if(n++,o=o[Cn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return fn}function Da(e,t,n){Pv(e,t,n)}function Fd(e,t,n){if(n&N.Optional||e!==void 0)return e;Ya(t,"NodeInjector")}function Pd(e,t,n,r){if(n&N.Optional&&r===void 0&&(r=null),!(n&(N.Self|N.Host))){let o=e[yn],i=xe(void 0);try{return o?o.get(t,r,n&N.Optional):Ku(t,r,n&N.Optional)}finally{xe(i)}}return Fd(r,t,n)}function Ld(e,t,n,r=N.Default,o){if(e!==null){if(t[I]&2048&&!(r&N.Self)){let s=Hv(e,t,n,r,$e);if(s!==$e)return s}let i=Vd(e,t,n,r,$e);if(i!==$e)return i}return Pd(t,n,r,o)}function Vd(e,t,n,r,o){let i=jv(n);if(typeof i=="function"){if(!Cd(t,e,r))return r&N.Host?Fd(o,n,r):Pd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&N.Optional))Ya(n);else return s}finally{Td()}}else if(typeof i=="number"){let s=null,a=Rd(e,t),l=fn,c=r&N.Host?t[We][je]:null;for((a===-1||r&N.SkipSelf)&&(l=a===-1?ul(e,t):t[a+8],l===fn||!yu(r,!1)?a=-1:(s=t[A],a=Ro(l),t=Fo(l,t)));a!==-1;){let u=t[A];if(gu(i,a,u.data)){let d=Lv(a,t,n,s,r,c);if(d!==$e)return d}l=t[a+8],l!==fn&&yu(r,t[A].data[a+8]===c)&&gu(i,a,t)?(s=u,a=Ro(l),t=Fo(l,t)):a=-1}}return o}function Lv(e,t,n,r,o,i){let s=t[A],a=s.data[e+8],l=r==null?Jo(a)&&va:r!=s&&(a.type&3)!==0,c=o&N.Host&&i===a,u=Vv(a,s,n,l,c);return u!==null?wn(t,s,u,a):$e}function Vv(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:c;for(let f=d;f<p;f++){let h=s[f];if(f<l&&n===h||f>=l&&h.type===n)return f}if(o){let f=s[l];if(f&&ht(f)&&f.type===n)return l}return null}function wn(e,t,n,r){let o=e[n],i=t.data;if(Tv(o)){let s=o;s.resolving&&by(Cy(i[n]));let a=mu(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?xe(s.injectImpl):null,u=Cd(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Sv(n,i[n],t)}finally{c!==null&&xe(c),mu(a),s.resolving=!1,Td()}}return o}function jv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ar)?e[ar]:void 0;return typeof t=="number"?t>=0?t&kd:Bv:t}function gu(e,t,n){let r=1<<e;return!!(n[t+(e>>Od)]&r)}function yu(e,t){return!(e&N.Self)&&!(e&N.Host&&t)}var Bt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ld(this._tNode,this._lView,t,Zo(r),n)}};function Bv(){return new Bt(ye(),j())}function xn(e){return gr(()=>{let t=e.prototype.constructor,n=t[_o]||wa(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[_o]||wa(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wa(e){return Gu(e)?()=>{let t=wa(se(e));return t&&t()}:pn(e)}function Hv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=Vd(i,s,n,r|N.Self,$e);if(a!==$e)return a;let l=i.parent;if(!l){let c=s[ad];if(c){let u=c.get(n,$e,r);if(u!==$e)return u}l=jd(s),s=s[Cn]}i=l}return o}function jd(e){let t=e[A],n=t.type;return n===2?t.declTNode:n===1?e[je]:null}function vu(e,t=null,n=null,r){let o=Uv(e,t,n,r);return o.resolveInjectorInitializers(),o}function Uv(e,t=null,n=null,r,o=new Set){let i=[n||Te,By(e)];return r=r||(typeof e=="object"?void 0:De(e)),new ur(i,t||el(),r||null,o)}var Wt=class e{static THROW_IF_NOT_FOUND=lr;static NULL=new So;static create(t,n){if(Array.isArray(t))return vu({name:""},n,t,"");{let r=t.name??"";return vu({name:r},t.parent,t.providers,r)}}static \u0275prov=k({token:e,providedIn:"any",factory:()=>x(Xu)});static __NG_ELEMENT_ID__=-1};var $v=new _("");$v.__NG_ELEMENT_ID__=e=>{let t=ye();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&N.Optional)return null;throw new S(204,!1)};var Bd=!1,Hd=(()=>{class e{static __NG_ELEMENT_ID__=Gv;static __NG_ENV_ID__=n=>n}return e})(),Ea=class extends Hd{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return yd(this._lView,t),()=>av(this._lView,t)}};function Gv(){return new Ea(j())}var pr=class{},dl=new _("",{providedIn:"root",factory:()=>!1});var Ud=new _(""),$d=new _(""),Yt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new rr(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ia=class extends Qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Qy()&&(this.destroyRef=C(Hd,{optional:!0})??void 0,this.pendingTasks=C(Yt,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ie&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ge=Ia;function Lo(...e){}function Gd(e){let t,n;function r(){e=Lo;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Du(e){return queueMicrotask(()=>e()),()=>{e=Lo}}var fl="isAngularZone",Vo=fl+"_ID",Wv=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ge(!1);onMicrotaskEmpty=new ge(!1);onStable=new ge(!1);onError=new ge(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Bd}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Zv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(fl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,zv,Lo,Lo);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},zv={};function pl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Gd(()=>{e.callbackScheduled=!1,_a(e),e.isCheckStableRunning=!0,pl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),_a(e)}function Zv(e){let t=()=>{qv(e)},n=Wv++;e._inner=e._inner.fork({name:"angular",properties:{[fl]:!0,[Vo]:n,[Vo+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Kv(l))return r.invokeTask(i,s,a,l);try{return wu(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Eu(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return wu(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Yv(l)&&t(),Eu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,_a(e),pl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function _a(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eu(e){e._nesting--,pl(e)}var Ca=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ge;onMicrotaskEmpty=new ge;onStable=new ge;onError=new ge;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Kv(e){return Wd(e,"__ignore_ng_zone__")}function Yv(e){return Wd(e,"__scheduler_tick__")}function Wd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var mt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Qv=new _("",{providedIn:"root",factory:()=>{let e=C(Y),t=C(mt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Jv(){return ni(ye(),j())}function ni(e,t){return new nt(Ne(e,t))}var nt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Jv}return e})();function zd(e){return(e.flags&128)===128}var qd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(qd||{}),Zd=new Map,Xv=0;function eD(){return Xv++}function tD(e){Zd.set(e[Qo],e)}function ba(e){Zd.delete(e[Qo])}var Iu="__ngContext__";function zt(e,t){ft(t)?(e[Iu]=t[Qo],tD(t)):e[Iu]=t}function Kd(e){return Qd(e[dr])}function Yd(e){return Qd(e[Pe])}function Qd(e){for(;e!==null&&!tt(e);)e=e[Pe];return e}var Sa;function Jd(e){Sa=e}function nD(){if(Sa!==void 0)return Sa;if(typeof document<"u")return document;throw new S(210,!1)}var hl=new _("",{providedIn:"root",factory:()=>rD}),rD="ng",ml=new _(""),wt=new _("",{providedIn:"platform",factory:()=>"unknown"});var gl=new _("",{providedIn:"root",factory:()=>nD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var oD="h",iD="b";var Xd=!1,sD=new _("",{providedIn:"root",factory:()=>Xd});var ef=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(ef||{}),tf=new _(""),_u=new Set;function Dr(e){_u.has(e)||(_u.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var aD=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=k({token:e,providedIn:"root",factory:()=>new e})}return e})();var lD=()=>null;function yl(e,t,n=!1){return lD(e,t,n)}var qe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(qe||{});var xa=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${my})`}};function vl(e){return e instanceof xa?e.changingThisBreaksApplicationSecurity:e}var gt=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(gt||{}),Xe=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xe||{}),cD;function Dl(e,t){return cD(e,t)}function un(e,t,n,r,o){if(r!=null){let i,s=!1;tt(r)?i=r:ft(r)&&(s=!0,r=r[et]);let a=ze(r);e===0&&n!==null?o==null?af(t,n,a):jo(t,n,a,o||null,!0):e===1&&n!==null?jo(t,n,a,o||null,!0):e===2?CD(t,a,s):e===3&&t.destroyNode(a),i!=null&&SD(t,e,i,n,o)}}function uD(e,t){return e.createText(t)}function dD(e,t,n){e.setValue(t,n)}function nf(e,t,n){return e.createElement(t,n)}function fD(e,t){rf(e,t),t[et]=null,t[je]=null}function pD(e,t,n,r,o,i){r[et]=o,r[je]=t,ri(e,r,n,1,o,i)}function rf(e,t){t[pt].changeDetectionScheduler?.notify(10),ri(e,t,t[ne],2,null,null)}function hD(e){let t=e[dr];if(!t)return Xs(e[A],e);for(;t;){let n=null;if(ft(t))n=t[dr];else{let r=t[Me];r&&(n=r)}if(!n){for(;t&&!t[Pe]&&t!==e;)ft(t)&&Xs(t[A],t),t=t[ae];t===null&&(t=e),ft(t)&&Xs(t[A],t),n=t&&t[Pe]}t=n}}function mD(e,t,n,r){let o=Me+r,i=n.length;r>0&&(n[o-1][Pe]=t),r<i-Me?(t[Pe]=n[o],Ju(n,Me+r,t)):(n.push(t),t[Pe]=null),t[ae]=n;let s=t[vn];s!==null&&n!==s&&of(s,t);let a=t[Dn];a!==null&&a.insertView(e),pa(t),t[I]|=128}function of(e,t){let n=e[Ao],r=t[ae];if(ft(r))e[I]|=ko.HasTransplantedViews;else{let o=r[ae][We];t[We]!==o&&(e[I]|=ko.HasTransplantedViews)}n===null?e[Ao]=[t]:n.push(t)}function wl(e,t){let n=e[Ao],r=n.indexOf(t);n.splice(r,1)}function Ta(e,t){if(e.length<=Me)return;let n=Me+t,r=e[n];if(r){let o=r[vn];o!==null&&o!==e&&wl(o,r),t>0&&(e[n-1][Pe]=r[Pe]);let i=bo(e,Me+t);fD(r[A],r);let s=i[Dn];s!==null&&s.detachView(i[A]),r[ae]=null,r[Pe]=null,r[I]&=-129}return r}function sf(e,t){if(!(t[I]&256)){let n=t[ne];n.destroyNode&&ri(e,t,n,3,null,null),hD(t)}}function Xs(e,t){if(t[I]&256)return;let n=R(null);try{t[I]&=-129,t[I]|=256,t[we]&&Rs(t[we]),yD(e,t),gD(e,t),t[A].type===1&&t[ne].destroy();let r=t[vn];if(r!==null&&tt(t[ae])){r!==t[ae]&&wl(r,t);let o=t[Dn];o!==null&&o.detachView(e)}ba(t)}finally{R(n)}}function gD(e,t){let n=e.cleanup,r=t[To];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[To]=null);let o=t[dt];if(o!==null){t[dt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Mo];if(i!==null){t[Mo]=null;for(let s of i)s.destroy()}}function yD(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Gt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],l=i[s+1];Ue(4,a,l);try{l.call(a)}finally{Ue(5,a,l)}}else{Ue(4,o,i);try{i.call(o)}finally{Ue(5,o,i)}}}}}function vD(e,t,n){return DD(e,t.parent,n)}function DD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[et];{let{componentOffset:o}=r;if(o>-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===qe.None||i===qe.Emulated)return null}return Ne(r,n)}}function jo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function af(e,t,n){e.appendChild(t,n)}function Cu(e,t,n,r,o){r!==null?jo(e,t,n,r,o):af(e,t,n)}function lf(e,t){return e.parentNode(t)}function wD(e,t){return e.nextSibling(t)}function ED(e,t,n){return _D(e,t,n)}function ID(e,t,n){return e.type&40?Ne(e,n):null}var _D=ID,bu;function El(e,t,n,r){let o=vD(e,r,t),i=t[ne],s=r.parent||t[je],a=ED(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Cu(i,o,n[l],a,!1);else Cu(i,o,n,a,!1);bu!==void 0&&bu(i,r,t,n,o)}function sr(e,t){if(t!==null){let n=t.type;if(n&3)return Ne(t,e);if(n&4)return Ma(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return sr(e,r);{let o=e[t.index];return tt(o)?Ma(-1,o):ze(o)}}else{if(n&128)return sr(e,t.next);if(n&32)return Dl(t,e)()||ze(e[t.index]);{let r=cf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ut(e[We]);return sr(o,r)}else return sr(e,t.next)}}}return null}function cf(e,t){if(t!==null){let r=e[We][je],o=t.projection;return r.projection[o]}return null}function Ma(e,t){let n=Me+e+1;if(n<t.length){let r=t[n],o=r[A].firstChild;if(o!==null)return sr(r,o)}return t[Ht]}function CD(e,t,n){e.removeChild(null,t,n)}function Il(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],l=n.type;if(s&&t===0&&(a&&zt(ze(a),r),n.flags|=2),(n.flags&32)!==32)if(l&8)Il(e,t,n.child,r,o,i,!1),un(t,e,o,a,i);else if(l&32){let c=Dl(n,r),u;for(;u=c();)un(t,e,o,u,i);un(t,e,o,a,i)}else l&16?bD(e,t,r,n,o,i):un(t,e,o,a,i);n=s?n.projectionNext:n.next}}function ri(e,t,n,r,o,i){Il(n,r,e.firstChild,t,o,i,!1)}function bD(e,t,n,r,o,i){let s=n[We],l=s[je].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];un(t,e,o,u,i)}else{let c=l,u=s[ae];zd(r)&&(c.flags|=128),Il(e,t,c,u,o,i,!0)}}function SD(e,t,n,r,o){let i=n[Ht],s=ze(n);i!==s&&un(t,e,r,i,o);for(let a=Me;a<n.length;a++){let l=n[a];ri(l[A],l,e,t,r,i)}}function xD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Xe.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Xe.Important),e.setStyle(n,r,o,i))}}function TD(e,t,n){e.setAttribute(t,"style",n)}function uf(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function df(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&ga(e,t,r),o!==null&&uf(e,t,o),i!==null&&TD(e,t,i)}function MD(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var ff="ng-template";function ND(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&MD(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(_l(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function _l(e){return e.type===4&&e.value!==ff}function AD(e,t,n){let r=e.type===4&&!n?ff:e.value;return t===r}function kD(e,t,n){let r=4,o=e.attrs,i=o!==null?FD(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!Fe(r)&&!Fe(l))return!1;if(s&&Fe(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!AD(e,l,n)||l===""&&t.length===1){if(Fe(r))return!1;s=!0}}else if(r&8){if(o===null||!ND(e,o,l,n)){if(Fe(r))return!1;s=!0}}else{let c=t[++a],u=OD(l,o,_l(e),n);if(u===-1){if(Fe(r))return!1;s=!0;continue}if(c!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&c!==d){if(Fe(r))return!1;s=!0}}}}return Fe(r)||s}function Fe(e){return(e&1)===0}function OD(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return PD(t,e)}function RD(e,t,n=!1){for(let r=0;r<t.length;r++)if(kD(e,t[r],n))return!0;return!1}function FD(e){for(let t=0;t<e.length;t++){let n=e[t];if(Av(n))return t}return e.length}function PD(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Su(e,t){return e?":not("+t.trim()+")":t}function LD(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Fe(s)&&(t+=Su(i,o),o=""),r=s,i=i||!Fe(r);n++}return o!==""&&(t+=Su(i,o)),t}function VD(e){return e.map(LD).join(",")}function jD(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Fe(o))break;o=i}r++}return{attrs:t,classes:n}}var Qt={};function D(e=1){pf(Ee(),j(),Sn()+e,!1)}function pf(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Do(t,i,n)}else{let i=e.preOrderHooks;i!==null&&wo(t,i,0,n)}$t(n)}function E(e,t=N.Default){let n=j();if(n===null)return x(e,t);let r=ye();return Ld(r,n,se(e),t)}function hf(e,t,n,r,o,i){let s=R(null);try{let a=null;o&gt.SignalBased&&(a=t[r][be]),a!==null&&a.transformFn!==void 0&&(i=a.transformFn(i)),o&gt.HasDecoratorInputTransform&&(i=e.inputTransforms[r].call(t,i)),e.setInput!==null?e.setInput(t,a,i,n,r):ud(t,a,r,i)}finally{R(s)}}function BD(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)$t(~o);else{let i=o,s=n[++r],a=n[++r];wv(s,i);let l=t[i];a(2,l)}}}finally{$t(-1)}}function oi(e,t,n,r,o,i,s,a,l,c,u){let d=t.blueprint.slice();return d[et]=o,d[I]=r|4|128|8|64|1024,(c!==null||e&&e[I]&2048)&&(d[I]|=2048),gd(d),d[ae]=d[Cn]=e,d[Le]=n,d[pt]=s||e&&e[pt],d[ne]=a||e&&e[ne],d[yn]=l||e&&e[yn]||null,d[je]=i,d[Qo]=eD(),d[xo]=u,d[ad]=c,d[We]=t.type==2?e[We]:d,d}function ii(e,t,n,r,o){let i=e.data[t];if(i===null)i=HD(e,t,n,r,o),Dv()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=hv();i.injectorIndex=s===null?-1:s.injectorIndex}return vr(i,!0),i}function HD(e,t,n,r,o){let i=Dd(),s=wd(),a=s?i:i&&i.parent,l=e.data[t]=zD(e,a,n,t,r,o);return e.firstChild===null&&(e.firstChild=l),i!==null&&(s?i.child==null&&l.parent!==null&&(i.child=l):i.next===null&&(i.next=l,l.prev=i)),l}function mf(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function gf(e,t,n,r,o){let i=Sn(),s=r&2;try{$t(-1),s&&t.length>Je&&pf(e,t,Je,!1),Ue(s?2:0,o),n(r,o)}finally{$t(i),Ue(s?3:1,o)}}function yf(e,t,n){if(cd(t)){let r=R(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{R(r)}}}function vf(e,t,n){vd()&&(JD(e,t,n,Ne(n,t)),(n.flags&64)===64&&Cf(e,t,n))}function Df(e,t,n=Ne){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function wf(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Cl(e,t,n,r,o,i,s,a,l,c,u){let d=Je+r,p=d+o,f=UD(d,p),h=typeof c=="function"?c():c;return f[A]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1,ssrId:u}}function UD(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Qt);return n}function $D(e,t,n,r){let i=r.get(sD,Xd)||n===qe.ShadowDom,s=e.selectRootElement(t,i);return GD(s),s}function GD(e){WD(e)}var WD=()=>null;function zD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return dv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function xu(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,l=gt.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Tu(r,n,c,a,l):Tu(r,n,c,a)}return r}function Tu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function qD(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],l=null,c=null;for(let u=r;u<o;u++){let d=i[u],p=n?n.get(d):null,f=p?p.inputs:null,h=p?p.outputs:null;l=xu(0,d.inputs,u,l,f),c=xu(1,d.outputs,u,c,h);let m=l!==null&&s!==null&&!_l(t)?cw(l,u,s):null;a.push(m)}l!==null&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=c}function ZD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Ef(e,t,n,r,o,i,s,a){let l=Ne(t,n),c=t.inputs,u;!a&&c!=null&&(u=c[r])?(bl(e,n,u,r,o),Jo(t)&&KD(n,t.index)):t.type&3?(r=ZD(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(l,r,o)):t.type&12}function KD(e,t){let n=Dt(t,e);n[I]&16||(n[I]|=64)}function If(e,t,n,r){if(vd()){let o=r===null?null:{"":-1},i=ew(e,n),s,a;i===null?s=a=null:[s,a]=i,s!==null&&_f(e,t,n,s,o,a),o&&tw(n,r,o)}n.mergedAttrs=fr(n.mergedAttrs,n.attrs)}function _f(e,t,n,r,o,i){for(let c=0;c<r.length;c++)Da(Po(n,t),e,r[c].type);rw(n,e.data.length,r.length);for(let c=0;c<r.length;c++){let u=r[c];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,l=mf(e,t,r.length,null);for(let c=0;c<r.length;c++){let u=r[c];n.mergedAttrs=fr(n.mergedAttrs,u.hostAttrs),ow(e,n,t,l,u),nw(l,u,o),u.contentQueries!==null&&(n.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(n.flags|=64);let d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}qD(e,n,i)}function YD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;QD(s)!=a&&s.push(a),s.push(n,r,i)}}function QD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function JD(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Jo(n)&&iw(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Po(n,t),zt(r,t);let s=n.initialInputs;for(let a=o;a<i;a++){let l=e.data[a],c=wn(t,e,a,n);if(zt(c,t),s!==null&&lw(t,a-o,c,l,n,s),ht(l)){let u=Dt(n.index,t);u[Le]=wn(t,e,a,n)}}}function Cf(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ev();try{$t(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ma(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&XD(l,c)}}finally{$t(-1),ma(s)}}function XD(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function ew(e,t){let n=e.directiveRegistry,r=null,o=null;if(n)for(let i=0;i<n.length;i++){let s=n[i];if(RD(t,s.selectors,!1))if(r||(r=[]),ht(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s);let l=a.length;Na(e,t,l)}else r.unshift(s),Na(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return r===null?null:[r,o]}function Na(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function tw(e,t,n){if(t){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new S(-301,!1);r.push(t[o],i)}}}function nw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ht(t)&&(n[""]=e)}}function rw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ow(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=pn(o.type,!0)),s=new Gt(i,ht(o),E);e.blueprint[r]=s,n[r]=s,YD(e,t,r,mf(e,n,o.hostVars,Qt),o)}function bf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function iw(e,t,n){let r=Ne(t,e),o=wf(n),i=e[pt].rendererFactory,s=si(e,oi(e,o,null,bf(n),r,t,null,i.createRenderer(r,n),null,null,null));e[t.index]=s}function sw(e,t,n,r,o,i){let s=Ne(e,t);aw(t[ne],s,i,e.value,n,r,o)}function aw(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Ka(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function lw(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],u=s[a++],d=s[a++];hf(r,n,l,c,u,d)}}function cw(e,t,n){let r=null,o=0;for(;o<n.length;){let i=n[o];if(i===0){o+=4;continue}else if(i===5){o+=2;continue}if(typeof i=="number")break;if(e.hasOwnProperty(i)){r===null&&(r=[]);let s=e[i];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(i,s[a+1],s[a+2],n[o+1]);break}}o+=2}return r}function Sf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function xf(e,t){let n=e.contentQueries;if(n!==null){let r=R(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];_d(i),a.contentQueries(2,t[s],s)}}}finally{R(r)}}}function si(e,t){return e[dr]?e[uu][Pe]=t:e[dr]=t,e[uu]=t,t}function Aa(e,t,n){_d(0);let r=R(null);try{t(e,n)}finally{R(r)}}function uw(e){return e[To]??=[]}function dw(e){return e.cleanup??=[]}function Tf(e,t){let n=e[yn],r=n?n.get(mt,null):null;r&&r.handleError(t)}function bl(e,t,n,r,o){for(let i=0;i<n.length;){let s=n[i++],a=n[i++],l=n[i++],c=t[s],u=e.data[s];hf(u,c,r,a,l,o)}}function fw(e,t,n){let r=hd(t,e);dD(e[ne],r,n)}function pw(e,t){let n=Dt(t,e),r=n[A];hw(r,n);let o=n[et];o!==null&&n[xo]===null&&(n[xo]=yl(o,n[yn])),Sl(r,n,n[Le])}function hw(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Sl(e,t,n){ol(t);try{let r=e.viewQuery;r!==null&&Aa(1,r,n);let o=e.template;o!==null&&gf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Dn]?.finishViewCreation(e),e.staticContentQueries&&xf(e,t),e.staticViewQueries&&Aa(2,e.viewQuery,n);let i=e.components;i!==null&&mw(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,il()}}function mw(e,t){for(let n=0;n<t.length;n++)pw(e,t[n])}function gw(e,t,n,r){let o=R(null);try{let i=t.tView,a=e[I]&4096?4096:16,l=oi(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[vn]=c;let u=e[Dn];return u!==null&&(l[Dn]=u.createEmbeddedView(i)),Sl(i,l,n),l}finally{R(o)}}function Mu(e,t){return!t||t.firstChild===null||zd(e)}function yw(e,t,n,r=!0){let o=t[A];if(mD(o,t,e,n),r){let s=Ma(n,e),a=t[ne],l=lf(a,e[Ht]);l!==null&&pD(o,e[je],a,t,l,s)}let i=t[xo];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Bo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ze(i)),tt(i)&&vw(i,r);let s=n.type;if(s&8)Bo(e,t,n.child,r);else if(s&32){let a=Dl(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=cf(t,n);if(Array.isArray(a))r.push(...a);else{let l=Ut(t[We]);Bo(l[A],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function vw(e,t){for(let n=Me;n<e.length;n++){let r=e[n],o=r[A].firstChild;o!==null&&Bo(r[A],r,o,t)}e[Ht]!==e[et]&&t.push(e[Ht])}var Mf=[];function Dw(e){return e[we]??ww(e)}function ww(e){let t=Mf.pop()??Object.create(Iw);return t.lView=e,t}function Ew(e){e.lView[we]!==e&&(e.lView=null,Mf.push(e))}var Iw=K(V({},tr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ei(e.lView)},consumerOnSignalRead(){this.lView[we]=this}});function _w(e){let t=e[we]??Object.create(Cw);return t.lView=e,t}var Cw=K(V({},tr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Ut(e.lView);for(;t&&!Nf(t[A]);)t=Ut(t);t&&rl(t)},consumerOnSignalRead(){this.lView[we]=this}});function Nf(e){return e.type!==2}function Af(e){if(e[Mo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Mo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var bw=100;function kf(e,t=!0,n=0){let o=e[pt].rendererFactory,i=!1;i||o.begin?.();try{Sw(e,n)}catch(s){throw t&&Tf(e,s),s}finally{i||o.end?.()}}function Sw(e,t){let n=Ed();try{fu(!0),ka(e,t);let r=0;for(;Xo(e);){if(r===bw)throw new S(103,!1);r++,ka(e,1)}}finally{fu(n)}}function xw(e,t,n,r){let o=t[I];if((o&256)===256)return;let i=!1,s=!1;ol(t);let a=!0,l=null,c=null;i||(Nf(e)?(c=Dw(t),l=Gr(c)):yc()===null?(a=!1,c=_w(t),l=Gr(c)):t[we]&&(Rs(t[we]),t[we]=null));try{gd(t),yv(e.bindingStartIndex),n!==null&&gf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Do(t,f,null)}else{let f=e.preOrderHooks;f!==null&&wo(t,f,0,null),Ys(t,0)}if(s||Tw(t),Af(t),Of(t,0),e.contentQueries!==null&&xf(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Do(t,f)}else{let f=e.contentHooks;f!==null&&wo(t,f,1),Ys(t,1)}BD(e,t);let d=e.components;d!==null&&Ff(t,d,0);let p=e.viewQuery;if(p!==null&&Aa(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Do(t,f)}else{let f=e.viewHooks;f!==null&&wo(t,f,2),Ys(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ks]){for(let f of t[Ks])f();t[Ks]=null}i||(t[I]&=-73)}catch(u){throw i||ei(t),u}finally{c!==null&&(ks(c,l),a&&Ew(c)),il()}}function Of(e,t){for(let n=Kd(e);n!==null;n=Yd(n))for(let r=Me;r<n.length;r++){let o=n[r];Rf(o,t)}}function Tw(e){for(let t=Kd(e);t!==null;t=Yd(t)){if(!(t[I]&ko.HasTransplantedViews))continue;let n=t[Ao];for(let r=0;r<n.length;r++){let o=n[r];rl(o)}}}function Mw(e,t,n){let r=Dt(t,e);Rf(r,n)}function Rf(e,t){nl(e)&&ka(e,t)}function ka(e,t){let r=e[A],o=e[I],i=e[we],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Os(i)),s||=!1,i&&(i.dirty=!1),e[I]&=-9217,s)xw(r,e,r.template,e[Le]);else if(o&8192){Af(e),Of(e,1);let a=r.components;a!==null&&Ff(e,a,1)}}function Ff(e,t,n){for(let r=0;r<t.length;r++)Mw(e,t[r],n)}function xl(e,t){let n=Ed()?64:1088;for(e[pt].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=Ut(e);if(da(e)&&!r)return e;e=r}return null}var qt=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[A];return Bo(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[Le]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[we]?.dirty}set context(t){this._lView[Le]=t}get destroyed(){return(this._lView[I]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ae];if(tt(t)){let n=t[No],r=n?n.indexOf(this):-1;r>-1&&(Ta(t,r),bo(n,r))}this._attachedToViewContainer=!1}sf(this._lView[A],this._lView)}onDestroy(t){yd(this._lView,t)}markForCheck(){xl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){rl(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){pa(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,kf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=da(this._lView),n=this._lView[vn];n!==null&&!t&&wl(n,this._lView),rf(this._lView[A],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=da(this._lView),r=this._lView[vn];r!==null&&!n&&of(r,this._lView),pa(this._lView)}},ai=(()=>{class e{static __NG_ELEMENT_ID__=kw}return e})(),Nw=ai,Aw=class extends Nw{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=gw(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new qt(o)}};function kw(){return Ow(ye(),j())}function Ow(e,t){return e.type&4?new Aw(t,e,ni(e,t)):null}var Zk=new RegExp(`^(\\d+)*(${iD}|${oD})*(.*)`);var Rw=()=>null;function Nu(e,t){return Rw(e,t)}var Oa=class{},Ho=class{},Ra=class{resolveComponentFactory(t){throw Error(`No component factory found for ${De(t)}.`)}},hr=class{static NULL=new Ra},En=class{},Et=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Fw()}return e})();function Fw(){let e=j(),t=ye(),n=Dt(t.index,e);return(ft(n)?n:e)[ne]}var Pw=(()=>{class e{static \u0275prov=k({token:e,providedIn:"root",factory:()=>null})}return e})();function Fa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ou(o,a);else if(i==2){let l=a,c=t[++s];r=ou(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}var Pa=class extends hr{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=mn(t);return new Uo(n,this.ngModule)}};function Au(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let o=e[r];if(o===void 0)continue;let i=Array.isArray(o),s=i?o[0]:o,a=i?o[1]:gt.None;t?n.push({propName:s,templateName:r,isSignal:(a&gt.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function Lw(e){let t=e.toLowerCase();return t==="svg"?nv:t==="math"?rv:null}var Uo=class extends Ho{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){let t=this.componentDef,n=t.inputTransforms,r=Au(t.inputs,!0);if(n!==null)for(let o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Au(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=VD(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=R(null);try{o=o||this.ngModule;let s=o instanceof Ge?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new ya(t,s):t,l=a.get(En,null);if(l===null)throw new S(407,!1);let c=a.get(Pw,null),u=a.get(pr,null),d={rendererFactory:l,sanitizer:c,changeDetectionScheduler:u},p=l.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?$D(p,r,this.componentDef.encapsulation,a):nf(p,f,Lw(f)),m=512;this.componentDef.signals?m|=4096:this.componentDef.onPush||(m|=16);let y=null;h!==null&&(y=yl(h,a,!0));let w=Cl(0,null,null,1,0,null,null,null,null,null,null),L=oi(null,w,null,m,null,null,d,p,a,null,y);ol(L);let F,W,Z=null;try{let ee=this.componentDef,Ye,Cs=null;ee.findHostDirectiveDefs?(Ye=[],Cs=new Map,ee.findHostDirectiveDefs(ee,Ye,Cs),Ye.push(ee)):Ye=[ee];let Lg=Vw(L,h);Z=jw(Lg,h,ee,Ye,L,d,p),W=md(w,Je),h&&Uw(p,ee,h,r),n!==void 0&&$w(W,this.ngContentSelectors,n),F=Hw(Z,ee,Ye,Cs,L,[Gw]),Sl(w,L,null)}catch(ee){throw Z!==null&&ba(Z),ba(L),ee}finally{il()}return new La(this.componentType,F,ni(W,L),L,W)}finally{R(i)}}},La=class extends Oa{location;_rootLView;_tNode;instance;hostView;changeDetectorRef;componentType;previousInputValues=null;constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new qt(o,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,o;if(r!==null&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView;bl(i[A],i,o,t,n),this.previousInputValues.set(t,n);let s=Dt(this._tNode.index,i);xl(s,1)}}get injector(){return new Bt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Vw(e,t){let n=e[A],r=Je;return e[r]=t,ii(n,r,2,"#host",null)}function jw(e,t,n,r,o,i,s){let a=o[A];Bw(r,e,t,s);let l=null;t!==null&&(l=yl(t,o[yn]));let c=i.rendererFactory.createRenderer(t,n),u=oi(o,wf(n),null,bf(n),o[e.index],e,i,c,null,null,l);return a.firstCreatePass&&Na(a,e,r.length-1),si(o,u),o[e.index]=u}function Bw(e,t,n,r){for(let o of e)t.mergedAttrs=fr(t.mergedAttrs,o.hostAttrs);t.mergedAttrs!==null&&(Fa(t,t.mergedAttrs,!0),n!==null&&df(r,n,t))}function Hw(e,t,n,r,o,i){let s=ye(),a=o[A],l=Ne(s,o);_f(a,o,s,n,null,r);for(let u=0;u<n.length;u++){let d=s.directiveStart+u,p=wn(o,a,d,s);zt(p,o)}Cf(a,o,s),l&&zt(l,o);let c=wn(o,a,s.directiveStart+s.componentOffset,s);if(e[Le]=o[Le]=c,i!==null)for(let u of i)u(c,t);return yf(a,s,o),c}function Uw(e,t,n,r){if(r)ga(e,n,["ng-version","19.0.5"]);else{let{attrs:o,classes:i}=jD(t.selectors[0]);o&&ga(e,n,o),i&&i.length>0&&uf(e,n,i.join(" "))}}function $w(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}function Gw(){let e=ye();cl(j()[A],e)}var li=(()=>{class e{static __NG_ELEMENT_ID__=Ww}return e})();function Ww(){let e=ye();return qw(e,j())}var zw=li,Pf=class extends zw{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ni(this._hostTNode,this._hostLView)}get injector(){return new Bt(this._hostTNode,this._hostLView)}get parentInjector(){let t=ul(this._hostTNode,this._hostLView);if(Ad(t)){let n=Fo(t,this._hostLView),r=Ro(t),o=n[A].data[r+8];return new Bt(o,n)}else return new Bt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ku(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Nu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Mu(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Jy(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let l=s?t:new Uo(mn(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let m=(s?c:this.parentInjector).get(Ge,null);m&&(i=m)}let u=mn(l.componentType??{}),d=Nu(this._lContainer,u?.id??null),p=d?.firstChild??null,f=l.create(c,o,p,i);return this.insertImpl(f.hostView,a,Mu(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(iv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[ae],c=new Pf(l,l[je],l[ae]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return yw(s,o,i,r),t.attachToViewContainerRef(),Ju(ea(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ku(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ta(this._lContainer,n);r&&(bo(ea(this._lContainer),n),sf(r[A],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ta(this._lContainer,n);return r&&bo(ea(this._lContainer),n)!=null?new qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ku(e){return e[No]}function ea(e){return e[No]||(e[No]=[])}function qw(e,t){let n,r=t[e.index];return tt(r)?n=r:(n=Sf(r,t,null,e),t[e.index]=n,si(t,n)),Kw(n,t,e,r),new Pf(n,e,t)}function Zw(e,t){let n=e[ne],r=n.createComment(""),o=Ne(t,e),i=lf(n,o);return jo(n,i,r,wD(n,o),!1),r}var Kw=Jw,Yw=()=>!1;function Qw(e,t,n){return Yw(e,t,n)}function Jw(e,t,n,r){if(e[Ht])return;let o;n.type&8?o=ze(r):o=Zw(t,n),e[Ht]=o}function Xw(e){return typeof e=="function"&&e[be]!==void 0}function wr(e,t){Dr("NgSignals");let n=xc(e),r=n[be];return t?.equal&&(r.equal=t.equal),n.set=o=>Fs(r,o),n.update=o=>Tc(r,o),n.asReadonly=eE.bind(n),n}function eE(){let e=this[be];if(e.readonlyFn===void 0){let t=()=>this();t[be]=e,e.readonlyFn=t}return e.readonlyFn}function Lf(e){return Xw(e)&&typeof e.set=="function"}var In=class{};var $o=class extends In{injector;componentFactoryResolver=new Pa(this);instance=null;constructor(t){super();let n=new ur([...t.providers,{provide:In,useValue:this},{provide:hr,useValue:this.componentFactoryResolver}],t.parent||el(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function tE(e,t,n=null){return new $o({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var nE=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=rd(!1,n.type),o=r.length>0?tE([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=k({token:e,providedIn:"environment",factory:()=>new e(x(Ge))})}return e})();function ci(e){return gr(()=>{let t=Vf(e),n=K(V({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===qd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(nE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||qe.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Dr("NgStandalone"),jf(n);let r=e.dependencies;return n.directiveDefs=Ru(r,!1),n.pipeDefs=Ru(r,!0),n.id=iE(n),n})}function rE(e){return mn(e)||td(e)}function oE(e){return e!==null}function It(e){return gr(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ou(e,t){if(e==null)return hn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=gt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==gt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Q(e){return gr(()=>{let t=Vf(e);return jf(t),t})}function Vf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||hn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ou(e.inputs,t),outputs:Ou(e.outputs),debugInfo:null}}function jf(e){e.features?.forEach(t=>t(e))}function Ru(e,t){if(!e)return null;let n=t?nd:rE;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(oE)}function iE(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function sE(e){return Object.getPrototypeOf(e.prototype).constructor}function Ie(e){let t=sE(e.type),n=!0,r=[e];for(;t;){let o;if(ht(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=go(e.inputs),s.inputTransforms=go(e.inputTransforms),s.declaredInputs=go(e.declaredInputs),s.outputs=go(e.outputs);let a=o.hostBindings;a&&dE(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&cE(e,l),c&&uE(e,c),aE(e,o),yy(e.outputs,o.outputs),ht(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Ie&&(n=!1)}}t=Object.getPrototypeOf(t)}lE(r)}function aE(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];if(r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],t.inputTransforms!==null)){let o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function lE(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=fr(o.hostAttrs,n=fr(n,o.hostAttrs))}}function go(e){return e===hn?{}:e===Te?[]:e}function cE(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function uE(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function dE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Bf(e){return pE(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function fE(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function pE(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Hf(e,t,n){return e[t]=n}function yt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function hE(e,t,n,r){let o=yt(e,t,n);return yt(e,t+1,r)||o}function mE(e){return(e.flags&32)===32}function gE(e,t,n,r,o,i,s,a,l){let c=t.consts,u=ii(t,e,4,s||null,a||null);If(t,n,u,Oo(c,l)),cl(t,u);let d=u.tView=Cl(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}function yE(e,t,n,r,o,i,s,a,l,c){let u=n+Je,d=t.firstCreatePass?gE(u,t,e,r,o,i,s,a,l):t.data[u];vr(d,!1);let p=vE(t,e,d,n);al()&&El(t,e,p,d),zt(p,e);let f=Sf(p,e,p,d);return e[u]=f,si(e,f),Qw(f,d,e),tl(d)&&vf(t,e,d),l!=null&&Df(e,d,c),d}function le(e,t,n,r,o,i,s,a){let l=j(),c=Ee(),u=Oo(c.consts,i);return yE(l,c,e,t,n,r,o,u,s,a),le}var vE=DE;function DE(e,t,n,r){return ll(!0),t[ne].createComment("")}var Uf=new _("");function Er(e){return!!e&&typeof e.then=="function"}function $f(e){return!!e&&typeof e.subscribe=="function"}var wE=new _("");var Gf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=C(wE,{optional:!0})??[];injector=C(Wt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Yo(this.injector,o);if(Er(i))n.push(i);else if($f(i)){let s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),EE=(()=>{class e{static \u0275prov=k({token:e,providedIn:"root",factory:()=>new Va})}return e})(),Va=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Wf=new _("");function IE(){Sc(()=>{throw new S(600,!1)})}function _E(e){return e.isBoundToModule}var CE=10;function bE(e,t,n){try{let r=n();return Er(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Zt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=C(Qv);afterRenderManager=C(aD);zonelessEnabled=C(dl);rootEffectScheduler=C(EE);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Qe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=C(Yt).hasPendingTasks.pipe(me(n=>!n));constructor(){C(tf,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=C(Ge);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Ho;if(!this._injector.get(Gf).done){let p=!o&&jy(n),f=!1;throw new S(405,f)}let s;o?s=n:s=this._injector.get(hr).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=_E(s)?void 0:this._injector.get(In),l=r||s.selector,c=s.create(Wt.NULL,[],l,a),u=c.location.nativeElement,d=c.injector.get(Uf,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Eo(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(ef.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new S(101,!1);let n=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,R(n),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(En,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++<CE;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)SE(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Xo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Eo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Wf,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Eo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Eo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function SE(e,t,n,r){if(!n&&!Xo(e))return;kf(e,t,n&&!r?0:1)}function Tl(e,t,n,r){let o=j(),i=ti();if(yt(o,i,t)){let s=Ee(),a=sl();sw(a,o,e,t,n,r)}return Tl}function xE(e,t,n,r){return yt(e,ti(),n)?t+Ka(n)+r:Qt}function yo(e,t){return e<<17|t<<2}function Kt(e){return e>>17&32767}function TE(e){return(e&2)==2}function ME(e,t){return e&131071|t<<17}function ja(e){return e|2}function _n(e){return(e&131068)>>2}function ta(e,t){return e&-131069|t<<2}function NE(e){return(e&1)===1}function Ba(e){return e|1}function AE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Kt(s),l=_n(s);e[r]=n;let c=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||yr(d,u)>0)&&(c=!0)}else u=n;if(o)if(l!==0){let p=Kt(e[a+1]);e[r+1]=yo(p,a),p!==0&&(e[p+1]=ta(e[p+1],r)),e[a+1]=ME(e[a+1],r)}else e[r+1]=yo(a,0),a!==0&&(e[a+1]=ta(e[a+1],r)),a=r;else e[r+1]=yo(l,0),a===0?a=r:e[l+1]=ta(e[l+1],r),l=r;c&&(e[r+1]=ja(e[r+1])),Fu(e,u,r,!0),Fu(e,u,r,!1),kE(t,u,e,r,i),s=yo(a,l),i?t.classBindings=s:t.styleBindings=s}function kE(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&yr(i,t)>=0&&(n[r+1]=Ba(n[r+1]))}function Fu(e,t,n,r){let o=e[n+1],i=t===null,s=r?Kt(o):_n(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];OE(l,t)&&(a=!0,e[s+1]=r?Ba(c):ja(c)),s=r?Kt(c):_n(c)}a&&(e[n+1]=r?ja(o):Ba(o))}function OE(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?yr(e,t)>=0:!1}function b(e,t,n){let r=j(),o=ti();if(yt(r,o,t)){let i=Ee(),s=sl();Ef(i,s,r,e,t,r[ne],n,!1)}return b}function Pu(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";bl(e,n,i[s],s,r)}function ui(e,t){return RE(e,t,null,!0),ui}function RE(e,t,n,r){let o=j(),i=Ee(),s=vv(2);if(i.firstUpdatePass&&PE(i,e,s,r),t!==Qt&&yt(o,s,t)){let a=i.data[Sn()];HE(i,a,o,o[ne],e,o[s+1]=UE(t,n),r,s)}}function FE(e,t){return t>=e.expandoStartIndex}function PE(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Sn()],s=FE(e,n);$E(i,r)&&t===null&&!s&&(t=!1),t=LE(o,i,t,r),AE(o,i,t,n,s,r)}}function LE(e,t,n,r){let o=Iv(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=na(null,e,t,n,r),n=mr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=na(o,e,t,n,r),i===null){let l=VE(e,t,r);l!==void 0&&Array.isArray(l)&&(l=na(null,e,t,l[1],r),l=mr(l,t.attrs,r),jE(e,t,r,l))}else i=BE(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function VE(e,t,n){let r=n?t.classBindings:t.styleBindings;if(_n(r)!==0)return e[Kt(r)]}function jE(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Kt(o)]=r}function BE(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=mr(r,s,n)}return mr(r,t.attrs,n)}function na(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=mr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function mr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Ly(e,s,n?!0:t[++i]))}return e===void 0?null:e}function HE(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],u=NE(c)?Lu(l,t,n,o,_n(c),s):void 0;if(!Go(u)){Go(i)||TE(c)&&(i=Lu(l,null,n,o,a,s));let d=hd(Sn(),n);xD(r,s,d,o,i)}}function Lu(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),u=c?l[1]:l,d=u===null,p=n[o+1];p===Qt&&(p=d?Te:void 0);let f=d?qs(p,r):u===r?p:void 0;if(c&&!Go(f)&&(f=qs(l,r)),Go(f)&&(a=f,s))return a;let h=e[o+1];o=s?Kt(h):_n(h)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=qs(l,r))}return a}function Go(e){return e!==void 0}function UE(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=De(vl(e)))),e}function $E(e,t){return(e.flags&(t?8:16))!==0}function GE(e,t,n,r,o,i){let s=t.consts,a=Oo(s,o),l=ii(t,e,2,r,a);return If(t,n,l,Oo(s,i)),l.attrs!==null&&Fa(l,l.attrs,!1),l.mergedAttrs!==null&&Fa(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function v(e,t,n,r){let o=j(),i=Ee(),s=Je+e,a=o[ne],l=i.firstCreatePass?GE(s,i,o,t,n,r):i.data[s],c=WE(i,o,l,a,t,e);o[s]=c;let u=tl(l);return vr(l,!0),df(a,c,l),!mE(l)&&al()&&El(i,o,c,l),lv()===0&&zt(c,o),cv(),u&&(vf(i,o,l),yf(i,l,o)),r!==null&&Df(o,l),v}function g(){let e=ye();wd()?mv():(e=e.parent,vr(e,!1));let t=e;fv(t)&&pv(),uv();let n=Ee();return n.firstCreatePass&&(cl(n,e),cd(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Mv(t)&&Pu(n,t,j(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Nv(t)&&Pu(n,t,j(),t.stylesWithoutHost,!1),g}function oe(e,t,n,r){return v(e,t,n,r),g(),oe}var WE=(e,t,n,r,o,i)=>(ll(!0),nf(r,o,bv()));function Ae(){return j()}var Wo="en-US";var zE=Wo;function qE(e){typeof e=="string"&&(zE=e.toLowerCase().replace(/_/g,"-"))}var ZE=(e,t,n)=>{};function q(e,t,n,r){let o=j(),i=Ee(),s=ye();return zf(i,o,o[ne],s,e,t,r),q}function KE(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[To],l=o[i+2];return a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function zf(e,t,n,r,o,i,s){let a=tl(r),c=e.firstCreatePass&&dw(e),u=t[Le],d=uw(t),p=!0;if(r.type&3||s){let m=Ne(r,t),y=s?s(m):m,w=d.length,L=s?W=>s(ze(W[r.index])):r.index,F=null;if(!s&&a&&(F=KE(e,t,o,r.index)),F!==null){let W=F.__ngLastListenerFn__||F;W.__ngNextListenerFn__=i,F.__ngLastListenerFn__=i,p=!1}else{i=ju(r,t,u,i),ZE(m,o,i);let W=n.listen(y,o,i);d.push(i,W),c&&c.push(o,L,w,w+1)}}else i=ju(r,t,u,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let m=h.length;if(m)for(let y=0;y<m;y+=2){let w=h[y],L=h[y+1],Z=t[w][L].subscribe(i),ee=d.length;d.push(i,Z),c&&c.push(o,r.index,ee,-(ee+1))}}}function Vu(e,t,n,r){let o=R(null);try{return Ue(6,t,n),n(r)!==!1}catch(i){return Tf(e,i),!1}finally{Ue(7,t,n),R(o)}}function ju(e,t,n,r){return function o(i){if(i===Function)return r;let s=e.componentOffset>-1?Dt(e.index,t):t;xl(s,5);let a=Vu(t,n,r,i),l=o.__ngNextListenerFn__;for(;l;)a=Vu(t,n,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function P(e=1){return Cv(e)}function qf(e){let t=gv();return ov(t,Je+e)}function O(e,t=""){let n=j(),r=Ee(),o=e+Je,i=r.firstCreatePass?ii(r,o,1,t,null):r.data[o],s=YE(r,n,i,t,e);n[o]=s,al()&&El(r,n,s,i),vr(i,!1)}var YE=(e,t,n,r,o)=>(ll(!0),uD(t[ne],r));function Ze(e){return Tn("",e,""),Ze}function Tn(e,t,n){let r=j(),o=xE(r,e,t,n);return o!==Qt&&fw(r,Sn(),o),Tn}function _e(e,t,n){Lf(t)&&(t=t());let r=j(),o=ti();if(yt(r,o,t)){let i=Ee(),s=sl();Ef(i,s,r,e,t,r[ne],n,!1)}return _e}function ke(e,t){let n=Lf(e);return n&&e.set(t),n}function Ce(e,t){let n=j(),r=Ee(),o=ye();return zf(r,n,n[ne],o,e,t),Ce}function QE(e,t,n){let r=Ee();if(r.firstCreatePass){let o=ht(e);Ha(n,r.data,r.blueprint,o,!0),Ha(t,r.data,r.blueprint,o,!1)}}function Ha(e,t,n,r,o){if(e=se(e),Array.isArray(e))for(let i=0;i<e.length;i++)Ha(e[i],t,n,r,o);else{let i=Ee(),s=j(),a=ye(),l=gn(e)?e:se(e.provide),c=sd(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(gn(e)||!e.multi){let f=new Gt(c,o,E),h=oa(l,t,o?u:u+p,d);h===-1?(Da(Po(a,s),i,l),ra(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=oa(l,t,u+p,d),h=oa(l,t,u,u+p),m=f>=0&&n[f],y=h>=0&&n[h];if(o&&!y||!o&&!m){Da(Po(a,s),i,l);let w=eI(o?XE:JE,n.length,o,r,c);!o&&y&&(n[h].providerFactory=w),ra(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(w),s.push(w)}else{let w=Zf(n[o?h:f],c,!o&&r);ra(i,e,f>-1?f:h,w)}!o&&r&&y&&n[h].componentProviders++}}}function ra(e,t,n,r){let o=gn(t),i=Gy(t);if(o||i){let l=(i?se(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function Zf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function oa(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function JE(e,t,n,r){return Ua(this.multi,[])}function XE(e,t,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=wn(n,n[A],this.providerFactory.index,r);i=a.slice(0,s),Ua(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],Ua(o,i);return i}function Ua(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function eI(e,t,n,r,o){let i=new Gt(e,n,E);return i.multi=[],i.index=t,i.componentProviders=0,Zf(i,o,r&&!n),i}function rt(e,t=[]){return n=>{n.providersResolver=(r,o)=>QE(r,o?o(e):e,t)}}function Ir(e,t,n,r){return tI(j(),Id(),e,t,n,r)}function Mn(e,t,n,r,o){return nI(j(),Id(),e,t,n,r,o)}function Kf(e,t){let n=e[t];return n===Qt?void 0:n}function tI(e,t,n,r,o,i){let s=t+n;return yt(e,s,o)?Hf(e,s+1,i?r.call(i,o):r(o)):Kf(e,s+1)}function nI(e,t,n,r,o,i,s){let a=t+n;return hE(e,a,o,i)?Hf(e,a+2,s?r.call(s,o,i):r(o,i)):Kf(e,a+2)}var rI=(()=>{class e{zone=C(Y);changeDetectionScheduler=C(pr);applicationRef=C(Zt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function oI({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(K(V({},iI()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:cr,multi:!0,useFactory:()=>{let r=C(rI,{optional:!0});return()=>r.initialize()}},{provide:cr,multi:!0,useFactory:()=>{let r=C(sI);return()=>{r.initialize()}}},t===!0?{provide:Ud,useValue:!0}:[],{provide:$d,useValue:n??Bd}]}function iI(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var sI=(()=>{class e{subscription=new ie;initialized=!1;zone=C(Y);pendingTasks=C(Yt);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(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var aI=(()=>{class e{appRef=C(Zt);taskService=C(Yt);ngZone=C(Y);zonelessEnabled=C(dl);tracing=C(tf,{optional:!0});disableScheduling=C(Ud,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ie;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Vo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C($d,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ca||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Du:Gd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Vo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Du(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lI(){return typeof $localize<"u"&&$localize.locale||Wo}var Ml=new _("",{providedIn:"root",factory:()=>C(Ml,N.Optional|N.SkipSelf)||lI()});var $a=new _(""),cI=new _("");function or(e){return!e.moduleRef}function uI(e){let t=or(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{or(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),or(e)){let i=()=>t.destroy(),s=e.platformInjector.get($a);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get($a);s.add(i),e.moduleRef.onDestroy(()=>{Eo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return bE(r,n,()=>{let i=t.get(Gf);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Ml,Wo);if(qE(s||Wo),!t.get(cI,!0))return or(e)?t.get(Zt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(or(e)){let l=t.get(Zt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return dI(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function dI(e,t){let n=e.injector.get(Zt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}var Io=null;function fI(e=[],t){return Wt.create({name:t,providers:[{provide:Ko,useValue:"platform"},{provide:$a,useValue:new Set([()=>Io=null])},...e]})}function pI(e=[]){if(Io)return Io;let t=fI(e);return Io=t,IE(),hI(t),t}function hI(e){let t=e.get(ml,null);Yo(e,()=>{t?.forEach(n=>n())})}var Nn=(()=>{class e{static __NG_ELEMENT_ID__=mI}return e})();function mI(e){return gI(ye(),j(),(e&16)===16)}function gI(e,t,n){if(Jo(e)&&!n){let r=Dt(e.index,t);return new qt(r,r)}else if(e.type&175){let r=t[We];return new qt(r,t)}return null}var Ga=class{constructor(){}supports(t){return Bf(t)}create(t){return new Wa(t)}},yI=(e,t)=>t,Wa=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||yI}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<Bu(r,o,i)?n:r,a=Bu(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let c=a-o,u=l-o;if(c!=u){for(let p=0;p<c;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<c&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Bf(t))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,fE(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new za(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new zo),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new zo),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},za=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},qa=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},zo=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new qa,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Bu(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function Hu(){return new Nl([new Ga])}var Nl=(()=>{class e{factories;static \u0275prov=k({token:e,providedIn:"root",factory:Hu});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Hu()),deps:[[e,new Fy,new Qu]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new S(901,!1)}}return e})();function Yf(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=pI(r),i=[oI({}),{provide:pr,useExisting:aI},...n||[]],s=new $o({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return uI({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function di(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function _r(e,t){Dr("NgSignals");let n=_c(e);return t?.equal&&(n[be].equal=t.equal),n}function ot(e){let t=R(null);try{return e()}finally{R(t)}}var Uu=class{[be];constructor(t){this[be]=t}destroy(){this[be].destroy()}};var tp=null;function kn(){return tp}function np(e){tp??=e}var fi=class{};var Oe=new _("");function pi(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Al=/\s+/,Qf=[],hi=(()=>{class e{_ngEl;_renderer;initialClasses=Qf;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Al):Qf}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Al):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Al).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(E(nt),E(Et))};static \u0275dir=Q({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var kl=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},mi=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new kl(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Jf(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Jf(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(li),E(ai),E(Nl))};static \u0275dir=Q({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Jf(e,t){e.context.$implicit=t.item}var gi=(()=>{class e{_viewContainer;_context=new Ol;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Xf("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Xf("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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(E(li),E(ai))};static \u0275dir=Q({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ol=class{$implicit=null;ngIf=null};function Xf(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${De(t)}'.`)}var Cr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({})}return e})(),rp="browser",vI="server";function yi(e){return e===vI}var An=class{};var DI=typeof global=="object"&&global&&global.Object===Object&&global,vi=DI;var wI=typeof self=="object"&&self&&self.Object===Object&&self,EI=vi||wI||Function("return this")(),J=EI;var II=J.Symbol,ce=II;var op=Object.prototype,_I=op.hasOwnProperty,CI=op.toString,br=ce?ce.toStringTag:void 0;function bI(e){var t=_I.call(e,br),n=e[br];try{e[br]=void 0;var r=!0}catch{}var o=CI.call(e);return r&&(t?e[br]=n:delete e[br]),o}var ip=bI;var SI=Object.prototype,xI=SI.toString;function TI(e){return xI.call(e)}var sp=TI;var MI="[object Null]",NI="[object Undefined]",ap=ce?ce.toStringTag:void 0;function AI(e){return e==null?e===void 0?NI:MI:ap&&ap in Object(e)?ip(e):sp(e)}var Be=AI;function kI(e){return e!=null&&typeof e=="object"}var ue=kI;var OI="[object Symbol]";function RI(e){return typeof e=="symbol"||ue(e)&&Be(e)==OI}var _t=RI;function FI(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var lp=FI;var PI=Array.isArray,re=PI;var LI=1/0,cp=ce?ce.prototype:void 0,up=cp?cp.toString:void 0;function dp(e){if(typeof e=="string")return e;if(re(e))return lp(e,dp)+"";if(_t(e))return up?up.call(e):"";var t=e+"";return t=="0"&&1/e==-LI?"-0":t}var fp=dp;var VI=/\s/;function jI(e){for(var t=e.length;t--&&VI.test(e.charAt(t)););return t}var pp=jI;var BI=/^\s+/;function HI(e){return e&&e.slice(0,pp(e)+1).replace(BI,"")}var hp=HI;function UI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var de=UI;var mp=NaN,$I=/^[-+]0x[0-9a-f]+$/i,GI=/^0b[01]+$/i,WI=/^0o[0-7]+$/i,zI=parseInt;function qI(e){if(typeof e=="number")return e;if(_t(e))return mp;if(de(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=de(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hp(e);var n=GI.test(e);return n||WI.test(e)?zI(e.slice(2),n?2:8):$I.test(e)?mp:+e}var gp=qI;var yp=1/0,ZI=17976931348623157e292;function KI(e){if(!e)return e===0?e:0;if(e=gp(e),e===yp||e===-yp){var t=e<0?-1:1;return t*ZI}return e===e?e:0}var vp=KI;function YI(e){var t=vp(e),n=t%1;return t===t?n?t-n:t:0}var Dp=YI;function QI(e){return e}var wp=QI;var JI="[object AsyncFunction]",XI="[object Function]",e_="[object GeneratorFunction]",t_="[object Proxy]";function n_(e){if(!de(e))return!1;var t=Be(e);return t==XI||t==e_||t==JI||t==t_}var Di=n_;var r_=J["__core-js_shared__"],wi=r_;var Ep=function(){var e=/[^.]+$/.exec(wi&&wi.keys&&wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o_(e){return!!Ep&&Ep in e}var Ip=o_;var i_=Function.prototype,s_=i_.toString;function a_(e){if(e!=null){try{return s_.call(e)}catch{}try{return e+""}catch{}}return""}var st=a_;var l_=/[\\^$.*+?()[\]{}|]/g,c_=/^\[object .+?Constructor\]$/,u_=Function.prototype,d_=Object.prototype,f_=u_.toString,p_=d_.hasOwnProperty,h_=RegExp("^"+f_.call(p_).replace(l_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m_(e){if(!de(e)||Ip(e))return!1;var t=Di(e)?h_:c_;return t.test(st(e))}var _p=m_;function g_(e,t){return e?.[t]}var Cp=g_;function y_(e,t){var n=Cp(e,t);return _p(n)?n:void 0}var ve=y_;var v_=ve(J,"WeakMap"),Ei=v_;var bp=Object.create,D_=function(){function e(){}return function(t){if(!de(t))return{};if(bp)return bp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Sp=D_;function w_(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var xp=w_;var E_=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Fl=E_;function I_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Tp=I_;function __(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var Mp=__;var C_=9007199254740991,b_=/^(?:0|[1-9]\d*)$/;function S_(e,t){var n=typeof e;return t=t??C_,!!t&&(n=="number"||n!="symbol"&&b_.test(e))&&e>-1&&e%1==0&&e<t}var Ii=S_;function x_(e,t,n){t=="__proto__"&&Fl?Fl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _i=x_;function T_(e,t){return e===t||e!==e&&t!==t}var On=T_;var M_=Object.prototype,N_=M_.hasOwnProperty;function A_(e,t,n){var r=e[t];(!(N_.call(e,t)&&On(r,n))||n===void 0&&!(t in e))&&_i(e,t,n)}var Ci=A_;function k_(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),o?_i(n,a,l):Ci(n,a,l)}return n}var Ct=k_;var O_=9007199254740991;function R_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=O_}var Rn=R_;function F_(e){return e!=null&&Rn(e.length)&&!Di(e)}var Fn=F_;var P_=Object.prototype;function L_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||P_;return e===n}var Pn=L_;function V_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Np=V_;var j_="[object Arguments]";function B_(e){return ue(e)&&Be(e)==j_}var Pl=B_;var Ap=Object.prototype,H_=Ap.hasOwnProperty,U_=Ap.propertyIsEnumerable,$_=Pl(function(){return arguments}())?Pl:function(e){return ue(e)&&H_.call(e,"callee")&&!U_.call(e,"callee")},bi=$_;function G_(){return!1}var kp=G_;var Fp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Op=Fp&&typeof module=="object"&&module&&!module.nodeType&&module,W_=Op&&Op.exports===Fp,Rp=W_?J.Buffer:void 0,z_=Rp?Rp.isBuffer:void 0,q_=z_||kp,Jt=q_;var Z_="[object Arguments]",K_="[object Array]",Y_="[object Boolean]",Q_="[object Date]",J_="[object Error]",X_="[object Function]",eC="[object Map]",tC="[object Number]",nC="[object Object]",rC="[object RegExp]",oC="[object Set]",iC="[object String]",sC="[object WeakMap]",aC="[object ArrayBuffer]",lC="[object DataView]",cC="[object Float32Array]",uC="[object Float64Array]",dC="[object Int8Array]",fC="[object Int16Array]",pC="[object Int32Array]",hC="[object Uint8Array]",mC="[object Uint8ClampedArray]",gC="[object Uint16Array]",yC="[object Uint32Array]",G={};G[cC]=G[uC]=G[dC]=G[fC]=G[pC]=G[hC]=G[mC]=G[gC]=G[yC]=!0;G[Z_]=G[K_]=G[aC]=G[Y_]=G[lC]=G[Q_]=G[J_]=G[X_]=G[eC]=G[tC]=G[nC]=G[rC]=G[oC]=G[iC]=G[sC]=!1;function vC(e){return ue(e)&&Rn(e.length)&&!!G[Be(e)]}var Pp=vC;function DC(e){return function(t){return e(t)}}var Ln=DC;var Lp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sr=Lp&&typeof module=="object"&&module&&!module.nodeType&&module,wC=Sr&&Sr.exports===Lp,Ll=wC&&vi.process,EC=function(){try{var e=Sr&&Sr.require&&Sr.require("util").types;return e||Ll&&Ll.binding&&Ll.binding("util")}catch{}}(),at=EC;var Vp=at&&at.isTypedArray,IC=Vp?Ln(Vp):Pp,Si=IC;var _C=Object.prototype,CC=_C.hasOwnProperty;function bC(e,t){var n=re(e),r=!n&&bi(e),o=!n&&!r&&Jt(e),i=!n&&!r&&!o&&Si(e),s=n||r||o||i,a=s?Np(e.length,String):[],l=a.length;for(var c in e)(t||CC.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ii(c,l)))&&a.push(c);return a}var xi=bC;function SC(e,t){return function(n){return e(t(n))}}var Ti=SC;var xC=Ti(Object.keys,Object),jp=xC;var TC=Object.prototype,MC=TC.hasOwnProperty;function NC(e){if(!Pn(e))return jp(e);var t=[];for(var n in Object(e))MC.call(e,n)&&n!="constructor"&&t.push(n);return t}var Bp=NC;function AC(e){return Fn(e)?xi(e):Bp(e)}var Ke=AC;function kC(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Hp=kC;var OC=Object.prototype,RC=OC.hasOwnProperty;function FC(e){if(!de(e))return Hp(e);var t=Pn(e),n=[];for(var r in e)r=="constructor"&&(t||!RC.call(e,r))||n.push(r);return n}var Up=FC;function PC(e){return Fn(e)?xi(e,!0):Up(e)}var Vn=PC;var LC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VC=/^\w*$/;function jC(e,t){if(re(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_t(e)?!0:VC.test(e)||!LC.test(e)||t!=null&&e in Object(t)}var jn=jC;var BC=ve(Object,"create"),lt=BC;function HC(){this.__data__=lt?lt(null):{},this.size=0}var $p=HC;function UC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gp=UC;var $C="__lodash_hash_undefined__",GC=Object.prototype,WC=GC.hasOwnProperty;function zC(e){var t=this.__data__;if(lt){var n=t[e];return n===$C?void 0:n}return WC.call(t,e)?t[e]:void 0}var Wp=zC;var qC=Object.prototype,ZC=qC.hasOwnProperty;function KC(e){var t=this.__data__;return lt?t[e]!==void 0:ZC.call(t,e)}var zp=KC;var YC="__lodash_hash_undefined__";function QC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lt&&t===void 0?YC:t,this}var qp=QC;function Bn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bn.prototype.clear=$p;Bn.prototype.delete=Gp;Bn.prototype.get=Wp;Bn.prototype.has=zp;Bn.prototype.set=qp;var Vl=Bn;function JC(){this.__data__=[],this.size=0}var Zp=JC;function XC(e,t){for(var n=e.length;n--;)if(On(e[n][0],t))return n;return-1}var bt=XC;var eb=Array.prototype,tb=eb.splice;function nb(e){var t=this.__data__,n=bt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():tb.call(t,n,1),--this.size,!0}var Kp=nb;function rb(e){var t=this.__data__,n=bt(t,e);return n<0?void 0:t[n][1]}var Yp=rb;function ob(e){return bt(this.__data__,e)>-1}var Qp=ob;function ib(e,t){var n=this.__data__,r=bt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Jp=ib;function Hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hn.prototype.clear=Zp;Hn.prototype.delete=Kp;Hn.prototype.get=Yp;Hn.prototype.has=Qp;Hn.prototype.set=Jp;var St=Hn;var sb=ve(J,"Map"),xt=sb;function ab(){this.size=0,this.__data__={hash:new Vl,map:new(xt||St),string:new Vl}}var Xp=ab;function lb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var eh=lb;function cb(e,t){var n=e.__data__;return eh(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Tt=cb;function ub(e){var t=Tt(this,e).delete(e);return this.size-=t?1:0,t}var th=ub;function db(e){return Tt(this,e).get(e)}var nh=db;function fb(e){return Tt(this,e).has(e)}var rh=fb;function pb(e,t){var n=Tt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var oh=pb;function Un(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Un.prototype.clear=Xp;Un.prototype.delete=th;Un.prototype.get=nh;Un.prototype.has=rh;Un.prototype.set=oh;var Xt=Un;var hb="Expected a function";function jl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hb);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(jl.Cache||Xt),n}jl.Cache=Xt;var ih=jl;var mb=500;function gb(e){var t=ih(e,function(r){return n.size===mb&&n.clear(),r}),n=t.cache;return t}var sh=gb;var yb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vb=/\\(\\)?/g,Db=sh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yb,function(n,r,o,i){t.push(o?i.replace(vb,"$1"):r||n)}),t}),ah=Db;function wb(e){return e==null?"":fp(e)}var lh=wb;function Eb(e,t){return re(e)?e:jn(e,t)?[e]:ah(lh(e))}var Mi=Eb;var Ib=1/0;function _b(e){if(typeof e=="string"||_t(e))return e;var t=e+"";return t=="0"&&1/e==-Ib?"-0":t}var Mt=_b;function Cb(e,t){t=Mi(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Mt(t[n++])];return n&&n==r?e:void 0}var Ni=Cb;function bb(e,t,n){var r=e==null?void 0:Ni(e,t);return r===void 0?n:r}var ch=bb;function Sb(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ai=Sb;var xb=Ti(Object.getPrototypeOf,Object),ki=xb;function Tb(){this.__data__=new St,this.size=0}var uh=Tb;function Mb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var dh=Mb;function Nb(e){return this.__data__.get(e)}var fh=Nb;function Ab(e){return this.__data__.has(e)}var ph=Ab;var kb=200;function Ob(e,t){var n=this.__data__;if(n instanceof St){var r=n.__data__;if(!xt||r.length<kb-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xt(r)}return n.set(e,t),this.size=n.size,this}var hh=Ob;function $n(e){var t=this.__data__=new St(e);this.size=t.size}$n.prototype.clear=uh;$n.prototype.delete=dh;$n.prototype.get=fh;$n.prototype.has=ph;$n.prototype.set=hh;var Nt=$n;function Rb(e,t){return e&&Ct(t,Ke(t),e)}var mh=Rb;function Fb(e,t){return e&&Ct(t,Vn(t),e)}var gh=Fb;var wh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=wh&&typeof module=="object"&&module&&!module.nodeType&&module,Pb=yh&&yh.exports===wh,vh=Pb?J.Buffer:void 0,Dh=vh?vh.allocUnsafe:void 0;function Lb(e,t){if(t)return e.slice();var n=e.length,r=Dh?Dh(n):new e.constructor(n);return e.copy(r),r}var Eh=Lb;function Vb(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}var Ih=Vb;function jb(){return[]}var Oi=jb;var Bb=Object.prototype,Hb=Bb.propertyIsEnumerable,_h=Object.getOwnPropertySymbols,Ub=_h?function(e){return e==null?[]:(e=Object(e),Ih(_h(e),function(t){return Hb.call(e,t)}))}:Oi,Gn=Ub;function $b(e,t){return Ct(e,Gn(e),t)}var Ch=$b;var Gb=Object.getOwnPropertySymbols,Wb=Gb?function(e){for(var t=[];e;)Ai(t,Gn(e)),e=ki(e);return t}:Oi,Ri=Wb;function zb(e,t){return Ct(e,Ri(e),t)}var bh=zb;function qb(e,t,n){var r=t(e);return re(e)?r:Ai(r,n(e))}var Fi=qb;function Zb(e){return Fi(e,Ke,Gn)}var xr=Zb;function Kb(e){return Fi(e,Vn,Ri)}var Sh=Kb;var Yb=ve(J,"DataView"),Pi=Yb;var Qb=ve(J,"Promise"),Li=Qb;var Jb=ve(J,"Set"),Vi=Jb;var xh="[object Map]",Xb="[object Object]",Th="[object Promise]",Mh="[object Set]",Nh="[object WeakMap]",Ah="[object DataView]",e0=st(Pi),t0=st(xt),n0=st(Li),r0=st(Vi),o0=st(Ei),en=Be;(Pi&&en(new Pi(new ArrayBuffer(1)))!=Ah||xt&&en(new xt)!=xh||Li&&en(Li.resolve())!=Th||Vi&&en(new Vi)!=Mh||Ei&&en(new Ei)!=Nh)&&(en=function(e){var t=Be(e),n=t==Xb?e.constructor:void 0,r=n?st(n):"";if(r)switch(r){case e0:return Ah;case t0:return xh;case n0:return Th;case r0:return Mh;case o0:return Nh}return t});var ct=en;var i0=Object.prototype,s0=i0.hasOwnProperty;function a0(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&s0.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var kh=a0;var l0=J.Uint8Array,Wn=l0;function c0(e){var t=new e.constructor(e.byteLength);return new Wn(t).set(new Wn(e)),t}var zn=c0;function u0(e,t){var n=t?zn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Oh=u0;var d0=/\w*$/;function f0(e){var t=new e.constructor(e.source,d0.exec(e));return t.lastIndex=e.lastIndex,t}var Rh=f0;var Fh=ce?ce.prototype:void 0,Ph=Fh?Fh.valueOf:void 0;function p0(e){return Ph?Object(Ph.call(e)):{}}var Lh=p0;function h0(e,t){var n=t?zn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Vh=h0;var m0="[object Boolean]",g0="[object Date]",y0="[object Map]",v0="[object Number]",D0="[object RegExp]",w0="[object Set]",E0="[object String]",I0="[object Symbol]",_0="[object ArrayBuffer]",C0="[object DataView]",b0="[object Float32Array]",S0="[object Float64Array]",x0="[object Int8Array]",T0="[object Int16Array]",M0="[object Int32Array]",N0="[object Uint8Array]",A0="[object Uint8ClampedArray]",k0="[object Uint16Array]",O0="[object Uint32Array]";function R0(e,t,n){var r=e.constructor;switch(t){case _0:return zn(e);case m0:case g0:return new r(+e);case C0:return Oh(e,n);case b0:case S0:case x0:case T0:case M0:case N0:case A0:case k0:case O0:return Vh(e,n);case y0:return new r;case v0:case E0:return new r(e);case D0:return Rh(e);case w0:return new r;case I0:return Lh(e)}}var jh=R0;function F0(e){return typeof e.constructor=="function"&&!Pn(e)?Sp(ki(e)):{}}var Bh=F0;var P0="[object Map]";function L0(e){return ue(e)&&ct(e)==P0}var Hh=L0;var Uh=at&&at.isMap,V0=Uh?Ln(Uh):Hh,$h=V0;var j0="[object Set]";function B0(e){return ue(e)&&ct(e)==j0}var Gh=B0;var Wh=at&&at.isSet,H0=Wh?Ln(Wh):Gh,zh=H0;var U0=1,$0=2,G0=4,qh="[object Arguments]",W0="[object Array]",z0="[object Boolean]",q0="[object Date]",Z0="[object Error]",Zh="[object Function]",K0="[object GeneratorFunction]",Y0="[object Map]",Q0="[object Number]",Kh="[object Object]",J0="[object RegExp]",X0="[object Set]",eS="[object String]",tS="[object Symbol]",nS="[object WeakMap]",rS="[object ArrayBuffer]",oS="[object DataView]",iS="[object Float32Array]",sS="[object Float64Array]",aS="[object Int8Array]",lS="[object Int16Array]",cS="[object Int32Array]",uS="[object Uint8Array]",dS="[object Uint8ClampedArray]",fS="[object Uint16Array]",pS="[object Uint32Array]",B={};B[qh]=B[W0]=B[rS]=B[oS]=B[z0]=B[q0]=B[iS]=B[sS]=B[aS]=B[lS]=B[cS]=B[Y0]=B[Q0]=B[Kh]=B[J0]=B[X0]=B[eS]=B[tS]=B[uS]=B[dS]=B[fS]=B[pS]=!0;B[Z0]=B[Zh]=B[nS]=!1;function ji(e,t,n,r,o,i){var s,a=t&U0,l=t&$0,c=t&G0;if(n&&(s=o?n(e,r,o,i):n(e)),s!==void 0)return s;if(!de(e))return e;var u=re(e);if(u){if(s=kh(e),!a)return xp(e,s)}else{var d=ct(e),p=d==Zh||d==K0;if(Jt(e))return Eh(e,a);if(d==Kh||d==qh||p&&!o){if(s=l||p?{}:Bh(e),!a)return l?bh(e,gh(s,e)):Ch(e,mh(s,e))}else{if(!B[d])return o?e:{};s=jh(e,d,a)}}i||(i=new Nt);var f=i.get(e);if(f)return f;i.set(e,s),zh(e)?e.forEach(function(y){s.add(ji(y,t,n,y,e,i))}):$h(e)&&e.forEach(function(y,w){s.set(w,ji(y,t,n,w,e,i))});var h=c?l?Sh:xr:l?Vn:Ke,m=u?void 0:h(e);return Tp(m||e,function(y,w){m&&(w=y,y=e[w]),Ci(s,w,ji(y,t,n,w,e,i))}),s}var Yh=ji;var hS=1,mS=4;function gS(e){return Yh(e,hS|mS)}var Bl=gS;var yS="__lodash_hash_undefined__";function vS(e){return this.__data__.set(e,yS),this}var Qh=vS;function DS(e){return this.__data__.has(e)}var Jh=DS;function Bi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xt;++t<n;)this.add(e[t])}Bi.prototype.add=Bi.prototype.push=Qh;Bi.prototype.has=Jh;var Xh=Bi;function wS(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var em=wS;function ES(e,t){return e.has(t)}var tm=ES;var IS=1,_S=2;function CS(e,t,n,r,o,i){var s=n&IS,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=n&_S?new Xh:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var h=e[d],m=t[d];if(r)var y=s?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(y!==void 0){if(y)continue;p=!1;break}if(f){if(!em(t,function(w,L){if(!tm(f,L)&&(h===w||o(h,w,n,r,i)))return f.push(L)})){p=!1;break}}else if(!(h===m||o(h,m,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var Hi=CS;function bS(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var nm=bS;function SS(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var rm=SS;var xS=1,TS=2,MS="[object Boolean]",NS="[object Date]",AS="[object Error]",kS="[object Map]",OS="[object Number]",RS="[object RegExp]",FS="[object Set]",PS="[object String]",LS="[object Symbol]",VS="[object ArrayBuffer]",jS="[object DataView]",om=ce?ce.prototype:void 0,Hl=om?om.valueOf:void 0;function BS(e,t,n,r,o,i,s){switch(n){case jS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case VS:return!(e.byteLength!=t.byteLength||!i(new Wn(e),new Wn(t)));case MS:case NS:case OS:return On(+e,+t);case AS:return e.name==t.name&&e.message==t.message;case RS:case PS:return e==t+"";case kS:var a=nm;case FS:var l=r&xS;if(a||(a=rm),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=TS,s.set(e,t);var u=Hi(a(e),a(t),r,o,i,s);return s.delete(e),u;case LS:if(Hl)return Hl.call(e)==Hl.call(t)}return!1}var im=BS;var HS=1,US=Object.prototype,$S=US.hasOwnProperty;function GS(e,t,n,r,o,i){var s=n&HS,a=xr(e),l=a.length,c=xr(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var p=a[d];if(!(s?p in t:$S.call(t,p)))return!1}var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=s;++d<l;){p=a[d];var w=e[p],L=t[p];if(r)var F=s?r(L,w,p,t,e,i):r(w,L,p,e,t,i);if(!(F===void 0?w===L||o(w,L,n,r,i):F)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var W=e.constructor,Z=t.constructor;W!=Z&&"constructor"in e&&"constructor"in t&&!(typeof W=="function"&&W instanceof W&&typeof Z=="function"&&Z instanceof Z)&&(m=!1)}return i.delete(e),i.delete(t),m}var sm=GS;var WS=1,am="[object Arguments]",lm="[object Array]",Ui="[object Object]",zS=Object.prototype,cm=zS.hasOwnProperty;function qS(e,t,n,r,o,i){var s=re(e),a=re(t),l=s?lm:ct(e),c=a?lm:ct(t);l=l==am?Ui:l,c=c==am?Ui:c;var u=l==Ui,d=c==Ui,p=l==c;if(p&&Jt(e)){if(!Jt(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new Nt),s||Si(e)?Hi(e,t,n,r,o,i):im(e,t,l,n,r,o,i);if(!(n&WS)){var f=u&&cm.call(e,"__wrapped__"),h=d&&cm.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,y=h?t.value():t;return i||(i=new Nt),o(m,y,n,r,i)}}return p?(i||(i=new Nt),sm(e,t,n,r,o,i)):!1}var um=qS;function dm(e,t,n,r,o){return e===t?!0:e==null||t==null||!ue(e)&&!ue(t)?e!==e&&t!==t:um(e,t,n,r,dm,o)}var $i=dm;var ZS=1,KS=2;function YS(e,t,n,r){var o=n.length,i=o,s=!r;if(e==null)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=n[o];var l=a[0],c=e[l],u=a[1];if(s&&a[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Nt;if(r)var p=r(c,u,l,e,t,d);if(!(p===void 0?$i(u,c,ZS|KS,r,d):p))return!1}}return!0}var fm=YS;function QS(e){return e===e&&!de(e)}var Gi=QS;function JS(e){for(var t=Ke(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Gi(o)]}return t}var pm=JS;function XS(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Wi=XS;function ex(e){var t=pm(e);return t.length==1&&t[0][2]?Wi(t[0][0],t[0][1]):function(n){return n===e||fm(n,e,t)}}var hm=ex;function tx(e,t){return e!=null&&t in Object(e)}var mm=tx;function nx(e,t,n){t=Mi(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=Mt(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Rn(o)&&Ii(s,o)&&(re(e)||bi(e)))}var gm=nx;function rx(e,t){return e!=null&&gm(e,t,mm)}var ym=rx;var ox=1,ix=2;function sx(e,t){return jn(e)&&Gi(t)?Wi(Mt(e),t):function(n){var r=ch(n,e);return r===void 0&&r===t?ym(n,e):$i(t,r,ox|ix)}}var vm=sx;function ax(e){return function(t){return t?.[e]}}var Dm=ax;function lx(e){return function(t){return Ni(t,e)}}var wm=lx;function cx(e){return jn(e)?Dm(Mt(e)):wm(e)}var Em=cx;function ux(e){return typeof e=="function"?e:e==null?wp:typeof e=="object"?re(e)?vm(e[0],e[1]):hm(e):Em(e)}var zi=ux;function dx(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ul=dx;function fx(e){return function(t,n,r){var o=Object(t);if(!Fn(t)){var i=zi(n,3);t=Ke(t),n=function(a){return i(o[a],a,o)}}var s=e(t,n,r);return s>-1?o[i?t[s]:s]:void 0}}var Im=fx;var px=Math.max;function hx(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Dp(n);return o<0&&(o=px(r+o,0)),Mp(e,zi(t,3),o)}var _m=hx;var mx=Im(_m),$l=mx;function gx(e){return e&&e.length?e[0]:void 0}var qi=gx;var X={mreServiceBase:"https://test.kc-np.o360.cloud/Handlers/saml2.ashx",mreBaseUrl:"https://www.medicalreferenceengine.com/mre/",tokenServer:"/Token/token/",url:"/",appName:"kcApp",secret:""};var Cm=[{name:"aa_togglePhysicianPaymentType (Dev Only)",sdkVisible:!1,example:""},{name:"aa_LoadPhyNpiTaxonomy (Dev Only)",sdkVisible:!1,example:""},{name:"aa_SetEgpSortRules (Dev Only)",sdkVisible:!1,example:{includePriority:"",includeSeverity:"",includeMortality:"",includeElixhauser:"",includeHcc:"",includeRa:"",includePxPriority:""}},{name:"aa_CreateAgpInput (Dev Only)",sdkVisible:!1,example:""},{name:"acsuCloneDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByIds (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuGetFacilitiesByUsernames (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuMergeMultiRegion (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveDischargeDisposition (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"acsuSaveWebstratUser (Dev Only)",sdkVisible:!1,example:{xml:"xmlgoeshere"}},{name:"addGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"addRemCodes (Dev Only)",sdkVisible:!1,example:{diagnosisCodes:[{code:"B700",codeType:"REMD",label:"short label",longLabel:"Long label"}],hcpcsCodes:[{code:"12001",codeType:"REMH",label:"short label",longLabel:"Long label",units:"1",modifier1:"26",modifier2:null,modifier3:null,modifier4:null,modifier5:null}]}},{name:"swapActiveAndGhostRows (Dev Only)",sdkVisible:!1,example:""},{name:"recordMode (Dev Only)",sdkVisible:!1,example:""},{name:"addCodes",sdkVisible:!0,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}],editedcode:null,codeSource:"encoder",documentHighlight:!0}},{name:"deleteCodes",sdkVisible:!0,example:{codes:[{uniqueId:"uniqueIdgoeshere",codeType:"I10CM"}]}},{name:"defaultSettings",sdkVisible:!1,example:""},{name:"getInputPatientClaim",sdkVisible:!1,example:""},{name:"getPayerList",sdkVisible:!0,example:{sendingFacility:"001",npi:null,payer:null,taxonomy:null,paymentType:"01"}},{name:"getPatientRecord",sdkVisible:!1,example:""},{name:"getPatientRecord-truncated",sdkVisible:!1,example:""},{name:"getOptimizerInput",sdkVisible:!1,example:""},{name:"cacAuthenticateUser (Dev Only)",sdkVisible:!1,example:{user:"UserName",pw:"EncryptedPW",isForLogin:!0}},{name:"cacChangePwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",currentPw:"EncryptedPw",newPw:"EncryptedPw"}},{name:"cacGetGroups (Dev Only)",sdkVisible:!1,example:""},{name:"cacResetPwd (Dev Only)",sdkVisible:!1,example:{user:"UserName",newPw:"EncryptedPw"}},{name:"cacGetUserInfo (Dev Only)",sdkVisible:!1,example:{user:"UserName"}},{name:"cacUpdateLastLoginTime (Dev Only)",sdkVisible:!1,example:{user:12345}},{name:"callClaimsManager (Dev Only)",sdkVisible:!1,example:""},{name:"closeAllKCWindows",sdkVisible:!1,example:""},{name:"closeAllKCWindowsExceptEncoder",sdkVisible:!0,example:""},{name:"clearSelectedRow",sdkVisible:!0,example:""},{name:"clearPatientRecord",sdkVisible:!0,example:""},{name:"clearHighlight",sdkVisible:!1,example:""},{name:"editsCount",sdkVisible:!1,example:""},{name:"enableEncoder",sdkVisible:!1,example:""},{name:"disableEncoder",sdkVisible:!1,example:""},{name:"disableChildWindows",sdkVisible:!1,example:""},{name:"enableChildWindows",sdkVisible:!1,example:""},{name:"launchCodeSummaryReport",sdkVisible:!0,example:""},{name:"launchEdits",sdkVisible:!0,example:""},{name:"launchIndex",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchLogic",sdkVisible:!0,example:{codeType:"I10CM",phrase:"ANGINA"}},{name:"launchTabular",sdkVisible:!0,example:{codeType:"I10CM",code:"A000"}},{name:"launchFacilityLookup",sdkVisible:!0,example:{paymentType:"01",rateFilePath:"C:\\inetpub\\wwwroot\\HSS\\Data\\allpaykc"}},{name:"loadNotes",sdkVisible:!1,example:{AccessType:"All",codeType:"I10CM",NoteType:"Code",Identifier:"",IdentifierSearchLower:"",IdentifierSearchUpper:"",Category:"",Ids:{User:"",Facility:"",Organization:""},AllFacilities:!0}},{name:"loadOrganizationSettings",sdkVisible:!1,example:""},{name:"loadPatientRecord",sdkVisible:!0,example:""},{name:"openEncoder",sdkVisible:!0,example:""},{name:"potentialImpactDisplay (Dev Only)",sdkVisible:!1,example:""},{name:"potentialImpactClear",sdkVisible:!1,example:""},{name:"potentialImpactDisable",sdkVisible:!1,example:""},{name:"potentialImpactEnable",sdkVisible:!1,example:""},{name:"potentialImpactEnableEgp",sdkVisible:!1,example:{enabled:!1}},{name:"potentialImpactInitialize",sdkVisible:!1,example:""},{name:"resetApplication",sdkVisible:!0,example:""},{name:"savePatientRecord",sdkVisible:!0,example:""},{name:"selectRowOnHighlightClick",sdkVisible:!1,example:{uniqueId:"uniqueIdGoesHere"}},{name:"setAuthToken",sdkVisible:!1,example:""},{name:"toggleEgpCompression",sdkVisible:!1,example:{enableCompression:!1}},{name:"setChargeCapture",sdkVisible:!0,example:[{cptCode:"G0382",modifiers:"77,GA,PO",revCode:"450",startDate:"2025-2-11",units:1,codeRange:"99281-99285,99291-99292,G0380-G0384"},{cptCode:"96365",modifiers:"59,XE,XS,XU",revCode:"450",startDate:"Tue Feb 11 2025 13:25:46 GMT-0500 (Eastern Standard Time)",units:56,codeRange:"96360-96361,96365-96368,96372,96374-96376"},{cptCode:"99221",modifiers:"IN,IP,IR,IS,IX",revCode:"760",startDate:"2025-02-11T00:00:00.000Z",units:9999,codeRange:"99221-99223,99231-99233,99234-99236, 99238-99239,G0378 \u2013 G0379"}]},{name:"showCurrentConfig (Dev Only)",sdkVisible:!1,example:""},{name:"updateAbstractInfo",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",abstractInfo:"A"}]},{name:"updateBaseUrl",sdkVisible:!1,example:""},{name:"updateCodes",sdkVisible:!0,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",dxIndic1:"Y"},{uniqueId:"uniqueIdGoesHere",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider"},{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",date:"2024-03-21T20:01:28.953Z",selectedProvider:"freeFormProvider",revCode:"0250",units:"1",modifier1:{value:"23"},i10Reimbursement:{charges:"$1,000.00"},i9Reimbursement:{charges:"$1,000.00"}}]},{name:"updateComments",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",comments:"C"}]},{name:"updateDemographics",sdkVisible:!0,example:""},{name:"updateDocumentCount",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",documentCount:"3"}]},{name:"updateExcludeFromBilling",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"HCPCS",excludeFromBilling:"X"}]},{name:"updateRedFlag",sdkVisible:!1,example:[{uniqueId:"uniqueIdGoesHere",codeType:"I10CM",redFlag:"F"}]},{name:"hasCriticalEdits",sdkVisible:!0,example:""},{name:"hasEdits",sdkVisible:!0,example:""},{name:"ReloadMainPod",sdkVisible:!1,example:""},{name:"ReloadCodeSummary",sdkVisible:!1,example:""},{name:"ReloadDemographics",sdkVisible:!1,example:""},{name:"ReloadEdits",sdkVisible:!1,example:""},{name:"ReloadReimbursement",sdkVisible:!1,example:""},{name:"logout",sdkVisible:!0,example:""},{name:"getRowSpecificInfo",sdkVisible:!0,example:["uniqueId1GoesHere","uniqueId2GoesHere"]},{name:"isEditGroupPriceInProgress",sdkVisible:!1,example:""},{name:"addCodesNoEdit",sdkVisible:!1,example:{codes:[{code:"B700",codeType:"I10CM",dxIndic1:"N"},{code:"X2C1361",codeType:"ICD10PCS",date:"2024-03-21T20:01:28.953Z"}]}},{name:"setQueryImpactVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"setSyncVisibility",sdkVisible:!1,example:{isVisible:!0}},{name:"showScratchCodeState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryState",sdkVisible:!1,example:{isVisible:!0}},{name:"showQueryHistoryBtn",sdkVisible:!1,example:{isVisible:!0}},{name:"updateCptWithRange",sdkVisible:!1,example:{codes:[{code:"",units:""}],emCodeRanges:[{from:"",to:""}]}},{name:"launchModal (Dev Only)",sdkVisible:!1,example:{messageType:"info",title:"Test Modal",message:["Test Modal"]}},{name:"simulateKcVersion (Dev Only)",sdkVisible:!1,example:{kcVersion:"1.2.3"}}];var Om=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(E(Et),E(nt))};static \u0275dir=Q({type:e})}return e})(),os=(()=>{class e extends Om{static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,features:[Ie]})}return e})(),Kn=new _(""),Dx={provide:Kn,useExisting:Ve(()=>Zl),multi:!0},Zl=(()=>{class e extends os{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[rt([Dx]),Ie]})}return e})(),wx={provide:Kn,useExisting:Ve(()=>Yn),multi:!0};function Ex(){let e=kn()?kn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Ix=new _(""),Yn=(()=>{class e extends Om{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Ex())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(E(Et),E(nt),E(Ix,8))};static \u0275dir=Q({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&q("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[rt([wx]),Ie]})}return e})();function At(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function Rm(e){return e!=null&&typeof e.length=="number"}var is=new _(""),Kl=new _(""),_x=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kr=class{static min(t){return Cx(t)}static max(t){return bx(t)}static required(t){return Fm(t)}static requiredTrue(t){return Sx(t)}static email(t){return xx(t)}static minLength(t){return Tx(t)}static maxLength(t){return Mx(t)}static pattern(t){return Nx(t)}static nullValidator(t){return Ki(t)}static compose(t){return Hm(t)}static composeAsync(t){return $m(t)}};function Cx(e){return t=>{if(At(t.value)||At(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function bx(e){return t=>{if(At(t.value)||At(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function Fm(e){return At(e.value)?{required:!0}:null}function Sx(e){return e.value===!0?null:{required:!0}}function xx(e){return At(e.value)||_x.test(e.value)?null:{email:!0}}function Tx(e){return t=>At(t.value)||!Rm(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function Mx(e){return t=>Rm(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function Nx(e){if(!e)return Ki;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(At(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function Ki(e){return null}function Pm(e){return e!=null}function Lm(e){return Er(e)?jt(e):e}function Vm(e){let t={};return e.forEach(n=>{t=n!=null?V(V({},t),n):t}),Object.keys(t).length===0?null:t}function jm(e,t){return t.map(n=>n(e))}function Ax(e){return!e.validate}function Bm(e){return e.map(t=>Ax(t)?t:n=>t.validate(n))}function Hm(e){if(!e)return null;let t=e.filter(Pm);return t.length==0?null:function(n){return Vm(jm(n,t))}}function Um(e){return e!=null?Hm(Bm(e)):null}function $m(e){if(!e)return null;let t=e.filter(Pm);return t.length==0?null:function(n){let r=jm(n,t).map(Lm);return $s(r).pipe(me(Vm))}}function Gm(e){return e!=null?$m(Bm(e)):null}function bm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Wm(e){return e._rawValidators}function zm(e){return e._rawAsyncValidators}function Gl(e){return e?Array.isArray(e)?e:[e]:[]}function Yi(e,t){return Array.isArray(e)?e.includes(t):e===t}function Sm(e,t){let n=Gl(t);return Gl(e).forEach(o=>{Yi(n,o)||n.push(o)}),n}function xm(e,t){return Gl(t).filter(n=>!Yi(e,n))}var Qi=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Um(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Gm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},tn=class extends Qi{name;get formDirective(){return null}get path(){return null}},nn=class extends Qi{_parent=null;name=null;valueAccessor=null},Ji=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},kx={"[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"},K2=K(V({},kx),{"[class.ng-submitted]":"isSubmitted"}),ss=(()=>{class e extends Ji{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(nn,2))};static \u0275dir=Q({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ui("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[Ie]})}return e})(),qm=(()=>{class e extends Ji{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(E(tn,10))};static \u0275dir=Q({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ui("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[Ie]})}return e})();var Tr="VALID",Zi="INVALID",qn="PENDING",Mr="DISABLED",kt=class{},Xi=class extends kt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Nr=class extends kt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Ar=class extends kt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Zn=class extends kt{status;source;constructor(t,n){super(),this.status=t,this.source=n}},Wl=class extends kt{source;constructor(t){super(),this.source=t}},zl=class extends kt{source;constructor(t){super(),this.source=t}};function Zm(e){return(as(e)?e.validators:e)||null}function Ox(e){return Array.isArray(e)?Um(e):e||null}function Km(e,t){return(as(t)?t.asyncValidators:e)||null}function Rx(e){return Array.isArray(e)?Gm(e):e||null}function as(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Fx(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new S(1e3,"");if(!r[n])throw new S(1001,"")}function Px(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new S(1002,"")})}var es=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ot(this.statusReactive)}set status(t){ot(()=>this.statusReactive.set(t))}_status=_r(()=>this.statusReactive());statusReactive=wr(void 0);get valid(){return this.status===Tr}get invalid(){return this.status===Zi}get pending(){return this.status==qn}get disabled(){return this.status===Mr}get enabled(){return this.status!==Mr}errors;get pristine(){return ot(this.pristineReactive)}set pristine(t){ot(()=>this.pristineReactive.set(t))}_pristine=_r(()=>this.pristineReactive());pristineReactive=wr(!0);get dirty(){return!this.pristine}get touched(){return ot(this.touchedReactive)}set touched(t){ot(()=>this.touchedReactive.set(t))}_touched=_r(()=>this.touchedReactive());touchedReactive=wr(!1);get untouched(){return!this.touched}_events=new Qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Sm(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Sm(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(xm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(xm(t,this._rawAsyncValidators))}hasValidator(t){return Yi(this._rawValidators,t)}hasAsyncValidator(t){return Yi(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(K(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Ar(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Ar(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(K(V({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Nr(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Nr(!0,r))}markAsPending(t={}){this.status=qn;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Zn(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(K(V({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Mr,this.errors=null,this._forEachChild(o=>{o.disable(K(V({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xi(this.value,r)),this._events.next(new Zn(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(K(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Tr,this._forEachChild(r=>{r.enable(K(V({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(K(V({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Tr||this.status===qn)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xi(this.value,n)),this._events.next(new Zn(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(K(V({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mr:Tr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=qn,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Lm(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Zn(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?Mr:this.errors?Zi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qn)?qn:this._anyControlsHaveStatus(Zi)?Zi:Tr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Nr(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Ar(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){as(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Ox(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Rx(this._rawAsyncValidators)}},ts=class extends es{constructor(t,n,r){super(Zm(n),Km(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){Px(this,!0,t),Object.keys(t).forEach(r=>{Fx(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ls=new _("CallSetDisabledState",{providedIn:"root",factory:()=>cs}),cs="always";function Ym(e,t){return[...t.path,e]}function ql(e,t,n=cs){Yl(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Vx(e,t),Bx(e,t),jx(e,t),Lx(e,t)}function Tm(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),rs(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function ns(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Lx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Yl(e,t){let n=Wm(e);t.validator!==null?e.setValidators(bm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=zm(e);t.asyncValidator!==null?e.setAsyncValidators(bm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();ns(t._rawValidators,o),ns(t._rawAsyncValidators,o)}function rs(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=Wm(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=zm(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return ns(t._rawValidators,r),ns(t._rawAsyncValidators,r),n}function Vx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Qm(e,t)})}function jx(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Qm(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Qm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Bx(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Hx(e,t){e==null,Yl(e,t)}function Ux(e,t){return rs(e,t)}function Jm(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function $x(e){return Object.getPrototypeOf(e.constructor)===os}function Gx(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Xm(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Yn?n=i:$x(i)?r=i:o=i}),o||r||n||null}function Wx(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Mm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Nm(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Or=class extends es{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Zm(n),Km(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),as(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Nm(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Mm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Mm(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Nm(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var zx=e=>e instanceof Or;var qx={provide:nn,useExisting:Ve(()=>Rr)},Am=Promise.resolve(),Rr=(()=>{class e extends nn{_changeDetectorRef;callSetDisabledState;control=new Or;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ge;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Xm(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Jm(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(){ql(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){Am.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&di(r);Am.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Ym(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(E(tn,9),E(is,10),E(Kl,10),E(Kn,10),E(Nn,8),E(ls,8))};static \u0275dir=Q({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[rt([qx]),Ie,bn]})}return e})(),eg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=Q({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var tg=new _("");var Zx={provide:tn,useExisting:Ve(()=>Ql)},Ql=(()=>{class e extends tn{callSetDisabledState;get submitted(){return ot(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=_r(()=>this._submittedReactive());_submittedReactive=wr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new ge;constructor(n,r,o){super(),this.callSetDisabledState=o,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(rs(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return ql(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Tm(n.control||null,n,!1),Wx(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),Gx(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Wl(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new zl(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Tm(r||null,n),zx(o)&&(ql(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);Hx(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&Ux(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Yl(this.form,this),this._oldForm&&rs(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||e)(E(is,10),E(Kl,10),E(ls,8))};static \u0275dir=Q({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&q("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[rt([Zx]),Ie,bn]})}return e})();var Kx={provide:nn,useExisting:Ve(()=>Jl)},Jl=(()=>{class e extends nn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new ge;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Xm(this,i)}ngOnChanges(n){this._added||this._setUpControl(),Jm(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Ym(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||e)(E(tn,13),E(is,10),E(Kl,10),E(Kn,10),E(tg,8))};static \u0275dir=Q({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[rt([Kx]),Ie,bn]})}return e})(),Yx={provide:Kn,useExisting:Ve(()=>Qn),multi:!0};function ng(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Qx(e){return e.split(":")[0]}var Qn=(()=>{class e extends os{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r=this._getOptionId(n),o=ng(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=Qx(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([Yx]),Ie]})}return e})(),us=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(ng(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))}static \u0275fac=function(r){return new(r||e)(E(nt),E(Et),E(Qn,9))};static \u0275dir=Q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Jx={provide:Kn,useExisting:Ve(()=>rg),multi:!0};function km(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Xx(e){return e.split(":")[0]}var rg=(()=>{class e extends os{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let l=s[a],c=this._getOptionValue(l.value);o.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);o.push(c)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=Xx(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[rt([Jx]),Ie]})}return e})(),ds=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(km(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(km(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))}static \u0275fac=function(r){return new(r||e)(E(nt),E(Et),E(rg,9))};static \u0275dir=Q({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var eT=(()=>{class e{_validator=Ki;_onChange;_enabled;ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Ki,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Q({type:e,features:[bn]})}return e})();var tT={provide:is,useExisting:Ve(()=>Xl),multi:!0};var Xl=(()=>{class e extends eT{required;inputName="required";normalizeInput=di;createValidator=n=>Fm;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=xn(e)))(o||e)}})();static \u0275dir=Q({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&Tl("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[rt([tT]),Ie]})}return e})();var og=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({})}return e})();var fs=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ls,useValue:n.callSetDisabledState??cs}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({imports:[og]})}return e})(),ps=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:tg,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:ls,useValue:n.callSetDisabledState??cs}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=It({type:e});static \u0275inj=vt({imports:[og]})}return e})();var Jn=(()=>{class e{constructor(){this.signInForm=new ts({username:new Or({value:"",disabled:!1},[kr.required]),organization:new Or({value:"Hartford HealthCare",disabled:!1},[kr.required])}),this.serverErrorMessageModel={id:"ServerError",messageType:"error",content:"",visible:!1},this.clientErrorMessageModel={id:"ClientError",messageType:"error",content:"Review the form and correct highlighted fields.",visible:!1},this.busy=!1,this.advancedMode=!1,this.serverError=this.serverErrorMessageModel,this.clientError=this.clientErrorMessageModel,this.username="",this.organization="Hartford HealthCare",this.signInButtonText=this.advancedMode?"Generate Token":"Launch Encoder",this.signInHeaderText=this.advancedMode?"Create Token":"Enter Info",this.userNameDisabled=!1}clearClientError(){this.serverError.visible=!1,this.clientError.visible=!1,this.signInForm.markAsPristine()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pr=class{},ms=class{},He=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
8
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var nc=class{encodeKey(t){return sg(t)}encodeValue(t){return sg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function nT(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var rT=/%(\d[a-f0-9])/gi,oT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sg(e){return encodeURIComponent(e).replace(rT,(t,n)=>oT[n]??t)}function hs(e){return`${e}`}var Rt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new nc,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nT(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(hs):[hs(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(hs(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(hs(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var rc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function iT(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ag(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function lg(e){return typeof Blob<"u"&&e instanceof Blob}function cg(e){return typeof FormData<"u"&&e instanceof FormData}function sT(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Fr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(iT(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new He,this.context??=new rc,!this.params)this.params=new Rt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ag(this.body)||lg(this.body)||cg(this.body)||sT(this.body)?this.body:this.body instanceof Rt?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||cg(this.body)?null:lg(this.body)?this.body.type||null:ag(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Rt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,l=t.reportProgress??this.reportProgress,c=t.headers||this.headers,u=t.params||this.params,d=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,f)=>p.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((p,f)=>p.set(f,t.setParams[f]),u)),new e(n,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a,transferCache:i})}},Ft=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ft||{}),Lr=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new He,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},gs=class e extends Lr{constructor(t={}){super(t)}type=Ft.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Vr=class e extends Lr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Ft.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ot=class extends Lr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},hg=200,aT=204;function tc(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var sc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Fr)i=n;else{let l;o.headers instanceof He?l=o.headers:l=new He(o.headers);let c;o.params&&(o.params instanceof Rt?c=o.params:c=new Rt({fromObject:o.params})),i=new Fr(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=fo(i).pipe(Ws(l=>this.handler.handle(l)));if(n instanceof Fr||o.observe==="events")return s;let a=s.pipe(Gs(l=>l instanceof Vr));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(me(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(me(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return a.pipe(me(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Rt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,tc(o,r))}post(n,r,o={}){return this.request("POST",n,tc(o,r))}put(n,r,o={}){return this.request("PUT",n,tc(o,r))}static \u0275fac=function(r){return new(r||e)(x(Pr))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),lT=/^\)\]\}',?\n/,cT="X-Request-URL";function ug(e){if(e.url)return e.url;let t=cT.toLocaleLowerCase();return e.headers.get(t)}var uT=(()=>{class e{fetchImpl=C(oc,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=C(Y);handle(n){return new z(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(ic,i=>r.error(new Ot({error:i}))),()=>o.abort()})}doRequest(n,r,o){return Xn(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,V({signal:r},i)));dT(f),o.next({type:Ft.Sent}),s=yield f}catch(f){o.error(new Ot({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new He(s.headers),l=s.statusText,c=ug(s)??n.urlWithParams,u=s.status,d=null;if(n.reportProgress&&o.next(new gs({headers:a,status:u,statusText:l,url:c})),s.body){let f=s.headers.get("content-length"),h=[],m=s.body.getReader(),y=0,w,L,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Xn(this,null,function*(){for(;;){let{done:Z,value:ee}=yield m.read();if(Z)break;if(h.push(ee),y+=ee.length,n.reportProgress){L=n.responseType==="text"?(L??"")+(w??=new TextDecoder).decode(ee,{stream:!0}):void 0;let Ye=()=>o.next({type:Ft.DownloadProgress,total:f?+f:void 0,loaded:y,partialText:L});F?F.run(Ye):Ye()}}}));let W=this.concatChunks(h,y);try{let Z=s.headers.get("Content-Type")??"";d=this.parseBody(n,W,Z)}catch(Z){o.error(new Ot({error:Z,headers:new He(s.headers),status:s.status,statusText:s.statusText,url:ug(s)??n.urlWithParams}));return}}u===0&&(u=d?hg:0),u>=200&&u<300?(o.next(new Vr({body:d,headers:a,status:u,statusText:l,url:c})),o.complete()):o.error(new Ot({error:d,headers:a,status:u,statusText:l,url:c}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(lT,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),oc=class{};function ic(){}function dT(e){e.then(ic,ic)}function mg(e,t){return t(e)}function fT(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function pT(e,t,n){return(r,o)=>Yo(n,()=>t(r,i=>e(i,o)))}var hT=new _(""),ac=new _(""),mT=new _(""),gg=new _("",{providedIn:"root",factory:()=>!0});function gT(){let e=null;return(t,n)=>{e===null&&(e=(C(hT,{optional:!0})??[]).reduceRight(fT,mg));let r=C(Yt);if(C(gg)){let i=r.add();return e(t,n).pipe(ho(()=>r.remove(i)))}else return e(t,n)}}var dg=(()=>{class e extends Pr{backend;injector;chain=null;pendingTasks=C(Yt);contributeToStability=C(gg);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ac),...this.injector.get(mT,[])]));this.chain=r.reduceRight((o,i)=>pT(o,i,this.injector),mg)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ho(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(x(ms),x(Ge))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();var yT=/^\)\]\}',?\n/;function vT(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var fg=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new S(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?jt(r.\u0275loadImpl()):fo(null)).pipe(zs(()=>new z(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let m=s.statusText||"OK",y=new He(s.getAllResponseHeaders()),w=vT(s)||n.url;return l=new gs({headers:y,status:s.status,statusText:m,url:w}),l},u=()=>{let{headers:m,status:y,statusText:w,url:L}=c(),F=null;y!==aT&&(F=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=F?hg:0);let W=y>=200&&y<300;if(n.responseType==="json"&&typeof F=="string"){let Z=F;F=F.replace(yT,"");try{F=F!==""?JSON.parse(F):null}catch(ee){F=Z,W&&(W=!1,F={error:ee,text:F})}}W?(i.next(new Vr({body:F,headers:m,status:y,statusText:w,url:L||void 0})),i.complete()):i.error(new Ot({error:F,headers:m,status:y,statusText:w,url:L||void 0}))},d=m=>{let{url:y}=c(),w=new Ot({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(w)},p=!1,f=m=>{p||(i.next(c()),p=!0);let y={type:Ft.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},h=m=>{let y={type:Ft.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",h)),s.send(a),i.next({type:Ft.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(x(An))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),yg=new _(""),DT="XSRF-TOKEN",wT=new _("",{providedIn:"root",factory:()=>DT}),ET="X-XSRF-TOKEN",IT=new _("",{providedIn:"root",factory:()=>ET}),ys=class{},_T=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(x(Oe),x(wt),x(wT))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();function CT(e,t){let n=e.url.toLowerCase();if(!C(yg)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=C(ys).getToken(),o=C(IT);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var vg=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(vg||{});function bT(e,t){return{\u0275kind:e,\u0275providers:t}}function Dg(...e){let t=[sc,fg,dg,{provide:Pr,useExisting:dg},{provide:ms,useFactory:()=>C(uT,{optional:!0})??C(fg)},{provide:ac,useValue:CT,multi:!0},{provide:yg,useValue:!0},{provide:ys,useClass:_T}];for(let n of e)t.push(...n.\u0275providers);return Ja(t)}var pg=new _("");function wg(){return bT(vg.LegacyInterceptors,[{provide:pg,useFactory:gT},{provide:ac,useExisting:pg,multi:!0}])}var vs=(()=>{class e{constructor(){}wrapAsArray(n){return n.charAt(0)!=="["&&(n="["+n),n.charAt(n.length)!=="]"&&(n=n+"]"),n}removeBrackets(n){return n.charAt(0)==="["&&(n=n.substring(1)),n.charAt(n.length-1)==="]"&&(n=n.substring(0,n.length-1)),n}isJson(n){try{return JSON.parse(n)&&n}catch{return!1}}getCurrentDate(){let n=new Date,r=n.getDate(),o=n.getMonth()+1,i=n.getFullYear();return o+"/"+r+"/"+i}getBirthDateISO(){let n=new Date;return n.setFullYear(n.getFullYear()-30),n.toISOString()}getCurrentDateISO(){return new Date().toISOString()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ds=(()=>{class e{constructor(n,r,o){this.signInService=n,this.stringService=r,this.http=o,this.kcSdk=window.kcSdk,this.sessionTypes=[this.kcSdk.sessionTypes.DX,this.kcSdk.sessionTypes.CMPX,this.kcSdk.sessionTypes.I10CM,this.kcSdk.sessionTypes.ICD10PCS,this.kcSdk.sessionTypes.HCPCS],this.i9I10States=[this.kcSdk.i9I10States.I9,this.kcSdk.i9I10States.I10],this.patientTypes=[this.kcSdk.patientType.INPATIENT,this.kcSdk.patientType.OUTPATIENT,this.kcSdk.patientType.IRF,this.kcSdk.patientType.CAH,this.kcSdk.patientType.SNF],this.selectedPatientType=this.patientTypes[0],this.selectedI9I10State=this.i9I10States[1],this.selectedSessionType=this.sessionTypes[0],this.selectedEncoderTab=this.kcSdk.encoderTabs.LOGIC,this.encoderPhraseCode="",this.WEB_KC="web/KC.html",this.WEB_ENCODER="web/Encoder.html",this.exampleUrl="http://www.google.com",this.exampleDemographicsData={sex:"M",sendingFacility:"001",birthDate:this.stringService.getBirthDateISO(),admitDate:this.stringService.getCurrentDateISO(),dischargeDate:this.stringService.getCurrentDateISO(),patientType:this.kcSdk.patientType.INPATIENT,financialClass:"09"},this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2),this.encoderTabs=[this.kcSdk.encoderTabs.LOGIC,this.kcSdk.encoderTabs.INDEX,this.kcSdk.encoderTabs.TABULAR],this.clientExampleToken="",this.selectedPod="",this.outputJson="",this.sdkKcIsListening=!1,this.sdkEncoderIsListening=!1,this.version=this.kcSdk.version,this.exampleAuthToken={access_token:""},this.closeAllKCWindows=this.kcSdk.closeAllKCWindows,this.workflow=this.kcSdk.workflow,this.selectedWorkflowApi=qi(this.kcSdk.workflow),this.workflowInput=X.url+this.WEB_KC,this.kcWindowName=this.kcSdk.kcWindow.name,this.encoderWindowName=this.kcSdk.encoderWindow.name,this.apisForAllWindows=[{name:"launch KC",fn:this.kcSdk.kcWindow.launch,windowName:this.kcWindowName},{name:"launch KC Sentinel",fn:this.kcSdk.kcWindow.openKcSentinel,windowName:this.kcWindowName},{name:"launch Encoder",fn:this.kcSdk.encoderWindow.launch,windowName:this.encoderWindowName},{name:"loadPatientRecord",fn:this.kcSdk.kcWindow.loadPatientRecord,windowName:this.kcWindowName},{name:"assignConfig",fn:this.kcSdk.kcWindow.assignConfig,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.kcWindow.setAuthToken,windowName:this.kcWindowName},{name:"setDemographics",fn:this.kcSdk.kcWindow.setDemographics,windowName:this.kcWindowName},{name:"setAuthToken",fn:this.kcSdk.encoderWindow.setAuthToken,windowName:this.encoderWindowName},{name:"setDemographics",fn:this.kcSdk.encoderWindow.setDemographics,windowName:this.encoderWindowName},{name:"addCodes",fn:this.kcSdk.kcWindow.addCodes,windowName:this.kcWindowName},{name:"clearPatientRecord",fn:this.kcSdk.kcWindow.clearPatientRecord,windowName:this.kcWindowName},{name:"clearSelectedRow",fn:this.kcSdk.kcWindow.clearSelectedRow,windowName:this.kcWindowName},{name:"closeAllKCWindowsExceptEncoder",fn:this.kcSdk.kcWindow.closeAllKCWindowsExceptEncoder,windowName:this.kcWindowName},{name:"deleteCodes",fn:this.kcSdk.kcWindow.deleteCodes,windowName:this.kcWindowName},{name:"getPayerList",fn:this.kcSdk.kcWindow.getPayerList,windowName:this.kcWindowName},{name:"getRowSpecificInfo",fn:this.kcSdk.kcWindow.getRowSpecificInfo,windowName:this.kcWindowName},{name:"hasCriticalEdits",fn:this.kcSdk.kcWindow.hasCriticalEdits,windowName:this.kcWindowName},{name:"hasEdits",fn:this.kcSdk.kcWindow.hasEdits,windowName:this.kcWindowName},{name:"launchCodeSummaryReport",fn:this.kcSdk.kcWindow.launchCodeSummaryReport,windowName:this.kcWindowName},{name:"launchEdits",fn:this.kcSdk.kcWindow.launchEdits,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.kcWindow.launchIndex,windowName:this.kcWindowName},{name:"launchLogic",fn:this.kcSdk.kcWindow.launchLogic,windowName:this.kcWindowName},{name:"launchTabular",fn:this.kcSdk.kcWindow.launchTabular,windowName:this.kcWindowName},{name:"launchFacilityLookup",fn:this.kcSdk.kcWindow.launchFacilityLookup,windowName:this.kcWindowName},{name:"launchIndex",fn:this.kcSdk.encoderWindow.launchIndex,windowName:this.encoderWindowName},{name:"launchLogic",fn:this.kcSdk.encoderWindow.launchLogic,windowName:this.encoderWindowName},{name:"launchTabular",fn:this.kcSdk.encoderWindow.launchTabular,windowName:this.encoderWindowName},{name:"logout",fn:this.kcSdk.kcWindow.logout,windowName:this.kcWindowName},{name:"resetApplication",fn:this.kcSdk.kcWindow.resetApplication,windowName:this.kcWindowName},{name:"savePatientRecord",fn:this.kcSdk.kcWindow.savePatientRecord,windowName:this.kcWindowName},{name:"updateCodes",fn:this.kcSdk.kcWindow.updateCodes,windowName:this.kcWindowName},{name:"updateDemographics",fn:this.kcSdk.kcWindow.updateDemographics,windowName:this.kcWindowName},{name:"openEncoder",fn:this.kcSdk.kcWindow.openEncoder,windowName:this.kcWindowName}],this.availableApis=Bl(this.apisForAllWindows),this.availableApiSelected=this.availableApis[0],this.workflowWindow=this.kcWindowName,this.runWorkflow=this.kcSdk.processWorkflow,this.doSigninSubmit=()=>{setTimeout(()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}if(document.getElementById("kc-sdk-advanced-mode").checked)this.generateToken();else{let s={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(s).subscribe({next:()=>{this.launchEncoder()},error:a=>{this.signInService.serverError.content=a}})}this.signInService.clearClientError()})},this.generateToken=()=>{if(this.signInService.signInForm.valid){let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.signInService.clearClientError(),this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!1,this.signInService.signInForm.markAsPristine(),this.clientExampleToken=this.exampleAuthToken.access_token},error:s=>{this.signInService.serverError.content=s}})}else this.signInService.serverError.visible=!1,this.signInService.clientError.content="Review the form and correct highlighted fields.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine()},this.launchEncoder=()=>{let i={sessionType:this.selectedSessionType,encoderTab:this.selectedEncoderTab,codePhrase:this.encoderPhraseCode},s=X.url+this.WEB_ENCODER,a=this.encoderDemographics,l=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.encoderWindow.launch(s,this.exampleAuthToken,l,a,i)},this.setAuthToken=i=>new z(s=>{let a={headers:new He({"Content-Type":"application/json"})},l={username:btoa(i.username),organization:i.organizationId,clientId:X.appName};this.http.post(X.tokenServer+"orgLogin",l,a).subscribe({next:c=>{c&&(this.exampleAuthToken.access_token=c.token,this.logOutput("auth","token generated - userName:'"+i.username+"' org: '"+i.organizationId+"'")),s.next()},error:c=>{c.status===401&&(this.exampleAuthToken.access_token="",this.signInService.serverError.visible=!1,this.signInService.clientError.content="Failed to authenticate user.",this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine());let u=c&&c.message?c.message:"undefined error message";this.logOutput("auth","token exception: "+u),s.error(u)}})}),this.onStateChange=()=>{this.filterSessionTypes(this.selectedI9I10State)},this.onPatientTypeChange=()=>{try{let i=JSON.parse(this.encoderDemographics);i.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(i,null,2)}catch{this.exampleDemographicsData.patientType=this.selectedPatientType,this.encoderDemographics=JSON.stringify(this.exampleDemographicsData,null,2)}},this.launchKc=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:s=>{let a=X.url+this.WEB_KC,l=this.encoderDemographics,c=this.selectedI9I10State;this.clientExampleToken&&(this.exampleAuthToken.access_token=this.clientExampleToken),this.kcSdk.kcWindow.launch(a,this.exampleAuthToken,c,l)},error:s=>{this.signInService.serverError.content=s}})},this.launchReferences=()=>{if(!this.signInService.signInForm.valid){this.signInService.serverError.visible=!1,this.signInService.clientError.visible=!0,this.signInService.signInForm.markAsPristine();return}this.signInService.clearClientError();let i={grant_type:"org_login",username:this.signInService.signInForm.controls.username.value,organizationId:this.signInService.signInForm.controls.organization.value,enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.setAuthToken(i).subscribe({next:()=>{this.kcSdk.launchReferences(this.encoderPhraseCode,this.selectedSessionType.name,this.exampleAuthToken.access_token)},error:s=>{this.signInService.serverError.content=s}})},this.selectedSessionType=this.sessionTypes[0]}filterSessionTypes(n){this.sessionTypes.length=0;for(let r in this.kcSdk.sessionTypes){let o=this.kcSdk.sessionTypes[r];o.state.indexOf(n.value)>-1&&this.sessionTypes.push(o)}this.selectedSessionType=this.sessionTypes[0]}logOutput(n,r){let o={event:n,response:this.stringService.isJson(r)?JSON.parse(r):r};o.event==="editGroupPriceCompleted"&&(o.response=[]),this.outputJson=this.outputJson?[this.stringService.removeBrackets(this.outputJson),JSON.stringify(o,null,2)].join(`,
9
+ `):JSON.stringify(o,null,2),this.outputJson=this.stringService.wrapAsArray(this.outputJson),this.scrollLogToBottom()}scrollLogToBottom(){setTimeout(()=>{let n=document.getElementById("kc-sdk-input");n&&(n.scrollTop=n.scrollHeight)})}static{this.\u0275fac=function(r){return new(r||e)(x(Jn),x(vs),x(sc))}}static{this.\u0275prov=k({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ws=e=>({"tk-rfrm-has-error":e}),_g=(e,t)=>({"tk-form-field-error":e,"":t});function xT(e,t){if(e&1&&(v(0,"div",27),O(1),g()),e&2){let n=P();D(),Tn(" ",n.SignInService.clientError.content," ")}}function TT(e,t){if(e&1&&(v(0,"div",27),O(1),g()),e&2){let n=P();D(),Tn(" ",n.SignInService.serverError.content," ")}}function MT(e,t){e&1&&(v(0,"span",28),O(1," User name is required. "),g())}function NT(e,t){e&1&&(v(0,"span",29),O(1," Organization is required. "),g())}function AT(e,t){if(e&1){let n=Ae();v(0,"button",30),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.launchKc())}),O(1," Launch KC "),g()}if(e&2){let n=P();b("disabled",n.SignInService.busy)}}function kT(e,t){if(e&1){let n=Ae();v(0,"button",31),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.launchReferences())}),O(1," Launch References "),g()}if(e&2){let n=P();b("disabled",n.SignInService.busy)}}function OT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",7)(2,"label",32),O(3,"PhraseCode:"),g(),v(4,"input",33),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.encoderPhraseCode,o)||(i.SdkTesterService.encoderPhraseCode=o),$(o)}),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.encoderPhraseCode)}}function RT(e,t){if(e&1&&(v(0,"option",38),O(1),g()),e&2){let n=t.$implicit;b("value",n),D(),Ze(n)}}function FT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",35),O(3,"Encoder Tab:"),g(),v(4,"select",36),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedEncoderTab,o)||(i.SdkTesterService.selectedEncoderTab=o),$(o)}),le(5,RT,2,2,"option",37),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedEncoderTab),D(),b("ngForOf",n.SdkTesterService.encoderTabs)}}function PT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.value)}}function LT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",39),O(3,"State:"),g(),v(4,"select",40),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedI9I10State,o)||(i.SdkTesterService.selectedI9I10State=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.SdkTesterService.onStateChange())}),le(5,PT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedI9I10State),D(),b("ngForOf",n.SdkTesterService.i9I10States)}}function VT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.name)}}function jT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",43),O(3,"SessionType:"),g(),v(4,"select",44),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedSessionType,o)||(i.SdkTesterService.selectedSessionType=o),$(o)}),le(5,VT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedSessionType),D(),b("ngForOf",n.SdkTesterService.sessionTypes)}}function BT(e,t){if(e&1&&(v(0,"option",42),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n),D(),Ze(n.displayValue)}}function HT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",34)(2,"label",45),O(3,"Patient Type:"),g(),v(4,"select",46),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.selectedPatientType,o)||(i.SdkTesterService.selectedPatientType=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.SdkTesterService.onPatientTypeChange())}),le(5,BT,2,2,"option",41),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.selectedPatientType),D(),b("ngForOf",n.SdkTesterService.patientTypes)}}function UT(e,t){if(e&1){let n=Ae();v(0,"tr")(1,"td",7)(2,"label"),O(3,"Demographics:"),g(),v(4,"textarea",47),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.encoderDemographics,o)||(i.SdkTesterService.encoderDemographics=o),$(o)}),g()()()}if(e&2){let n=P();D(4),_e("ngModel",n.SdkTesterService.encoderDemographics)}}var Cg=(()=>{class e{constructor(n,r){this.signInService=n,this.sdkTesterService=r,this.userNameError=!1,this.orgError=!1,this.inAdvancedMode=!1,this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService}get username(){return this.signInService.signInForm.get("username")}get organization(){return this.signInService.signInForm.get("organization")}static{this.\u0275fac=function(r){return new(r||e)(E(Jn),E(Ds))}}static{this.\u0275cmp=ci({type:e,selectors:[["app-sign-in"]],inputs:{inAdvancedMode:"inAdvancedMode"},decls:58,vars:36,consts:[["ngForm","ngForm"],[1,"sdk-sign-in-container",2,"margin","0 auto"],[1,"tk-margin-left-2t"],["role","presentation",1,"tk-tabl-form-sip","kc-sdk-tester-sign-in-table"],[1,"sign-in-left-side"],["method","post","novalidate","",3,"ngSubmit","formGroup"],[1,"sdk-login-table"],["colspan","3"],["tabindex","-1"],["class","icon-exclamationbox",4,"ngIf"],["tabindex","-1","for","kc-userNameInput","id","kc-userNameLblId",1,"kc-label-padding"],[1,"tk-rfrm-group",3,"ngClass"],[1,"tk-rfrm-columnar-container"],[1,"tk-rfrm-error-container"],["type","text","spellcheck","false","id","kc-userNameInput","formControlName","username",0,"kc","focus-on-me","true","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip UserName_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],[1,"small-dot","kc-sdk-signin-required"],[3,"ngClass"],["id","kc-userName_errormessage","class","tk-padding-left-1t","aria-required","true","aria-invalid","true","aria-describedby","User name is required",4,"ngIf"],["tabindex","-1","for","kc-orgId","id","kc-orgLblId",1,"kc-label-padding"],["type","text","id","kc-orgId","formControlName","organization","autocomplete","off","aria-required","true","aria-autocomplete","none","aria-describedby","signInField_inputTip Org_errormessage","required","true",1,"tk-margin-left-min",3,"keyup","blur","ngClass"],["id","kc-Org_errormessage","class","tk-padding-left-1t","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",4,"ngIf"],["colspan","3",1,"tester-sign-in-button-space"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],["name","generate_token","id","kc-generate_tokenBtnId","value","Generate_Token","enable-default","true","label","whatever",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References","class","kc-tk-btn kc-tk-btn-primary tk-margin-left-min tk-margin-top-none tk-margin-bottom-none",3,"disabled","click",4,"ngIf"],[1,"sdk-login-table-inputs"],[4,"ngIf"],[1,"icon-exclamationbox"],["id","kc-userName_errormessage","aria-required","true","aria-invalid","true","aria-describedby","User name is required",1,"tk-padding-left-1t"],["id","kc-Org_errormessage","aria-describedby","Organization is required","aria-required","true","aria-invalid","true",1,"tk-padding-left-1t"],["type","button","name","sdk-launch-kc-button","id","sdk-launch-kc-button","value","Launch KC",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],["type","button","name","sdk-launch-references-button","id","sdk-launch-references-button","value","Launch References",1,"kc-tk-btn","kc-tk-btn-primary","tk-margin-left-min","tk-margin-top-none","tk-margin-bottom-none",3,"click","disabled"],[1,"kc-encoder-phrasecode-text"],["autoCapitalize","","type","text","id","kc-encoder-phrasecode",1,"kc-encoder-phrasecode-input",3,"ngModelChange","ngModel"],["colspan","3",1,"col-md","kc-simple-mode-inputs"],[1,"kc-encoder-tab-text"],["id","kc-encoder-tab-dropdown",1,"tester-encoder-tab",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"kc-state-text"],["id","kc-state-dropdown",1,"tester-state",3,"ngModelChange","change","ngModel"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"kc-session-type-text"],["id","kc-session-type-dropdown",1,"tester-session-type",3,"ngModelChange","ngModel"],[1,"kc-patient-type-text"],["id","kc-patient-type-dropdown",1,"patient-type",3,"ngModelChange","change","ngModel"],["name","workflowInput","id","kc-sdk-sign-in-demographics-input","placeholder","Demographics input","spellcheck","false",1,"tester-text-area","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"]],template:function(r,o){if(r&1){let i=Ae();v(0,"div",1)(1,"div",2)(2,"table",3)(3,"tbody")(4,"tr")(5,"td",4)(6,"form",5,0),q("ngSubmit",function(){return U(i),$(o.SdkTesterService.doSigninSubmit())}),v(8,"table",6)(9,"tr")(10,"td",7)(11,"h2",8),O(12),g(),le(13,xT,2,1,"div",9)(14,TT,2,1,"div",9),g()(),v(15,"tr")(16,"td")(17,"label",10),O(18,"User name"),g()(),v(19,"td",11)(20,"div")(21,"div",12)(22,"div",13)(23,"input",14),q("keyup",function(){return U(i),$(o.userNameError=!!(o.SignInService.signInForm.controls.username.dirty&&o.SignInService.signInForm.controls.username.invalid))})("blur",function(){return U(i),$(o.userNameError=!!o.SignInService.signInForm.controls.username.invalid)}),g(),oe(24,"div",15),g()()()(),v(25,"td",16)(26,"div")(27,"div",12)(28,"div",13),le(29,MT,2,0,"span",17),g()()()()(),v(30,"tr")(31,"td")(32,"label",18),O(33,"Organization"),g()(),v(34,"td",11)(35,"div",12)(36,"div",13)(37,"input",19),q("keyup",function(){return U(i),$(o.orgError=!!(o.SignInService.signInForm.controls.organization.dirty&&o.SignInService.signInForm.controls.organization.invalid))})("blur",function(){return U(i),$(o.orgError=!!o.SignInService.signInForm.controls.organization.invalid)}),g(),oe(38,"div",15),g()()(),v(39,"td",16)(40,"div")(41,"div",12)(42,"div",13),le(43,NT,2,0,"span",20),g()()()()(),v(44,"tr")(45,"td",21),le(46,AT,2,1,"button",22),v(47,"button",23),O(48),g(),le(49,kT,2,1,"button",24),g()()()()(),v(50,"td")(51,"table",25),le(52,OT,5,1,"tr",26)(53,FT,6,2,"tr",26)(54,LT,6,2,"tr",26)(55,jT,6,2,"tr",26)(56,HT,6,2,"tr",26)(57,UT,5,1,"tr",26),g()()()()()()()}if(r&2){let i=qf(7);D(6),b("formGroup",o.SignInService.signInForm),D(6),Ze(o.inAdvancedMode?"Create Token":"Enter Info"),D(),b("ngIf",o.SignInService.clientError.visible),D(),b("ngIf",o.SignInService.serverError.visible),D(5),b("ngClass",Ir(22,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),b("ngClass",Mn(24,_g,o.userNameError||i.submitted&&o.SignInService.signInForm.controls.username.invalid,o.SignInService.signInForm.controls.username.valid)),D(2),b("ngClass",Ir(27,ws,o.userNameError||o.SignInService.signInForm.controls.username.invalid&&i.submitted)),D(4),b("ngIf",(o.SignInService.signInForm.controls.username.dirty||i.submitted)&&o.SignInService.signInForm.controls.username.invalid),D(5),b("ngClass",Ir(29,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(3),b("ngClass",Mn(31,_g,o.orgError||i.submitted&&o.SignInService.signInForm.controls.organization.invalid,o.SignInService.signInForm.controls.organization.valid)),D(2),b("ngClass",Ir(34,ws,o.orgError||o.SignInService.signInForm.controls.organization.invalid&&i.submitted)),D(4),b("ngIf",(o.SignInService.signInForm.controls.organization.dirty||i.submitted)&&o.SignInService.signInForm.controls.organization.invalid),D(3),b("ngIf",!o.inAdvancedMode),D(),b("disabled",o.SignInService.busy),D(),Tn(" ",o.inAdvancedMode?"Generate Token":"Launch Encoder"," "),D(),b("ngIf",!o.inAdvancedMode),D(3),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode),D(),b("ngIf",!o.inAdvancedMode)}},dependencies:[Cr,hi,mi,gi,fs,eg,us,ds,Yn,Qn,ss,qm,Xl,Rr,ps,Ql,Jl],encapsulation:2})}}return e})();var bg=(e,t)=>({dot:!0,"not-listening":e,listening:t});function $T(e,t){e&1&&(v(0,"div",8)(1,"div",11),oe(2,"app-sign-in",12),g()()),e&2&&(D(2),b("inAdvancedMode",!1))}function GT(e,t){if(e&1&&(v(0,"option",34),O(1),g()),e&2){let n=t.$implicit;b("ngValue",n.name),D(),Ze(n.name)}}function WT(e,t){if(e&1){let n=Ae();v(0,"div",13)(1,"div",14)(2,"input",15),q("click",function(){U(n);let o=P();return $(o.clearInputOutput())}),g(),v(3,"input",16),q("click",function(){U(n);let o=P();return $(o.SdkTesterService.closeAllKCWindows())}),g(),oe(4,"br"),v(5,"H2",4),O(6,"Select API:"),g(),oe(7,"br"),v(8,"select",17),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.selectedApi,o)||(i.selectedApi=o),$(o)}),q("change",function(){U(n);let o=P();return $(o.onSelectedNewWorkflowApiChange())}),v(9,"option",18),O(10,"launch KC"),g(),v(11,"option",19),O(12,"launch KC Sentinel"),g(),v(13,"option",20),O(14,"launch Encoder"),g(),v(15,"option",21),O(16,"assignConfig"),g(),v(17,"option",22),O(18,"setDemographics"),g(),v(19,"option",23),O(20,"setAuthToken"),g(),le(21,GT,2,2,"option",24),g(),oe(22,"br"),v(23,"div",25),oe(24,"br"),v(25,"input",26),q("click",function(){U(n);let o=P();return $(o.callApi())}),g()(),oe(26,"br")(27,"br"),g(),v(28,"div",27)(29,"div",28)(30,"textarea",29),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.workflowInput,o)||(i.SdkTesterService.workflowInput=o),$(o)}),g(),oe(31,"br"),g()(),v(32,"div",30)(33,"div",31)(34,"input",32),q("click",function(){U(n);let o=P();return $(o.clearOutput())}),g(),v(35,"textarea",33),Ce("ngModelChange",function(o){U(n);let i=P();return ke(i.SdkTesterService.outputJson,o)||(i.SdkTesterService.outputJson=o),$(o)}),g(),oe(36,"br"),g()()()}if(e&2){let n=P();D(3),b("disabled",!n.SdkTesterService.sdkKcIsListening&&!n.SdkTesterService.sdkEncoderIsListening),D(5),_e("ngModel",n.selectedApi),D(13),b("ngForOf",n.apiMethods),D(9),_e("ngModel",n.SdkTesterService.workflowInput),D(5),_e("ngModel",n.SdkTesterService.outputJson)}}var Sg=(()=>{class e{constructor(n,r,o,i,s,a){this.document=n,this.sdkTesterService=r,this.stringService=o,this.signInService=i,this.ngZone=s,this.cdr=a,this.title="sdk-tester",this.kcSdk=window.kcSdk,this.kcNotLaunched=!1,this.devApis=Cm,this.selectedApi="",this.spacesToIndent=4,this.clearInputOutput=()=>{this.sdkTesterService.outputJson="",this.clearWorkflow(),this.signInService.clearClientError()},this.clearOutput=()=>{this.sdkTesterService.outputJson=""},this.kcWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.encoderWindowDataChanged=c=>{setTimeout(()=>{this.sdkTesterService.logOutput(c.callback,c.value),this.cdr.detectChanges()})},this.kcListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkKcIsListening=this.kcSdk.kcWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.kcWindowIsListening),this.cdr.detectChanges()})},this.encoderListeningChanged=c=>{setTimeout(()=>{this.sdkTesterService.sdkEncoderIsListening=this.kcSdk.encoderWindowIsListening,this.sdkTesterService.logOutput(c.callback,this.kcSdk.encoderWindowIsListening),this.cdr.detectChanges()})},this.workflowComplete=()=>{setTimeout(()=>{this.onSelectedNewWorkflowApiChange(),this.cdr.detectChanges()})},this.advancedModeOnChange=()=>{this.signInService.clearClientError(),this.clearInputOutput(),this.signInService.advancedMode&&(this.populateSdkApis(),this.onSelectedNewWorkflowApiChange())},this.clearWorkflow=()=>{this.kcSdk.clearWorkflow()},this.onSelectedWorkflowApiChange=()=>{let c=this.document.getElementById("kc-workflow")?.selectedIndex||0,u=this.kcSdk.workflow[c];u&&(this.sdkTesterService.workflowInput=JSON.stringify(u.args,null,2))},this.onSelectedNewWorkflowApiChange=()=>{this.sdkTesterService.clientExampleToken&&(this.sdkTesterService.exampleAuthToken.access_token=this.sdkTesterService.clientExampleToken);let c=this.apiMethods.find(p=>p.name===this.selectedApi)?.example;switch(this.selectedApi){case"assignConfig":this.sdkTesterService.workflowInput=JSON.stringify({rcpEndpointUri:this.sdkTesterService.exampleUrl},null,2);break;case"setDemographics":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2);break;case"setAuthToken":this.sdkTesterService.workflowInput=JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2);break;case"launch KC":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let p=X.url+this.sdkTesterService.WEB_KC,f=this.sdkTesterService.selectedI9I10State,h=[JSON.stringify(p,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(f,null,2),JSON.stringify(this.sdkTesterService.exampleDemographicsData,null,2)].join(`,
10
+ `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(h);break;case"launch KC Sentinel":this.sdkTesterService.workflowWindow=this.sdkTesterService.kcWindowName;let m=X.url+this.sdkTesterService.WEB_KC,y=[JSON.stringify(m,null,2)].join(`,
11
+ `);this.sdkTesterService.workflowInput="["+y+"]";break;case"launch Encoder":this.sdkTesterService.workflowWindow=this.sdkTesterService.encoderWindowName;let w=X.url+this.sdkTesterService.WEB_ENCODER,L=this.sdkTesterService.exampleDemographicsData,F={sessionType:this.kcSdk.sessionTypes.I10CM,encoderTab:this.kcSdk.encoderTabs.LOGIC,codePhrase:"ANGINA"},W=this.sdkTesterService.selectedI9I10State,Z=[JSON.stringify(w,null,2),JSON.stringify(this.sdkTesterService.exampleAuthToken,null,2),JSON.stringify(W,null,2),JSON.stringify(L,null,2),JSON.stringify(F,null,2)].join(`,
12
+ `);this.sdkTesterService.workflowInput=this.stringService.wrapAsArray(Z);break;case"updateCodes":this.sdkTesterService.workflowInput=JSON.stringify({codes:c},void 0,this.spacesToIndent);break;case"getRowSpecificInfo":this.sdkTesterService.workflowInput=JSON.stringify({uniqueIds:c},void 0,this.spacesToIndent);break;default:this.sdkTesterService.workflowInput=JSON.stringify(c,void 0,this.spacesToIndent);break}let u=this.selectedApi==="launch Encoder"||this.selectedApi==="launch KC"||this.selectedApi==="launch KC Sentinel"?this.sdkTesterService.workflowWindow:this.kcSdk.kcWindowIsListening?this.sdkTesterService.kcWindowName:this.sdkTesterService.encoderWindowName,d=$l(this.sdkTesterService.availableApis,{name:this.selectedApi,windowName:u});d&&(this.sdkTesterService.availableApiSelected=d),this.kcNotLaunched=!d},this.dateParser=(c,u)=>typeof u=="string"&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/.test(u)?new Date(u):u,this.callApi=()=>{let c=this.sdkTesterService.workflowInput?this.stringService.isJson(this.sdkTesterService.workflowInput)?JSON.parse(this.sdkTesterService.workflowInput,this.dateParser):this.sdkTesterService.workflowInput:[];if(this.kcSdk.clearWorkflow(),this.kcNotLaunched){console.log(new Error("KC window not listening"));return}this.kcSdk.addToWorkflow({fn:this.sdkTesterService.availableApiSelected?.fn,args:c}),this.sdkTesterService.selectedWorkflowApi=Ul(this.kcSdk.workflow),this.SdkTesterService.runWorkflow(this.SdkTesterService.workflowWindow)},this.SignInService=this.signInService,this.SdkTesterService=this.sdkTesterService,this.kcSdk.setCallback(this.kcSdk.callbacks.SDKEXCEPTION,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.WORKFLOWCOMPLETE,this.workflowComplete),this.kcSdk.setCallback(this.kcSdk.callbacks.SDKRESPONSE,this.kcWindowDataChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.KCLISTENINGCHANGED,this.kcListeningChanged),this.kcSdk.setCallback(this.kcSdk.callbacks.ENCODERLISTENINGCHANGED,this.encoderListeningChanged),this.kcSdk.clearWorkflow();let l={grant_type:"org_login",username:"sdkTester",organizationId:"Justice League",enableEncoder:!0,client_id:X.appName,client_secret:X.secret};this.sdkTesterService.filterSessionTypes(this.sdkTesterService.selectedI9I10State),this.sdkTesterService.setAuthToken(l).subscribe()}populateSdkApis(){this.apiMethods=this.devApis.filter(n=>n.sdkVisible).sort((n,r)=>n.name.localeCompare(r.name)),this.selectedApi="launch KC"}static{this.\u0275fac=function(r){return new(r||e)(E(Oe),E(Ds),E(vs),E(Jn),E(Y),E(Nn))}}static{this.\u0275cmp=ci({type:e,selectors:[["app-root"]],decls:21,vars:13,consts:[[1,"col-md","sdk-top-controls"],[1,"sdk-version-info"],[1,"sdk-version-label"],[1,"sdk-version"],[1,"tester-text"],[3,"ngClass"],["type","checkbox","id","kc-sdk-advanced-mode","name","kc-sdk-advanced-mode",1,"sdk-tester-checkbox","kc-input",3,"change","ngModelChange","ngModel"],[1,"container",3,"ngClass"],[1,"row"],["class","row",4,"ngIf"],["class","row sdk-advanced-row",4,"ngIf"],[1,"col-md"],[3,"inAdvancedMode"],[1,"row","sdk-advanced-row"],[1,"col-md-3","sdk-tester-input-side"],["type","button","value","Clear Tester","id","kc-sdk-clear-tester",1,"tester-clear-tester",3,"click"],["type","button","value","Close All KC Windows","id","kc-sdk-close-windows",1,"tester-close-windows",3,"click","disabled"],["id","kc-workflow-available-apis",1,"tester-workflow-available-api",3,"ngModelChange","change","ngModel"],["value","launch KC"],["value","launch KC Sentinel"],["value","launch Encoder"],["value","assignConfig"],["value","setDemographics"],["value","setAuthToken"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"sdk-workflow-api-buttons"],["type","button","value","Call API","id","kc-sdk-run-workflow",1,"sdk-callApi-button",3,"click"],[1,"col-md-4","sdk-tester-left-side"],[1,"sdk-tester-input-area"],["name","workflowInput","id","kc-sdk-workflow-input","placeholder","Workflow input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[1,"col-md-5","sdk-tester-right-side"],[1,"sdk-tester-output-area"],["type","button","value","Clear Output","id","kc-sdk-clear-tester",1,"tester-clear-output-tester",3,"click"],["placeholder","Output","name","outputJson","id","kc-sdk-input","spellcheck","false",1,"tester-text-area-advanced","ng-pristine","ng-valid","ng-touched",3,"ngModelChange","ngModel"],[3,"ngValue"]],template:function(r,o){r&1&&(v(0,"div",0)(1,"div",1)(2,"label",2),O(3,"sdk version:"),g(),v(4,"div",3),O(5),g(),oe(6,"br"),g(),v(7,"label",4),O(8,"kc listening:"),g(),oe(9,"div",5),v(10,"label",4),O(11,"encoder listening:"),g(),oe(12,"div",5)(13,"br"),v(14,"label"),O(15," Advanced Mode: "),v(16,"input",6),q("change",function(){return o.advancedModeOnChange()}),Ce("ngModelChange",function(s){return ke(o.SignInService.advancedMode,s)||(o.SignInService.advancedMode=s),s}),g()()(),v(17,"div",7),oe(18,"div",8),le(19,$T,3,1,"div",9)(20,WT,37,5,"div",10),g()),r&2&&(D(5),Ze(o.SdkTesterService.version),D(4),b("ngClass",Mn(7,bg,!o.SdkTesterService.sdkKcIsListening,o.SdkTesterService.sdkKcIsListening)),D(3),b("ngClass",Mn(10,bg,!o.SdkTesterService.sdkEncoderIsListening,o.SdkTesterService.sdkEncoderIsListening)),D(4),_e("ngModel",o.SignInService.advancedMode),D(),b("ngClass",o.SignInService.advancedMode?"sdk-advanced-mode-container":"sdk-simple-mode-container"),D(2),b("ngIf",!o.SignInService.advancedMode),D(),b("ngIf",o.SignInService.advancedMode))},dependencies:[Cr,hi,mi,gi,fs,us,ds,Yn,Zl,Qn,ss,Rr,ps,Cg],styles:[`.sdk-callApi-button[_ngcontent-%COMP%]{margin-left:185px}
13
+ /*# sourceMappingURL=app.component.css.map */`]})}}return e})();var cc=class extends fi{supportsDOMEvents=!0},uc=class e extends cc{static makeCurrent(){np(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=qT();return n==null?null:ZT(n)}resetBaseElement(){jr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return pi(document.cookie,t)}},jr=null;function qT(){return jr=jr||document.querySelector("base"),jr?jr.getAttribute("href"):null}function ZT(e){return new URL(e,document.baseURI).pathname}var KT=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),dc=new _(""),kg=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new S(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(x(dc),x(Y))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Is=class{_doc;constructor(t){this._doc=t}manager},Es="ng-app-id";function xg(e){for(let t of e)t.remove()}function Tg(e,t){let n=t.createElement("style");return n.textContent=e,n}function YT(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Es}="${t}"],link[${Es}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Es),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function fc(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Og=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=yi(i),YT(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Tg);r?.forEach(o=>this.addUsage(o,this.external,fc))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(xg(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])xg(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Tg(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,fc(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Es,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(x(Oe),x(hl),x(gl,8),x(wt))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),lc={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"},hc=/%COMP%/g,Rg="%COMP%",QT=`_nghost-${Rg}`,JT=`_ngcontent-${Rg}`,XT=!0,eM=new _("",{providedIn:"root",factory:()=>XT});function tM(e){return JT.replace(hc,e)}function nM(e){return QT.replace(hc,e)}function Fg(e,t){return t.map(n=>n.replace(hc,e))}var Mg=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,l,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.platformIsServer=yi(a),this.defaultRenderer=new Br(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===qe.ShadowDom&&(r=K(V({},r),{encapsulation:qe.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof _s?o.applyToHost(n):o instanceof Hr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case qe.Emulated:i=new _s(l,c,r,this.appId,u,s,a,d);break;case qe.ShadowDom:return new pc(l,c,n,r,s,a,this.nonce,d);default:i=new Hr(l,c,r,u,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(x(kg),x(Og),x(hl),x(eM),x(Oe),x(wt),x(Y),x(gl))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Br=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(lc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ng(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ng(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new S(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=lc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=lc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Xe.DashCase|Xe.Important)?t.style.setProperty(n,r,o&Xe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Xe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=kn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Ng(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var pc=class extends Br{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Fg(o.id,o.styles);for(let d of c){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=d,this.shadowRoot.appendChild(p)}let u=o.getExternalStyles?.();if(u)for(let d of u){let p=fc(d,i);a&&p.setAttribute("nonce",a),this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Hr=class extends Br{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=l?Fg(l,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},_s=class extends Hr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,l){let c=o+"-"+r.id;super(t,n,r,i,s,a,l,c),this.contentAttr=tM(c),this.hostAttr=nM(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},rM=(()=>{class e extends Is{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(x(Oe))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})(),Ag=["alt","control","meta","shift"],oM={"\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"},iM={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},sM=(()=>{class e extends Is{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>kn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Ag.forEach(c=>{let u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=oM[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Ag.forEach(s=>{if(s!==o){let a=iM[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(x(Oe))};static \u0275prov=k({token:e,factory:e.\u0275fac})}return e})();function Pg(e,t){return Yf(V({rootComponent:e},aM(t)))}function aM(e){return{appProviders:[...fM,...e?.providers??[]],platformProviders:dM}}function lM(){uc.makeCurrent()}function cM(){return new mt}function uM(){return Jd(document),document}var dM=[{provide:wt,useValue:rp},{provide:ml,useValue:lM,multi:!0},{provide:Oe,useFactory:uM,deps:[]}];var fM=[{provide:Ko,useValue:"root"},{provide:mt,useFactory:cM,deps:[]},{provide:dc,useClass:rM,multi:!0,deps:[Oe,Y,wt]},{provide:dc,useClass:sM,multi:!0,deps:[Oe]},Mg,Og,kg,{provide:En,useExisting:Mg},{provide:An,useClass:KT,deps:[]},[]];Pg(Sg,{providers:[Dg(wg())]});
13
14
  //# sourceMappingURL=main.js.map