@aastrika/ai-elements 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- var wy=Object.defineProperty,xy=Object.defineProperties;var Sy=Object.getOwnPropertyDescriptors;var Ld=Object.getOwnPropertySymbols;var Iy=Object.prototype.hasOwnProperty,My=Object.prototype.propertyIsEnumerable;var Vd=(e,t,n)=>t in e?wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L=(e,t)=>{for(var n in t||={})Iy.call(t,n)&&Vd(e,n,t[n]);if(Ld)for(var n of Ld(t))My.call(t,n)&&Vd(e,n,t[n]);return e},H=(e,t)=>xy(e,Sy(t));var Le=null,wi=!1,In=1,Ty=null,De=Symbol("SIGNAL");function k(e){let t=Le;return Le=e,t}function Mi(){return Le}var Mn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function gr(e){if(wi)throw new Error("");if(Le===null)return;Le.consumerOnSignalRead(e);let t=Le.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Le.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Le.producers,n!==void 0&&n.producer===e)){Le.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=In;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Le&&(!r||o.knownValidAtEpoch===In))return;let i=yr(Le),s={producer:e,consumer:Le,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:In,lastReadVersion:e.version,nextConsumer:void 0};Le.producersTail=s,t!==void 0?t.nextProducer=s:Le.producers=s,i&&Ud(e,s)}function jd(){In++}function Ti(e){if(!(yr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===In)){if(!e.producerMustRecompute(e)&&!po(e)){Ii(e);return}e.producerRecomputeValue(e),Ii(e)}}function ec(e){if(e.consumers===void 0)return;let t=wi;wi=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Ny(r)}}finally{wi=t}}function tc(){return Le?.consumerAllowSignalWrites!==!1}function Ny(e){e.dirty=!0,ec(e),e.consumerMarkedDirty?.(e)}function Ii(e){e.dirty=!1,e.lastCleanEpoch=In}function Tn(e){return e&&Bd(e),k(e)}function Bd(e){if(e.producersTail?.knownValidAtEpoch===In){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function mr(e,t){k(t),e&&Hd(e)}function Hd(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(yr(e))do n=nc(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function po(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ti(n),r!==n.version))return!0}return!1}function Nn(e){if(yr(e)){let t=e.producers;for(;t!==void 0;)t=nc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Ud(e,t){let n=e.consumersTail,r=yr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Ud(o.producer,o)}function nc(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!yr(t)){let i=t.producers;for(;i!==void 0;)i=nc(i)}return n}function yr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ni(e){Ty?.(e)}function Ai(e,t){return Object.is(e,t)}function Oi(e,t){let n=Object.create(Ay);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ti(n),gr(n),n.value===fo)throw n.error;return n.value};return r[De]=n,Ni(n),r}var xi=Symbol("UNSET"),Si=Symbol("COMPUTING"),fo=Symbol("ERRORED"),Ay=H(L({},Mn),{value:xi,dirty:!0,error:null,equal:Ai,kind:"computed",producerMustRecompute(e){return e.value===xi||e.value===Si},producerRecomputeValue(e){if(e.value===Si)throw new Error("");let t=e.value;e.value=Si;let n=Tn(e),r,o=!1;try{r=e.computation(),k(null),o=t!==xi&&t!==fo&&r!==fo&&e.equal(t,r)}catch(i){r=fo,e.error=i}finally{mr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Oy(){throw new Error}var $d=Oy;function zd(e){$d(e)}function rc(e){$d=e}var ky=null;function oc(e,t){let n=Object.create(ho);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Gd(n);return r[De]=n,Ni(n),[r,s=>An(n,s),s=>ic(n,s)]}function Gd(e){return gr(e),e.value}function An(e,t){tc()||zd(e),e.equal(e.value,t)||(e.value=t,Ry(e))}function ic(e,t){tc()||zd(e),An(e,t(e.value))}var ho=H(L({},Mn),{equal:Ai,value:void 0,kind:"signal"});function Ry(e){e.version++,jd(),ec(e),ky?.(e)}var sc=H(L({},Mn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function ac(e){if(e.dirty=!1,e.version>0&&!po(e))return;e.version++;let t=Tn(e);try{e.cleanup(),e.fn()}finally{mr(e,t)}}var cc;function ki(){return cc}function At(e){let t=cc;return cc=e,t}var Wd=Symbol("NotFound");function vr(e){return e===Wd||e?.name==="\u0275NotFound"}function qd(e){let t=k(null);try{return e()}finally{k(t)}}function $(e){return typeof e=="function"}function Ri(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 Pi=Ri(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
1
+ var Ny=Object.defineProperty,Ay=Object.defineProperties;var Oy=Object.getOwnPropertyDescriptors;var Bd=Object.getOwnPropertySymbols;var ky=Object.prototype.hasOwnProperty,Ry=Object.prototype.propertyIsEnumerable;var Hd=(e,t,n)=>t in e?Ny(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>{for(var n in t||={})ky.call(t,n)&&Hd(e,n,t[n]);if(Bd)for(var n of Bd(t))Ry.call(t,n)&&Hd(e,n,t[n]);return e},U=(e,t)=>Ay(e,Oy(t));var je=null,wi=!1,Mn=1,Py=null,Ee=Symbol("SIGNAL");function P(e){let t=je;return je=e,t}function Mi(){return je}var Tn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function gr(e){if(wi)throw new Error("");if(je===null)return;je.consumerOnSignalRead(e);let t=je.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=je.recomputing;if(r&&(n=t!==void 0?t.nextProducer:je.producers,n!==void 0&&n.producer===e)){je.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=Mn;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===je&&(!r||o.knownValidAtEpoch===Mn))return;let i=mr(je),s={producer:e,consumer:je,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:Mn,lastReadVersion:e.version,nextConsumer:void 0};je.producersTail=s,t!==void 0?t.nextProducer=s:je.producers=s,i&&Gd(e,s)}function Ud(){Mn++}function Ti(e){if(!(mr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Mn)){if(!e.producerMustRecompute(e)&&!fo(e)){Ii(e);return}e.producerRecomputeValue(e),Ii(e)}}function tl(e){if(e.consumers===void 0)return;let t=wi;wi=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Fy(r)}}finally{wi=t}}function nl(){return je?.consumerAllowSignalWrites!==!1}function Fy(e){e.dirty=!0,tl(e),e.consumerMarkedDirty?.(e)}function Ii(e){e.dirty=!1,e.lastCleanEpoch=Mn}function Nn(e){return e&&$d(e),P(e)}function $d(e){if(e.producersTail?.knownValidAtEpoch===Mn){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}e.producersTail=void 0,e.recomputing=!0}function hr(e,t){P(t),e&&zd(e)}function zd(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(mr(e))do n=rl(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function fo(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Ti(n),r!==n.version))return!0}return!1}function An(e){if(mr(e)){let t=e.producers;for(;t!==void 0;)t=rl(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Gd(e,t){let n=e.consumersTail,r=mr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Gd(o.producer,o)}function rl(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!mr(t)){let i=t.producers;for(;i!==void 0;)i=rl(i)}return n}function mr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ni(e){Py?.(e)}function Ai(e,t){return Object.is(e,t)}function Oi(e,t){let n=Object.create(Ly);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ti(n),gr(n),n.value===uo)throw n.error;return n.value};return r[Ee]=n,Ni(n),r}var xi=Symbol("UNSET"),Si=Symbol("COMPUTING"),uo=Symbol("ERRORED"),Ly=U(j({},Tn),{value:xi,dirty:!0,error:null,equal:Ai,kind:"computed",producerMustRecompute(e){return e.value===xi||e.value===Si},producerRecomputeValue(e){if(e.value===Si)throw new Error("");let t=e.value;e.value=Si;let n=Nn(e),r,o=!1;try{r=e.computation(),P(null),o=t!==xi&&t!==uo&&r!==uo&&e.equal(t,r)}catch(i){r=uo,e.error=i}finally{hr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Vy(){throw new Error}var Wd=Vy;function qd(e){Wd(e)}function ol(e){Wd=e}var jy=null;function il(e,t){let n=Object.create(po);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Zd(n);return r[Ee]=n,Ni(n),[r,s=>On(n,s),s=>sl(n,s)]}function Zd(e){return gr(e),e.value}function On(e,t){nl()||qd(e),e.equal(e.value,t)||(e.value=t,By(e))}function sl(e,t){nl()||qd(e),On(e,t(e.value))}var po=U(j({},Tn),{equal:Ai,value:void 0,kind:"signal"});function By(e){e.version++,Ud(),tl(e),jy?.(e)}var al=U(j({},Tn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function ll(e){if(e.dirty=!1,e.version>0&&!fo(e))return;e.version++;let t=Nn(e);try{e.cleanup(),e.fn()}finally{hr(e,t)}}var cl;function ki(){return cl}function At(e){let t=cl;return cl=e,t}var Yd=Symbol("NotFound");function yr(e){return e===Yd||e?.name==="\u0275NotFound"}function Qd(e){let t=P(null);try{return e()}finally{P(t)}}function q(e){return typeof e=="function"}function Ri(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 Pi=Ri(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 go(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ee=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($(r))try{r()}catch(i){t=i instanceof Pi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Zd(i)}catch(s){t=t??[],s instanceof Pi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Pi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Zd(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)&&go(n,t)}remove(t){let{_finalizers:n}=this;n&&go(n,t),t instanceof e&&t._removeParent(this)}};Ee.EMPTY=(()=>{let e=new Ee;return e.closed=!0,e})();var lc=Ee.EMPTY;function Fi(e){return e instanceof Ee||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function Zd(e){$(e)?e():e.unsubscribe()}var ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var _r={setTimeout(e,t,...n){let{delegate:r}=_r;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=_r;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Li(e){_r.setTimeout(()=>{let{onUnhandledError:t}=ht;if(t)t(e);else throw e})}function mo(){}var Yd=uc("C",void 0,void 0);function Qd(e){return uc("E",void 0,e)}function Kd(e){return uc("N",e,void 0)}function uc(e,t,n){return{kind:e,value:t,error:n}}var On=null;function Cr(e){if(ht.useDeprecatedSynchronousErrorHandling){let t=!On;if(t&&(On={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=On;if(On=null,n)throw r}}else e()}function Jd(e){ht.useDeprecatedSynchronousErrorHandling&&On&&(On.errorThrown=!0,On.error=e)}var kn=class extends Ee{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Fi(t)&&t.add(this)):this.destination=Ly}static create(t,n,r){return new br(t,n,r)}next(t){this.isStopped?fc(Kd(t),this):this._next(t)}error(t){this.isStopped?fc(Qd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?fc(Yd,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()}}},Py=Function.prototype.bind;function dc(e,t){return Py.call(e,t)}var pc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Vi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Vi(r)}else Vi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Vi(n)}}},br=class extends kn{constructor(t,n,r){super();let o;if($(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ht.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&dc(t.next,i),error:t.error&&dc(t.error,i),complete:t.complete&&dc(t.complete,i)}):o=t}this.destination=new pc(o)}};function Vi(e){ht.useDeprecatedSynchronousErrorHandling?Jd(e):Li(e)}function Fy(e){throw e}function fc(e,t){let{onStoppedNotification:n}=ht;n&&_r.setTimeout(()=>n(e,t))}var Ly={closed:!0,next:mo,error:Fy,complete:mo};var Dr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ji(e){return e}function Xd(e){return e.length===0?ji:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var q=class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,r){let o=jy(t)?t:new br(t,n,r);return Cr(()=>{let{operator:i,source:s}=this;o.add(i?i.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=ef(n),new n((r,o)=>{let i=new br({next:s=>{try{t(s)}catch(a){o(a),i.unsubscribe()}},error:o,complete:r});this.subscribe(i)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[Dr](){return this}pipe(...t){return Xd(t)(this)}toPromise(t){return t=ef(t),new t((n,r)=>{let o;this.subscribe(i=>o=i,i=>r(i),()=>n(o))})}};q.create=e=>new q(e);function ef(e){var t;return(t=e??ht.Promise)!==null&&t!==void 0?t:Promise}function Vy(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function jy(e){return e&&e instanceof kn||Vy(e)&&Fi(e)}function By(e){return $(e?.lift)}function Te(e){return t=>{if(By(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 Ne(e,t,n,r,o){return new hc(e,t,n,r,o)}var hc=class extends kn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var tf=Ri(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ae=class extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new Bi(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new tf}next(t){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){Cr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:r,observers:o}=this;return n||r?lc:(this.currentObservers=null,o.push(t),new Ee(()=>{this.currentObservers=null,go(o,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:r,isStopped:o}=this;n?t.error(r):o&&t.complete()}asObservable(){let t=new q;return t.source=this,t}};Ae.create=(e,t)=>new Bi(e,t);var Bi=class extends Ae{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:lc}};var yo=class extends Ae{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var gc={now(){return(gc.delegate||Date).now()},delegate:void 0};var Er=class extends Ae{constructor(t=1/0,n=1/0,r=gc){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var nf=new q(e=>e.complete());function rf(e){return e&&$(e.schedule)}function mc(e){return e[e.length-1]}function of(e){return $(mc(e))?e.pop():void 0}function Hi(e){return rf(mc(e))?e.pop():void 0}function sf(e,t){return typeof mc(e)=="number"?e.pop():t}function cf(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(f){try{l(r.next(f))}catch(g){s(g)}}function c(f){try{l(r.throw(f))}catch(g){s(g)}}function l(f){f.done?i(f.value):o(f.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function af(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 Rn(e){return this instanceof Rn?(this.v=e,this):new Rn(e)}function lf(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(m){return function(_){return Promise.resolve(_).then(m,g)}}function a(m,_){r[m]&&(o[m]=function(w){return new Promise(function(O,P){i.push([m,w,O,P])>1||c(m,w)})},_&&(o[m]=_(o[m])))}function c(m,_){try{l(r[m](_))}catch(w){y(i[0][3],w)}}function l(m){m.value instanceof Rn?Promise.resolve(m.value.v).then(f,g):y(i[0][2],m)}function f(m){c("next",m)}function g(m){c("throw",m)}function y(m,_){m(_),i.shift(),i.length&&c(i[0][0],i[0][1])}}function uf(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 af=="function"?af(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Ui=(e=>e&&typeof e.length=="number"&&typeof e!="function");function $i(e){return $(e?.then)}function zi(e){return $(e[Dr])}function Gi(e){return Symbol.asyncIterator&&$(e?.[Symbol.asyncIterator])}function Wi(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 Hy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qi=Hy();function Zi(e){return $(e?.[qi])}function Yi(e){return lf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Rn(n.read());if(o)return yield Rn(void 0);yield yield Rn(r)}}finally{n.releaseLock()}})}function Qi(e){return $(e?.getReader)}function Ce(e){if(e instanceof q)return e;if(e!=null){if(zi(e))return Uy(e);if(Ui(e))return $y(e);if($i(e))return zy(e);if(Gi(e))return df(e);if(Zi(e))return Gy(e);if(Qi(e))return Wy(e)}throw Wi(e)}function Uy(e){return new q(t=>{let n=e[Dr]();if($(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function $y(e){return new q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function zy(e){return new q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Li)})}function Gy(e){return new q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function df(e){return new q(t=>{qy(e,t).catch(n=>t.error(n))})}function Wy(e){return df(Yi(e))}function qy(e,t){var n,r,o,i;return cf(this,void 0,void 0,function*(){try{for(n=uf(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 rt(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 Ki(e,t=0){return Te((n,r)=>{n.subscribe(Ne(r,o=>rt(r,e,()=>r.next(o),t),()=>rt(r,e,()=>r.complete(),t),o=>rt(r,e,()=>r.error(o),t)))})}function Ji(e,t=0){return Te((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ff(e,t){return Ce(e).pipe(Ji(t),Ki(t))}function pf(e,t){return Ce(e).pipe(Ji(t),Ki(t))}function hf(e,t){return new q(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function gf(e,t){return new q(n=>{let r;return rt(n,t,()=>{r=e[qi](),rt(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)}),()=>$(r?.return)&&r.return()})}function Xi(e,t){if(!e)throw new Error("Iterable cannot be null");return new q(n=>{rt(n,t,()=>{let r=e[Symbol.asyncIterator]();rt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function mf(e,t){return Xi(Yi(e),t)}function yf(e,t){if(e!=null){if(zi(e))return ff(e,t);if(Ui(e))return hf(e,t);if($i(e))return pf(e,t);if(Gi(e))return Xi(e,t);if(Zi(e))return gf(e,t);if(Qi(e))return mf(e,t)}throw Wi(e)}function Gt(e,t){return t?yf(e,t):Ce(e)}function yc(...e){let t=Hi(e);return Gt(e,t)}function we(e,t){return Te((n,r)=>{let o=0;n.subscribe(Ne(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Zy}=Array;function Yy(e,t){return Zy(t)?e(...t):e(t)}function vf(e){return we(t=>Yy(e,t))}var{isArray:Qy}=Array,{getPrototypeOf:Ky,prototype:Jy,keys:Xy}=Object;function _f(e){if(e.length===1){let t=e[0];if(Qy(t))return{args:t,keys:null};if(ev(t)){let n=Xy(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function ev(e){return e&&typeof e=="object"&&Ky(e)===Jy}function Cf(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function bf(e,t,n,r,o,i,s,a){let c=[],l=0,f=0,g=!1,y=()=>{g&&!c.length&&!l&&t.complete()},m=w=>l<r?_(w):c.push(w),_=w=>{i&&t.next(w),l++;let O=!1;Ce(n(w,f++)).subscribe(Ne(t,P=>{o?.(P),i?m(P):t.next(P)},()=>{O=!0},void 0,()=>{if(O)try{for(l--;c.length&&l<r;){let P=c.shift();s?rt(t,s,()=>_(P)):_(P)}y()}catch(P){t.error(P)}}))};return e.subscribe(Ne(t,m,()=>{g=!0,y()})),()=>{a?.()}}function wr(e,t,n=1/0){return $(t)?wr((r,o)=>we((i,s)=>t(r,i,o,s))(Ce(e(r,o))),n):(typeof t=="number"&&(n=t),Te((r,o)=>bf(r,o,e,n)))}function Df(e=1/0){return wr(ji,e)}function vc(...e){let t=of(e),{args:n,keys:r}=_f(e),o=new q(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let f=0;f<s;f++){let g=!1;Ce(n[f]).subscribe(Ne(i,y=>{g||(g=!0,l--),a[f]=y},()=>c--,void 0,()=>{(!c||!g)&&(l||i.next(r?Cf(r,a):a),i.complete())}))}});return t?o.pipe(vf(t)):o}function _c(...e){let t=Hi(e),n=sf(e,1/0),r=e;return r.length?r.length===1?Ce(r[0]):Df(n)(Gt(r,t)):nf}function Cc(e,t){return Te((n,r)=>{let o=0;n.subscribe(Ne(r,i=>e.call(t,i,o++)&&r.next(i)))})}function bc(e,t){return $(t)?wr(e,t,1):wr(e,1)}function Dc(e){return Te((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Pn(e,t){return Te((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Ne(r,c=>{o?.unsubscribe();let l=0,f=i++;Ce(e(c,f)).subscribe(o=Ne(r,g=>r.next(t?t(c,g,f,l++):g),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ec(e){return Te((t,n)=>{Ce(e).subscribe(Ne(n,()=>n.complete(),mo)),!n.closed&&t.subscribe(n)})}var ss="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",x=class extends Error{code;constructor(t,n){super(un(t,n)),this.code=t}};function tv(e){return`NG0${Math.abs(e)}`}function un(e,t){return`${tv(e)}${t?": "+t:""}`}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("")}function If(e,t){for(let n in t)Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&(e[n]=t[n])}function as(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(as).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function cs(e,t){return e?t?`${e} ${t}`:e:t||""}var nv=re({__forward_ref__:re});function He(e){return e.__forward_ref__=He,e}function xe(e){return Fc(e)?e():e}function Fc(e){return typeof e=="function"&&Object.hasOwn(e,nv)&&e.__forward_ref__===He}function Q(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ls(e){return rv(e,us)}function rv(e,t){return Object.hasOwn(e,t)&&e[t]||null}function ov(e){let t=e?.[us]??null;return t||null}function xc(e){return e&&Object.hasOwn(e,ts)?e[ts]:null}var us=re({\u0275prov:re}),ts=re({\u0275inj:re}),T=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=Q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Lc(e){return e&&!!e.\u0275providers}var Eo=re({\u0275cmp:re}),wo=re({\u0275dir:re}),Vc=re({\u0275pipe:re});var _o=re({\u0275fac:re}),Bn=re({__NG_ELEMENT_ID__:re}),Ef=re({__NG_ENV_ID__:re});function Qt(e){return Bc(e,"@Component"),e[Eo]||null}function jc(e){return Bc(e,"@Directive"),e[wo]||null}function Mf(e){return Bc(e,"@Pipe"),e[Vc]||null}function Bc(e,t){if(e==null)throw new x(-919,!1)}function Kt(e){return typeof e=="string"?e:e==null?"":String(e)}var Tf=re({ngErrorCode:re}),iv=re({ngErrorMessage:re}),sv=re({ngTokenPath:re});function Hc(e,t){return Nf("",-200,t)}function ds(e,t){throw new x(-201,!1)}function Nf(e,t,n){let r=new x(t,e);return r[Tf]=t,r[iv]=e,n&&(r[sv]=n),r}function av(e){return e[Tf]}var Sc;function Af(){return Sc}function Ve(e){let t=Sc;return Sc=e,t}function Uc(e,t,n){let r=ls(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;ds(e,"")}var Hn=globalThis;var cv={},Fn=cv,lv="__NG_DI_FLAG__",Ic=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Ln(n)||0;try{return this.injector.get(t,r&8?null:Fn,r)}catch(o){if(vr(o))return o;throw o}}};function uv(e,t=0){let n=ki();if(n===void 0)throw new x(-203,!1);if(n===null)return Uc(e,void 0,t);{let r=dv(t),o=n.retrieve(e,r);if(vr(o)){if(r.optional)return null;throw o}return o}}function U(e,t=0){return(Af()||uv)(xe(e),t)}function C(e,t){return U(e,Ln(t))}function Ln(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function dv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Mc(e){let t=[];for(let n=0;n<e.length;n++){let r=xe(e[n]);if(Array.isArray(r)){if(r.length===0)throw new x(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=fv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(U(o,i))}else t.push(U(r))}return t}function fv(e){return e[lv]}function ln(e,t){let n=Object.hasOwn(e,_o);return n?e[_o]:null}function Of(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function kf(e){return e.flat(Number.POSITIVE_INFINITY)}function fs(e,t){e.forEach(n=>Array.isArray(n)?fs(n,t):t(n))}function $c(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Rf(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 ps(e,t,n){let r=Ir(e,t);return r>=0?e[r|1]=n:(r=~r,Rf(e,r,t,n)),r}function hs(e,t){let n=Ir(e,t);if(n>=0)return e[n|1]}function Ir(e,t){return pv(e,t,1)}function pv(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 dn={},je=[],So=new T(""),Io=new T("",-1),zc=new T(""),Sr=class{get(t,n=Fn){if(n===Fn){let o=Nf("",-201);throw o.name="\u0275NotFound",o}return n}};function Mr(e){return{\u0275providers:e}}function Pf(...e){return{\u0275providers:Gc(!0,e),\u0275fromNgModule:!0}}function Gc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return fs(t,s=>{let a=s;ns(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ff(o,i),n}function Ff(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Wc(o,i=>{t(i,r)})}}function ns(e,t,n,r){if(e=xe(e),!e)return!1;let o=null,i=xc(e),s=!i&&Qt(e);if(!i&&!s){let c=e.ngModule;if(i=xc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ns(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;fs(i.imports,f=>{ns(f,t,n,r)&&(l||=[],l.push(f))}),l!==void 0&&Ff(l,t)}if(!a){let l=ln(o)||(()=>new o);t({provide:o,useFactory:l,deps:je},o),t({provide:zc,useValue:o,multi:!0},o),t({provide:So,useValue:()=>U(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Wc(c,f=>{t(f,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Wc(e,t){for(let n of e)Lc(n)&&(n=n.\u0275providers),Array.isArray(n)?Wc(n,t):t(n)}var hv=re({provide:String,useValue:re});function Lf(e){return e!==null&&typeof e=="object"&&hv in e}function gv(e){return!!(e&&e.useExisting)}function mv(e){return!!(e&&e.useFactory)}function Vn(e){return typeof e=="function"}function Vf(e){return!!e.useClass}var Mo=new T(""),es={},wf={},wc;function Tr(){return wc===void 0&&(wc=new Sr),wc}var Be=class{},jn=class extends Be{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,Nc(t,s=>this.processProvider(s)),this.records.set(Io,xr(void 0,this)),o.has("environment")&&this.records.set(Be,xr(void 0,this));let i=this.records.get(Mo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(zc,je,{self:!0}))}retrieve(t,n){let r=Ln(n)||0;try{return this.get(t,Fn,r)}catch(o){if(vr(o))return o;throw o}}destroy(){vo(this),this._destroyed=!0;let t=k(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(),k(t)}}onDestroy(t){return vo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){vo(this);let n=At(this),r=Ve(void 0),o;try{return t()}finally{At(n),Ve(r)}}get(t,n=Fn,r){if(vo(this),Object.hasOwn(t,Ef))return t[Ef](this);let o=Ln(r),i,s=At(this),a=Ve(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let f=bv(t)&&ls(t);f&&this.injectableDefInScope(f)?l=xr(Tc(t),es):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?Tr():this.parent;return n=o&8&&n===Fn?null:n,c.get(t,n)}catch(c){let l=av(c);throw l===-200||l===-201?new x(l,null):c}finally{Ve(a),At(s)}}resolveInjectorInitializers(){let t=k(null),n=At(this),r=Ve(void 0),o;try{let i=this.get(So,je,{self:!0});for(let s of i)s()}finally{At(n),Ve(r),k(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=xe(t);let n=Vn(t)?t:xe(t&&t.provide),r=vv(t);if(!Vn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=xr(void 0,es,!0),o.factory=()=>Mc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=k(null);try{if(n.value===wf)throw Hc("");return n.value===es&&(n.value=wf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Cv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{k(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=xe(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 Tc(e){let t=ls(e),n=t!==null?t.factory:ln(e);if(n!==null)return n;if(e instanceof T)throw new x(-204,!1);if(e instanceof Function)return yv(e);throw new x(-204,!1)}function yv(e){if(e.length>0)throw new x(-204,!1);let n=ov(e);return n!==null?()=>n.factory(e):()=>new e}function vv(e){if(Lf(e))return xr(void 0,e.useValue);{let t=qc(e);return xr(t,es)}}function qc(e,t,n){let r;if(Vn(e)){let o=xe(e);return ln(o)||Tc(o)}else if(Lf(e))r=()=>xe(e.useValue);else if(mv(e))r=()=>e.useFactory(...Mc(e.deps||[]));else if(gv(e))r=(o,i)=>U(xe(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=xe(e&&(e.useClass||e.provide));if(_v(e))r=()=>new o(...Mc(e.deps));else return ln(o)||Tc(o)}return r}function vo(e){if(e.destroyed)throw new x(-205,!1)}function xr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _v(e){return!!e.deps}function Cv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function bv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Nc(e,t){for(let n of e)Array.isArray(n)?Nc(n,t):n&&Lc(n)?Nc(n.\u0275providers,t):t(n)}function Nr(e,t){let n;e instanceof jn?(vo(e),n=e):n=new Ic(e);let r,o=At(n),i=Ve(void 0);try{return t()}finally{At(o),Ve(i)}}function jf(){return Af()!==void 0||ki()!=null}var mt=0,N=1,V=2,ve=3,it=4,We=5,Ar=6,Or=7,pe=8,Ot=9,yt=10,ie=11,kr=12,Zc=13,fn=14,Je=15,pn=16,Un=17,kt=18,Rt=19,Yc=20,Wt=21,gs=22,qt=23,Xe=24,$n=25,Pt=26,me=27,Bf=1,Qc=6,zn=7,To=8,Gn=9,de=10;function Jt(e){return Array.isArray(e)&&typeof e[Bf]=="object"}function st(e){return Array.isArray(e)&&e[Bf]===!0}function Kc(e){return(e.flags&4)!==0}function Xt(e){return e.componentOffset>-1}function ms(e){return(e.flags&1)===1}function Ft(e){return!!e.template}function Rr(e){return(e[V]&512)!==0}function Wn(e){return(e[V]&256)===256}var ys=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ys||{});var Jc="svg",Hf="math";function Se(e){for(;Array.isArray(e);)e=e[mt];return e}function Xc(e,t){return Se(t[e])}function at(e,t){return Se(t[e.index])}function vs(e,t){return e.data[t]}function el(e,t){return e[t]}function tl(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ct(e,t){let n=t[e];return Jt(n)?n:n[mt]}function Uf(e){return(e[V]&4)===4}function _s(e){return(e[V]&128)===128}function $f(e){return st(e[ve])}function Lt(e,t){return t==null?null:e[t]}function nl(e){e[Un]=0}function Cs(e){e[V]&1024||(e[V]|=1024,_s(e)&&qn(e))}function zf(e,t){for(;e>0;)t=t[fn],e--;return t}function Pr(e){return!!(e[V]&9216||e[Xe]?.dirty)}function bs(e){e[yt].changeDetectionScheduler?.notify(8),e[V]&64&&(e[V]|=1024),Pr(e)&&qn(e)}function qn(e){e[yt].changeDetectionScheduler?.notify(0);let t=Zt(e);for(;t!==null&&!(t[V]&8192||(t[V]|=8192,!_s(t)));)t=Zt(t)}function Ds(e,t){if(Wn(e))throw new x(911,!1);e[Wt]===null&&(e[Wt]=[]),e[Wt].push(t)}function Gf(e,t){if(e[Wt]===null)return;let n=e[Wt].indexOf(t);n!==-1&&e[Wt].splice(n,1)}function Zt(e){let t=e[ve];return st(t)?t[ve]:t}function rl(e){return e[Or]??=[]}function ol(e){return e.cleanup??=[]}function Wf(e,t,n,r){let o=rl(t);o.push(n),e.firstCreatePass&&ol(e).push(r,o.length-1)}var B={lFrame:ip(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ac=!1;function qf(){return B.lFrame.elementDepthCount}function Zf(){B.lFrame.elementDepthCount++}function il(){B.lFrame.elementDepthCount--}function Yf(){return B.bindingsEnabled}function Qf(){return B.skipHydrationRootTNode!==null}function sl(e){return B.skipHydrationRootTNode===e}function al(){B.skipHydrationRootTNode=null}function j(){return B.lFrame.lView}function fe(){return B.lFrame.tView}function I(e){return B.lFrame.contextLView=e,e[pe]}function M(e){return B.lFrame.contextLView=null,e}function Ie(){let e=cl();for(;e!==null&&e.type===64;)e=e.parent;return e}function cl(){return B.lFrame.currentTNode}function Kf(){let e=B.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Fr(e,t){let n=B.lFrame;n.currentTNode=e,n.isParent=t}function ll(){return B.lFrame.isParent}function Jf(){B.lFrame.isParent=!1}function ul(){return Ac}function Co(e){let t=Ac;return Ac=e,t}function Es(){let e=B.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dl(){return B.lFrame.bindingIndex}function Xf(e){return B.lFrame.bindingIndex=e}function hn(){return B.lFrame.bindingIndex++}function No(e){let t=B.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ep(){return B.lFrame.inI18n}function tp(e,t){let n=B.lFrame;n.bindingIndex=n.bindingRootIndex=e,ws(t)}function np(){return B.lFrame.currentDirectiveIndex}function ws(e){B.lFrame.currentDirectiveIndex=e}function rp(e){let t=B.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function fl(){return B.lFrame.currentQueryIndex}function xs(e){B.lFrame.currentQueryIndex=e}function Dv(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[We]:null}function pl(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Dv(i),o===null||(i=i[fn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=B.lFrame=op();return r.currentTNode=t,r.lView=e,!0}function Ss(e){let t=op(),n=e[N];B.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function op(){let e=B.lFrame,t=e===null?null:e.child;return t===null?ip(e):t}function ip(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 sp(){let e=B.lFrame;return B.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var hl=sp;function Is(){let e=sp();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 ap(e){return(B.lFrame.contextLView=zf(e,B.lFrame.contextLView))[pe]}function vt(){return B.lFrame.selectedIndex}function gn(e){B.lFrame.selectedIndex=e}function Lr(){let e=B.lFrame;return vs(e.tView,e.selectedIndex)}function Ao(){B.lFrame.currentNamespace=Jc}function Oo(){Ev()}function Ev(){B.lFrame.currentNamespace=null}function gl(){return B.lFrame.currentNamespace}var cp=!0;function Ms(){return cp}function Ts(e){cp=e}function Oc(e,t=null,n=null,r){let o=lp(e,t,n,r);return o.resolveInjectorInitializers(),o}function lp(e,t=null,n=null,r,o=new Set){let i=[n||je,Pf(e)],s;return new jn(i,t||Tr(),s||null,o)}var ke=class e{static THROW_IF_NOT_FOUND=Fn;static NULL=new Sr;static create(t,n){if(Array.isArray(t))return Oc({name:""},n,t,"");{let r=t.name??"";return Oc({name:r},t.parent,t.providers,r)}}static \u0275prov=Q({token:e,providedIn:"any",factory:()=>U(Io)});static __NG_ELEMENT_ID__=-1},Re=new T(""),ue=class{static __NG_ELEMENT_ID__=wv;static __NG_ENV_ID__=t=>t},rs=class extends ue{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Wn(this._lView)}onDestroy(t){let n=this._lView;return Ds(n,t),()=>Gf(n,t)}};function wv(){return new rs(j())}var up=!1,dp=new T(""),Zn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new yo(!1);debugTaskTracker=C(dp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new q(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),kc=class extends Ae{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,jf()&&(this.destroyRef=C(ue,{optional:!0})??void 0,this.pendingTasks=C(Zn,{optional:!0})??void 0)}emit(t){let n=k(null);try{super.next(t)}finally{k(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Ee&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Oe=kc;function os(...e){}function ml(e){let t,n;function r(){e=os;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 fp(e){return queueMicrotask(()=>e()),()=>{e=os}}var yl="isAngularZone",bo=yl+"_ID",xv=0,be=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Oe(!1);onMicrotaskEmpty=new Oe(!1);onStable=new Oe(!1);onError=new Oe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=up}=t;if(typeof Zone>"u")throw new x(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,Mv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(yl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new x(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,Sv,os,os);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)}},Sv={};function vl(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 Iv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ml(()=>{e.callbackScheduled=!1,Rc(e),e.isCheckStableRunning=!0,vl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Rc(e)}function Mv(e){let t=()=>{Iv(e)},n=xv++;e._inner=e._inner.fork({name:"angular",properties:{[yl]:!0,[bo]:n,[bo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Tv(c))return r.invokeTask(i,s,a,c);try{return xf(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Sf(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return xf(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Nv(c)&&t(),Sf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Rc(e),vl(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 Rc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function xf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sf(e){e._nesting--,vl(e)}var Do=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Oe;onMicrotaskEmpty=new Oe;onStable=new Oe;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 Tv(e){return pp(e,"__ignore_ng_zone__")}function Nv(e){return pp(e,"__scheduler_tick__")}function pp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var ot=class{_console=console;handleError(t){this._console.error("ERROR",t)}},mn=new T("",{factory:()=>{let e=C(be),t=C(Be),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(ot),n.handleError(r))})}}}),hp={provide:So,useValue:()=>{let e=C(ot,{optional:!0})},multi:!0};function F(e,t){let[n,r,o]=oc(e,t?.equal),i=n,s=i[De];return i.set=r,i.update=o,i.asReadonly=_l.bind(i),i}function _l(){let e=this[De];if(e.readonlyFn===void 0){let t=()=>this();t[De]=e,e.readonlyFn=t}return e.readonlyFn}var ko=new T("",{factory:()=>Av}),Av="ng";var Ns=new T(""),Ro=new T("",{providedIn:"platform",factory:()=>"unknown"});var Po=new T("",{factory:()=>C(Re).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Fo=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Ov}return e})();function Ov(){return new Fo(j(),Ie())}var gt=class{},Lo=new T("",{factory:()=>!0});var Cl=new T(""),As=(()=>{class e{static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new Pc})}return e})(),Pc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}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)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},is=class{[De];constructor(t){this[De]=t}destroy(){this[De].destroy()}};function _t(e,t){let n=t?.injector??C(ke),r=t?.manualCleanup!==!0?n.get(ue):null,o,i=n.get(Fo,null,{optional:!0}),s=n.get(gt);return i!==null?(o=mp(i.view,s,e),r instanceof rs&&r._lView===i.view&&(r=null)):o=Pv(e,n.get(As),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new is(o)}var gp=H(L({},sc),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Co(!1);try{ac(this)}finally{Co(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=k(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],k(e)}}}),kv=H(L({},gp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Nn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Rv=H(L({},gp),{consumerMarkedDirty(){this.view[V]|=8192,qn(this.view),this.notifier.notify(13)},destroy(){if(Nn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[qt]?.delete(this)}});function mp(e,t,n){let r=Object.create(Rv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=yp(r,n),e[qt]??=new Set,e[qt].add(r),r.consumerMarkedDirty(r),r}function Pv(e,t,n){let r=Object.create(kv);return r.fn=yp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function yp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Yn(e){return typeof e=="function"&&e[De]!==void 0}function Os(e){return Yn(e)&&typeof e.set=="function"}var Vr=(()=>{class e{internalPendingTasks=C(Zn);scheduler=C(gt);errorHandler=C(mn);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})();var ta=Symbol("InputSignalNode#UNSET"),Jp=H(L({},ho),{transformFn:void 0,applyValueToInputSignal(e,t){An(e,t)}});function Qo(e){return{toString:e}.toString()}var Z=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(Z||{}),Vs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Xp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var eh=null,rr=(()=>{eh=vp;let e=()=>vp;return e.ngInherit=!0,e})();function Wv(){return eh}function vp(e){return e.type.prototype.ngOnChanges&&(e.setInput=Zv),qv}function qv(){let e=th(this),t=e?.current;if(t){let n=e.previous;if(n===dn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Zv(e,t,n,r,o){let i=this.declaredInputs[r],s=th(e)||Yv(e,{previous:dn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Vs(l&&l.currentValue,n,c===dn),Xp(e,t,o,n)}var Ol="__ngSimpleChanges__";function th(e){return Object.hasOwn(e,Ol)&&e[Ol]||null}function Yv(e,t){return e[Ol]=t}var _p=[];var K=function(e,t=null,n){for(let r=0;r<_p.length;r++){let o=_p[r];o(e,t,n)}};function Qv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Wv()(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 Kv(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:f}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),f!=null&&(e.destroyHooks??=[]).push(n,f)}}function Rs(e,t,n){nh(e,t,3,n)}function Ps(e,t,n,r){(e[V]&3)===n&&nh(e,t,n,r)}function bl(e,t){let n=e[V];(n&3)===t&&(n&=16383,n+=1,e[V]=n)}function nh(e,t,n,r){let o=r!==void 0?e[Un]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Un]+=65536),(a<i||i==-1)&&(Jv(e,n,t,c),e[Un]=(e[Un]&4294901760)+c+2),c++}function Cp(e,t){K(Z.LifecycleHookStart,e,t);let n=k(null);try{t.call(e)}finally{k(n),K(Z.LifecycleHookEnd,e,t)}}function Jv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[V]>>14<e[Un]>>16&&(e[V]&3)===t&&(e[V]+=16384,Cp(a,i)):Cp(a,i)}var Br=-1,Jn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function Xv(e){return(e.flags&8)!==0}function e0(e){return(e.flags&16)!==0}function t0(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];r0(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function n0(e){return e===3||e===4||e===6}function r0(e){return e.charCodeAt(0)===64}function Hr(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?bp(e,n,o,null,t[++r]):bp(e,n,o,null,null))}}return e}function bp(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function rh(e){return e!==Br}function js(e){return e&32767}function o0(e){return e>>16}function Bs(e,t){let n=o0(e),r=t;for(;n>0;)r=r[fn],n--;return r}var kl=!0;function Hs(e){let t=kl;return kl=e,t}var i0=256,oh=i0-1,ih=5,s0=0,Vt={};function a0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,Bn)&&(r=n[Bn]),r==null&&(r=n[Bn]=s0++);let o=r&oh,i=1<<o;t.data[e+(o>>ih)]|=i}function Us(e,t){let n=sh(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,Dl(r.data,e),Dl(t,null),Dl(r.blueprint,null));let o=au(e,t),i=e.injectorIndex;if(rh(o)){let s=js(o),a=Bs(o,t),c=a[N].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Dl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function sh(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function au(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=dh(o),r===null)return Br;if(n++,o=o[fn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Br}function Rl(e,t,n){a0(e,t,n)}function ah(e,t,n){if(n&8||e!==void 0)return e;ds(t,"NodeInjector")}function ch(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ot],i=Ve(void 0);try{return o?o.get(t,r,n&8):Uc(t,r,n&8)}finally{Ve(i)}}return ah(r,t,n)}function lh(e,t,n,r=0,o){if(e!==null){if(t[V]&2048&&!(r&2)){let s=d0(e,t,n,r,Vt);if(s!==Vt)return s}let i=uh(e,t,n,r,Vt);if(i!==Vt)return i}return ch(t,n,r,o)}function uh(e,t,n,r,o){let i=l0(n);if(typeof i=="function"){if(!pl(t,e,r))return r&1?ah(o,n,r):ch(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ds(n);else return s}finally{hl()}}else if(typeof i=="number"){let s=null,a=sh(e,t),c=Br,l=r&1?t[Je][We]:null;for((a===-1||r&4)&&(c=a===-1?au(e,t):t[a+8],c===Br||!Ep(r,!1)?a=-1:(s=t[N],a=js(c),t=Bs(c,t)));a!==-1;){let f=t[N];if(Dp(i,a,f.data)){let g=c0(a,t,n,s,r,l);if(g!==Vt)return g}c=t[a+8],c!==Br&&Ep(r,t[N].data[a+8]===l)&&Dp(i,a,t)?(s=f,a=js(c),t=Bs(c,t)):a=-1}}return o}function c0(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?Xt(a)&&kl:r!=s&&(a.type&3)!==0,l=o&1&&i===a,f=Fs(a,s,n,c,l);return f!==null?Uo(t,s,f,a,o):Vt}function Fs(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,f=i>>20,g=r?a:a+f,y=o?a+f:l;for(let m=g;m<y;m++){let _=s[m];if(m<c&&n===_||m>=c&&_.type===n)return m}if(o){let m=s[c];if(m&&Ft(m)&&m.type===n)return c}return null}function Uo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Jn){let a=i;if(a.resolving)throw Hc("");let c=Hs(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],f,g=a.injectImpl?Ve(a.injectImpl):null,y=pl(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Qv(n,s[n],t)}finally{g!==null&&Ve(g),Hs(c),a.resolving=!1,hl()}}return i}function l0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Bn)?e[Bn]:void 0;return typeof t=="number"?t>=0?t&oh:u0:t}function Dp(e,t,n){let r=1<<e;return!!(n[t+(e>>ih)]&r)}function Ep(e,t){return!(e&2)&&!(e&1&&t)}var yn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return lh(this._tNode,this._lView,t,Ln(r),n)}};function u0(){return new yn(Ie(),j())}function Et(e){return Qo(()=>{let t=e.prototype.constructor,n=t[_o]||Pl(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[_o]||Pl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Pl(e){return Fc(e)?()=>{let t=Pl(xe(e));return t&&t()}:ln(e)}function d0(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[V]&2048&&!Rr(s);){let a=uh(i,s,n,r|2,Vt);if(a!==Vt)return a;r&=-5;let c=i.parent;if(!c){let l=s[Yc];if(l){let f=l.get(n,Vt,r);if(f!==Vt)return f}c=dh(s),s=s[fn]}i=c}return o}function dh(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[We]:null}function en(e){return{token:e.token,providedIn:e.autoProvided===!1?null:"root",factory:e.factory,value:void 0}}function f0(){return Gr(Ie(),j())}function Gr(e,t){return new wt(at(e,t))}var wt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=f0}return e})();function p0(e){return e instanceof wt?e.nativeElement:e}function h0(){return this._results[Symbol.iterator]()}var $s=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Ae}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=kf(t);(this._changesDetected=!Of(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=h0};function fh(e){return(e.flags&128)===128}var cu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(cu||{}),ph=new Map,g0=0;function m0(){return g0++}function y0(e){ph.set(e[Rt],e)}function Fl(e){ph.delete(e[Rt])}var wp="__ngContext__";function Ur(e,t){Jt(t)?(e[wp]=t[Rt],y0(t)):e[wp]=t}function hh(e){return mh(e[kr])}function gh(e){return mh(e[it])}function mh(e){for(;e!==null&&!st(e);)e=e[it];return e}var Ll;function lu(e){Ll=e}function yh(){if(Ll!==void 0)return Ll;if(typeof document<"u")return document;throw new x(210,!1)}var vh="r";var _h="di";var Ch=!1,bh=new T("",{factory:()=>Ch});var xp=new WeakMap;function v0(e,t){if(e==null||typeof e!="object")return;let n=xp.get(e);n||(n=new WeakSet,xp.set(e,n)),n.add(t)}var _0=(e,t,n,r)=>{};function C0(e,t,n,r){_0(e,t,n,r)}function uu(e){return(e.flags&32)===32}var b0=()=>null;function Dh(e,t,n=!1){return b0(e,t,n)}function Eh(e,t){let n=e.contentQueries;if(n!==null){let r=k(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];xs(i),a.contentQueries(2,t[s],s)}}}finally{k(r)}}}function Vl(e,t,n){xs(0);let r=k(null);try{t(e,n)}finally{k(r)}}function wh(e,t,n){if(Kc(t)){let r=k(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{k(r)}}}var Dt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Dt||{});var zs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ss})`}};function $o(e){return e instanceof zs?e.changingThisBreaksApplicationSecurity:e}function xh(e,t){let n=Sh(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ss})`)}return n===t}function Sh(e){return e instanceof zs&&e.getTypeName()||null}var D0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ih(e){return e=String(e),e.match(D0)?e:"unsafe:"+e}function E0(e,t){return e.createText(t)}function w0(e,t,n){e.setValue(t,n)}function Mh(e,t,n){return e.createElement(t,n)}function Qn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Th(e,t,n){e.appendChild(t,n)}function Sp(e,t,n,r,o){r!==null?Qn(e,t,n,r,o):Th(e,t,n)}function Nh(e,t,n,r){e.removeChild(null,t,n,r)}function x0(e,t,n){e.setAttribute(t,"style",n)}function S0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Ah(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&t0(e,t,r),o!==null&&S0(e,t,o),i!==null&&x0(e,t,i)}function na(e){let t=I0();return t?t.sanitize(ys.URL,e)||"":xh(e,"URL")?$o(e):Ih(Kt(e))}function I0(){let e=j();return e&&e[yt].sanitizer}function M0(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 Oh="ng-template";function T0(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&M0(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(du(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 du(e){return e.type===4&&e.value!==Oh}function N0(e,t,n){let r=e.type===4&&!n?Oh:e.value;return t===r}function A0(e,t,n){let r=4,o=e.attrs,i=o!==null?R0(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Ct(r)&&!Ct(c))return!1;if(s&&Ct(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!N0(e,c,n)||c===""&&t.length===1){if(Ct(r))return!1;s=!0}}else if(r&8){if(o===null||!T0(e,o,c,n)){if(Ct(r))return!1;s=!0}}else{let l=t[++a],f=O0(c,o,du(e),n);if(f===-1){if(Ct(r))return!1;s=!0;continue}if(l!==""){let g;if(f>i?g="":g=o[f+1].toLowerCase(),r&2&&l!==g){if(Ct(r))return!1;s=!0}}}}return Ct(r)||s}function Ct(e){return(e&1)===0}function O0(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 P0(t,e)}function k0(e,t,n=!1){for(let r=0;r<t.length;r++)if(A0(e,t[r],n))return!0;return!1}function R0(e){for(let t=0;t<e.length;t++){let n=e[t];if(n0(n))return t}return e.length}function P0(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 Ip(e,t){return e?":not("+t.trim()+")":t}function F0(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!==""&&!Ct(s)&&(t+=Ip(i,o),o=""),r=s,i=i||!Ct(r);n++}return o!==""&&(t+=Ip(i,o)),t}function L0(e){return e.map(F0).join(",")}function V0(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(!Ct(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Me={},jt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(jt||{}),j0;function fu(e,t){return j0(e,t)}var vn=new Set;var hA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var jl=new WeakMap;function kh(e){return e?e[fn]??e:null}var jo=new WeakSet;function B0(e,t,n){let r=jl.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=kh(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],f=c.parentNode;c===t?(r.splice(a,1),jo.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c)):f&&o&&f!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),c.parentNode?.removeChild(c))}}function H0(e,t,n){let r=kh(n),o=jl.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):jl.set(e,[{el:t,declarationView:r}])}var ra=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ra||{}),tn=new T(""),Mp=new Set;function nn(e){Mp.has(e)||(Mp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var pu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),Rh=[0,1,2,3],Ph=(()=>{class e{ngZone=C(be);scheduler=C(gt);errorHandler=C(ot,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){C(tn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&K(Z.AfterRenderHooksStart),this.executing=!0;for(let r of Rh)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&K(Z.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[$n]??=[]).push(n),qn(r),r[V]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(ra.AFTER_NEXT_RENDER,n):n()}static \u0275prov=Q({token:e,providedIn:"root",factory:()=>new e})}return e})(),Gs=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[$n];t&&(this.view[$n]=t.filter(n=>n!==this))}};function hu(e,t){let n=t?.injector??C(ke);return nn("NgAfterNextRender"),$0(e,n,t,!0)}function U0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function $0(e,t,n,r){let o=t.get(pu);o.impl??=t.get(Ph);let i=t.get(tn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(ue):null,a=t.get(Fo,null,{optional:!0}),c=new Gs(o.impl,U0(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var gu=new T("",{factory:()=>{let e=C(Be),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Fh(e,t,n){let r=e.get(gu);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function z0(e,t){let n=e.get(gu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function G0(e,t){let n=e.get(gu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function W0(e,t){for(let[n,r]of t)Fh(e,r.animateFns)}function Tp(e,t,n,r){let o=e?.[Pt]?.enter;t!==null&&o&&o.has(n.index)&&W0(r,o)}function Np(e,t,n,r){try{n.get(Io)}catch{return r(!1)}let o=e?.[Pt];o?.enter?.has(t.index)&&z0(n,o.enter.get(t.index).animateFns);let i=q0(e,t,o);if(i.size===0){let s=!1;if(e){let a=[];oa(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&vn.add(e[Rt]),Fh(n,()=>Z0(e,t,o||void 0,i,r),o||void 0)}function q0(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[N].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent}}return r}function Z0(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l)}n.detachedLeaveAnimationFns=void 0}if(e&&oa(e,t,i),i.length>0){let s=n||e?.[Pt];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),Q0(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&vn.delete(e[Rt]),o(!0)})}else e&&vn.delete(e[Rt]),o(!1)}function oa(e,t,n){if(t.type&12){let o=e[t.index];if(st(o))for(let i=de;i<o.length;i++){let s=o[i];s[N].type===2&&Y0(s,n)}}let r=t.child;for(;r;)oa(e,r,n),r=r.next}function Y0(e,t){let n=e[Pt];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s)}let r=e[N].firstChild;for(;r;)oa(e,r,t),r=r.next}function Q0(e,t,n){t.then(()=>{e[Pt]?.running===t&&(e[Pt].running=void 0,vn.delete(e[Rt])),n(!0)})}function jr(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;st(o)?c=o:Jt(o)&&(l=!0,o=o[mt]);let f=Se(o);e===0&&r!==null?(Tp(a,r,i,n),s==null?Th(t,r,f):Qn(t,r,f,s||null,!0)):e===1&&r!==null?(Tp(a,r,i,n),Qn(t,r,f,s||null,!0),B0(i,f,a)):e===2?(a?.[Pt]?.leave?.has(i.index)&&H0(i,f,a),jo.delete(f),Np(a,i,n,g=>{if(jo.has(f)){jo.delete(f);return}Nh(t,f,l,g)})):e===3&&(jo.delete(f),Np(a,i,n,()=>{t.destroyNode(f)})),c!=null&&l_(t,e,n,c,i,r,s)}}function K0(e,t){Lh(e,t),t[mt]=null,t[We]=null}function J0(e,t,n,r,o,i){r[mt]=o,r[We]=t,sa(e,r,n,1,o,i)}function Lh(e,t){t[yt].changeDetectionScheduler?.notify(9),sa(e,t,t[ie],2,null,null)}function X0(e){let t=e[kr];if(!t)return El(e[N],e);for(;t;){let n=null;if(Jt(t))n=t[kr];else{let r=t[de];r&&(n=r)}if(!n){for(;t&&!t[it]&&t!==e;)Jt(t)&&El(t[N],t),t=t[ve];t===null&&(t=e),Jt(t)&&El(t[N],t),n=t&&t[it]}t=n}}function mu(e,t){let n=e[Gn],r=n.indexOf(t);n.splice(r,1)}function ia(e,t){if(Wn(t))return;let n=t[ie];n.destroyNode&&sa(e,t,n,3,null,null),X0(t)}function El(e,t){if(Wn(t))return;let n=k(null);try{t[V]&=-129,t[V]|=256,t[Xe]&&Nn(t[Xe]),t_(e,t),e_(e,t),t[N].type===1&&t[ie].destroy();let r=t[pn];if(r!==null&&st(t[ve])){r!==t[ve]&&mu(r,t);let o=t[kt];o!==null&&o.detachView(e)}Fl(t)}finally{k(n)}}function e_(e,t){let n=e.cleanup,r=t[Or];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[Or]=null);let o=t[Wt];if(o!==null){t[Wt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[qt];if(i!==null){t[qt]=null;for(let s of i)s.destroy()}}function t_(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 Jn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];K(Z.LifecycleHookStart,a,c);try{c.call(a)}finally{K(Z.LifecycleHookEnd,a,c)}}else{K(Z.LifecycleHookStart,o,i);try{i.call(o)}finally{K(Z.LifecycleHookEnd,o,i)}}}}}function n_(e,t,n){if(t===null)throw new x(510,!1);return r_(e,t.parent,n)}function r_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[mt];if(Xt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Dt.None||o===Dt.Emulated)return null}return at(r,n)}function o_(e,t,n){return s_(e,t,n)}function i_(e,t,n){return e.type&40?at(e,n):null}var s_=i_,Ap;function yu(e,t,n,r){let o=n_(e,r,t),i=t[ie],s=r.parent||t[We],a=o_(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Sp(i,o,n[c],a,!1);else Sp(i,o,n,a,!1);Ap!==void 0&&Ap(i,r,t,n,o)}function Bo(e,t){if(t!==null){let n=t.type;if(n&3)return at(t,e);if(n&4)return Bl(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Bo(e,r);{let o=e[t.index];return st(o)?Bl(-1,o):Se(o)}}else{if(n&128)return Bo(e,t.next);if(n&32)return fu(t,e)()||Se(e[t.index]);{let r=Vh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Zt(e[Je]);return Bo(o,r)}else return Bo(e,t.next)}}}return null}function Vh(e,t){if(t!==null){let r=e[Je][We],o=t.projection;return r.projection[o]}return null}function Bl(e,t){let n=de+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return Bo(r,o)}return t[zn]}function vu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ot];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&Ur(Se(c),r),n.flags|=2),!uu(n))if(l&8)vu(e,t,n.child,r,o,i,!1),jr(t,e,a,o,c,n,i,r);else if(l&32){let f=fu(n,r),g;for(;g=f();)jr(t,e,a,o,g,n,i,r);jr(t,e,a,o,c,n,i,r)}else l&16?c_(e,t,r,n,o,i):jr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function sa(e,t,n,r,o,i){e.type===3?a_(n,r,t,o,i):vu(n,r,e.firstChild,t,o,i,!1)}function a_(e,t,n,r,o){let s=n[N].firstChild,a=s.next,c=Se(n[s.index]),l=Se(n[a.index]),f=a.index+1,g=n[f];if(t===1||t===0)r!==null&&(g&&g.hasChildNodes()?Qn(e,r,g,o,!0):(Qn(e,r,c,o,!0),Qn(e,r,l,o,!0)));else if(t===2){if(g||(g=document.createDocumentFragment(),n[f]=g),c&&c.parentNode===g)return;let y=c;for(;y!==null;){let m=y.nextSibling;if(g.appendChild(y),y===l)break;y=m}}}function c_(e,t,n,r,o,i){let s=n[Je],c=s[We].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let f=c[l];jr(t,e,n[Ot],o,f,r,i,n)}else{let l=c,f=s[ve];fh(r)&&(l.flags|=128),vu(e,t,l,f,o,i,!0)}}function l_(e,t,n,r,o,i,s){let a=r[zn],c=Se(r);if(a!==c&&jr(t,e,n,i,a,o,s),(r[V]&4)===0)for(let l=de;l<r.length;l++){let f=r[l];sa(f[N],f,e,t,i,a)}}function u_(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:jt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=jt.Important),e.setStyle(n,r,o,i))}}function _u(e,t,n,r,o,i,s,a,c,l,f){let g=me+r,y=g+o,m=d_(g,y),_=typeof l=="function"?l():l;return m[N]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,g),bindingStartIndex:g,expandoStartIndex:y,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:_,incompleteFirstPass:!1,ssrId:f}}function d_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Me);return n}function f_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=_u(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Cu(e,t,n,r,o,i,s,a,c,l,f){let g=t.blueprint.slice();return g[mt]=o,g[V]=r|4|128|8|64|1024,(l!==null||e&&e[V]&2048)&&(g[V]|=2048),nl(g),g[ve]=g[fn]=e,g[pe]=n,g[yt]=s||e&&e[yt],g[ie]=a||e&&e[ie],g[Ot]=c||e&&e[Ot]||null,g[We]=i,g[Rt]=m0(),g[Ar]=f,g[Yc]=l,g[Je]=t.type==2?e[Je]:g,g}function p_(e,t,n){let r=at(t,e),o=f_(n),i=e[yt].rendererFactory,s=bu(e,Cu(e,o,null,jh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function jh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Bh(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 bu(e,t){return e[kr]?e[Zc][it]=t:e[kr]=t,e[Zc]=t,t}function h(e=1){Hh(fe(),j(),vt()+e,!1)}function Hh(e,t,n,r){if(!r)if((t[V]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Rs(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ps(t,i,0,n)}gn(n)}var Ko=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ko||{});function Xn(e,t,n,r){let o=k(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ko.SignalBased)!==0&&(c=t[i][De]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Xp(t,c,i,r)}finally{k(o)}}function Uh(e,t,n,r,o){let i=vt(),s=r&2;try{gn(-1),s&&t.length>me&&Hh(e,t,me,!1);let a=s?Z.TemplateUpdateStart:Z.TemplateCreateStart;K(a,o,n),n(r,o)}finally{gn(i);let a=s?Z.TemplateUpdateEnd:Z.TemplateCreateEnd;K(a,o,n)}}function $h(e,t,n){__(e,t,n),(n.flags&64)===64&&C_(e,t,n)}function Du(e,t,n=at){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function h_(e,t,n,r){let i=r.get(bh,Ch)||n===Dt.ShadowDom||n===Dt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return g_(s),s}function g_(e){m_(e)}var m_=()=>null;function y_(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function zh(e,t,n,r,o,i){let s=t[N];if(Eu(e,s,t,n,r)){Xt(e)&&v_(t,e.index);return}e.type&3&&(n=y_(n)),Gh(e,t,n,r,o,i)}function Gh(e,t,n,r,o,i){if(e.type&3){let s=at(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function v_(e,t){let n=ct(t,e);n[V]&16||(n[V]|=64)}function __(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Xt(n)&&p_(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Us(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Uo(t,e,s,n);if(Ur(c,t),i!==null&&x_(t,s-r,c,a,n,i),Ft(a)){let l=ct(n.index,t);l[pe]=Uo(t,e,s,n)}}}function C_(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=np();try{gn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ws(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&b_(c,l)}}finally{gn(-1),ws(s)}}function b_(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function D_(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];k0(t,i.selectors,!1)&&(r??=[],Ft(i)?r.unshift(i):r.push(i))}return r}function E_(e,t,n,r,o,i){let s=at(e,t);w_(t[ie],s,i,e.value,n,r,o)}function w_(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else{let a=s==null?Kt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function x_(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Xn(r,n,c,l)}}function Wh(e,t,n,r,o){let i=me+n,s=t[N],a=o(s,t,e,r,n);t[i]=a,Fr(e,!0);let c=e.type===2;return c?(Ah(t[ie],a,e),(qf()===0||ms(e))&&Ur(a,t),Zf()):Ur(a,t),Ms()&&(!c||!uu(e))&&yu(s,t,a,e),e}function qh(e){let t=e;return ll()?Jf():(t=t.parent,Fr(t,!1)),t}function S_(e,t){let n=e[Ot];if(!n)return;let r;try{r=n.get(mn,null)}catch{r=null}r?.(t)}function Eu(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],f=s[c+1],g=t.data[l];Xn(g,n[l],f,o),a=!0}if(i)for(let c of i){let l=n[c],f=t.data[c];Xn(f,l,r,o),a=!0}return a}function I_(e,t,n,r,o,i){let s=null,a=null,c=null,l=!1,f=e.directiveToIndex.get(r.type);if(typeof f=="number"?s=f:[s,a,c]=f,a!==null&&c!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,o)){let g=e.hostDirectiveInputs[o];for(let y=0;y<g.length;y+=2){let m=g[y];if(m>=a&&m<=c){let _=t.data[m],w=g[y+1];Xn(_,n[m],w,i),l=!0}else if(m>c)break}}return s!==null&&Object.hasOwn(r.inputs,o)&&(Xn(r,n[s],o,i),l=!0),l}function M_(e,t){let n=ct(t,e),r=n[N];T_(r,n);let o=n[mt];o!==null&&n[Ar]===null&&(n[Ar]=Dh(o,n[Ot])),K(Z.ComponentStart);try{wu(r,n,n[pe])}finally{K(Z.ComponentEnd,n[pe])}}function T_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function wu(e,t,n){Ss(t);try{let r=e.viewQuery;r!==null&&Vl(1,r,n);let o=e.template;o!==null&&Uh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[kt]?.finishViewCreation(e),e.staticContentQueries&&Eh(e,t),e.staticViewQueries&&Vl(2,e.viewQuery,n);let i=e.components;i!==null&&N_(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[V]&=-5,Is()}}function N_(e,t){for(let n=0;n<t.length;n++)M_(e,t[n])}function aa(e,t,n,r){let o=k(null);try{let i=t.tView,a=e[V]&4096?4096:16,c=Cu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[pn]=l;let f=e[kt];return f!==null&&(c[kt]=f.createEmbeddedView(i)),wu(i,c,n),c}finally{k(o)}}function zo(e,t){return!t||t.firstChild===null||fh(e)}function Go(e,t,n,r,o=!1){if(e.type===3){let i=e.firstChild,s=i.next,a=Se(t[i.index]),c=Se(t[s.index]),l=a;for(;l!==null&&(r.push(l),l!==c);)l=l.nextSibling;return r}for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];if(i!==null)if(st(i)){let a=i[zn];a!==i[mt]&&r.push(Se(i)),i[V]&4||Zh(i,r),r.push(a)}else r.push(Se(i));let s=n.type;if(s&8)Go(e,t,n.child,r);else if(s&32){let a=fu(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Vh(t,n);if(Array.isArray(a))r.push(...a);else{let c=Zt(t[Je]);Go(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Zh(e,t){for(let n=de;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&Go(r[N],r,o,t)}}function Yh(e){if(e[$n]!==null){for(let t of e[$n])t.impl.addSequence(t);e[$n].length=0}}var Qh=[];function A_(e){return e[Xe]??O_(e)}function O_(e){let t=Qh.pop()??Object.create(R_);return t.lView=e,t}function k_(e){e.lView[Xe]!==e&&(e.lView=null,Qh.push(e))}var R_=H(L({},Mn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{qn(e.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function P_(e){let t=e[Xe]??Object.create(F_);return t.lView=e,t}var F_=H(L({},Mn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Zt(e.lView);for(;t&&!Kh(t[N]);)t=Zt(t);t&&Cs(t)},consumerOnSignalRead(){this.lView[Xe]=this}});function Kh(e){return e.type!==2}function Jh(e){if(e[qt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[qt])if(r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()),e[qt]===null))return;t=n&&!!(e[V]&8192)}}var L_=100;function Xh(e,t=0){let r=e[yt].rendererFactory,o=!1;o||r.begin?.();try{V_(e,t)}finally{o||r.end?.()}}function V_(e,t){let n=ul();try{Co(!0),Hl(e,t);let r=0;for(;Pr(e);){if(r===L_)throw new x(103,!1);r++,Hl(e,1)}}finally{Co(n)}}function j_(e,t,n,r){if(Wn(t))return;let o=t[V],i=!1,s=!1;Ss(t);let a=!0,c=null,l=null;i||(Kh(e)?(l=A_(t),c=Tn(l)):Mi()===null?(a=!1,l=P_(t),c=Tn(l)):t[Xe]&&(Nn(t[Xe]),t[Xe]=null));try{nl(t),Xf(e.bindingStartIndex),n!==null&&Uh(e,t,n,2,r);let f=(o&3)===3;if(!i)if(f){let m=e.preOrderCheckHooks;m!==null&&Rs(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ps(t,m,0,null),bl(t,0)}if(s||B_(t),Jh(t),eg(t,0),e.contentQueries!==null&&Eh(e,t),!i)if(f){let m=e.contentCheckHooks;m!==null&&Rs(t,m)}else{let m=e.contentHooks;m!==null&&Ps(t,m,1),bl(t,1)}U_(e,t);let g=e.components;g!==null&&ng(t,g,0);let y=e.viewQuery;if(y!==null&&Vl(2,y,r),!i)if(f){let m=e.viewCheckHooks;m!==null&&Rs(t,m)}else{let m=e.viewHooks;m!==null&&Ps(t,m,2),bl(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[gs]){for(let m of t[gs])m();t[gs]=null}i||(Yh(t),t[V]&=-73)}catch(f){throw i||qn(t),f}finally{l!==null&&(mr(l,c),a&&k_(l)),Is()}}function eg(e,t){for(let n=hh(e);n!==null;n=gh(n))for(let r=de;r<n.length;r++){let o=n[r];tg(o,t)}}function B_(e){for(let t=hh(e);t!==null;t=gh(t)){if(!(t[V]&2))continue;let n=t[Gn];for(let r=0;r<n.length;r++){let o=n[r];Cs(o)}}}function H_(e,t,n){K(Z.ComponentStart);let r=ct(t,e);try{tg(r,n)}finally{K(Z.ComponentEnd,r[pe])}}function tg(e,t){_s(e)&&Hl(e,t)}function Hl(e,t){let r=e[N],o=e[V],i=e[Xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&po(i)),s||=!1,i&&(i.dirty=!1),e[V]&=-9217,s)j_(r,e,r.template,e[pe]);else if(o&8192){let a=k(null);try{Jh(e),eg(e,1);let c=r.components;c!==null&&ng(e,c,1),Yh(e)}finally{k(a)}}}function ng(e,t,n){for(let r=0;r<t.length;r++)H_(e,t[r],n)}function U_(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)gn(~o);else{let i=o,s=n[++r],a=n[++r];tp(s,i);let c=t[i];K(Z.HostBindingsUpdateStart,c);try{a(2,c)}finally{K(Z.HostBindingsUpdateEnd,c)}}}}finally{gn(-1)}}function xu(e,t){let n=ul()?64:1088;for(e[yt].changeDetectionScheduler?.notify(t);e;){e[V]|=n;let r=Zt(e);if(Rr(e)&&!r)return e;e=r}return null}function rg(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function og(e,t){let n=de+t;if(n<e.length)return e[n]}function ca(e,t,n,r=!0){let o=t[N];if($_(o,t,e,n),r){let s=Bl(n,e),a=t[ie],c=a.parentNode(e[zn]);c!==null&&J0(o,e[We],a,t,c,s)}let i=t[Ar];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function ig(e,t){let n=Wo(e,t);return n!==void 0&&ia(n[N],n),n}function Wo(e,t){if(e.length<=de)return;let n=de+t,r=e[n];if(r){let o=r[pn];o!==null&&o!==e&&mu(o,r),t>0&&(e[n-1][it]=r[it]);let i=xo(e,de+t);K0(r[N],r);let s=i[kt];s!==null&&s.detachView(i[N]),r[ve]=null,r[it]=null,r[V]&=-129}return r}function $_(e,t,n,r){let o=de+r,i=n.length;r>0&&(n[o-1][it]=t),r<i-de?(t[it]=n[o],$c(n,de+r,t)):(n.push(t),t[it]=null),t[ve]=n;let s=t[pn];s!==null&&n!==s&&sg(s,t);let a=t[kt];a!==null&&a.insertView(e),bs(t),t[V]|=128}function sg(e,t){let n=e[Gn],r=t[ve];if(Jt(r))e[V]|=2;else{let o=r[ve][Je];t[Je]!==o&&(e[V]|=2)}n===null?e[Gn]=[t]:n.push(t)}var _n=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[N];return Go(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[pe]}set context(t){this._lView[pe]=t}get destroyed(){return Wn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ve];if(st(t)){let n=t[To],r=n?n.indexOf(this):-1;r>-1&&(Wo(t,r),xo(n,r))}this._attachedToViewContainer=!1}ia(this._lView[N],this._lView)}onDestroy(t){Ds(this._lView,t)}markForCheck(){xu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[V]&=-129}reattach(){bs(this._lView),this._lView[V]|=128}detectChanges(){this._lView[V]|=1024,Xh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Rr(this._lView),n=this._lView[pn];n!==null&&!t&&mu(n,this._lView),Lh(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=t;let n=Rr(this._lView),r=this._lView[pn];r!==null&&!n&&sg(r,this._lView),bs(this._lView)}};function Su(e){return Pr(e._lView)||!!(e._lView[V]&64)}function Iu(e){Cs(e._lView)}var $r=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=z_;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=aa(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new _n(i)}}return e})();function z_(){return Mu(Ie(),j())}function Mu(e,t){return e.type&4?new $r(t,e,Gr(e,t)):null}function la(e,t,n,r,o){let i=e.data[t];if(i===null)i=G_(e,t,n,r,o),ep()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Kf();i.injectorIndex=s===null?-1:s.injectorIndex}return Fr(i,!0),i}function G_(e,t,n,r,o){let i=cl(),s=ll(),a=s?i:i&&i.parent,c=e.data[t]=q_(e,a,n,t,r,o);return W_(e,c,i,s),c}function W_(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function q_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Qf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:gl(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Z_(e){let t=e[Qc]??[],r=e[ve][ie],o=[];for(let i of t)i.data[_h]!==void 0?o.push(i):Y_(i,r);e[Qc]=o}function Y_(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[vh];for(;n<o;){let i=r.nextSibling;Nh(t,r,!1),r=i,n++}}}var Q_=()=>null,K_=()=>null;function Ul(e,t){return Q_(e,t)}function ag(e,t,n){return K_(e,t,n)}var cg=class{},er=class{},Bt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>J_()};function J_(){let e=j(),t=Ie(),n=ct(t.index,e);return(Jt(n)?n:e)[ie]}var lg=(()=>{class e{static \u0275prov=Q({token:e,providedIn:"root",factory:()=>null})}return e})();function ug(e){return e.debugInfo?.className||e.type.name||null}var Ls={},Ws=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Ls,r);return o!==Ls||n===Ls?o:this.parentInjector.get(t,n,r)}};function Tu(e,t,n){return e[t]=n}function X_(e,t){return e[t]}function et(e,t,n){if(n===Me)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Nu(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function eC(e,t,n,r,o){let i=Nu(e,t,n,r);return et(e,t+2,o)||i}function Kn(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&v0(o,i);let s=Xt(e)?ct(e.index,t):t;xu(s,5);let a=t[pe],c=Op(t,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Op(t,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Op(e,t,n,r){let o=k(null);try{return K(Z.OutputStart,t,n),n(r)!==!1}catch(i){return S_(e,i),!1}finally{K(Z.OutputEnd,t,n),k(o)}}function Au(e,t,n,r,o,i,s,a){let c=ms(e),l=!1,f=null;if(!r&&c&&(f=nC(t,n,i,e.index)),f!==null){let g=f.__ngLastListenerFn__||f;g.__ngNextListenerFn__=s,f.__ngLastListenerFn__=s,l=!0}else{let g=at(e,n),y=r?r(g):g;C0(n,y,i,a),r||(a.__ngNativeEl__=g);let m=o.listen(y,i,a);if(!tC(i)){let _=r?w=>r(Se(w[e.index])):e.index;dg(_,t,n,i,a,m,!1)}}return l}function tC(e){return e.startsWith("animation")||e.startsWith("transition")}function nC(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[Or],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function dg(e,t,n,r,o,i,s){let a=t.firstCreatePass?ol(t):null,c=rl(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function kp(e,t,n,r,o){let i=null,s=null,a=null,c=!1,l=e.directiveToIndex.get(n.type);if(typeof l=="number"?i=l:[i,s,a]=l,s!==null&&a!==null&&e.hostDirectiveOutputs&&Object.hasOwn(e.hostDirectiveOutputs,r)){let f=e.hostDirectiveOutputs[r];for(let g=0;g<f.length;g+=2){let y=f[g];if(y>=s&&y<=a)c=!0,qs(e,t,y,f[g+1],r,o);else if(y>a)break}}return Object.hasOwn(n.outputs,r)&&(c=!0,qs(e,t,i,r,r,o)),c}function qs(e,t,n,r,o,i){let s=t[n],a=t[N],l=a.data[n].outputs[r],g=s[l].subscribe(i);dg(e.index,a,t,o,i,g,!0)}function z(){rC()}function rC(){let e=j(),t=fe(),n=Ie();if(t.firstCreatePass&&iC(t,n),n.controlDirectiveIndex===-1)return;nn("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Zs(e,t,n))}function G(){oC()}function oC(){let e=j(),t=fe(),n=Lr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Zs(e,t,n))}var Zs=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return at(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];kp(this.tNode,this.lView,r,t,Kn(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];kp(this.tNode,this.lView,r,n,Kn(this.tNode,this.lView,t))}listenToDom(t,n){Au(this.tNode,this.tView,this.lView,void 0,this.lView[ie],t,n,Kn(this.tNode,this.lView,n))}setInputOnDirectives(t,n,r){let o=this.tNode.inputs?.[t],i=this.tNode.hostDirectiveInputs?.[t];if(!o&&!i)return!1;let s=!1;if(o)for(let a of o){if(a===this.tNode.controlDirectiveIndex)continue;let c=this.lView[a],l=this.tView.data[a];(!r||r(Pp(c,l,t)))&&(Xn(l,c,t,n),s=!0)}if(i)for(let a=0;a<i.length;a+=2){let c=i[a];if(c===this.tNode.controlDirectiveIndex)continue;let l=this.lView[c],f=i[a+1],g=this.tView.data[c];(!r||r(Pp(l,g,t)))&&(Xn(g,l,f,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";I_(this.tNode,this.tView,this.lView,n,r,t)}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===!0}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=!0;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=Rp(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=!0}let s=Rp(i.directive);s!==null&&r.push(...s)}}}return n}};function Rp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function Pp(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,o]=t.inputs[n];if((o&Ko.SignalBased)!==0){let s=e[r][De];return s.value===ta?void 0:s.value}return e[r]}function iC(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}sC(e,t)}function sC(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Fp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Fp(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let c=i[a];for(let l=0;l<s.length;l+=2){let f=s[l];if(c===f)for(let g of t.directiveToIndex.values()){if(!Array.isArray(g))continue;let[y,m,_]=g;if(c>=m&&c<=_)return t.flags|=o,t.customControlIndex=y,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function Fp(e,t){return aC(e,t)&&cC(e,t+"Change")}function aC(e,t){return t in e.inputs}function cC(e,t){return t in e.outputs}var $l=Symbol("BINDING");var or=new T("");function Ys(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=cs(o,a);else if(i==2){let c=a,l=t[++s];r=cs(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Y(e,t=0){let n=j();if(n===null)return U(e,t);let r=Ie();return lh(r,n,xe(e),t)}function lC(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let f of s)if(f.resolveHostDirectives!==null){[a,c,l]=f.resolveHostDirectives(s);break}fC(e,t,n,a,i,c,l)}i!==null&&r!==null&&uC(n,r,i)}function uC(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new x(-301,!1);r.push(t[o],i)}}function dC(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function fC(e,t,n,r,o,i,s){let a=r.length,c=null;for(let y=0;y<a;y++){let m=r[y];c===null&&Ft(m)&&(c=m,dC(e,n,y)),Rl(Us(n,t),e,m.type)}vC(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let y=0;y<a;y++){let m=r[y];m.providersResolver&&m.providersResolver(m)}let l=!1,f=!1,g=Bh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let m=r[y];if(n.mergedAttrs=Hr(n.mergedAttrs,m.hostAttrs),hC(e,n,t,g,m),yC(g,m,o),s!==null&&s.has(m)){let[w,O]=s.get(m);n.directiveToIndex.set(m.type,[g,w+n.directiveStart,O+n.directiveStart])}else(i===null||!i.has(m))&&n.directiveToIndex.set(m.type,g);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let _=m.type.prototype;!l&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!f&&(_.ngOnChanges||_.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),f=!0),g++}pC(e,n,i)}function pC(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Lp(0,t,o,r),Lp(1,t,o,r),jp(t,r,!1);else{let i=n.get(o);Vp(0,t,i,r),Vp(1,t,i,r),jp(t,r,!0)}}}function Lp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),fg(t,i)}}function Vp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),fg(t,s)}}function fg(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function jp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||du(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&Object.hasOwn(o,c)){let l=o[c];for(let f of l)if(f===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&Object.hasOwn(i,c)){let l=i[c];for(let f=0;f<l.length;f+=2)if(l[f]===t){s??=[],s.push(l[f+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function hC(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=ln(o.type,!0)),s=new Jn(i,Ft(o),Y,null);e.blueprint[r]=s,n[r]=s,gC(e,t,r,Bh(e,n,o.hostVars,Me),o)}function gC(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;mC(s)!=a&&s.push(a),s.push(n,r,i)}}function mC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function yC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ft(t)&&(n[""]=e)}}function vC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function pg(e,t,n,r,o,i,s,a){let c=t[N],l=c.consts,f=Lt(l,s),g=la(c,e,n,r,f);return i&&lC(c,t,g,Lt(l,a),o),g.mergedAttrs=Hr(g.mergedAttrs,g.attrs),g.attrs!==null&&Ys(g,g.attrs,!1),g.mergedAttrs!==null&&Ys(g,g.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,g),g}function hg(e,t){Kv(e,t),Kc(t)&&e.queries.elementEnd(t)}function _C(e,t,n,r,o,i){let s=t.consts,a=Lt(s,o),c=la(t,e,n,r,a);if(c.mergedAttrs=Hr(c.mergedAttrs,c.attrs),i!=null){let l=Lt(s,i);c.localNames=[];for(let f=0;f<l.length;f+=2)c.localNames.push(l[f],-1)}return c.attrs!==null&&Ys(c,c.attrs,!1),c.mergedAttrs!==null&&Ys(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}var gg=typeof ShadowRoot<"u",CC=typeof Document<"u";function bC(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ko.SignalBased)!==0};return o&&(i.transform=o),i})}function DC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function EC(e,t,n){let r=t instanceof Be?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ws(n,r):n}function wC(e){let t=e.get(er,null);if(t===null)throw new x(407,!1);let n=e.get(lg,null),r=e.get(gt,null),o=e.get(tn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function xC(e,t,n){let r=mg(e);return Mh(t,r,r==="svg"?Jc:r==="math"?Hf:n)}function SC(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new x(905,!1)}function mg(e){return(e.selectors[0][0]||"div").toLowerCase()}var tr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=bC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=DC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=L0(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s,a){K(Z.DynamicComponentStart);let c=k(null);try{let l=this.componentDef,f=EC(l,o||this.ngModule,t),g=wC(f),y=g.tracingService;return y&&y.componentCreate?y.componentCreate(ug(l),()=>this.createComponentRef(g,f,n,r,i,s,a)):this.createComponentRef(g,f,n,r,i,s,a)}finally{k(c)}}createComponentRef(t,n,r,o,i,s,a){let c=this.componentDef,l=IC(o,c,s,i),f=t.rendererFactory.createRenderer(null,c),g=o?h_(f,o,c.encapsulation,n):xC(c,f,a??null);SC(g);let y=n.get(or,null),m=MC(g,()=>n.get(Re,null)??yh());y&&y.addHost(m);let _=s?.some(Bp)||i?.some(P=>typeof P!="function"&&P.bindings.some(Bp)),w=Cu(null,l,null,512|jh(c),null,null,t,f,n,null,Dh(g,n,!0));y&&gg&&m instanceof ShadowRoot&&Ds(w,()=>{y.removeHost(m)}),w[me]=g,Ss(w);let O=null;try{let P=pg(me,w,2,"#host",()=>l.directiveRegistry,!0,0);Ah(f,g,P),Ur(g,w),$h(l,w,P),wh(l,P,w),hg(l,P),r!==void 0&&NC(P,this.ngContentSelectors,r),O=ct(P.index,w),w[pe]=O[pe],wu(l,w,null)}catch(P){throw O!==null&&Fl(O),Fl(w),P}finally{K(Z.DynamicComponentEnd),Is()}return new Qs(this.componentType,w,!!_)}};function IC(e,t,n,r){let o=e?["ng-version","22.1.6"]:V0(t.selectors[0]),i=null,s=null,a=0;if(n)for(let f of n)a+=f[$l].requiredVars,f.create&&(f.targetIdx=0,(i??=[]).push(f)),f.update&&(f.targetIdx=0,(s??=[]).push(f));if(r)for(let f=0;f<r.length;f++){let g=r[f];if(typeof g!="function")for(let y of g.bindings){a+=y[$l].requiredVars;let m=f+1;y.create&&(y.targetIdx=m,(i??=[]).push(y)),y.update&&(y.targetIdx=m,(s??=[]).push(y))}}let c=[t];if(r)for(let f of r){let g=typeof f=="function"?f:f.type,y=jc(g);c.push(y)}return _u(0,null,TC(i,s),1,a,c,null,null,null,[o],null)}function MC(e,t){let n=e.getRootNode?.();return CC&&n instanceof Document?n.head:n&&gg&&n instanceof ShadowRoot?n:t().head}function TC(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function Bp(e){let t=e[$l].kind;return t==="input"||t==="twoWay"}var Qs=class extends cg{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=vs(n[N],me),this.location=Gr(this._tNode,n),this.instance=ct(this._tNode.index,n)[pe],this.hostView=this.changeDetectorRef=new _n(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Eu(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=ct(r.index,o);xu(s,1)}get injector(){return new yn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function NC(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Jo=(()=>{class e{static __NG_ELEMENT_ID__=AC}return e})();function AC(){let e=Ie();return yg(e,j())}var zl=class e extends Jo{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Gr(this._hostTNode,this._hostLView)}get injector(){return new yn(this._hostTNode,this._hostLView)}get parentInjector(){let t=au(this._hostTNode,this._hostLView);if(rh(t)){let n=Bs(t,this._hostLView),r=js(t),o=n[N].data[r+8];return new yn(o,n)}else return new yn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Hp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-de}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Ul(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,zo(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let f=new tr(Qt(t)),g=r||this.parentInjector;if(!i&&f.ngModule==null){let P=this.parentInjector.get(Be,null);P&&(i=P)}let y=Qt(f.componentType??{}),m=Ul(this._lContainer,y?.id??null),_=m?.firstChild??null,w=f.create(g,o,_,i,s,a,this._getHostElementNamespace());return this.insertImpl(w.hostView,c,zo(this._hostTNode,m)),w}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[We];return t!==null&&t.type&2&&typeof t.value=="string"&&t.value.toLowerCase()==="foreignobject"?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if($f(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ve],l=new e(c,c[We],c[ve]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return ca(s,o,i,r),t.attachToViewContainerRef(),$c(wl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Hp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Wo(this._lContainer,n);r&&(xo(wl(this._lContainer),n),ia(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=Wo(this._lContainer,n);return r&&xo(wl(this._lContainer),n)!=null?new _n(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Hp(e){return e[To]}function wl(e){return e[To]||(e[To]=[])}function yg(e,t){let n,r=t[e.index];return st(r)?n=r:(n=rg(r,t,null,e),t[e.index]=n,bu(t,n)),kC(n,t,e,r),new zl(n,e,t)}function OC(e,t){let n=e[ie],r=n.createComment(""),o=at(t,e),i=n.parentNode(o);return Qn(n,i,r,n.nextSibling(o),!1),r}var kC=FC,RC=()=>!1;function PC(e,t,n){return RC(e,t,n)}function FC(e,t,n,r){if(e[zn])return;let o;n.type&8?o=Se(r):o=OC(t,n),e[zn]=o}var Gl=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Wl=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Ou(t,n).matches!==null&&this.queries[n].setDirty()}},ql=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=zC(t):this.predicate=t}},Zl=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Yl=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,LC(n,i)),this.matchTNodeWithReadOption(t,n,Fs(n,t,i,!1,!1))}else r===$r?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Fs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===wt||o===Jo||o===$r&&n.type&4)this.addMatch(n.index,-2);else{let i=Fs(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function LC(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function VC(e,t){return e.type&11?Gr(e,t):e.type&4?Mu(e,t):null}function jC(e,t,n,r){return n===-1?VC(t,e):n===-2?BC(e,t,r):Uo(e,e[N],n,t)}function BC(e,t,n){if(n===wt)return Gr(t,e);if(n===$r)return Mu(t,e);if(n===Jo)return yg(t,e)}function vg(e,t,n,r){let o=t[kt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let f=i[l];a.push(jC(t,f,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Ql(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=vg(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],f=t[-c];for(let g=de;g<f.length;g++){let y=f[g];y[pn]===y[ve]&&Ql(y[N],y,l,r)}if(f[Gn]!==null){let g=f[Gn];for(let y=0;y<g.length;y++){let m=g[y];Ql(m[N],m,l,r)}}}}}return r}function HC(e,t){return e[kt].queries[t].queryList}function UC(e,t,n){let r=new $s((n&4)===4);return Wf(e,t,r,r.destroy),(t[kt]??=new Wl).queries.push(new Gl(r))-1}function $C(e,t,n){let r=fe();return r.firstCreatePass&&(GC(r,new ql(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),UC(r,j(),t)}function zC(e){return e.split(",").map(t=>t.trim())}function GC(e,t,n){e.queries===null&&(e.queries=new Zl),e.queries.track(new Yl(t,n))}function Ou(e,t){return e.queries.getByIndex(t)}function WC(e,t){let n=e[N],r=Ou(n,t);return r.crossesNgTemplate?Ql(n,e,t,[]):vg(n,e,r,t)}function Wr(e){return!!e&&typeof e.then=="function"}function ku(e){return!!e&&typeof e.subscribe=="function"}var qo=class{};var Zo=class extends qo{injector;instance=null;constructor(t){super();let n=new jn([...t.providers,{provide:qo,useValue:this}],t.parent||Tr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function _g(e,t,n=null){return new Zo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var qC=(()=>{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=Gc(!1,n.type),o=r.length>0?_g([r],this._injector,""):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=Q({token:e,providedIn:"environment",factory:()=>new e(U(Be))})}return e})();function rn(e){return Qo(()=>{let t=Cg(e),n=H(L({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==cu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(qC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Dt.Emulated,styles:e.styles||je,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&nn("NgStandalone"),bg(n);let r=e.dependencies;return n.directiveDefs=Up(r,ZC),n.pipeDefs=Up(r,Mf),n.id=KC(n),n})}function ZC(e){return Qt(e)||jc(e)}function Cn(e){return Qo(()=>({type:e.type,bootstrap:e.bootstrap||je,declarations:e.declarations||je,imports:e.imports||je,exports:e.exports||je,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function YC(e,t){if(e==null)return dn;let n={};for(let r in e)if(Object.hasOwn(e,r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ko.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function QC(e){if(e==null)return dn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function _e(e){return Qo(()=>{let t=Cg(e);return bg(t),t})}function ua(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Cg(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||dn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||je,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:YC(e.inputs,t),outputs:QC(e.outputs),debugInfo:null}}function bg(e){e.features?.forEach(t=>t(e))}function Up(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function KC(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}var Dg=new T("");var Ru=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=C(Dg,{optional:!0})??[];injector=C(ke);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Nr(this.injector,o);if(Wr(i))n.push(i);else if(ku(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function Pu(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function JC(e){return Object.getPrototypeOf(e.prototype).constructor}function Ue(e){let t=JC(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,Eo)?t[Eo]:void 0,s=Object.hasOwn(t,wo)?t[wo]:void 0;if(Ft(e))o=i??s;else{if(i)throw new x(903,!1);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=xl(e.inputs),c.declaredInputs=xl(e.declaredInputs),c.outputs=xl(e.outputs);let l=o.hostBindings;l&&rb(e,l);let f=o.viewQuery,g=o.contentQueries;if(f&&tb(e,f),g&&nb(e,g),XC(e,o),If(e.outputs,o.outputs),Ft(o)&&o.data.animation){let y=e.data;y.animation=(y.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let c=0;c<a.length;c++){let l=a[c];l&&l.ngInherit&&l(e),l===Ue&&(n=!1)}}t=Object.getPrototypeOf(t)}eb(r)}function XC(e,t){for(let n in t.inputs){if(!Object.hasOwn(t.inputs,n)||Object.hasOwn(e.inputs,n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function eb(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=Hr(o.hostAttrs,n=Hr(n,o.hostAttrs))}}function xl(e){return e===dn?{}:e===je?[]:e}function tb(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function nb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function rb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ob(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Hr(e.mergedAttrs,e.attrs);let f=e.tView=_u(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),f.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Fr(e,!1);let c=ib(n,t,e,r);Ms()&&yu(n,t,c,e),Ur(c,t);let l=rg(c,t,c,e);t[r+me]=l,bu(t,l),PC(l,e,t)}function Ks(e,t,n,r,o,i,s,a,c,l,f){let g=n+me,y;if(t.firstCreatePass){if(y=la(t,g,4,s||null,a||null),l!=null){let m=Lt(t.consts,l);y.localNames=[];for(let _=0;_<m.length;_+=2)y.localNames.push(m[_],-1)}}else y=t.data[g];return ob(y,e,t,n,r,o,i,c),l!=null&&Du(e,y,f),y}var ib=sb;function sb(e,t,n,r){return Ts(!0),t[ie].createComment("")}var Fu=new T("");var Eg=new T("");function wg(){rc(()=>{let e="";throw new x(600,e)})}var ab=10;var bn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=C(mn);afterRenderManager=C(pu);zonelessEnabled=C(Lo);rootEffectScheduler=C(As);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Ae;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=C(Zn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(we(n=>!n))}constructor(){C(tn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=C(Be);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ke.NULL){return this._injector.get(be).run(()=>{if(K(Z.BootstrapComponentStart),!this._injector.get(Ru).done){let P="";throw new x(405,P)}let a=Qt(n),c=this._injector.get(qo),l=new tr(a,c);this.componentTypes.push(n);let{hostElement:f,directives:g,bindings:y}=cb(r),m=f||l.selector,_=l.create(o,[],m,c.injector,g,y),w=_.location.nativeElement,O=_.injector.get(Fu,null);return O?.registerApplication(w),_.onDestroy(()=>{this.detachView(_.hostView),Ho(this.components,_),O?.unregisterApplication(w)}),this._loadComponent(_),K(Z.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){K(Z.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ra.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw K(Z.ChangeDetectionEnd),new x(101,!1);let n=k(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,k(n),this.afterTick.next(),K(Z.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(er,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<ab;){K(Z.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{K(Z.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Pr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Xh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Pr(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;Ho(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(Eg,[]).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),()=>Ho(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new x(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function cb(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Ho(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xt(e,t,n,r){let o=j(),i=hn();if(et(o,i,t)){let s=fe(),a=Lr();E_(a,o,e,t,n,r)}return xt}var Kl=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Sl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function lb(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){k(r);let l=t.length-1;for(k(null);s<=a&&s<=l;){let f=e.at(s),g=t[s],y=Sl(s,f,s,g,n);if(y!==0){y<0&&e.updateValue(s,g),s++;continue}let m=e.at(a),_=t[l],w=Sl(a,m,l,_,n);if(w!==0){w<0&&e.updateValue(a,_),a--,l--;continue}let O=n(s,f),P=n(a,m),ce=n(s,g);if(Object.is(ce,P)){let Qe=n(l,_);Object.is(Qe,O)?(e.swap(s,a),e.updateValue(a,_),l--,a--):e.move(a,s),e.updateValue(s,g),s++;continue}if(o??=new Js,i??=zp(e,s,a,n),Jl(e,o,s,ce))e.updateValue(s,g),s++,a++;else if(i.has(ce))o.set(O,e.detach(s)),a--;else{let Qe=e.create(s,t[s]);e.attach(s,Qe),s++,a++}}for(;s<=l;)$p(e,o,n,s,t[s]),s++}else if(t!=null){k(r);let l=t[Symbol.iterator]();k(null);let f=l.next();for(;!f.done&&s<=a;){let g=e.at(s),y=f.value,m=Sl(s,g,s,y,n);if(m!==0)m<0&&e.updateValue(s,y),s++,f=l.next();else{o??=new Js,i??=zp(e,s,a,n);let _=n(s,y);if(Jl(e,o,s,_))e.updateValue(s,y),s++,a++,f=l.next();else if(!i.has(_))e.attach(s,e.create(s,y)),s++,a++,f=l.next();else{let w=n(s,g);o.set(w,e.detach(s)),a--}}}for(;!f.done;)$p(e,o,n,e.length,f.value),f=l.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(l=>{e.destroy(l)})}function Jl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function $p(e,t,n,r,o){if(Jl(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function zp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Js=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function D(e,t,n,r,o,i,s,a){nn("NgControlFlow");let c=j(),l=fe(),f=Lt(l.consts,i);return Ks(c,l,e,t,n,r,o,f,256,s,a),Lu}function Lu(e,t,n,r,o,i,s,a){nn("NgControlFlow");let c=j(),l=fe(),f=Lt(l.consts,i);return Ks(c,l,e,t,n,r,o,f,512,s,a),Lu}function E(e,t){nn("NgControlFlow");let n=j(),r=hn(),o=n[r]!==Me?n[r]:-1,i=o!==-1?Xs(n,me+o):void 0,s=0;if(et(n,r,e)){let a=k(null);try{if(i!==void 0&&ig(i,s),e!==-1){let c=me+e,l=Xs(n,c),f=nu(n[N],c),g=ag(l,f,n),y=aa(n,f,t,{dehydratedView:g});ca(l,y,s,zo(f,g))}}finally{k(a)}}else if(i!==void 0){let a=og(i,s);a!==void 0&&(a[pe]=t)}}var Xl=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-de}};function ir(e){return e}function Xo(e,t){return t}var eu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function J(e,t,n,r,o,i,s,a,c,l,f,g,y){nn("NgControlFlow");let m=j(),_=fe(),w=c!==void 0,O=j(),P=a?s.bind(O[Je][pe]):s,ce=new eu(w,P);O[me+e]=ce,Ks(m,_,e+1,t,n,r,o,Lt(_.consts,i),256),w&&Ks(m,_,e+2,c,l,f,g,Lt(_.consts,y),512)}var tu=class extends Kl{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-de}at(t){return this.getLView(t)[pe].$implicit}attach(t,n){let r=n[Ar];this.needsIndexUpdate||=t!==this.length,ca(this.lContainer,n,t,zo(this.templateTNode,r)),ub(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,db(this.lContainer,t),fb(this.lContainer,t)}create(t,n){let r=Ul(this.lContainer,this.templateTNode.tView.ssrId);return aa(this.hostLView,this.templateTNode,new Xl(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ia(t[N],t)}updateValue(t,n){this.getLView(t)[pe].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[pe].$index=t}getLView(t){return pb(this.lContainer,t)}};function X(e){let t=k(null),n=vt();try{let r=j(),o=r[N],i=r[n],s=n+1,a=Xs(r,s);if(i.liveCollection===void 0){let l=nu(o,s);i.liveCollection=new tu(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(lb(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let l=hn(),f=c.length===0;if(et(r,l,f)){let g=n+2,y=Xs(r,g);if(f){let m=nu(o,g),_=ag(y,m,r),w=aa(r,m,void 0,{dehydratedView:_});ca(y,w,0,zo(m,_))}else o.firstUpdatePass&&Z_(y),ig(y,0)}}}finally{k(t)}}function Xs(e,t){return e[t]}function ub(e,t){if(e.length<=de)return;let n=de+t,r=e[n],o=r?r[Pt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ot];G0(i,o),vn.delete(r[Rt]),o.detachedLeaveAnimationFns=void 0}}function db(e,t){if(e.length<=de)return;let n=de+t,r=e[n],o=r?r[Pt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function fb(e,t){return Wo(e,t)}function pb(e,t){return og(e,t)}function nu(e,t){return vs(e,t)}function S(e,t,n){let r=j(),o=hn();if(et(r,o,t)){let i=fe(),s=Lr();zh(s,r,e,t,r[ie],n)}return S}function ru(e,t,n,r,o){Eu(t,e,n,o?"class":"style",r)}function d(e,t,n,r){let o=j(),i=o[N],s=e+me,a=i.firstCreatePass?pg(s,o,2,t,D_,Yf(),n,r):i.data[s];if(Xt(a)){let c=o[yt].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(ug(l),()=>(Gp(e,t,o,a,r),d))}}return Gp(e,t,o,a,r),d}function Gp(e,t,n,r,o){if(Wh(r,n,e,t,xg),ms(r)){let i=n[N];$h(i,n,r),wh(i,r,n)}o!=null&&Du(n,r)}function u(){let e=fe(),t=Ie(),n=qh(t);return e.firstCreatePass&&hg(e,n),sl(n)&&al(),il(),n.classesWithoutHost!=null&&Xv(n)&&ru(e,n,j(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&e0(n)&&ru(e,n,j(),n.stylesWithoutHost,!1),u}function $e(e,t,n,r){return d(e,t,n,r),u(),$e}function on(e,t,n,r){let o=j(),i=o[N],s=e+me,a=i.firstCreatePass?_C(s,i,2,t,n,r):i.data[s];return Wh(a,o,e,t,xg),r!=null&&Du(o,a),on}function Dn(){let e=Ie(),t=qh(e);return sl(t)&&al(),il(),Dn}var xg=(e,t,n,r,o)=>(Ts(!0),Mh(t[ie],r,gl()));function W(){return j()}function da(e,t,n){let r=j(),o=hn();if(et(r,o,t)){let i=fe(),s=Lr();Gh(s,r,e,t,r[ie],n)}return da}var Vo=void 0;function hb(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var gb=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Vo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Vo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Vo,Vo,Vo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",hb],Il=Object.create(null);function qe(e){let t=mb(e),n=Wp(t);if(n)return n;let r=t.split("-")[0];if(n=Wp(r),n)return n;if(r==="en")return gb;throw new x(701,!1)}function Wp(e){if(!(e in Il)){let t=Hn.ng&&Hn.ng.common&&Hn.ng.common.locales&&Hn.ng.common.locales[e];return t!==void 0&&(Il[e]=t),t}return Il[e]}var he={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function mb(e){return e.toLowerCase().replace(/_/g,"-")}var ei="en-US";var yb=ei;function Sg(e){typeof e=="string"&&(yb=e.toLowerCase().replace(/_/g,"-"))}function A(e,t,n){let r=j(),o=fe(),i=Ie();return Ig(o,r,r[ie],i,e,t,n),A}function qr(e,t,n){let r=j(),o=fe(),i=Ie();return(i.type&3||n)&&Au(i,o,r,n,r[ie],e,t,Kn(i,r,t)),qr}function Ig(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Kn(r,t,i),Au(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],f=r.hostDirectiveOutputs?.[o];if(f&&f.length)for(let g=0;g<f.length;g+=2){let y=f[g],m=f[g+1];c??=Kn(r,t,i),qs(r,t,y,m,o,c)}if(l&&l.length)for(let g of l)c??=Kn(r,t,i),qs(r,t,g,o,o,c)}}function v(e=1){return ap(e)}function fa(e,t,n){return $C(e,t,n),fa}function Vu(e){let t=j(),n=fe(),r=fl();xs(r+1);let o=Ou(n,r);if(e.dirty&&Uf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=WC(t,r);e.reset(i,p0),e.notifyOnChanges()}return!0}return!1}function ju(){return HC(j(),fl())}function ks(e,t){return e<<17|t<<2}function nr(e){return e>>17&32767}function vb(e){return(e&2)==2}function _b(e,t){return e&131071|t<<17}function ou(e){return e|2}function zr(e){return(e&131068)>>2}function Ml(e,t){return e&-131069|t<<2}function Cb(e){return(e&1)===1}function iu(e){return e|1}function bb(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=nr(s),c=zr(s);e[r]=n;let l=!1,f;if(Array.isArray(n)){let g=n;f=g[1],(f===null||Ir(g,f)>0)&&(l=!0)}else f=n;if(o)if(c!==0){let y=nr(e[a+1]);e[r+1]=ks(y,a),y!==0&&(e[y+1]=Ml(e[y+1],r)),e[a+1]=_b(e[a+1],r)}else e[r+1]=ks(a,0),a!==0&&(e[a+1]=Ml(e[a+1],r)),a=r;else e[r+1]=ks(c,0),a===0?a=r:e[c+1]=Ml(e[c+1],r),c=r;l&&(e[r+1]=ou(e[r+1])),qp(e,f,r,!0),qp(e,f,r,!1),Db(t,f,e,r,i),s=ks(a,c),i?t.classBindings=s:t.styleBindings=s}function Db(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Ir(i,t)>=0&&(n[r+1]=iu(n[r+1]))}function qp(e,t,n,r){let o=e[n+1],i=t===null,s=r?nr(o):zr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];Eb(c,t)&&(a=!0,e[s+1]=r?iu(l):ou(l)),s=r?nr(l):zr(l)}a&&(e[n+1]=r?ou(o):iu(o))}function Eb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ir(e,t)>=0:!1}var bt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wb(e){return e.substring(bt.key,bt.keyEnd)}function xb(e){return Sb(e),Mg(e,Tg(e,0,bt.textEnd))}function Mg(e,t){let n=bt.textEnd;return n===t?-1:(t=bt.keyEnd=Ib(e,bt.key=t,n),Tg(e,t,n))}function Sb(e){bt.key=0,bt.keyEnd=0,bt.value=0,bt.valueEnd=0,bt.textEnd=e.length}function Tg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ib(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function sr(e,t,n){return Ng(e,t,n,!1),sr}function ge(e,t){return Ng(e,t,null,!0),ge}function Zr(e){Tb(Pb,Mb,e,!0)}function Mb(e,t){for(let n=xb(t);n>=0;n=Mg(t,n))ps(e,wb(t),!0)}function Ng(e,t,n,r){let o=j(),i=fe(),s=No(2);if(i.firstUpdatePass&&Og(i,e,s,r),t!==Me&&et(o,s,t)){let a=i.data[vt()];kg(i,a,o,o[ie],e,o[s+1]=Lb(t,n),r,s)}}function Tb(e,t,n,r){let o=fe(),i=No(2);o.firstUpdatePass&&Og(o,null,i,r);let s=j();if(n!==Me&&et(s,i,n)){let a=o.data[vt()];if(Rg(a,r)&&!Ag(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=cs(c,n||"")),ru(o,a,s,n,r)}else Fb(o,a,s,s[ie],s[i+1],s[i+1]=Rb(e,t,n),r,i)}}function Ag(e,t){return t>=e.expandoStartIndex}function Og(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[vt()],s=Ag(e,n);Rg(i,r)&&t===null&&!s&&(t=!1),t=Nb(o,i,t,r),bb(o,i,t,n,s,r)}}function Nb(e,t,n,r){let o=rp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Tl(null,e,t,n,r),n=Yo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Tl(o,e,t,n,r),i===null){let c=Ab(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Tl(null,e,t,c[1],r),c=Yo(c,t.attrs,r),Ob(e,t,r,c))}else i=kb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Ab(e,t,n){let r=n?t.classBindings:t.styleBindings;if(zr(r)!==0)return e[nr(r)]}function Ob(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[nr(o)]=r}function kb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Yo(r,s,n)}return Yo(r,t.attrs,n)}function Tl(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=Yo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Yo(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]),ps(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Rb(e,t,n){if(n==null||n==="")return je;let r=[],o=$o(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function Pb(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ps(e,r,n)}function Fb(e,t,n,r,o,i,s,a){o===Me&&(o=je);let c=0,l=0,f=0<o.length?o[0]:null,g=0<i.length?i[0]:null;for(;f!==null||g!==null;){let y=c<o.length?o[c+1]:void 0,m=l<i.length?i[l+1]:void 0,_=null,w;f===g?(c+=2,l+=2,y!==m&&(_=g,w=m)):g===null||f!==null&&f<g?(c+=2,_=f):(l+=2,_=g,w=m),_!==null&&kg(e,t,n,r,_,w,s,a),f=c<o.length?o[c]:null,g=l<i.length?i[l]:null}}function kg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],f=Cb(l)?Zp(c,t,n,o,zr(l),s):void 0;if(!ea(f)){ea(i)||vb(l)&&(i=Zp(c,null,n,o,a,s));let g=Xc(vt(),n);u_(r,s,g,o,i)}}function Zp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),f=l?c[1]:c,g=f===null,y=n[o+1];y===Me&&(y=g?je:void 0);let m=g?hs(y,r):f===r?y:void 0;if(l&&!ea(m)&&(m=hs(c,r)),ea(m)&&(a=m,s))return a;let _=e[o+1];o=s?nr(_):zr(_)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=hs(c,r))}return a}function ea(e){return e!==void 0}function Lb(e,t){return e==null||e===""||(typeof t=="string"?e=$o(e)+t:typeof e=="object"&&(e=as($o(e)))),e}function Rg(e,t){return(e.flags&(t?8:16))!==0}function p(e,t=""){let n=j(),r=fe(),o=e+me,i=r.firstCreatePass?la(r,o,1,t,null):r.data[o],s=Vb(r,n,i,t);n[o]=s,Ms()&&yu(r,n,s,i),Fr(i,!1)}var Vb=(e,t,n,r)=>(Ts(!0),E0(t[ie],r));function jb(e,t,n,r=""){return et(e,hn(),n)?t+Kt(n)+r:Me}function Bb(e,t,n,r,o,i=""){let s=dl(),a=Nu(e,s,n,o);return No(2),a?t+Kt(n)+r+Kt(o)+i:Me}function Hb(e,t,n,r,o,i,s,a=""){let c=dl(),l=eC(e,c,n,o,s);return No(3),l?t+Kt(n)+r+Kt(o)+i+Kt(s)+a:Me}function b(e){return R("",e),b}function R(e,t,n){let r=j(),o=jb(r,e,t,n);return o!==Me&&Bu(r,vt(),o),R}function St(e,t,n,r,o){let i=j(),s=Bb(i,e,t,n,r,o);return s!==Me&&Bu(i,vt(),s),St}function ar(e,t,n,r,o,i,s){let a=j(),c=Hb(a,e,t,n,r,o,i,s);return c!==Me&&Bu(a,vt(),c),ar}function Bu(e,t,n){let r=Xc(t,e);w0(e[ie],r,n)}function ee(e,t,n){Os(t)&&(t=t());let r=j(),o=hn();if(et(r,o,t)){let i=fe(),s=Lr();zh(s,r,e,t,r[ie],n)}return ee}function ne(e,t){let n=Os(e);return n&&e.set(t),n}function te(e,t){let n=j(),r=fe(),o=Ie();return Ig(r,n,n[ie],o,e,t),te}function Yp(e,t,n){let r=fe();r.firstCreatePass&&Pg(t,r.data,r.blueprint,Ft(e),n)}function Pg(e,t,n,r,o){if(e=xe(e),Array.isArray(e))for(let i=0;i<e.length;i++)Pg(e[i],t,n,r,o);else{let i=fe(),s=j(),a=Ie(),c=Vn(e)?e:xe(e.provide),l=qc(e),f=a.providerIndexes&1048575,g=a.directiveStart,y=a.providerIndexes>>20;if(Vn(e)||!e.multi){let m=new Jn(l,o,Y,null),_=Al(c,t,o?f:f+y,g);_===-1?(Rl(Us(a,s),i,c),Nl(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[_]=m,s[_]=m)}else{let m=Al(c,t,f+y,g),_=Al(c,t,f,f+y),w=m>=0&&n[m],O=_>=0&&n[_];if(o&&!O||!o&&!w){Rl(Us(a,s),i,c);let P=zb(o?$b:Ub,n.length,o,r,l,e);!o&&O&&(n[_].providerFactory=P),Nl(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=Fg(n[o?_:m],l,!o&&r);Nl(i,e,m>-1?m:_,P)}!o&&r&&O&&n[_].componentProviders++}}}function Nl(e,t,n,r){let o=Vn(t),i=Vf(t);if(o||i){let c=(i?xe(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let f=l.indexOf(n);f===-1?l.push(n,[r,c]):l[f+1].push(r,c)}else l.push(n,c)}}}function Fg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Al(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function Ub(e,t,n,r,o){return su(this.multi,[])}function $b(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Uo(r,r[N],this.providerFactory.index,o);s=c.slice(0,a),su(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],su(i,s);return s}function su(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function zb(e,t,n,r,o,i){let s=new Jn(e,n,Y,null);return s.multi=[],s.index=t,s.componentProviders=0,Fg(s,o,r&&!n),s}function lt(e,t){return n=>{n.providersResolver=(r,o)=>Yp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Yp(r,o?o(t):t,!0))}}function ze(e,t){let n=Es()+e,r=j();return r[n]===Me?Tu(r,n,t()):X_(r,n)}function Lg(e,t){let n=e[t];return n===Me?void 0:n}function Gb(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Tu(e,s+1,i?r.call(i,o):r(o)):Lg(e,s+1)}function Wb(e,t,n,r,o,i,s){let a=t+n;return Nu(e,a,o,i)?Tu(e,a+2,s?r.call(s,o,i):r(o,i)):Lg(e,a+2)}function ut(e,t){let n=fe(),r,o=e+me;n.firstCreatePass?(r=qb(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=ln(r.type,!0)),s,a=Ve(Y);try{let c=Hs(!1),l=i();return Hs(c),tl(n,j(),o,l),l}finally{Ve(a)}}function qb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function cr(e,t,n){let r=e+me,o=j(),i=el(o,r);return Vg(o,r)?Gb(o,Es(),t,i.transform,n,i):i.transform(n)}function lr(e,t,n,r){let o=e+me,i=j(),s=el(i,o);return Vg(i,o)?Wb(i,Es(),t,s.transform,n,r,s):s.transform(n,r)}function Vg(e,t){return e[N].data[t].pure}var jg=(()=>{class e{applicationErrorHandler=C(mn);appRef=C(bn);taskService=C(Zn);ngZone=C(be);zonelessEnabled=C(Lo);tracing=C(tn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ee;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(bo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(Cl,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?fp:ml;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(bo+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){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}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=en({token:e,factory:e.\u0275fac})}return e})();function Hu(){return nn("NgZoneless"),Mr([...Uu(),[]])}function Uu(){return[{provide:gt,useExisting:jg},{provide:be,useClass:Do},{provide:Lo,useValue:!0}]}function Zb(){return typeof $localize<"u"&&$localize.locale||ei}var Yr=new T("",{factory:()=>C(Yr,{optional:!0,skipSelf:!0})||Zb()});var pa=class{destroyed=!1;listeners=null;errorHandler=C(ot,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=C(ue);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new x(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[n]=null):this.listeners.splice(n,1))}}}emit(t){if(this.destroyed){console.warn(un(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=k(null);try{for(let r of this.listeners)try{r!==null&&r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&Yb(this.listeners)),k(n),this.isEmitting=!1}}};function Yb(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function ae(e,t){return Oi(e,t?.equal)}function Ze(e){return qd(e)}var Bg=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")};function $g(e,t){let n=Object.create(Jp);n.value=e,n.transformFn=t?.transform;function r(){if(gr(n),n.value===ta){let o=null;throw new x(-950,o)}return n.value}return r[De]=n,r}function En(e){return new pa}function Hg(e,t){return $g(e,t)}function aD(e){return $g(ta,e)}var dt=(Hg.required=aD,Hg);var cD=1e4;var Q2=cD-1e3;var ni=(()=>{class e{static __NG_ELEMENT_ID__=lD}return e})();function lD(e){return uD(Ie(),j(),(e&16)===16)}function uD(e,t,n){if(Xt(e)&&!n){let r=ct(e.index,t);return new _n(r,r)}else if(e.type&175){let r=t[Je];return new _n(r,t)}return null}var $u=new T(""),dD=new T("");function ti(e){return!e.moduleRef}function fD(e){let t=ti(e)?e.r3Injector:e.moduleRef.injector,n=t.get(be);return n.run(()=>{ti(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(mn),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),ti(e)){let i=()=>t.destroy(),s=e.platformInjector.get($u);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get($u);s.add(i),e.moduleRef.onDestroy(()=>{Ho(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return hD(r,n,()=>{let i=t.get(Zn),s=i.add(),a=t.get(Ru);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Yr,ei);if(Sg(c||ei),!t.get(dD,!0))return ti(e)?t.get(bn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ti(e)){let f=t.get(bn);return e.rootComponent!==void 0&&f.bootstrap(e.rootComponent),f}else return pD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var pD;function hD(e,t,n){try{let r=n();return Wr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ha=null;function gD(e=[],t){return ke.create({name:t,providers:[{provide:Mo,useValue:"platform"},{provide:$u,useValue:new Set([()=>ha=null])},...e]})}function mD(e=[]){if(ha)return ha;let t=gD(e);return ha=t,wg(),yD(t),t}function yD(e){let t=e.get(Ns,null);Nr(e,()=>{t?.forEach(n=>n())})}function zg(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;K(Z.BootstrapApplicationStart);try{let i=o?.injector??mD(r),s=[Uu(),hp,...n||[]],a=new Zo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return fD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{K(Z.BootstrapApplicationEnd)}}function zu(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Gg(e,t){let n=Qt(e),r=t.elementInjector||Tr();return new tr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function ri(e){let t=Qt(e);if(!t)return null;let n=new tr(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Wg=null;function Mt(){return Wg}function Gu(e){Wg??=e}var oi=class{},ma=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:()=>C(qg),providedIn:"platform"})}return e})();var qg=(()=>{class e extends ma{_location;_history;_doc=C(Re);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mt().getBaseHref(this._doc)}onPopState(n){let r=Mt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Mt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var Ku=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Ku||{});var Pe=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Pe||{}),oe=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(oe||{}),Ye=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ye||{}),Ge={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Qg(e){return qe(e)[he.LocaleId]}function Kg(e,t,n){let r=qe(e),o=[r[he.DayPeriodsFormat],r[he.DayPeriodsStandalone]],i=ft(o,t);return ft(i,n)}function Jg(e,t,n){let r=qe(e),o=[r[he.DaysFormat],r[he.DaysStandalone]],i=ft(o,t);return ft(i,n)}function Xg(e,t,n){let r=qe(e),o=[r[he.MonthsFormat],r[he.MonthsStandalone]],i=ft(o,t);return ft(i,n)}function em(e,t){let r=qe(e)[he.Eras];return ft(r,t)}function ii(e,t){let n=qe(e);return ft(n[he.DateFormat],t)}function si(e,t){let n=qe(e);return ft(n[he.TimeFormat],t)}function ai(e,t){let r=qe(e)[he.DateTimeFormat];return ft(r,t)}function Ht(e,t){let n=qe(e),r=n[he.NumberSymbols][t];if(typeof r>"u"){if(t===Ge.CurrencyDecimal)return n[he.NumberSymbols][Ge.Decimal];if(t===Ge.CurrencyGroup)return n[he.NumberSymbols][Ge.Group]}return r}function tm(e,t){return qe(e)[he.NumberFormats][t]}function nm(e){if(!e[he.ExtraData])throw new x(2303,!1)}function rm(e){let t=qe(e);return nm(t),(t[he.ExtraData][2]||[]).map(r=>typeof r=="string"?Wu(r):[Wu(r[0]),Wu(r[1])])}function om(e,t,n){let r=qe(e);nm(r);let o=[r[he.ExtraData][0],r[he.ExtraData][1]],i=ft(o,t)||[];return ft(i,n)||[]}function ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new x(2304,!1)}function Wu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var vD=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ya=Object.create(null),_D=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,CD=256;function im(e,t,n,r){let o=ND(e);bD(t),t=sn(n,t)||t;let s=[],a;for(;t;)if(a=_D.exec(t),a){s=s.concat(a.slice(1));let f=s.pop();if(!f)break;t=f}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=am(r,c),o=TD(o,r));let l="";return s.forEach(f=>{let g=ID(f);l+=g?g(o,n,c):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function bD(e){if(e.length>CD)throw new x(2300,!1)}function Da(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function sn(e,t){let n=Qg(e);if(ya[n]??=Object.create(null),ya[n][t])return ya[n][t];let r="";switch(t){case"shortDate":r=ii(e,Ye.Short);break;case"mediumDate":r=ii(e,Ye.Medium);break;case"longDate":r=ii(e,Ye.Long);break;case"fullDate":r=ii(e,Ye.Full);break;case"shortTime":r=si(e,Ye.Short);break;case"mediumTime":r=si(e,Ye.Medium);break;case"longTime":r=si(e,Ye.Long);break;case"fullTime":r=si(e,Ye.Full);break;case"short":let o=sn(e,"shortTime"),i=sn(e,"shortDate");r=va(ai(e,Ye.Short),[o,i]);break;case"medium":let s=sn(e,"mediumTime"),a=sn(e,"mediumDate");r=va(ai(e,Ye.Medium),[s,a]);break;case"long":let c=sn(e,"longTime"),l=sn(e,"longDate");r=va(ai(e,Ye.Long),[c,l]);break;case"full":let f=sn(e,"fullTime"),g=sn(e,"fullDate");r=va(ai(e,Ye.Full),[f,g]);break}return r&&(ya[n][t]=r),r}function va(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Tt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function DD(e,t){return Tt(e,3).substring(0,t)}function ye(e,t,n=0,r=!1,o=!1){return function(i,s){let a=ED(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return DD(a,t);let c=Ht(s,Ge.MinusSign);return Tt(a,t,c,r,o)}}function ED(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new x(2301,!1)}}function se(e,t,n=Pe.Format,r=!1){return function(o,i){return wD(o,i,e,t,n,r)}}function wD(e,t,n,r,o,i){switch(n){case 2:return Xg(t,o,r)[e.getMonth()];case 1:return Jg(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=rm(t),f=om(t,o,r),g=l.findIndex(y=>{if(Array.isArray(y)){let[m,_]=y,w=s>=m.hours&&a>=m.minutes,O=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(w&&O)return!0}else if(w||O)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(g!==-1)return f[g]}return Kg(t,o,r)[s<12?0:1];case 3:return em(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new x(2302,!1)}}function _a(e){return function(t,n,r){let o=-1*r,i=Ht(n,Ge.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Tt(s,2,i)+Tt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Tt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Tt(s,2,i)+":"+Tt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Tt(s,2,i)+":"+Tt(Math.abs(o%60),2,i);default:throw new x(2310,!1)}}}var xD=0,ba=4;function SD(e){let t=Da(e,xD,1).getDay();return Da(e,0,1+(t<=ba?ba:ba+7)-t)}function sm(e){let t=e.getDay(),n=t===0?-3:ba-t;return Da(e.getFullYear(),e.getMonth(),e.getDate()+n)}function qu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=sm(n),s=SD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Tt(o,e,Ht(r,Ge.MinusSign))}}function Ca(e,t=!1){return function(n,r){let i=sm(n).getFullYear();return Tt(i,e,Ht(r,Ge.MinusSign),t)}}var Zu=Object.create(null);function ID(e){if(Zu[e])return Zu[e];let t;switch(e){case"G":case"GG":case"GGG":t=se(3,oe.Abbreviated);break;case"GGGG":t=se(3,oe.Wide);break;case"GGGGG":t=se(3,oe.Narrow);break;case"y":t=ye(0,1,0,!1,!0);break;case"yy":t=ye(0,2,0,!0,!0);break;case"yyy":t=ye(0,3,0,!1,!0);break;case"yyyy":t=ye(0,4,0,!1,!0);break;case"Y":t=Ca(1);break;case"YY":t=Ca(2,!0);break;case"YYY":t=Ca(3);break;case"YYYY":t=Ca(4);break;case"M":case"L":t=ye(1,1,1);break;case"MM":case"LL":t=ye(1,2,1);break;case"MMM":t=se(2,oe.Abbreviated);break;case"MMMM":t=se(2,oe.Wide);break;case"MMMMM":t=se(2,oe.Narrow);break;case"LLL":t=se(2,oe.Abbreviated,Pe.Standalone);break;case"LLLL":t=se(2,oe.Wide,Pe.Standalone);break;case"LLLLL":t=se(2,oe.Narrow,Pe.Standalone);break;case"w":t=qu(1);break;case"ww":t=qu(2);break;case"W":t=qu(1,!0);break;case"d":t=ye(2,1);break;case"dd":t=ye(2,2);break;case"c":case"cc":t=ye(7,1);break;case"ccc":t=se(1,oe.Abbreviated,Pe.Standalone);break;case"cccc":t=se(1,oe.Wide,Pe.Standalone);break;case"ccccc":t=se(1,oe.Narrow,Pe.Standalone);break;case"cccccc":t=se(1,oe.Short,Pe.Standalone);break;case"E":case"EE":case"EEE":t=se(1,oe.Abbreviated);break;case"EEEE":t=se(1,oe.Wide);break;case"EEEEE":t=se(1,oe.Narrow);break;case"EEEEEE":t=se(1,oe.Short);break;case"a":case"aa":case"aaa":t=se(0,oe.Abbreviated);break;case"aaaa":t=se(0,oe.Wide);break;case"aaaaa":t=se(0,oe.Narrow);break;case"b":case"bb":case"bbb":t=se(0,oe.Abbreviated,Pe.Standalone,!0);break;case"bbbb":t=se(0,oe.Wide,Pe.Standalone,!0);break;case"bbbbb":t=se(0,oe.Narrow,Pe.Standalone,!0);break;case"B":case"BB":case"BBB":t=se(0,oe.Abbreviated,Pe.Format,!0);break;case"BBBB":t=se(0,oe.Wide,Pe.Format,!0);break;case"BBBBB":t=se(0,oe.Narrow,Pe.Format,!0);break;case"h":t=ye(3,1,-12);break;case"hh":t=ye(3,2,-12);break;case"H":t=ye(3,1);break;case"HH":t=ye(3,2);break;case"m":t=ye(4,1);break;case"mm":t=ye(4,2);break;case"s":t=ye(5,1);break;case"ss":t=ye(5,2);break;case"S":t=ye(6,1);break;case"SS":t=ye(6,2);break;case"SSS":t=ye(6,3);break;case"Z":case"ZZ":case"ZZZ":t=_a(0);break;case"ZZZZZ":t=_a(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=_a(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=_a(2);break;default:return null}return Zu[e]=t,t}function am(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function MD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function TD(e,t,n){let o=e.getTimezoneOffset(),i=am(t,o);return MD(e,-1*(i-o))}function ND(e){if(Zg(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Da(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(vD))return AD(r)}let t=new Date(e);if(!Zg(t))throw new x(2311,!1);return t}function AD(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function Zg(e){return e instanceof Date&&!isNaN(e.valueOf())}var OD=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Yg=22,Ea=".",ci="0",kD=";",RD=",",Yu="#";function PD(e,t,n,r,o,i,s=!1){let a="",c=!1;if(!isFinite(e))a=Ht(n,Number.isNaN(e)?Ge.NaN:Ge.Infinity);else{let l=VD(e);s&&(l=LD(l));let f=t.minInt,g=t.minFrac,y=t.maxFrac;if(i){let ce=i.match(OD);if(ce===null)throw new x(2306,!1);let Qe=ce[1],tt=ce[3],Ke=ce[5];Qe!=null&&(f=Qu(Qe)),tt!=null&&(g=Qu(tt)),Ke!=null?y=Qu(Ke):tt!=null&&g>y&&(y=g);let nt=100;if(f>nt||g>nt||y>nt)throw new x(2306,!1)}jD(l,g,y);let m=l.digits,_=l.integerLen,w=l.exponent,O=[];for(c=m.every(ce=>!ce);_<f;_++)m.unshift(0);for(;_<0;_++)m.unshift(0);_>0?O=m.splice(_,m.length):(O=m,m=[0]);let P=[];for(m.length>=t.lgSize&&P.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)P.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&P.unshift(m.join("")),a=P.join(Ht(n,r)),O.length&&(a+=Ht(n,o)+O.join("")),w&&(a+=Ht(n,Ge.Exponential)+"+"+w)}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function cm(e,t,n){let r=tm(t,Ku.Decimal),o=FD(r,Ht(t,Ge.MinusSign));return PD(e,o,t,Ge.Group,Ge.Decimal,n)}function FD(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(kD),o=r[0],i=r[1],s=o.indexOf(Ea)!==-1?o.split(Ea):[o.substring(0,o.lastIndexOf(ci)+1),o.substring(o.lastIndexOf(ci)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Yu));for(let f=0;f<c.length;f++){let g=c.charAt(f);g===ci?n.minFrac=n.maxFrac=f+1:g===Yu?n.maxFrac=f+1:n.posSuf+=g}let l=a.split(RD);if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,i){let f=o.length-n.posPre.length-n.posSuf.length,g=i.indexOf(Yu);n.negPre=i.substring(0,g).replace(/'/g,""),n.negSuf=i.slice(g+f).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function LD(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function VD(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Ea))>-1&&(t=t.replace(Ea,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===ci;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===ci;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Yg&&(r=r.splice(0,Yg-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function jD(e,t,n){if(t>n)throw new x(2307,!1);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let g=s;g<r.length;g++)r[g]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let g=1;g<s;g++)r[g]=0}if(a>=5)if(s-1<0){for(let g=0;g>s;g--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,l=t+e.integerLen,f=r.reduceRight(function(g,y,m,_){return y=y+g,_[m]=y<10?y:y-10,c&&(_[m]===0&&m>=l?_.pop():c=!1),y>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}function Qu(e){let t=parseInt(e);if(isNaN(t))throw new x(2305,!1);return t}function lm(e,t){return new x(2100,!1)}var BD="mediumDate",um=new T(""),dm=new T(""),Ju=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??BD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return im(n,s,i||this.locale,a)}catch(s){throw lm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(Y(Yr,16),Y(um,24),Y(dm,24))};static \u0275pipe=ua({name:"date",type:e,pure:!0})}return e})();var li=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,o){if(!HD(n))return null;o||=this._locale;try{let i=UD(n);return cm(i,o,r)}catch(i){throw lm(e,i.message)}}static \u0275fac=function(r){return new(r||e)(Y(Yr,16))};static \u0275pipe=ua({name:"number",type:e,pure:!0})}return e})();function HD(e){return!(e==null||e===""||e!==e)}function UD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new x(2309,!1);return e}var wn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Cn({type:e});static \u0275inj=Yt({})}return e})();function ui(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)continue;let s=i;try{s=decodeURIComponent(i)}catch{}return s.length>1&&s[0]==='"'&&s[s.length-1]==='"'&&(s=s.slice(1,-1)),s}return null}var fm="browser";var di=class{_doc;constructor(t){this._doc=t}manager},wa=(()=>{class e extends di{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(U(Re))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),Ia=new T(""),rd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof wa));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof wa);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}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 x(-5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(U(Ia),U(be))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),ed="ng-app-id";function pm(e){for(let t of e)t.remove()}function hm(e,t){let n=t.createElement("style");return n.textContent=e,n}function GD(e,t,n,r){let o=e.head?.querySelectorAll(`style[${ed}="${t}"],link[${ed}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(ed),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]});return!0}function nd(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var od=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,GD(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,hm);r?.forEach(o=>this.addUsage(o,this.external,nd))}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&&(pm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])pm(n);this.hosts.clear()}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,hm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,nd(r,this.doc)))}}removeHost(n){this.hosts.delete(n);for(let r of[...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(U(Re),U(ko),U(Po,8),U(Ro))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),td={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"},id=/%COMP%/g;var mm="%COMP%",WD=`_nghost-${mm}`,qD=`_ngcontent-${mm}`,ZD=!0,YD=new T("",{factory:()=>ZD}),QD=new T("");function KD(e){return qD.replace(id,e)}function JD(e){return WD.replace(id,e)}function ym(e,t){return t.map(n=>n.replace(id,e))}var sd=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(n,r,o,i,s,a,c=null,l=null,f=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.cssVarNamespace=f??"",this.defaultRenderer=new fi(n,s,a,this.tracingService,this.cssVarNamespace)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Sa?o.applyToHost(n):o instanceof pi&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,g=this.tracingService;switch(r.encapsulation){case Dt.Emulated:i=new Sa(c,l,r,this.appId,f,s,a,g,this.cssVarNamespace);break;case Dt.ShadowDom:return new xa(c,n,r,s,a,this.nonce,g,this.cssVarNamespace,l);case Dt.ExperimentalIsolatedShadowDom:return new xa(c,n,r,s,a,this.nonce,g,this.cssVarNamespace);default:i=new pi(c,l,r,f,s,a,g,this.cssVarNamespace);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(U(rd),U(or),U(ko),U(YD),U(Re),U(be),U(Po),U(tn,8),U(QD,8))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})(),fi=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i=""){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(td[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(gm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let o=gm(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new x(-5106,!1);o.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 x(-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=td[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=td[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){let i=n.startsWith("--");i&&(n=n.replace("%NS%",this.cssVarNamespace)),i||o&(jt.DashCase|jt.Important)?t.style.setProperty(n,r,o&jt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){let o=n.startsWith("--");o&&(n=n.replace("%NS%",this.cssVarNamespace)),o||r&jt.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,o){if(typeof t=="string"&&(t=Mt().getGlobalEventTarget(this.doc,t),!t))throw new x(-5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function gm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var xa=class extends fi{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,o,i,a,c),this.hostEl=n,this.sharedStylesHost=l,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let f=r.styles;f=ym(r.id,f).map(y=>y.replace(/%NS%/g,c));for(let y of f){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=y,this.shadowRoot.appendChild(m)}let g=r.getExternalStyles?.();if(g)for(let y of g){let m=nd(y,o);s&&m.setAttribute("nonce",s),this.shadowRoot.appendChild(m)}}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&&this.sharedStylesHost.removeHost(this.shadowRoot)}},pi=class extends fi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let f=r.styles,g=l?ym(l,f):f;this.styles=g.map(y=>y.replace(/%NS%/g,c)),this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&vn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Sa=class extends pi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let f=o+"-"+r.id;super(t,n,r,i,s,a,c,l,f),this.contentAttr=KD(f),this.hostAttr=JD(f)}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}};var Ma=class e extends oi{supportsDOMEvents=!0;static makeCurrent(){Gu(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}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=XD();return n==null?null:eE(n)}resetBaseElement(){hi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ui(document.cookie,t)}},hi=null;function XD(){return hi=hi||document.head.querySelector("base"),hi?hi.getAttribute("href"):null}function eE(e){return new URL(e,document.baseURI).pathname}var vm=["alt","control","meta","shift"],tE={"\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"},nE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},_m=(()=>{class e extends di{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mt().onAndCancel(n,s.domEventName,a,i))}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."),vm.forEach(l=>{let f=r.indexOf(l);f>-1&&(r.splice(f,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=tE[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"),vm.forEach(s=>{if(s!==o){let a=nE[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)(U(Re))};static \u0275prov=Q({token:e,factory:e.\u0275fac})}return e})();async function ad(e,t){return zg(rE(e,t))}function rE(e,t){return{platformRef:t?.platformRef,appProviders:[...cE,...e?.providers??[]],platformProviders:aE}}function oE(){Ma.makeCurrent()}function iE(){return new ot}function sE(){return lu(document),document}var aE=[{provide:Ro,useValue:fm},{provide:Ns,useValue:oE,multi:!0},{provide:Re,useFactory:sE}];var cE=[{provide:Mo,useValue:"root"},{provide:ot,useFactory:iE},{provide:Ia,useClass:wa,multi:!0},{provide:Ia,useClass:_m,multi:!0},sd,{provide:or,useClass:od},{provide:od,useExisting:or},rd,{provide:er,useExisting:sd},[]];var cn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
- `).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();for(let[n,r]of t.headers.entries())this.headers.set(n,r),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)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}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 Na=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()}},Aa=class{encodeKey(t){return Cm(t)}encodeValue(t){return Cm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function lE(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))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var uE=/%(\d[a-f0-9])/gi,dE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Cm(e){return encodeURIComponent(e).replace(uE,(t,n)=>dE[n]??t)}function Ta(e){return`${e}`}var an=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Aa,t.fromString){if(t.fromObject)throw new x(2805,!1);this.map=lE(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(Ta):[Ta(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(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(Ta(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(Ta(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}}};function fE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function bm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Dm(e){return typeof Blob<"u"&&e instanceof Blob}function Em(e){return typeof FormData<"u"&&e instanceof FormData}function pE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var cd="Content-Type",wm="Accept",Im="text/plain",Mm="application/json",hE=`${Mm}, ${Im}, */*`,Qr=class e{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(fE(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new x(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new cn,this.context??=new Na,!this.params)this.params=new an,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n,c="",l=n.indexOf("#");l!==-1&&(c=n.substring(l),a=n.substring(0,l));let f=a.indexOf("?"),g=f===-1?"?":f<a.length-1?"&":"";this.urlWithParams=a+g+s+c}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||bm(this.body)||Dm(this.body)||Em(this.body)||pE(this.body)?this.body:this.body instanceof an?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||Em(this.body)?null:Dm(this.body)?this.body.type||null:bm(this.body)?null:typeof this.body=="string"?Im:this.body instanceof an?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Mm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,f=t.credentials||this.credentials,g=t.referrer??this.referrer,y=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,_=t.transferCache??this.transferCache,w=t.timeout??this.timeout,O=t.body!==void 0?t.body:this.body,P=t.withCredentials??this.withCredentials,ce=t.reportProgress??this.reportProgress,Qe=t.reportUploadProgress??this.reportUploadProgress,tt=t.reportDownloadProgress??this.reportDownloadProgress,Ke=t.headers||this.headers,nt=t.params||this.params,zt=t.context??this.context;return t.setHeaders!==void 0&&(Ke=Object.keys(t.setHeaders).reduce((Fe,Nt)=>Fe.set(Nt,t.setHeaders[Nt]),Ke)),t.setParams&&(nt=Object.keys(t.setParams).reduce((Fe,Nt)=>Fe.set(Nt,t.setParams[Nt]),nt)),new e(n,r,O,{params:nt,headers:Ke,context:zt,reportProgress:ce,reportUploadProgress:Qe,reportDownloadProgress:tt,responseType:o,withCredentials:P,transferCache:_,keepalive:i,cache:a,priority:s,timeout:w,mode:c,redirect:l,credentials:f,referrer:g,integrity:y,referrerPolicy:m})}},dr=(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})(dr||{}),Kr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new cn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Oa=class e extends Kr{constructor(t={}){super(t)}type=dr.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})}},gi=class e extends Kr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=dr.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,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},ur=class extends Kr{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}},gE=200;var mE=/^\)\]\}',?\n/,HV=1024*1024,Tm=new T("",{factory:()=>null}),Jr=(()=>{class e{fetchImpl=C(ud,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=C(be);destroyRef=C(ue);maxResponseSize=C(Tm);handle(n){return new q(r=>{let o=new AbortController,i=!1,s={next:c=>{c.type===dr.Response&&(i=!0),r.next(c)},error:c=>{i=!0,r.error(c)},complete:()=>{i=!0,r.complete()}};this.doRequest(n,o.signal,s).then(dd,c=>s.error(new ur({error:c})));let a;return n.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{a!==void 0&&clearTimeout(a),!i&&!o.signal.aborted&&o.abort()}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let O=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,L({signal:r},i)));yE(O),o.next({type:dr.Sent}),s=await O}catch(O){o.error(new ur({error:O,status:O.status??0,statusText:O.statusText,url:n.urlWithParams,headers:O.headers}));return}let a=new cn(s.headers),c=s.statusText,l=s.url||n.urlWithParams,f=s.status,g=null,y=n.reportProgress||n.reportDownloadProgress;if(y&&o.next(new Oa({headers:a,status:f,statusText:c,url:l})),s.body){let O=s.headers.get(cd)??"",P=s.headers.get("content-length"),ce=P!==null?Number(P):NaN;this.maxResponseSize!==null&&Number.isFinite(ce)&&ce>this.maxResponseSize&&(await s.body.cancel(),xm(this.maxResponseSize));let Qe=[],tt=s.body.getReader(),Ke=0,nt,zt,Fe=typeof Zone<"u"&&Zone.current,Nt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await tt.cancel(),Nt=!0;break}let{done:Ja,value:Xa}=await tt.read();if(Ja)break;if(Qe.push(Xa),Ke+=Xa.length,this.maxResponseSize!==null&&Ke>this.maxResponseSize&&(await tt.cancel(),xm(this.maxResponseSize)),y){zt=n.responseType==="text"?(zt??"")+(nt??=Sm(O)).decode(Xa,{stream:!0}):void 0;let Fd=()=>o.next({type:dr.DownloadProgress,total:Number.isFinite(ce)?ce:void 0,loaded:Ke,partialText:zt});Fe?Fe.run(Fd):Fd()}}}),Nt){o.complete();return}let Ey=this.concatChunks(Qe,Ke);try{g=this.parseBody(n,Ey,O,f)}catch(Ja){o.error(new ur({error:Ja,headers:new cn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}f===0&&(f=g?gE:0);let m=f>=200&&f<300,_=s.redirected,w=s.type;m?(o.next(new gi({body:g,headers:a,status:f,statusText:c,url:l,redirected:_,responseType:w})),o.complete()):o.error(new ur({error:g,headers:a,status:f,statusText:c,url:l,redirected:_,responseType:w}))}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(mE,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case"text":return Sm(o).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new x(2824,!1);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(wm)||(r[wm]=hE),!n.headers.has(cd)){let i=n.detectContentTypeHeader();i!==null&&(r[cd]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}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=en({token:e,factory:e.\u0275fac})}return e})(),ud=class{};function dd(){}function yE(e){e.then(dd,dd)}function xm(e){throw new x(-2825,!1)}var vE=/charset=\s*["']?([^;"'\s]+)["']?/i;function Sm(e){let t=e.match(vE);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var _E=new T("",{factory:()=>!0}),CE="XSRF-TOKEN",bE=new T("",{factory:()=>CE}),DE="X-XSRF-TOKEN",EE=new T("",{factory:()=>DE}),wE=(()=>{class e{cookieName=C(bE);doc=C(Re);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ui(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})(),Nm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=U(wE),o},providedIn:"root"})}return e})();function Am(e,t){if(!C(_E)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=C(ma).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=C(Nm).getToken(),r=C(EE);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function xE(e,t){return t(e)}function SE(e,t,n){return(r,o)=>Nr(n,()=>t(r,i=>e(i,o)))}var fd=new T("",{factory:()=>[Am]}),Om=new T(""),km=new T("",{factory:()=>!0});var Ra=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=U(Jr),o},providedIn:"root"})}return e})();var ka=(()=>{class e{backend;injector;chain=null;pendingTasks=C(Vr);contributeToStability=C(km);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let o=this.injector.get(Pa,null,{skipSelf:!0}),i=o!==null&&this.backend===o,s=this.injector.get(Om,[],i?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(fd),...s]));this.chain=a.reduceRight((c,l)=>SE(c,l,this.injector),xE)}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Ze(()=>r(n,i=>this.backend.handle(i))).pipe(Dc(o))}else return Ze(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(U(Ra),U(Be))};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pa=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Q({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=U(ka),o},providedIn:"root"})}return e})();function ld(e,t){return L({body:t},e)}var Fa=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Qr)i=n;else{let c;o.headers instanceof cn?c=o.headers:c=new cn(o.headers);let l;o.params&&(o.params instanceof an?l=o.params:l=new an({fromObject:o.params})),i=new Qr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=yc(i).pipe(bc(c=>this.handler.handle(c)));if(n instanceof Qr||o.observe==="events")return s;let a=s.pipe(Cc(c=>c instanceof gi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(we(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new x(2806,!1);return c.body}));case"blob":return a.pipe(we(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new x(2807,!1);return c.body}));case"text":return a.pipe(we(c=>{if(c.body!==null&&typeof c.body!="string")throw new x(2808,!1);return c.body}));default:return a.pipe(we(c=>c.body))}case"response":return a;default:throw new x(2809,!1)}}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 an().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,ld(o,r))}post(n,r,o={}){return this.request("POST",n,ld(o,r))}put(n,r,o={}){return this.request("PUT",n,ld(o,r))}static \u0275fac=function(r){return new(r||e)(U(Pa))};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var La=(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[e.Xhr=7]="Xhr",e})(La||{});function Rm(e,t){return{\u0275kind:e,\u0275providers:t}}function pd(...e){let t=[Fa,Jr,ka,{provide:Pa,useExisting:ka},{provide:Ra,useFactory:()=>C(Jr)},{provide:fd,useValue:Am,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Mr(t)}function hd(e){return Rm(La.Interceptors,e.map(t=>({provide:fd,useValue:t,multi:!0})))}function gd(){return Rm(La.Fetch,[Jr,{provide:Ra,useExisting:Jr}])}var Xr=new T("AASTRIKA_CONFIG");var Ut=class e{http=C(Fa);config=C(Xr);base=this.config.apiBase;studio=`${this.base}/v1/studio`;assessment=`${this.base}/v1/quiz`;usage=`${this.base}/v1/usage`;auth=`${this.base}/auth`;currentUser=F(null);creator(){return this.config.creator?.()??this.currentUser()?.username??null}me(){return this.http.get(`${this.auth}/me`)}login(t,n){return this.http.post(`${this.auth}/login`,{username:t,password:n})}logout(){return this.http.post(`${this.auth}/logout`,{})}voices(){return this.http.get(`${this.studio}/list-voices`)}uploadDoc(t){let n=new FormData;return n.append("file",t),n.append("kind","document"),this.http.post(`${this.studio}/upload`,n)}planEdits(t){return this.http.post(`${this.studio}/generate-plan`,t)}plan(t){return this.http.post(`${this.studio}/generate-plan`,t)}uploadReference(t){let n=new FormData;return n.append("file",t),n.append("kind","reference-video"),this.http.post(`${this.studio}/upload`,n)}uploadImage(t){let n=new FormData;return n.append("file",t),n.append("kind","image"),this.http.post(`${this.studio}/upload`,n)}reviseplan(t,n){return this.http.patch(`${this.studio}/revise-plan/${t}`,n)}generateVideo(t,n={}){return this.http.post(`${this.studio}/generate-video/${t}`,n)}studioJobs(){return this.http.get(`${this.studio}/list-videos`)}job(t){return this.http.get(`${this.studio}/get-video/${t}`)}downloadVideoUrl(t){return this.http.get(`${this.studio}/download-video/${t}?as=url`)}downloadVideoHref(t){return`${this.studio}/download-video/${t}`}deleteVideo(t){return this.http.delete(`${this.studio}/delete-video/${t}`)}languages(){return this.http.get(`${this.assessment}/languages`)}assessmentJobs(){return this.http.get(`${this.assessment}/list`)}generateAssessment(t){return this.http.post(`${this.assessment}/generate`,t)}readSources(t,n,r){let o=new FormData;for(let i of t)o.append("files",i);return n.trim()&&o.append("links",n),r&&o.append("language",r),this.http.post(`${this.assessment}/upload`,o)}saveAssessment(t,n){return this.http.patch(`${this.assessment}/update/${t}`,{assessment:n})}exportUrl(t,n="xlsx"){return this.http.get(`${this.assessment}/export/${t}?format=${n}&as=url`)}exportHref(t,n="xlsx"){return`${this.assessment}/export/${t}?format=${n}`}deleteQuiz(t){return this.http.delete(`${this.assessment}/delete/${t}`)}usageReport(t={}){let n=Object.fromEntries(Object.entries(t).filter(([,r])=>r!=null&&r!==""));return this.http.post(`${this.usage}/get-report`,n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"})};function md(e){return e.video===!0}var Pm=(e,t)=>{let n=C(Xr),r=C(Ut).creator(),o={},i=s=>!r||!s.body||typeof s.body!="object"||s.body instanceof FormData||Array.isArray(s.body)||"creator"in s.body?s:s.clone({body:H(L({},s.body),{creator:r})});if(!n.getAuthHeaders){let s=i(e);return t(Object.keys(o).length?s.clone({setHeaders:o}):s)}return Gt(Promise.resolve(n.getAuthHeaders())).pipe(Pn(s=>t(i(e).clone({setHeaders:L(L({},o),s)}))))};var Fm={apiBase:""},eo=Fm,Lm=!1;function IE(){if(!Lm)throw new Error(`Aastrika: configure() was never called. A host must supply at least apiBase:
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function go(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var we=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(q(r))try{r()}catch(i){t=i instanceof Pi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Kd(i)}catch(s){t=t??[],s instanceof Pi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Pi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Kd(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)&&go(n,t)}remove(t){let{_finalizers:n}=this;n&&go(n,t),t instanceof e&&t._removeParent(this)}};we.EMPTY=(()=>{let e=new we;return e.closed=!0,e})();var ul=we.EMPTY;function Fi(e){return e instanceof we||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function Kd(e){q(e)?e():e.unsubscribe()}var ht={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var vr={setTimeout(e,t,...n){let{delegate:r}=vr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=vr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Li(e){vr.setTimeout(()=>{let{onUnhandledError:t}=ht;if(t)t(e);else throw e})}function ho(){}var Jd=dl("C",void 0,void 0);function Xd(e){return dl("E",void 0,e)}function ef(e){return dl("N",e,void 0)}function dl(e,t,n){return{kind:e,value:t,error:n}}var kn=null;function _r(e){if(ht.useDeprecatedSynchronousErrorHandling){let t=!kn;if(t&&(kn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kn;if(kn=null,n)throw r}}else e()}function tf(e){ht.useDeprecatedSynchronousErrorHandling&&kn&&(kn.errorThrown=!0,kn.error=e)}var Rn=class extends we{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Fi(t)&&t.add(this)):this.destination=$y}static create(t,n,r){return new Cr(t,n,r)}next(t){this.isStopped?pl(ef(t),this):this._next(t)}error(t){this.isStopped?pl(Xd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?pl(Jd,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()}}},Hy=Function.prototype.bind;function fl(e,t){return Hy.call(e,t)}var gl=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Vi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Vi(r)}else Vi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Vi(n)}}},Cr=class extends Rn{constructor(t,n,r){super();let o;if(q(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ht.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&fl(t.next,i),error:t.error&&fl(t.error,i),complete:t.complete&&fl(t.complete,i)}):o=t}this.destination=new gl(o)}};function Vi(e){ht.useDeprecatedSynchronousErrorHandling?tf(e):Li(e)}function Uy(e){throw e}function pl(e,t){let{onStoppedNotification:n}=ht;n&&vr.setTimeout(()=>n(e,t))}var $y={closed:!0,next:ho,error:Uy,complete:ho};var br=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ji(e){return e}function nf(e){return e.length===0?ji:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var Q=class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,r){let o=Gy(t)?t:new Cr(t,n,r);return _r(()=>{let{operator:i,source:s}=this;o.add(i?i.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=rf(n),new n((r,o)=>{let i=new Cr({next:s=>{try{t(s)}catch(a){o(a),i.unsubscribe()}},error:o,complete:r});this.subscribe(i)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[br](){return this}pipe(...t){return nf(t)(this)}toPromise(t){return t=rf(t),new t((n,r)=>{let o;this.subscribe(i=>o=i,i=>r(i),()=>n(o))})}};Q.create=e=>new Q(e);function rf(e){var t;return(t=e??ht.Promise)!==null&&t!==void 0?t:Promise}function zy(e){return e&&q(e.next)&&q(e.error)&&q(e.complete)}function Gy(e){return e&&e instanceof Rn||zy(e)&&Fi(e)}function Wy(e){return q(e?.lift)}function Ae(e){return t=>{if(Wy(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 Oe(e,t,n,r,o){return new hl(e,t,n,r,o)}var hl=class extends Rn{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 of=Ri(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ke=class extends Q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new Bi(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new of}next(t){_r(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){_r(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){_r(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:r,observers:o}=this;return n||r?ul:(this.currentObservers=null,o.push(t),new we(()=>{this.currentObservers=null,go(o,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:r,isStopped:o}=this;n?t.error(r):o&&t.complete()}asObservable(){let t=new Q;return t.source=this,t}};ke.create=(e,t)=>new Bi(e,t);var Bi=class extends ke{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:ul}};var mo=class extends ke{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var ml={now(){return(ml.delegate||Date).now()},delegate:void 0};var Dr=class extends ke{constructor(t=1/0,n=1/0,r=ml){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let l=1;l<r.length&&r[l]<=s;l+=2)a=l;a&&r.splice(0,a+1)}}};var sf=new Q(e=>e.complete());function af(e){return e&&q(e.schedule)}function yl(e){return e[e.length-1]}function lf(e){return q(yl(e))?e.pop():void 0}function Hi(e){return af(yl(e))?e.pop():void 0}function cf(e,t){return typeof yl(e)=="number"?e.pop():t}function df(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(p){try{c(r.next(p))}catch(h){s(h)}}function l(p){try{c(r.throw(p))}catch(h){s(h)}}function c(p){p.done?i(p.value):o(p.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function uf(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 Pn(e){return this instanceof Pn?(this.v=e,this):new Pn(e)}function ff(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(m){return function(_){return Promise.resolve(_).then(m,h)}}function a(m,_){r[m]&&(o[m]=function(x){return new Promise(function(R,F){i.push([m,x,R,F])>1||l(m,x)})},_&&(o[m]=_(o[m])))}function l(m,_){try{c(r[m](_))}catch(x){y(i[0][3],x)}}function c(m){m.value instanceof Pn?Promise.resolve(m.value.v).then(p,h):y(i[0][2],m)}function p(m){l("next",m)}function h(m){l("throw",m)}function y(m,_){m(_),i.shift(),i.length&&l(i[0][0],i[0][1])}}function pf(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 uf=="function"?uf(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 Ui=(e=>e&&typeof e.length=="number"&&typeof e!="function");function $i(e){return q(e?.then)}function zi(e){return q(e[br])}function Gi(e){return Symbol.asyncIterator&&q(e?.[Symbol.asyncIterator])}function Wi(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 qy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var qi=qy();function Zi(e){return q(e?.[qi])}function Yi(e){return ff(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Pn(n.read());if(o)return yield Pn(void 0);yield yield Pn(r)}}finally{n.releaseLock()}})}function Qi(e){return q(e?.getReader)}function be(e){if(e instanceof Q)return e;if(e!=null){if(zi(e))return Zy(e);if(Ui(e))return Yy(e);if($i(e))return Qy(e);if(Gi(e))return gf(e);if(Zi(e))return Ky(e);if(Qi(e))return Jy(e)}throw Wi(e)}function Zy(e){return new Q(t=>{let n=e[br]();if(q(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yy(e){return new Q(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Qy(e){return new Q(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Li)})}function Ky(e){return new Q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function gf(e){return new Q(t=>{Xy(e,t).catch(n=>t.error(n))})}function Jy(e){return gf(Yi(e))}function Xy(e,t){var n,r,o,i;return df(this,void 0,void 0,function*(){try{for(n=pf(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 it(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 Ki(e,t=0){return Ae((n,r)=>{n.subscribe(Oe(r,o=>it(r,e,()=>r.next(o),t),()=>it(r,e,()=>r.complete(),t),o=>it(r,e,()=>r.error(o),t)))})}function Ji(e,t=0){return Ae((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function hf(e,t){return be(e).pipe(Ji(t),Ki(t))}function mf(e,t){return be(e).pipe(Ji(t),Ki(t))}function yf(e,t){return new Q(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function vf(e,t){return new Q(n=>{let r;return it(n,t,()=>{r=e[qi](),it(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)}),()=>q(r?.return)&&r.return()})}function Xi(e,t){if(!e)throw new Error("Iterable cannot be null");return new Q(n=>{it(n,t,()=>{let r=e[Symbol.asyncIterator]();it(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _f(e,t){return Xi(Yi(e),t)}function Cf(e,t){if(e!=null){if(zi(e))return hf(e,t);if(Ui(e))return yf(e,t);if($i(e))return mf(e,t);if(Gi(e))return Xi(e,t);if(Zi(e))return vf(e,t);if(Qi(e))return _f(e,t)}throw Wi(e)}function Gt(e,t){return t?Cf(e,t):be(e)}function vl(...e){let t=Hi(e);return Gt(e,t)}function xe(e,t){return Ae((n,r)=>{let o=0;n.subscribe(Oe(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:ev}=Array;function tv(e,t){return ev(t)?e(...t):e(t)}function bf(e){return xe(t=>tv(e,t))}var{isArray:nv}=Array,{getPrototypeOf:rv,prototype:ov,keys:iv}=Object;function Df(e){if(e.length===1){let t=e[0];if(nv(t))return{args:t,keys:null};if(sv(t)){let n=iv(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function sv(e){return e&&typeof e=="object"&&rv(e)===ov}function Ef(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function wf(e,t,n,r,o,i,s,a){let l=[],c=0,p=0,h=!1,y=()=>{h&&!l.length&&!c&&t.complete()},m=x=>c<r?_(x):l.push(x),_=x=>{i&&t.next(x),c++;let R=!1;be(n(x,p++)).subscribe(Oe(t,F=>{o?.(F),i?m(F):t.next(F)},()=>{R=!0},void 0,()=>{if(R)try{for(c--;l.length&&c<r;){let F=l.shift();s?it(t,s,()=>_(F)):_(F)}y()}catch(F){t.error(F)}}))};return e.subscribe(Oe(t,m,()=>{h=!0,y()})),()=>{a?.()}}function Er(e,t,n=1/0){return q(t)?Er((r,o)=>xe((i,s)=>t(r,i,o,s))(be(e(r,o))),n):(typeof t=="number"&&(n=t),Ae((r,o)=>wf(r,o,e,n)))}function xf(e=1/0){return Er(ji,e)}function _l(...e){let t=lf(e),{args:n,keys:r}=Df(e),o=new Q(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let p=0;p<s;p++){let h=!1;be(n[p]).subscribe(Oe(i,y=>{h||(h=!0,c--),a[p]=y},()=>l--,void 0,()=>{(!l||!h)&&(c||i.next(r?Ef(r,a):a),i.complete())}))}});return t?o.pipe(bf(t)):o}function Cl(...e){let t=Hi(e),n=cf(e,1/0),r=e;return r.length?r.length===1?be(r[0]):xf(n)(Gt(r,t)):sf}function bl(e,t){return Ae((n,r)=>{let o=0;n.subscribe(Oe(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Dl(e,t){return q(t)?Er(e,t,1):Er(e,1)}function El(e){return Ae((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Fn(e,t){return Ae((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Oe(r,l=>{o?.unsubscribe();let c=0,p=i++;be(e(l,p)).subscribe(o=Oe(r,h=>r.next(t?t(l,h,p,c++):h),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function wl(e){return Ae((t,n)=>{be(e).subscribe(Oe(n,()=>n.complete(),ho)),!n.closed&&t.subscribe(n)})}var ss="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",S=class extends Error{code;constructor(t,n){super(dn(t,n)),this.code=t}};function av(e){return`NG0${Math.abs(e)}`}function dn(e,t){return`${av(e)}${t?": "+t:""}`}function oe(e){for(let t in e)if(e[t]===oe)return t;throw Error("")}function Nf(e,t){for(let n in t)Object.hasOwn(t,n)&&!Object.hasOwn(e,n)&&(e[n]=t[n])}function as(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(as).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function ls(e,t){return e?t?`${e} ${t}`:e:t||""}var lv=oe({__forward_ref__:oe});function $e(e){return e.__forward_ref__=$e,e}function Se(e){return Ll(e)?e():e}function Ll(e){return typeof e=="function"&&Object.hasOwn(e,lv)&&e.__forward_ref__===$e}function te(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function cs(e){return cv(e,us)}function cv(e,t){return Object.hasOwn(e,t)&&e[t]||null}function uv(e){let t=e?.[us]??null;return t||null}function Sl(e){return e&&Object.hasOwn(e,ts)?e[ts]:null}var us=oe({\u0275prov:oe}),ts=oe({\u0275inj:oe}),O=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=te({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Vl(e){return e&&!!e.\u0275providers}var Do=oe({\u0275cmp:oe}),Eo=oe({\u0275dir:oe}),jl=oe({\u0275pipe:oe});var vo=oe({\u0275fac:oe}),Hn=oe({__NG_ELEMENT_ID__:oe}),Sf=oe({__NG_ENV_ID__:oe});function Qt(e){return Hl(e,"@Component"),e[Do]||null}function Bl(e){return Hl(e,"@Directive"),e[Eo]||null}function Af(e){return Hl(e,"@Pipe"),e[jl]||null}function Hl(e,t){if(e==null)throw new S(-919,!1)}function Kt(e){return typeof e=="string"?e:e==null?"":String(e)}var Of=oe({ngErrorCode:oe}),dv=oe({ngErrorMessage:oe}),fv=oe({ngTokenPath:oe});function Ul(e,t){return kf("",-200,t)}function ds(e,t){throw new S(-201,!1)}function kf(e,t,n){let r=new S(t,e);return r[Of]=t,r[dv]=e,n&&(r[fv]=n),r}function pv(e){return e[Of]}var Il;function Rf(){return Il}function Be(e){let t=Il;return Il=e,t}function $l(e,t,n){let r=cs(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;ds(e,"")}var Un=globalThis;var gv={},Ln=gv,hv="__NG_DI_FLAG__",Ml=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Vn(n)||0;try{return this.injector.get(t,r&8?null:Ln,r)}catch(o){if(yr(o))return o;throw o}}};function mv(e,t=0){let n=ki();if(n===void 0)throw new S(-203,!1);if(n===null)return $l(e,void 0,t);{let r=yv(t),o=n.retrieve(e,r);if(yr(o)){if(r.optional)return null;throw o}return o}}function $(e,t=0){return(Rf()||mv)(Se(e),t)}function b(e,t){return $(e,Vn(t))}function Vn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Tl(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=0;for(let s=0;s<r.length;s++){let a=r[s],l=vv(a);typeof l=="number"?l===-1?o=a.token:i|=l:o=a}t.push($(o,i))}else t.push($(r))}return t}function vv(e){return e[hv]}function un(e,t){let n=Object.hasOwn(e,vo);return n?e[vo]:null}function Pf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Ff(e){return e.flat(Number.POSITIVE_INFINITY)}function fs(e,t){e.forEach(n=>Array.isArray(n)?fs(n,t):t(n))}function zl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function wo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Lf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ps(e,t,n){let r=Sr(e,t);return r>=0?e[r|1]=n:(r=~r,Lf(e,r,t,n)),r}function gs(e,t){let n=Sr(e,t);if(n>=0)return e[n|1]}function Sr(e,t){return _v(e,t,1)}function _v(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 fn={},He=[],xo=new O(""),So=new O("",-1),Gl=new O(""),xr=class{get(t,n=Ln){if(n===Ln){let o=kf("",-201);throw o.name="\u0275NotFound",o}return n}};function Ir(e){return{\u0275providers:e}}function Vf(...e){return{\u0275providers:Wl(!0,e),\u0275fromNgModule:!0}}function Wl(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return fs(t,s=>{let a=s;ns(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&jf(o,i),n}function jf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ql(o,i=>{t(i,r)})}}function ns(e,t,n,r){if(e=Se(e),!e)return!1;let o=null,i=Sl(e),s=!i&&Qt(e);if(!i&&!s){let l=e.ngModule;if(i=Sl(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)ns(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;fs(i.imports,p=>{ns(p,t,n,r)&&(c||=[],c.push(p))}),c!==void 0&&jf(c,t)}if(!a){let c=un(o)||(()=>new o);t({provide:o,useFactory:c,deps:He},o),t({provide:Gl,useValue:o,multi:!0},o),t({provide:xo,useValue:()=>$(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;ql(l,p=>{t(p,c)})}}else return!1;return o!==e&&e.providers!==void 0}function ql(e,t){for(let n of e)Vl(n)&&(n=n.\u0275providers),Array.isArray(n)?ql(n,t):t(n)}var Cv=oe({provide:String,useValue:oe});function Bf(e){return e!==null&&typeof e=="object"&&Cv in e}function bv(e){return!!(e&&e.useExisting)}function Dv(e){return!!(e&&e.useFactory)}function jn(e){return typeof e=="function"}function Hf(e){return!!e.useClass}var Io=new O(""),es={},If={},xl;function Mr(){return xl===void 0&&(xl=new xr),xl}var Ue=class{},Bn=class extends Ue{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,Al(t,s=>this.processProvider(s)),this.records.set(So,wr(void 0,this)),o.has("environment")&&this.records.set(Ue,wr(void 0,this));let i=this.records.get(Io);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gl,He,{self:!0}))}retrieve(t,n){let r=Vn(n)||0;try{return this.get(t,Ln,r)}catch(o){if(yr(o))return o;throw o}}destroy(){yo(this),this._destroyed=!0;let t=P(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(),P(t)}}onDestroy(t){return yo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){yo(this);let n=At(this),r=Be(void 0),o;try{return t()}finally{At(n),Be(r)}}get(t,n=Ln,r){if(yo(this),Object.hasOwn(t,Sf))return t[Sf](this);let o=Vn(r),i,s=At(this),a=Be(void 0);try{if(!(o&4)){let c=this.records.get(t);if(c===void 0){let p=Iv(t)&&cs(t);p&&this.injectableDefInScope(p)?c=wr(Nl(t),es):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,o)}let l=o&2?Mr():this.parent;return n=o&8&&n===Ln?null:n,l.get(t,n)}catch(l){let c=pv(l);throw c===-200||c===-201?new S(c,null):l}finally{Be(a),At(s)}}resolveInjectorInitializers(){let t=P(null),n=At(this),r=Be(void 0),o;try{let i=this.get(xo,He,{self:!0});for(let s of i)s()}finally{At(n),Be(r),P(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Se(t);let n=jn(t)?t:Se(t&&t.provide),r=wv(t);if(!jn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=wr(void 0,es,!0),o.factory=()=>Tl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=P(null);try{if(n.value===If)throw Ul("");return n.value===es&&(n.value=If,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Sv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{P(o)}}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 Nl(e){let t=cs(e),n=t!==null?t.factory:un(e);if(n!==null)return n;if(e instanceof O)throw new S(-204,!1);if(e instanceof Function)return Ev(e);throw new S(-204,!1)}function Ev(e){if(e.length>0)throw new S(-204,!1);let n=uv(e);return n!==null?()=>n.factory(e):()=>new e}function wv(e){if(Bf(e))return wr(void 0,e.useValue);{let t=Zl(e);return wr(t,es)}}function Zl(e,t,n){let r;if(jn(e)){let o=Se(e);return un(o)||Nl(o)}else if(Bf(e))r=()=>Se(e.useValue);else if(Dv(e))r=()=>e.useFactory(...Tl(e.deps||[]));else if(bv(e))r=(o,i)=>$(Se(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Se(e&&(e.useClass||e.provide));if(xv(e))r=()=>new o(...Tl(e.deps));else return un(o)||Nl(o)}return r}function yo(e){if(e.destroyed)throw new S(-205,!1)}function wr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function xv(e){return!!e.deps}function Sv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Iv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Al(e,t){for(let n of e)Array.isArray(n)?Al(n,t):n&&Vl(n)?Al(n.\u0275providers,t):t(n)}function Tr(e,t){let n;e instanceof Bn?(yo(e),n=e):n=new Ml(e);let r,o=At(n),i=Be(void 0);try{return t()}finally{At(o),Be(i)}}function Uf(){return Rf()!==void 0||ki()!=null}var yt=0,k=1,L=2,ve=3,at=4,We=5,Nr=6,Ar=7,ge=8,Ot=9,vt=10,se=11,Or=12,Yl=13,pn=14,Je=15,gn=16,$n=17,kt=18,Rt=19,Ql=20,Wt=21,hs=22,qt=23,Xe=24,zn=25,Pt=26,me=27,$f=1,Kl=6,Gn=7,Mo=8,Wn=9,fe=10;function Jt(e){return Array.isArray(e)&&typeof e[$f]=="object"}function lt(e){return Array.isArray(e)&&e[$f]===!0}function Jl(e){return(e.flags&4)!==0}function Xt(e){return e.componentOffset>-1}function ms(e){return(e.flags&1)===1}function Ft(e){return!!e.template}function kr(e){return(e[L]&512)!==0}function qn(e){return(e[L]&256)===256}var ys=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ys||{});var Xl="svg",zf="math";function Ie(e){for(;Array.isArray(e);)e=e[yt];return e}function ec(e,t){return Ie(t[e])}function ct(e,t){return Ie(t[e.index])}function vs(e,t){return e.data[t]}function tc(e,t){return e[t]}function nc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function ut(e,t){let n=t[e];return Jt(n)?n:n[yt]}function Gf(e){return(e[L]&4)===4}function _s(e){return(e[L]&128)===128}function Wf(e){return lt(e[ve])}function Lt(e,t){return t==null?null:e[t]}function rc(e){e[$n]=0}function Cs(e){e[L]&1024||(e[L]|=1024,_s(e)&&Zn(e))}function qf(e,t){for(;e>0;)t=t[pn],e--;return t}function Rr(e){return!!(e[L]&9216||e[Xe]?.dirty)}function bs(e){e[vt].changeDetectionScheduler?.notify(8),e[L]&64&&(e[L]|=1024),Rr(e)&&Zn(e)}function Zn(e){e[vt].changeDetectionScheduler?.notify(0);let t=Zt(e);for(;t!==null&&!(t[L]&8192||(t[L]|=8192,!_s(t)));)t=Zt(t)}function Ds(e,t){if(qn(e))throw new S(911,!1);e[Wt]===null&&(e[Wt]=[]),e[Wt].push(t)}function Zf(e,t){if(e[Wt]===null)return;let n=e[Wt].indexOf(t);n!==-1&&e[Wt].splice(n,1)}function Zt(e){let t=e[ve];return lt(t)?t[ve]:t}function oc(e){return e[Ar]??=[]}function ic(e){return e.cleanup??=[]}function Yf(e,t,n,r){let o=oc(t);o.push(n),e.firstCreatePass&&ic(e).push(r,o.length-1)}var H={lFrame:lp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ol=!1;function Qf(){return H.lFrame.elementDepthCount}function Kf(){H.lFrame.elementDepthCount++}function sc(){H.lFrame.elementDepthCount--}function Jf(){return H.bindingsEnabled}function Xf(){return H.skipHydrationRootTNode!==null}function ac(e){return H.skipHydrationRootTNode===e}function lc(){H.skipHydrationRootTNode=null}function V(){return H.lFrame.lView}function pe(){return H.lFrame.tView}function I(e){return H.lFrame.contextLView=e,e[ge]}function M(e){return H.lFrame.contextLView=null,e}function Me(){let e=cc();for(;e!==null&&e.type===64;)e=e.parent;return e}function cc(){return H.lFrame.currentTNode}function ep(){let e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Pr(e,t){let n=H.lFrame;n.currentTNode=e,n.isParent=t}function uc(){return H.lFrame.isParent}function tp(){H.lFrame.isParent=!1}function dc(){return Ol}function _o(e){let t=Ol;return Ol=e,t}function Es(){let e=H.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fc(){return H.lFrame.bindingIndex}function np(e){return H.lFrame.bindingIndex=e}function hn(){return H.lFrame.bindingIndex++}function To(e){let t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rp(){return H.lFrame.inI18n}function op(e,t){let n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,ws(t)}function ip(){return H.lFrame.currentDirectiveIndex}function ws(e){H.lFrame.currentDirectiveIndex=e}function sp(e){let t=H.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function pc(){return H.lFrame.currentQueryIndex}function xs(e){H.lFrame.currentQueryIndex=e}function Mv(e){let t=e[k];return t.type===2?t.declTNode:t.type===1?e[We]:null}function gc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Mv(i),o===null||(i=i[pn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=H.lFrame=ap();return r.currentTNode=t,r.lView=e,!0}function Ss(e){let t=ap(),n=e[k];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ap(){let e=H.lFrame,t=e===null?null:e.child;return t===null?lp(e):t}function lp(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 cp(){let e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var hc=cp;function Is(){let e=cp();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 up(e){return(H.lFrame.contextLView=qf(e,H.lFrame.contextLView))[ge]}function _t(){return H.lFrame.selectedIndex}function mn(e){H.lFrame.selectedIndex=e}function Fr(){let e=H.lFrame;return vs(e.tView,e.selectedIndex)}function No(){H.lFrame.currentNamespace=Xl}function Ao(){Tv()}function Tv(){H.lFrame.currentNamespace=null}function mc(){return H.lFrame.currentNamespace}var dp=!0;function Ms(){return dp}function Ts(e){dp=e}function kl(e,t=null,n=null,r){let o=fp(e,t,n,r);return o.resolveInjectorInitializers(),o}function fp(e,t=null,n=null,r,o=new Set){let i=[n||He,Vf(e)],s;return new Bn(i,t||Mr(),s||null,o)}var Pe=class e{static THROW_IF_NOT_FOUND=Ln;static NULL=new xr;static create(t,n){if(Array.isArray(t))return kl({name:""},n,t,"");{let r=t.name??"";return kl({name:r},t.parent,t.providers,r)}}static \u0275prov=te({token:e,providedIn:"any",factory:()=>$(So)});static __NG_ELEMENT_ID__=-1},Fe=new O(""),de=class{static __NG_ELEMENT_ID__=Nv;static __NG_ENV_ID__=t=>t},rs=class extends de{_lView;constructor(t){super(),this._lView=t}get destroyed(){return qn(this._lView)}onDestroy(t){let n=this._lView;return Ds(n,t),()=>Zf(n,t)}};function Nv(){return new rs(V())}var pp=!1,gp=new O(""),Yn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new mo(!1);debugTaskTracker=b(gp,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Q(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Rl=class extends ke{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Uf()&&(this.destroyRef=b(de,{optional:!0})??void 0,this.pendingTasks=b(Yn,{optional:!0})??void 0)}emit(t){let n=P(null);try{super.next(t)}finally{P(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 we&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Re=Rl;function os(...e){}function yc(e){let t,n;function r(){e=os;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 hp(e){return queueMicrotask(()=>e()),()=>{e=os}}var vc="isAngularZone",Co=vc+"_ID",Av=0,De=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Re(!1);onMicrotaskEmpty=new Re(!1);onStable=new Re(!1);onError=new Re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=pp}=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,Rv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(vc)===!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,Ov,os,os);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)}},Ov={};function _c(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 kv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){yc(()=>{e.callbackScheduled=!1,Pl(e),e.isCheckStableRunning=!0,_c(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Pl(e)}function Rv(e){let t=()=>{kv(e)},n=Av++;e._inner=e._inner.fork({name:"angular",properties:{[vc]:!0,[Co]:n,[Co+n]:!0},onInvokeTask:(r,o,i,s,a,l)=>{if(Pv(l))return r.invokeTask(i,s,a,l);try{return Mf(e),r.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Tf(e)}},onInvoke:(r,o,i,s,a,l,c)=>{try{return Mf(e),r.invoke(i,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Fv(l)&&t(),Tf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Pl(e),_c(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 Pl(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Mf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tf(e){e._nesting--,_c(e)}var bo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Re;onMicrotaskEmpty=new Re;onStable=new Re;onError=new Re;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 Pv(e){return mp(e,"__ignore_ng_zone__")}function Fv(e){return mp(e,"__scheduler_tick__")}function mp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var st=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yn=new O("",{factory:()=>{let e=b(De),t=b(Ue),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(st),n.handleError(r))})}}}),yp={provide:xo,useValue:()=>{let e=b(st,{optional:!0})},multi:!0};function A(e,t){let[n,r,o]=il(e,t?.equal),i=n,s=i[Ee];return i.set=r,i.update=o,i.asReadonly=Cc.bind(i),i}function Cc(){let e=this[Ee];if(e.readonlyFn===void 0){let t=()=>this();t[Ee]=e,e.readonlyFn=t}return e.readonlyFn}var Oo=new O("",{factory:()=>Lv}),Lv="ng";var Ns=new O(""),ko=new O("",{providedIn:"platform",factory:()=>"unknown"});var Ro=new O("",{factory:()=>b(Fe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Po=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Vv}return e})();function Vv(){return new Po(V(),Me())}var mt=class{},Fo=new O("",{factory:()=>!0});var bc=new O(""),As=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>new Fl})}return e})(),Fl=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}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)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},is=class{[Ee];constructor(t){this[Ee]=t}destroy(){this[Ee].destroy()}};function Ct(e,t){let n=t?.injector??b(Pe),r=t?.manualCleanup!==!0?n.get(de):null,o,i=n.get(Po,null,{optional:!0}),s=n.get(mt);return i!==null?(o=_p(i.view,s,e),r instanceof rs&&r._lView===i.view&&(r=null)):o=Hv(e,n.get(As),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new is(o)}var vp=U(j({},al),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=_o(!1);try{ll(this)}finally{_o(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=P(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],P(e)}}}),jv=U(j({},vp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(An(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),Bv=U(j({},vp),{consumerMarkedDirty(){this.view[L]|=8192,Zn(this.view),this.notifier.notify(13)},destroy(){if(An(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[qt]?.delete(this)}});function _p(e,t,n){let r=Object.create(Bv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Cp(r,n),e[qt]??=new Set,e[qt].add(r),r.consumerMarkedDirty(r),r}function Hv(e,t,n){let r=Object.create(jv);return r.fn=Cp(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Cp(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function Qn(e){return typeof e=="function"&&e[Ee]!==void 0}function Os(e){return Qn(e)&&typeof e.set=="function"}var Lr=(()=>{class e{internalPendingTasks=b(Yn);scheduler=b(mt);errorHandler=b(yn);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r)}catch(o){this.errorHandler(o),r()}}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})();var ta=Symbol("InputSignalNode#UNSET"),tg=U(j({},po),{transformFn:void 0,applyValueToInputSignal(e,t){On(e,t)}});function Yo(e){return{toString:e}.toString()}var K=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(K||{}),Vs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ng(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var rg=null,or=(()=>{rg=bp;let e=()=>bp;return e.ngInherit=!0,e})();function Jv(){return rg}function bp(e){return e.type.prototype.ngOnChanges&&(e.setInput=e0),Xv}function Xv(){let e=og(this),t=e?.current;if(t){let n=e.previous;if(n===fn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function e0(e,t,n,r,o){let i=this.declaredInputs[r],s=og(e)||t0(e,{previous:fn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Vs(c&&c.currentValue,n,l===fn),ng(e,t,o,n)}var kc="__ngSimpleChanges__";function og(e){return Object.hasOwn(e,kc)&&e[kc]||null}function t0(e,t){return e[kc]=t}var Dp=[];var ne=function(e,t=null,n){for(let r=0;r<Dp.length;r++){let o=Dp[r];o(e,t,n)}};function n0(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Jv()(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 r0(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:p}=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)),p!=null&&(e.destroyHooks??=[]).push(n,p)}}function Rs(e,t,n){ig(e,t,3,n)}function Ps(e,t,n,r){(e[L]&3)===n&&ig(e,t,n,r)}function Dc(e,t){let n=e[L];(n&3)===t&&(n&=16383,n+=1,e[L]=n)}function ig(e,t,n,r){let o=r!==void 0?e[$n]&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[$n]+=65536),(a<i||i==-1)&&(o0(e,n,t,l),e[$n]=(e[$n]&4294901760)+l+2),l++}function Ep(e,t){ne(K.LifecycleHookStart,e,t);let n=P(null);try{t.call(e)}finally{P(n),ne(K.LifecycleHookEnd,e,t)}}function o0(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[L]>>14<e[$n]>>16&&(e[L]&3)===t&&(e[L]+=16384,Ep(a,i)):Ep(a,i)}var jr=-1,Xn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function i0(e){return(e.flags&8)!==0}function s0(e){return(e.flags&16)!==0}function a0(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];c0(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function l0(e){return e===3||e===4||e===6}function c0(e){return e.charCodeAt(0)===64}function Br(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?wp(e,n,o,null,t[++r]):wp(e,n,o,null,null))}}return e}function wp(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function sg(e){return e!==jr}function js(e){return e&32767}function u0(e){return e>>16}function Bs(e,t){let n=u0(e),r=t;for(;n>0;)r=r[pn],n--;return r}var Rc=!0;function Hs(e){let t=Rc;return Rc=e,t}var d0=256,ag=d0-1,lg=5,f0=0,Vt={};function p0(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:Object.hasOwn(n,Hn)&&(r=n[Hn]),r==null&&(r=n[Hn]=f0++);let o=r&ag,i=1<<o;t.data[e+(o>>lg)]|=i}function Us(e,t){let n=cg(e,t);if(n!==-1)return n;let r=t[k];r.firstCreatePass&&(e.injectorIndex=t.length,Ec(r.data,e),Ec(t,null),Ec(r.blueprint,null));let o=lu(e,t),i=e.injectorIndex;if(sg(o)){let s=js(o),a=Bs(o,t),l=a[k].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function Ec(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function lu(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=gg(o),r===null)return jr;if(n++,o=o[pn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return jr}function Pc(e,t,n){p0(e,t,n)}function ug(e,t,n){if(n&8||e!==void 0)return e;ds(t,"NodeInjector")}function dg(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ot],i=Be(void 0);try{return o?o.get(t,r,n&8):$l(t,r,n&8)}finally{Be(i)}}return ug(r,t,n)}function fg(e,t,n,r=0,o){if(e!==null){if(t[L]&2048&&!(r&2)){let s=y0(e,t,n,r,Vt);if(s!==Vt)return s}let i=pg(e,t,n,r,Vt);if(i!==Vt)return i}return dg(t,n,r,o)}function pg(e,t,n,r,o){let i=h0(n);if(typeof i=="function"){if(!gc(t,e,r))return r&1?ug(o,n,r):dg(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ds(n);else return s}finally{hc()}}else if(typeof i=="number"){let s=null,a=cg(e,t),l=jr,c=r&1?t[Je][We]:null;for((a===-1||r&4)&&(l=a===-1?lu(e,t):t[a+8],l===jr||!Sp(r,!1)?a=-1:(s=t[k],a=js(l),t=Bs(l,t)));a!==-1;){let p=t[k];if(xp(i,a,p.data)){let h=g0(a,t,n,s,r,c);if(h!==Vt)return h}l=t[a+8],l!==jr&&Sp(r,t[k].data[a+8]===c)&&xp(i,a,t)?(s=p,a=js(l),t=Bs(l,t)):a=-1}}return o}function g0(e,t,n,r,o,i){let s=t[k],a=s.data[e+8],l=r==null?Xt(a)&&Rc:r!=s&&(a.type&3)!==0,c=o&1&&i===a,p=Fs(a,s,n,l,c);return p!==null?Ho(t,s,p,a,o):Vt}function Fs(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,p=i>>20,h=r?a:a+p,y=o?a+p:c;for(let m=h;m<y;m++){let _=s[m];if(m<l&&n===_||m>=l&&_.type===n)return m}if(o){let m=s[l];if(m&&Ft(m)&&m.type===n)return l}return null}function Ho(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Xn){let a=i;if(a.resolving)throw Ul("");let l=Hs(a.canSeeViewProviders);a.resolving=!0;let c=s[n].type||s[n],p,h=a.injectImpl?Be(a.injectImpl):null,y=gc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&n0(n,s[n],t)}finally{h!==null&&Be(h),Hs(l),a.resolving=!1,hc()}}return i}function h0(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=Object.hasOwn(e,Hn)?e[Hn]:void 0;return typeof t=="number"?t>=0?t&ag:m0:t}function xp(e,t,n){let r=1<<e;return!!(n[t+(e>>lg)]&r)}function Sp(e,t){return!(e&2)&&!(e&1&&t)}var vn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fg(this._tNode,this._lView,t,Vn(r),n)}};function m0(){return new vn(Me(),V())}function wt(e){return Yo(()=>{let t=e.prototype.constructor,n=t[vo]||Fc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[vo]||Fc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Fc(e){return Ll(e)?()=>{let t=Fc(Se(e));return t&&t()}:un(e)}function y0(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[L]&2048&&!kr(s);){let a=pg(i,s,n,r|2,Vt);if(a!==Vt)return a;r&=-5;let l=i.parent;if(!l){let c=s[Ql];if(c){let p=c.get(n,Vt,r);if(p!==Vt)return p}l=gg(s),s=s[pn]}i=l}return o}function gg(e){let t=e[k],n=t.type;return n===2?t.declTNode:n===1?e[We]:null}function en(e){return{token:e.token,providedIn:e.autoProvided===!1?null:"root",factory:e.factory,value:void 0}}function v0(){return zr(Me(),V())}function zr(e,t){return new xt(ct(e,t))}var xt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=v0}return e})();function _0(e){return e instanceof xt?e.nativeElement:e}function C0(){return this._results[Symbol.iterator]()}var $s=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ke}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Ff(t);(this._changesDetected=!Pf(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=C0};function hg(e){return(e.flags&128)===128}var cu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(cu||{}),mg=new Map,b0=0;function D0(){return b0++}function E0(e){mg.set(e[Rt],e)}function Lc(e){mg.delete(e[Rt])}var Ip="__ngContext__";function Hr(e,t){Jt(t)?(e[Ip]=t[Rt],E0(t)):e[Ip]=t}function yg(e){return _g(e[Or])}function vg(e){return _g(e[at])}function _g(e){for(;e!==null&&!lt(e);)e=e[at];return e}var Vc;function uu(e){Vc=e}function Cg(){if(Vc!==void 0)return Vc;if(typeof document<"u")return document;throw new S(210,!1)}var bg="r";var Dg="di";var Eg=!1,wg=new O("",{factory:()=>Eg});var Mp=new WeakMap;function w0(e,t){if(e==null||typeof e!="object")return;let n=Mp.get(e);n||(n=new WeakSet,Mp.set(e,n)),n.add(t)}var x0=(e,t,n,r)=>{};function S0(e,t,n,r){x0(e,t,n,r)}function du(e){return(e.flags&32)===32}var I0=()=>null;function xg(e,t,n=!1){return I0(e,t,n)}function Sg(e,t){let n=e.contentQueries;if(n!==null){let r=P(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];xs(i),a.contentQueries(2,t[s],s)}}}finally{P(r)}}}function jc(e,t,n){xs(0);let r=P(null);try{t(e,n)}finally{P(r)}}function Ig(e,t,n){if(Jl(t)){let r=P(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{P(r)}}}var Et=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Et||{});var zs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ss})`}};function Uo(e){return e instanceof zs?e.changingThisBreaksApplicationSecurity:e}function Mg(e,t){let n=Tg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ss})`)}return n===t}function Tg(e){return e instanceof zs&&e.getTypeName()||null}var M0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ng(e){return e=String(e),e.match(M0)?e:"unsafe:"+e}function T0(e,t){return e.createText(t)}function N0(e,t,n){e.setValue(t,n)}function Ag(e,t,n){return e.createElement(t,n)}function Kn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Og(e,t,n){e.appendChild(t,n)}function Tp(e,t,n,r,o){r!==null?Kn(e,t,n,r,o):Og(e,t,n)}function kg(e,t,n,r){e.removeChild(null,t,n,r)}function A0(e,t,n){e.setAttribute(t,"style",n)}function O0(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Rg(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&a0(e,t,r),o!==null&&O0(e,t,o),i!==null&&A0(e,t,i)}function na(e){let t=k0();return t?t.sanitize(ys.URL,e)||"":Mg(e,"URL")?Uo(e):Ng(Kt(e))}function k0(){let e=V();return e&&e[vt].sanitizer}function R0(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 Pg="ng-template";function P0(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&R0(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(fu(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 fu(e){return e.type===4&&e.value!==Pg}function F0(e,t,n){let r=e.type===4&&!n?Pg:e.value;return t===r}function L0(e,t,n){let r=4,o=e.attrs,i=o!==null?B0(o):0,s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(typeof l=="number"){if(!s&&!bt(r)&&!bt(l))return!1;if(s&&bt(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!F0(e,l,n)||l===""&&t.length===1){if(bt(r))return!1;s=!0}}else if(r&8){if(o===null||!P0(e,o,l,n)){if(bt(r))return!1;s=!0}}else{let c=t[++a],p=V0(l,o,fu(e),n);if(p===-1){if(bt(r))return!1;s=!0;continue}if(c!==""){let h;if(p>i?h="":h=o[p+1].toLowerCase(),r&2&&c!==h){if(bt(r))return!1;s=!0}}}}return bt(r)||s}function bt(e){return(e&1)===0}function V0(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 H0(t,e)}function j0(e,t,n=!1){for(let r=0;r<t.length;r++)if(L0(e,t[r],n))return!0;return!1}function B0(e){for(let t=0;t<e.length;t++){let n=e[t];if(l0(n))return t}return e.length}function H0(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 Np(e,t){return e?":not("+t.trim()+")":t}function U0(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!==""&&!bt(s)&&(t+=Np(i,o),o=""),r=s,i=i||!bt(r);n++}return o!==""&&(t+=Np(i,o)),t}function $0(e){return e.map(U0).join(",")}function z0(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(!bt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Te={},jt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(jt||{}),G0;function pu(e,t){return G0(e,t)}var _n=new Set;var RA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Bc=new WeakMap;function Fg(e){return e?e[pn]??e:null}var Vo=new WeakSet;function W0(e,t,n){let r=Bc.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Fg(n);for(let a=r.length-1;a>=0;a--){let{el:l,declarationView:c}=r[a],p=l.parentNode;l===t?(r.splice(a,1),Vo.add(l),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):i&&l===i?(r.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l)):p&&o&&p!==o&&(s===null||c===null||s===c)&&(r.splice(a,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),l.parentNode?.removeChild(l))}}function q0(e,t,n){let r=Fg(n),o=Bc.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):Bc.set(e,[{el:t,declarationView:r}])}var ra=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ra||{}),tn=new O(""),Ap=new Set;function nn(e){Ap.has(e)||(Ap.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var gu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Lg=[0,1,2,3],Vg=(()=>{class e{ngZone=b(De);scheduler=b(mt);errorHandler=b(st,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){b(tn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ne(K.AfterRenderHooksStart),this.executing=!0;for(let r of Lg)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&ne(K.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[zn]??=[]).push(n),Zn(r),r[L]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(ra.AFTER_NEXT_RENDER,n):n()}static \u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})(),Gs=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[zn];t&&(this.view[zn]=t.filter(n=>n!==this))}};function hu(e,t){let n=t?.injector??b(Pe);return nn("NgAfterNextRender"),Y0(e,n,t,!0)}function Z0(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Y0(e,t,n,r){let o=t.get(gu);o.impl??=t.get(Vg);let i=t.get(tn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(de):null,a=t.get(Po,null,{optional:!0}),l=new Gs(o.impl,Z0(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(l),l}var mu=new O("",{factory:()=>{let e=b(Ue),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function jg(e,t,n){let r=e.get(mu);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Q0(e,t){let n=e.get(mu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t)}function K0(e,t){let n=e.get(mu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function J0(e,t){for(let[n,r]of t)jg(e,r.animateFns)}function Op(e,t,n,r){let o=e?.[Pt]?.enter;t!==null&&o&&o.has(n.index)&&J0(r,o)}function kp(e,t,n,r){try{n.get(So)}catch{return r(!1)}let o=e?.[Pt];o?.enter?.has(t.index)&&Q0(n,o.enter.get(t.index).animateFns);let i=X0(e,t,o);if(i.size===0){let s=!1;if(e){let a=[];oa(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&_n.add(e[Rt]),jg(n,()=>e_(e,t,o||void 0,i,r),o||void 0)}function X0(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let l=e[k].data[i].parent;for(;l;){if(l===t){r.set(i,s);break}l=l.parent}}return r}function e_(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let l of a.animateFns){let{promise:c}=l();i.push(c)}n.detachedLeaveAnimationFns=void 0}if(e&&oa(e,t,i),i.length>0){let s=n||e?.[Pt];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),n_(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&_n.delete(e[Rt]),o(!0)})}else e&&_n.delete(e[Rt]),o(!1)}function oa(e,t,n){if(t.type&12){let o=e[t.index];if(lt(o))for(let i=fe;i<o.length;i++){let s=o[i];s[k].type===2&&t_(s,n)}}let r=t.child;for(;r;)oa(e,r,n),r=r.next}function t_(e,t){let n=e[Pt];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s)}let r=e[k].firstChild;for(;r;)oa(e,r,t),r=r.next}function n_(e,t,n){t.then(()=>{e[Pt]?.running===t&&(e[Pt].running=void 0,_n.delete(e[Rt])),n(!0)})}function Vr(e,t,n,r,o,i,s,a){if(o!=null){let l,c=!1;lt(o)?l=o:Jt(o)&&(c=!0,o=o[yt]);let p=Ie(o);e===0&&r!==null?(Op(a,r,i,n),s==null?Og(t,r,p):Kn(t,r,p,s||null,!0)):e===1&&r!==null?(Op(a,r,i,n),Kn(t,r,p,s||null,!0),W0(i,p,a)):e===2?(a?.[Pt]?.leave?.has(i.index)&&q0(i,p,a),Vo.delete(p),kp(a,i,n,h=>{if(Vo.has(p)){Vo.delete(p);return}kg(t,p,c,h)})):e===3&&(Vo.delete(p),kp(a,i,n,()=>{t.destroyNode(p)})),l!=null&&h_(t,e,n,l,i,r,s)}}function r_(e,t){Bg(e,t),t[yt]=null,t[We]=null}function o_(e,t,n,r,o,i){r[yt]=o,r[We]=t,sa(e,r,n,1,o,i)}function Bg(e,t){t[vt].changeDetectionScheduler?.notify(9),sa(e,t,t[se],2,null,null)}function i_(e){let t=e[Or];if(!t)return wc(e[k],e);for(;t;){let n=null;if(Jt(t))n=t[Or];else{let r=t[fe];r&&(n=r)}if(!n){for(;t&&!t[at]&&t!==e;)Jt(t)&&wc(t[k],t),t=t[ve];t===null&&(t=e),Jt(t)&&wc(t[k],t),n=t&&t[at]}t=n}}function yu(e,t){let n=e[Wn],r=n.indexOf(t);n.splice(r,1)}function ia(e,t){if(qn(t))return;let n=t[se];n.destroyNode&&sa(e,t,n,3,null,null),i_(t)}function wc(e,t){if(qn(t))return;let n=P(null);try{t[L]&=-129,t[L]|=256,t[Xe]&&An(t[Xe]),a_(e,t),s_(e,t),t[k].type===1&&t[se].destroy();let r=t[gn];if(r!==null&&lt(t[ve])){r!==t[ve]&&yu(r,t);let o=t[kt];o!==null&&o.detachView(e)}Lc(t)}finally{P(n)}}function s_(e,t){let n=e.cleanup,r=t[Ar];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[Ar]=null);let o=t[Wt];if(o!==null){t[Wt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[qt];if(i!==null){t[qt]=null;for(let s of i)s.destroy()}}function a_(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 Xn)){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];ne(K.LifecycleHookStart,a,l);try{l.call(a)}finally{ne(K.LifecycleHookEnd,a,l)}}else{ne(K.LifecycleHookStart,o,i);try{i.call(o)}finally{ne(K.LifecycleHookEnd,o,i)}}}}}function l_(e,t,n){if(t===null)throw new S(510,!1);return c_(e,t.parent,n)}function c_(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[yt];if(Xt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Et.None||o===Et.Emulated)return null}return ct(r,n)}function u_(e,t,n){return f_(e,t,n)}function d_(e,t,n){return e.type&40?ct(e,n):null}var f_=d_,Rp;function vu(e,t,n,r){let o=l_(e,r,t),i=t[se],s=r.parent||t[We],a=u_(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)Tp(i,o,n[l],a,!1);else Tp(i,o,n,a,!1);Rp!==void 0&&Rp(i,r,t,n,o)}function jo(e,t){if(t!==null){let n=t.type;if(n&3)return ct(t,e);if(n&4)return Hc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return jo(e,r);{let o=e[t.index];return lt(o)?Hc(-1,o):Ie(o)}}else{if(n&128)return jo(e,t.next);if(n&32)return pu(t,e)()||Ie(e[t.index]);{let r=Hg(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Zt(e[Je]);return jo(o,r)}else return jo(e,t.next)}}}return null}function Hg(e,t){if(t!==null){let r=e[Je][We],o=t.projection;return r.projection[o]}return null}function Hc(e,t){let n=fe+e+1;if(n<t.length){let r=t[n],o=r[k].firstChild;if(o!==null)return jo(r,o)}return t[Gn]}function _u(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ot];if(n.type===128){n=n.next;continue}let l=r[n.index],c=n.type;if(s&&t===0&&(l&&Hr(Ie(l),r),n.flags|=2),!du(n))if(c&8)_u(e,t,n.child,r,o,i,!1),Vr(t,e,a,o,l,n,i,r);else if(c&32){let p=pu(n,r),h;for(;h=p();)Vr(t,e,a,o,h,n,i,r);Vr(t,e,a,o,l,n,i,r)}else c&16?g_(e,t,r,n,o,i):Vr(t,e,a,o,l,n,i,r);n=s?n.projectionNext:n.next}}function sa(e,t,n,r,o,i){e.type===3?p_(n,r,t,o,i):_u(n,r,e.firstChild,t,o,i,!1)}function p_(e,t,n,r,o){let s=n[k].firstChild,a=s.next,l=Ie(n[s.index]),c=Ie(n[a.index]),p=a.index+1,h=n[p];if(t===1||t===0)r!==null&&(h&&h.hasChildNodes()?Kn(e,r,h,o,!0):(Kn(e,r,l,o,!0),Kn(e,r,c,o,!0)));else if(t===2){if(h||(h=document.createDocumentFragment(),n[p]=h),l&&l.parentNode===h)return;let y=l;for(;y!==null;){let m=y.nextSibling;if(h.appendChild(y),y===c)break;y=m}}}function g_(e,t,n,r,o,i){let s=n[Je],l=s[We].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let p=l[c];Vr(t,e,n[Ot],o,p,r,i,n)}else{let c=l,p=s[ve];hg(r)&&(c.flags|=128),_u(e,t,c,p,o,i,!0)}}function h_(e,t,n,r,o,i,s){let a=r[Gn],l=Ie(r);if(a!==l&&Vr(t,e,n,i,a,o,s),(r[L]&4)===0)for(let c=fe;c<r.length;c++){let p=r[c];sa(p[k],p,e,t,i,a)}}function m_(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:jt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=jt.Important),e.setStyle(n,r,o,i))}}function Cu(e,t,n,r,o,i,s,a,l,c,p){let h=me+r,y=h+o,m=y_(h,y),_=typeof c=="function"?c():c;return m[k]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:y,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:_,incompleteFirstPass:!1,ssrId:p}}function y_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Te);return n}function v_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function bu(e,t,n,r,o,i,s,a,l,c,p){let h=t.blueprint.slice();return h[yt]=o,h[L]=r|4|128|8|64|1024,(c!==null||e&&e[L]&2048)&&(h[L]|=2048),rc(h),h[ve]=h[pn]=e,h[ge]=n,h[vt]=s||e&&e[vt],h[se]=a||e&&e[se],h[Ot]=l||e&&e[Ot]||null,h[We]=i,h[Rt]=D0(),h[Nr]=p,h[Ql]=c,h[Je]=t.type==2?e[Je]:h,h}function __(e,t,n){let r=ct(t,e),o=v_(n),i=e[vt].rendererFactory,s=Du(e,bu(e,o,null,Ug(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ug(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function $g(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 Du(e,t){return e[Or]?e[Yl][at]=t:e[Or]=t,e[Yl]=t,t}function f(e=1){zg(pe(),V(),_t()+e,!1)}function zg(e,t,n,r){if(!r)if((t[L]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Rs(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ps(t,i,0,n)}mn(n)}var Qo=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Qo||{});function er(e,t,n,r){let o=P(null);try{let[i,s,a]=e.inputs[n],l=null;(s&Qo.SignalBased)!==0&&(l=t[i][Ee]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,l,r,n,i):ng(t,l,i,r)}finally{P(o)}}function Gg(e,t,n,r,o){let i=_t(),s=r&2;try{mn(-1),s&&t.length>me&&zg(e,t,me,!1);let a=s?K.TemplateUpdateStart:K.TemplateCreateStart;ne(a,o,n),n(r,o)}finally{mn(i);let a=s?K.TemplateUpdateEnd:K.TemplateCreateEnd;ne(a,o,n)}}function Wg(e,t,n){x_(e,t,n),(n.flags&64)===64&&S_(e,t,n)}function Eu(e,t,n=ct){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 C_(e,t,n,r){let i=r.get(wg,Eg)||n===Et.ShadowDom||n===Et.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return b_(s),s}function b_(e){D_(e)}var D_=()=>null;function E_(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function qg(e,t,n,r,o,i){let s=t[k];if(wu(e,s,t,n,r)){Xt(e)&&w_(t,e.index);return}e.type&3&&(n=E_(n)),Zg(e,t,n,r,o,i)}function Zg(e,t,n,r,o,i){if(e.type&3){let s=ct(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function w_(e,t){let n=ut(t,e);n[L]&16||(n[L]|=64)}function x_(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Xt(n)&&__(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Us(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],l=Ho(t,e,s,n);if(Hr(l,t),i!==null&&A_(t,s-r,l,a,n,i),Ft(a)){let c=ut(n.index,t);c[ge]=Ho(t,e,s,n)}}}function S_(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=ip();try{mn(i);for(let a=r;a<o;a++){let l=e.data[a],c=t[a];ws(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&I_(l,c)}}finally{mn(-1),ws(s)}}function I_(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function M_(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];j0(t,i.selectors,!1)&&(r??=[],Ft(i)?r.unshift(i):r.push(i))}return r}function T_(e,t,n,r,o,i){let s=ct(e,t);N_(t[se],s,i,e.value,n,r,o)}function N_(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else{let a=s==null?Kt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function A_(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];er(r,n,l,c)}}function Yg(e,t,n,r,o){let i=me+n,s=t[k],a=o(s,t,e,r,n);t[i]=a,Pr(e,!0);let l=e.type===2;return l?(Rg(t[se],a,e),(Qf()===0||ms(e))&&Hr(a,t),Kf()):Hr(a,t),Ms()&&(!l||!du(e))&&vu(s,t,a,e),e}function Qg(e){let t=e;return uc()?tp():(t=t.parent,Pr(t,!1)),t}function O_(e,t){let n=e[Ot];if(!n)return;let r;try{r=n.get(yn,null)}catch{r=null}r?.(t)}function wu(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],p=s[l+1],h=t.data[c];er(h,n[c],p,o),a=!0}if(i)for(let l of i){let c=n[l],p=t.data[l];er(p,c,r,o),a=!0}return a}function k_(e,t,n,r,o,i){let s=null,a=null,l=null,c=!1,p=e.directiveToIndex.get(r.type);if(typeof p=="number"?s=p:[s,a,l]=p,a!==null&&l!==null&&e.hostDirectiveInputs&&Object.hasOwn(e.hostDirectiveInputs,o)){let h=e.hostDirectiveInputs[o];for(let y=0;y<h.length;y+=2){let m=h[y];if(m>=a&&m<=l){let _=t.data[m],x=h[y+1];er(_,n[m],x,i),c=!0}else if(m>l)break}}return s!==null&&Object.hasOwn(r.inputs,o)&&(er(r,n[s],o,i),c=!0),c}function R_(e,t){let n=ut(t,e),r=n[k];P_(r,n);let o=n[yt];o!==null&&n[Nr]===null&&(n[Nr]=xg(o,n[Ot])),ne(K.ComponentStart);try{xu(r,n,n[ge])}finally{ne(K.ComponentEnd,n[ge])}}function P_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function xu(e,t,n){Ss(t);try{let r=e.viewQuery;r!==null&&jc(1,r,n);let o=e.template;o!==null&&Gg(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[kt]?.finishViewCreation(e),e.staticContentQueries&&Sg(e,t),e.staticViewQueries&&jc(2,e.viewQuery,n);let i=e.components;i!==null&&F_(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,Is()}}function F_(e,t){for(let n=0;n<t.length;n++)R_(e,t[n])}function aa(e,t,n,r){let o=P(null);try{let i=t.tView,a=e[L]&4096?4096:16,l=bu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];l[gn]=c;let p=e[kt];return p!==null&&(l[kt]=p.createEmbeddedView(i)),xu(i,l,n),l}finally{P(o)}}function $o(e,t){return!t||t.firstChild===null||hg(e)}function zo(e,t,n,r,o=!1){if(e.type===3){let i=e.firstChild,s=i.next,a=Ie(t[i.index]),l=Ie(t[s.index]),c=a;for(;c!==null&&(r.push(c),c!==l);)c=c.nextSibling;return r}for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];if(i!==null)if(lt(i)){let a=i[Gn];a!==i[yt]&&r.push(Ie(i)),i[L]&4||Kg(i,r),r.push(a)}else r.push(Ie(i));let s=n.type;if(s&8)zo(e,t,n.child,r);else if(s&32){let a=pu(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=Hg(t,n);if(Array.isArray(a))r.push(...a);else{let l=Zt(t[Je]);zo(l[k],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Kg(e,t){for(let n=fe;n<e.length;n++){let r=e[n],o=r[k].firstChild;o!==null&&zo(r[k],r,o,t)}}function Jg(e){if(e[zn]!==null){for(let t of e[zn])t.impl.addSequence(t);e[zn].length=0}}var Xg=[];function L_(e){return e[Xe]??V_(e)}function V_(e){let t=Xg.pop()??Object.create(B_);return t.lView=e,t}function j_(e){e.lView[Xe]!==e&&(e.lView=null,Xg.push(e))}var B_=U(j({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Zn(e.lView)},consumerOnSignalRead(){this.lView[Xe]=this}});function H_(e){let t=e[Xe]??Object.create(U_);return t.lView=e,t}var U_=U(j({},Tn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Zt(e.lView);for(;t&&!eh(t[k]);)t=Zt(t);t&&Cs(t)},consumerOnSignalRead(){this.lView[Xe]=this}});function eh(e){return e.type!==2}function th(e){if(e[qt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[qt])if(r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()),e[qt]===null))return;t=n&&!!(e[L]&8192)}}var $_=100;function nh(e,t=0){let r=e[vt].rendererFactory,o=!1;o||r.begin?.();try{z_(e,t)}finally{o||r.end?.()}}function z_(e,t){let n=dc();try{_o(!0),Uc(e,t);let r=0;for(;Rr(e);){if(r===$_)throw new S(103,!1);r++,Uc(e,1)}}finally{_o(n)}}function G_(e,t,n,r){if(qn(t))return;let o=t[L],i=!1,s=!1;Ss(t);let a=!0,l=null,c=null;i||(eh(e)?(c=L_(t),l=Nn(c)):Mi()===null?(a=!1,c=H_(t),l=Nn(c)):t[Xe]&&(An(t[Xe]),t[Xe]=null));try{rc(t),np(e.bindingStartIndex),n!==null&&Gg(e,t,n,2,r);let p=(o&3)===3;if(!i)if(p){let m=e.preOrderCheckHooks;m!==null&&Rs(t,m,null)}else{let m=e.preOrderHooks;m!==null&&Ps(t,m,0,null),Dc(t,0)}if(s||W_(t),th(t),rh(t,0),e.contentQueries!==null&&Sg(e,t),!i)if(p){let m=e.contentCheckHooks;m!==null&&Rs(t,m)}else{let m=e.contentHooks;m!==null&&Ps(t,m,1),Dc(t,1)}Z_(e,t);let h=e.components;h!==null&&ih(t,h,0);let y=e.viewQuery;if(y!==null&&jc(2,y,r),!i)if(p){let m=e.viewCheckHooks;m!==null&&Rs(t,m)}else{let m=e.viewHooks;m!==null&&Ps(t,m,2),Dc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[hs]){for(let m of t[hs])m();t[hs]=null}i||(Jg(t),t[L]&=-73)}catch(p){throw i||Zn(t),p}finally{c!==null&&(hr(c,l),a&&j_(c)),Is()}}function rh(e,t){for(let n=yg(e);n!==null;n=vg(n))for(let r=fe;r<n.length;r++){let o=n[r];oh(o,t)}}function W_(e){for(let t=yg(e);t!==null;t=vg(t)){if(!(t[L]&2))continue;let n=t[Wn];for(let r=0;r<n.length;r++){let o=n[r];Cs(o)}}}function q_(e,t,n){ne(K.ComponentStart);let r=ut(t,e);try{oh(r,n)}finally{ne(K.ComponentEnd,r[ge])}}function oh(e,t){_s(e)&&Uc(e,t)}function Uc(e,t){let r=e[k],o=e[L],i=e[Xe],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&fo(i)),s||=!1,i&&(i.dirty=!1),e[L]&=-9217,s)G_(r,e,r.template,e[ge]);else if(o&8192){let a=P(null);try{th(e),rh(e,1);let l=r.components;l!==null&&ih(e,l,1),Jg(e)}finally{P(a)}}}function ih(e,t,n){for(let r=0;r<t.length;r++)q_(e,t[r],n)}function Z_(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)mn(~o);else{let i=o,s=n[++r],a=n[++r];op(s,i);let l=t[i];ne(K.HostBindingsUpdateStart,l);try{a(2,l)}finally{ne(K.HostBindingsUpdateEnd,l)}}}}finally{mn(-1)}}function Su(e,t){let n=dc()?64:1088;for(e[vt].changeDetectionScheduler?.notify(t);e;){e[L]|=n;let r=Zt(e);if(kr(e)&&!r)return e;e=r}return null}function sh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function ah(e,t){let n=fe+t;if(n<e.length)return e[n]}function la(e,t,n,r=!0){let o=t[k];if(Y_(o,t,e,n),r){let s=Hc(n,e),a=t[se],l=a.parentNode(e[Gn]);l!==null&&o_(o,e[We],a,t,l,s)}let i=t[Nr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function lh(e,t){let n=Go(e,t);return n!==void 0&&ia(n[k],n),n}function Go(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n];if(r){let o=r[gn];o!==null&&o!==e&&yu(o,r),t>0&&(e[n-1][at]=r[at]);let i=wo(e,fe+t);r_(r[k],r);let s=i[kt];s!==null&&s.detachView(i[k]),r[ve]=null,r[at]=null,r[L]&=-129}return r}function Y_(e,t,n,r){let o=fe+r,i=n.length;r>0&&(n[o-1][at]=t),r<i-fe?(t[at]=n[o],zl(n,fe+r,t)):(n.push(t),t[at]=null),t[ve]=n;let s=t[gn];s!==null&&n!==s&&ch(s,t);let a=t[kt];a!==null&&a.insertView(e),bs(t),t[L]|=128}function ch(e,t){let n=e[Wn],r=t[ve];if(Jt(r))e[L]|=2;else{let o=r[ve][Je];t[Je]!==o&&(e[L]|=2)}n===null?e[Wn]=[t]:n.push(t)}var Cn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[k];return zo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ge]}set context(t){this._lView[ge]=t}get destroyed(){return qn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ve];if(lt(t)){let n=t[Mo],r=n?n.indexOf(this):-1;r>-1&&(Go(t,r),wo(n,r))}this._attachedToViewContainer=!1}ia(this._lView[k],this._lView)}onDestroy(t){Ds(this._lView,t)}markForCheck(){Su(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){bs(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,nh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=kr(this._lView),n=this._lView[gn];n!==null&&!t&&yu(n,this._lView),Bg(this._lView[k],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=kr(this._lView),r=this._lView[gn];r!==null&&!n&&ch(r,this._lView),bs(this._lView)}};function Iu(e){return Rr(e._lView)||!!(e._lView[L]&64)}function Mu(e){Cs(e._lView)}var Ur=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Q_;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=aa(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Cn(i)}}return e})();function Q_(){return Tu(Me(),V())}function Tu(e,t){return e.type&4?new Ur(t,e,zr(e,t)):null}function ca(e,t,n,r,o){let i=e.data[t];if(i===null)i=K_(e,t,n,r,o),rp()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ep();i.injectorIndex=s===null?-1:s.injectorIndex}return Pr(i,!0),i}function K_(e,t,n,r,o){let i=cc(),s=uc(),a=s?i:i&&i.parent,l=e.data[t]=X_(e,a,n,t,r,o);return J_(e,l,i,s),l}function J_(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function X_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Xf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:mc(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function eC(e){let t=e[Kl]??[],r=e[ve][se],o=[];for(let i of t)i.data[Dg]!==void 0?o.push(i):tC(i,r);e[Kl]=o}function tC(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[bg];for(;n<o;){let i=r.nextSibling;kg(t,r,!1),r=i,n++}}}var nC=()=>null,rC=()=>null;function $c(e,t){return nC(e,t)}function uh(e,t,n){return rC(e,t,n)}var dh=class{},tr=class{},Bt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>oC()};function oC(){let e=V(),t=Me(),n=ut(t.index,e);return(Jt(n)?n:e)[se]}var fh=(()=>{class e{static \u0275prov=te({token:e,providedIn:"root",factory:()=>null})}return e})();function ph(e){return e.debugInfo?.className||e.type.name||null}var Ls={},Ws=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Ls,r);return o!==Ls||n===Ls?o:this.parentInjector.get(t,n,r)}};function Nu(e,t,n){return e[t]=n}function iC(e,t){return e[t]}function et(e,t,n){if(n===Te)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Au(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function sC(e,t,n,r,o){let i=Au(e,t,n,r);return et(e,t+2,o)||i}function Jn(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&w0(o,i);let s=Xt(e)?ut(e.index,t):t;Su(s,5);let a=t[ge],l=Pp(t,a,n,o),c=r.__ngNextListenerFn__;for(;c;)l=Pp(t,a,c,o)&&l,c=c.__ngNextListenerFn__;return l}}function Pp(e,t,n,r){let o=P(null);try{return ne(K.OutputStart,t,n),n(r)!==!1}catch(i){return O_(e,i),!1}finally{ne(K.OutputEnd,t,n),P(o)}}function Ou(e,t,n,r,o,i,s,a){let l=ms(e),c=!1,p=null;if(!r&&l&&(p=lC(t,n,i,e.index)),p!==null){let h=p.__ngLastListenerFn__||p;h.__ngNextListenerFn__=s,p.__ngLastListenerFn__=s,c=!0}else{let h=ct(e,n),y=r?r(h):h;S0(n,y,i,a),r||(a.__ngNativeEl__=h);let m=o.listen(y,i,a);if(!aC(i)){let _=r?x=>r(Ie(x[e.index])):e.index;gh(_,t,n,i,a,m,!1)}}return c}function aC(e){return e.startsWith("animation")||e.startsWith("transition")}function lC(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[Ar],l=o[i+2];return a&&a.length>l?a[l]:null}typeof s=="string"&&(i+=2)}return null}function gh(e,t,n,r,o,i,s){let a=t.firstCreatePass?ic(t):null,l=oc(n),c=l.length;l.push(o,i),a&&a.push(r,e,c,(c+1)*(s?-1:1))}function Fp(e,t,n,r,o){let i=null,s=null,a=null,l=!1,c=e.directiveToIndex.get(n.type);if(typeof c=="number"?i=c:[i,s,a]=c,s!==null&&a!==null&&e.hostDirectiveOutputs&&Object.hasOwn(e.hostDirectiveOutputs,r)){let p=e.hostDirectiveOutputs[r];for(let h=0;h<p.length;h+=2){let y=p[h];if(y>=s&&y<=a)l=!0,qs(e,t,y,p[h+1],r,o);else if(y>a)break}}return Object.hasOwn(n.outputs,r)&&(l=!0,qs(e,t,i,r,r,o)),l}function qs(e,t,n,r,o,i){let s=t[n],a=t[k],c=a.data[n].outputs[r],h=s[c].subscribe(i);gh(e.index,a,t,o,i,h,!0)}function z(){cC()}function cC(){let e=V(),t=pe(),n=Me();if(t.firstCreatePass&&dC(t,n),n.controlDirectiveIndex===-1)return;nn("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Zs(e,t,n))}function G(){uC()}function uC(){let e=V(),t=pe(),n=Fr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Zs(e,t,n))}var Zs=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return ct(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Fp(this.tNode,this.lView,r,t,Jn(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Fp(this.tNode,this.lView,r,n,Jn(this.tNode,this.lView,t))}listenToDom(t,n){Ou(this.tNode,this.tView,this.lView,void 0,this.lView[se],t,n,Jn(this.tNode,this.lView,n))}setInputOnDirectives(t,n,r){let o=this.tNode.inputs?.[t],i=this.tNode.hostDirectiveInputs?.[t];if(!o&&!i)return!1;let s=!1;if(o)for(let a of o){if(a===this.tNode.controlDirectiveIndex)continue;let l=this.lView[a],c=this.tView.data[a];(!r||r(Vp(l,c,t)))&&(er(c,l,t,n),s=!0)}if(i)for(let a=0;a<i.length;a+=2){let l=i[a];if(l===this.tNode.controlDirectiveIndex)continue;let c=this.lView[l],p=i[a+1],h=this.tView.data[l];(!r||r(Vp(c,h,t)))&&(er(h,c,p,n),s=!0)}return s}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";k_(this.tNode,this.tView,this.lView,n,r,t)}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return!1;let n=this.tView.data[this.tNode.customControlIndex];return(n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===!0}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=!0;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=!0;let i=Lp(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let l=i.inputs[a+1]||i.inputs[a];n[l]=!0}let s=Lp(i.directive);s!==null&&r.push(...s)}}}return n}};function Lp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function Vp(e,t,n){if(!t.inputs||!Object.hasOwn(t.inputs,n))return;let[r,o]=t.inputs[n];if((o&Qo.SignalBased)!==0){let s=e[r][Ee];return s.value===ta?void 0:s.value}return e[r]}function dC(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}fC(e,t)}function fC(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(jp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(jp(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return!1;for(let a=0;a<i.length;a+=2){let l=i[a];for(let c=0;c<s.length;c+=2){let p=s[c];if(l===p)for(let h of t.directiveToIndex.values()){if(!Array.isArray(h))continue;let[y,m,_]=h;if(l>=m&&l<=_)return t.flags|=o,t.customControlIndex=y,!0}}}return!1};if(n("value",1024)||n("checked",2048))return}}function jp(e,t){return pC(e,t)&&gC(e,t+"Change")}function pC(e,t){return t in e.inputs}function gC(e,t){return t in e.outputs}var zc=Symbol("BINDING");var ir=new O("");function Ys(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=ls(o,a);else if(i==2){let l=a,c=t[++s];r=ls(r,l+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function J(e,t=0){let n=V();if(n===null)return $(e,t);let r=Me();return fg(r,n,Se(e),t)}function hC(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,l=null,c=null;for(let p of s)if(p.resolveHostDirectives!==null){[a,l,c]=p.resolveHostDirectives(s);break}vC(e,t,n,a,i,l,c)}i!==null&&r!==null&&mC(n,r,i)}function mC(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new S(-301,!1);r.push(t[o],i)}}function yC(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function vC(e,t,n,r,o,i,s){let a=r.length,l=null;for(let y=0;y<a;y++){let m=r[y];l===null&&Ft(m)&&(l=m,yC(e,n,y)),Pc(Us(n,t),e,m.type)}wC(n,e.data.length,a),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let y=0;y<a;y++){let m=r[y];m.providersResolver&&m.providersResolver(m)}let c=!1,p=!1,h=$g(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let y=0;y<a;y++){let m=r[y];if(n.mergedAttrs=Br(n.mergedAttrs,m.hostAttrs),CC(e,n,t,h,m),EC(h,m,o),s!==null&&s.has(m)){let[x,R]=s.get(m);n.directiveToIndex.set(m.type,[h,x+n.directiveStart,R+n.directiveStart])}else(i===null||!i.has(m))&&n.directiveToIndex.set(m.type,h);m.contentQueries!==null&&(n.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(n.flags|=64);let _=m.type.prototype;!c&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),c=!0),!p&&(_.ngOnChanges||_.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),p=!0),h++}_C(e,n,i)}function _C(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Bp(0,t,o,r),Bp(1,t,o,r),Up(t,r,!1);else{let i=n.get(o);Hp(0,t,i,r),Hp(1,t,i,r),Up(t,r,!0)}}}function Bp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),hh(t,i)}}function Hp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(Object.hasOwn(o,i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),hh(t,s)}}function hh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Up(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||fu(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&Object.hasOwn(o,l)){let c=o[l];for(let p of c)if(p===t){s??=[],s.push(l,r[a+1]);break}}else if(n&&Object.hasOwn(i,l)){let c=i[l];for(let p=0;p<c.length;p+=2)if(c[p]===t){s??=[],s.push(c[p+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function CC(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=un(o.type,!0)),s=new Xn(i,Ft(o),J,null);e.blueprint[r]=s,n[r]=s,bC(e,t,r,$g(e,n,o.hostVars,Te),o)}function bC(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;DC(s)!=a&&s.push(a),s.push(n,r,i)}}function DC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function EC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ft(t)&&(n[""]=e)}}function wC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function mh(e,t,n,r,o,i,s,a){let l=t[k],c=l.consts,p=Lt(c,s),h=ca(l,e,n,r,p);return i&&hC(l,t,h,Lt(c,a),o),h.mergedAttrs=Br(h.mergedAttrs,h.attrs),h.attrs!==null&&Ys(h,h.attrs,!1),h.mergedAttrs!==null&&Ys(h,h.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,h),h}function yh(e,t){r0(e,t),Jl(t)&&e.queries.elementEnd(t)}function xC(e,t,n,r,o,i){let s=t.consts,a=Lt(s,o),l=ca(t,e,n,r,a);if(l.mergedAttrs=Br(l.mergedAttrs,l.attrs),i!=null){let c=Lt(s,i);l.localNames=[];for(let p=0;p<c.length;p+=2)l.localNames.push(c[p],-1)}return l.attrs!==null&&Ys(l,l.attrs,!1),l.mergedAttrs!==null&&Ys(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}var vh=typeof ShadowRoot<"u",SC=typeof Document<"u";function IC(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Qo.SignalBased)!==0};return o&&(i.transform=o),i})}function MC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function TC(e,t,n){let r=t instanceof Ue?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ws(n,r):n}function NC(e){let t=e.get(tr,null);if(t===null)throw new S(407,!1);let n=e.get(fh,null),r=e.get(mt,null),o=e.get(tn,null,{optional:!0});return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function AC(e,t,n){let r=_h(e);return Ag(t,r,r==="svg"?Xl:r==="math"?zf:n)}function OC(e){if((e&&"localName"in e&&typeof e.localName=="string"?e.localName:e?.tagName)?.toLowerCase()==="script")throw new S(905,!1)}function _h(e){return(e.selectors[0][0]||"div").toLowerCase()}var nr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=IC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=MC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=$0(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s,a){ne(K.DynamicComponentStart);let l=P(null);try{let c=this.componentDef,p=TC(c,o||this.ngModule,t),h=NC(p),y=h.tracingService;return y&&y.componentCreate?y.componentCreate(ph(c),()=>this.createComponentRef(h,p,n,r,i,s,a)):this.createComponentRef(h,p,n,r,i,s,a)}finally{P(l)}}createComponentRef(t,n,r,o,i,s,a){let l=this.componentDef,c=kC(o,l,s,i),p=t.rendererFactory.createRenderer(null,l),h=o?C_(p,o,l.encapsulation,n):AC(l,p,a??null);OC(h);let y=n.get(ir,null),m=RC(h,()=>n.get(Fe,null)??Cg());y&&y.addHost(m);let _=s?.some($p)||i?.some(F=>typeof F!="function"&&F.bindings.some($p)),x=bu(null,c,null,512|Ug(l),null,null,t,p,n,null,xg(h,n,!0));y&&vh&&m instanceof ShadowRoot&&Ds(x,()=>{y.removeHost(m)}),x[me]=h,Ss(x);let R=null;try{let F=mh(me,x,2,"#host",()=>c.directiveRegistry,!0,0);Rg(p,h,F),Hr(h,x),Wg(c,x,F),Ig(c,F,x),yh(c,F),r!==void 0&&FC(F,this.ngContentSelectors,r),R=ut(F.index,x),x[ge]=R[ge],xu(c,x,null)}catch(F){throw R!==null&&Lc(R),Lc(x),F}finally{ne(K.DynamicComponentEnd),Is()}return new Qs(this.componentType,x,!!_)}};function kC(e,t,n,r){let o=e?["ng-version","22.1.6"]:z0(t.selectors[0]),i=null,s=null,a=0;if(n)for(let p of n)a+=p[zc].requiredVars,p.create&&(p.targetIdx=0,(i??=[]).push(p)),p.update&&(p.targetIdx=0,(s??=[]).push(p));if(r)for(let p=0;p<r.length;p++){let h=r[p];if(typeof h!="function")for(let y of h.bindings){a+=y[zc].requiredVars;let m=p+1;y.create&&(y.targetIdx=m,(i??=[]).push(y)),y.update&&(y.targetIdx=m,(s??=[]).push(y))}}let l=[t];if(r)for(let p of r){let h=typeof p=="function"?p:p.type,y=Bl(h);l.push(y)}return Cu(0,null,PC(i,s),1,a,l,null,null,null,[o],null)}function RC(e,t){let n=e.getRootNode?.();return SC&&n instanceof Document?n.head:n&&vh&&n instanceof ShadowRoot?n:t().head}function PC(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function $p(e){let t=e[zc].kind;return t==="input"||t==="twoWay"}var Qs=class extends dh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=vs(n[k],me),this.location=zr(this._tNode,n),this.instance=ut(this._tNode.index,n)[ge],this.hostView=this.changeDetectorRef=new Cn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=wu(r,o[k],o,t,n);this.previousInputValues.set(t,n);let s=ut(r.index,o);Su(s,1)}get injector(){return new vn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function FC(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Ko=(()=>{class e{static __NG_ELEMENT_ID__=LC}return e})();function LC(){let e=Me();return Ch(e,V())}var Gc=class e extends Ko{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return zr(this._hostTNode,this._hostLView)}get injector(){return new vn(this._hostTNode,this._hostLView)}get parentInjector(){let t=lu(this._hostTNode,this._hostLView);if(sg(t)){let n=Bs(t,this._hostLView),r=js(t),o=n[k].data[r+8];return new vn(o,n)}else return new vn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-fe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$c(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$o(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let l,c=n||{};l=c.index,r=c.injector,o=c.projectableNodes,i=c.environmentInjector||c.ngModuleRef,s=c.directives,a=c.bindings;let p=new nr(Qt(t)),h=r||this.parentInjector;if(!i&&p.ngModule==null){let F=this.parentInjector.get(Ue,null);F&&(i=F)}let y=Qt(p.componentType??{}),m=$c(this._lContainer,y?.id??null),_=m?.firstChild??null,x=p.create(h,o,_,i,s,a,this._getHostElementNamespace());return this.insertImpl(x.hostView,l,$o(this._hostTNode,m)),x}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[We];return t!==null&&t.type&2&&typeof t.value=="string"&&t.value.toLowerCase()==="foreignobject"?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Wf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[ve],c=new e(l,l[We],l[ve]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return la(s,o,i,r),t.attachToViewContainerRef(),zl(xc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Go(this._lContainer,n);r&&(wo(xc(this._lContainer),n),ia(r[k],r))}detach(t){let n=this._adjustIndex(t,-1),r=Go(this._lContainer,n);return r&&wo(xc(this._lContainer),n)!=null?new Cn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zp(e){return e[Mo]}function xc(e){return e[Mo]||(e[Mo]=[])}function Ch(e,t){let n,r=t[e.index];return lt(r)?n=r:(n=sh(r,t,null,e),t[e.index]=n,Du(t,n)),jC(n,t,e,r),new Gc(n,e,t)}function VC(e,t){let n=e[se],r=n.createComment(""),o=ct(t,e),i=n.parentNode(o);return Kn(n,i,r,n.nextSibling(o),!1),r}var jC=UC,BC=()=>!1;function HC(e,t,n){return BC(e,t,n)}function UC(e,t,n,r){if(e[Gn])return;let o;n.type&8?o=Ie(r):o=VC(t,n),e[Gn]=o}var Wc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},qc=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)ku(t,n).matches!==null&&this.queries[n].setDirty()}},Zc=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=QC(t):this.predicate=t}},Yc=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Qc=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,$C(n,i)),this.matchTNodeWithReadOption(t,n,Fs(n,t,i,!1,!1))}else r===Ur?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Fs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===xt||o===Ko||o===Ur&&n.type&4)this.addMatch(n.index,-2);else{let i=Fs(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function $C(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function zC(e,t){return e.type&11?zr(e,t):e.type&4?Tu(e,t):null}function GC(e,t,n,r){return n===-1?zC(t,e):n===-2?WC(e,t,r):Ho(e,e[k],n,t)}function WC(e,t,n){if(n===xt)return zr(t,e);if(n===Ur)return Tu(t,e);if(n===Ko)return Ch(t,e)}function bh(e,t,n,r){let o=t[kt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let p=i[c];a.push(GC(t,p,s[l+1],n.metadata.read))}}o.matches=a}return o.matches}function Kc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=bh(e,t,o,n);for(let a=0;a<i.length;a+=2){let l=i[a];if(l>0)r.push(s[a/2]);else{let c=i[a+1],p=t[-l];for(let h=fe;h<p.length;h++){let y=p[h];y[gn]===y[ve]&&Kc(y[k],y,c,r)}if(p[Wn]!==null){let h=p[Wn];for(let y=0;y<h.length;y++){let m=h[y];Kc(m[k],m,c,r)}}}}}return r}function qC(e,t){return e[kt].queries[t].queryList}function ZC(e,t,n){let r=new $s((n&4)===4);return Yf(e,t,r,r.destroy),(t[kt]??=new qc).queries.push(new Wc(r))-1}function YC(e,t,n){let r=pe();return r.firstCreatePass&&(KC(r,new Zc(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),ZC(r,V(),t)}function QC(e){return e.split(",").map(t=>t.trim())}function KC(e,t,n){e.queries===null&&(e.queries=new Yc),e.queries.track(new Qc(t,n))}function ku(e,t){return e.queries.getByIndex(t)}function JC(e,t){let n=e[k],r=ku(n,t);return r.crossesNgTemplate?Kc(n,e,t,[]):bh(n,e,r,t)}function Gr(e){return!!e&&typeof e.then=="function"}function Ru(e){return!!e&&typeof e.subscribe=="function"}var Wo=class{};var qo=class extends Wo{injector;instance=null;constructor(t){super();let n=new Bn([...t.providers,{provide:Wo,useValue:this}],t.parent||Mr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Dh(e,t,n=null){return new qo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var XC=(()=>{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=Wl(!1,n.type),o=r.length>0?Dh([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=te({token:e,providedIn:"environment",factory:()=>new e($(Ue))})}return e})();function rn(e){return Yo(()=>{let t=Eh(e),n=U(j({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==cu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(XC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Et.Emulated,styles:e.styles||He,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&nn("NgStandalone"),wh(n);let r=e.dependencies;return n.directiveDefs=Gp(r,eb),n.pipeDefs=Gp(r,Af),n.id=rb(n),n})}function eb(e){return Qt(e)||Bl(e)}function bn(e){return Yo(()=>({type:e.type,bootstrap:e.bootstrap||He,declarations:e.declarations||He,imports:e.imports||He,exports:e.exports||He,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function tb(e,t){if(e==null)return fn;let n={};for(let r in e)if(Object.hasOwn(e,r)){let o=e[r],i,s,a,l;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,l=o[3]||null):(i=o,s=o,a=Qo.None,l=null),n[i]=[r,a,l],t[i]=s}return n}function nb(e){if(e==null)return fn;let t={};for(let n in e)Object.hasOwn(e,n)&&(t[e[n]]=n);return t}function _e(e){return Yo(()=>{let t=Eh(e);return wh(t),t})}function ua(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Eh(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||fn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||He,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:tb(e.inputs,t),outputs:nb(e.outputs),debugInfo:null}}function wh(e){e.features?.forEach(t=>t(e))}function Gp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function rb(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}var xh=new O("");var Pu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=b(xh,{optional:!0})??[];injector=b(Pe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Tr(this.injector,o);if(Gr(i))n.push(i);else if(Ru(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=en({token:e,factory:e.\u0275fac})}return e})();function Fu(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function ob(e){return Object.getPrototypeOf(e.prototype).constructor}function ze(e){let t=ob(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,Do)?t[Do]:void 0,s=Object.hasOwn(t,Eo)?t[Eo]:void 0;if(Ft(e))o=i??s;else{if(i)throw new S(903,!1);o=s}if(o){if(n){r.push(o);let l=e;l.inputs=Sc(e.inputs),l.declaredInputs=Sc(e.declaredInputs),l.outputs=Sc(e.outputs);let c=o.hostBindings;c&&cb(e,c);let p=o.viewQuery,h=o.contentQueries;if(p&&ab(e,p),h&&lb(e,h),ib(e,o),Nf(e.outputs,o.outputs),Ft(o)&&o.data.animation){let y=e.data;y.animation=(y.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let l=0;l<a.length;l++){let c=a[l];c&&c.ngInherit&&c(e),c===ze&&(n=!1)}}t=Object.getPrototypeOf(t)}sb(r)}function ib(e,t){for(let n in t.inputs){if(!Object.hasOwn(t.inputs,n)||Object.hasOwn(e.inputs,n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function sb(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=Br(o.hostAttrs,n=Br(n,o.hostAttrs))}}function Sc(e){return e===fn?{}:e===He?[]:e}function ab(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function lb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function cb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ub(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Br(e.mergedAttrs,e.attrs);let p=e.tView=Cu(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),p.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Pr(e,!1);let l=db(n,t,e,r);Ms()&&vu(n,t,l,e),Hr(l,t);let c=sh(l,t,l,e);t[r+me]=c,Du(t,c),HC(c,e,t)}function Ks(e,t,n,r,o,i,s,a,l,c,p){let h=n+me,y;if(t.firstCreatePass){if(y=ca(t,h,4,s||null,a||null),c!=null){let m=Lt(t.consts,c);y.localNames=[];for(let _=0;_<m.length;_+=2)y.localNames.push(m[_],-1)}}else y=t.data[h];return ub(y,e,t,n,r,o,i,l),c!=null&&Eu(e,y,p),y}var db=fb;function fb(e,t,n,r){return Ts(!0),t[se].createComment("")}var Lu=new O("");var Sh=new O("");function Ih(){ol(()=>{let e="";throw new S(600,e)})}var pb=10;var Dn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=b(yn);afterRenderManager=b(gu);zonelessEnabled=b(Fo);rootEffectScheduler=b(As);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ke;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=b(Yn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(xe(n=>!n))}constructor(){b(tn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=b(Ue);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Pe.NULL){return this._injector.get(De).run(()=>{if(ne(K.BootstrapComponentStart),!this._injector.get(Pu).done){let F="";throw new S(405,F)}let a=Qt(n),l=this._injector.get(Wo),c=new nr(a,l);this.componentTypes.push(n);let{hostElement:p,directives:h,bindings:y}=gb(r),m=p||c.selector,_=c.create(o,[],m,l.injector,h,y),x=_.location.nativeElement,R=_.injector.get(Lu,null);return R?.registerApplication(x),_.onDestroy(()=>{this.detachView(_.hostView),Bo(this.components,_),R?.unregisterApplication(x)}),this._loadComponent(_),ne(K.BootstrapComponentEnd,_),_})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ne(K.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ra.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw ne(K.ChangeDetectionEnd),new S(101,!1);let n=P(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,P(n),this.afterTick.next(),ne(K.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(tr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<pb;){ne(K.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{ne(K.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Rr(o))continue;let i=r&&!this.zonelessEnabled?0:1;nh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Rr(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;Bo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(Sh,[]).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),()=>Bo(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}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})();function gb(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Bo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function tt(e,t,n,r){let o=V(),i=hn();if(et(o,i,t)){let s=pe(),a=Fr();T_(a,o,e,t,n,r)}return tt}var Jc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Ic(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function hb(e,t,n,r){let o,i,s=0,a=e.length-1,l=void 0;if(Array.isArray(t)){P(r);let c=t.length-1;for(P(null);s<=a&&s<=c;){let p=e.at(s),h=t[s],y=Ic(s,p,s,h,n);if(y!==0){y<0&&e.updateValue(s,h),s++;continue}let m=e.at(a),_=t[c],x=Ic(a,m,c,_,n);if(x!==0){x<0&&e.updateValue(a,_),a--,c--;continue}let R=n(s,p),F=n(a,m),ce=n(s,h);if(Object.is(ce,F)){let Qe=n(c,_);Object.is(Qe,R)?(e.swap(s,a),e.updateValue(a,_),c--,a--):e.move(a,s),e.updateValue(s,h),s++;continue}if(o??=new Js,i??=qp(e,s,a,n),Xc(e,o,s,ce))e.updateValue(s,h),s++,a++;else if(i.has(ce))o.set(R,e.detach(s)),a--;else{let Qe=e.create(s,t[s]);e.attach(s,Qe),s++,a++}}for(;s<=c;)Wp(e,o,n,s,t[s]),s++}else if(t!=null){P(r);let c=t[Symbol.iterator]();P(null);let p=c.next();for(;!p.done&&s<=a;){let h=e.at(s),y=p.value,m=Ic(s,h,s,y,n);if(m!==0)m<0&&e.updateValue(s,y),s++,p=c.next();else{o??=new Js,i??=qp(e,s,a,n);let _=n(s,y);if(Xc(e,o,s,_))e.updateValue(s,y),s++,a++,p=c.next();else if(!i.has(_))e.attach(s,e.create(s,y)),s++,a++,p=c.next();else{let x=n(s,h);o.set(x,e.detach(s)),a--}}}for(;!p.done;)Wp(e,o,n,e.length,p.value),p=c.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(c=>{e.destroy(c)})}function Xc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Wp(e,t,n,r,o){if(Xc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function qp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Js=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function D(e,t,n,r,o,i,s,a){nn("NgControlFlow");let l=V(),c=pe(),p=Lt(c.consts,i);return Ks(l,c,e,t,n,r,o,p,256,s,a),Vu}function Vu(e,t,n,r,o,i,s,a){nn("NgControlFlow");let l=V(),c=pe(),p=Lt(c.consts,i);return Ks(l,c,e,t,n,r,o,p,512,s,a),Vu}function E(e,t){nn("NgControlFlow");let n=V(),r=hn(),o=n[r]!==Te?n[r]:-1,i=o!==-1?Xs(n,me+o):void 0,s=0;if(et(n,r,e)){let a=P(null);try{if(i!==void 0&&lh(i,s),e!==-1){let l=me+e,c=Xs(n,l),p=ru(n[k],l),h=uh(c,p,n),y=aa(n,p,t,{dehydratedView:h});la(c,y,s,$o(p,h))}}finally{P(a)}}else if(i!==void 0){let a=ah(i,s);a!==void 0&&(a[ge]=t)}}var eu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-fe}};function En(e){return e}function Jo(e,t){return t}var tu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Z(e,t,n,r,o,i,s,a,l,c,p,h,y){nn("NgControlFlow");let m=V(),_=pe(),x=l!==void 0,R=V(),F=a?s.bind(R[Je][ge]):s,ce=new tu(x,F);R[me+e]=ce,Ks(m,_,e+1,t,n,r,o,Lt(_.consts,i),256),x&&Ks(m,_,e+2,l,c,p,h,Lt(_.consts,y),512)}var nu=class extends Jc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-fe}at(t){return this.getLView(t)[ge].$implicit}attach(t,n){let r=n[Nr];this.needsIndexUpdate||=t!==this.length,la(this.lContainer,n,t,$o(this.templateTNode,r)),mb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,yb(this.lContainer,t),vb(this.lContainer,t)}create(t,n){let r=$c(this.lContainer,this.templateTNode.tView.ssrId);return aa(this.hostLView,this.templateTNode,new eu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ia(t[k],t)}updateValue(t,n){this.getLView(t)[ge].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ge].$index=t}getLView(t){return _b(this.lContainer,t)}};function Y(e){let t=P(null),n=_t();try{let r=V(),o=r[k],i=r[n],s=n+1,a=Xs(r,s);if(i.liveCollection===void 0){let c=ru(o,s);i.liveCollection=new nu(a,r,c)}else i.liveCollection.reset();let l=i.liveCollection;if(hb(l,e,i.trackByFn,t),l.updateIndexes(),i.hasEmptyBlock){let c=hn(),p=l.length===0;if(et(r,c,p)){let h=n+2,y=Xs(r,h);if(p){let m=ru(o,h),_=uh(y,m,r),x=aa(r,m,void 0,{dehydratedView:_});la(y,x,0,$o(m,_))}else o.firstUpdatePass&&eC(y),lh(y,0)}}}finally{P(t)}}function Xs(e,t){return e[t]}function mb(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n],o=r?r[Pt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ot];K0(i,o),_n.delete(r[Rt]),o.detachedLeaveAnimationFns=void 0}}function yb(e,t){if(e.length<=fe)return;let n=fe+t,r=e[n],o=r?r[Pt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function vb(e,t){return Go(e,t)}function _b(e,t){return ah(e,t)}function ru(e,t){return vs(e,t)}function w(e,t,n){let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();qg(s,r,e,t,r[se],n)}return w}function ou(e,t,n,r,o){wu(t,e,n,o?"class":"style",r)}function d(e,t,n,r){let o=V(),i=o[k],s=e+me,a=i.firstCreatePass?mh(s,o,2,t,M_,Jf(),n,r):i.data[s];if(Xt(a)){let l=o[vt].tracingService;if(l&&l.componentCreate){let c=i.data[a.directiveStart+a.componentOffset];return l.componentCreate(ph(c),()=>(Zp(e,t,o,a,r),d))}}return Zp(e,t,o,a,r),d}function Zp(e,t,n,r,o){if(Yg(r,n,e,t,Mh),ms(r)){let i=n[k];Wg(i,n,r),Ig(i,r,n)}o!=null&&Eu(n,r)}function u(){let e=pe(),t=Me(),n=Qg(t);return e.firstCreatePass&&yh(e,n),ac(n)&&lc(),sc(),n.classesWithoutHost!=null&&i0(n)&&ou(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&s0(n)&&ou(e,n,V(),n.stylesWithoutHost,!1),u}function Ce(e,t,n,r){return d(e,t,n,r),u(),Ce}function on(e,t,n,r){let o=V(),i=o[k],s=e+me,a=i.firstCreatePass?xC(s,i,2,t,n,r):i.data[s];return Yg(a,o,e,t,Mh),r!=null&&Eu(o,a),on}function wn(){let e=Me(),t=Qg(e);return ac(t)&&lc(),sc(),wn}var Mh=(e,t,n,r,o)=>(Ts(!0),Ag(t[se],r,mc()));function B(){return V()}function da(e,t,n){let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();Zg(s,r,e,t,r[se],n)}return da}var Lo=void 0;function Cb(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var bb=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Lo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Lo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Lo,Lo,Lo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Cb],Mc=Object.create(null);function qe(e){let t=Db(e),n=Yp(t);if(n)return n;let r=t.split("-")[0];if(n=Yp(r),n)return n;if(r==="en")return bb;throw new S(701,!1)}function Yp(e){if(!(e in Mc)){let t=Un.ng&&Un.ng.common&&Un.ng.common.locales&&Un.ng.common.locales[e];return t!==void 0&&(Mc[e]=t),t}return Mc[e]}var he={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function Db(e){return e.toLowerCase().replace(/_/g,"-")}var Xo="en-US";var Eb=Xo;function Th(e){typeof e=="string"&&(Eb=e.toLowerCase().replace(/_/g,"-"))}function N(e,t,n){let r=V(),o=pe(),i=Me();return Nh(o,r,r[se],i,e,t,n),N}function Wr(e,t,n){let r=V(),o=pe(),i=Me();return(i.type&3||n)&&Ou(i,o,r,n,r[se],e,t,Jn(i,r,t)),Wr}function Nh(e,t,n,r,o,i,s){let a=!0,l=null;if((r.type&3||s)&&(l??=Jn(r,t,i),Ou(r,e,t,s,n,o,i,l)&&(a=!1)),a){let c=r.outputs?.[o],p=r.hostDirectiveOutputs?.[o];if(p&&p.length)for(let h=0;h<p.length;h+=2){let y=p[h],m=p[h+1];l??=Jn(r,t,i),qs(r,t,y,m,o,l)}if(c&&c.length)for(let h of c)l??=Jn(r,t,i),qs(r,t,h,o,o,l)}}function v(e=1){return up(e)}function fa(e,t,n){return YC(e,t,n),fa}function ju(e){let t=V(),n=pe(),r=pc();xs(r+1);let o=ku(n,r);if(e.dirty&&Gf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=JC(t,r);e.reset(i,_0),e.notifyOnChanges()}return!0}return!1}function Bu(){return qC(V(),pc())}function ks(e,t){return e<<17|t<<2}function rr(e){return e>>17&32767}function wb(e){return(e&2)==2}function xb(e,t){return e&131071|t<<17}function iu(e){return e|2}function $r(e){return(e&131068)>>2}function Tc(e,t){return e&-131069|t<<2}function Sb(e){return(e&1)===1}function su(e){return e|1}function Ib(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=rr(s),l=$r(s);e[r]=n;let c=!1,p;if(Array.isArray(n)){let h=n;p=h[1],(p===null||Sr(h,p)>0)&&(c=!0)}else p=n;if(o)if(l!==0){let y=rr(e[a+1]);e[r+1]=ks(y,a),y!==0&&(e[y+1]=Tc(e[y+1],r)),e[a+1]=xb(e[a+1],r)}else e[r+1]=ks(a,0),a!==0&&(e[a+1]=Tc(e[a+1],r)),a=r;else e[r+1]=ks(l,0),a===0?a=r:e[l+1]=Tc(e[l+1],r),l=r;c&&(e[r+1]=iu(e[r+1])),Qp(e,p,r,!0),Qp(e,p,r,!1),Mb(t,p,e,r,i),s=ks(a,l),i?t.classBindings=s:t.styleBindings=s}function Mb(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Sr(i,t)>=0&&(n[r+1]=su(n[r+1]))}function Qp(e,t,n,r){let o=e[n+1],i=t===null,s=r?rr(o):$r(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];Tb(l,t)&&(a=!0,e[s+1]=r?su(c):iu(c)),s=r?rr(c):$r(c)}a&&(e[n+1]=r?iu(o):su(o))}function Tb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Sr(e,t)>=0:!1}var Dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Nb(e){return e.substring(Dt.key,Dt.keyEnd)}function Ab(e){return Ob(e),Ah(e,Oh(e,0,Dt.textEnd))}function Ah(e,t){let n=Dt.textEnd;return n===t?-1:(t=Dt.keyEnd=kb(e,Dt.key=t,n),Oh(e,t,n))}function Ob(e){Dt.key=0,Dt.keyEnd=0,Dt.value=0,Dt.valueEnd=0,Dt.textEnd=e.length}function Oh(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function kb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function sn(e,t,n){return kh(e,t,n,!1),sn}function le(e,t){return kh(e,t,null,!0),le}function qr(e){Pb(Hb,Rb,e,!0)}function Rb(e,t){for(let n=Ab(t);n>=0;n=Ah(t,n))ps(e,Nb(t),!0)}function kh(e,t,n,r){let o=V(),i=pe(),s=To(2);if(i.firstUpdatePass&&Ph(i,e,s,r),t!==Te&&et(o,s,t)){let a=i.data[_t()];Fh(i,a,o,o[se],e,o[s+1]=$b(t,n),r,s)}}function Pb(e,t,n,r){let o=pe(),i=To(2);o.firstUpdatePass&&Ph(o,null,i,r);let s=V();if(n!==Te&&et(s,i,n)){let a=o.data[_t()];if(Lh(a,r)&&!Rh(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=ls(l,n||"")),ou(o,a,s,n,r)}else Ub(o,a,s,s[se],s[i+1],s[i+1]=Bb(e,t,n),r,i)}}function Rh(e,t){return t>=e.expandoStartIndex}function Ph(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[_t()],s=Rh(e,n);Lh(i,r)&&t===null&&!s&&(t=!1),t=Fb(o,i,t,r),Ib(o,i,t,n,s,r)}}function Fb(e,t,n,r){let o=sp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Nc(null,e,t,n,r),n=Zo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Nc(o,e,t,n,r),i===null){let l=Lb(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Nc(null,e,t,l[1],r),l=Zo(l,t.attrs,r),Vb(e,t,r,l))}else i=jb(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Lb(e,t,n){let r=n?t.classBindings:t.styleBindings;if($r(r)!==0)return e[rr(r)]}function Vb(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[rr(o)]=r}function jb(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Zo(r,s,n)}return Zo(r,t.attrs,n)}function Nc(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=Zo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Zo(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]),ps(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Bb(e,t,n){if(n==null||n==="")return He;let r=[],o=Uo(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function Hb(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ps(e,r,n)}function Ub(e,t,n,r,o,i,s,a){o===Te&&(o=He);let l=0,c=0,p=0<o.length?o[0]:null,h=0<i.length?i[0]:null;for(;p!==null||h!==null;){let y=l<o.length?o[l+1]:void 0,m=c<i.length?i[c+1]:void 0,_=null,x;p===h?(l+=2,c+=2,y!==m&&(_=h,x=m)):h===null||p!==null&&p<h?(l+=2,_=p):(c+=2,_=h,x=m),_!==null&&Fh(e,t,n,r,_,x,s,a),p=l<o.length?o[l]:null,h=c<i.length?i[c]:null}}function Fh(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let l=e.data,c=l[a+1],p=Sb(c)?Kp(l,t,n,o,$r(c),s):void 0;if(!ea(p)){ea(i)||wb(c)&&(i=Kp(l,null,n,o,a,s));let h=ec(_t(),n);m_(r,s,h,o,i)}}function Kp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let l=e[o],c=Array.isArray(l),p=c?l[1]:l,h=p===null,y=n[o+1];y===Te&&(y=h?He:void 0);let m=h?gs(y,r):p===r?y:void 0;if(c&&!ea(m)&&(m=gs(l,r)),ea(m)&&(a=m,s))return a;let _=e[o+1];o=s?rr(_):$r(_)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=gs(l,r))}return a}function ea(e){return e!==void 0}function $b(e,t){return e==null||e===""||(typeof t=="string"?e=Uo(e)+t:typeof e=="object"&&(e=as(Uo(e)))),e}function Lh(e,t){return(e.flags&(t?8:16))!==0}function g(e,t=""){let n=V(),r=pe(),o=e+me,i=r.firstCreatePass?ca(r,o,1,t,null):r.data[o],s=zb(r,n,i,t);n[o]=s,Ms()&&vu(r,n,s,i),Pr(i,!1)}var zb=(e,t,n,r)=>(Ts(!0),T0(t[se],r));function Vh(e,t,n,r=""){return et(e,hn(),n)?t+Kt(n)+r:Te}function Gb(e,t,n,r,o,i=""){let s=fc(),a=Au(e,s,n,o);return To(2),a?t+Kt(n)+r+Kt(o)+i:Te}function Wb(e,t,n,r,o,i,s,a=""){let l=fc(),c=sC(e,l,n,o,s);return To(3),c?t+Kt(n)+r+Kt(o)+i+Kt(s)+a:Te}function C(e){return T("",e),C}function T(e,t,n){let r=V(),o=Vh(r,e,t,n);return o!==Te&&Hu(r,_t(),o),T}function St(e,t,n,r,o){let i=V(),s=Gb(i,e,t,n,r,o);return s!==Te&&Hu(i,_t(),s),St}function sr(e,t,n,r,o,i,s){let a=V(),l=Wb(a,e,t,n,r,o,i,s);return l!==Te&&Hu(a,_t(),l),sr}function Hu(e,t,n){let r=ec(t,e);N0(e[se],r,n)}function X(e,t,n){Os(t)&&(t=t());let r=V(),o=hn();if(et(r,o,t)){let i=pe(),s=Fr();qg(s,r,e,t,r[se],n)}return X}function re(e,t){let n=Os(e);return n&&e.set(t),n}function ee(e,t){let n=V(),r=pe(),o=Me();return Nh(r,n,n[se],o,e,t),ee}function Uu(e,t,n=""){return Vh(V(),e,t,n)}function Jp(e,t,n){let r=pe();r.firstCreatePass&&jh(t,r.data,r.blueprint,Ft(e),n)}function jh(e,t,n,r,o){if(e=Se(e),Array.isArray(e))for(let i=0;i<e.length;i++)jh(e[i],t,n,r,o);else{let i=pe(),s=V(),a=Me(),l=jn(e)?e:Se(e.provide),c=Zl(e),p=a.providerIndexes&1048575,h=a.directiveStart,y=a.providerIndexes>>20;if(jn(e)||!e.multi){let m=new Xn(c,o,J,null),_=Oc(l,t,o?p:p+y,h);_===-1?(Pc(Us(a,s),i,l),Ac(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[_]=m,s[_]=m)}else{let m=Oc(l,t,p+y,h),_=Oc(l,t,p,p+y),x=m>=0&&n[m],R=_>=0&&n[_];if(o&&!R||!o&&!x){Pc(Us(a,s),i,l);let F=Yb(o?Zb:qb,n.length,o,r,c,e);!o&&R&&(n[_].providerFactory=F),Ac(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(F),s.push(F)}else{let F=Bh(n[o?_:m],c,!o&&r);Ac(i,e,m>-1?m:_,F)}!o&&r&&R&&n[_].componentProviders++}}}function Ac(e,t,n,r){let o=jn(t),i=Hf(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 p=c.indexOf(n);p===-1?c.push(n,[r,l]):c[p+1].push(r,l)}else c.push(n,l)}}}function Bh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Oc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function qb(e,t,n,r,o){return au(this.multi,[])}function Zb(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=Ho(r,r[k],this.providerFactory.index,o);s=l.slice(0,a),au(i,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],au(i,s);return s}function au(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Yb(e,t,n,r,o,i){let s=new Xn(e,n,J,null);return s.multi=[],s.index=t,s.componentProviders=0,Bh(s,o,r&&!n),s}function dt(e,t){return n=>{n.providersResolver=(r,o)=>Jp(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Jp(r,o?o(t):t,!0))}}function Ne(e,t){let n=Es()+e,r=V();return r[n]===Te?Nu(r,n,t()):iC(r,n)}function Hh(e,t){let n=e[t];return n===Te?void 0:n}function Qb(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Nu(e,s+1,i?r.call(i,o):r(o)):Hh(e,s+1)}function Kb(e,t,n,r,o,i,s){let a=t+n;return Au(e,a,o,i)?Nu(e,a+2,s?r.call(s,o,i):r(o,i)):Hh(e,a+2)}function ft(e,t){let n=pe(),r,o=e+me;n.firstCreatePass?(r=Jb(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=un(r.type,!0)),s,a=Be(J);try{let l=Hs(!1),c=i();return Hs(l),nc(n,V(),o,c),c}finally{Be(a)}}function Jb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ar(e,t,n){let r=e+me,o=V(),i=tc(o,r);return Uh(o,r)?Qb(o,Es(),t,i.transform,n,i):i.transform(n)}function lr(e,t,n,r){let o=e+me,i=V(),s=tc(i,o);return Uh(i,o)?Kb(i,Es(),t,s.transform,n,r,s):s.transform(n,r)}function Uh(e,t){return e[k].data[t].pure}var $h=(()=>{class e{applicationErrorHandler=b(yn);appRef=b(Dn);taskService=b(Yn);ngZone=b(De);zonelessEnabled=b(Fo);tracing=b(tn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new we;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Co):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(bc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?hp:yc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Co+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){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}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=en({token:e,factory:e.\u0275fac})}return e})();function $u(){return nn("NgZoneless"),Ir([...zu(),[]])}function zu(){return[{provide:mt,useExisting:$h},{provide:De,useClass:bo},{provide:Fo,useValue:!0}]}function Xb(){return typeof $localize<"u"&&$localize.locale||Xo}var Zr=new O("",{factory:()=>b(Zr,{optional:!0,skipSelf:!0})||Xb()});var pa=class{destroyed=!1;listeners=null;errorHandler=b(st,{optional:!0});isEmitting=!1;hasNullListeners=!1;destroyRef=b(de);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new S(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=!0,this.listeners[n]=null):this.listeners.splice(n,1))}}}emit(t){if(this.destroyed){console.warn(dn(953,!1));return}if(this.listeners===null)return;this.isEmitting=!0;let n=P(null);try{for(let r of this.listeners)try{r!==null&&r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{this.hasNullListeners&&(this.hasNullListeners=!1,this.listeners&&eD(this.listeners)),P(n),this.isEmitting=!1}}};function eD(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--}function W(e,t){return Oi(e,t?.equal)}function Ze(e){return Qd(e)}var zh=class e extends Error{_brand;constructor(t){super(t)}static IDLE=new e("IDLE");static LOADING=new e("LOADING")};function qh(e,t){let n=Object.create(tg);n.value=e,n.transformFn=t?.transform;function r(){if(gr(n),n.value===ta){let o=null;throw new S(-950,o)}return n.value}return r[Ee]=n,r}function xn(e){return new pa}function Gh(e,t){return qh(e,t)}function fD(e){return qh(ta,e)}var nt=(Gh.required=fD,Gh);var pD=1e4;var hL=pD-1e3;var ti=(()=>{class e{static __NG_ELEMENT_ID__=gD}return e})();function gD(e){return hD(Me(),V(),(e&16)===16)}function hD(e,t,n){if(Xt(e)&&!n){let r=ut(e.index,t);return new Cn(r,r)}else if(e.type&175){let r=t[Je];return new Cn(r,t)}return null}var Gu=new O(""),mD=new O("");function ei(e){return!e.moduleRef}function yD(e){let t=ei(e)?e.r3Injector:e.moduleRef.injector,n=t.get(De);return n.run(()=>{ei(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(yn),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),ei(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Gu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Gu);s.add(i),e.moduleRef.onDestroy(()=>{Bo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return _D(r,n,()=>{let i=t.get(Yn),s=i.add(),a=t.get(Pu);return a.runInitializers(),a.donePromise.then(()=>{let l=t.get(Zr,Xo);if(Th(l||Xo),!t.get(mD,!0))return ei(e)?t.get(Dn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ei(e)){let p=t.get(Dn);return e.rootComponent!==void 0&&p.bootstrap(e.rootComponent),p}else return vD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var vD;function _D(e,t,n){try{let r=n();return Gr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ga=null;function CD(e=[],t){return Pe.create({name:t,providers:[{provide:Io,useValue:"platform"},{provide:Gu,useValue:new Set([()=>ga=null])},...e]})}function bD(e=[]){if(ga)return ga;let t=CD(e);return ga=t,Ih(),DD(t),t}function DD(e){let t=e.get(Ns,null);Tr(e,()=>{t?.forEach(n=>n())})}function Zh(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;ne(K.BootstrapApplicationStart);try{let i=o?.injector??bD(r),s=[zu(),yp,...n||[]],a=new qo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return yD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{ne(K.BootstrapApplicationEnd)}}function Wu(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Yh(e,t){let n=Qt(e),r=t.elementInjector||Mr();return new nr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function ni(e){let t=Qt(e);if(!t)return null;let n=new nr(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Qh=null;function Mt(){return Qh}function qu(e){Qh??=e}var ri=class{},ma=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:()=>b(Kh),providedIn:"platform"})}return e})();var Kh=(()=>{class e extends ma{_location;_history;_doc=b(Fe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mt().getBaseHref(this._doc)}onPopState(n){let r=Mt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Mt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:()=>new e,providedIn:"platform"})}return e})();var Xu=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Xu||{});var Le=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Le||{}),ie=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(ie||{}),Ye=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ye||{}),Ge={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function em(e){return qe(e)[he.LocaleId]}function tm(e,t,n){let r=qe(e),o=[r[he.DayPeriodsFormat],r[he.DayPeriodsStandalone]],i=pt(o,t);return pt(i,n)}function nm(e,t,n){let r=qe(e),o=[r[he.DaysFormat],r[he.DaysStandalone]],i=pt(o,t);return pt(i,n)}function rm(e,t,n){let r=qe(e),o=[r[he.MonthsFormat],r[he.MonthsStandalone]],i=pt(o,t);return pt(i,n)}function om(e,t){let r=qe(e)[he.Eras];return pt(r,t)}function oi(e,t){let n=qe(e);return pt(n[he.DateFormat],t)}function ii(e,t){let n=qe(e);return pt(n[he.TimeFormat],t)}function si(e,t){let r=qe(e)[he.DateTimeFormat];return pt(r,t)}function Ht(e,t){let n=qe(e),r=n[he.NumberSymbols][t];if(typeof r>"u"){if(t===Ge.CurrencyDecimal)return n[he.NumberSymbols][Ge.Decimal];if(t===Ge.CurrencyGroup)return n[he.NumberSymbols][Ge.Group]}return r}function im(e,t){return qe(e)[he.NumberFormats][t]}function sm(e){if(!e[he.ExtraData])throw new S(2303,!1)}function am(e){let t=qe(e);return sm(t),(t[he.ExtraData][2]||[]).map(r=>typeof r=="string"?Zu(r):[Zu(r[0]),Zu(r[1])])}function lm(e,t,n){let r=qe(e);sm(r);let o=[r[he.ExtraData][0],r[he.ExtraData][1]],i=pt(o,t)||[];return pt(i,n)||[]}function pt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new S(2304,!1)}function Zu(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var ED=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ya=Object.create(null),wD=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,xD=256;function cm(e,t,n,r){let o=PD(e);SD(t),t=an(n,t)||t;let s=[],a;for(;t;)if(a=wD.exec(t),a){s=s.concat(a.slice(1));let p=s.pop();if(!p)break;t=p}else{s.push(t);break}let l=o.getTimezoneOffset();r&&(l=dm(r,l),o=RD(o,r));let c="";return s.forEach(p=>{let h=OD(p);c+=h?h(o,n,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function SD(e){if(e.length>xD)throw new S(2300,!1)}function Da(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function an(e,t){let n=em(e);if(ya[n]??=Object.create(null),ya[n][t])return ya[n][t];let r="";switch(t){case"shortDate":r=oi(e,Ye.Short);break;case"mediumDate":r=oi(e,Ye.Medium);break;case"longDate":r=oi(e,Ye.Long);break;case"fullDate":r=oi(e,Ye.Full);break;case"shortTime":r=ii(e,Ye.Short);break;case"mediumTime":r=ii(e,Ye.Medium);break;case"longTime":r=ii(e,Ye.Long);break;case"fullTime":r=ii(e,Ye.Full);break;case"short":let o=an(e,"shortTime"),i=an(e,"shortDate");r=va(si(e,Ye.Short),[o,i]);break;case"medium":let s=an(e,"mediumTime"),a=an(e,"mediumDate");r=va(si(e,Ye.Medium),[s,a]);break;case"long":let l=an(e,"longTime"),c=an(e,"longDate");r=va(si(e,Ye.Long),[l,c]);break;case"full":let p=an(e,"fullTime"),h=an(e,"fullDate");r=va(si(e,Ye.Full),[p,h]);break}return r&&(ya[n][t]=r),r}function va(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Tt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function ID(e,t){return Tt(e,3).substring(0,t)}function ye(e,t,n=0,r=!1,o=!1){return function(i,s){let a=MD(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return ID(a,t);let l=Ht(s,Ge.MinusSign);return Tt(a,t,l,r,o)}}function MD(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new S(2301,!1)}}function ae(e,t,n=Le.Format,r=!1){return function(o,i){return TD(o,i,e,t,n,r)}}function TD(e,t,n,r,o,i){switch(n){case 2:return rm(t,o,r)[e.getMonth()];case 1:return nm(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let c=am(t),p=lm(t,o,r),h=c.findIndex(y=>{if(Array.isArray(y)){let[m,_]=y,x=s>=m.hours&&a>=m.minutes,R=s<_.hours||s===_.hours&&a<_.minutes;if(m.hours<_.hours){if(x&&R)return!0}else if(x||R)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(h!==-1)return p[h]}return tm(t,o,r)[s<12?0:1];case 3:return om(t,r)[e.getFullYear()<=0?0:1];default:let l=n;throw new S(2302,!1)}}function _a(e){return function(t,n,r){let o=-1*r,i=Ht(n,Ge.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Tt(s,2,i)+Tt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Tt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Tt(s,2,i)+":"+Tt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Tt(s,2,i)+":"+Tt(Math.abs(o%60),2,i);default:throw new S(2310,!1)}}}var ND=0,ba=4;function AD(e){let t=Da(e,ND,1).getDay();return Da(e,0,1+(t<=ba?ba:ba+7)-t)}function um(e){let t=e.getDay(),n=t===0?-3:ba-t;return Da(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Yu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=um(n),s=AD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Tt(o,e,Ht(r,Ge.MinusSign))}}function Ca(e,t=!1){return function(n,r){let i=um(n).getFullYear();return Tt(i,e,Ht(r,Ge.MinusSign),t)}}var Qu=Object.create(null);function OD(e){if(Qu[e])return Qu[e];let t;switch(e){case"G":case"GG":case"GGG":t=ae(3,ie.Abbreviated);break;case"GGGG":t=ae(3,ie.Wide);break;case"GGGGG":t=ae(3,ie.Narrow);break;case"y":t=ye(0,1,0,!1,!0);break;case"yy":t=ye(0,2,0,!0,!0);break;case"yyy":t=ye(0,3,0,!1,!0);break;case"yyyy":t=ye(0,4,0,!1,!0);break;case"Y":t=Ca(1);break;case"YY":t=Ca(2,!0);break;case"YYY":t=Ca(3);break;case"YYYY":t=Ca(4);break;case"M":case"L":t=ye(1,1,1);break;case"MM":case"LL":t=ye(1,2,1);break;case"MMM":t=ae(2,ie.Abbreviated);break;case"MMMM":t=ae(2,ie.Wide);break;case"MMMMM":t=ae(2,ie.Narrow);break;case"LLL":t=ae(2,ie.Abbreviated,Le.Standalone);break;case"LLLL":t=ae(2,ie.Wide,Le.Standalone);break;case"LLLLL":t=ae(2,ie.Narrow,Le.Standalone);break;case"w":t=Yu(1);break;case"ww":t=Yu(2);break;case"W":t=Yu(1,!0);break;case"d":t=ye(2,1);break;case"dd":t=ye(2,2);break;case"c":case"cc":t=ye(7,1);break;case"ccc":t=ae(1,ie.Abbreviated,Le.Standalone);break;case"cccc":t=ae(1,ie.Wide,Le.Standalone);break;case"ccccc":t=ae(1,ie.Narrow,Le.Standalone);break;case"cccccc":t=ae(1,ie.Short,Le.Standalone);break;case"E":case"EE":case"EEE":t=ae(1,ie.Abbreviated);break;case"EEEE":t=ae(1,ie.Wide);break;case"EEEEE":t=ae(1,ie.Narrow);break;case"EEEEEE":t=ae(1,ie.Short);break;case"a":case"aa":case"aaa":t=ae(0,ie.Abbreviated);break;case"aaaa":t=ae(0,ie.Wide);break;case"aaaaa":t=ae(0,ie.Narrow);break;case"b":case"bb":case"bbb":t=ae(0,ie.Abbreviated,Le.Standalone,!0);break;case"bbbb":t=ae(0,ie.Wide,Le.Standalone,!0);break;case"bbbbb":t=ae(0,ie.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":t=ae(0,ie.Abbreviated,Le.Format,!0);break;case"BBBB":t=ae(0,ie.Wide,Le.Format,!0);break;case"BBBBB":t=ae(0,ie.Narrow,Le.Format,!0);break;case"h":t=ye(3,1,-12);break;case"hh":t=ye(3,2,-12);break;case"H":t=ye(3,1);break;case"HH":t=ye(3,2);break;case"m":t=ye(4,1);break;case"mm":t=ye(4,2);break;case"s":t=ye(5,1);break;case"ss":t=ye(5,2);break;case"S":t=ye(6,1);break;case"SS":t=ye(6,2);break;case"SSS":t=ye(6,3);break;case"Z":case"ZZ":case"ZZZ":t=_a(0);break;case"ZZZZZ":t=_a(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=_a(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=_a(2);break;default:return null}return Qu[e]=t,t}function dm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function kD(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function RD(e,t,n){let o=e.getTimezoneOffset(),i=dm(t,o);return kD(e,-1*(i-o))}function PD(e){if(Jh(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Da(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(ED))return FD(r)}let t=new Date(e);if(!Jh(t))throw new S(2311,!1);return t}function FD(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),c=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,l,c),t}function Jh(e){return e instanceof Date&&!isNaN(e.valueOf())}var LD=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Xh=22,Ea=".",ai="0",VD=";",jD=",",Ku="#";function BD(e,t,n,r,o,i,s=!1){let a="",l=!1;if(!isFinite(e))a=Ht(n,Number.isNaN(e)?Ge.NaN:Ge.Infinity);else{let c=$D(e);s&&(c=UD(c));let p=t.minInt,h=t.minFrac,y=t.maxFrac;if(i){let ce=i.match(LD);if(ce===null)throw new S(2306,!1);let Qe=ce[1],rt=ce[3],Ke=ce[5];Qe!=null&&(p=Ju(Qe)),rt!=null&&(h=Ju(rt)),Ke!=null?y=Ju(Ke):rt!=null&&h>y&&(y=h);let ot=100;if(p>ot||h>ot||y>ot)throw new S(2306,!1)}zD(c,h,y);let m=c.digits,_=c.integerLen,x=c.exponent,R=[];for(l=m.every(ce=>!ce);_<p;_++)m.unshift(0);for(;_<0;_++)m.unshift(0);_>0?R=m.splice(_,m.length):(R=m,m=[0]);let F=[];for(m.length>=t.lgSize&&F.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)F.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&F.unshift(m.join("")),a=F.join(Ht(n,r)),R.length&&(a+=Ht(n,o)+R.join("")),x&&(a+=Ht(n,Ge.Exponential)+"+"+x)}return e<0&&!l?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function fm(e,t,n){let r=im(t,Xu.Decimal),o=HD(r,Ht(t,Ge.MinusSign));return BD(e,o,t,Ge.Group,Ge.Decimal,n)}function HD(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(VD),o=r[0],i=r[1],s=o.indexOf(Ea)!==-1?o.split(Ea):[o.substring(0,o.lastIndexOf(ai)+1),o.substring(o.lastIndexOf(ai)+1)],a=s[0],l=s[1]||"";n.posPre=a.substring(0,a.indexOf(Ku));for(let p=0;p<l.length;p++){let h=l.charAt(p);h===ai?n.minFrac=n.maxFrac=p+1:h===Ku?n.maxFrac=p+1:n.posSuf+=h}let c=a.split(jD);if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,i){let p=o.length-n.posPre.length-n.posSuf.length,h=i.indexOf(Ku);n.negPre=i.substring(0,h).replace(/'/g,""),n.negSuf=i.slice(h+p).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function UD(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function $D(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Ea))>-1&&(t=t.replace(Ea,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===ai;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===ai;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>Xh&&(r=r.splice(0,Xh-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function zD(e,t,n){if(t>n)throw new S(2307,!1);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let h=s;h<r.length;h++)r[h]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let h=1;h<s;h++)r[h]=0}if(a>=5)if(s-1<0){for(let h=0;h>s;h--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let l=i!==0,c=t+e.integerLen,p=r.reduceRight(function(h,y,m,_){return y=y+h,_[m]=y<10?y:y-10,l&&(_[m]===0&&m>=c?_.pop():l=!1),y>=10?1:0},0);p&&(r.unshift(p),e.integerLen++)}function Ju(e){let t=parseInt(e);if(isNaN(t))throw new S(2305,!1);return t}function pm(e,t){return new S(2100,!1)}var GD="mediumDate",gm=new O(""),hm=new O(""),ed=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??GD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return cm(n,s,i||this.locale,a)}catch(s){throw pm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(J(Zr,16),J(gm,24),J(hm,24))};static \u0275pipe=ua({name:"date",type:e,pure:!0})}return e})();var li=(()=>{class e{_locale;constructor(n){this._locale=n}transform(n,r,o){if(!WD(n))return null;o||=this._locale;try{let i=qD(n);return fm(i,o,r)}catch(i){throw pm(e,i.message)}}static \u0275fac=function(r){return new(r||e)(J(Zr,16))};static \u0275pipe=ua({name:"number",type:e,pure:!0})}return e})();function WD(e){return!(e==null||e===""||e!==e)}function qD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new S(2309,!1);return e}var Sn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({})}return e})();function ci(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)continue;let s=i;try{s=decodeURIComponent(i)}catch{}return s.length>1&&s[0]==='"'&&s[s.length-1]==='"'&&(s=s.slice(1,-1)),s}return null}var mm="browser";var ui=class{_doc;constructor(t){this._doc=t}manager},wa=(()=>{class e extends ui{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)($(Fe))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),Ia=new O(""),id=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof wa));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof wa);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}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)($(Ia),$(De))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),nd="ng-app-id";function ym(e){for(let t of e)t.remove()}function vm(e,t){let n=t.createElement("style");return n.textContent=e,n}function QD(e,t,n,r){let o=e.head?.querySelectorAll(`style[${nd}="${t}"],link[${nd}="${t}"]`);if(!o||o.length===0)return!1;for(let i of o)i.removeAttribute(nd),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]});return!0}function od(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var sd=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,QD(n,r,this.inline,this.external)&&this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,vm);r?.forEach(o=>this.addUsage(o,this.external,od))}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&&(ym(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ym(n);this.hosts.clear()}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,vm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,od(r,this.doc)))}}removeHost(n){this.hosts.delete(n);for(let r of[...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)($(Fe),$(Oo),$(Ro,8),$(ko))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),rd={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"},ad=/%COMP%/g;var Cm="%COMP%",KD=`_nghost-${Cm}`,JD=`_ngcontent-${Cm}`,XD=!0,eE=new O("",{factory:()=>XD}),tE=new O("");function nE(e){return JD.replace(ad,e)}function rE(e){return KD.replace(ad,e)}function bm(e,t){return t.map(n=>n.replace(ad,e))}var ld=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(n,r,o,i,s,a,l=null,c=null,p=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=l,this.tracingService=c,this.cssVarNamespace=p??"",this.defaultRenderer=new di(n,s,a,this.tracingService,this.cssVarNamespace)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Sa?o.applyToHost(n):o instanceof fi&&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,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(r.encapsulation){case Et.Emulated:i=new Sa(l,c,r,this.appId,p,s,a,h,this.cssVarNamespace);break;case Et.ShadowDom:return new xa(l,n,r,s,a,this.nonce,h,this.cssVarNamespace,c);case Et.ExperimentalIsolatedShadowDom:return new xa(l,n,r,s,a,this.nonce,h,this.cssVarNamespace);default:i=new fi(l,c,r,p,s,a,h,this.cssVarNamespace);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)($(id),$(ir),$(Oo),$(eE),$(Fe),$(De),$(Ro),$(tn,8),$(tE,8))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),di=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i=""){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o,this.cssVarNamespace=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(rd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(_m(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){if(t){let o=_m(t)?t.content:t;if(r!=null&&r.parentNode!==o)throw new S(-5106,!1);o.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=rd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=rd[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){let i=n.startsWith("--");i&&(n=n.replace("%NS%",this.cssVarNamespace)),i||o&(jt.DashCase|jt.Important)?t.style.setProperty(n,r,o&jt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){let o=n.startsWith("--");o&&(n=n.replace("%NS%",this.cssVarNamespace)),o||r&jt.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,o){if(typeof t=="string"&&(t=Mt().getGlobalEventTarget(this.doc,t),!t))throw new S(-5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function _m(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var xa=class extends di{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,l,c){super(t,o,i,a,l),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let p=r.styles;p=bm(r.id,p).map(y=>y.replace(/%NS%/g,l));for(let y of p){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=y,this.shadowRoot.appendChild(m)}let h=r.getExternalStyles?.();if(h)for(let y of h){let m=od(y,o);s&&m.setAttribute("nonce",s),this.shadowRoot.appendChild(m)}}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&&this.sharedStylesHost.removeHost(this.shadowRoot)}},fi=class extends di{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,l,c){super(t,i,s,a,l),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let p=r.styles,h=c?bm(c,p):p;this.styles=h.map(y=>y.replace(/%NS%/g,l)),this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&_n.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Sa=class extends fi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,l,c){let p=o+"-"+r.id;super(t,n,r,i,s,a,l,c,p),this.contentAttr=nE(p),this.hostAttr=rE(p)}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}};var Ma=class e extends ri{supportsDOMEvents=!0;static makeCurrent(){qu(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}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=oE();return n==null?null:iE(n)}resetBaseElement(){pi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ci(document.cookie,t)}},pi=null;function oE(){return pi=pi||document.head.querySelector("base"),pi?pi.getAttribute("href"):null}function iE(e){return new URL(e,document.baseURI).pathname}var Dm=["alt","control","meta","shift"],sE={"\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"},aE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Em=(()=>{class e extends ui{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mt().onAndCancel(n,s.domEventName,a,i))}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."),Dm.forEach(c=>{let p=r.indexOf(c);p>-1&&(r.splice(p,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=sE[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"),Dm.forEach(s=>{if(s!==o){let a=aE[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)($(Fe))};static \u0275prov=te({token:e,factory:e.\u0275fac})}return e})();async function cd(e,t){return Zh(lE(e,t))}function lE(e,t){return{platformRef:t?.platformRef,appProviders:[...pE,...e?.providers??[]],platformProviders:fE}}function cE(){Ma.makeCurrent()}function uE(){return new st}function dE(){return uu(document),document}var fE=[{provide:ko,useValue:mm},{provide:Ns,useValue:cE,multi:!0},{provide:Fe,useFactory:dE}];var pE=[{provide:Io,useValue:"root"},{provide:st,useFactory:uE},{provide:Ia,useClass:wa,multi:!0},{provide:Ia,useClass:Em,multi:!0},ld,{provide:ir,useClass:sd},{provide:sd,useExisting:ir},id,{provide:tr,useExisting:ld},[]];var cn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).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();for(let[n,r]of t.headers.entries())this.headers.set(n,r),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)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(l=>s.indexOf(l)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}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 Na=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()}},Aa=class{encodeKey(t){return wm(t)}encodeValue(t){return wm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function gE(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 hE=/%(\d[a-f0-9])/gi,mE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function wm(e){return encodeURIComponent(e).replace(hE,(t,n)=>mE[n]??t)}function Ta(e){return`${e}`}var ln=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Aa,t.fromString){if(t.fromObject)throw new S(2805,!1);this.map=gE(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(Ta):[Ta(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(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(Ta(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(Ta(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}}};function yE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function xm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Sm(e){return typeof Blob<"u"&&e instanceof Blob}function Im(e){return typeof FormData<"u"&&e instanceof FormData}function vE(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ud="Content-Type",Mm="Accept",Am="text/plain",Om="application/json",_E=`${Om}, ${Am}, */*`,Yr=class e{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(yE(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new S(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new cn,this.context??=new Na,!this.params)this.params=new ln,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n,l="",c=n.indexOf("#");c!==-1&&(l=n.substring(c),a=n.substring(0,c));let p=a.indexOf("?"),h=p===-1?"?":p<a.length-1?"&":"";this.urlWithParams=a+h+s+l}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||xm(this.body)||Sm(this.body)||Im(this.body)||vE(this.body)?this.body:this.body instanceof ln?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||Im(this.body)?null:Sm(this.body)?this.body.type||null:xm(this.body)?null:typeof this.body=="string"?Am:this.body instanceof ln?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Om:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,l=t.mode||this.mode,c=t.redirect||this.redirect,p=t.credentials||this.credentials,h=t.referrer??this.referrer,y=t.integrity||this.integrity,m=t.referrerPolicy||this.referrerPolicy,_=t.transferCache??this.transferCache,x=t.timeout??this.timeout,R=t.body!==void 0?t.body:this.body,F=t.withCredentials??this.withCredentials,ce=t.reportProgress??this.reportProgress,Qe=t.reportUploadProgress??this.reportUploadProgress,rt=t.reportDownloadProgress??this.reportDownloadProgress,Ke=t.headers||this.headers,ot=t.params||this.params,zt=t.context??this.context;return t.setHeaders!==void 0&&(Ke=Object.keys(t.setHeaders).reduce((Ve,Nt)=>Ve.set(Nt,t.setHeaders[Nt]),Ke)),t.setParams&&(ot=Object.keys(t.setParams).reduce((Ve,Nt)=>Ve.set(Nt,t.setParams[Nt]),ot)),new e(n,r,R,{params:ot,headers:Ke,context:zt,reportProgress:ce,reportUploadProgress:Qe,reportDownloadProgress:rt,responseType:o,withCredentials:F,transferCache:_,keepalive:i,cache:a,priority:s,timeout:x,mode:l,redirect:c,credentials:p,referrer:h,integrity:y,referrerPolicy:m})}},ur=(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})(ur||{}),Qr=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new cn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Oa=class e extends Qr{constructor(t={}){super(t)}type=ur.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})}},gi=class e extends Qr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=ur.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,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},cr=class extends Qr{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}},CE=200;var bE=/^\)\]\}',?\n/,sj=1024*1024,km=new O("",{factory:()=>null}),Kr=(()=>{class e{fetchImpl=b(fd,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=b(De);destroyRef=b(de);maxResponseSize=b(km);handle(n){return new Q(r=>{let o=new AbortController,i=!1,s={next:l=>{l.type===ur.Response&&(i=!0),r.next(l)},error:l=>{i=!0,r.error(l)},complete:()=>{i=!0,r.complete()}};this.doRequest(n,o.signal,s).then(pd,l=>s.error(new cr({error:l})));let a;return n.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{a!==void 0&&clearTimeout(a),!i&&!o.signal.aborted&&o.abort()}})}async doRequest(n,r,o){let i=this.createRequestInit(n),s;try{let R=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,j({signal:r},i)));DE(R),o.next({type:ur.Sent}),s=await R}catch(R){o.error(new cr({error:R,status:R.status??0,statusText:R.statusText,url:n.urlWithParams,headers:R.headers}));return}let a=new cn(s.headers),l=s.statusText,c=s.url||n.urlWithParams,p=s.status,h=null,y=n.reportProgress||n.reportDownloadProgress;if(y&&o.next(new Oa({headers:a,status:p,statusText:l,url:c})),s.body){let R=s.headers.get(ud)??"",F=s.headers.get("content-length"),ce=F!==null?Number(F):NaN;this.maxResponseSize!==null&&Number.isFinite(ce)&&ce>this.maxResponseSize&&(await s.body.cancel(),Tm(this.maxResponseSize));let Qe=[],rt=s.body.getReader(),Ke=0,ot,zt,Ve=typeof Zone<"u"&&Zone.current,Nt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await rt.cancel(),Nt=!0;break}let{done:Xa,value:el}=await rt.read();if(Xa)break;if(Qe.push(el),Ke+=el.length,this.maxResponseSize!==null&&Ke>this.maxResponseSize&&(await rt.cancel(),Tm(this.maxResponseSize)),y){zt=n.responseType==="text"?(zt??"")+(ot??=Nm(R)).decode(el,{stream:!0}):void 0;let jd=()=>o.next({type:ur.DownloadProgress,total:Number.isFinite(ce)?ce:void 0,loaded:Ke,partialText:zt});Ve?Ve.run(jd):jd()}}}),Nt){o.complete();return}let Ty=this.concatChunks(Qe,Ke);try{h=this.parseBody(n,Ty,R,p)}catch(Xa){o.error(new cr({error:Xa,headers:new cn(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}p===0&&(p=h?CE:0);let m=p>=200&&p<300,_=s.redirected,x=s.type;m?(o.next(new gi({body:h,headers:a,status:p,statusText:l,url:c,redirected:_,responseType:x})),o.complete()):o.error(new cr({error:h,headers:a,status:p,statusText:l,url:c,redirected:_,responseType:x}))}parseBody(n,r,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(bE,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case"text":return Nm(o).decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new S(2824,!1);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(Mm)||(r[Mm]=_E),!n.headers.has(ud)){let i=n.detectContentTypeHeader();i!==null&&(r[ud]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}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=en({token:e,factory:e.\u0275fac})}return e})(),fd=class{};function pd(){}function DE(e){e.then(pd,pd)}function Tm(e){throw new S(-2825,!1)}var EE=/charset=\s*["']?([^;"'\s]+)["']?/i;function Nm(e){let t=e.match(EE);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var wE=new O("",{factory:()=>!0}),xE="XSRF-TOKEN",SE=new O("",{factory:()=>xE}),IE="X-XSRF-TOKEN",ME=new O("",{factory:()=>IE}),TE=(()=>{class e{cookieName=b(SE);doc=b(Fe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ci(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=en({token:e,factory:e.\u0275fac})}return e})(),Rm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(TE),o},providedIn:"root"})}return e})();function Pm(e,t){if(!b(wE)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=b(ma).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=b(Rm).getToken(),r=b(ME);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function NE(e,t){return t(e)}function AE(e,t,n){return(r,o)=>Tr(n,()=>t(r,i=>e(i,o)))}var gd=new O("",{factory:()=>[Pm]}),Fm=new O(""),Lm=new O("",{factory:()=>!0});var Ra=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(Kr),o},providedIn:"root"})}return e})();var ka=(()=>{class e{backend;injector;chain=null;pendingTasks=b(Lr);contributeToStability=b(Lm);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let o=this.injector.get(Pa,null,{skipSelf:!0}),i=o!==null&&this.backend===o,s=this.injector.get(Fm,[],i?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(gd),...s]));this.chain=a.reduceRight((l,c)=>AE(l,c,this.injector),NE)}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return Ze(()=>r(n,i=>this.backend.handle(i))).pipe(El(o))}else return Ze(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)($(Ra),$(Ue))};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pa=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=$(ka),o},providedIn:"root"})}return e})();function dd(e,t){return j({body:t},e)}var Fa=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Yr)i=n;else{let l;o.headers instanceof cn?l=o.headers:l=new cn(o.headers);let c;o.params&&(o.params instanceof ln?c=o.params:c=new ln({fromObject:o.params})),i=new Yr(n,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=vl(i).pipe(Dl(l=>this.handler.handle(l)));if(n instanceof Yr||o.observe==="events")return s;let a=s.pipe(bl(l=>l instanceof gi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(xe(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new S(2806,!1);return l.body}));case"blob":return a.pipe(xe(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new S(2807,!1);return l.body}));case"text":return a.pipe(xe(l=>{if(l.body!==null&&typeof l.body!="string")throw new S(2808,!1);return l.body}));default:return a.pipe(xe(l=>l.body))}case"response":return a;default:throw new S(2809,!1)}}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 ln().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,dd(o,r))}post(n,r,o={}){return this.request("POST",n,dd(o,r))}put(n,r,o={}){return this.request("PUT",n,dd(o,r))}static \u0275fac=function(r){return new(r||e)($(Pa))};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var La=(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[e.Xhr=7]="Xhr",e})(La||{});function Vm(e,t){return{\u0275kind:e,\u0275providers:t}}function hd(...e){let t=[Fa,Kr,ka,{provide:Pa,useExisting:ka},{provide:Ra,useFactory:()=>b(Kr)},{provide:gd,useValue:Pm,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Ir(t)}function md(e){return Vm(La.Interceptors,e.map(t=>({provide:gd,useValue:t,multi:!0})))}function yd(){return Vm(La.Fetch,[Kr,{provide:Ra,useExisting:Kr}])}var jm={apiBase:""},Jr=jm,Bm=!1;function OE(){if(!Bm)throw new Error(`Aastrika: configure() was never called. A host must supply at least apiBase:
6
6
 
7
7
  import { configure } from '@aastrika/ai-elements';
8
8
  configure({ apiBase: 'https://api.example.org/ai-studio' });
9
9
 
10
- Use an empty apiBase only when the service is same-origin.`)}function ME(e){if(typeof e?.apiBase!="string")throw new Error(`Aastrika: configure() needs an apiBase string, received ${typeof e?.apiBase}. Pass an empty string for same-origin.`);eo=L(L({},Fm),e),Lm=!0}function Vm(){return eo}var jm={get apiBase(){return IE(),eo.apiBase},get getAuthHeaders(){return eo.getAuthHeaders},get creator(){return eo.creator},get onError(){return eo.onError}};var TE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function NE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function AE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var yd;function OE(e,t){if(!yd){let n=Element.prototype;yd=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?yd.call(e,t):!1}function kE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[NE(r)]=[n,o]}),t}function RE(e,t){return ri(e).inputs}function PE(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=FE(a,t,o);c!==-1&&r[c].push(a)}return r}function FE(e,t,n){let r=n;return AE(e)&&t.some((o,i)=>o!=="*"&&OE(e,o)?(r=i,!0):!1),r}var LE=10,vd=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=ri(t);for(let n of this.componentMirror.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new _d(this.component,t,this.inputMap)}},_d=class{component;injector;inputMap;eventEmitters=new Er(1);events=this.eventEmitters.pipe(Pn(t=>_c(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.component=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(be),this.appRef=this.injector.get(bn),this.cdScheduler=n.get(gt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=TE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},LE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),Su(this.componentRef.hostView)&&(Iu(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=ke.create({providers:[],parent:this.injector}),r=PE(t,ri(this.component).ngContentSelectors);this.componentRef=Gg(this.component,{environmentInjector:this.injector,elementInjector:n,hostElement:t,projectableNodes:r}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=ri(this.component).outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new q(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Cd=class extends HTMLElement{ngElementEventsSubscription=null};function Bm(e,t){let n=RE(e),r=t.strategyFactory||new vd(e),o=kE(n);class i extends Cd{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:l})=>{if(!Object.hasOwn(this,c))return;let f=this[c];delete this[c],a.setInputValue(c,f,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,f){let[g,y]=o[a];this.ngElementStrategy.setInputValue(g,l,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a,isSignal:c})=>{Object.defineProperty(i.prototype,s,{get(){let l=this.ngElementStrategy.getInputValue(s);return c&&Yn(l)?l():l},set(l){this.ngElementStrategy.setInputValue(s,l,a)},configurable:!0,enumerable:!0})}),i}function Hm(e,t){return typeof customElements>"u"||customElements.get(e.tag)?!1:(customElements.define(e.tag,Bm(e.component,{injector:t})),!0)}function to(e){e||(e=C(ue));let t=new q(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(Ec(t))}var Km=(()=>{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)(Y(Bt),Y(wt))};static \u0275dir=_e({type:e})}return e})(),bi=(()=>{class e extends Km{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,features:[Ue]})}return e})(),io=new T(""),VE={provide:io,useExisting:He(()=>Id),multi:!0},Id=(()=>{class e extends bi{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&A("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[lt([VE]),Ue]})}return e})(),jE={provide:io,useExisting:He(()=>xn),multi:!0};function BE(){let e=Mt()?Mt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var HE=new T(""),xn=(()=>{class e extends Km{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!BE())}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)(Y(Bt),Y(wt),Y(HE,8))};static \u0275dir=_e({type:e,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&A("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:[lt([jE]),Ue]})}return e})();function Md(e){return e==null||Td(e)===0}function Td(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Di=new T(""),UE=new T(""),$E=/^(?=.{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])?)*$/,bd=class{static min(t){return Jm(t)}static max(t){return Xm(t)}static required(t){return ey(t)}static requiredTrue(t){return zE(t)}static email(t){return GE(t)}static minLength(t){return WE(t)}static maxLength(t){return ty(t)}static pattern(t){return qE(t)}static nullValidator(t){return ja()}static compose(t){return ay(t)}static composeAsync(t){return ly(t)}};function Jm(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function Xm(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function ey(e){return Md(e.value)?{required:!0}:null}function zE(e){return e.value===!0?null:{required:!0}}function GE(e){return Md(e.value)||$E.test(e.value)?null:{email:!0}}function WE(e){return t=>{let n=t.value?.length??Td(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function ty(e){return t=>{let n=t.value?.length??Td(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function qE(e){if(!e)return ja;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(Md(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function ja(e){return null}function ny(e){return e!=null}function ry(e){return Wr(e)?Gt(e):e}function oy(e){let t={};return e.forEach(n=>{t=n!=null?L(L({},t),n):t}),Object.keys(t).length===0?null:t}function iy(e,t){return t.map(n=>n(e))}function ZE(e){return!e.validate}function sy(e){return e.map(t=>ZE(t)?t:n=>t.validate(n))}function ay(e){if(!e)return null;let t=e.filter(ny);return t.length==0?null:function(n){return oy(iy(n,t))}}function cy(e){return e!=null?ay(sy(e)):null}function ly(e){if(!e)return null;let t=e.filter(ny);return t.length==0?null:function(n){let r=iy(n,t).map(ry);return vc(r).pipe(we(oy))}}function uy(e){return e!=null?ly(sy(e)):null}function Um(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function YE(e){return e._rawValidators}function QE(e){return e._rawAsyncValidators}function Dd(e){return e?Array.isArray(e)?e:[e]:[]}function Ba(e,t){return Array.isArray(e)?e.includes(t):e===t}function $m(e,t){let n=Dd(t);return Dd(e).forEach(o=>{Ba(n,o)||n.push(o)}),n}function zm(e,t){return Dd(t).filter(n=>!Ba(e,n))}var Ha=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=cy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=uy(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?.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}},Ed=class extends Ha{name;get formDirective(){return null}get path(){return null}};var mi="VALID",Va="INVALID",no="PENDING",yi="DISABLED",fr=class{},Ua=class extends fr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},vi=class extends fr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},_i=class extends fr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},ro=class extends fr{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var Ci=class extends fr{source;constructor(t){super(),this.source=t}};function KE(e){return($a(e)?e.validators:e)||null}function JE(e){return Array.isArray(e)?cy(e):e||null}function XE(e,t){return($a(t)?t.asyncValidators:e)||null}function ew(e){return Array.isArray(e)?uy(e):e||null}function $a(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var wd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=F(!1);_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,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ze(this.statusReactive)}set status(t){Ze(()=>this.statusReactive.set(t))}_status=ae(()=>this.statusReactive());statusReactive=F(void 0);get valid(){return this.status===mi}get invalid(){return this.status===Va}get pending(){return this.status===no}get disabled(){return this.status===yi}get enabled(){return this.status!==yi}errors;get pristine(){return Ze(this.pristineReactive)}set pristine(t){Ze(()=>this.pristineReactive.set(t))}_pristine=ae(()=>this.pristineReactive());pristineReactive=F(!0);get dirty(){return!this.pristine}get touched(){return Ze(this.touchedReactive)}set touched(t){Ze(()=>this.touchedReactive.set(t))}_touched=ae(()=>this.touchedReactive());touchedReactive=F(!1);get untouched(){return!this.touched}_events=new Ae;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($m(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators($m(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(zm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(zm(t,this._rawAsyncValidators))}hasValidator(t){return Ba(this._rawValidators,t)}hasAsyncValidator(t){return Ba(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;t.onlySelf||this._parent?.markAsTouched(H(L({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new _i(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}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})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new _i(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(H(L({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new vi(!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})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new vi(!0,r))}markAsPending(t={}){this.status=no;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ro(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(H(L({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=yi,this.errors=null,this._forEachChild(o=>{o.disable(H(L({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ua(this.value,r)),this._events.next(new ro(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(H(L({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=mi,this._forEachChild(r=>{r.enable(H(L({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(H(L({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){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===mi||this.status===no)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ua(this.value,n)),this._events.next(new ro(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(H(L({},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()?yi:mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=no,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=ry(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||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!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?.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 ro(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Oe,this.statusChanges=new Oe}_calculateStatus(){return this._allControlsDisabled()?yi:this.errors?Va:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(no)?no:this._anyControlsHaveStatus(Va)?Va:mi}_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,t.onlySelf||this._parent?._updatePristine(t,n),o&&this._events.next(new vi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new _i(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){$a(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=JE(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=ew(this._rawAsyncValidators)}_updateHasRequiredValidator(){Ze(()=>this._hasRequired.set(this.hasValidator(bd.required)))}};function tw(e){return e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"}function nw(e,t,n,r){switch(n){case"name":e.setAttribute(t,n,r);break;case"disabled":case"readonly":case"required":r?e.setAttribute(t,n,""):e.removeAttribute(t,n);break;case"max":case"min":case"minLength":case"maxLength":r!==void 0?e.setAttribute(t,n,r.toString()):e.removeAttribute(t,n);break}}var xd=class{kind;context;control;message;constructor({kind:t,context:n,control:r}){this.kind=t,this.context=n,this.control=r}};function rw(e){return typeof e=="number"?e:parseInt(e,10)}function dy(e){return typeof e=="number"?e:parseFloat(e)}var za=(()=>{class e{_validator=ja;_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):ja,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=_e({type:e,features:[rr]})}return e})(),ow={provide:Di,useExisting:He(()=>Nd),multi:!0},Nd=(()=>{class e extends za{max;inputName="max";normalizeInput=n=>dy(n);createValidator=n=>Xm(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&xt("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[lt([ow]),Ue]})}return e})(),iw={provide:Di,useExisting:He(()=>Ad),multi:!0},Ad=(()=>{class e extends za{min;inputName="min";normalizeInput=n=>dy(n);createValidator=n=>Jm(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&xt("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[lt([iw]),Ue]})}return e})(),sw={provide:Di,useExisting:He(()=>fy),multi:!0};var fy=(()=>{class e extends za{required;inputName="required";normalizeInput=zu;createValidator=n=>ey;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({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&&xt("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[lt([sw]),Ue]})}return e})();var aw={provide:Di,useExisting:He(()=>Od),multi:!0},Od=(()=>{class e extends za{maxlength;inputName="maxlength";normalizeInput=n=>rw(n);createValidator=n=>ty(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&xt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[lt([aw]),Ue]})}return e})();var cw=new T(""),py=new T("",{factory:()=>kd}),kd="always";function lw(e,t){return[...t.path,e]}function Gm(e,t,n=kd){dw(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),fw(e,t),hw(e,t),pw(e,t),uw(e,t)}function Wm(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function uw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function dw(e,t){let n=YE(e);t.validator!==null?e.setValidators(Um(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=QE(e);t.asyncValidator!==null?e.setAsyncValidators(Um(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Wm(t._rawValidators,o),Wm(t._rawAsyncValidators,o)}function fw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&hy(e,t)})}function pw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&hy(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function hy(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function hw(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function gw(e,t){if(!Object.hasOwn(e,"model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function mw(e){return Object.getPrototypeOf(e.constructor)===bi}function yw(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===xn?n=i:mw(i)?r=i:o=i}),o||r||n||null}var vw={provide:cw,useFactory:()=>{let e=C(oo,{self:!0});return{setParseErrors:t=>{e.setParseErrorSource(t)},set onReset(t){e.onReset=t}}}},oo=class extends Ha{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(n=>{n instanceof Ci&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=yw(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,n,r){super(),this.injector=t,this.renderer=n,this.rawValueAccessors=r,this.injector?.get(ue)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(ni);if(!this.control||!t)return;let n=t.markForCheck.bind(t);this.subscription=new Ee,this.subscription.add(this.control.valueChanges.subscribe(n)),this.subscription.add(this.control.statusChanges.subscribe(n)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof Ci&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=!0,t.listenToCustomControlModel(o=>{this.control?.setValue(o,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(o)}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=tw(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(o=>o instanceof fy))}ngControlUpdate(t,n){if(!this.isCustomControlBased)return;let r=this.control,o=this.customControlBindings;Object.is(o.value,r.value)||(o.value=r.value,t.setCustomControlModelInput(r.value)),this.bindControlProperty(t,o,"touched",r.touched),this.bindControlProperty(t,o,"dirty",r.dirty),this.bindControlProperty(t,o,"valid",r.valid),this.bindControlProperty(t,o,"invalid",r.invalid),this.bindControlProperty(t,o,"pending",r.pending),this.bindControlProperty(t,o,"disabled",r.disabled),this.shouldBindRequired&&this.bindControlProperty(t,o,"required",this.isRequired);let i=r.errors;if(o.errors!==i){o.errors=i;let s=this._convertErrors(i);t.setInputOnDirectives("errors",s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(t,n,r,o){if(n[r]===o)return;n[r]=o;let i=t.setInputOnDirectives(r,o);this.isNativeFormElement&&!i&&(r==="disabled"||r==="required")&&this.renderer&&nw(this.renderer,t.nativeElement,r,o)}_convertErrors(t){if(t===null)return[];let n=this.control;return Object.entries(t).map(([r,o])=>new xd({context:o,kind:r,control:n}))}setParseErrorSource(t){if(t===void 0)return;let n=null,r=ae(()=>{let o=t();return o.length===0?null:o.reduce((i,s)=>(i[s.kind]=s,i),{})});this.parseErrorsValidator=(()=>n).bind(this),_t(()=>{n=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:!1}))}},Sd=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}};var so=(()=>{class e extends Sd{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(Y(oo,2))};static \u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ge("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:[Ue]})}return e})();function qm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Zm(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var _w=class extends wd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(KE(n),XE(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$a(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Zm(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){Ze(()=>{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),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new Ci(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){qm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){qm(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){Zm(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 Cw={provide:oo,useExisting:He(()=>pr)},Ym=Promise.resolve(),pr=(()=>{class e extends oo{_changeDetectorRef;callSetDisabledState;control=new _w;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Oe;constructor(n,r,o,i,s,a,c,l){super(c,l,i),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnChanges(n){if(this._registered,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),gw(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(n){super.ngControlCreate(n)}\u0275ngControlUpdate(n){super.ngControlUpdate(n,!1)}get shouldBindRequired(){return!1}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(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Gm(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(n){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Gm(this.control,this,n))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Ym.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&zu(r);Ym.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?lw(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(Y(Ed,9),Y(Di,10),Y(UE,10),Y(io,10),Y(ni,8),Y(py,8),Y(ke,8),Y(Bt,8))};static \u0275dir=_e({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:[lt([Cw,vw]),Ue,rr,Pu(null)]})}return e})();var bw={provide:io,useExisting:He(()=>Rd),multi:!0},Rd=(()=>{class e extends bi{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&A("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[lt([bw]),Ue]})}return e})();var Dw={provide:io,useExisting:He(()=>ao),multi:!0};function gy(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Ew(e){return e.split(":")[0]}var ao=(()=>{class e extends bi{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=C(bn).injector;destroyRef=C(ue);cdr=C(ni);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,hu({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=gy(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=Ew(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&A("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[lt([Dw]),Ue]})}return e})(),Ga=(()=>{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(gy(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select?._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||e)(Y(wt),Y(Bt),Y(ao,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),ww={provide:io,useExisting:He(()=>my),multi:!0};function Qm(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function xw(e){return e.split(":")[0]}var my=(()=>{class e extends bi{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)>-1)}}else r=o=>{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 c=s[a],l=this._getOptionValue(c.value);o.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);o.push(l)}}}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=xw(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Et(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&A("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[lt([ww]),Ue]})}return e})(),Wa=(()=>{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(Qm(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Qm(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)(Y(wt),Y(Bt),Y(my,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var Sw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Cn({type:e});static \u0275inj=Yt({})}return e})();var co=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:py,useValue:n.callSetDisabledState??kd}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Cn({type:e});static \u0275inj=Yt({imports:[Sw]})}return e})();var Iw=["dlg"];function Mw(e,t){if(e&1&&(on(0,"p",3),p(1),Dn()),e&2){let n=v();h(),b(n.subject)}}var Sn=class e{open=!1;title="Are you sure?";subject="";message="This cannot be undone.";confirmLabel="Delete";busy=!1;confirmed=new Oe;cancelled=new Oe;dlg;ngOnChanges(){queueMicrotask(()=>{let t=this.dlg?.nativeElement;t&&(this.open&&!t.open?t.showModal():!this.open&&t.open&&t.close())})}onEscape(t){t.preventDefault(),this.busy||this.cancelled.emit()}onBackdrop(t){t.target===this.dlg?.nativeElement&&!this.busy&&this.cancelled.emit()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-confirm-dialog"]],viewQuery:function(n,r){if(n&1&&fa(Iw,5),n&2){let o;Vu(o=ju())&&(r.dlg=o.first)}},inputs:{open:"open",title:"title",subject:"subject",message:"message",confirmLabel:"confirmLabel",busy:"busy"},outputs:{confirmed:"confirmed",cancelled:"cancelled"},features:[rr],decls:12,vars:5,consts:[["dlg",""],["aria-labelledby","aa-confirm-title",1,"dialog",3,"cancel","click"],["id","aa-confirm-title",1,"title"],[1,"subject"],[1,"body"],[1,"actions"],["type","button","autofocus","",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","danger",3,"click","disabled"]],template:function(n,r){n&1&&(on(0,"dialog",1,0),qr("cancel",function(i){return r.onEscape(i)})("click",function(i){return r.onBackdrop(i)}),on(2,"h3",2),p(3),Dn(),D(4,Mw,2,1,"p",3),on(5,"p",4),p(6),Dn(),on(7,"div",5)(8,"button",6),qr("click",function(){return r.cancelled.emit()}),p(9,"Cancel"),Dn(),on(10,"button",7),qr("click",function(){return r.confirmed.emit()}),p(11),Dn()()()),n&2&&(h(3),b(r.title),h(),E(r.subject?4:-1),h(2),b(r.message),h(4),da("disabled",r.busy),h(),R(" ",r.busy?"Deleting\u2026":r.confirmLabel," "))},styles:[".dialog[_ngcontent-%COMP%]{margin:auto;padding:22px 24px;width:calc(100% - 40px);max-width:440px;background:var(--%NS%aastrika-surface, #fff);color:var(--%NS%aastrika-ink, #1A1A1A);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:12px;box-shadow:0 18px 48px #17141038}.dialog[_ngcontent-%COMP%]::backdrop{background:#17141073}.title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:16px;font-weight:650}.subject[_ngcontent-%COMP%]{margin:0 0 10px;padding:9px 11px;background:var(--%NS%aastrika-surface-2, #faf8f5);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:7px;font-size:13px;overflow-wrap:anywhere}.body[_ngcontent-%COMP%]{margin:0 0 18px;font-size:13px;color:var(--%NS%aastrika-muted, #6b6257)}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end}.danger[_ngcontent-%COMP%]{background:#b42318;border-color:#b42318;color:#fff}.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#98200f}.danger[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}"]})};function yy(e){if(!e||typeof e!="object")return;let t=e.error;if(!t||typeof t!="object")return;let n=t.error;return n&&typeof n=="object"?n:void 0}function vy(e){let t=e?.status;return typeof t=="number"?t:void 0}function Tw(e){return yy(e)?.code}function Nw(e,t={},n="Request failed"){let r=vy(e);if(r!==void 0&&t[r])return t[r];let o=yy(e)?.message;return typeof o=="string"&&o.trim()?o:r===void 0?`${n}.`:`${n} (${r}).`}function le(e,t,n={},r="Request failed"){let o=Nw(e,n,r),i=Vm().onError;if(i)try{i({feature:t,message:o,status:vy(e),code:Tw(e)})}catch{}return o}function lo(e){let t=F(null),n=F(!1);return{pending:t.asReadonly(),open:ae(()=>t()!==null),busy:n.asReadonly(),ask(r){r!=null&&t.set(r)},cancel(){n()||t.set(null)},confirm(){let r=t();r===null||n()||(n.set(!0),e.request(r).subscribe({next:()=>{n.set(!1),t.set(null),e.onDeleted(r)},error:o=>{n.set(!1),t.set(null),e.onError(le(o,e.feature,e.byStatus??{},e.fallback??"Could not delete it"))}}))}}}function hr({lookup:e,fallbackHref:t,onError:n,feature:r}){e.subscribe({next:({url:o})=>{window.open(o??t,"_blank","noopener")},error:o=>n(le(o,r,{},"Could not open the file"))})}var qa=[{id:"queued",label:"Waiting to start",detail:"Your video is in the queue.",icon:"\u23F3"},{id:"narration",label:"Recording narration",detail:"Turning the script into a voice, scene by scene.",icon:"\u{1F399}\uFE0F"},{id:"illustration",label:"Drawing scenes",detail:"Illustrating each scene to match the narration.",icon:"\u{1F3A8}"},{id:"assembly",label:"Putting it together",detail:"Joining the pictures and the voice into one video.",icon:"\u{1F3AC}"},{id:"checking",label:"Final check",detail:"Looking for cut-off faces and text in the wrong place.",icon:"\u{1F50D}"}];function Ei(e,t){return e.filter(n=>t.test(n.message)).length}function _y(e,t){let n=e?.log??[],o=n.map(Fe=>Fe.message).join(`
11
- `),i=e?.progress,s=Number.isFinite(i)?Math.max(0,Math.min(100,i)):0,a=e?.status==="done",c=e?.status==="failed",l=a?100:c?s:Math.min(s,99),f=e?.status==="failed",g=e?.status==="done",y=[],m=Ei(n,/narration FAILED/),_=Ei(n,/image FAILED|visual FAILED|NOT FOUND/),w=Ei(n,/restyle failed/);m&&y.push(`${m} scene${m>1?"s":""} has no narration`),_&&y.push(`${_} scene${_>1?"s":""} has a plain background instead of a picture`),w&&y.push(`${w} of your images could not be redrawn, so they appear as you uploaded them`);let O=Fe=>qa.find(Nt=>Nt.id===Fe)??qa[0];if(f)return{stage:{id:"failed",label:"Could not finish",detail:"",icon:"\u2717"},percent:l,counter:"",headline:e?.error||"Something went wrong while making the video.",warnings:y,etaSeconds:null,done:!1,failed:!0};if(g)return{stage:{id:"done",label:"Ready",detail:"",icon:"\u2713"},percent:100,counter:"",headline:"Your video is ready to watch.",warnings:y,etaSeconds:null,done:!0,failed:!1};let P=Fe=>t?Math.min(Fe,t):Fe,ce=P(Ei(n,/narration ✓/)),Qe=P(Ei(n,/image ✓|visual ✓|= your image|= your uploaded image|= slide page/));if(/^QC:/m.test(o))return{stage:O("checking"),percent:l,counter:"",headline:"Almost there \u2014 checking the finished video.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};if(/Rendering (video|edited video)/.test(o))return{stage:O("assembly"),percent:l,counter:"",headline:"Joining everything into one video. This is the longest step.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};let tt=/Voiceover:/.test(o),Ke=/Edit plan:/.test(o),nt=/Illustrations:|Visuals:/.test(o);if(Ke)return{stage:O("illustration"),percent:l,counter:"",headline:"Applying your edits to the video.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};if(tt&&ce<t)return{stage:O("narration"),percent:l,counter:t?`${ce} of ${t} scenes`:"",headline:nt?"Recording the narration and drawing the scenes.":"Recording the narration.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};if(nt){let Fe=/Visuals: using/.test(o);return{stage:O("illustration"),percent:l,counter:t?`${Qe} of ${t} scenes`:"",headline:Fe?"Preparing your slides as the video's pictures.":"Drawing the pictures for each scene.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1}}if(tt)return{stage:O("narration"),percent:l,counter:t?`${ce} of ${t} scenes`:"",headline:"Recording the narration.",warnings:y,etaSeconds:uo(n,l),done:!1,failed:!1};let zt=e?.queuePosition??0;return{stage:O("queued"),percent:l,counter:"",headline:zt>0?`Waiting for ${zt} video${zt>1?"s":""} ahead of yours to finish.`:"Starting \u2014 this takes a few minutes.",warnings:y,etaSeconds:null,done:!1,failed:!1}}function uo(e,t){if(t<5||e.length<2)return null;let n=new Date(e[0].t).getTime(),o=(Date.now()-n)/1e3;if(!Number.isFinite(o)||o<=0)return null;let i=o/(t/100);return Math.max(5,Math.round(i-o))}function Cy(e){if(e===null)return"";if(e<45)return"less than a minute left";let t=Math.round(e/60);if(t<60)return`about ${t} minute${t>1?"s":""} left`;let n=Math.round(t/60);return`about ${n} hour${n>1?"s":""} left`}var $t=()=>({standalone:!0}),pt=(e,t)=>t.id;function Aw(e,t){if(e&1&&(d(0,"div",3),p(1),u()),e&2){let n=v();h(),b(n.error())}}function Ow(e,t){e&1&&p(0," \xB7 MP4, MOV, WEBM ")}function kw(e,t){if(e&1){let n=W();d(0,"label",9)(1,"input",25),A("change",function(o){I(n);let i=v();return M(i.onFile(o))}),u(),d(2,"span",26),p(3),u(),d(4,"span",27),p(5,"PDF, DOCX, TXT, MD, SRT"),D(6,Ow,1,0),u()()}if(e&2){let n=v();h(),S("accept",n.acceptedFiles()),h(2),b(n.uploading()?"Reading\u2026":"Choose a file"),h(3),E(n.editMode()==="on"?6:-1)}}function Rw(e,t){e&1&&p(0," \xB7 transcribed ")}function Pw(e,t){if(e&1&&(d(0,"p",31),p(1),u()),e&2){let n=v();h(),R(" \u26A0 ",n.transcriptionError||"The narration could not be transcribed."," You can still edit from the scene images, but the plan will be working from pictures alone \u2014 say what you want in the instruction below. ")}}function Fw(e,t){if(e&1){let n=W();d(0,"div",10)(1,"div")(2,"div",28),p(3),u(),d(4,"div",29),p(5),ut(6,"number"),D(7,Rw,1,0),u()(),d(8,"button",30),A("click",function(){I(n);let o=v(2);return M(o.reset())}),p(9,"Replace"),u()(),D(10,Pw,2,1,"p",31),d(11,"p",32),p(12,"Editing an existing video \u2014 describe the changes below."),u()}if(e&2){let n=t;h(3),R("\u{1F3AC} ",n.filename),h(2),St(" ",lr(6,5,n.durationSec,"1.0-0"),"s \xB7 ",n.segments.length," segments"),h(2),E(n.transcribed?7:-1),h(3),E(n.transcribed?-1:10)}}function Lw(e,t){if(e&1&&D(0,Fw,13,8),e&2){let n,r=v();E((n=r.sourceVideo())?0:-1,n)}}function Vw(e,t){if(e&1&&p(0),e&2){let n=v(2);R(" \xB7 ",n.doc().pages," slide pages ")}}function jw(e,t){if(e&1){let n=W();d(0,"div",10)(1,"div")(2,"div",28),p(3),u(),d(4,"div",29),p(5),ut(6,"number"),D(7,Vw,1,1),u()(),d(8,"button",30),A("click",function(){I(n);let o=v();return M(o.reset())}),p(9,"Replace"),u()()}if(e&2){let n=v();h(3),b(n.doc().filename),h(2),R(" ",cr(6,3,n.doc().chars)," characters"),h(2),E(n.hasSlides()?7:-1)}}function Bw(e,t){e&1&&(d(0,"p",11),p(1,"Pick a visual style \u2014 the AI builds the whole video in that look. Everything else is optional."),u())}function Hw(e,t){if(e&1){let n=W();d(0,"button",33),A("click",function(){let o=I(n).$implicit,i=v();return M(i.videoType=o.id)}),d(1,"b"),p(2),u(),d(3,"span"),p(4),u()()}if(e&2){let n=t.$implicit,r=v();ge("sel",r.videoType===n.id),S("disabled",!r.doc()),h(2),St("",n.icon," ",n.name),h(2),b(n.desc)}}function Uw(e,t){if(e&1){let n=W();d(0,"label",34),p(1,"Describe the edits"),u(),d(2,"textarea",35),te("ngModelChange",function(o){I(n);let i=v();return ne(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();h(2),ee("ngModel",n.brief),G()}}function $w(e,t){if(e&1){let n=W();d(0,"label",34),p(1,"Creative brief (optional) \u2014 how it should look & feel"),u(),d(2,"textarea",36),te("ngModelChange",function(o){I(n);let i=v();return ne(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();h(2),ee("ngModel",n.brief),S("disabled",!n.doc()),G()}}function zw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function Gw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit,r=v();S("value",n.id),h(),b(r.voiceLabel(n))}}function Ww(e,t){if(e&1){let n=W();d(0,"label",39)(1,"input",58),te("ngModelChange",function(o){I(n);let i=v(2);return ne(i.useSourceSlides,o)||(i.useSourceSlides=o),M(o)}),u(),z(),d(2,"span"),p(3,"\u{1F4C4} Use my uploaded slides as the visuals \u2014 "),d(4,"b"),p(5,"no new images will be generated"),u()()()}if(e&2){let n=v(2);h(),ee("ngModel",n.useSourceSlides),S("disabled",!n.doc()),G()}}function qw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function Zw(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function Yw(e,t){if(e&1&&(d(0,"div",52),p(1),u()),e&2){let n=v(2);h(),b(n.refName())}}function Qw(e,t){if(e&1){let n=W();d(0,"div",57)(1,"span",59),p(2),u(),d(3,"input",60),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.note,o)||(i.note=o),M(o)}),u(),z(),d(4,"button",61),A("click",function(){let o=I(n).$implicit,i=v(2);return M(i.removeImage(o.id))}),p(5,"\xD7"),u()()}if(e&2){let n=t.$implicit;h(2),b(n.name),h(),ee("ngModel",n.note),S("ngModelOptions",ze(3,$t)),G()}}function Kw(e,t){if(e&1){let n=W();d(0,"div",22)(1,"div",37),p(2,"Optional \u2014 refine the look or add references"),u(),d(3,"div",38),D(4,Ww,6,2,"label",39),d(5,"div",14)(6,"div")(7,"label",40),p(8,"Aspect ratio"),u(),d(9,"select",41),te("ngModelChange",function(o){I(n);let i=v();return ne(i.aspectRatio,o)||(i.aspectRatio=o),M(o)}),J(10,qw,2,2,"option",18,pt),u(),z(),u(),d(12,"div")(13,"label",42),p(14,"Depth"),u(),d(15,"select",43),te("ngModelChange",function(o){I(n);let i=v();return ne(i.depth,o)||(i.depth=o),M(o)}),J(16,Zw,2,2,"option",18,pt),u(),z(),u()(),d(18,"div",44)(19,"div")(20,"span",45),p(21,"\u{1F39E}\uFE0F Reference video \u2014 the AI copies its look, pacing & style"),u(),d(22,"label",46),Ao(),d(23,"svg",47),$e(24,"path",48)(25,"path",49)(26,"path",50),u(),Oo(),d(27,"span"),p(28,"Choose a video"),u(),d(29,"input",51),A("change",function(o){I(n);let i=v();return M(i.onRefVideo(o))}),u()(),D(30,Yw,2,1,"div",52),u(),d(31,"div")(32,"span",45),p(33,"\u{1F5BC}\uFE0F Images/diagrams to include (multiple)"),u(),d(34,"label",46),Ao(),d(35,"svg",47),$e(36,"rect",53)(37,"circle",54)(38,"path",55),u(),Oo(),d(39,"span"),p(40,"Choose images"),u(),d(41,"input",56),A("change",function(o){I(n);let i=v();return M(i.onUserImages(o))}),u()(),J(42,Qw,6,4,"div",57,pt),u()()()()}if(e&2){let n=v();h(4),E(n.hasSlides()?4:-1),h(5),ee("ngModel",n.aspectRatio),S("disabled",!n.doc()),G(),h(),X(n.aspects),h(5),ee("ngModel",n.depth),S("disabled",!n.doc()),G(),h(),X(n.depths),h(6),ge("disabled",!n.doc()),h(7),S("disabled",!n.doc()),h(),E(n.refName()?30:-1),h(4),ge("disabled",!n.doc()),h(7),S("disabled",!n.doc()),h(),X(n.userImages())}}function Jw(e,t){if(e&1&&(d(0,"span",66),p(1),u()),e&2){let n=v();h(),R("",n.costEstimate.kept," kept")}}function Xw(e,t){if(e&1&&(d(0,"span",66),p(1),u()),e&2){let n=v();h(),R("",n.costEstimate.cuts," cut")}}function ex(e,t){if(e&1&&(d(0,"p",67)(1,"i"),p(2),u()()),e&2){let n=v();h(2),b(n.plan.notes)}}function tx(e,t){e&1&&$e(0,"img",79),e&2&&S("src",t,na)}function nx(e,t){if(e&1&&p(0),e&2){let n=v().$implicit;ar(" \xB7 source ",n.srcId," (",n.startSec,"s\u2013",n.endSec,"s) ")}}function rx(e,t){e&1&&p(0," \xB7 new ")}function ox(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function ix(e,t){if(e&1){let n=W();d(0,"span",82),p(1,"Narration"),u(),d(2,"textarea",83),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.narration,o)||(i.narration=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;h(2),ee("ngModel",n.narration),S("ngModelOptions",ze(2,$t)),G()}}function sx(e,t){if(e&1){let n=W();d(0,"span",82),p(1,"Visual / image prompt"),u(),d(2,"textarea",84),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.imagePrompt,o)||(i.imagePrompt=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;h(2),ee("ngModel",n.imagePrompt),S("ngModelOptions",ze(2,$t)),G()}}function ax(e,t){e&1&&(d(0,"p",81),p(1,"Kept exactly as it is \u2014 no cost."),u())}function cx(e,t){if(e&1){let n=W();d(0,"div",76)(1,"div",77)(2,"span",78),D(3,tx,1,1,"img",79),p(4),D(5,nx,1,3)(6,rx,1,0),u(),d(7,"select",80),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.action,o)||(i.action=o),M(o)}),J(8,ox,2,2,"option",18,pt),u(),z(),u(),D(10,ix,3,3),D(11,sx,3,3),D(12,ax,2,0,"p",81),u()}if(e&2){let n,r=t.$implicit,o=t.$index,i=v(2);ge("cut",r.action==="cut"),h(3),E((n=i.keyframe(r))?3:-1,n),h(),R(" Segment ",o+1),h(),E(r.srcId?5:6),h(2),ee("ngModel",r.action),S("ngModelOptions",ze(10,$t)),G(),h(),X(i.actionsFor(r)),h(2),E(r.action!=="keep"&&r.action!=="cut"?10:-1),h(),E(r.action==="replace"||r.action==="new"?11:-1),h(),E(r.action==="keep"?12:-1)}}function lx(e,t){if(e&1){let n=W();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review the edits"),u(),d(6,"span",62),p(7,"\u2014 change any action, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),p(11),u(),d(12,"div",65)(13,"span",66),p(14),u(),D(15,Jw,2,1,"span",66),D(16,Xw,2,1,"span",66),u(),D(17,ex,3,1,"p",67),u(),d(18,"div",68)(19,"div",69),p(20),u(),d(21,"div",70),p(22,"estimated"),u(),d(23,"div",71),p(24),ut(25,"number"),u()()(),J(26,cx,13,11,"div",72,ir),d(28,"div",73)(29,"button",74),A("click",function(){I(n);let o=v();return M(o.produceEdits())}),p(30),u(),d(31,"button",75),A("click",function(){I(n);let o=v();return M(o.makePlan())}),p(32,"\u21BB Re-plan the edits"),u()()()}if(e&2){let n=t,r=v();h(11),b(n.plan.title),h(3),R("",n.plan.segments.length," segments"),h(),E(n.costEstimate.kept?15:-1),h(),E(n.costEstimate.cuts?16:-1),h(),E(n.plan.notes?17:-1),h(3),R("$",n.costEstimate.totalUsd),h(4),St(" ",n.costEstimate.images," images \xB7 ",cr(25,11,n.costEstimate.ttsChars)," VO chars "),h(2),X(n.plan.segments),h(3),S("disabled",r.producing()),h(),R(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),h(),S("disabled",r.planning()||r.producing())}}function ux(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v();h(),St("\u{1F399}\uFE0F ",n.plan.voice.gender,", ",n.plan.voice.feel," voice")}}function dx(e,t){e&1&&(d(0,"span"),p(1,"\u{1F39E}\uFE0F styled after your reference video"),u())}function fx(e,t){e&1&&(d(0,"span"),p(1,"\u{1F4C4} using your slides"),u())}function px(e,t){if(e&1&&(d(0,"p",67)(1,"i"),p(2),u()()),e&2){let n=v();h(2),b(n.plan.voice.rationale)}}function hx(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.restyles," restyled ")}}function gx(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.userImages-(n.costEstimate.restyles||0)," of yours ($0) ")}}function mx(e,t){if(e&1&&p(0),e&2){let n=v();R(" + ",n.costEstimate.sourcePages," slides ($0) ")}}function yx(e,t){if(e&1&&(d(0,"span",100),p(1,"Visual"),u(),d(2,"div",81),p(3),u()),e&2){let n=v().$implicit;h(3),R("\u{1F4C4} Your slide, page ",n.visual.sourcePage," (used as-is, $0)")}}function vx(e,t){if(e&1){let n=W();d(0,"span",100),p(1,"Visual \u2014 your uploaded image"),u(),d(2,"div",101)(3,"b",102),p(4),u(),d(5,"select",103),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.visual.treatment,o)||(i.visual.treatment=o),M(o)}),d(6,"option",104),p(7,"Use as-is (exact, $0 \u2014 full image shown, never cropped)"),u(),d(8,"option",105),p(9,"Redraw in video style via Gemini (~$0.04 \u2014 blends in; labels may shift, QC checks it)"),u()(),z(),d(10,"button",106),A("click",function(){I(n);let o=v().$implicit,i=v(2);return M(i.detachImage(o))}),p(11,"\u2715 detach"),u()()}if(e&2){let n=v().$implicit,r=v(2);h(4),b(r.imageName(n.visual.userImageId)),h(),ee("ngModel",n.visual.treatment),S("ngModelOptions",ze(3,$t)),G()}}function _x(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.name)}}function Cx(e,t){if(e&1){let n=W();d(0,"select",109),A("ngModelChange",function(o){I(n);let i=v(2).$implicit,s=v(2);return M(s.attachImage(i,o))}),d(1,"option",21),p(2,"\u2026or use one of your uploaded images here"),u(),J(3,_x,2,2,"option",18,pt),u(),z()}if(e&2){let n=v(4);S("ngModel","")("ngModelOptions",ze(2,$t)),G(),h(3),X(n.userImages())}}function bx(e,t){if(e&1){let n=W();d(0,"span",82),p(1,"Visual / image prompt"),u(),d(2,"textarea",107),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.visual.imagePrompt,o)||(i.visual.imagePrompt=o),M(o)}),u(),z(),D(3,Cx,5,3,"select",108)}if(e&2){let n=v().$implicit,r=v(2);h(2),ee("ngModel",n.visual.imagePrompt),S("ngModelOptions",ze(3,$t)),G(),h(),E(r.userImages().length?3:-1)}}function Dx(e,t){if(e&1){let n=W();d(0,"div",76)(1,"div",77)(2,"span"),p(3),u(),d(4,"span",66),p(5),u()(),d(6,"span",82),p(7,"Narration"),u(),d(8,"textarea",97),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.narration,o)||(i.narration=o),M(o)}),u(),z(),d(9,"span",82),p(10,"Key points on screen \u2014 one per line"),u(),d(11,"textarea",98),A("ngModelChange",function(o){let i=I(n).$implicit,s=v(2);return M(s.setKeyPoints(i,o))}),u(),z(),d(12,"span",82),p(13,"Title overlay (optional)"),u(),d(14,"input",99),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.titleOverlay,o)||(i.titleOverlay=o),M(o)}),u(),z(),D(15,yx,4,1)(16,vx,12,4)(17,bx,4,4),u()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);h(3),St("Scene ",r+1," \xB7 ",n.purpose),h(2),R("~",n.durationHintSec,"s"),h(3),ee("ngModel",n.narration),S("ngModelOptions",ze(10,$t)),G(),h(3),S("ngModel",o.keyPointsText(n))("ngModelOptions",ze(11,$t)),G(),h(3),ee("ngModel",n.titleOverlay),S("ngModelOptions",ze(12,$t)),G(),h(),E(n.visual.sourcePage?15:n.visual.userImageId?16:17)}}function Ex(e,t){e&1&&(d(0,"p",88),p(1,"Enter a content name to produce the video."),u())}function wx(e,t){if(e&1&&(d(0,"option",18),p(1),u()),e&2){let n=t.$implicit,r=v(2);S("value",n.id),h(),b(r.voiceLabel(n))}}function xx(e,t){if(e&1){let n=W();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review the scene plan"),u(),d(6,"span",62),p(7,"\u2014 check it, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),p(11),u(),d(12,"div",65)(13,"span",66),p(14),u(),d(15,"span",66),p(16),u(),d(17,"span",66),p(18),u(),d(19,"span",66),p(20),u(),D(21,ux,2,2,"span"),D(22,dx,2,0,"span"),D(23,fx,2,0,"span"),u(),D(24,px,3,1,"p",67),u(),d(25,"div",68)(26,"div",69),p(27),u(),d(28,"div",70),p(29,"estimated"),u(),d(30,"div",71),p(31),D(32,hx,1,1),D(33,gx,1,1),D(34,mx,1,1),p(35),ut(36,"number"),u()()(),J(37,Dx,18,13,"div",76,pt),d(39,"label",85),p(40,"Content name "),d(41,"span",86),p(42,"*"),u(),p(43," \u2014 names the finished video (edit if needed)"),u(),d(44,"input",87),A("ngModelChange",function(o){I(n);let i=v();return M(i.contentName.set(o))}),u(),z(),D(45,Ex,2,0,"p",88),d(46,"div",73)(47,"button",74),A("click",function(){I(n);let o=v();return M(o.produce())}),p(48),u(),d(49,"button",75),A("click",function(){I(n);let o=v();return M(o.makePlan())}),p(50,"\u21BB Regenerate plan"),u()(),d(51,"div",89)(52,"label",90),p(53,"Not happy with something? Describe the change \u2014 the plan will be revised and only affected scenes regenerated (cached scenes are free)"),u(),d(54,"textarea",91),A("ngModelChange",function(o){I(n);let i=v();return M(i.feedback.set(o))}),u(),z(),d(55,"div",92)(56,"div",93)(57,"label",94),p(58,"Change voice (optional)"),u(),d(59,"select",95),te("ngModelChange",function(o){I(n);let i=v();return ne(i.fbVoice,o)||(i.fbVoice=o),M(o)}),d(60,"option",21),p(61,"Keep current voice"),u(),J(62,wx,2,2,"option",18,pt),u(),z(),u(),d(64,"button",75),A("click",function(){I(n);let o=v();return M(o.revise())}),p(65),u()()(),d(66,"p",96),p(67," Production is not triggered from this screen yet, so nothing is billed for rendering. Voiceover and images are generated when you produce the video. "),u()()}if(e&2){let n=t,r=v();h(11),b(n.plan.title),h(3),R("",n.plan.scenes.length," scenes"),h(2),R("~",n.plan.estimatedDurationSec,"s"),h(2),b(n.plan.videoType),h(2),b(n.plan.aspectRatio||r.aspectRatio),h(),E(n.plan.voice?.gender?21:-1),h(),E(r.styleGuide()?22:-1),h(),E(n.plan.usesSourceSlides?23:-1),h(),E(n.plan.voice?.rationale?24:-1),h(3),R("$",n.costEstimate.totalUsd),h(4),R(" ",n.costEstimate.images," new images"),h(),E(n.costEstimate.restyles?32:-1),h(),E(n.costEstimate.userImages?33:-1),h(),E(n.costEstimate.sourcePages?34:-1),h(),R(" \xB7 ",cr(36,26,n.costEstimate.ttsChars)," VO chars "),h(2),X(n.plan.scenes),h(7),ge("invalid",!r.contentName().trim()),S("ngModel",r.contentName()),G(),h(),E(r.contentName().trim()?-1:45),h(2),S("disabled",r.producing()||!r.contentName().trim()),h(),R(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),h(),S("disabled",r.planning()||r.producing()),h(5),S("ngModel",r.feedback()),G(),h(5),ee("ngModel",r.fbVoice),G(),h(3),X(r.voices()),h(2),S("disabled",!r.feedback().trim()||r.revising()),h(),R(" ",r.revising()?"Revising\u2026":"\u21BB Regenerate plan with this feedback"," ")}}function Sx(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v();h(),b(n.counter)}}function Ix(e,t){if(e&1&&(d(0,"span"),p(1),u()),e&2){let n=v(3);h(),b(n.eta())}}function Mx(e,t){e&1&&(d(0,"span",117),p(1,"You can leave this page \u2014 it keeps going."),u())}function Tx(e,t){if(e&1&&(d(0,"span",127),p(1),u()),e&2){let n=v().$implicit;h(),b(n.detail)}}function Nx(e,t){if(e&1&&(d(0,"li")(1,"span",124),p(2),u(),d(3,"div",125)(4,"span",126),p(5),u(),D(6,Tx,2,1,"span",127),u()()),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=v(4);Zr("prod-step-"+i.stageState(r)),ge("is-last",r===o-1),h(2),R(" ",i.stageState(r)==="done"?"\u2713":i.stageState(r)==="active"?n.icon:r+1," "),h(3),b(n.label),h(),E(i.stageState(r)==="active"?6:-1)}}function Ax(e,t){if(e&1&&(d(0,"ol",118),J(1,Nx,7,7,"li",123,pt),u()),e&2){let n=v(3);h(),X(n.stages)}}function Ox(e,t){if(e&1&&(d(0,"div"),p(1),u()),e&2){let n=t.$implicit;h(),R("\u26A0 ",n)}}function kx(e,t){if(e&1&&(d(0,"div",119),J(1,Ox,2,1,"div",null,Xo),d(3,"span",117),p(4,"The video will still be made."),u()()),e&2){let n=v();h(),X(n.warnings)}}function Rx(e,t){if(e&1&&(d(0,"div",120),p(1),u()),e&2){let n=v();h(),b(n.headline)}}function Px(e,t){if(e&1&&(d(0,"pre",122),p(1),u()),e&2){let n=v(3);h(),b(n.job()?n.logText(n.job()):"Starting\u2026")}}function Fx(e,t){if(e&1){let n=W();d(0,"div",110)(1,"span",111),p(2),u(),d(3,"div",112)(4,"strong"),p(5),u(),d(6,"span",113),p(7),u()(),d(8,"span",114),p(9),u()(),d(10,"div",115),$e(11,"i"),u(),d(12,"div",116),D(13,Sx,2,1,"span"),D(14,Ix,2,1,"span"),D(15,Mx,2,0,"span",117),u(),D(16,Ax,3,0,"ol",118),D(17,kx,5,0,"div",119),D(18,Rx,2,1,"div",120),d(19,"button",121),A("click",function(){I(n);let o=v(2);return M(o.showLog.set(!o.showLog()))}),p(20),u(),D(21,Px,2,1,"pre",122)}if(e&2){let n=t,r=v(2);ge("is-failed",n.failed)("is-done",n.done),h(),ge("spin",!n.done&&!n.failed),h(),b(n.stage.icon),h(3),b(n.stage.label),h(2),b(n.headline),h(2),R("",n.percent,"%"),h(),ge("is-working",!n.done&&!n.failed),xt("aria-valuenow",n.percent),h(),sr("width",n.percent,"%"),h(2),E(n.counter?13:-1),h(),E(r.eta()?14:-1),h(),E(!n.done&&!n.failed?15:-1),h(),E(n.failed?-1:16),h(),E(n.warnings.length?17:-1),h(),E(n.failed?18:-1),h(2),R(" ",r.showLog()?"Hide":"Show"," technical log "),h(),E(r.showLog()?21:-1)}}function Lx(e,t){if(e&1&&(d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"4"),u(),d(4,"h2",8),p(5,"Production"),u()(),D(6,Fx,22,23),u()),e&2){let n,r=v();h(6),E((n=r.progress())?6:-1,n)}}function Vx(e,t){if(e&1&&p(0),e&2){let n=v(3);R(" (auto-fixed: ",n.autoFixed.join(", "),") ")}}function jx(e,t){if(e&1&&(d(0,"p",131),p(1," \u2705 "),d(2,"b"),p(3,"Visual QC passed"),u(),p(4," \u2014 framing, cropping and text placement checked on every scene"),D(5,Vx,1,1),u()),e&2){let n=v(2);h(5),E(n.autoFixed?.length?5:-1)}}function Bx(e,t){if(e&1&&p(0),e&2){let n=t.$implicit;ar(" ",n.type," (",n.severity,") \u2014 ",n.note,"; ")}}function Hx(e,t){if(e&1&&(d(0,"li")(1,"b"),p(2),u(),p(3,": "),J(4,Bx,1,3,null,null,ir),u()),e&2){let n=t.$implicit;h(2),b(n.id),h(2),X(n.issues)}}function Ux(e,t){if(e&1&&(d(0,"div",132)(1,"p"),p(2,"\u26A0\uFE0F "),d(3,"b"),p(4,"Visual QC found issues"),u(),p(5," \u2014 use the feedback box above to fix them:"),u(),d(6,"ul"),J(7,Hx,6,1,"li",null,pt),u()()),e&2){let n=v(4);h(7),X(n.qcIssues())}}function $x(e,t){if(e&1&&D(0,jx,6,1,"p",131)(1,Ux,9,0,"div",132),e&2){let n=v();E(n.pass?0:1)}}function zx(e,t){e&1&&D(0,$x,2,1),e&2&&E(t.skipped?-1:0)}function Gx(e,t){if(e&1){let n=W();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"5"),u(),d(4,"h2",8),p(5,"Your video"),u()(),D(6,zx,1,1),$e(7,"video",128),d(8,"div",73)(9,"button",129),A("click",function(){I(n);let o=v();return M(o.download())}),p(10,"\u2B07 Download MP4"),u(),d(11,"button",130),A("click",function(){I(n);let o=v();return M(o.deleteVideo.ask(o.job()))}),p(12," \u{1F5D1} Delete video "),u()(),d(13,"p",96),p(14," Two ways to refine: edit the scene plan above (change narration, key points, image prompts \u2014 only edited scenes regenerate), or describe the change in the feedback box and let the director revise the plan for you. "),u()()}if(e&2){let n,r=v();h(6),E((n=r.job()?.qc)?6:-1,n),h(),S("src",r.playbackSrc(),na),h(4),S("disabled",r.deleteVideo.busy())}}var Za=class e{api=C(Ut);destroyRef=C(ue);get untilGone(){return t=>t.pipe(to(this.destroyRef))}doc=F(null);editMode=dt("off");defaultLanguage=dt(void 0);defaultAspectRatio=dt(void 0);defaultDepth=dt(void 0);defaultVoice=dt(void 0);planReady=En();videoStarted=En();videoReady=En();sourceVideo=F(null);editPlan=F(null);uploading=F(!1);planning=F(!1);revising=F(!1);result=F(null);error=F("");voices=F([]);styleGuide=F("");refName=F("");userImages=F([]);videoType="watercolor";contentName=F("");brief="";useSourceSlides=!1;language="hi";aspectRatio="16:9";depth="standard";voicePref="";producing=F(!1);job=F(null);pollTimer=null;seeded=!1;feedback=F("");fbVoice="";videoTypes=[{id:"slides",icon:"\u{1F4CA}",name:"Slides + voiceover",desc:"Clean slides with animated key-point text, infographics and illustrations, synced to narration."},{id:"watercolor",icon:"\u{1F3A8}",name:"Watercolor illustrations",desc:"Full-screen watercolor scenes (Indian rural healthcare setting) with key points appearing over them."},{id:"roleplay",icon:"\u{1F5E3}\uFE0F",name:"Animated roleplay",desc:"2D cel-animation dialogue between characters (e.g. ANM & beneficiary), lip-synced, contrast-pair format."},{id:"translation",icon:"\u{1F310}",name:"Translate existing video",desc:"Re-voice an existing video in another language; optionally translate on-screen text too."}];languages=[{id:"hi",label:"Hindi"},{id:"en",label:"English"},{id:"kn",label:"Kannada"},{id:"te",label:"Telugu"}];aspects=[{id:"16:9",label:"16:9 (landscape)"},{id:"9:16",label:"9:16 (vertical)"}];depths=[{id:"brief",label:"Brief \u2014 tight summary (45\u201390s)"},{id:"standard",label:"Standard \u2014 faithful coverage"},{id:"indepth",label:"In-depth \u2014 more slides, fuller explanations"}];hasSlides=ae(()=>(this.doc()?.pages??0)>0);isEditMode=ae(()=>this.sourceVideo()!==null);hasSource=ae(()=>this.doc()!==null||this.sourceVideo()!==null);editActions=[{id:"keep",label:"\u2714 Keep as-is"},{id:"revoice",label:"\u{1F399}\uFE0F Re-voice (new narration)"},{id:"replace",label:"\u{1F5BC}\uFE0F Replace visual + narration"},{id:"new",label:"\u2795 New scene"},{id:"cut",label:"\u2702\uFE0F Cut (remove)"}];constructor(){_t(()=>{let t=this.defaultLanguage(),n=this.defaultAspectRatio(),r=this.defaultDepth(),o=this.defaultVoice();this.seeded||(t&&(this.language=t),n&&(this.aspectRatio=n),r&&(this.depth=r),o&&(this.voicePref=o),(t||n||r||o)&&(this.seeded=!0))}),this.api.voices().pipe(this.untilGone).subscribe({next:t=>this.voices.set(t),error:t=>{le(t,"content-studio")}})}voiceLabel(t){let n=t.lang==="en"?"Indian English":"Hindi";return`${t.name} \u2014 ${t.gender}, ${t.feel} (${n}${t.provider==="sarvam"?" \xB7 Sarvam":""})`}onFile(t){let n=t.target.files?.[0];n&&(this.error.set(""),this.uploading.set(!0),this.api.uploadDoc(n).pipe(this.untilGone).subscribe({next:r=>{md(r)&&this.editMode()==="off"?(this.sourceVideo.set(null),this.doc.set(null),this.error.set("Editing an existing video is not available here. Upload a document \u2014 PDF, DOCX, TXT, MD or SRT \u2014 to make a new video instead.")):md(r)?(this.sourceVideo.set(r),this.doc.set(null)):(this.doc.set(r),this.sourceVideo.set(null)),this.uploading.set(!1)},error:r=>{this.error.set(le(r,"content-studio")),this.uploading.set(!1)}}))}onRefVideo(t){let n=t.target.files?.[0];n&&(this.refName.set(`Analysing ${n.name}\u2026`),this.api.uploadReference(n).pipe(this.untilGone).subscribe({next:r=>{this.styleGuide.set(r.styleGuide),this.refName.set(`${n.name} \u2014 style captured`)},error:r=>this.refName.set(le(r,"content-studio"))}))}onUserImages(t){let n=Array.from(t.target.files??[]);for(let r of n)this.api.uploadImage(r).pipe(this.untilGone).subscribe({next:o=>this.userImages.update(i=>[...i,{id:o.id,name:o.name||r.name,note:""}]),error:o=>this.error.set(le(o,"content-studio"))})}removeImage(t){this.userImages.update(n=>n.filter(r=>r.id!==t))}DEFAULT_BRIEF="faithful, warm instructional video";makePlan(){if(this.isEditMode())return this.makeEditPlan();let t=this.doc();t&&(this.error.set(""),this.planning.set(!0),this.result.set(null),this.api.plan({docText:t.text,userPrompt:this.brief.trim()||this.DEFAULT_BRIEF,videoType:this.videoType,language:this.language,filename:t.filename,depth:this.depth,aspectRatio:this.aspectRatio,voicePref:this.voicePref||void 0,pages:t.pages,sourceId:t.sourceId,useSourceSlides:this.useSourceSlides,userImages:this.userImages(),styleGuide:this.styleGuide()||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1),this.planReady.emit({jobId:n.jobId,title:n.plan?.title??"",sceneCount:n.plan?.scenes?.length??0,estimatedUsd:n.costEstimate?.totalUsd??null})},error:n=>{this.error.set(le(n,"content-studio")),this.planning.set(!1)}}))}makeEditPlan(){let t=this.sourceVideo();!t||!this.brief.trim()||(this.error.set(""),this.planning.set(!0),this.editPlan.set(null),this.api.planEdits({videoType:"videoedit",userPrompt:this.brief,language:this.language,filename:t.filename,voicePref:this.voicePref||void 0,videoMeta:{sourceId:t.sourceId,segments:t.segments}}).pipe(this.untilGone).subscribe({next:n=>{this.editPlan.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1)},error:n=>{this.error.set(le(n,"content-studio")),this.planning.set(!1)}}))}acceptedFiles=ae(()=>this.editMode()==="on"?".pdf,.docx,.txt,.md,.srt,.mp4,.mov,.m4v,.webm":".pdf,.docx,.txt,.md,.srt");keyframe(t){return this.sourceVideo()?.segments.find(n=>n.id===t.srcId)?.keyframeUrl??null}actionsFor(t){return t.srcId?this.editActions:this.editActions.filter(n=>n.id!=="keep")}produceEdits(){let t=this.editPlan();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.pollFrom(t.jobId)},error:n=>{this.error.set(le(n,"content-studio")),this.producing.set(!1)}}))}revise(){let t=this.result();!t||!this.feedback().trim()||(this.error.set(""),this.revising.set(!0),this.api.reviseplan(t.jobId,{feedback:this.feedback(),voicePref:this.fbVoice||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.feedback.set(""),this.revising.set(!1)},error:n=>{this.error.set(le(n,"content-studio")),this.revising.set(!1)}}))}keyPointsText(t){return(t.onScreenText||[]).join(`
10
+ Use an empty apiBase only when the service is same-origin.`)}function Hm(e){if(typeof e?.apiBase!="string")throw new Error(`Aastrika: configure() needs an apiBase string, received ${typeof e?.apiBase}. Pass an empty string for same-origin.`);Jr=j(j({},jm),e),Bm=!0}function Um(){return Jr}var $m={get apiBase(){return OE(),Jr.apiBase},get getAuthHeaders(){return Jr.getAuthHeaders},get creator(){return Jr.creator},get onError(){return Jr.onError}};var Xr=new O("AASTRIKA_CONFIG");var Ut=class e{http=b(Fa);config=b(Xr);base=this.config.apiBase;studio=`${this.base}/v1/studio`;assessment=`${this.base}/v1/quiz`;usage=`${this.base}/v1/usage`;auth=`${this.base}/auth`;currentUser=A(null);creator(){return this.config.creator?.()??this.currentUser()?.username??null}me(){return this.http.get(`${this.auth}/me`)}login(t,n){return this.http.post(`${this.auth}/login`,{username:t,password:n})}logout(){return this.http.post(`${this.auth}/logout`,{})}voices(){return this.http.get(`${this.studio}/list-voices`)}uploadDoc(t){let n=new FormData;return n.append("file",t),n.append("kind","document"),this.http.post(`${this.studio}/upload`,n)}planEdits(t){return this.http.post(`${this.studio}/generate-plan`,t)}plan(t){return this.http.post(`${this.studio}/generate-plan`,t)}uploadReference(t){let n=new FormData;return n.append("file",t),n.append("kind","reference-video"),this.http.post(`${this.studio}/upload`,n)}uploadImage(t){let n=new FormData;return n.append("file",t),n.append("kind","image"),this.http.post(`${this.studio}/upload`,n)}reviseplan(t,n){return this.http.patch(`${this.studio}/revise-plan/${t}`,n)}generateVideo(t,n={}){return this.http.post(`${this.studio}/generate-video/${t}`,n)}studioJobs(){return this.http.get(`${this.studio}/list-videos`)}job(t){return this.http.get(`${this.studio}/get-video/${t}`)}downloadVideoUrl(t){return this.http.get(`${this.studio}/download-video/${t}?as=url`)}downloadVideoHref(t){return`${this.studio}/download-video/${t}`}deleteVideo(t){return this.http.delete(`${this.studio}/delete-video/${t}`)}languages(){return this.http.get(`${this.assessment}/languages`)}assessmentJobs(){return this.http.get(`${this.assessment}/list`)}generateAssessment(t){return this.http.post(`${this.assessment}/generate`,t)}assessmentJob(t){return this.http.get(`${this.assessment}/${t}`)}readSources(t,n,r){let o=new FormData;for(let i of t)o.append("files",i);return n.trim()&&o.append("links",n),r&&o.append("language",r),this.http.post(`${this.assessment}/upload`,o)}saveAssessment(t,n){return this.http.patch(`${this.assessment}/update/${t}`,{assessment:n})}exportUrl(t,n="xlsx",r){return this.http.get(`${this.assessment}/export/${t}${zm(n,r)}&as=url`)}exportHref(t,n="xlsx",r){return`${this.assessment}/export/${t}${zm(n,r)}`}deleteQuiz(t){return this.http.delete(`${this.assessment}/delete/${t}`)}usageReport(t={}){let n=Object.fromEntries(Object.entries(t).filter(([,r])=>r!=null&&r!==""));return this.http.post(`${this.usage}/get-report`,n)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})};function vd(e){return e.video===!0}function zm(e,t){let n=new URLSearchParams({format:e});return t&&n.set("language",t),`?${n}`}var Gm=(e,t)=>{let n=b(Xr),r=b(Ut).creator(),o=i=>!r||!i.body||typeof i.body!="object"||i.body instanceof FormData||Array.isArray(i.body)||"creator"in i.body?i:i.clone({body:U(j({},i.body),{creator:r})});if(!n.getAuthHeaders){let i=o(e);return t(i)}return Gt(Promise.resolve(n.getAuthHeaders())).pipe(Fn(i=>t(o(e).clone({setHeaders:i}))))};var kE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function RE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function PE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var _d;function FE(e,t){if(!_d){let n=Element.prototype;_d=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?_d.call(e,t):!1}function LE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[RE(r)]=[n,o]}),t}function VE(e,t){return ni(e).inputs}function jE(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],l=BE(a,t,o);l!==-1&&r[l].push(a)}return r}function BE(e,t,n){let r=n;return PE(e)&&t.some((o,i)=>o!=="*"&&FE(e,o)?(r=i,!0):!1),r}var HE=10,Cd=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=ni(t);for(let n of this.componentMirror.inputs)this.inputMap.set(n.propName,n.templateName)}create(t){return new bd(this.component,t,this.inputMap)}},bd=class{component;injector;inputMap;eventEmitters=new Dr(1);events=this.eventEmitters.pipe(Fn(t=>Cl(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.component=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(De),this.appRef=this.injector.get(Dn),this.cdScheduler=n.get(mt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=kE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},HE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),Iu(this.componentRef.hostView)&&(Mu(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Pe.create({providers:[],parent:this.injector}),r=jE(t,ni(this.component).ngContentSelectors);this.componentRef=Yh(this.component,{environmentInjector:this.injector,elementInjector:n,hostElement:t,projectableNodes:r}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=ni(this.component).outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new Q(s=>{let a=i.subscribe(l=>s.next({name:o,value:l}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Dd=class extends HTMLElement{ngElementEventsSubscription=null};function Wm(e,t){let n=VE(e),r=t.strategyFactory||new Cd(e),o=LE(n);class i extends Dd{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:l,transform:c})=>{if(!Object.hasOwn(this,l))return;let p=this[l];delete this[l],a.setInputValue(l,p,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,p){let[h,y]=o[a];this.ngElementStrategy.setInputValue(h,c,y)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return n.forEach(({propName:s,transform:a,isSignal:l})=>{Object.defineProperty(i.prototype,s,{get(){let c=this.ngElementStrategy.getInputValue(s);return l&&Qn(c)?c():c},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}function qm(e,t){return typeof customElements>"u"||customElements.get(e.tag)?!1:(customElements.define(e.tag,Wm(e.component,{injector:t})),!0)}function eo(e){e||(e=b(de));let t=new Q(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(wl(t))}var ry=(()=>{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)(J(Bt),J(xt))};static \u0275dir=_e({type:e})}return e})(),Ci=(()=>{class e extends ry{static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,features:[ze]})}return e})(),oo=new O(""),UE={provide:oo,useExisting:$e(()=>Td),multi:!0},Td=(()=>{class e extends Ci{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[dt([UE]),ze]})}return e})(),$E={provide:oo,useExisting:$e(()=>In),multi:!0};function zE(){let e=Mt()?Mt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var GE=new O(""),In=(()=>{class e extends ry{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!zE())}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)(J(Bt),J(xt),J(GE,8))};static \u0275dir=_e({type:e,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&N("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:[dt([$E]),ze]})}return e})();function Nd(e){return e==null||Ad(e)===0}function Ad(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var bi=new O(""),WE=new O(""),qE=/^(?=.{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])?)*$/,Ed=class{static min(t){return oy(t)}static max(t){return iy(t)}static required(t){return sy(t)}static requiredTrue(t){return ZE(t)}static email(t){return YE(t)}static minLength(t){return QE(t)}static maxLength(t){return ay(t)}static pattern(t){return KE(t)}static nullValidator(t){return ja()}static compose(t){return py(t)}static composeAsync(t){return hy(t)}};function oy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function iy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function sy(e){return Nd(e.value)?{required:!0}:null}function ZE(e){return e.value===!0?null:{required:!0}}function YE(e){return Nd(e.value)||qE.test(e.value)?null:{email:!0}}function QE(e){return t=>{let n=t.value?.length??Ad(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function ay(e){return t=>{let n=t.value?.length??Ad(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function KE(e){if(!e)return ja;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(Nd(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function ja(e){return null}function ly(e){return e!=null}function cy(e){return Gr(e)?Gt(e):e}function uy(e){let t={};return e.forEach(n=>{t=n!=null?j(j({},t),n):t}),Object.keys(t).length===0?null:t}function dy(e,t){return t.map(n=>n(e))}function JE(e){return!e.validate}function fy(e){return e.map(t=>JE(t)?t:n=>t.validate(n))}function py(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){return uy(dy(n,t))}}function gy(e){return e!=null?py(fy(e)):null}function hy(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){let r=dy(n,t).map(cy);return _l(r).pipe(xe(uy))}}function my(e){return e!=null?hy(fy(e)):null}function Zm(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function XE(e){return e._rawValidators}function ew(e){return e._rawAsyncValidators}function wd(e){return e?Array.isArray(e)?e:[e]:[]}function Ba(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ym(e,t){let n=wd(t);return wd(e).forEach(o=>{Ba(n,o)||n.push(o)}),n}function Qm(e,t){return wd(t).filter(n=>!Ba(e,n))}var Ha=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=gy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=my(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?.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}},xd=class extends Ha{name;get formDirective(){return null}get path(){return null}};var hi="VALID",Va="INVALID",to="PENDING",mi="DISABLED",dr=class{},Ua=class extends dr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},yi=class extends dr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},vi=class extends dr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},no=class extends dr{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var _i=class extends dr{source;constructor(t){super(),this.source=t}};function tw(e){return($a(e)?e.validators:e)||null}function nw(e){return Array.isArray(e)?gy(e):e||null}function rw(e,t){return($a(t)?t.asyncValidators:e)||null}function ow(e){return Array.isArray(e)?my(e):e||null}function $a(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Sd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=A(!1);_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,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ze(this.statusReactive)}set status(t){Ze(()=>this.statusReactive.set(t))}_status=W(()=>this.statusReactive());statusReactive=A(void 0);get valid(){return this.status===hi}get invalid(){return this.status===Va}get pending(){return this.status===to}get disabled(){return this.status===mi}get enabled(){return this.status!==mi}errors;get pristine(){return Ze(this.pristineReactive)}set pristine(t){Ze(()=>this.pristineReactive.set(t))}_pristine=W(()=>this.pristineReactive());pristineReactive=A(!0);get dirty(){return!this.pristine}get touched(){return Ze(this.touchedReactive)}set touched(t){Ze(()=>this.touchedReactive.set(t))}_touched=W(()=>this.touchedReactive());touchedReactive=A(!1);get untouched(){return!this.touched}_events=new ke;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(Ym(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ym(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Qm(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Qm(t,this._rawAsyncValidators))}hasValidator(t){return Ba(this._rawValidators,t)}hasAsyncValidator(t){return Ba(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;t.onlySelf||this._parent?.markAsTouched(U(j({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new vi(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}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})}),t.onlySelf||this._parent?._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new vi(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(U(j({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new yi(!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})}),t.onlySelf||this._parent?._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new yi(!0,r))}markAsPending(t={}){this.status=to;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new no(this.status,n)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(U(j({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=mi,this.errors=null,this._forEachChild(o=>{o.disable(U(j({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ua(this.value,r)),this._events.next(new no(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(j({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=hi,this._forEachChild(r=>{r.enable(U(j({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(U(j({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){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===hi||this.status===to)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ua(this.value,n)),this._events.next(new no(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(U(j({},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()?mi:hi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=to,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=cy(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||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!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?.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 no(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Re,this.statusChanges=new Re}_calculateStatus(){return this._allControlsDisabled()?mi:this.errors?Va:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(to)?to:this._anyControlsHaveStatus(Va)?Va:hi}_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,t.onlySelf||this._parent?._updatePristine(t,n),o&&this._events.next(new yi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new vi(this.touched,n)),t.onlySelf||this._parent?._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){$a(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=nw(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=ow(this._rawAsyncValidators)}_updateHasRequiredValidator(){Ze(()=>this._hasRequired.set(this.hasValidator(Ed.required)))}};function iw(e){return e.tagName==="INPUT"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"}function sw(e,t,n,r){switch(n){case"name":e.setAttribute(t,n,r);break;case"disabled":case"readonly":case"required":r?e.setAttribute(t,n,""):e.removeAttribute(t,n);break;case"max":case"min":case"minLength":case"maxLength":r!==void 0?e.setAttribute(t,n,r.toString()):e.removeAttribute(t,n);break}}var Id=class{kind;context;control;message;constructor({kind:t,context:n,control:r}){this.kind=t,this.context=n,this.control=r}};function aw(e){return typeof e=="number"?e:parseInt(e,10)}function yy(e){return typeof e=="number"?e:parseFloat(e)}var za=(()=>{class e{_validator=ja;_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):ja,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=_e({type:e,features:[or]})}return e})(),lw={provide:bi,useExisting:$e(()=>Od),multi:!0},Od=(()=>{class e extends za{max;inputName="max";normalizeInput=n=>yy(n);createValidator=n=>iy(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tt("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[dt([lw]),ze]})}return e})(),cw={provide:bi,useExisting:$e(()=>kd),multi:!0},kd=(()=>{class e extends za{min;inputName="min";normalizeInput=n=>yy(n);createValidator=n=>oy(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tt("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[dt([cw]),ze]})}return e})(),uw={provide:bi,useExisting:$e(()=>vy),multi:!0};var vy=(()=>{class e extends za{required;inputName="required";normalizeInput=Wu;createValidator=n=>sy;enabled(n){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({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&&tt("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[dt([uw]),ze]})}return e})();var dw={provide:bi,useExisting:$e(()=>Rd),multi:!0},Rd=(()=>{class e extends za{maxlength;inputName="maxlength";normalizeInput=n=>aw(n);createValidator=n=>ay(n);static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&tt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[dt([dw]),ze]})}return e})();var fw=new O(""),_y=new O("",{factory:()=>Pd}),Pd="always";function pw(e,t){return[...t.path,e]}function Km(e,t,n=Pd){hw(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),mw(e,t),vw(e,t),yw(e,t),gw(e,t)}function Jm(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function gw(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function hw(e,t){let n=XE(e);t.validator!==null?e.setValidators(Zm(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=ew(e);t.asyncValidator!==null?e.setAsyncValidators(Zm(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Jm(t._rawValidators,o),Jm(t._rawAsyncValidators,o)}function mw(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Cy(e,t)})}function yw(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Cy(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Cy(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function vw(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function _w(e,t){if(!Object.hasOwn(e,"model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Cw(e){return Object.getPrototypeOf(e.constructor)===Ci}function bw(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===In?n=i:Cw(i)?r=i:o=i}),o||r||n||null}var Dw={provide:fw,useFactory:()=>{let e=b(ro,{self:!0});return{setParseErrors:t=>{e.setParseErrorSource(t)},set onReset(t){e.onReset=t}}}},ro=class extends Ha{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(n=>{n instanceof _i&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=bw(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,n,r){super(),this.injector=t,this.renderer=n,this.rawValueAccessors=r,this.injector?.get(de)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(ti);if(!this.control||!t)return;let n=t.markForCheck.bind(t);this.subscription=new we,this.subscription.add(this.control.valueChanges.subscribe(n)),this.subscription.add(this.control.statusChanges.subscribe(n)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof _i&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=!0,t.listenToCustomControlModel(o=>{this.control?.setValue(o,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(o)}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=iw(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(o=>o instanceof vy))}ngControlUpdate(t,n){if(!this.isCustomControlBased)return;let r=this.control,o=this.customControlBindings;Object.is(o.value,r.value)||(o.value=r.value,t.setCustomControlModelInput(r.value)),this.bindControlProperty(t,o,"touched",r.touched),this.bindControlProperty(t,o,"dirty",r.dirty),this.bindControlProperty(t,o,"valid",r.valid),this.bindControlProperty(t,o,"invalid",r.invalid),this.bindControlProperty(t,o,"pending",r.pending),this.bindControlProperty(t,o,"disabled",r.disabled),this.shouldBindRequired&&this.bindControlProperty(t,o,"required",this.isRequired);let i=r.errors;if(o.errors!==i){o.errors=i;let s=this._convertErrors(i);t.setInputOnDirectives("errors",s)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(t,n,r,o){if(n[r]===o)return;n[r]=o;let i=t.setInputOnDirectives(r,o);this.isNativeFormElement&&!i&&(r==="disabled"||r==="required")&&this.renderer&&sw(this.renderer,t.nativeElement,r,o)}_convertErrors(t){if(t===null)return[];let n=this.control;return Object.entries(t).map(([r,o])=>new Id({context:o,kind:r,control:n}))}setParseErrorSource(t){if(t===void 0)return;let n=null,r=W(()=>{let o=t();return o.length===0?null:o.reduce((i,s)=>(i[s.kind]=s,i),{})});this.parseErrorsValidator=(()=>n).bind(this),Ct(()=>{n=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:!1}))}},Md=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}};var io=(()=>{class e extends Md{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(J(ro,2))};static \u0275dir=_e({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&le("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:[ze]})}return e})();function Xm(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ey(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Ew=class extends Sd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(tw(n),rw(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$a(n)&&(n.nonNullable||n.initialValueIsDefault)&&(ey(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){Ze(()=>{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),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new _i(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Xm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Xm(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){ey(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 ww={provide:ro,useExisting:$e(()=>fr)},ty=Promise.resolve(),fr=(()=>{class e extends ro{_changeDetectorRef;callSetDisabledState;control=new Ew;static ngAcceptInputType_isDisabled;_registered=!1;_ngModelInjector;viewModel;name="";isDisabled;model;options;update=new Re;constructor(n,r,o,i,s,a,l,c){super(l,c,i),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnChanges(n){if(this._registered,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),_w(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(n){super.ngControlCreate(n)}\u0275ngControlUpdate(n){super.ngControlUpdate(n,!1)}get shouldBindRequired(){return!1}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(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Km(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(n){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,Km(this.control,this,n))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ty.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Wu(r);ty.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?pw(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(J(xd,9),J(bi,10),J(WE,10),J(oo,10),J(ti,8),J(_y,8),J(Pe,8),J(Bt,8))};static \u0275dir=_e({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:[dt([ww,Dw]),ze,or,Fu(null)]})}return e})();var xw={provide:oo,useExisting:$e(()=>Fd),multi:!0},Fd=(()=>{class e extends Ci{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[dt([xw]),ze]})}return e})();var Sw={provide:oo,useExisting:$e(()=>so),multi:!0};function by(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Iw(e){return e.split(":")[0]}var so=(()=>{class e extends Ci{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=b(Dn).injector;destroyRef=b(de);cdr=b(ti);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,hu({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=by(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=Iw(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["select","formControlName","",3,"multiple","",3,"ngNoCva",""],["select","formControl","",3,"multiple","",3,"ngNoCva",""],["select","ngModel","",3,"multiple","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[dt([Sw]),ze]})}return e})(),Ga=(()=>{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(by(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select?._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||e)(J(xt),J(Bt),J(so,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),Mw={provide:oo,useExisting:$e(()=>Dy),multi:!0};function ny(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function Tw(e){return e.split(":")[0]}var Dy=(()=>{class e extends Ci{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)>-1)}}else r=o=>{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=Tw(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=wt(e)))(o||e)}})();static \u0275dir=_e({type:e,selectors:[["select","multiple","","formControlName","",3,"ngNoCva",""],["select","multiple","","formControl","",3,"ngNoCva",""],["select","multiple","","ngModel","",3,"ngNoCva",""]],hostBindings:function(r,o){r&1&&N("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[dt([Mw]),ze]})}return e})(),Wa=(()=>{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(ny(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(ny(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)(J(xt),J(Bt),J(Dy,9))};static \u0275dir=_e({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var Nw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({})}return e})();var ao=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:_y,useValue:n.callSetDisabledState??Pd}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=bn({type:e});static \u0275inj=Yt({imports:[Nw]})}return e})();var Aw=["dlg"];function Ow(e,t){if(e&1&&(on(0,"p",3),g(1),wn()),e&2){let n=v();f(),C(n.subject)}}var lo=class e{open=!1;title="Are you sure?";subject="";message="This cannot be undone.";confirmLabel="Delete";busy=!1;confirmed=new Re;cancelled=new Re;dlg;ngOnChanges(){queueMicrotask(()=>{let t=this.dlg?.nativeElement;t&&(this.open&&!t.open?t.showModal():!this.open&&t.open&&t.close())})}onEscape(t){t.preventDefault(),this.busy||this.cancelled.emit()}onBackdrop(t){t.target===this.dlg?.nativeElement&&!this.busy&&this.cancelled.emit()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-confirm-dialog"]],viewQuery:function(n,r){if(n&1&&fa(Aw,5),n&2){let o;ju(o=Bu())&&(r.dlg=o.first)}},inputs:{open:"open",title:"title",subject:"subject",message:"message",confirmLabel:"confirmLabel",busy:"busy"},outputs:{confirmed:"confirmed",cancelled:"cancelled"},features:[or],decls:12,vars:5,consts:[["dlg",""],["aria-labelledby","aa-confirm-title",1,"dialog",3,"cancel","click"],["id","aa-confirm-title",1,"title"],[1,"subject"],[1,"body"],[1,"actions"],["type","button","autofocus","",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","danger",3,"click","disabled"]],template:function(n,r){n&1&&(on(0,"dialog",1,0),Wr("cancel",function(i){return r.onEscape(i)})("click",function(i){return r.onBackdrop(i)}),on(2,"h3",2),g(3),wn(),D(4,Ow,2,1,"p",3),on(5,"p",4),g(6),wn(),on(7,"div",5)(8,"button",6),Wr("click",function(){return r.cancelled.emit()}),g(9,"Cancel"),wn(),on(10,"button",7),Wr("click",function(){return r.confirmed.emit()}),g(11),wn()()()),n&2&&(f(3),C(r.title),f(),E(r.subject?4:-1),f(2),C(r.message),f(4),da("disabled",r.busy),f(),T(" ",r.busy?"Deleting\u2026":r.confirmLabel," "))},styles:[".dialog[_ngcontent-%COMP%]{margin:auto;padding:22px 24px;width:calc(100% - 40px);max-width:440px;background:var(--%NS%aastrika-surface, #fff);color:var(--%NS%aastrika-ink, #1A1A1A);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:12px;box-shadow:0 18px 48px #17141038}.dialog[_ngcontent-%COMP%]::backdrop{background:#17141073}.title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:16px;font-weight:650}.subject[_ngcontent-%COMP%]{margin:0 0 10px;padding:9px 11px;background:var(--%NS%aastrika-surface-2, #faf8f5);border:1px solid var(--%NS%aastrika-line-2, #e5e0d8);border-radius:7px;font-size:13px;overflow-wrap:anywhere}.body[_ngcontent-%COMP%]{margin:0 0 18px;font-size:13px;color:var(--%NS%aastrika-muted, #6b6257)}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end}.danger[_ngcontent-%COMP%]{background:#b42318;border-color:#b42318;color:#fff}.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#98200f}.danger[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:default}"]})};function Ey(e){if(!e||typeof e!="object")return;let t=e.error;if(!t||typeof t!="object")return;let n=t.error;return n&&typeof n=="object"?n:void 0}function wy(e){let t=e?.status;return typeof t=="number"?t:void 0}function kw(e){return Ey(e)?.code}function Rw(e,t={},n="Request failed"){let r=wy(e);if(r!==void 0&&t[r])return t[r];let o=Ey(e)?.message;return typeof o=="string"&&o.trim()?o:r===void 0?`${n}.`:`${n} (${r}).`}function ue(e,t,n={},r="Request failed"){let o=Rw(e,n,r),i=Um().onError;if(i)try{i({feature:t,message:o,status:wy(e),code:kw(e)})}catch{}return o}function qa(e){let t=A(null),n=A(!1);return{pending:t.asReadonly(),open:W(()=>t()!==null),busy:n.asReadonly(),ask(r){r!=null&&t.set(r)},cancel(){n()||t.set(null)},confirm(){let r=t();r===null||n()||(n.set(!0),e.request(r).subscribe({next:()=>{n.set(!1),t.set(null),e.onDeleted(r)},error:o=>{n.set(!1),t.set(null),e.onError(ue(o,e.feature,e.byStatus??{},e.fallback??"Could not delete it"))}}))}}}function pr({lookup:e,fallbackHref:t,onError:n,feature:r}){e.subscribe({next:({url:o})=>{window.open(o??t,"_blank","noopener")},error:o=>n(ue(o,r,{},"Could not open the file"))})}var Za=[{id:"queued",label:"Waiting to start",detail:"Your video is in the queue.",icon:"\u23F3"},{id:"narration",label:"Recording narration",detail:"Turning the script into a voice, scene by scene.",icon:"\u{1F399}\uFE0F"},{id:"illustration",label:"Drawing scenes",detail:"Illustrating each scene to match the narration.",icon:"\u{1F3A8}"},{id:"assembly",label:"Putting it together",detail:"Joining the pictures and the voice into one video.",icon:"\u{1F3AC}"},{id:"checking",label:"Final check",detail:"Looking for cut-off faces and text in the wrong place.",icon:"\u{1F50D}"}];function Di(e,t){return e.filter(n=>t.test(n.message)).length}function xy(e,t){let n=e?.log??[],o=n.map(Ve=>Ve.message).join(`
11
+ `),i=e?.progress,s=Number.isFinite(i)?Math.max(0,Math.min(100,i)):0,a=e?.status==="done",l=e?.status==="failed",c=a?100:l?s:Math.min(s,99),p=e?.status==="failed",h=e?.status==="done",y=[],m=Di(n,/narration FAILED/),_=Di(n,/image FAILED|visual FAILED|NOT FOUND/),x=Di(n,/restyle failed/);m&&y.push(`${m} scene${m>1?"s":""} has no narration`),_&&y.push(`${_} scene${_>1?"s":""} has a plain background instead of a picture`),x&&y.push(`${x} of your images could not be redrawn, so they appear as you uploaded them`);let R=Ve=>Za.find(Nt=>Nt.id===Ve)??Za[0];if(p)return{stage:{id:"failed",label:"Could not finish",detail:"",icon:"\u2717"},percent:c,counter:"",headline:e?.error||"Something went wrong while making the video.",warnings:y,etaSeconds:null,done:!1,failed:!0};if(h)return{stage:{id:"done",label:"Ready",detail:"",icon:"\u2713"},percent:100,counter:"",headline:"Your video is ready to watch.",warnings:y,etaSeconds:null,done:!0,failed:!1};let F=Ve=>t?Math.min(Ve,t):Ve,ce=F(Di(n,/narration ✓/)),Qe=F(Di(n,/image ✓|visual ✓|= your image|= your uploaded image|= slide page/));if(/^QC:/m.test(o))return{stage:R("checking"),percent:c,counter:"",headline:"Almost there \u2014 checking the finished video.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(/Rendering (video|edited video)/.test(o))return{stage:R("assembly"),percent:c,counter:"",headline:"Joining everything into one video. This is the longest step.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};let rt=/Voiceover:/.test(o),Ke=/Edit plan:/.test(o),ot=/Illustrations:|Visuals:/.test(o);if(Ke)return{stage:R("illustration"),percent:c,counter:"",headline:"Applying your edits to the video.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(rt&&ce<t)return{stage:R("narration"),percent:c,counter:t?`${ce} of ${t} scenes`:"",headline:ot?"Recording the narration and drawing the scenes.":"Recording the narration.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};if(ot){let Ve=/Visuals: using/.test(o);return{stage:R("illustration"),percent:c,counter:t?`${Qe} of ${t} scenes`:"",headline:Ve?"Preparing your slides as the video's pictures.":"Drawing the pictures for each scene.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1}}if(rt)return{stage:R("narration"),percent:c,counter:t?`${ce} of ${t} scenes`:"",headline:"Recording the narration.",warnings:y,etaSeconds:co(n,c),done:!1,failed:!1};let zt=e?.queuePosition??0;return{stage:R("queued"),percent:c,counter:"",headline:zt>0?`Waiting for ${zt} video${zt>1?"s":""} ahead of yours to finish.`:"Starting \u2014 this takes a few minutes.",warnings:y,etaSeconds:null,done:!1,failed:!1}}function co(e,t){if(t<5||e.length<2)return null;let n=new Date(e[0].t).getTime(),o=(Date.now()-n)/1e3;if(!Number.isFinite(o)||o<=0)return null;let i=o/(t/100);return Math.max(5,Math.round(i-o))}function Sy(e){if(e===null)return"";if(e<45)return"less than a minute left";let t=Math.round(e/60);if(t<60)return`about ${t} minute${t>1?"s":""} left`;let n=Math.round(t/60);return`about ${n} hour${n>1?"s":""} left`}var $t=()=>({standalone:!0}),gt=(e,t)=>t.id;function Pw(e,t){if(e&1&&(d(0,"div",3),g(1),u()),e&2){let n=v();f(),C(n.error())}}function Fw(e,t){e&1&&g(0," \xB7 MP4, MOV, WEBM ")}function Lw(e,t){if(e&1){let n=B();d(0,"label",9)(1,"input",25),N("change",function(o){I(n);let i=v();return M(i.onFile(o))}),u(),d(2,"span",26),g(3),u(),d(4,"span",27),g(5,"PDF, DOCX, TXT, MD, SRT"),D(6,Fw,1,0),u()()}if(e&2){let n=v();f(),w("accept",n.acceptedFiles()),f(2),C(n.uploading()?"Reading\u2026":"Choose a file"),f(3),E(n.editMode()==="on"?6:-1)}}function Vw(e,t){e&1&&g(0," \xB7 transcribed ")}function jw(e,t){if(e&1&&(d(0,"p",31),g(1),u()),e&2){let n=v();f(),T(" \u26A0 ",n.transcriptionError||"The narration could not be transcribed."," You can still edit from the scene images, but the plan will be working from pictures alone \u2014 say what you want in the instruction below. ")}}function Bw(e,t){if(e&1){let n=B();d(0,"div",10)(1,"div")(2,"div",28),g(3),u(),d(4,"div",29),g(5),ft(6,"number"),D(7,Vw,1,0),u()(),d(8,"button",30),N("click",function(){I(n);let o=v(2);return M(o.reset())}),g(9,"Replace"),u()(),D(10,jw,2,1,"p",31),d(11,"p",32),g(12,"Editing an existing video \u2014 describe the changes below."),u()}if(e&2){let n=t;f(3),T("\u{1F3AC} ",n.filename),f(2),St(" ",lr(6,5,n.durationSec,"1.0-0"),"s \xB7 ",n.segments.length," segments"),f(2),E(n.transcribed?7:-1),f(3),E(n.transcribed?-1:10)}}function Hw(e,t){if(e&1&&D(0,Bw,13,8),e&2){let n,r=v();E((n=r.sourceVideo())?0:-1,n)}}function Uw(e,t){if(e&1&&g(0),e&2){let n=v(2);T(" \xB7 ",n.doc().pages," slide pages ")}}function $w(e,t){if(e&1){let n=B();d(0,"div",10)(1,"div")(2,"div",28),g(3),u(),d(4,"div",29),g(5),ft(6,"number"),D(7,Uw,1,1),u()(),d(8,"button",30),N("click",function(){I(n);let o=v();return M(o.reset())}),g(9,"Replace"),u()()}if(e&2){let n=v();f(3),C(n.doc().filename),f(2),T(" ",ar(6,3,n.doc().chars)," characters"),f(2),E(n.hasSlides()?7:-1)}}function zw(e,t){e&1&&(d(0,"p",11),g(1,"Pick a visual style \u2014 the AI builds the whole video in that look. Everything else is optional."),u())}function Gw(e,t){if(e&1){let n=B();d(0,"button",33),N("click",function(){let o=I(n).$implicit,i=v();return M(i.videoType=o.id)}),d(1,"b"),g(2),u(),d(3,"span"),g(4),u()()}if(e&2){let n=t.$implicit,r=v();le("sel",r.videoType===n.id),w("disabled",!r.doc()),f(2),St("",n.icon," ",n.name),f(2),C(n.desc)}}function Ww(e,t){if(e&1){let n=B();d(0,"label",34),g(1,"Describe the edits"),u(),d(2,"textarea",35),ee("ngModelChange",function(o){I(n);let i=v();return re(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();f(2),X("ngModel",n.brief),G()}}function qw(e,t){if(e&1){let n=B();d(0,"label",34),g(1,"Creative brief (optional) \u2014 how it should look & feel"),u(),d(2,"textarea",36),ee("ngModelChange",function(o){I(n);let i=v();return re(i.brief,o)||(i.brief=o),M(o)}),u(),z()}if(e&2){let n=v();f(2),X("ngModel",n.brief),w("disabled",!n.doc()),G()}}function Zw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Yw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit,r=v();w("value",n.id),f(),C(r.voiceLabel(n))}}function Qw(e,t){if(e&1){let n=B();d(0,"label",39)(1,"input",58),ee("ngModelChange",function(o){I(n);let i=v(2);return re(i.useSourceSlides,o)||(i.useSourceSlides=o),M(o)}),u(),z(),d(2,"span"),g(3,"\u{1F4C4} Use my uploaded slides as the visuals \u2014 "),d(4,"b"),g(5,"no new images will be generated"),u()()()}if(e&2){let n=v(2);f(),X("ngModel",n.useSourceSlides),w("disabled",!n.doc()),G()}}function Kw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Jw(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function Xw(e,t){if(e&1&&(d(0,"div",52),g(1),u()),e&2){let n=v(2);f(),C(n.refName())}}function ex(e,t){if(e&1){let n=B();d(0,"div",57)(1,"span",59),g(2),u(),d(3,"input",60),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.note,o)||(i.note=o),M(o)}),u(),z(),d(4,"button",61),N("click",function(){let o=I(n).$implicit,i=v(2);return M(i.removeImage(o.id))}),g(5,"\xD7"),u()()}if(e&2){let n=t.$implicit;f(2),C(n.name),f(),X("ngModel",n.note),w("ngModelOptions",Ne(3,$t)),G()}}function tx(e,t){if(e&1){let n=B();d(0,"div",22)(1,"div",37),g(2,"Optional \u2014 refine the look or add references"),u(),d(3,"div",38),D(4,Qw,6,2,"label",39),d(5,"div",14)(6,"div")(7,"label",40),g(8,"Aspect ratio"),u(),d(9,"select",41),ee("ngModelChange",function(o){I(n);let i=v();return re(i.aspectRatio,o)||(i.aspectRatio=o),M(o)}),Z(10,Kw,2,2,"option",18,gt),u(),z(),u(),d(12,"div")(13,"label",42),g(14,"Depth"),u(),d(15,"select",43),ee("ngModelChange",function(o){I(n);let i=v();return re(i.depth,o)||(i.depth=o),M(o)}),Z(16,Jw,2,2,"option",18,gt),u(),z(),u()(),d(18,"div",44)(19,"div")(20,"span",45),g(21,"\u{1F39E}\uFE0F Reference video \u2014 the AI copies its look, pacing & style"),u(),d(22,"label",46),No(),d(23,"svg",47),Ce(24,"path",48)(25,"path",49)(26,"path",50),u(),Ao(),d(27,"span"),g(28,"Choose a video"),u(),d(29,"input",51),N("change",function(o){I(n);let i=v();return M(i.onRefVideo(o))}),u()(),D(30,Xw,2,1,"div",52),u(),d(31,"div")(32,"span",45),g(33,"\u{1F5BC}\uFE0F Images/diagrams to include (multiple)"),u(),d(34,"label",46),No(),d(35,"svg",47),Ce(36,"rect",53)(37,"circle",54)(38,"path",55),u(),Ao(),d(39,"span"),g(40,"Choose images"),u(),d(41,"input",56),N("change",function(o){I(n);let i=v();return M(i.onUserImages(o))}),u()(),Z(42,ex,6,4,"div",57,gt),u()()()()}if(e&2){let n=v();f(4),E(n.hasSlides()?4:-1),f(5),X("ngModel",n.aspectRatio),w("disabled",!n.doc()),G(),f(),Y(n.aspects),f(5),X("ngModel",n.depth),w("disabled",!n.doc()),G(),f(),Y(n.depths),f(6),le("disabled",!n.doc()),f(7),w("disabled",!n.doc()),f(),E(n.refName()?30:-1),f(4),le("disabled",!n.doc()),f(7),w("disabled",!n.doc()),f(),Y(n.userImages())}}function nx(e,t){if(e&1&&(d(0,"span",66),g(1),u()),e&2){let n=v();f(),T("",n.costEstimate.kept," kept")}}function rx(e,t){if(e&1&&(d(0,"span",66),g(1),u()),e&2){let n=v();f(),T("",n.costEstimate.cuts," cut")}}function ox(e,t){if(e&1&&(d(0,"p",67)(1,"i"),g(2),u()()),e&2){let n=v();f(2),C(n.plan.notes)}}function ix(e,t){e&1&&Ce(0,"img",79),e&2&&w("src",t,na)}function sx(e,t){if(e&1&&g(0),e&2){let n=v().$implicit;sr(" \xB7 source ",n.srcId," (",n.startSec,"s\u2013",n.endSec,"s) ")}}function ax(e,t){e&1&&g(0," \xB7 new ")}function lx(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function cx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Narration"),u(),d(2,"textarea",83),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.narration,o)||(i.narration=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;f(2),X("ngModel",n.narration),w("ngModelOptions",Ne(2,$t)),G()}}function ux(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Visual / image prompt"),u(),d(2,"textarea",84),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.imagePrompt,o)||(i.imagePrompt=o),M(o)}),u(),z()}if(e&2){let n=v().$implicit;f(2),X("ngModel",n.imagePrompt),w("ngModelOptions",Ne(2,$t)),G()}}function dx(e,t){e&1&&(d(0,"p",81),g(1,"Kept exactly as it is \u2014 no cost."),u())}function fx(e,t){if(e&1){let n=B();d(0,"div",76)(1,"div",77)(2,"span",78),D(3,ix,1,1,"img",79),g(4),D(5,sx,1,3)(6,ax,1,0),u(),d(7,"select",80),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.action,o)||(i.action=o),M(o)}),Z(8,lx,2,2,"option",18,gt),u(),z(),u(),D(10,cx,3,3),D(11,ux,3,3),D(12,dx,2,0,"p",81),u()}if(e&2){let n,r=t.$implicit,o=t.$index,i=v(2);le("cut",r.action==="cut"),f(3),E((n=i.keyframe(r))?3:-1,n),f(),T(" Segment ",o+1),f(),E(r.srcId?5:6),f(2),X("ngModel",r.action),w("ngModelOptions",Ne(10,$t)),G(),f(),Y(i.actionsFor(r)),f(2),E(r.action!=="keep"&&r.action!=="cut"?10:-1),f(),E(r.action==="replace"||r.action==="new"?11:-1),f(),E(r.action==="keep"?12:-1)}}function px(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review the edits"),u(),d(6,"span",62),g(7,"\u2014 change any action, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),g(11),u(),d(12,"div",65)(13,"span",66),g(14),u(),D(15,nx,2,1,"span",66),D(16,rx,2,1,"span",66),u(),D(17,ox,3,1,"p",67),u(),d(18,"div",68)(19,"div",69),g(20),u(),d(21,"div",70),g(22,"estimated"),u(),d(23,"div",71),g(24),ft(25,"number"),u()()(),Z(26,fx,13,11,"div",72,En),d(28,"div",73)(29,"button",74),N("click",function(){I(n);let o=v();return M(o.produceEdits())}),g(30),u(),d(31,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),g(32,"\u21BB Re-plan the edits"),u()()()}if(e&2){let n=t,r=v();f(11),C(n.plan.title),f(3),T("",n.plan.segments.length," segments"),f(),E(n.costEstimate.kept?15:-1),f(),E(n.costEstimate.cuts?16:-1),f(),E(n.plan.notes?17:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),St(" ",n.costEstimate.images," images \xB7 ",ar(25,11,n.costEstimate.ttsChars)," VO chars "),f(2),Y(n.plan.segments),f(3),w("disabled",r.producing()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),f(),w("disabled",r.planning()||r.producing())}}function gx(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v();f(),St("\u{1F399}\uFE0F ",n.plan.voice.gender,", ",n.plan.voice.feel," voice")}}function hx(e,t){e&1&&(d(0,"span"),g(1,"\u{1F39E}\uFE0F styled after your reference video"),u())}function mx(e,t){e&1&&(d(0,"span"),g(1,"\u{1F4C4} using your slides"),u())}function yx(e,t){if(e&1&&(d(0,"p",67)(1,"i"),g(2),u()()),e&2){let n=v();f(2),C(n.plan.voice.rationale)}}function vx(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.restyles," restyled ")}}function _x(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.userImages-(n.costEstimate.restyles||0)," of yours ($0) ")}}function Cx(e,t){if(e&1&&g(0),e&2){let n=v();T(" + ",n.costEstimate.sourcePages," slides ($0) ")}}function bx(e,t){if(e&1&&(d(0,"span",100),g(1,"Visual"),u(),d(2,"div",81),g(3),u()),e&2){let n=v().$implicit;f(3),T("\u{1F4C4} Your slide, page ",n.visual.sourcePage," (used as-is, $0)")}}function Dx(e,t){if(e&1){let n=B();d(0,"span",100),g(1,"Visual \u2014 your uploaded image"),u(),d(2,"div",101)(3,"b",102),g(4),u(),d(5,"select",103),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.visual.treatment,o)||(i.visual.treatment=o),M(o)}),d(6,"option",104),g(7,"Use as-is (exact, $0 \u2014 full image shown, never cropped)"),u(),d(8,"option",105),g(9,"Redraw in video style via Gemini (~$0.04 \u2014 blends in; labels may shift, QC checks it)"),u()(),z(),d(10,"button",106),N("click",function(){I(n);let o=v().$implicit,i=v(2);return M(i.detachImage(o))}),g(11,"\u2715 detach"),u()()}if(e&2){let n=v().$implicit,r=v(2);f(4),C(r.imageName(n.visual.userImageId)),f(),X("ngModel",n.visual.treatment),w("ngModelOptions",Ne(3,$t)),G()}}function Ex(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.name)}}function wx(e,t){if(e&1){let n=B();d(0,"select",109),N("ngModelChange",function(o){I(n);let i=v(2).$implicit,s=v(2);return M(s.attachImage(i,o))}),d(1,"option",21),g(2,"\u2026or use one of your uploaded images here"),u(),Z(3,Ex,2,2,"option",18,gt),u(),z()}if(e&2){let n=v(4);w("ngModel","")("ngModelOptions",Ne(2,$t)),G(),f(3),Y(n.userImages())}}function xx(e,t){if(e&1){let n=B();d(0,"span",82),g(1,"Visual / image prompt"),u(),d(2,"textarea",107),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.visual.imagePrompt,o)||(i.visual.imagePrompt=o),M(o)}),u(),z(),D(3,wx,5,3,"select",108)}if(e&2){let n=v().$implicit,r=v(2);f(2),X("ngModel",n.visual.imagePrompt),w("ngModelOptions",Ne(3,$t)),G(),f(),E(r.userImages().length?3:-1)}}function Sx(e,t){if(e&1){let n=B();d(0,"div",76)(1,"div",77)(2,"span"),g(3),u(),d(4,"span",66),g(5),u()(),d(6,"span",82),g(7,"Narration"),u(),d(8,"textarea",97),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.narration,o)||(i.narration=o),M(o)}),u(),z(),d(9,"span",82),g(10,"Key points on screen \u2014 one per line"),u(),d(11,"textarea",98),N("ngModelChange",function(o){let i=I(n).$implicit,s=v(2);return M(s.setKeyPoints(i,o))}),u(),z(),d(12,"span",82),g(13,"Title overlay (optional)"),u(),d(14,"input",99),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.titleOverlay,o)||(i.titleOverlay=o),M(o)}),u(),z(),D(15,bx,4,1)(16,Dx,12,4)(17,xx,4,4),u()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);f(3),St("Scene ",r+1," \xB7 ",n.purpose),f(2),T("~",n.durationHintSec,"s"),f(3),X("ngModel",n.narration),w("ngModelOptions",Ne(10,$t)),G(),f(3),w("ngModel",o.keyPointsText(n))("ngModelOptions",Ne(11,$t)),G(),f(3),X("ngModel",n.titleOverlay),w("ngModelOptions",Ne(12,$t)),G(),f(),E(n.visual.sourcePage?15:n.visual.userImageId?16:17)}}function Ix(e,t){e&1&&(d(0,"p",88),g(1,"Enter a content name to produce the video."),u())}function Mx(e,t){if(e&1&&(d(0,"option",18),g(1),u()),e&2){let n=t.$implicit,r=v(2);w("value",n.id),f(),C(r.voiceLabel(n))}}function Tx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review the scene plan"),u(),d(6,"span",62),g(7,"\u2014 check it, then produce"),u()(),d(8,"div",63)(9,"div")(10,"div",64),g(11),u(),d(12,"div",65)(13,"span",66),g(14),u(),d(15,"span",66),g(16),u(),d(17,"span",66),g(18),u(),d(19,"span",66),g(20),u(),D(21,gx,2,2,"span"),D(22,hx,2,0,"span"),D(23,mx,2,0,"span"),u(),D(24,yx,3,1,"p",67),u(),d(25,"div",68)(26,"div",69),g(27),u(),d(28,"div",70),g(29,"estimated"),u(),d(30,"div",71),g(31),D(32,vx,1,1),D(33,_x,1,1),D(34,Cx,1,1),g(35),ft(36,"number"),u()()(),Z(37,Sx,18,13,"div",76,gt),d(39,"label",85),g(40,"Content name "),d(41,"span",86),g(42,"*"),u(),g(43," \u2014 names the finished video (edit if needed)"),u(),d(44,"input",87),N("ngModelChange",function(o){I(n);let i=v();return M(i.contentName.set(o))}),u(),z(),D(45,Ix,2,0,"p",88),d(46,"div",73)(47,"button",74),N("click",function(){I(n);let o=v();return M(o.produce())}),g(48),u(),d(49,"button",75),N("click",function(){I(n);let o=v();return M(o.makePlan())}),g(50,"\u21BB Regenerate plan"),u()(),d(51,"div",89)(52,"label",90),g(53,"Not happy with something? Describe the change \u2014 the plan will be revised and only affected scenes regenerated (cached scenes are free)"),u(),d(54,"textarea",91),N("ngModelChange",function(o){I(n);let i=v();return M(i.feedback.set(o))}),u(),z(),d(55,"div",92)(56,"div",93)(57,"label",94),g(58,"Change voice (optional)"),u(),d(59,"select",95),ee("ngModelChange",function(o){I(n);let i=v();return re(i.fbVoice,o)||(i.fbVoice=o),M(o)}),d(60,"option",21),g(61,"Keep current voice"),u(),Z(62,Mx,2,2,"option",18,gt),u(),z(),u(),d(64,"button",75),N("click",function(){I(n);let o=v();return M(o.revise())}),g(65),u()()(),d(66,"p",96),g(67," Production is not triggered from this screen yet, so nothing is billed for rendering. Voiceover and images are generated when you produce the video. "),u()()}if(e&2){let n=t,r=v();f(11),C(n.plan.title),f(3),T("",n.plan.scenes.length," scenes"),f(2),T("~",n.plan.estimatedDurationSec,"s"),f(2),C(n.plan.videoType),f(2),C(n.plan.aspectRatio||r.aspectRatio),f(),E(n.plan.voice?.gender?21:-1),f(),E(r.styleGuide()?22:-1),f(),E(n.plan.usesSourceSlides?23:-1),f(),E(n.plan.voice?.rationale?24:-1),f(3),T("$",n.costEstimate.totalUsd),f(4),T(" ",n.costEstimate.images," new images"),f(),E(n.costEstimate.restyles?32:-1),f(),E(n.costEstimate.userImages?33:-1),f(),E(n.costEstimate.sourcePages?34:-1),f(),T(" \xB7 ",ar(36,26,n.costEstimate.ttsChars)," VO chars "),f(2),Y(n.plan.scenes),f(7),le("invalid",!r.contentName().trim()),w("ngModel",r.contentName()),G(),f(),E(r.contentName().trim()?-1:45),f(2),w("disabled",r.producing()||!r.contentName().trim()),f(),T(" ",r.producing()?"Producing\u2026":r.hasVideo()?"\u2713 Regenerate video":"\u2713 Confirm & produce video"," "),f(),w("disabled",r.planning()||r.producing()),f(5),w("ngModel",r.feedback()),G(),f(5),X("ngModel",r.fbVoice),G(),f(3),Y(r.voices()),f(2),w("disabled",!r.feedback().trim()||r.revising()),f(),T(" ",r.revising()?"Revising\u2026":"\u21BB Regenerate plan with this feedback"," ")}}function Nx(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v();f(),C(n.counter)}}function Ax(e,t){if(e&1&&(d(0,"span"),g(1),u()),e&2){let n=v(3);f(),C(n.eta())}}function Ox(e,t){e&1&&(d(0,"span",117),g(1,"You can leave this page \u2014 it keeps going."),u())}function kx(e,t){if(e&1&&(d(0,"span",127),g(1),u()),e&2){let n=v().$implicit;f(),C(n.detail)}}function Rx(e,t){if(e&1&&(d(0,"li")(1,"span",124),g(2),u(),d(3,"div",125)(4,"span",126),g(5),u(),D(6,kx,2,1,"span",127),u()()),e&2){let n=t.$implicit,r=t.$index,o=t.$count,i=v(4);qr("prod-step-"+i.stageState(r)),le("is-last",r===o-1),f(2),T(" ",i.stageState(r)==="done"?"\u2713":i.stageState(r)==="active"?n.icon:r+1," "),f(3),C(n.label),f(),E(i.stageState(r)==="active"?6:-1)}}function Px(e,t){if(e&1&&(d(0,"ol",118),Z(1,Rx,7,7,"li",123,gt),u()),e&2){let n=v(3);f(),Y(n.stages)}}function Fx(e,t){if(e&1&&(d(0,"div"),g(1),u()),e&2){let n=t.$implicit;f(),T("\u26A0 ",n)}}function Lx(e,t){if(e&1&&(d(0,"div",119),Z(1,Fx,2,1,"div",null,Jo),d(3,"span",117),g(4,"The video will still be made."),u()()),e&2){let n=v();f(),Y(n.warnings)}}function Vx(e,t){if(e&1&&(d(0,"div",120),g(1),u()),e&2){let n=v();f(),C(n.headline)}}function jx(e,t){if(e&1&&(d(0,"pre",122),g(1),u()),e&2){let n=v(3);f(),C(n.job()?n.logText(n.job()):"Starting\u2026")}}function Bx(e,t){if(e&1){let n=B();d(0,"div",110)(1,"span",111),g(2),u(),d(3,"div",112)(4,"strong"),g(5),u(),d(6,"span",113),g(7),u()(),d(8,"span",114),g(9),u()(),d(10,"div",115),Ce(11,"i"),u(),d(12,"div",116),D(13,Nx,2,1,"span"),D(14,Ax,2,1,"span"),D(15,Ox,2,0,"span",117),u(),D(16,Px,3,0,"ol",118),D(17,Lx,5,0,"div",119),D(18,Vx,2,1,"div",120),d(19,"button",121),N("click",function(){I(n);let o=v(2);return M(o.showLog.set(!o.showLog()))}),g(20),u(),D(21,jx,2,1,"pre",122)}if(e&2){let n=t,r=v(2);le("is-failed",n.failed)("is-done",n.done),f(),le("spin",!n.done&&!n.failed),f(),C(n.stage.icon),f(3),C(n.stage.label),f(2),C(n.headline),f(2),T("",n.percent,"%"),f(),le("is-working",!n.done&&!n.failed),tt("aria-valuenow",n.percent),f(),sn("width",n.percent,"%"),f(2),E(n.counter?13:-1),f(),E(r.eta()?14:-1),f(),E(!n.done&&!n.failed?15:-1),f(),E(n.failed?-1:16),f(),E(n.warnings.length?17:-1),f(),E(n.failed?18:-1),f(2),T(" ",r.showLog()?"Hide":"Show"," technical log "),f(),E(r.showLog()?21:-1)}}function Hx(e,t){if(e&1&&(d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"4"),u(),d(4,"h2",8),g(5,"Production"),u()(),D(6,Bx,22,23),u()),e&2){let n,r=v();f(6),E((n=r.progress())?6:-1,n)}}function Ux(e,t){if(e&1&&g(0),e&2){let n=v(3);T(" (auto-fixed: ",n.autoFixed.join(", "),") ")}}function $x(e,t){if(e&1&&(d(0,"p",131),g(1," \u2705 "),d(2,"b"),g(3,"Visual QC passed"),u(),g(4," \u2014 framing, cropping and text placement checked on every scene"),D(5,Ux,1,1),u()),e&2){let n=v(2);f(5),E(n.autoFixed?.length?5:-1)}}function zx(e,t){if(e&1&&g(0),e&2){let n=t.$implicit;sr(" ",n.type," (",n.severity,") \u2014 ",n.note,"; ")}}function Gx(e,t){if(e&1&&(d(0,"li")(1,"b"),g(2),u(),g(3,": "),Z(4,zx,1,3,null,null,En),u()),e&2){let n=t.$implicit;f(2),C(n.id),f(2),Y(n.issues)}}function Wx(e,t){if(e&1&&(d(0,"div",132)(1,"p"),g(2,"\u26A0\uFE0F "),d(3,"b"),g(4,"Visual QC found issues"),u(),g(5," \u2014 use the feedback box above to fix them:"),u(),d(6,"ul"),Z(7,Gx,6,1,"li",null,gt),u()()),e&2){let n=v(4);f(7),Y(n.qcIssues())}}function qx(e,t){if(e&1&&D(0,$x,6,1,"p",131)(1,Wx,9,0,"div",132),e&2){let n=v();E(n.pass?0:1)}}function Zx(e,t){e&1&&D(0,qx,2,1),e&2&&E(t.skipped?-1:0)}function Yx(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"5"),u(),d(4,"h2",8),g(5,"Your video"),u()(),D(6,Zx,1,1),Ce(7,"video",128),d(8,"div",73)(9,"button",129),N("click",function(){I(n);let o=v();return M(o.download())}),g(10,"\u2B07 Download MP4"),u(),d(11,"button",130),N("click",function(){I(n);let o=v();return M(o.deleteVideo.ask(o.job()))}),g(12," \u{1F5D1} Delete video "),u()(),d(13,"p",96),g(14," Two ways to refine: edit the scene plan above (change narration, key points, image prompts \u2014 only edited scenes regenerate), or describe the change in the feedback box and let the director revise the plan for you. "),u()()}if(e&2){let n,r=v();f(6),E((n=r.job()?.qc)?6:-1,n),f(),w("src",r.playbackSrc(),na),f(4),w("disabled",r.deleteVideo.busy())}}var Ya=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}doc=A(null);editMode=nt("off");defaultLanguage=nt(void 0);defaultAspectRatio=nt(void 0);defaultDepth=nt(void 0);defaultVoice=nt(void 0);planReady=xn();videoStarted=xn();videoReady=xn();sourceVideo=A(null);editPlan=A(null);uploading=A(!1);planning=A(!1);revising=A(!1);result=A(null);error=A("");voices=A([]);styleGuide=A("");refName=A("");userImages=A([]);videoType="watercolor";contentName=A("");brief="";useSourceSlides=!1;language="hi";aspectRatio="16:9";depth="standard";voicePref="";producing=A(!1);job=A(null);pollTimer=null;seeded=!1;feedback=A("");fbVoice="";videoTypes=[{id:"slides",icon:"\u{1F4CA}",name:"Slides + voiceover",desc:"Clean slides with animated key-point text, infographics and illustrations, synced to narration."},{id:"watercolor",icon:"\u{1F3A8}",name:"Watercolor illustrations",desc:"Full-screen watercolor scenes (Indian rural healthcare setting) with key points appearing over them."},{id:"roleplay",icon:"\u{1F5E3}\uFE0F",name:"Animated roleplay",desc:"2D cel-animation dialogue between characters (e.g. ANM & beneficiary), lip-synced, contrast-pair format."},{id:"translation",icon:"\u{1F310}",name:"Translate existing video",desc:"Re-voice an existing video in another language; optionally translate on-screen text too."}];languages=[{id:"hi",label:"Hindi"},{id:"en",label:"English"},{id:"kn",label:"Kannada"},{id:"te",label:"Telugu"}];aspects=[{id:"16:9",label:"16:9 (landscape)"},{id:"9:16",label:"9:16 (vertical)"}];depths=[{id:"brief",label:"Brief \u2014 tight summary (45\u201390s)"},{id:"standard",label:"Standard \u2014 faithful coverage"},{id:"indepth",label:"In-depth \u2014 more slides, fuller explanations"}];hasSlides=W(()=>(this.doc()?.pages??0)>0);isEditMode=W(()=>this.sourceVideo()!==null);hasSource=W(()=>this.doc()!==null||this.sourceVideo()!==null);editActions=[{id:"keep",label:"\u2714 Keep as-is"},{id:"revoice",label:"\u{1F399}\uFE0F Re-voice (new narration)"},{id:"replace",label:"\u{1F5BC}\uFE0F Replace visual + narration"},{id:"new",label:"\u2795 New scene"},{id:"cut",label:"\u2702\uFE0F Cut (remove)"}];constructor(){Ct(()=>{let t=this.defaultLanguage(),n=this.defaultAspectRatio(),r=this.defaultDepth(),o=this.defaultVoice();this.seeded||(t&&(this.language=t),n&&(this.aspectRatio=n),r&&(this.depth=r),o&&(this.voicePref=o),(t||n||r||o)&&(this.seeded=!0))}),this.api.voices().pipe(this.untilGone).subscribe({next:t=>this.voices.set(t),error:t=>{ue(t,"content-studio")}})}voiceLabel(t){let n=t.lang==="en"?"Indian English":"Hindi";return`${t.name} \u2014 ${t.gender}, ${t.feel} (${n}${t.provider==="sarvam"?" \xB7 Sarvam":""})`}onFile(t){let n=t.target.files?.[0];n&&(this.error.set(""),this.uploading.set(!0),this.api.uploadDoc(n).pipe(this.untilGone).subscribe({next:r=>{vd(r)&&this.editMode()==="off"?(this.sourceVideo.set(null),this.doc.set(null),this.error.set("Editing an existing video is not available here. Upload a document \u2014 PDF, DOCX, TXT, MD or SRT \u2014 to make a new video instead.")):vd(r)?(this.sourceVideo.set(r),this.doc.set(null)):(this.doc.set(r),this.sourceVideo.set(null)),this.uploading.set(!1)},error:r=>{this.error.set(ue(r,"content-studio")),this.uploading.set(!1)}}))}onRefVideo(t){let n=t.target.files?.[0];n&&(this.refName.set(`Analysing ${n.name}\u2026`),this.api.uploadReference(n).pipe(this.untilGone).subscribe({next:r=>{this.styleGuide.set(r.styleGuide),this.refName.set(`${n.name} \u2014 style captured`)},error:r=>this.refName.set(ue(r,"content-studio"))}))}onUserImages(t){let n=Array.from(t.target.files??[]);for(let r of n)this.api.uploadImage(r).pipe(this.untilGone).subscribe({next:o=>this.userImages.update(i=>[...i,{id:o.id,name:o.name||r.name,note:""}]),error:o=>this.error.set(ue(o,"content-studio"))})}removeImage(t){this.userImages.update(n=>n.filter(r=>r.id!==t))}DEFAULT_BRIEF="faithful, warm instructional video";makePlan(){if(this.isEditMode())return this.makeEditPlan();let t=this.doc();t&&(this.error.set(""),this.planning.set(!0),this.result.set(null),this.api.plan({docText:t.text,userPrompt:this.brief.trim()||this.DEFAULT_BRIEF,videoType:this.videoType,language:this.language,filename:t.filename,depth:this.depth,aspectRatio:this.aspectRatio,voicePref:this.voicePref||void 0,pages:t.pages,sourceId:t.sourceId,useSourceSlides:this.useSourceSlides,userImages:this.userImages(),styleGuide:this.styleGuide()||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1),this.planReady.emit({jobId:n.jobId,title:n.plan?.title??"",sceneCount:n.plan?.scenes?.length??0,estimatedUsd:n.costEstimate?.totalUsd??null})},error:n=>{this.error.set(ue(n,"content-studio")),this.planning.set(!1)}}))}makeEditPlan(){let t=this.sourceVideo();!t||!this.brief.trim()||(this.error.set(""),this.planning.set(!0),this.editPlan.set(null),this.api.planEdits({videoType:"videoedit",userPrompt:this.brief,language:this.language,filename:t.filename,voicePref:this.voicePref||void 0,videoMeta:{sourceId:t.sourceId,segments:t.segments}}).pipe(this.untilGone).subscribe({next:n=>{this.editPlan.set(n),this.contentName.set(this.contentName().trim()||n.plan?.title||""),this.planning.set(!1)},error:n=>{this.error.set(ue(n,"content-studio")),this.planning.set(!1)}}))}acceptedFiles=W(()=>this.editMode()==="on"?".pdf,.docx,.txt,.md,.srt,.mp4,.mov,.m4v,.webm":".pdf,.docx,.txt,.md,.srt");keyframe(t){return this.sourceVideo()?.segments.find(n=>n.id===t.srcId)?.keyframeUrl??null}actionsFor(t){return t.srcId?this.editActions:this.editActions.filter(n=>n.id!=="keep")}produceEdits(){let t=this.editPlan();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.pollFrom(t.jobId)},error:n=>{this.error.set(ue(n,"content-studio")),this.producing.set(!1)}}))}revise(){let t=this.result();!t||!this.feedback().trim()||(this.error.set(""),this.revising.set(!0),this.api.reviseplan(t.jobId,{feedback:this.feedback(),voicePref:this.fbVoice||void 0}).pipe(this.untilGone).subscribe({next:n=>{this.result.set(n),this.feedback.set(""),this.revising.set(!1)},error:n=>{this.error.set(ue(n,"content-studio")),this.revising.set(!1)}}))}keyPointsText(t){return(t.onScreenText||[]).join(`
12
12
  `)}setKeyPoints(t,n){t.onScreenText=n.split(`
13
- `).map(r=>r.trim()).filter(Boolean)}attachImage(t,n){n&&(t.visual=H(L({},t.visual),{userImageId:n,treatment:"asis",imagePrompt:void 0}))}detachImage(t){t.visual=H(L({},t.visual),{userImageId:void 0,treatment:void 0,imagePrompt:""})}imageName(t){return this.userImages().find(n=>n.id===t)?.name??t??""}reset(){this.doc.set(null),this.sourceVideo.set(null),this.editPlan.set(null),this.result.set(null),this.error.set(""),this.brief="",this.userImages.set([]),this.styleGuide.set(""),this.refName.set("")}produce(){let t=this.result();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.poll()},error:n=>{this.error.set(le(n,"content-studio")),this.producing.set(!1)}}))}poll(){let t=this.result()?.jobId??this.editPlan()?.jobId;t&&this.pollFrom(t)}pollFrom(t){let n=this.result();this.api.job(t).pipe(this.untilGone).subscribe({next:r=>{this.job.set(r),r.status==="done"&&r.video?(this.producing.set(!1),r.plan&&n&&this.result.set(H(L({},n),{plan:r.plan})),this.videoReady.emit({jobId:t,videoUrl:r.videoUrl??r.video??""})):r.status==="failed"?this.producing.set(!1):this.pollTimer=setTimeout(()=>this.pollFrom(t),2500)},error:r=>{this.error.set(le(r,"content-studio")),this.producing.set(!1)}})}ngOnDestroy(){this.pollTimer&&clearTimeout(this.pollTimer)}stages=qa;progress=ae(()=>_y(this.job(),this.job()?.plan?.scenes?.length??0));eta=ae(()=>Cy(this.progress().etaSeconds));stageState(t){let n=this.progress();if(n.done)return"done";let r=this.stages.findIndex(o=>o.id===n.stage.id);return r<0?"todo":t<r?"done":t===r?"active":"todo"}showLog=F(!1);logText(t){return(t.log||[]).map(n=>`${String(n.t).slice(11,19)} ${n.message}`).join(`
14
- `)}hasVideo=ae(()=>this.job()?.status==="done"&&!!this.job()?.video);playbackSrc=ae(()=>{let t=this.job();return t?.videoUrl??t?.video??null});download(){let t=this.job();t&&hr({feature:"content-studio",lookup:this.api.downloadVideoUrl(t.id),fallbackHref:this.api.downloadVideoHref(t.id),onError:n=>this.error.set(n)})}deleteVideo=lo({feature:"content-studio",request:t=>this.api.deleteVideo(t.id),onDeleted:()=>{this.job.set(null),this.result.set(null),this.editPlan.set(null)},onError:t=>this.error.set(t),fallback:"Could not delete the video"});qcIssues(){return(this.job()?.qc?.scenes||[]).filter(t=>t.issues?.length)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-content-studio"]],inputs:{editMode:[1,"editMode"],defaultLanguage:[1,"defaultLanguage"],defaultAspectRatio:[1,"defaultAspectRatio"],defaultDepth:[1,"defaultDepth"],defaultVoice:[1,"defaultVoice"]},outputs:{planReady:"planReady",videoStarted:"videoStarted",videoReady:"videoReady"},decls:52,vars:22,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"drop"],[1,"picked"],[1,"step-sub"],[1,"types",3,"hidden"],["type","button",1,"type",3,"sel","disabled"],[1,"cols"],[1,"side"],["for","lang",1,"label"],["id","lang",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"value"],["for","voice",1,"label","mt"],["id","voice",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[1,"opt-group"],[1,"btn","mt-lg",3,"click","disabled"],["title","Delete video?","message","This removes the video and its stored files permanently. This cannot be undone.","confirmLabel","Delete video",3,"confirmed","cancelled","open","subject","busy"],["type","file","hidden","",3,"change","accept"],[1,"drop-main"],[1,"drop-sub"],[1,"picked-name"],[1,"picked-meta","mono"],[1,"btn","btn-ghost",3,"click"],[1,"mode-warn"],[1,"mode-note"],["type","button",1,"type",3,"click","disabled"],["for","brief",1,"label"],["id","brief","rows","3","placeholder",'e.g. change the title to "\u2026", re-voice segment 3 to also mention the MCP card, replace the intro visual with a watercolor scene, cut the WhatsApp part',1,"field",3,"ngModelChange","ngModel"],["id","brief","rows","3","placeholder","e.g. 90-second Hindi refresher on the 5 key counselling points; warm female voice; show the ANM at a VHND session; end with a recap slide",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"opt-head"],[1,"more-body"],[1,"check"],["for","aspect",1,"label"],["id","aspect",1,"field",3,"ngModelChange","ngModel","disabled"],["for","depth",1,"label"],["id","depth",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"extras"],["aria-hidden","true",1,"label"],[1,"file-btn"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12 15V3"],["d","m7 8 5-5 5 5"],["d","M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"],["type","file","hidden","","aria-label","Reference video the AI copies its look, pacing and style from","accept","video/mp4,video/quicktime,video/webm",3,"change","disabled"],[1,"hint","ok"],["x","3","y","3","width","18","height","18","rx","2"],["cx","9","cy","9","r","1.5"],["d","m21 15-4-4L7 21"],["type","file","hidden","","multiple","","accept","image/png,image/jpeg,image/webp",3,"change","disabled"],[1,"img-row"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"img-name"],["placeholder","where should this be used?",1,"field","img-note",3,"ngModelChange","ngModel","ngModelOptions"],["type","button",1,"x",3,"click"],[1,"step-note"],[1,"plan-head"],[1,"plan-title"],[1,"meta-line"],[1,"mono"],[1,"voice-why"],[1,"cost"],[1,"cost-n","mono"],[1,"cost-l"],[1,"cost-b","mono"],[1,"scene",3,"cut"],[1,"produce-row"],[1,"btn",3,"click","disabled"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"scene"],[1,"sh"],[1,"seg-head"],["alt","",1,"kf",3,"src"],[1,"field","act-sel",3,"ngModelChange","ngModel","ngModelOptions"],[1,"visual-note"],["aria-hidden","true",1,"lbl"],["rows","2","aria-label","Narration",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["rows","2","aria-label","Visual or image prompt",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["for","contentName",1,"label"],[1,"req"],["id","contentName","maxlength","200","placeholder","e.g. Danger Signs in Pregnancy \u2014 Module 3",1,"field",3,"ngModelChange","ngModel"],[1,"req-hint"],[1,"revise"],["for","fb",1,"label"],["id","fb","rows","2","placeholder","e.g. scene 3's narration is too fast, split it in two; use a male training voice; the heading on scene 5 should be centred",1,"field",3,"ngModelChange","ngModel"],[1,"revise-row"],[1,"revise-voice"],["for","fbv",1,"label"],["id","fbv",1,"field",3,"ngModelChange","ngModel"],[1,"muted","note"],["aria-label","Narration","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Key points on screen one per line","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Title overlay optional",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"lbl"],[1,"visual-row"],[1,"img-title"],["aria-label","How to treat your uploaded image",1,"field","treat",3,"ngModelChange","ngModel","ngModelOptions"],["value","asis"],["value","restyle"],["type","button",1,"btn","btn-ghost","tiny",3,"click"],["aria-label","Visual image prompt","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"field","attach",3,"ngModel","ngModelOptions"],[1,"field","attach",3,"ngModelChange","ngModel","ngModelOptions"],["role","status","aria-live","polite",1,"prod-now"],[1,"prod-icon"],[1,"prod-text"],[1,"prod-line"],[1,"prod-pct","mono"],["role","progressbar","aria-label","Video render progress","aria-valuemin","0","aria-valuemax","100",1,"bar"],[1,"prod-meta"],[1,"muted"],[1,"prod-steps"],[1,"prod-warn"],[1,"err-box","card-pad"],["type","button",1,"log-toggle",3,"click"],[1,"log"],[3,"class","is-last"],[1,"prod-step-node"],[1,"prod-step-body"],[1,"prod-step-name"],[1,"prod-step-detail"],["controls","",1,"player",3,"src"],["type","button",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],[1,"qc","ok"],[1,"qc","bad"]],template:function(n,r){if(n&1&&(d(0,"p",0),p(1,"AI Studio"),u(),d(2,"h1",1),p(3,"Turn a document into a training video"),u(),d(4,"p",2),p(5,"Upload the source material, describe how the video should look and feel, then review the scene plan and its cost before anything is produced."),u(),D(6,Aw,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),p(11,"1"),u(),d(12,"h2",8),p(13,"Source material"),u()(),D(14,kw,7,3,"label",9)(15,Lw,1,1)(16,jw,10,5,"div",10),u(),d(17,"section",5)(18,"div",6)(19,"span",7),p(20,"2"),u(),d(21,"h2",8),p(22),u()(),D(23,Bw,2,0,"p",11),d(24,"div",12),J(25,Hw,5,6,"button",13,pt),u(),d(27,"div",14)(28,"div"),D(29,Uw,3,1)(30,$w,3,2),u(),d(31,"div",15)(32,"label",16),p(33,"Language"),u(),d(34,"select",17),te("ngModelChange",function(i){return ne(r.language,i)||(r.language=i),i}),J(35,zw,2,2,"option",18,pt),u(),z(),d(37,"label",19),p(38,"Voice"),u(),d(39,"select",20),te("ngModelChange",function(i){return ne(r.voicePref,i)||(r.voicePref=i),i}),d(40,"option",21),p(41,"Auto \u2014 director picks & explains"),u(),J(42,Gw,2,2,"option",18,pt),u(),z(),u()(),D(44,Kw,44,12,"div",22),d(45,"button",23),A("click",function(){return r.makePlan()}),p(46),u()(),D(47,lx,33,13,"section",5),D(48,xx,68,28,"section",5),D(49,Lx,7,1,"section",5),D(50,Gx,15,3,"section",5),u(),d(51,"aa-confirm-dialog",24),A("confirmed",function(){return r.deleteVideo.confirm()})("cancelled",function(){return r.deleteVideo.cancel()}),u()),n&2){let o,i;h(6),E(r.error()?6:-1),h(8),E(r.doc()?r.isEditMode()?15:16:14),h(3),ge("dim",!r.hasSource()),h(5),b(r.isEditMode()?"What should be changed?":"How should the video look?"),h(),E(r.isEditMode()?-1:23),h(),S("hidden",r.isEditMode()),h(),X(r.videoTypes),h(4),E(r.isEditMode()?29:30),h(5),ee("ngModel",r.language),S("disabled",!r.hasSource()),G(),h(),X(r.languages),h(4),ee("ngModel",r.voicePref),S("disabled",!r.hasSource()),G(),h(3),X(r.voices()),h(2),E(r.isEditMode()?-1:44),h(),S("disabled",!r.hasSource()||r.planning()||r.isEditMode()&&!r.brief.trim()),h(),R(" ",r.planning()?"Planning\u2026":r.isEditMode()?"Plan the edits":"Generate scene plan"," "),h(),E((o=r.editPlan())?47:-1,o),h(),E((i=r.result())?48:-1,i),h(),E(r.job()||r.producing()?49:-1),h(),E(r.hasVideo()?50:-1),h(),S("open",r.deleteVideo.open())("subject",r.contentName()||r.job()?.plan?.title||"")("busy",r.deleteVideo.busy())}},dependencies:[wn,co,Ga,Wa,xn,Id,ao,so,Od,pr,Sn,li],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}','.bar[_ngcontent-%COMP%]{height:8px;background:var(--%NS%aastrika-surface-2);border-radius:999px;overflow:hidden;margin-bottom:14px}.bar[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%;background:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%);transition:width .4s ease}.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%),repeating-linear-gradient(115deg,#ffffff47 0 12px,#fff0 12px 26px);background-size:100% 100%,200% 100%;animation:_ngcontent-%COMP%_bar-stripe 1.5s linear infinite}@keyframes _ngcontent-%COMP%_bar-stripe{to{background-position:0 0,-200% 0}}@media(prefers-reduced-motion:reduce){.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{animation:none}}.prod-now[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:14px;background:var(--%NS%aastrika-cream-soft);border:1px solid var(--%NS%aastrika-gold-soft);border-radius:10px}.prod-now.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg, rgba(47,107,79,.07));border-color:#2f6b4f4d}.prod-now.is-failed[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);border-color:#9a3b2e4d}.prod-icon[_ngcontent-%COMP%]{font-size:22px;line-height:1;flex:none}.prod-icon.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_prod-pulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_prod-pulse{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.prod-icon.spin[_ngcontent-%COMP%]{animation:none}}.prod-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.prod-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14.5px}.prod-line[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted)}.prod-pct[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:var(--%NS%aastrika-gold-deep);flex:none;font-variant-numeric:tabular-nums}.prod-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--%NS%aastrika-muted);margin-bottom:16px}.prod-steps[_ngcontent-%COMP%]{list-style:none;margin:0 0 16px;padding:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:26px 1fr;gap:12px;padding:0 0 16px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]{padding-bottom:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:12px;top:26px;bottom:2px;width:2px;background:var(--%NS%aastrika-line-2);border-radius:1px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]:before{display:none}.prod-step-done[_ngcontent-%COMP%]:before{background:var(--%NS%aastrika-ok-fg, #2F6B4F);opacity:.45}.prod-step-node[_ngcontent-%COMP%]{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--%NS%aastrika-surface);border:2px solid var(--%NS%aastrika-line-2);color:var(--%NS%aastrika-muted)}.prod-step-done[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-fg, #2F6B4F);border-color:var(--%NS%aastrika-ok-fg, #2F6B4F);color:#fff}.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:var(--%NS%aastrika-gold-deep);font-size:13px;animation:_ngcontent-%COMP%_node-ring 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_node-ring{0%,to{box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}50%{box-shadow:0 0 0 7px #d4b05338}}@media(prefers-reduced-motion:reduce){.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 4px var(--%NS%aastrika-gold-soft)}}.prod-step-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;padding-top:3px}.prod-step-name[_ngcontent-%COMP%]{font-size:13px}.prod-step-todo[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);opacity:.65}.prod-step-done[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.prod-step-active[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink);font-weight:600}.prod-step-detail[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.prod-warn[_ngcontent-%COMP%]{padding:11px 14px;margin-bottom:14px;border-radius:8px;background:var(--%NS%aastrika-warn-bg);border:1px solid rgba(180,120,0,.28);font-size:13px;display:grid;gap:3px}.log-toggle[_ngcontent-%COMP%]{background:none;border:0;padding:4px 0;font:inherit;font-size:12.5px;color:var(--%NS%aastrika-gold-deep);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.log-toggle[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-ink)}',".opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.plan-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.plan-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.cost[_ngcontent-%COMP%]{text-align:right}.cost-n[_ngcontent-%COMP%]{font-size:22px;font-weight:700;color:var(--%NS%aastrika-gold-deep)}.cost-l[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.scene[_ngcontent-%COMP%]{display:grid;grid-template-columns:46px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--%NS%aastrika-line)}@media(max-width:700px){.opts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.types[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:22px}.type[_ngcontent-%COMP%]{text-align:left;padding:14px 16px;border-radius:var(--%NS%aastrika-r);border:1.5px solid var(--%NS%aastrika-line);background:var(--%NS%aastrika-surface);cursor:pointer;display:grid;gap:4px}.type[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2)}.type.sel[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.type[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:13.5px}.type[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted);line-height:1.45}.type[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:stretch}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;flex-direction:column}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child textarea[_ngcontent-%COMP%]{flex:1 1 auto;min-height:120px}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%]{margin-top:14px}.check[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-size:13px;cursor:pointer}.check[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:auto;margin-top:2px}.extras[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;align-items:start}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{min-height:2.4em}.hint[_ngcontent-%COMP%]{font-size:12px;margin-top:5px}.img-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:7px}.img-name[_ngcontent-%COMP%]{font-size:12px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.img-note[_ngcontent-%COMP%]{flex:1;padding:6px 9px;font-size:12px}.x[_ngcontent-%COMP%]{border:0;background:none;color:var(--%NS%aastrika-muted);font-size:17px;cursor:pointer;line-height:1}.x[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-err-fg)}.cost-b[_ngcontent-%COMP%]{font-size:10.5px;color:var(--%NS%aastrika-muted);margin-top:3px}.keys[_ngcontent-%COMP%]{margin:7px 0 0;padding-left:18px;font-size:12.5px;color:var(--%NS%aastrika-ink-2)}.keys[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:2px}.revise[_ngcontent-%COMP%]{margin-top:22px;padding-top:18px;border-top:1px solid var(--%NS%aastrika-line)}.revise-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:14px;margin-top:12px}.revise-voice[_ngcontent-%COMP%]{max-width:280px;flex:1}@media(max-width:900px){.types[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%], .extras[_ngcontent-%COMP%]{grid-template-columns:1fr}.revise-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.scene[_ngcontent-%COMP%]{display:block;padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.sh[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:600;color:var(--%NS%aastrika-gold-deep);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}.sh[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:var(--%NS%aastrika-muted);font-weight:400;text-transform:none;letter-spacing:0}.lbl[_ngcontent-%COMP%]{display:block;font-size:11px;color:var(--%NS%aastrika-muted);margin:10px 0 4px}.scene[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{font-size:13px}.visual-note[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-ok-fg);background:var(--%NS%aastrika-ok-bg);padding:8px 11px;border-radius:8px}.visual-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.img-title[_ngcontent-%COMP%]{font-size:13px}.treat[_ngcontent-%COMP%]{flex:1;min-width:240px;font-size:12px}.attach[_ngcontent-%COMP%]{margin-top:6px;font-size:12px}.tiny[_ngcontent-%COMP%]{padding:5px 11px;font-size:12px}.meta-line[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--%NS%aastrika-muted);margin-top:3px}.voice-why[_ngcontent-%COMP%]{margin:6px 0 0;font-size:12px;color:var(--%NS%aastrika-muted);max-width:52ch}.produce-row[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.produce-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.log[_ngcontent-%COMP%]{background:#3b3330;color:#f1e2c6;font-family:var(--%NS%aastrika-mono);font-size:12px;border-radius:10px;padding:14px;max-height:260px;overflow-y:auto;white-space:pre-wrap;margin:0}.qc[_ngcontent-%COMP%]{font-size:13px;margin:0 0 14px}.qc.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.qc.bad[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);padding:12px 14px;border-radius:10px}.qc.bad[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 6px}.qc.bad[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:20px}.player[_ngcontent-%COMP%]{width:100%;border-radius:var(--%NS%aastrika-r);background:#000;display:block}.mode-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-gold-deep);margin:12px 0 0}.mode-warn[_ngcontent-%COMP%]{font-size:12.5px;line-height:1.5;margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid rgba(180,120,0,.35);background:#ffc40014}.seg-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;text-transform:none;letter-spacing:0;font-weight:600}.kf[_ngcontent-%COMP%]{width:88px;height:50px;object-fit:cover;border-radius:6px;border:1px solid var(--%NS%aastrika-line)}.act-sel[_ngcontent-%COMP%]{max-width:250px;font-size:12px;padding:6px 10px}.scene.cut[_ngcontent-%COMP%]{opacity:.55}.scene.cut[_ngcontent-%COMP%] .kf[_ngcontent-%COMP%]{filter:grayscale(1)}.req[_ngcontent-%COMP%]{color:#c0392b;font-weight:700}.field.invalid[_ngcontent-%COMP%]{border-color:#c0392b}.req-hint[_ngcontent-%COMP%]{color:#c0392b;font-size:.82rem;margin:.25rem 0 0}.step-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted, #6b6b63);margin:.1rem 0 1rem;font-size:.9rem}.more-body[_ngcontent-%COMP%]{padding-top:.5rem}.opt-group[_ngcontent-%COMP%]{margin-top:1rem;padding:.9rem 1rem;border:1px dashed rgba(0,0,0,.14);border-radius:10px;background:#00000004}.opt-head[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;letter-spacing:.02em;color:var(--%NS%aastrika-muted, #6b6b63);margin-bottom:.5rem}.file-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--%NS%aastrika-line, rgba(0,0,0,.14));border-radius:8px;cursor:pointer;font-size:.85rem;color:var(--%NS%aastrika-muted, #5a5a52);background:#fff;transition:border-color .15s,background .15s}.file-btn[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold, #a5872f);background:#00000005}.file-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;flex:none}.file-btn.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}"],changeDetection:1})};var by=()=>({standalone:!0}),Ya=(e,t)=>t.id,Wx=(e,t)=>t.code;function qx(e,t){if(e&1&&(d(0,"div",3),p(1),u()),e&2){let n=v();h(),b(n.error())}}function Zx(e,t){if(e&1&&(d(0,"div",16),p(1),u()),e&2){let n=v();h(),R("",n.files().length," file(s) selected")}}function Yx(e,t){if(e&1&&(d(0,"span",43),p(1),u()),e&2){let n=v().$implicit;h(),b(n.error)}}function Qx(e,t){if(e&1&&(d(0,"span",44),p(1),ut(2,"number"),u()),e&2){let n=v().$implicit;h(),R("",cr(2,1,n.chars)," chars")}}function Kx(e,t){if(e&1){let n=W();d(0,"li")(1,"input",41),A("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleSource(o))}),u(),d(2,"span",42),p(3),u(),D(4,Yx,2,1,"span",43)(5,Qx,3,3,"span",44),u()}if(e&2){let n=t.$implicit;ge("bad",n.error)("off",!n.error&&!n.checked),h(),S("checked",n.checked)("disabled",!!n.error),h(2),b(n.name),h(),E(n.error?4:5)}}function Jx(e,t){if(e&1&&(d(0,"ul",18),J(1,Kx,6,8,"li",40,ir),u()),e&2){let n=v();h(),X(n.sources())}}function Xx(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),R("\u{1F3AC} ",n.plan?.title||n.filename||n.id)}}function eS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.code),h(),b(n.name)}}function tS(e,t){if(e&1&&(d(0,"option",33),p(1),u()),e&2){let n=t.$implicit;S("ngValue",n),h(),b(n)}}function nS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function rS(e,t){if(e&1&&(d(0,"option",25),p(1),u()),e&2){let n=t.$implicit;S("value",n.id),h(),b(n.label)}}function oS(e,t){if(e&1&&(d(0,"div",53),p(1),u()),e&2){let n=v();h(),R("Quality check corrected ",n.qcFixed," question(s) before showing them.")}}function iS(e,t){if(e&1){let n=W();d(0,"label",68)(1,"input",69),A("change",function(){let o=I(n).$index,i=v().$implicit,s=v(2);return M(s.markCorrect(i,o))}),u(),d(2,"span",70),p(3),u(),d(4,"input",71),A("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(2);return M(a.editOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(),i=o.$implicit,s=o.$index;ge("correct",r===i.correctIndex),h(),S("name","correct-"+s)("checked",r===i.correctIndex),h(2),b("ABCDEF"[r]),h(),S("value",n)}}function sS(e,t){if(e&1){let n=W();d(0,"textarea",72),te("ngModelChange",function(o){I(n);let i=v().$implicit;return ne(i.explanation,o)||(i.explanation=o),M(o)}),A("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(1,"p",73),p(2),u()}if(e&2){let n=v().$implicit;ee("ngModel",n.explanation),S("ngModelOptions",ze(3,by)),G(),h(2),R("Source: ",n.sourceRef)}}function aS(e,t){if(e&1){let n=W();d(0,"div",54)(1,"div",59)(2,"span",60),p(3),u(),d(4,"div",61)(5,"textarea",62),te("ngModelChange",function(o){let i=I(n).$implicit;return ne(i.question,o)||(i.question=o),M(o)}),A("ngModelChange",function(){I(n);let o=v(2);return M(o.touched())}),u(),z(),d(6,"div",63),J(7,iS,5,6,"label",64,ir),u(),d(9,"div",65)(10,"span",66),p(11),u(),d(12,"span",66),p(13),u(),d(14,"button",67),A("click",function(){let o=I(n).$implicit,i=v(2);return M(i.toggle(o.id))}),p(15),u()(),D(16,sS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(2);h(3),b(r+1),h(2),ee("ngModel",n.question),S("ngModelOptions",ze(7,by)),G(),h(2),X(n.options),h(4),b(n.difficulty),h(2),b(n.bloom),h(2),R(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),h(),E(o.revealed()[n.id]?16:-1)}}function cS(e,t){if(e&1){let n=W();d(0,"section",5)(1,"div",6)(2,"span",7),p(3,"3"),u(),d(4,"h2",8),p(5,"Review questions"),u(),d(6,"span",45),p(7,"\u2014 edit anything, tick the correct option, then download"),u()(),d(8,"div",46)(9,"div")(10,"div",47),p(11),u(),d(12,"div",48),p(13),u()(),d(14,"div",49)(15,"button",50),A("click",function(){I(n);let o=v();return M(o.export("xlsx"))}),p(16,"\u2B07 Download Excel (.xlsx)"),u(),d(17,"button",51),A("click",function(){I(n);let o=v();return M(o.export("csv"))}),p(18,"\u2B07 CSV"),u(),d(19,"button",52),A("click",function(){I(n);let o=v();return M(o.deleteQuiz.ask(o.result()))}),p(20," \u{1F5D1} Delete quiz "),u()()(),D(21,oS,2,1,"div",53),J(22,aS,17,8,"div",54,Ya),d(24,"div",55)(25,"button",56),A("click",function(){I(n);let o=v();return M(o.save())}),p(26),u(),d(27,"span",57),p(28,"Save before downloading so the export matches what you see."),u()(),d(29,"p",58),p(30," Format: Question \xB7 Option 1\u2026N \xB7 Correct Answer. The Excel file has a second sheet with difficulty, Bloom's level, source reference and explanations. "),u()()}if(e&2){let n=t,r=v();h(11),b(n.assessment.title),h(2),R("",n.assessment.questions.length," questions"),h(6),S("disabled",r.deleteQuiz.busy()),h(2),E(n.qcFixed?21:-1),h(),X(n.assessment.questions),h(3),S("disabled",r.saving()),h(),R(" ",r.saving()?"Saving\u2026":r.saved()?"\u2713 Saved":"Save edits"," ")}}var Qa=class e{api=C(Ut);destroyRef=C(ue);get untilGone(){return t=>t.pipe(to(this.destroyRef))}files=F([]);sources=F([]);reading=F(!1);generating=F(!1);result=F(null);error=F("");revealed=F({});languages=F([]);pastVideos=F([]);defaultLanguage=dt(void 0);defaultQuestionCount=dt(void 0);defaultDifficulty=dt(void 0);assessmentReady=En();seeded=!1;links="";brief="";sourceJobId="";language="hi";numQuestions=10;numOptions=4;difficulty="mixed";bloom="mixed";optionCounts=[2,3,4,5,6];difficulties=[{id:"mixed",label:"Mixed (30% easy \xB7 45% medium \xB7 25% hard)"},{id:"easy",label:"Easy \u2014 direct recall"},{id:"medium",label:"Medium \u2014 comprehension"},{id:"hard",label:"Hard \u2014 close distractors"}];blooms=[{id:"mixed",label:"Mixed (remember \xB7 understand \xB7 apply)"},{id:"apply",label:"Application-oriented \u2014 field scenarios"},{id:"understand",label:"Understanding \u2014 explain why"},{id:"remember",label:"Recall \u2014 facts & definitions"}];constructor(){_t(()=>{let t=this.defaultLanguage(),n=this.defaultQuestionCount(),r=this.defaultDifficulty();this.seeded||(t&&(this.language=t),n&&(this.numQuestions=n),r&&(this.difficulty=r),(t||n||r)&&(this.seeded=!0))}),this.api.languages().pipe(this.untilGone).subscribe({next:t=>{let n=Object.entries(t).map(([r,o])=>({code:r,name:o}));this.languages.set(n)},error:t=>{le(t,"assessment"),this.languages.set([{code:"hi",name:"Hindi"},{code:"en",name:"English"}])}}),this.api.studioJobs().pipe(this.untilGone).subscribe({next:t=>this.pastVideos.set(t.filter(n=>n.plan)),error:t=>{le(t,"assessment")}})}chooseFiles(t){this.files.set(Array.from(t.target.files??[]))}readSources(){!this.files().length&&!this.links.trim()||(this.error.set(""),this.reading.set(!0),this.api.readSources(this.files(),this.links,this.language).pipe(this.untilGone).subscribe({next:t=>{let n=(t.sources||[]).map(r=>H(L({},r),{checked:!r.error}));this.sources.update(r=>[...r,...n]),this.reading.set(!1)},error:t=>{this.error.set(le(t,"assessment")),this.reading.set(!1)}}))}get readySources(){return this.sources().filter(t=>!t.error&&t.checked)}toggleSource(t){t.error||(t.checked=!t.checked,this.sources.update(n=>[...n]))}generate(){!this.readySources.length&&!this.sourceJobId||(this.error.set(""),this.generating.set(!0),this.result.set(null),this.api.generateAssessment({language:this.language,numQuestions:Number(this.numQuestions),numOptions:Number(this.numOptions),difficulty:this.difficulty,bloom:this.bloom,userPrompt:this.brief||void 0,sourceIds:this.readySources.map(t=>t.id).filter(Boolean),sourceJobId:this.sourceJobId||void 0}).pipe(this.untilGone).subscribe({next:t=>{this.result.set(t),this.generating.set(!1),this.assessmentReady.emit({jobId:t.jobId,questionCount:t.assessment?.questions?.length??0,language:this.language})},error:t=>{this.error.set(le(t,"assessment")),this.generating.set(!1)}}))}toggle(t){this.revealed.update(n=>H(L({},n),{[t]:!n[t]}))}saving=F(!1);saved=F(!1);markCorrect(t,n){t.correctIndex=n,this.saved.set(!1)}editOption(t,n,r){t.options[n]=r,this.saved.set(!1)}touched(){this.saved.set(!1)}save(){let t=this.result();t&&(this.saving.set(!0),this.api.saveAssessment(t.jobId,t.assessment).pipe(this.untilGone).subscribe({next:()=>{this.saving.set(!1),this.saved.set(!0)},error:n=>{this.error.set(le(n,"assessment")),this.saving.set(!1)}}))}export(t){let n=this.result();n&&hr({feature:"assessment",lookup:this.api.exportUrl(n.jobId,t),fallbackHref:this.api.exportHref(n.jobId,t),onError:r=>this.error.set(r)})}deleteQuiz=lo({feature:"assessment",request:t=>this.api.deleteQuiz(t.jobId),onDeleted:()=>this.result.set(null),onError:t=>this.error.set(t),fallback:"Could not delete the quiz"});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-assessment"]],inputs:{defaultLanguage:[1,"defaultLanguage"],defaultQuestionCount:[1,"defaultQuestionCount"],defaultDifficulty:[1,"defaultDifficulty"]},outputs:{assessmentReady:"assessmentReady"},decls:78,vars:21,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"step-lead"],[1,"src-cols"],["rows","3","placeholder",`Paste links here, one per line \u2014 Google Drive file/folder links, S3 links
13
+ `).map(r=>r.trim()).filter(Boolean)}attachImage(t,n){n&&(t.visual=U(j({},t.visual),{userImageId:n,treatment:"asis",imagePrompt:void 0}))}detachImage(t){t.visual=U(j({},t.visual),{userImageId:void 0,treatment:void 0,imagePrompt:""})}imageName(t){return this.userImages().find(n=>n.id===t)?.name??t??""}reset(){this.doc.set(null),this.sourceVideo.set(null),this.editPlan.set(null),this.result.set(null),this.error.set(""),this.brief="",this.userImages.set([]),this.styleGuide.set(""),this.refName.set("")}produce(){let t=this.result();t&&(this.error.set(""),this.producing.set(!0),this.job.set(null),this.api.generateVideo(t.jobId,{plan:t.plan,contentName:this.contentName().trim()}).pipe(this.untilGone).subscribe({next:()=>{this.videoStarted.emit({jobId:t.jobId}),this.poll()},error:n=>{this.error.set(ue(n,"content-studio")),this.producing.set(!1)}}))}poll(){let t=this.result()?.jobId??this.editPlan()?.jobId;t&&this.pollFrom(t)}pollFrom(t){let n=this.result();this.api.job(t).pipe(this.untilGone).subscribe({next:r=>{this.job.set(r),r.status==="done"&&r.video?(this.producing.set(!1),r.plan&&n&&this.result.set(U(j({},n),{plan:r.plan})),this.videoReady.emit({jobId:t,videoUrl:r.videoUrl??r.video??""})):r.status==="failed"?this.producing.set(!1):this.pollTimer=setTimeout(()=>this.pollFrom(t),2500)},error:r=>{this.error.set(ue(r,"content-studio")),this.producing.set(!1)}})}ngOnDestroy(){this.pollTimer&&clearTimeout(this.pollTimer)}stages=Za;progress=W(()=>xy(this.job(),this.job()?.plan?.scenes?.length??0));eta=W(()=>Sy(this.progress().etaSeconds));stageState(t){let n=this.progress();if(n.done)return"done";let r=this.stages.findIndex(o=>o.id===n.stage.id);return r<0?"todo":t<r?"done":t===r?"active":"todo"}showLog=A(!1);logText(t){return(t.log||[]).map(n=>`${String(n.t).slice(11,19)} ${n.message}`).join(`
14
+ `)}hasVideo=W(()=>this.job()?.status==="done"&&!!this.job()?.video);playbackSrc=W(()=>{let t=this.job();return t?.videoUrl??t?.video??null});download(){let t=this.job();t&&pr({feature:"content-studio",lookup:this.api.downloadVideoUrl(t.id),fallbackHref:this.api.downloadVideoHref(t.id),onError:n=>this.error.set(n)})}deleteVideo=qa({feature:"content-studio",request:t=>this.api.deleteVideo(t.id),onDeleted:()=>{this.job.set(null),this.result.set(null),this.editPlan.set(null)},onError:t=>this.error.set(t),fallback:"Could not delete the video"});qcIssues(){return(this.job()?.qc?.scenes||[]).filter(t=>t.issues?.length)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-content-studio"]],inputs:{editMode:[1,"editMode"],defaultLanguage:[1,"defaultLanguage"],defaultAspectRatio:[1,"defaultAspectRatio"],defaultDepth:[1,"defaultDepth"],defaultVoice:[1,"defaultVoice"]},outputs:{planReady:"planReady",videoStarted:"videoStarted",videoReady:"videoReady"},decls:52,vars:22,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"drop"],[1,"picked"],[1,"step-sub"],[1,"types",3,"hidden"],["type","button",1,"type",3,"sel","disabled"],[1,"cols"],[1,"side"],["for","lang",1,"label"],["id","lang",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"value"],["for","voice",1,"label","mt"],["id","voice",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[1,"opt-group"],[1,"btn","mt-lg",3,"click","disabled"],["title","Delete video?","message","This removes the video and its stored files permanently. This cannot be undone.","confirmLabel","Delete video",3,"confirmed","cancelled","open","subject","busy"],["type","file","hidden","",3,"change","accept"],[1,"drop-main"],[1,"drop-sub"],[1,"picked-name"],[1,"picked-meta","mono"],[1,"btn","btn-ghost",3,"click"],[1,"mode-warn"],[1,"mode-note"],["type","button",1,"type",3,"click","disabled"],["for","brief",1,"label"],["id","brief","rows","3","placeholder",'e.g. change the title to "\u2026", re-voice segment 3 to also mention the MCP card, replace the intro visual with a watercolor scene, cut the WhatsApp part',1,"field",3,"ngModelChange","ngModel"],["id","brief","rows","3","placeholder","e.g. 90-second Hindi refresher on the 5 key counselling points; warm female voice; show the ANM at a VHND session; end with a recap slide",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"opt-head"],[1,"more-body"],[1,"check"],["for","aspect",1,"label"],["id","aspect",1,"field",3,"ngModelChange","ngModel","disabled"],["for","depth",1,"label"],["id","depth",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"extras"],["aria-hidden","true",1,"label"],[1,"file-btn"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M12 15V3"],["d","m7 8 5-5 5 5"],["d","M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"],["type","file","hidden","","aria-label","Reference video the AI copies its look, pacing and style from","accept","video/mp4,video/quicktime,video/webm",3,"change","disabled"],[1,"hint","ok"],["x","3","y","3","width","18","height","18","rx","2"],["cx","9","cy","9","r","1.5"],["d","m21 15-4-4L7 21"],["type","file","hidden","","multiple","","accept","image/png,image/jpeg,image/webp",3,"change","disabled"],[1,"img-row"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"img-name"],["placeholder","where should this be used?",1,"field","img-note",3,"ngModelChange","ngModel","ngModelOptions"],["type","button",1,"x",3,"click"],[1,"step-note"],[1,"plan-head"],[1,"plan-title"],[1,"meta-line"],[1,"mono"],[1,"voice-why"],[1,"cost"],[1,"cost-n","mono"],[1,"cost-l"],[1,"cost-b","mono"],[1,"scene",3,"cut"],[1,"produce-row"],[1,"btn",3,"click","disabled"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"scene"],[1,"sh"],[1,"seg-head"],["alt","",1,"kf",3,"src"],[1,"field","act-sel",3,"ngModelChange","ngModel","ngModelOptions"],[1,"visual-note"],["aria-hidden","true",1,"lbl"],["rows","2","aria-label","Narration",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["rows","2","aria-label","Visual or image prompt",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["for","contentName",1,"label"],[1,"req"],["id","contentName","maxlength","200","placeholder","e.g. Danger Signs in Pregnancy \u2014 Module 3",1,"field",3,"ngModelChange","ngModel"],[1,"req-hint"],[1,"revise"],["for","fb",1,"label"],["id","fb","rows","2","placeholder","e.g. scene 3's narration is too fast, split it in two; use a male training voice; the heading on scene 5 should be centred",1,"field",3,"ngModelChange","ngModel"],[1,"revise-row"],[1,"revise-voice"],["for","fbv",1,"label"],["id","fbv",1,"field",3,"ngModelChange","ngModel"],[1,"muted","note"],["aria-label","Narration","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Key points on screen one per line","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],["aria-label","Title overlay optional",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"lbl"],[1,"visual-row"],[1,"img-title"],["aria-label","How to treat your uploaded image",1,"field","treat",3,"ngModelChange","ngModel","ngModelOptions"],["value","asis"],["value","restyle"],["type","button",1,"btn","btn-ghost","tiny",3,"click"],["aria-label","Visual image prompt","rows","2",1,"field",3,"ngModelChange","ngModel","ngModelOptions"],[1,"field","attach",3,"ngModel","ngModelOptions"],[1,"field","attach",3,"ngModelChange","ngModel","ngModelOptions"],["role","status","aria-live","polite",1,"prod-now"],[1,"prod-icon"],[1,"prod-text"],[1,"prod-line"],[1,"prod-pct","mono"],["role","progressbar","aria-label","Video render progress","aria-valuemin","0","aria-valuemax","100",1,"bar"],[1,"prod-meta"],[1,"muted"],[1,"prod-steps"],[1,"prod-warn"],[1,"err-box","card-pad"],["type","button",1,"log-toggle",3,"click"],[1,"log"],[3,"class","is-last"],[1,"prod-step-node"],[1,"prod-step-body"],[1,"prod-step-name"],[1,"prod-step-detail"],["controls","",1,"player",3,"src"],["type","button",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],[1,"qc","ok"],[1,"qc","bad"]],template:function(n,r){if(n&1&&(d(0,"p",0),g(1,"AI Studio"),u(),d(2,"h1",1),g(3,"Turn a document into a training video"),u(),d(4,"p",2),g(5,"Upload the source material, describe how the video should look and feel, then review the scene plan and its cost before anything is produced."),u(),D(6,Pw,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),g(11,"1"),u(),d(12,"h2",8),g(13,"Source material"),u()(),D(14,Lw,7,3,"label",9)(15,Hw,1,1)(16,$w,10,5,"div",10),u(),d(17,"section",5)(18,"div",6)(19,"span",7),g(20,"2"),u(),d(21,"h2",8),g(22),u()(),D(23,zw,2,0,"p",11),d(24,"div",12),Z(25,Gw,5,6,"button",13,gt),u(),d(27,"div",14)(28,"div"),D(29,Ww,3,1)(30,qw,3,2),u(),d(31,"div",15)(32,"label",16),g(33,"Language"),u(),d(34,"select",17),ee("ngModelChange",function(i){return re(r.language,i)||(r.language=i),i}),Z(35,Zw,2,2,"option",18,gt),u(),z(),d(37,"label",19),g(38,"Voice"),u(),d(39,"select",20),ee("ngModelChange",function(i){return re(r.voicePref,i)||(r.voicePref=i),i}),d(40,"option",21),g(41,"Auto \u2014 director picks & explains"),u(),Z(42,Yw,2,2,"option",18,gt),u(),z(),u()(),D(44,tx,44,12,"div",22),d(45,"button",23),N("click",function(){return r.makePlan()}),g(46),u()(),D(47,px,33,13,"section",5),D(48,Tx,68,28,"section",5),D(49,Hx,7,1,"section",5),D(50,Yx,15,3,"section",5),u(),d(51,"aa-confirm-dialog",24),N("confirmed",function(){return r.deleteVideo.confirm()})("cancelled",function(){return r.deleteVideo.cancel()}),u()),n&2){let o,i;f(6),E(r.error()?6:-1),f(8),E(r.doc()?r.isEditMode()?15:16:14),f(3),le("dim",!r.hasSource()),f(5),C(r.isEditMode()?"What should be changed?":"How should the video look?"),f(),E(r.isEditMode()?-1:23),f(),w("hidden",r.isEditMode()),f(),Y(r.videoTypes),f(4),E(r.isEditMode()?29:30),f(5),X("ngModel",r.language),w("disabled",!r.hasSource()),G(),f(),Y(r.languages),f(4),X("ngModel",r.voicePref),w("disabled",!r.hasSource()),G(),f(3),Y(r.voices()),f(2),E(r.isEditMode()?-1:44),f(),w("disabled",!r.hasSource()||r.planning()||r.isEditMode()&&!r.brief.trim()),f(),T(" ",r.planning()?"Planning\u2026":r.isEditMode()?"Plan the edits":"Generate scene plan"," "),f(),E((o=r.editPlan())?47:-1,o),f(),E((i=r.result())?48:-1,i),f(),E(r.job()||r.producing()?49:-1),f(),E(r.hasVideo()?50:-1),f(),w("open",r.deleteVideo.open())("subject",r.contentName()||r.job()?.plan?.title||"")("busy",r.deleteVideo.busy())}},dependencies:[Sn,ao,Ga,Wa,In,Td,so,io,Rd,fr,lo,li],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}','.bar[_ngcontent-%COMP%]{height:8px;background:var(--%NS%aastrika-surface-2);border-radius:999px;overflow:hidden;margin-bottom:14px}.bar[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%;background:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%);transition:width .4s ease}.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,var(--%NS%aastrika-gold) 0%,var(--%NS%aastrika-gold-deep) 100%),repeating-linear-gradient(115deg,#ffffff47 0 12px,#fff0 12px 26px);background-size:100% 100%,200% 100%;animation:_ngcontent-%COMP%_bar-stripe 1.5s linear infinite}@keyframes _ngcontent-%COMP%_bar-stripe{to{background-position:0 0,-200% 0}}@media(prefers-reduced-motion:reduce){.bar.is-working[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{animation:none}}.prod-now[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:14px;background:var(--%NS%aastrika-cream-soft);border:1px solid var(--%NS%aastrika-gold-soft);border-radius:10px}.prod-now.is-done[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg, rgba(47,107,79,.07));border-color:#2f6b4f4d}.prod-now.is-failed[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);border-color:#9a3b2e4d}.prod-icon[_ngcontent-%COMP%]{font-size:22px;line-height:1;flex:none}.prod-icon.spin[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_prod-pulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_prod-pulse{0%,to{opacity:1}50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.prod-icon.spin[_ngcontent-%COMP%]{animation:none}}.prod-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.prod-text[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14.5px}.prod-line[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted)}.prod-pct[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:var(--%NS%aastrika-gold-deep);flex:none;font-variant-numeric:tabular-nums}.prod-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--%NS%aastrika-muted);margin-bottom:16px}.prod-steps[_ngcontent-%COMP%]{list-style:none;margin:0 0 16px;padding:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:grid;grid-template-columns:26px 1fr;gap:12px;padding:0 0 16px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]{padding-bottom:0}.prod-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:12px;top:26px;bottom:2px;width:2px;background:var(--%NS%aastrika-line-2);border-radius:1px}.prod-steps[_ngcontent-%COMP%] li.is-last[_ngcontent-%COMP%]:before{display:none}.prod-step-done[_ngcontent-%COMP%]:before{background:var(--%NS%aastrika-ok-fg, #2F6B4F);opacity:.45}.prod-step-node[_ngcontent-%COMP%]{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--%NS%aastrika-surface);border:2px solid var(--%NS%aastrika-line-2);color:var(--%NS%aastrika-muted)}.prod-step-done[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-fg, #2F6B4F);border-color:var(--%NS%aastrika-ok-fg, #2F6B4F);color:#fff}.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:var(--%NS%aastrika-gold-deep);font-size:13px;animation:_ngcontent-%COMP%_node-ring 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_node-ring{0%,to{box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}50%{box-shadow:0 0 0 7px #d4b05338}}@media(prefers-reduced-motion:reduce){.prod-step-active[_ngcontent-%COMP%] .prod-step-node[_ngcontent-%COMP%]{animation:none;box-shadow:0 0 0 4px var(--%NS%aastrika-gold-soft)}}.prod-step-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;padding-top:3px}.prod-step-name[_ngcontent-%COMP%]{font-size:13px}.prod-step-todo[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);opacity:.65}.prod-step-done[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.prod-step-active[_ngcontent-%COMP%] .prod-step-name[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ink);font-weight:600}.prod-step-detail[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.prod-warn[_ngcontent-%COMP%]{padding:11px 14px;margin-bottom:14px;border-radius:8px;background:var(--%NS%aastrika-warn-bg);border:1px solid rgba(180,120,0,.28);font-size:13px;display:grid;gap:3px}.log-toggle[_ngcontent-%COMP%]{background:none;border:0;padding:4px 0;font:inherit;font-size:12.5px;color:var(--%NS%aastrika-gold-deep);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.log-toggle[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-ink)}',".opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.plan-head[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.plan-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.cost[_ngcontent-%COMP%]{text-align:right}.cost-n[_ngcontent-%COMP%]{font-size:22px;font-weight:700;color:var(--%NS%aastrika-gold-deep)}.cost-l[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.scene[_ngcontent-%COMP%]{display:grid;grid-template-columns:46px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--%NS%aastrika-line)}@media(max-width:700px){.opts[_ngcontent-%COMP%]{grid-template-columns:1fr}}.types[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:22px}.type[_ngcontent-%COMP%]{text-align:left;padding:14px 16px;border-radius:var(--%NS%aastrika-r);border:1.5px solid var(--%NS%aastrika-line);background:var(--%NS%aastrika-surface);cursor:pointer;display:grid;gap:4px}.type[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--%NS%aastrika-line-2)}.type.sel[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.type[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:13.5px}.type[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted);line-height:1.45}.type[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 280px;gap:22px;align-items:stretch}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;flex-direction:column}.cols[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child textarea[_ngcontent-%COMP%]{flex:1 1 auto;min-height:120px}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%]{margin-top:14px}.check[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:9px;margin-top:12px;font-size:13px;cursor:pointer}.check[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:auto;margin-top:2px}.extras[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;align-items:start}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}.extras[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{min-height:2.4em}.hint[_ngcontent-%COMP%]{font-size:12px;margin-top:5px}.img-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:7px}.img-name[_ngcontent-%COMP%]{font-size:12px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.img-note[_ngcontent-%COMP%]{flex:1;padding:6px 9px;font-size:12px}.x[_ngcontent-%COMP%]{border:0;background:none;color:var(--%NS%aastrika-muted);font-size:17px;cursor:pointer;line-height:1}.x[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-err-fg)}.cost-b[_ngcontent-%COMP%]{font-size:10.5px;color:var(--%NS%aastrika-muted);margin-top:3px}.keys[_ngcontent-%COMP%]{margin:7px 0 0;padding-left:18px;font-size:12.5px;color:var(--%NS%aastrika-ink-2)}.keys[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:2px}.revise[_ngcontent-%COMP%]{margin-top:22px;padding-top:18px;border-top:1px solid var(--%NS%aastrika-line)}.revise-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:14px;margin-top:12px}.revise-voice[_ngcontent-%COMP%]{max-width:280px;flex:1}@media(max-width:900px){.types[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%], .extras[_ngcontent-%COMP%]{grid-template-columns:1fr}.revise-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.scene[_ngcontent-%COMP%]{display:block;padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.sh[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:600;color:var(--%NS%aastrika-gold-deep);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}.sh[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{color:var(--%NS%aastrika-muted);font-weight:400;text-transform:none;letter-spacing:0}.lbl[_ngcontent-%COMP%]{display:block;font-size:11px;color:var(--%NS%aastrika-muted);margin:10px 0 4px}.scene[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{font-size:13px}.visual-note[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-ok-fg);background:var(--%NS%aastrika-ok-bg);padding:8px 11px;border-radius:8px}.visual-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.img-title[_ngcontent-%COMP%]{font-size:13px}.treat[_ngcontent-%COMP%]{flex:1;min-width:240px;font-size:12px}.attach[_ngcontent-%COMP%]{margin-top:6px;font-size:12px}.tiny[_ngcontent-%COMP%]{padding:5px 11px;font-size:12px}.meta-line[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--%NS%aastrika-muted);margin-top:3px}.voice-why[_ngcontent-%COMP%]{margin:6px 0 0;font-size:12px;color:var(--%NS%aastrika-muted);max-width:52ch}.produce-row[_ngcontent-%COMP%]{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.produce-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.produce-row[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.log[_ngcontent-%COMP%]{background:#3b3330;color:#f1e2c6;font-family:var(--%NS%aastrika-mono);font-size:12px;border-radius:10px;padding:14px;max-height:260px;overflow-y:auto;white-space:pre-wrap;margin:0}.qc[_ngcontent-%COMP%]{font-size:13px;margin:0 0 14px}.qc.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}.qc.bad[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);padding:12px 14px;border-radius:10px}.qc.bad[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 6px}.qc.bad[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding-left:20px}.player[_ngcontent-%COMP%]{width:100%;border-radius:var(--%NS%aastrika-r);background:#000;display:block}.mode-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-gold-deep);margin:12px 0 0}.mode-warn[_ngcontent-%COMP%]{font-size:12.5px;line-height:1.5;margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1px solid rgba(180,120,0,.35);background:#ffc40014}.seg-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;text-transform:none;letter-spacing:0;font-weight:600}.kf[_ngcontent-%COMP%]{width:88px;height:50px;object-fit:cover;border-radius:6px;border:1px solid var(--%NS%aastrika-line)}.act-sel[_ngcontent-%COMP%]{max-width:250px;font-size:12px;padding:6px 10px}.scene.cut[_ngcontent-%COMP%]{opacity:.55}.scene.cut[_ngcontent-%COMP%] .kf[_ngcontent-%COMP%]{filter:grayscale(1)}.req[_ngcontent-%COMP%]{color:#c0392b;font-weight:700}.field.invalid[_ngcontent-%COMP%]{border-color:#c0392b}.req-hint[_ngcontent-%COMP%]{color:#c0392b;font-size:.82rem;margin:.25rem 0 0}.step-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted, #6b6b63);margin:.1rem 0 1rem;font-size:.9rem}.more-body[_ngcontent-%COMP%]{padding-top:.5rem}.opt-group[_ngcontent-%COMP%]{margin-top:1rem;padding:.9rem 1rem;border:1px dashed rgba(0,0,0,.14);border-radius:10px;background:#00000004}.opt-head[_ngcontent-%COMP%]{font-size:.8rem;font-weight:600;letter-spacing:.02em;color:var(--%NS%aastrika-muted, #6b6b63);margin-bottom:.5rem}.file-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--%NS%aastrika-line, rgba(0,0,0,.14));border-radius:8px;cursor:pointer;font-size:.85rem;color:var(--%NS%aastrika-muted, #5a5a52);background:#fff;transition:border-color .15s,background .15s}.file-btn[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold, #a5872f);background:#00000005}.file-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;flex:none}.file-btn.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}"],changeDetection:1})};function Iy(e){let t=e.everyMs??2500,n=null,r=()=>{n&&clearTimeout(n),n=null},o=i=>{e.fetch(i).subscribe({next:s=>{e.onTick?.(s),s.status==="done"?(r(),e.onDone(s)):s.status==="failed"?(r(),e.onFailed(s.error??"It did not finish. Please try again.",s)):n=setTimeout(()=>o(i),t)},error:s=>{r(),e.onFailed(s instanceof Error?s.message:String(s))}})};return{start(i){r(),o(i)},stop:r}}var Ka=()=>({standalone:!0}),Ei=(e,t)=>t.id,Vd=(e,t)=>t.code;function Qx(e,t){if(e&1&&(d(0,"div",3),g(1),u()),e&2){let n=v();f(),C(n.error())}}function Kx(e,t){if(e&1&&(d(0,"div",16),g(1),u()),e&2){let n=v();f(),T("",n.files().length," file(s) selected")}}function Jx(e,t){if(e&1&&(d(0,"span",46),g(1),u()),e&2){let n=v().$implicit;f(),C(n.error)}}function Xx(e,t){if(e&1&&(d(0,"span",47),g(1),ft(2,"number"),u()),e&2){let n=v().$implicit;f(),T("",ar(2,1,n.chars)," chars")}}function eS(e,t){if(e&1){let n=B();d(0,"li")(1,"input",44),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleSource(o))}),u(),d(2,"span",45),g(3),u(),D(4,Jx,2,1,"span",46)(5,Xx,3,3,"span",47),u()}if(e&2){let n=t.$implicit,r=v(2);le("bad",n.error)("off",!n.error&&!n.checked),f(),w("checked",n.checked)("disabled",!!n.error||r.busy()),f(2),C(n.name),f(),E(n.error?4:5)}}function tS(e,t){if(e&1&&(d(0,"ul",18),Z(1,eS,6,8,"li",43,En),u()),e&2){let n=v();f(),Y(n.sources())}}function nS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),T("\u{1F3AC} ",n.plan?.title||n.filename||n.id)}}function rS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.code),f(),C(n.name)}}function oS(e,t){if(e&1&&(d(0,"option",33),g(1),u()),e&2){let n=t.$implicit;w("ngValue",n),f(),C(n)}}function iS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function sS(e,t){if(e&1&&(d(0,"option",25),g(1),u()),e&2){let n=t.$implicit;w("value",n.id),f(),C(n.label)}}function aS(e,t){if(e&1){let n=B();d(0,"label",50)(1,"input",51),N("change",function(){let o=I(n).$implicit,i=v(2);return M(i.toggleLanguage(o.code))}),u(),g(2),u()}if(e&2){let n=t.$implicit,r=v(2);le("on",r.translateInto().has(n.code)),f(),w("checked",r.translateInto().has(n.code))("disabled",r.generating()),f(),T(" ",n.name," ")}}function lS(e,t){if(e&1&&(d(0,"fieldset",38)(1,"legend"),g(2,"Also generate in \u2014 the "),d(3,"strong"),g(4,"same"),u(),g(5," questions, translated (optional)"),u(),d(6,"div",48),Z(7,aS,3,5,"label",49,Vd),u(),d(9,"p",42),g(10," Same question order, same options, same answer key in every language \u2014 you review each language on its own tab, and nothing needs translating afterwards. "),u()()),e&2){let n=v();f(7),Y(n.secondaryChoices())}}function cS(e,t){if(e&1&&(d(0,"span",41)(1,"span",52),Ce(2,"span",53),g(3),d(4,"span",54),g(5),u()(),d(6,"span",55),Ce(7,"span",56),u()()),e&2){let n=v();f(3),T("",n.stage()," "),f(2),T("",n.elapsed(),"s"),f(2),sn("width",n.progressPct(),"%")}}function uS(e,t){if(e&1&&(d(0,"span",42),g(1),u()),e&2){let n=v();f(),C(n.plannedSummary())}}function dS(e,t){e&1&&g(0," \xB7 all languages")}function fS(e,t){if(e&1&&g(0),e&2){let n=v(2);T(" \xB7 ",n.viewedLanguageName())}}function pS(e,t){if(e&1&&(d(0,"div",64),g(1),u()),e&2){let n=v();f(),T("Quality check corrected ",n.qcFixed," question(s) before showing them.")}}function gS(e,t){if(e&1&&(d(0,"div",65)(1,"strong"),g(2),u(),g(3),u()),e&2){let n=v(2);f(2),C(n.failedLanguageNames()),f(),T(" could not be completed this time. Your questions are safe \u2014 try generating again to add ",n.failedLanguageNames(),". ")}}function hS(e,t){e&1&&(d(0,"p",66),g(1," Excel gives you one file with a sheet per language. CSV gives you one language \u2014 whichever tab you are reading. "),u())}function mS(e,t){if(e&1&&(d(0,"div",65),g(1),u()),e&2){let n=v(2);f(),T(" You have changed the questions, so the other languages still show the earlier wording. Generate again to update them, or download ",n.languageName(n.language())," on its own. ")}}function yS(e,t){if(e&1){let n=B();d(0,"button",70),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.viewing.set(o.code))}),g(1),u()}if(e&2){let n=t.$implicit,r=v(3);le("on",r.viewing()===n.code),tt("aria-selected",r.viewing()===n.code),f(),C(n.name)}}function vS(e,t){if(e&1&&(d(0,"div",67),Z(1,yS,2,4,"button",69,Vd),u()),e&2){let n=v(2);f(),Y(n.resultLanguages())}}function _S(e,t){if(e&1){let n=B();d(0,"label",84),Ce(1,"input",85),d(2,"span",86),g(3),u(),d(4,"input",87),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(3);return M(a.editTranslatedOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v().$implicit,i=v(3);le("correct",r===o.correctIndex),f(),w("title",Uu("the correct answer is set on the ",i.languageName(i.language())," tab"))("checked",r===o.correctIndex),f(2),C("ABCDEF"[r]),f(),w("value",n)}}function CS(e,t){if(e&1){let n=B();d(0,"textarea",88),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(4);return M(o.touched())}),u(),z(),d(1,"p",89),g(2),u()}if(e&2){let n=v().$implicit;X("ngModel",n.explanation),w("ngModelOptions",Ne(3,Ka)),G(),f(2),T("Source: ",n.sourceRef)}}function bS(e,t){if(e&1){let n=B();d(0,"div",72)(1,"div",75)(2,"span",76),g(3),u(),d(4,"div",77)(5,"textarea",78),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(6,"div",79),Z(7,_S,5,7,"label",80,En),u(),d(9,"div",81)(10,"span",82),g(11),u(),d(12,"span",82),g(13),u(),d(14,"button",83),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggle(o.id))}),g(15),u()(),D(16,CS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(3);f(3),C(r+1),f(2),X("ngModel",n.question),w("ngModelOptions",Ne(7,Ka)),G(),f(2),Y(n.options),f(4),C(n.difficulty),f(2),C(n.bloom),f(2),T(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),E(o.revealed()[n.id]?16:-1)}}function DS(e,t){if(e&1){let n=B();d(0,"p",71),g(1," Reword anything on this tab. "),d(2,"strong"),g(3,"The correct answer is shared by every language"),u(),g(4),u(),Z(5,bS,17,8,"div",72,Ei),d(7,"div",73)(8,"button",74),N("click",function(){I(n);let o=v(2);return M(o.save())}),g(9),u()()}if(e&2){let n=v(2);f(4),T(" \u2014 tick it on the ",n.languageName(n.language())," tab and it changes here too. "),f(),Y(n.viewedQuestions()),f(3),w("disabled",n.saving()),f(),T(" ",n.saving()?"Saving\u2026":n.saved()?"\u2713 Saved":"Save edits"," ")}}function ES(e,t){if(e&1){let n=B();d(0,"label",84)(1,"input",92),N("change",function(){let o=I(n).$index,i=v().$implicit,s=v(3);return M(s.markCorrect(i,o))}),u(),d(2,"span",86),g(3),u(),d(4,"input",87),N("input",function(o){let i=I(n).$index,s=v().$implicit,a=v(3);return M(a.editOption(s,i,o.target.value))}),u()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(),i=o.$implicit,s=o.$index;le("correct",r===i.correctIndex),f(),w("name","correct-"+s)("checked",r===i.correctIndex),f(2),C("ABCDEF"[r]),f(),w("value",n)}}function wS(e,t){if(e&1){let n=B();d(0,"textarea",88),ee("ngModelChange",function(o){I(n);let i=v().$implicit;return re(i.explanation,o)||(i.explanation=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(4);return M(o.touched())}),u(),z(),d(1,"p",89),g(2),u()}if(e&2){let n=v().$implicit;X("ngModel",n.explanation),w("ngModelOptions",Ne(3,Ka)),G(),f(2),T("Source: ",n.sourceRef)}}function xS(e,t){if(e&1){let n=B();d(0,"div",90)(1,"div",75)(2,"span",76),g(3),u(),d(4,"div",77)(5,"textarea",78),ee("ngModelChange",function(o){let i=I(n).$implicit;return re(i.question,o)||(i.question=o),M(o)}),N("ngModelChange",function(){I(n);let o=v(3);return M(o.touched())}),u(),z(),d(6,"div",79),Z(7,ES,5,6,"label",80,En),u(),d(9,"div",81)(10,"span",82),g(11),u(),d(12,"span",82),g(13),u(),d(14,"button",83),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggle(o.id))}),g(15),u()(),D(16,wS,3,4),u()()()}if(e&2){let n=t.$implicit,r=t.$index,o=v(3);f(3),C(r+1),f(2),X("ngModel",n.question),w("ngModelOptions",Ne(7,Ka)),G(),f(2),Y(n.options),f(4),C(n.difficulty),f(2),C(n.bloom),f(2),T(" ",o.revealed()[n.id]?"Hide explanation":"Show explanation"," "),f(),E(o.revealed()[n.id]?16:-1)}}function SS(e,t){if(e&1){let n=B();Z(0,xS,17,8,"div",90,Ei),d(2,"div",73)(3,"button",74),N("click",function(){I(n);let o=v(2);return M(o.save())}),g(4),u(),d(5,"span",91),g(6,"Save before downloading so the export matches what you see."),u()()}if(e&2){let n=v(),r=v();Y(n.assessment.questions),f(3),w("disabled",r.saving()),f(),T(" ",r.saving()?"Saving\u2026":r.saved()?"\u2713 Saved":"Save edits"," ")}}function IS(e,t){e&1&&g(0," Every language is a sheet of its own in the same workbook. ")}function MS(e,t){if(e&1){let n=B();d(0,"section",5)(1,"div",6)(2,"span",7),g(3,"3"),u(),d(4,"h2",8),g(5,"Review questions"),u(),d(6,"span",57),g(7,"\u2014 edit anything, tick the correct option, then download"),u()(),d(8,"div",58)(9,"div")(10,"div",59),g(11),u(),d(12,"div",60),g(13),u()(),d(14,"div",61)(15,"button",62),N("click",function(){I(n);let o=v();return M(o.export("xlsx"))}),g(16," \u2B07 Excel"),D(17,dS,1,0),u(),d(18,"button",63),N("click",function(){I(n);let o=v();return M(o.export("csv"))}),g(19," \u2B07 CSV"),D(20,fS,1,1),u()()(),D(21,pS,2,1,"div",64),D(22,gS,4,2,"div",65),D(23,hS,2,0,"p",66),D(24,mS,2,1,"div",65),D(25,vS,3,0,"div",67),D(26,DS,10,3),D(27,SS,7,2),d(28,"p",68),g(29," Format: Question \xB7 Option 1\u2026N \xB7 Correct Answer. The Excel file has a second sheet with difficulty, Bloom's level, source reference and explanations. "),D(30,IS,1,0),u()()}if(e&2){let n=t,r=v();f(11),C(r.viewedTitle()),f(2),T("",r.viewedQuestions().length," questions"),f(4),E(r.hasTranslations()?17:-1),f(3),E(r.hasTranslations()?20:-1),f(),E(n.qcFixed?21:-1),f(),E(n.failedLanguages?.length?22:-1),f(),E(r.hasTranslations()?23:-1),f(),E(r.translationsStale()?24:-1),f(),E(r.resultLanguages().length>1?25:-1),f(),E(r.viewing()?26:-1),f(),E(r.viewing()?-1:27),f(3),E(r.resultLanguages().length>1?30:-1)}}var Qa=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}files=A([]);sources=A([]);reading=A(!1);generating=A(!1);result=A(null);error=A("");revealed=A({});languages=A([]);pastVideos=A([]);defaultLanguage=nt(void 0);defaultQuestionCount=nt(void 0);defaultDifficulty=nt(void 0);defaultTranslateInto=nt(void 0);assessmentReady=xn();seeded=!1;translateInto=A(new Set);busy=W(()=>this.generating()||this.reading());viewing=A("");stage=A("");serverProgress=A(null);elapsed=A(0);progressPct=W(()=>{let t=this.activeSecondaries().length?75:35,n=Math.min(95,Math.round(this.elapsed()/t*100)),r=this.serverProgress();return r===null?n:Math.min(99,Math.max(r,n))});stageTimers=[];runStages(){this.stopStages();let t=this.activeSecondaries().map(o=>this.languageName(o)),n=t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`,r=[[0,"Reading your material\u2026"],[4e3,"Writing your questions\u2026"],[22e3,"Checking each question against your material\u2026"]];t.length?(r.push([34e3,`Translating into ${n}\u2026`]),r.push([52e3,`Checking the ${n} wording\u2026`]),r.push([7e4,"Re-translating anything that came back wrong\u2026"]),r.push([95e3,"Almost there \u2014 finishing the last language\u2026"])):r.push([34e3,"Almost there\u2026"]);for(let[o,i]of r)this.stageTimers.push(setTimeout(()=>{this.generating()&&(this.stage.set(i),this.elapsed.update(s=>s))},o));this.stage.set(r[0][1]),this.elapsed.set(0),this.stageTimers.push(setInterval(()=>{this.generating()&&this.elapsed.update(o=>o+1)},1e3))}stopStages(){for(let t of this.stageTimers)clearTimeout(t),clearInterval(t);this.stageTimers=[],this.stage.set("")}links="";brief="";sourceJobId="";language=A("hi");numQuestions=10;numOptions=4;difficulty="mixed";bloom="mixed";optionCounts=[2,3,4,5,6];difficulties=[{id:"mixed",label:"Mixed (30% easy \xB7 45% medium \xB7 25% hard)"},{id:"easy",label:"Easy \u2014 direct recall"},{id:"medium",label:"Medium \u2014 comprehension"},{id:"hard",label:"Hard \u2014 close distractors"}];blooms=[{id:"mixed",label:"Mixed (remember \xB7 understand \xB7 apply)"},{id:"apply",label:"Application-oriented \u2014 field scenarios"},{id:"understand",label:"Understanding \u2014 explain why"},{id:"remember",label:"Recall \u2014 facts & definitions"}];constructor(){this.destroyRef.onDestroy(()=>{this.stopStages(),this.poll.stop()}),Ct(()=>{let t=this.defaultLanguage(),n=this.defaultQuestionCount(),r=this.defaultDifficulty(),o=this.defaultTranslateInto();this.seeded||(t&&this.language.set(t),n&&(this.numQuestions=n),r&&(this.difficulty=r),o&&this.translateInto.set(new Set(o.split(",").map(i=>i.trim()).filter(Boolean))),(t||n||r||o)&&(this.seeded=!0))}),this.api.languages().pipe(this.untilGone).subscribe({next:t=>{let n=Object.entries(t).map(([r,o])=>({code:r,name:o}));this.languages.set(n)},error:t=>{ue(t,"assessment"),this.languages.set([{code:"hi",name:"Hindi"},{code:"en",name:"English"}])}}),this.api.studioJobs().pipe(this.untilGone).subscribe({next:t=>this.pastVideos.set(t.filter(n=>n.plan)),error:t=>{ue(t,"assessment")}})}chooseFiles(t){this.files.set(Array.from(t.target.files??[]))}readSources(){!this.files().length&&!this.links.trim()||(this.error.set(""),this.reading.set(!0),this.api.readSources(this.files(),this.links,this.language()).pipe(this.untilGone).subscribe({next:t=>{let n=(t.sources||[]).map(r=>U(j({},r),{checked:!r.error}));this.sources.update(r=>[...r,...n]),this.reading.set(!1)},error:t=>{this.error.set(ue(t,"assessment")),this.reading.set(!1)}}))}get readySources(){return this.sources().filter(t=>!t.error&&t.checked)}toggleSource(t){t.error||(t.checked=!t.checked,this.sources.update(n=>[...n]))}generate(){!this.readySources.length&&!this.sourceJobId||(this.error.set(""),this.generating.set(!0),this.result.set(null),this.viewing.set(""),this.translationsStale.set(!1),this.serverProgress.set(null),this.runStages(),this.api.generateAssessment({language:this.language(),numQuestions:Number(this.numQuestions),numOptions:Number(this.numOptions),difficulty:this.difficulty,bloom:this.bloom,userPrompt:this.brief||void 0,translateInto:this.activeSecondaries(),sourceIds:this.readySources.map(t=>t.id).filter(Boolean),sourceJobId:this.sourceJobId||void 0}).pipe(this.untilGone).subscribe({next:({jobId:t})=>this.poll.start(t),error:t=>this.finishWith(ue(t,"assessment"))}))}poll=Iy({fetch:t=>this.api.assessmentJob(t).pipe(this.untilGone),onTick:t=>{typeof t.progress=="number"&&this.serverProgress.set(t.progress)},onDone:t=>{let n=t.assessment;this.result.set({jobId:t.id,assessment:n,failedLanguages:t.settings?.failedLanguages}),this.finishWith(""),this.assessmentReady.emit({jobId:t.id,questionCount:n?.questions?.length??0,language:this.language(),languages:Object.keys(n?.translations??{})})},onFailed:t=>this.finishWith(t)});finishWith(t){t&&this.error.set(t),this.generating.set(!1),this.stopStages()}toggle(t){this.revealed.update(n=>U(j({},n),{[t]:!n[t]}))}secondaryChoices=W(()=>this.languages().filter(t=>t.code!==this.language()));activeSecondaries=W(()=>[...this.translateInto()].filter(t=>t!==this.language()));toggleLanguage(t){this.translateInto.update(n=>{let r=new Set(n);return r.delete(t)||r.add(t),r})}plannedSummary=W(()=>{let t=this.activeSecondaries().map(r=>this.languageName(r));return t.length?`Also in ${t.length===1?t[0]:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`} \u2014 takes a little longer`:""});resultLanguages=W(()=>{let t=this.result()?.assessment?.translations??{};return[{code:"",name:this.languageName(this.language())},...Object.keys(t).map(n=>({code:n,name:this.languageName(n)}))]});viewedTitle=W(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.title:t?.title)??""});viewedQuestions=W(()=>{let t=this.result()?.assessment,n=this.viewing();return(n?t?.translations?.[n]?.questions:t?.questions)??[]});failedLanguageNames=W(()=>{let t=(this.result()?.failedLanguages??[]).map(n=>this.languageName(n.language));return t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`});viewedLanguageName=W(()=>this.languageName(this.viewing()||this.language()));languageName(t){return this.languages().find(n=>n.code===t)?.name??t}saving=A(!1);saved=A(!1);markCorrect(t,n){t.correctIndex=n;for(let r of Object.values(this.result()?.assessment?.translations??{})){let o=r.questions.find(i=>i.id===t.id);o&&(o.correctIndex=n)}this.saved.set(!1)}editOption(t,n,r){t.options[n]=r,this.touched()}editTranslatedOption(t,n,r){t.options[n]=r,this.saved.set(!1)}touched(){this.saved.set(!1),!this.viewing()&&this.hasTranslations()&&this.translationsStale.set(!0)}hasTranslations=W(()=>Object.keys(this.result()?.assessment?.translations??{}).length>0);translationsStale=A(!1);save(){let t=this.result();t&&(this.saving.set(!0),this.api.saveAssessment(t.jobId,t.assessment).pipe(this.untilGone).subscribe({next:()=>{this.saving.set(!1),this.saved.set(!0)},error:n=>{this.error.set(ue(n,"assessment")),this.saving.set(!1)}}))}export(t,n=t==="csv"?this.viewing():""){let r=this.result();r&&pr({feature:"assessment",lookup:this.api.exportUrl(r.jobId,t,n||void 0),fallbackHref:this.api.exportHref(r.jobId,t,n||void 0),onError:o=>this.error.set(o)})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-assessment"]],inputs:{defaultLanguage:[1,"defaultLanguage"],defaultQuestionCount:[1,"defaultQuestionCount"],defaultDifficulty:[1,"defaultDifficulty"],defaultTranslateInto:[1,"defaultTranslateInto"]},outputs:{assessmentReady:"assessmentReady"},decls:81,vars:31,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],["role","alert",1,"card","card-pad","err-box"],[1,"steps"],[1,"card","card-pad"],[1,"step-h"],[1,"step-n"],[1,"step-t"],[1,"step-lead"],[1,"src-cols"],["rows","3","placeholder",`Paste links here, one per line \u2014 Google Drive file/folder links, S3 links
15
15
  https://drive.google.com/file/d/\u2026
16
- https://bucket.s3.ap-south-1.amazonaws.com/\u2026`,1,"field",3,"ngModelChange","ngModel"],[1,"warn-note"],[1,"src-side"],[1,"btn","btn-ghost","pick"],["type","file","hidden","","multiple","","accept",".pdf,.docx,.txt,.md,.srt,.csv,.mp4,.mov,.mkv,.webm,.m4v,.mp3,.m4a,.wav,.aac",3,"change"],[1,"hint","ok"],[1,"btn","full",3,"click","disabled"],[1,"src-list"],[1,"cols"],["for","ab",1,"label"],["id","ab","rows","3","placeholder","e.g. focus on danger signs and referral decisions; use field-scenario questions with named beneficiaries",1,"field",3,"ngModelChange","ngModel"],["for","asrc",1,"label","mt"],["id","asrc",1,"field",3,"ngModelChange","ngModel"],["value",""],[3,"value"],[1,"side"],["for","alang",1,"label"],["id","alang",1,"field",3,"ngModelChange","ngModel"],["for","acount",1,"label","mt"],["id","acount","type","number","min","1","max","60",1,"field",3,"ngModelChange","ngModel"],["for","aopts",1,"label","mt"],["id","aopts",1,"field",3,"ngModelChange","ngModel"],[3,"ngValue"],["for","adiff",1,"label","mt"],["id","adiff",1,"field",3,"ngModelChange","ngModel"],["for","abloom",1,"label","mt"],["id","abloom",1,"field",3,"ngModelChange","ngModel"],[1,"btn","mt-lg",3,"click","disabled"],["title","Delete quiz?","message","This removes the quiz and any exports it wrote to storage. This cannot be undone.","confirmLabel","Delete quiz",3,"confirmed","cancelled","open","subject","busy"],[3,"bad","off"],["type","checkbox","title","include this source",3,"change","checked","disabled"],[1,"src-name"],[1,"chip","err"],[1,"mono","muted"],[1,"step-note"],[1,"q-head"],[1,"q-title"],[1,"muted","mono"],[1,"exports"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-ghost",3,"click"],["type","button",1,"btn","btn-ghost","btn-danger",3,"click","disabled"],[1,"qc-note"],[1,"q"],[1,"save-row"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"muted","save-hint"],[1,"muted","note"],[1,"q-top"],[1,"q-n","mono"],[1,"q-body"],["rows","2",1,"field","q-text-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-opts"],[1,"opt",3,"correct"],[1,"q-foot"],[1,"tag"],[1,"reveal",3,"click"],[1,"opt"],["type","radio","title","mark as correct",3,"change","name","checked"],[1,"q-letter","mono"],[1,"opt-text",3,"input","value"],["rows","2",1,"field","q-exp-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-src","mono"]],template:function(n,r){if(n&1&&(d(0,"p",0),p(1,"Assessment"),u(),d(2,"h1",1),p(3,"Turn source material into a question set"),u(),d(4,"p",2),p(5,"Files and links in, validated multiple-choice questions out, exportable to Excel or CSV."),u(),D(6,qx,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),p(11,"1"),u(),d(12,"h2",8),p(13,"Sources"),u()(),d(14,"p",9),p(15,"Files (PDF, Word, TXT, video, audio) and/or links, any mix. Videos are transcribed automatically."),u(),d(16,"div",10)(17,"div")(18,"textarea",11),te("ngModelChange",function(i){return ne(r.links,i)||(r.links=i),i}),u(),z(),d(19,"div",12),p(20," \u26A0 Drive links must be shared as "),d(21,"b"),p(22,'"Anyone with the link \u2013 Viewer"'),u(),p(23," \u2014 private links can't be read. "),u()(),d(24,"div",13)(25,"label",14)(26,"input",15),A("change",function(i){return r.chooseFiles(i)}),u(),p(27," \u{1F4CE} Choose files\u2026 "),u(),D(28,Zx,2,1,"div",16),d(29,"button",17),A("click",function(){return r.readSources()}),p(30),u()()(),D(31,Jx,3,0,"ul",18),u(),d(32,"section",5)(33,"div",6)(34,"span",7),p(35,"2"),u(),d(36,"h2",8),p(37,"Settings"),u()(),d(38,"div",19)(39,"div")(40,"label",20),p(41,"Instructions (optional) \u2014 focus areas, style, anything specific"),u(),d(42,"textarea",21),te("ngModelChange",function(i){return ne(r.brief,i)||(r.brief=i),i}),u(),z(),d(43,"label",22),p(44,"Also include a past video's script (optional)"),u(),d(45,"select",23),te("ngModelChange",function(i){return ne(r.sourceJobId,i)||(r.sourceJobId=i),i}),d(46,"option",24),p(47,"\u2014 no \u2014"),u(),J(48,Xx,2,2,"option",25,Ya),u(),z(),u(),d(50,"div",26)(51,"label",27),p(52,"Language"),u(),d(53,"select",28),te("ngModelChange",function(i){return ne(r.language,i)||(r.language=i),i}),J(54,eS,2,2,"option",25,Wx),u(),z(),d(56,"label",29),p(57,"Number of questions"),u(),d(58,"input",30),te("ngModelChange",function(i){return ne(r.numQuestions,i)||(r.numQuestions=i),i}),u(),z(),d(59,"label",31),p(60,"Options per question"),u(),d(61,"select",32),te("ngModelChange",function(i){return ne(r.numOptions,i)||(r.numOptions=i),i}),J(62,tS,2,2,"option",33,Xo),u(),z(),d(64,"label",34),p(65,"Difficulty"),u(),d(66,"select",35),te("ngModelChange",function(i){return ne(r.difficulty,i)||(r.difficulty=i),i}),J(67,nS,2,2,"option",25,Ya),u(),z(),d(69,"label",36),p(70,"Bloom's level"),u(),d(71,"select",37),te("ngModelChange",function(i){return ne(r.bloom,i)||(r.bloom=i),i}),J(72,rS,2,2,"option",25,Ya),u(),z(),u()(),d(74,"button",38),A("click",function(){return r.generate()}),p(75),u()(),D(76,cS,31,6,"section",5),u(),d(77,"aa-confirm-dialog",39),A("confirmed",function(){return r.deleteQuiz.confirm()})("cancelled",function(){return r.deleteQuiz.cancel()}),u()),n&2){let o;h(6),E(r.error()?6:-1),h(12),ee("ngModel",r.links),G(),h(10),E(r.files().length?28:-1),h(),S("disabled",r.reading()||!r.files().length&&!r.links.trim()),h(),R(" ",r.reading()?"Reading\u2026":"Read sources"," "),h(),E(r.sources().length?31:-1),h(),ge("dim",!r.readySources.length&&!r.sourceJobId),h(10),ee("ngModel",r.brief),G(),h(3),ee("ngModel",r.sourceJobId),G(),h(3),X(r.pastVideos()),h(5),ee("ngModel",r.language),G(),h(),X(r.languages()),h(4),ee("ngModel",r.numQuestions),G(),h(3),ee("ngModel",r.numOptions),G(),h(),X(r.optionCounts),h(4),ee("ngModel",r.difficulty),G(),h(),X(r.difficulties),h(4),ee("ngModel",r.bloom),G(),h(),X(r.blooms),h(2),S("disabled",r.generating()||!r.readySources.length&&!r.sourceJobId),h(),R(" ",r.generating()?"Generating\u2026":"Generate questions"," "),h(),E((o=r.result())?76:-1,o),h(),S("open",r.deleteQuiz.open())("subject",r.result()?.assessment?.title??"")("busy",r.deleteQuiz.busy())}},dependencies:[wn,co,Ga,Wa,xn,Rd,ao,so,Ad,Nd,pr,Sn,li],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}',".opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.q-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.q-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.exports[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none;padding:8px 14px}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.q[_ngcontent-%COMP%]{padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.q[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.q-top[_ngcontent-%COMP%]{display:grid;grid-template-columns:30px 1fr;gap:12px}.q-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:12px;padding-top:2px}.q-text[_ngcontent-%COMP%]{margin:0 0 10px;font-weight:500}.q-opts[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:5px}.q-opts[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:10px;padding:7px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.q-letter[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%] .q-letter[_ngcontent-%COMP%]{color:inherit}.q-foot[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.tag[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--%NS%aastrika-muted);background:var(--%NS%aastrika-surface-2);padding:3px 8px;border-radius:999px}.reveal[_ngcontent-%COMP%]{margin-left:auto;background:none;border:0;color:var(--%NS%aastrika-gold-deep);font-size:12.5px;font-weight:600;cursor:pointer}.reveal[_ngcontent-%COMP%]:hover{text-decoration:underline}.q-exp[_ngcontent-%COMP%]{margin:10px 0 0;font-size:13px;color:var(--%NS%aastrika-ink-2)}.q-src[_ngcontent-%COMP%]{margin:4px 0 0;font-size:11.5px;color:var(--%NS%aastrika-muted)}@media(max-width:760px){.opts[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.step-lead[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted);margin:-8px 0 14px}.src-cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 220px;gap:16px;align-items:start}.src-side[_ngcontent-%COMP%]{display:grid;gap:8px}.pick[_ngcontent-%COMP%]{justify-content:center;cursor:pointer}.full[_ngcontent-%COMP%]{width:100%;justify-content:center}.warn-note[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:8px 11px;border-radius:8px;margin-top:8px}.hint[_ngcontent-%COMP%]{font-size:12px}.src-list[_ngcontent-%COMP%]{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:13px;padding:8px 11px;background:var(--%NS%aastrika-surface-2);border-radius:8px}.src-list[_ngcontent-%COMP%] li.bad[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg)}.src-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%], .mt[_ngcontent-%COMP%]{margin-top:14px}.qc-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:9px 12px;border-radius:8px;margin:14px 0 4px}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}@media(max-width:900px){.src-cols[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%]{grid-template-columns:1fr}}.q-text-edit[_ngcontent-%COMP%]{font-weight:500;margin-bottom:8px}.opt[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:6px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px;cursor:pointer}.opt.correct[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.opt[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold);cursor:pointer}.opt-text[_ngcontent-%COMP%]{flex:1;border:0;background:none;padding:2px 0;font:inherit;color:inherit;outline:none}.opt-text[_ngcontent-%COMP%]:focus{border-bottom:1px solid var(--%NS%aastrika-gold)}.q-exp-edit[_ngcontent-%COMP%]{margin-top:10px;font-size:13px}.save-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--%NS%aastrika-line)}.save-hint[_ngcontent-%COMP%]{font-size:12.5px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold)}.src-list[_ngcontent-%COMP%] li.off[_ngcontent-%COMP%]{opacity:.5}"],changeDetection:1})};var lS=(e,t)=>t.creator,Dy=(e,t)=>t.id;function uS(e,t){e&1&&(d(0,"p",3),p(1,"Loading\u2026"),u())}function dS(e,t){if(e&1&&(d(0,"div",4)(1,"p",3),p(2),u()()),e&2){let n=v();h(2),b(n.error())}}function fS(e,t){if(e&1){let n=W();d(0,"div",6),p(1," Showing: "),d(2,"b"),p(3),u(),d(4,"a",25),A("click",function(o){return I(n),v(3).clearFilter(),M(o.preventDefault())}),p(5,"\u2715 all users"),u()()}if(e&2){let n=v(3);h(3),b(n.selectedCreator())}}function pS(e,t){if(e&1){let n=W();d(0,"tr",26),A("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggleCreator(o.creator))}),d(1,"td")(2,"b"),p(3),u()(),d(4,"td",27),p(5),u(),d(6,"td",27),p(7),u(),d(8,"td",27),p(9),u(),d(10,"td",27),p(11),u(),d(12,"td",27)(13,"b"),p(14),u()(),d(15,"td",3),p(16),ut(17,"date"),u(),d(18,"td",28),p(19),u()()}if(e&2){let n=t.$implicit,r=v(3);ge("sel",r.selectedCreator()===n.creator),h(3),b(n.creator),h(2),b(n.videos),h(2),b(n.quizzes),h(2),R("$",n.videoSpendUsd),h(2),R("$",n.quizSpendUsd),h(3),R("$",n.spendUsd),h(2),b(n.lastActive?lr(17,10,n.lastActive,"d MMM yyyy"):"\u2014"),h(3),b(r.selectedCreator()===n.creator?"\u2713 selected":"view activity \u2192")}}function hS(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No activity recorded yet."),u()())}function gS(e,t){e&1&&(d(0,"span",3),p(1," est."),u())}function mS(e,t){if(e&1){let n=W();d(0,"button",33),A("click",function(){I(n);let o=v().$implicit,i=v(3);return M(i.watch(o.id))}),p(1,"\u25B6 view"),u()}}function yS(e,t){if(e&1){let n=W();d(0,"tr")(1,"td"),p(2),u(),d(3,"td"),p(4),u(),d(5,"td"),p(6),u(),d(7,"td")(8,"span"),p(9),u()(),d(10,"td",27),p(11),u(),d(12,"td",27),p(13),D(14,gS,2,0,"span",3),u(),d(15,"td",3),p(16),ut(17,"date"),u(),d(18,"td",30),D(19,mS,2,0,"button",31),d(20,"button",32),A("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),p(21," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);h(2),b(n.title),h(2),b(n.creator),h(2),b(n.videoType),h(2),Zr(r.pill(n.status)),h(),b(n.status),h(2),b(n.feedbackRounds||""),h(2),R("$",n.costUsd),h(),E(n.costEstimated?14:-1),h(2),b(n.createdAt?lr(17,12,n.createdAt,"d MMM yyyy"):"\u2014"),h(3),E(n.video?19:-1),h(),S("title","Delete "+n.title)}}function vS(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No videos for this user."),u()())}function _S(e,t){e&1&&(d(0,"span",3),p(1," est."),u())}function CS(e,t){if(e&1){let n=W();d(0,"tr")(1,"td"),p(2),u(),d(3,"td"),p(4),u(),d(5,"td",27),p(6),u(),d(7,"td"),p(8),u(),d(9,"td")(10,"span"),p(11),u()(),d(12,"td",27),p(13),D(14,_S,2,0,"span",3),u(),d(15,"td",3),p(16),ut(17,"date"),u(),d(18,"td",30)(19,"button",34),A("click",function(){let o=I(n).$implicit,i=v(3);return M(i.export(o.id))}),p(20,"\u2B07 export"),u(),d(21,"button",32),A("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),p(22," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);h(2),b(n.title),h(2),b(n.creator),h(2),b(n.questions),h(2),b(n.language),h(2),Zr(r.pill(n.status)),h(),b(n.status),h(2),R("$",n.costUsd),h(),E(n.costEstimated?14:-1),h(2),b(n.createdAt?lr(17,11,n.createdAt,"d MMM yyyy"):"\u2014"),h(5),S("title","Delete "+n.title)}}function bS(e,t){e&1&&(d(0,"tr")(1,"td",29),p(2,"No assessments yet."),u()())}function DS(e,t){if(e&1&&(d(0,"p",24),p(1),u()),e&2){let n=v();h(),ar(" Showing the ",n.items.length," most recent of ",n.page.total," items. Totals above cover all ",n.page.total,". ")}}function ES(e,t){if(e&1){let n=W();D(0,fS,6,1,"div",6),d(1,"div",7)(2,"div",8)(3,"span",9),p(4),u(),d(5,"span",10),p(6,"Videos"),u()(),d(7,"div",8)(8,"span",9),p(9),u(),d(10,"span",10),p(11,"Completed"),u()(),d(12,"div",8)(13,"span",9),p(14),u(),d(15,"span",10),p(16,"Assessments"),u()(),d(17,"div",8)(18,"span",9),p(19),u(),d(20,"span",10),p(21,"People"),u()(),d(22,"div",11)(23,"span",9),p(24),u(),d(25,"span",10),p(26,"Estimated spend"),u()()(),d(27,"div",12)(28,"h2",13),p(29,"Where the money went"),u(),d(30,"div",14),$e(31,"i",15)(32,"i",16),u(),d(33,"div",17)(34,"span"),$e(35,"i",18),p(36),u(),d(37,"span"),$e(38,"i",19),p(39),u()()(),d(40,"div",12)(41,"h2",13),p(42,"Users"),u(),d(43,"input",20),A("ngModelChange",function(o){I(n);let i=v(2);return M(i.search.set(o))}),u(),z(),d(44,"div",21)(45,"table")(46,"thead")(47,"tr")(48,"th"),p(49,"User"),u(),d(50,"th",22),p(51,"Videos"),u(),d(52,"th",22),p(53,"Assessments"),u(),d(54,"th",22),p(55,"Video spend"),u(),d(56,"th",22),p(57,"Assessment spend"),u(),d(58,"th",22),p(59,"Total spend"),u(),d(60,"th"),p(61,"Last active"),u(),$e(62,"th"),u()(),d(63,"tbody"),J(64,pS,20,13,"tr",23,lS,!1,hS,3,0,"tr"),u()()()(),d(67,"div",12)(68,"h2",13),p(69,"Videos"),u(),d(70,"div",21)(71,"table")(72,"thead")(73,"tr")(74,"th"),p(75,"Title"),u(),d(76,"th"),p(77,"Creator"),u(),d(78,"th"),p(79,"Type"),u(),d(80,"th"),p(81,"Status"),u(),d(82,"th",22),p(83,"Feedback rounds"),u(),d(84,"th",22),p(85,"Cost (USD)"),u(),d(86,"th"),p(87,"Date"),u(),$e(88,"th"),u()(),d(89,"tbody"),J(90,yS,22,15,"tr",null,Dy,!1,vS,3,0,"tr"),u()()()(),d(93,"div",12)(94,"h2",13),p(95,"Assessments"),u(),d(96,"div",21)(97,"table")(98,"thead")(99,"tr")(100,"th"),p(101,"Title"),u(),d(102,"th"),p(103,"Creator"),u(),d(104,"th",22),p(105,"Questions"),u(),d(106,"th"),p(107,"Language"),u(),d(108,"th"),p(109,"Status"),u(),d(110,"th",22),p(111,"Cost (USD)"),u(),d(112,"th"),p(113,"Date"),u(),$e(114,"th"),u()(),d(115,"tbody"),J(116,CS,23,14,"tr",null,Dy,!1,bS,3,0,"tr"),u()()()(),D(119,DS,2,3,"p",24)}if(e&2){let n=t,r=v(2);E(r.selectedCreator()?0:-1),h(4),b(n.totals.videos),h(5),b(n.totals.videosDone),h(5),b(n.totals.quizzes),h(5),b(n.totals.creators),h(5),R("$",n.totals.spendUsd),h(6),xt("aria-label","Videos "+r.split().video+"%, assessments "+r.split().assess+"%"),h(),sr("width",r.split().video,"%"),S("title","Videos: $"+n.totals.videoSpendUsd),h(),sr("width",r.split().assess,"%"),S("title","Assessments: $"+n.totals.quizSpendUsd),h(4),St(" Videos $",n.totals.videoSpendUsd," (",r.split().video,"%)"),h(3),St(" Assessments $",n.totals.quizSpendUsd," (",r.split().assess,"%)"),h(4),S("ngModel",r.search()),G(),h(21),X(r.creators()),h(26),X(r.videos()),h(26),X(r.assessments()),h(3),E(r.truncated()?119:-1)}}function wS(e,t){if(e&1&&D(0,ES,120,22),e&2){let n,r=v();E((n=r.report())?0:-1,n)}}var Ka=class e{api=C(Ut);destroyRef=C(ue);get untilGone(){return t=>t.pipe(to(this.destroyRef))}static PAGE_SIZE=500;constructor(){_t(()=>{let t=this.creatorFilter();t&&!this.seeded&&(this.selectedCreator.set(t),this.seeded=!0)})}seeded=!1;creatorFilter=dt(void 0);reportLoaded=En();report=F(null);error=F("");loading=F(!0);search=F("");selectedCreator=F(null);ngOnInit(){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:t=>{this.report.set(t),this.loading.set(!1),this.reportLoaded.emit({videos:t.totals.videos,assessments:t.totals.quizzes,users:t.totals.creators,spendUsd:t.totals.spendUsd})},error:t=>{this.error.set(le(t,"reports",{401:"Please sign in to view usage."},"Could not load usage")),this.loading.set(!1)}})}truncated=ae(()=>{let t=this.report();return t?t.page.total>t.items.length:!1});creators=ae(()=>{let t=this.search().toLowerCase();return(this.report()?.creators??[]).filter(n=>n.creator.toLowerCase().includes(t))});ofType(t){let n=this.selectedCreator();return(this.report()?.items??[]).filter(r=>r.type===t&&(!n||r.creator===n))}videos=ae(()=>this.ofType("video"));assessments=ae(()=>this.ofType("assessment"));split=ae(()=>{let t=this.report()?.totals;return!t||!t.spendUsd?{video:0,assess:0}:{video:Math.round(t.videoSpendUsd/t.spendUsd*100),assess:Math.round(t.quizSpendUsd/t.spendUsd*100)}});toggleCreator(t){this.selectedCreator.update(n=>n===t?null:t)}clearFilter(){this.selectedCreator.set(null)}export(t){hr({feature:"reports",lookup:this.api.exportUrl(t),fallbackHref:this.api.exportHref(t),onError:n=>this.error.set(n)})}watch(t){hr({feature:"reports",lookup:this.api.job(t).pipe(we(n=>({url:n.videoUrl??n.video??null,filename:""}))),fallbackHref:this.api.downloadVideoHref(t),onError:n=>this.error.set(n)})}deleteItem=lo({feature:"reports",request:t=>t.type==="video"?this.api.deleteVideo(t.id):this.api.deleteQuiz(t.id),onDeleted:()=>this.refresh(()=>{}),onError:t=>this.error.set(t),fallback:"Could not delete it",byStatus:{403:"You do not have permission to delete that."}});deleteLabel=ae(()=>this.deleteItem.pending()?.type==="video"?"Delete video":"Delete quiz");deleteMessage=ae(()=>{let t=this.deleteItem.pending();return t?`This removes the ${t.type==="video"?"video":"quiz"} and its stored files permanently. This cannot be undone.`:""});refresh(t){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:n=>{this.report.set(n),this.error.set(""),t()},error:n=>{this.error.set(le(n,"reports",{},"Deleted, but the page could not refresh")),t()}})}pill(t){return t==="done"?"chip":t==="failed"||t==="error"?"chip err":"chip warn"}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-reports"]],inputs:{creatorFilter:[1,"creatorFilter"]},outputs:{reportLoaded:"reportLoaded"},decls:10,vars:7,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],[1,"muted"],["role","alert",1,"card","card-pad"],[3,"confirmed","cancelled","open","title","subject","message","confirmLabel","busy"],[1,"filter-bar"],[1,"tiles"],[1,"card","tile"],[1,"tile-n","mono"],[1,"tile-l"],[1,"card","tile","accent"],[1,"card","card-pad","panel"],[1,"section-h"],["role","img",1,"split"],[1,"seg-v",3,"title"],[1,"seg-a",3,"title"],[1,"legend"],[1,"dot","v"],[1,"dot","a"],["placeholder","Search user\u2026",1,"field","search",3,"ngModelChange","ngModel"],[1,"tw"],[1,"num"],[1,"clickable",3,"sel"],[1,"sources","mono"],["href","#",3,"click"],[1,"clickable",3,"click"],[1,"num","mono"],[1,"act"],["colspan","8",1,"muted"],[1,"row-actions"],["type","button","title","View video",1,"act-btn"],["type","button",1,"act-btn","danger",3,"click","title"],["type","button","title","View video",1,"act-btn",3,"click"],["type","button","title","Download as Excel",1,"act-btn",3,"click"]],template:function(n,r){n&1&&(d(0,"p",0),p(1,"Usage"),u(),d(2,"h1",1),p(3,"Usage & spend"),u(),d(4,"p",2),p(5,"Aggregated across Studio and Assessment. Spend is estimated from provider rates, not billed amounts."),u(),D(6,uS,2,0,"p",3)(7,dS,3,1,"div",4)(8,wS,1,1),d(9,"aa-confirm-dialog",5),A("confirmed",function(){return r.deleteItem.confirm()})("cancelled",function(){return r.deleteItem.cancel()}),u()),n&2&&(h(6),E(r.loading()?6:r.error()?7:8),h(3),S("open",r.deleteItem.open())("title",r.deleteLabel()+"?")("subject",r.deleteItem.pending()?.title??"")("message",r.deleteMessage())("confirmLabel",r.deleteLabel())("busy",r.deleteItem.busy()))},dependencies:[wn,co,xn,so,pr,Sn,Ju],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}',".tiles[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:22px}.tile[_ngcontent-%COMP%]{padding:20px 22px;display:flex;flex-direction:column;gap:4px}.tile-n[_ngcontent-%COMP%]{font-size:26px;font-weight:700;line-height:1.1}.tile-l[_ngcontent-%COMP%]{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.tile.accent[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:transparent}.tile.accent[_ngcontent-%COMP%] .tile-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep)}.section-h[_ngcontent-%COMP%]{font-size:15px;margin-bottom:14px}.tw[_ngcontent-%COMP%]{overflow-x:auto}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13.5px}th[_ngcontent-%COMP%]{text-align:left;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);font-weight:600;padding:9px 14px;border-bottom:1px solid var(--%NS%aastrika-line);white-space:nowrap}td[_ngcontent-%COMP%]{padding:11px 14px;border-bottom:1px solid var(--%NS%aastrika-line)}tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}.num[_ngcontent-%COMP%]{text-align:right}.panel[_ngcontent-%COMP%]{margin-bottom:18px}.filter-bar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;background:var(--%NS%aastrika-gold-soft);border:1.5px solid var(--%NS%aastrika-gold);border-radius:999px;padding:6px 16px;font-size:13px;color:var(--%NS%aastrika-gold-deep)}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);text-decoration:none}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.split[_ngcontent-%COMP%]{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--%NS%aastrika-surface-2)}.split[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%}.seg-v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.seg-a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.legend[_ngcontent-%COMP%]{display:flex;gap:20px;margin-top:10px;font-size:12.5px;color:var(--%NS%aastrika-muted)}.dot[_ngcontent-%COMP%]{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.dot.v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.dot.a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.search[_ngcontent-%COMP%]{max-width:320px;margin-bottom:12px}tr.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.clickable[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface-2)}tr.sel[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft)}.act[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-gold-deep);white-space:nowrap}.sources[_ngcontent-%COMP%]{font-size:11.5px;color:var(--%NS%aastrika-muted);margin-top:4px}.row-actions[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;white-space:nowrap}.act-btn[_ngcontent-%COMP%]{font:inherit;font-size:12px;line-height:1;padding:5px 9px;border:1px solid var(--%NS%aastrika-line-2);border-radius:6px;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);text-decoration:none;cursor:pointer}.act-btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.act-btn.danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.act-btn.danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.act-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:1})};var xS=[{tag:"aastrika-content-studio",component:Za},{tag:"aastrika-assessment",component:Qa},{tag:"aastrika-reports",component:Ka}],I3=typeof document>"u"?Promise.resolve(null):ad({providers:[Hu(),pd(gd(),hd([Pm])),{provide:Xr,useValue:jm}]}).then(e=>{for(let t of xS)Hm(t,e.injector);return e});export{ME as configure,I3 as ready};
16
+ https://bucket.s3.ap-south-1.amazonaws.com/\u2026`,1,"field",3,"ngModelChange","ngModel","disabled"],[1,"warn-note"],[1,"src-side"],[1,"btn","btn-ghost","pick"],["type","file","hidden","","multiple","","accept",".pdf,.docx,.txt,.md,.srt,.csv,.mp4,.mov,.mkv,.webm,.m4v,.mp3,.m4a,.wav,.aac",3,"change","disabled"],[1,"hint","ok"],[1,"btn","full",3,"click","disabled"],[1,"src-list"],[1,"cols"],["for","ab",1,"label"],["id","ab","rows","3","placeholder","e.g. focus on danger signs and referral decisions; use field-scenario questions with named beneficiaries",1,"field",3,"ngModelChange","ngModel","disabled"],["for","asrc",1,"label","mt"],["id","asrc",1,"field",3,"ngModelChange","ngModel","disabled"],["value",""],[3,"value"],[1,"side"],["for","alang",1,"label"],["id","alang",1,"field",3,"ngModelChange","ngModel","disabled"],["for","acount",1,"label","mt"],["id","acount","type","number","min","1","max","60",1,"field",3,"ngModelChange","ngModel","disabled"],["for","aopts",1,"label","mt"],["id","aopts",1,"field",3,"ngModelChange","ngModel","disabled"],[3,"ngValue"],["for","adiff",1,"label","mt"],["id","adiff",1,"field",3,"ngModelChange","ngModel","disabled"],["for","abloom",1,"label","mt"],["id","abloom",1,"field",3,"ngModelChange","ngModel","disabled"],[1,"langs","mt-lg"],[1,"gen-row","mt-lg"],[1,"btn",3,"click","disabled"],[1,"progress"],[1,"hint"],[3,"bad","off"],["type","checkbox","title","include this source",3,"change","checked","disabled"],[1,"src-name"],[1,"chip","err"],[1,"mono","muted"],[1,"lang-chips"],[1,"lang-chip",3,"on"],[1,"lang-chip"],["type","checkbox",3,"change","checked","disabled"],[1,"progress-line"],[1,"spin"],[1,"mono","progress-time"],[1,"progress-track"],[1,"progress-fill"],[1,"step-note"],[1,"q-head"],[1,"q-title"],[1,"muted","mono"],[1,"exports"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-ghost",3,"click"],[1,"qc-note"],[1,"qc-note","warn"],[1,"hint","export-note"],["role","tablist",1,"lang-tabs"],[1,"muted","note"],["type","button","role","tab",1,"lang-tab",3,"on"],["type","button","role","tab",1,"lang-tab",3,"click"],[1,"hint","lang-note"],[1,"q","q-locked"],[1,"save-row"],[1,"btn","btn-ghost",3,"click","disabled"],[1,"q-top"],[1,"q-n","mono"],[1,"q-body"],["rows","2",1,"field","q-text-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-opts"],[1,"opt",3,"correct"],[1,"q-foot"],[1,"tag"],[1,"reveal",3,"click"],[1,"opt"],["type","radio","disabled","",3,"checked","title"],[1,"q-letter","mono"],[1,"opt-text",3,"input","value"],["rows","2",1,"field","q-exp-edit",3,"ngModelChange","ngModel","ngModelOptions"],[1,"q-src","mono"],[1,"q"],[1,"muted","save-hint"],["type","radio","title","mark as correct",3,"change","name","checked"]],template:function(n,r){if(n&1&&(d(0,"p",0),g(1,"Assessment"),u(),d(2,"h1",1),g(3,"Create a assessment from your training material"),u(),d(4,"p",2),g(5,"Upload documents or paste links, and get multiple-choice questions you can review, translate and download."),u(),D(6,Qx,2,1,"div",3),d(7,"div",4)(8,"section",5)(9,"div",6)(10,"span",7),g(11,"1"),u(),d(12,"h2",8),g(13,"Your material"),u()(),d(14,"p",9),g(15,"Add files (PDF, Word, text, video or audio) and links \u2014 any mix. Videos and audio are written out for you."),u(),d(16,"div",10)(17,"div")(18,"textarea",11),ee("ngModelChange",function(i){return re(r.links,i)||(r.links=i),i}),u(),z(),d(19,"div",12),g(20," \u26A0 Drive links must be shared as "),d(21,"b"),g(22,'"Anyone with the link \u2013 Viewer"'),u(),g(23," \u2014 private links can't be read. "),u()(),d(24,"div",13)(25,"label",14)(26,"input",15),N("change",function(i){return r.chooseFiles(i)}),u(),g(27," \u{1F4CE} Choose files\u2026 "),u(),D(28,Kx,2,1,"div",16),d(29,"button",17),N("click",function(){return r.readSources()}),g(30),u()()(),D(31,tS,3,0,"ul",18),u(),d(32,"section",5)(33,"div",6)(34,"span",7),g(35,"2"),u(),d(36,"h2",8),g(37,"Settings"),u()(),d(38,"div",19)(39,"div")(40,"label",20),g(41,"Instructions (optional) \u2014 focus areas, style, anything specific"),u(),d(42,"textarea",21),ee("ngModelChange",function(i){return re(r.brief,i)||(r.brief=i),i}),u(),z(),d(43,"label",22),g(44,"Also include a past video's script (optional)"),u(),d(45,"select",23),ee("ngModelChange",function(i){return re(r.sourceJobId,i)||(r.sourceJobId=i),i}),d(46,"option",24),g(47,"\u2014 no \u2014"),u(),Z(48,nS,2,2,"option",25,Ei),u(),z(),u(),d(50,"div",26)(51,"label",27),g(52,"Language"),u(),d(53,"select",28),N("ngModelChange",function(i){return r.language.set(i)}),Z(54,rS,2,2,"option",25,Vd),u(),z(),d(56,"label",29),g(57,"Number of questions"),u(),d(58,"input",30),ee("ngModelChange",function(i){return re(r.numQuestions,i)||(r.numQuestions=i),i}),u(),z(),d(59,"label",31),g(60,"Options per question"),u(),d(61,"select",32),ee("ngModelChange",function(i){return re(r.numOptions,i)||(r.numOptions=i),i}),Z(62,oS,2,2,"option",33,Jo),u(),z(),d(64,"label",34),g(65,"Difficulty"),u(),d(66,"select",35),ee("ngModelChange",function(i){return re(r.difficulty,i)||(r.difficulty=i),i}),Z(67,iS,2,2,"option",25,Ei),u(),z(),d(69,"label",36),g(70,"Bloom's level"),u(),d(71,"select",37),ee("ngModelChange",function(i){return re(r.bloom,i)||(r.bloom=i),i}),Z(72,sS,2,2,"option",25,Ei),u(),z(),u()(),D(74,lS,11,0,"fieldset",38),d(75,"div",39)(76,"button",40),N("click",function(){return r.generate()}),g(77),u(),D(78,cS,8,4,"span",41)(79,uS,2,1,"span",42),u()(),D(80,MS,31,12,"section",5),u()),n&2){let o;f(6),E(r.error()?6:-1),f(12),X("ngModel",r.links),w("disabled",r.busy()),G(),f(7),le("is-disabled",r.busy()),f(),w("disabled",r.busy()),f(2),E(r.files().length?28:-1),f(),w("disabled",r.busy()||!r.files().length&&!r.links.trim()),f(),T(" ",r.reading()?"Reading\u2026":"Read sources"," "),f(),E(r.sources().length?31:-1),f(),le("dim",!r.readySources.length&&!r.sourceJobId),f(10),X("ngModel",r.brief),w("disabled",r.generating()),G(),f(3),X("ngModel",r.sourceJobId),w("disabled",r.generating()),G(),f(3),Y(r.pastVideos()),f(5),w("ngModel",r.language())("disabled",r.generating()),G(),f(),Y(r.languages()),f(4),X("ngModel",r.numQuestions),w("disabled",r.generating()),G(),f(3),X("ngModel",r.numOptions),w("disabled",r.generating()),G(),f(),Y(r.optionCounts),f(4),X("ngModel",r.difficulty),w("disabled",r.generating()),G(),f(),Y(r.difficulties),f(4),X("ngModel",r.bloom),w("disabled",r.generating()),G(),f(),Y(r.blooms),f(2),E(r.secondaryChoices().length?74:-1),f(2),w("disabled",r.generating()||!r.readySources.length&&!r.sourceJobId),f(),T(" ",r.generating()?"Generating\u2026":"Generate questions"," "),f(),E(r.generating()?78:r.translateInto().size?79:-1),f(2),E((o=r.result())?80:-1,o)}},dependencies:[Sn,ao,Ga,Wa,In,Fd,so,io,kd,Od,fr,li],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}',".opts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.q-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--%NS%aastrika-line)}.q-title[_ngcontent-%COMP%]{font-size:17px;font-weight:700}.exports[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none;padding:8px 14px}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.exports[_ngcontent-%COMP%] .btn-danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.q[_ngcontent-%COMP%]{padding:16px 0;border-bottom:1px solid var(--%NS%aastrika-line)}.q[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.q-top[_ngcontent-%COMP%]{display:grid;grid-template-columns:30px 1fr;gap:12px}.q-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:12px;padding-top:2px}.q-text[_ngcontent-%COMP%]{margin:0 0 10px;font-weight:500}.q-opts[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:grid;gap:5px}.q-opts[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:10px;padding:7px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.q-letter[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.q-opts[_ngcontent-%COMP%] li.right[_ngcontent-%COMP%] .q-letter[_ngcontent-%COMP%]{color:inherit}.q-foot[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.tag[_ngcontent-%COMP%]{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--%NS%aastrika-muted);background:var(--%NS%aastrika-surface-2);padding:3px 8px;border-radius:999px}.reveal[_ngcontent-%COMP%]{margin-left:auto;background:none;border:0;color:var(--%NS%aastrika-gold-deep);font-size:12.5px;font-weight:600;cursor:pointer}.reveal[_ngcontent-%COMP%]:hover{text-decoration:underline}.q-exp[_ngcontent-%COMP%]{margin:10px 0 0;font-size:13px;color:var(--%NS%aastrika-ink-2)}.q-src[_ngcontent-%COMP%]{margin:4px 0 0;font-size:11.5px;color:var(--%NS%aastrika-muted)}@media(max-width:760px){.opts[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.step-lead[_ngcontent-%COMP%]{font-size:13px;color:var(--%NS%aastrika-muted);margin:-8px 0 14px}.src-cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 220px;gap:16px;align-items:start}.src-side[_ngcontent-%COMP%]{display:grid;gap:8px}.pick[_ngcontent-%COMP%]{justify-content:center;cursor:pointer}.full[_ngcontent-%COMP%]{width:100%;justify-content:center}.warn-note[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:8px 11px;border-radius:8px;margin-top:8px}.hint[_ngcontent-%COMP%]{font-size:12px}.src-list[_ngcontent-%COMP%]{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:6px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:13px;padding:8px 11px;background:var(--%NS%aastrika-surface-2);border-radius:8px}.src-list[_ngcontent-%COMP%] li.bad[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg)}.src-name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cols[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}.side[_ngcontent-%COMP%] .mt[_ngcontent-%COMP%], .mt[_ngcontent-%COMP%]{margin-top:14px}.qc-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg);padding:9px 12px;border-radius:8px;margin:14px 0 4px}.exports[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{text-decoration:none}@media(max-width:900px){.src-cols[_ngcontent-%COMP%], .cols[_ngcontent-%COMP%]{grid-template-columns:1fr}}.q-text-edit[_ngcontent-%COMP%]{font-weight:500;margin-bottom:8px}.opt[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:6px 11px;border-radius:8px;background:var(--%NS%aastrika-surface-2);font-size:13.5px;cursor:pointer}.opt.correct[_ngcontent-%COMP%]{background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg);font-weight:600}.opt[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold);cursor:pointer}.opt-text[_ngcontent-%COMP%]{flex:1;border:0;background:none;padding:2px 0;font:inherit;color:inherit;outline:none}.opt-text[_ngcontent-%COMP%]:focus{border-bottom:1px solid var(--%NS%aastrika-gold)}.q-exp-edit[_ngcontent-%COMP%]{margin-top:10px;font-size:13px}.save-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--%NS%aastrika-line)}.save-hint[_ngcontent-%COMP%]{font-size:12.5px}.src-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{width:auto;margin:0;accent-color:var(--%NS%aastrika-gold)}.src-list[_ngcontent-%COMP%] li.off[_ngcontent-%COMP%]{opacity:.5}.langs[_ngcontent-%COMP%]{border:1px solid var(--%NS%aastrika-line);border-radius:10px;padding:14px 16px;margin-top:18px;background:var(--%NS%aastrika-surface-2)}.langs[_ngcontent-%COMP%] legend[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);padding:0 6px}.lang-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.lang-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--%NS%aastrika-line);border-radius:999px;background:var(--%NS%aastrika-surface);font-size:13px;line-height:1;color:var(--%NS%aastrika-fg);cursor:pointer;transition:border-color .12s,background .12s;-webkit-user-select:none;user-select:none}.lang-chip[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold)}.lang-chip[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0;cursor:pointer;accent-color:var(--%NS%aastrika-gold-deep)}.lang-chip.on[_ngcontent-%COMP%]{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);font-weight:600}.lang-chip[_ngcontent-%COMP%]:has(input:disabled){opacity:.5;cursor:default}.lang-chip[_ngcontent-%COMP%]:focus-within{outline:2px solid var(--%NS%aastrika-gold);outline-offset:2px}.langs[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{margin:10px 0 0}.ml[_ngcontent-%COMP%]{margin-left:12px}.lang-tabs[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--%NS%aastrika-line);margin:18px 0 14px}.lang-tab[_ngcontent-%COMP%]{padding:9px 16px;border:0;border-bottom:2px solid transparent;background:none;cursor:pointer;font:inherit;font-size:13.5px;color:var(--%NS%aastrika-muted)}.lang-tab[_ngcontent-%COMP%]:hover{color:var(--%NS%aastrika-fg)}.lang-tab.on[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);border-bottom-color:var(--%NS%aastrika-gold);font-weight:600}.lang-tab[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--%NS%aastrika-gold);outline-offset:-2px}.q-locked[_ngcontent-%COMP%] .opt[_ngcontent-%COMP%]{cursor:default}.q-locked[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:disabled{opacity:.45}.qc-note.warn[_ngcontent-%COMP%]{border-left-color:var(--%NS%aastrika-warn-fg);background:var(--%NS%aastrika-warn-bg)}.spin[_ngcontent-%COMP%]{display:inline-block;width:11px;height:11px;margin-right:7px;vertical-align:-1px;border:2px solid var(--%NS%aastrika-line);border-top-color:var(--%NS%aastrika-gold);border-radius:50%;animation:_ngcontent-%COMP%_aa-spin .7s linear infinite}@keyframes _ngcontent-%COMP%_aa-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin[_ngcontent-%COMP%]{animation:none;border-top-color:var(--%NS%aastrika-line)}}.field[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.pick.is-disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.export-note[_ngcontent-%COMP%]{margin:10px 0 0}.lang-note[_ngcontent-%COMP%]{margin:0 0 16px;padding:10px 14px;border-radius:8px;background:var(--%NS%aastrika-surface-2)}.progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:9px;flex:1 1 280px;max-width:460px;padding:13px 16px;border:1px solid var(--%NS%aastrika-gold-soft);border-radius:12px;background:color-mix(in srgb,var(--%NS%aastrika-gold-soft) 30%,var(--%NS%aastrika-surface))}.progress-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--%NS%aastrika-gold-deep)}.progress-time[_ngcontent-%COMP%]{margin-left:auto;font-size:12.5px;font-weight:500;color:var(--%NS%aastrika-gold-deep);opacity:.7}.progress-track[_ngcontent-%COMP%]{height:6px;border-radius:999px;background:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 13%,transparent);overflow:hidden}.progress-fill[_ngcontent-%COMP%]{display:block;height:100%;border-radius:999px;background:var(--%NS%aastrika-gold-deep);transition:width .9s linear}.progress[_ngcontent-%COMP%] .spin[_ngcontent-%COMP%]{width:13px;height:13px;margin:0;flex:none;border-width:2px;border-color:color-mix(in srgb,var(--%NS%aastrika-gold-deep) 22%,transparent);border-top-color:var(--%NS%aastrika-gold-deep)}.gen-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.gen-row[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{flex:none}.btn[_ngcontent-%COMP%]:disabled{opacity:.92}@media(prefers-reduced-motion:reduce){.progress-fill[_ngcontent-%COMP%]{transition:none}}"],changeDetection:1})};var TS=(e,t)=>t.creator,My=(e,t)=>t.id;function NS(e,t){e&1&&(d(0,"p",3),g(1,"Loading\u2026"),u())}function AS(e,t){if(e&1&&(d(0,"div",4)(1,"p",3),g(2),u()()),e&2){let n=v();f(2),C(n.error())}}function OS(e,t){if(e&1){let n=B();d(0,"div",6),g(1," Showing: "),d(2,"b"),g(3),u(),d(4,"a",25),N("click",function(o){return I(n),v(3).clearFilter(),M(o.preventDefault())}),g(5,"\u2715 all users"),u()()}if(e&2){let n=v(3);f(3),C(n.selectedCreator())}}function kS(e,t){if(e&1){let n=B();d(0,"tr",26),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.toggleCreator(o.creator))}),d(1,"td")(2,"b"),g(3),u()(),d(4,"td",27),g(5),u(),d(6,"td",27),g(7),u(),d(8,"td",27),g(9),u(),d(10,"td",27),g(11),u(),d(12,"td",27)(13,"b"),g(14),u()(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",28),g(19),u()()}if(e&2){let n=t.$implicit,r=v(3);le("sel",r.selectedCreator()===n.creator),f(3),C(n.creator),f(2),C(n.videos),f(2),C(n.quizzes),f(2),T("$",n.videoSpendUsd),f(2),T("$",n.quizSpendUsd),f(3),T("$",n.spendUsd),f(2),C(n.lastActive?lr(17,10,n.lastActive,"d MMM yyyy"):"\u2014"),f(3),C(r.selectedCreator()===n.creator?"\u2713 selected":"view activity \u2192")}}function RS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No activity recorded yet."),u()())}function PS(e,t){e&1&&(d(0,"span",3),g(1," est."),u())}function FS(e,t){if(e&1){let n=B();d(0,"button",33),N("click",function(){I(n);let o=v().$implicit,i=v(3);return M(i.watch(o.id))}),g(1,"\u25B6 view"),u()}}function LS(e,t){if(e&1){let n=B();d(0,"tr")(1,"td"),g(2),u(),d(3,"td"),g(4),u(),d(5,"td"),g(6),u(),d(7,"td")(8,"span"),g(9),u()(),d(10,"td",27),g(11),u(),d(12,"td",27),g(13),D(14,PS,2,0,"span",3),u(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",30),D(19,FS,2,0,"button",31),d(20,"button",32),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),g(21," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);f(2),C(n.title),f(2),C(n.creator),f(2),C(n.videoType),f(2),qr(r.pill(n.status)),f(),C(n.status),f(2),C(n.feedbackRounds||""),f(2),T("$",n.costUsd),f(),E(n.costEstimated?14:-1),f(2),C(n.createdAt?lr(17,12,n.createdAt,"d MMM yyyy"):"\u2014"),f(3),E(n.video?19:-1),f(),w("title","Delete "+n.title)}}function VS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No videos for this user."),u()())}function jS(e,t){e&1&&(d(0,"span",3),g(1," est."),u())}function BS(e,t){if(e&1){let n=B();d(0,"tr")(1,"td"),g(2),u(),d(3,"td"),g(4),u(),d(5,"td",27),g(6),u(),d(7,"td"),g(8),u(),d(9,"td")(10,"span"),g(11),u()(),d(12,"td",27),g(13),D(14,jS,2,0,"span",3),u(),d(15,"td",3),g(16),ft(17,"date"),u(),d(18,"td",30)(19,"button",34),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.export(o.id))}),g(20,"\u2B07 export"),u(),d(21,"button",32),N("click",function(){let o=I(n).$implicit,i=v(3);return M(i.deleteItem.ask(o))}),g(22," \u{1F5D1} delete "),u()()()}if(e&2){let n=t.$implicit,r=v(3);f(2),C(n.title),f(2),C(n.creator),f(2),C(n.questions),f(2),C(r.languagesOf(n)),f(2),qr(r.pill(n.status)),f(),C(n.status),f(2),T("$",n.costUsd),f(),E(n.costEstimated?14:-1),f(2),C(n.createdAt?lr(17,11,n.createdAt,"d MMM yyyy"):"\u2014"),f(5),w("title","Delete "+n.title)}}function HS(e,t){e&1&&(d(0,"tr")(1,"td",29),g(2,"No assessments yet."),u()())}function US(e,t){if(e&1&&(d(0,"p",24),g(1),u()),e&2){let n=v();f(),sr(" Showing the ",n.items.length," most recent of ",n.page.total," items. Totals above cover all ",n.page.total,". ")}}function $S(e,t){if(e&1){let n=B();D(0,OS,6,1,"div",6),d(1,"div",7)(2,"div",8)(3,"span",9),g(4),u(),d(5,"span",10),g(6,"Videos"),u()(),d(7,"div",8)(8,"span",9),g(9),u(),d(10,"span",10),g(11,"Completed"),u()(),d(12,"div",8)(13,"span",9),g(14),u(),d(15,"span",10),g(16,"Assessments"),u()(),d(17,"div",8)(18,"span",9),g(19),u(),d(20,"span",10),g(21,"People"),u()(),d(22,"div",11)(23,"span",9),g(24),u(),d(25,"span",10),g(26,"Estimated spend"),u()()(),d(27,"div",12)(28,"h2",13),g(29,"Where the money went"),u(),d(30,"div",14),Ce(31,"i",15)(32,"i",16),u(),d(33,"div",17)(34,"span"),Ce(35,"i",18),g(36),u(),d(37,"span"),Ce(38,"i",19),g(39),u()()(),d(40,"div",12)(41,"h2",13),g(42,"Users"),u(),d(43,"input",20),N("ngModelChange",function(o){I(n);let i=v(2);return M(i.search.set(o))}),u(),z(),d(44,"div",21)(45,"table")(46,"thead")(47,"tr")(48,"th"),g(49,"User"),u(),d(50,"th",22),g(51,"Videos"),u(),d(52,"th",22),g(53,"Assessments"),u(),d(54,"th",22),g(55,"Video spend"),u(),d(56,"th",22),g(57,"Assessment spend"),u(),d(58,"th",22),g(59,"Total spend"),u(),d(60,"th"),g(61,"Last active"),u(),Ce(62,"th"),u()(),d(63,"tbody"),Z(64,kS,20,13,"tr",23,TS,!1,RS,3,0,"tr"),u()()()(),d(67,"div",12)(68,"h2",13),g(69,"Videos"),u(),d(70,"div",21)(71,"table")(72,"thead")(73,"tr")(74,"th"),g(75,"Title"),u(),d(76,"th"),g(77,"Creator"),u(),d(78,"th"),g(79,"Type"),u(),d(80,"th"),g(81,"Status"),u(),d(82,"th",22),g(83,"Feedback rounds"),u(),d(84,"th",22),g(85,"Cost (USD)"),u(),d(86,"th"),g(87,"Date"),u(),Ce(88,"th"),u()(),d(89,"tbody"),Z(90,LS,22,15,"tr",null,My,!1,VS,3,0,"tr"),u()()()(),d(93,"div",12)(94,"h2",13),g(95,"Assessments"),u(),d(96,"div",21)(97,"table")(98,"thead")(99,"tr")(100,"th"),g(101,"Title"),u(),d(102,"th"),g(103,"Creator"),u(),d(104,"th",22),g(105,"Questions"),u(),d(106,"th"),g(107,"Language"),u(),d(108,"th"),g(109,"Status"),u(),d(110,"th",22),g(111,"Cost (USD)"),u(),d(112,"th"),g(113,"Date"),u(),Ce(114,"th"),u()(),d(115,"tbody"),Z(116,BS,23,14,"tr",null,My,!1,HS,3,0,"tr"),u()()()(),D(119,US,2,3,"p",24)}if(e&2){let n=t,r=v(2);E(r.selectedCreator()?0:-1),f(4),C(n.totals.videos),f(5),C(n.totals.videosDone),f(5),C(n.totals.quizzes),f(5),C(n.totals.creators),f(5),T("$",n.totals.spendUsd),f(6),tt("aria-label","Videos "+r.split().video+"%, assessments "+r.split().assess+"%"),f(),sn("width",r.split().video,"%"),w("title","Videos: $"+n.totals.videoSpendUsd),f(),sn("width",r.split().assess,"%"),w("title","Assessments: $"+n.totals.quizSpendUsd),f(4),St(" Videos $",n.totals.videoSpendUsd," (",r.split().video,"%)"),f(3),St(" Assessments $",n.totals.quizSpendUsd," (",r.split().assess,"%)"),f(4),w("ngModel",r.search()),G(),f(21),Y(r.creators()),f(26),Y(r.videos()),f(26),Y(r.assessments()),f(3),E(r.truncated()?119:-1)}}function zS(e,t){if(e&1&&D(0,$S,120,22),e&2){let n,r=v();E((n=r.report())?0:-1,n)}}var Ja=class e{api=b(Ut);destroyRef=b(de);get untilGone(){return t=>t.pipe(eo(this.destroyRef))}static PAGE_SIZE=500;constructor(){Ct(()=>{let t=this.creatorFilter();t&&!this.seeded&&(this.selectedCreator.set(t),this.seeded=!0)})}seeded=!1;creatorFilter=nt(void 0);reportLoaded=xn();report=A(null);error=A("");loading=A(!0);search=A("");selectedCreator=A(null);ngOnInit(){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:t=>{this.report.set(t),this.loading.set(!1),this.reportLoaded.emit({videos:t.totals.videos,assessments:t.totals.quizzes,users:t.totals.creators,spendUsd:t.totals.spendUsd})},error:t=>{this.error.set(ue(t,"reports",{401:"Please sign in to view usage."},"Could not load usage")),this.loading.set(!1)}})}truncated=W(()=>{let t=this.report();return t?t.page.total>t.items.length:!1});creators=W(()=>{let t=this.search().toLowerCase();return(this.report()?.creators??[]).filter(n=>n.creator.toLowerCase().includes(t))});ofType(t){let n=this.selectedCreator();return(this.report()?.items??[]).filter(r=>r.type===t&&(!n||r.creator===n))}videos=W(()=>this.ofType("video"));assessments=W(()=>this.ofType("assessment"));split=W(()=>{let t=this.report()?.totals;return!t||!t.spendUsd?{video:0,assess:0}:{video:Math.round(t.videoSpendUsd/t.spendUsd*100),assess:Math.round(t.quizSpendUsd/t.spendUsd*100)}});toggleCreator(t){this.selectedCreator.update(n=>n===t?null:t)}clearFilter(){this.selectedCreator.set(null)}export(t){pr({feature:"reports",lookup:this.api.exportUrl(t),fallbackHref:this.api.exportHref(t),onError:n=>this.error.set(n)})}watch(t){pr({feature:"reports",lookup:this.api.job(t).pipe(xe(n=>({url:n.videoUrl??n.video??null,filename:""}))),fallbackHref:this.api.downloadVideoHref(t),onError:n=>this.error.set(n)})}deleteItem=qa({feature:"reports",request:t=>t.type==="video"?this.api.deleteVideo(t.id):this.api.deleteQuiz(t.id),onDeleted:()=>this.refresh(()=>{}),onError:t=>this.error.set(t),fallback:"Could not delete it",byStatus:{403:"You do not have permission to delete that."}});deleteLabel=W(()=>this.deleteItem.pending()?.type==="video"?"Delete video":"Delete quiz");deleteMessage=W(()=>{let t=this.deleteItem.pending();return t?`This removes the ${t.type==="video"?"video":"quiz"} and its stored files permanently. This cannot be undone.`:""});refresh(t){this.api.usageReport({limit:e.PAGE_SIZE}).pipe(this.untilGone).subscribe({next:n=>{this.report.set(n),this.error.set(""),t()},error:n=>{this.error.set(ue(n,"reports",{},"Deleted, but the page could not refresh")),t()}})}pill(t){return t==="done"?"chip":t==="failed"||t==="error"?"chip err":"chip warn"}languagesOf(t){return[t.language,...t.translations??[]].filter(Boolean).join(", ")}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=rn({type:e,selectors:[["aa-reports"]],inputs:{creatorFilter:[1,"creatorFilter"]},outputs:{reportLoaded:"reportLoaded"},decls:10,vars:7,consts:[[1,"eyebrow"],[1,"page-title"],[1,"page-sub"],[1,"muted"],["role","alert",1,"card","card-pad"],[3,"confirmed","cancelled","open","title","subject","message","confirmLabel","busy"],[1,"filter-bar"],[1,"tiles"],[1,"card","tile"],[1,"tile-n","mono"],[1,"tile-l"],[1,"card","tile","accent"],[1,"card","card-pad","panel"],[1,"section-h"],["role","img",1,"split"],[1,"seg-v",3,"title"],[1,"seg-a",3,"title"],[1,"legend"],[1,"dot","v"],[1,"dot","a"],["placeholder","Search user\u2026",1,"field","search",3,"ngModelChange","ngModel"],[1,"tw"],[1,"num"],[1,"clickable",3,"sel"],[1,"sources","mono"],["href","#",3,"click"],[1,"clickable",3,"click"],[1,"num","mono"],[1,"act"],["colspan","8",1,"muted"],[1,"row-actions"],["type","button","title","View video",1,"act-btn"],["type","button",1,"act-btn","danger",3,"click","title"],["type","button","title","View video",1,"act-btn",3,"click"],["type","button","title","Download as Excel",1,"act-btn",3,"click"]],template:function(n,r){n&1&&(d(0,"p",0),g(1,"Usage"),u(),d(2,"h1",1),g(3,"Usage & spend"),u(),d(4,"p",2),g(5,"Aggregated across Studio and Assessment. Spend is estimated from provider rates, not billed amounts."),u(),D(6,NS,2,0,"p",3)(7,AS,3,1,"div",4)(8,zS,1,1),d(9,"aa-confirm-dialog",5),N("confirmed",function(){return r.deleteItem.confirm()})("cancelled",function(){return r.deleteItem.cancel()}),u()),n&2&&(f(6),E(r.loading()?6:r.error()?7:8),f(3),w("open",r.deleteItem.open())("title",r.deleteLabel()+"?")("subject",r.deleteItem.pending()?.title??"")("message",r.deleteMessage())("confirmLabel",r.deleteLabel())("busy",r.deleteItem.busy()))},dependencies:[Sn,ao,In,io,fr,lo,ed],styles:['[_ngcontent-%COMP%]:root, [_nghost-%COMP%]{--%NS%aastrika-cream: #F7EFE1;--%NS%aastrika-cream-soft: #FBF6EC;--%NS%aastrika-bg: #F7F7F5;--%NS%aastrika-surface: #FFFFFF;--%NS%aastrika-surface-2: #FAFAF8;--%NS%aastrika-ink: #1A1A1A;--%NS%aastrika-ink-2: #4A4A48;--%NS%aastrika-muted: #8A8A85;--%NS%aastrika-gold: #A98229;--%NS%aastrika-gold-soft: #F3E7CB;--%NS%aastrika-gold-deep: #7C5F16;--%NS%aastrika-line: #ECEAE4;--%NS%aastrika-line-2: #DFDCD2;--%NS%aastrika-ok-bg: #E6F4EA;--%NS%aastrika-ok-fg: #1E7A3C;--%NS%aastrika-warn-bg: #FDF1DC;--%NS%aastrika-warn-fg: #8A6410;--%NS%aastrika-err-bg: #FBE9E7;--%NS%aastrika-err-fg: #A3271F;--%NS%aastrika-r-sm: 8px;--%NS%aastrika-r: 12px;--%NS%aastrika-r-lg: 16px;--%NS%aastrika-rail: 264px;--%NS%aastrika-shadow: 0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.04);--%NS%aastrika-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--%NS%aastrika-mono: ui-monospace, SFMono-Regular, Menlo, monospace}','[_nghost-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%], [_nghost-%COMP%] *[_ngcontent-%COMP%]:before, [_nghost-%COMP%] *[_ngcontent-%COMP%]:after{box-sizing:border-box}.eyebrow[_ngcontent-%COMP%]{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--%NS%aastrika-gold-deep);margin-bottom:10px}.page-title[_ngcontent-%COMP%]{font-size:30px;line-height:1.15;margin-bottom:8px}.page-sub[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted);font-size:14.5px;margin-bottom:28px;max-width:62ch}.card[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);border:1px solid var(--%NS%aastrika-line);border-radius:var(--%NS%aastrika-r-lg);box-shadow:var(--%NS%aastrika-shadow)}.card-pad[_ngcontent-%COMP%]{padding:26px 28px}.label[_ngcontent-%COMP%]{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);margin-bottom:7px}.field[_ngcontent-%COMP%]{width:100%;padding:11px 14px;background:var(--%NS%aastrika-surface-2);border:1px solid var(--%NS%aastrika-line);border-radius:10px;outline:none}.field[_ngcontent-%COMP%]:focus{border-color:var(--%NS%aastrika-gold);box-shadow:0 0 0 3px var(--%NS%aastrika-gold-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:10px;border:1px solid transparent;background:var(--%NS%aastrika-gold);color:#fff;font-weight:600;cursor:pointer}.btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-gold-deep)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.btn-ghost[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);border-color:var(--%NS%aastrika-line-2)}.btn-ghost[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--%NS%aastrika-ok-bg);color:var(--%NS%aastrika-ok-fg)}.chip[_ngcontent-%COMP%]:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.chip.warn[_ngcontent-%COMP%]{background:var(--%NS%aastrika-warn-bg);color:var(--%NS%aastrika-warn-fg)}.chip.err[_ngcontent-%COMP%]{background:var(--%NS%aastrika-err-bg);color:var(--%NS%aastrika-err-fg)}.mono[_ngcontent-%COMP%]{font-family:var(--%NS%aastrika-mono);font-variant-numeric:tabular-nums}.muted[_ngcontent-%COMP%]{color:var(--%NS%aastrika-muted)}.steps[_ngcontent-%COMP%]{display:grid;gap:18px;max-width:860px}.step-h[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:18px}.step-n[_ngcontent-%COMP%]{width:26px;height:26px;border-radius:50%;background:var(--%NS%aastrika-gold-soft);color:var(--%NS%aastrika-gold-deep);display:grid;place-items:center;font-size:11px;font-weight:700}.step-t[_ngcontent-%COMP%]{font-size:15px}.step-note[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted);font-weight:400}.dim[_ngcontent-%COMP%]{opacity:.55}.err-box[_ngcontent-%COMP%]{color:var(--%NS%aastrika-err-fg);background:var(--%NS%aastrika-err-bg);border-color:transparent;margin-bottom:18px}.drop[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:5px;padding:34px;border:1.5px dashed var(--%NS%aastrika-line-2);border-radius:var(--%NS%aastrika-r);cursor:pointer;background:var(--%NS%aastrika-surface-2)}.drop[_ngcontent-%COMP%]:hover{border-color:var(--%NS%aastrika-gold);background:var(--%NS%aastrika-cream-soft)}.drop-main[_ngcontent-%COMP%]{font-weight:600}.drop-sub[_ngcontent-%COMP%]{font-size:12.5px;color:var(--%NS%aastrika-muted)}.picked[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.picked-name[_ngcontent-%COMP%]{font-weight:600}.picked-meta[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-muted)}.note[_ngcontent-%COMP%]{font-size:12.5px;margin-top:16px}.mt-lg[_ngcontent-%COMP%]{margin-top:22px}.hint.ok[_ngcontent-%COMP%]{color:var(--%NS%aastrika-ok-fg)}',".tiles[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:22px}.tile[_ngcontent-%COMP%]{padding:20px 22px;display:flex;flex-direction:column;gap:4px}.tile-n[_ngcontent-%COMP%]{font-size:26px;font-weight:700;line-height:1.1}.tile-l[_ngcontent-%COMP%]{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted)}.tile.accent[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft);border-color:transparent}.tile.accent[_ngcontent-%COMP%] .tile-n[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep)}.section-h[_ngcontent-%COMP%]{font-size:15px;margin-bottom:14px}.tw[_ngcontent-%COMP%]{overflow-x:auto}table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13.5px}th[_ngcontent-%COMP%]{text-align:left;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--%NS%aastrika-muted);font-weight:600;padding:9px 14px;border-bottom:1px solid var(--%NS%aastrika-line);white-space:nowrap}td[_ngcontent-%COMP%]{padding:11px 14px;border-bottom:1px solid var(--%NS%aastrika-line)}tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0}.num[_ngcontent-%COMP%]{text-align:right}.panel[_ngcontent-%COMP%]{margin-bottom:18px}.filter-bar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;background:var(--%NS%aastrika-gold-soft);border:1.5px solid var(--%NS%aastrika-gold);border-radius:999px;padding:6px 16px;font-size:13px;color:var(--%NS%aastrika-gold-deep)}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--%NS%aastrika-gold-deep);text-decoration:none}.filter-bar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.split[_ngcontent-%COMP%]{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--%NS%aastrika-surface-2)}.split[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;height:100%}.seg-v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.seg-a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.legend[_ngcontent-%COMP%]{display:flex;gap:20px;margin-top:10px;font-size:12.5px;color:var(--%NS%aastrika-muted)}.dot[_ngcontent-%COMP%]{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.dot.v[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold)}.dot.a[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-deep)}.search[_ngcontent-%COMP%]{max-width:320px;margin-bottom:12px}tr.clickable[_ngcontent-%COMP%]{cursor:pointer}tr.clickable[_ngcontent-%COMP%]:hover td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-surface-2)}tr.sel[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:var(--%NS%aastrika-gold-soft)}.act[_ngcontent-%COMP%]{font-size:12px;color:var(--%NS%aastrika-gold-deep);white-space:nowrap}.sources[_ngcontent-%COMP%]{font-size:11.5px;color:var(--%NS%aastrika-muted);margin-top:4px}.row-actions[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;white-space:nowrap}.act-btn[_ngcontent-%COMP%]{font:inherit;font-size:12px;line-height:1;padding:5px 9px;border:1px solid var(--%NS%aastrika-line-2);border-radius:6px;background:var(--%NS%aastrika-surface);color:var(--%NS%aastrika-ink);text-decoration:none;cursor:pointer}.act-btn[_ngcontent-%COMP%]:hover{background:var(--%NS%aastrika-surface-2)}.act-btn.danger[_ngcontent-%COMP%]{color:#b42318;border-color:#f2b8b0}.act-btn.danger[_ngcontent-%COMP%]:hover{background:#fef3f2}.act-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:1})};var GS=[{tag:"aastrika-content-studio",component:Ya},{tag:"aastrika-assessment",component:Qa},{tag:"aastrika-reports",component:Ja}],Z3=typeof document>"u"?Promise.resolve(null):cd({providers:[$u(),hd(yd(),md([Gm])),{provide:Xr,useValue:$m}]}).then(e=>{for(let t of GS)qm(t,e.injector);return e});export{Hm as configure,Z3 as ready};