@letscooee/web-sdk 9.12.6 → 9.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var wp=Object.create;var gr=Object.defineProperty,Ep=Object.defineProperties,el=Object.getOwnPropertyDescriptor,Ip=Object.getOwnPropertyDescriptors,Cp=Object.getOwnPropertyNames,Xc=Object.getOwnPropertySymbols,bp=Object.getPrototypeOf,tl=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable;var Si=(e,t,n)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||={})tl.call(t,n)&&Si(e,n,t[n]);if(Xc)for(var n of Xc(t))Sp.call(t,n)&&Si(e,n,t[n]);return e},X=(e,t)=>Ep(e,Ip(t));var WE=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var qE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Tp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Cp(t))!tl.call(e,o)&&o!==n&&gr(e,o,{get:()=>t[o],enumerable:!(r=el(t,o))||r.enumerable});return e};var ZE=(e,t,n)=>(n=e!=null?wp(bp(e)):{},Tp(t||!e||!e.__esModule?gr(n,"default",{value:e,enumerable:!0}):n,e));var YE=(e,t,n,r)=>{for(var o=r>1?void 0:r?el(t,n):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(r?s(t,n,o):s(o))||o);return r&&o&&gr(t,n,o),o};var QE=(e,t,n)=>Si(e,typeof t!="symbol"?t+"":t,n);function rl(e,t){return Object.is(e,t)}var q=null,yn=!1,Ni=1,ce=Symbol("SIGNAL");function b(e){let t=q;return q=e,t}function ol(){return q}function Mp(){return yn}var ht={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function vr(e){if(yn)throw new Error("");if(q===null)return;q.consumerOnSignalRead(e);let t=q.nextProducerIndex++;if(Dr(q),t<q.producerNode.length&&q.producerNode[t]!==e&&Dn(q)){let n=q.producerNode[t];yr(n,q.producerIndexOfThis[t])}q.producerNode[t]!==e&&(q.producerNode[t]=e,q.producerIndexOfThis[t]=Dn(q)?ll(e,q,t):0),q.producerLastReadVersion[t]=e.version}function xp(){Ni++}function il(e){if(!(Dn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ni)){if(!e.producerMustRecompute(e)&&!wn(e)){nl(e);return}e.producerRecomputeValue(e),nl(e)}}function sl(e){if(e.liveConsumerNode===void 0)return;let t=yn;yn=!0;try{for(let n of e.liveConsumerNode)n.dirty||cl(n)}finally{yn=t}}function al(){return q?.consumerAllowSignalWrites!==!1}function cl(e){e.dirty=!0,sl(e),e.consumerMarkedDirty?.(e)}function nl(e){e.dirty=!1,e.lastCleanEpoch=Ni}function Lt(e){return e&&(e.nextProducerIndex=0),b(e)}function _n(e,t){if(b(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Dn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)yr(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function wn(e){Dr(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(il(n),r!==n.version))return!0}return!1}function Vt(e){if(Dr(e),Dn(e))for(let t=0;t<e.producerNode.length;t++)yr(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function ll(e,t,n){if(ul(e),e.liveConsumerNode.length===0&&dl(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=ll(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function yr(e,t){if(ul(e),e.liveConsumerNode.length===1&&dl(e))for(let r=0;r<e.producerNode.length;r++)yr(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];Dr(o),o.producerIndexOfThis[r]=t}}function Dn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Dr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ul(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function dl(e){return e.producerNode!==void 0}function fl(e){let t=Object.create(Np);t.computation=e;let n=()=>{if(il(t),vr(t),t.value===mr)throw t.error;return t.value};return n[ce]=t,n}var Ti=Symbol("UNSET"),Mi=Symbol("COMPUTING"),mr=Symbol("ERRORED"),Np=X(J({},ht),{value:Ti,dirty:!0,error:null,equal:rl,kind:"computed",producerMustRecompute(e){return e.value===Ti||e.value===Mi},producerRecomputeValue(e){if(e.value===Mi)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Mi;let n=Lt(e),r,o=!1;try{r=e.computation(),b(null),o=t!==Ti&&t!==mr&&r!==mr&&e.equal(t,r)}catch(i){r=mr,e.error=i}finally{_n(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Rp(){throw new Error}var hl=Rp;function pl(e){hl(e)}function gl(e){hl=e}var Ap=null;function ml(e){let t=Object.create(Ri);t.value=e;let n=()=>(vr(t),t.value);return n[ce]=t,n}function _r(e,t){al()||pl(e),e.equal(e.value,t)||(e.value=t,Op(e))}function vl(e,t){al()||pl(e),_r(e,t(e.value))}var Ri=X(J({},ht),{equal:rl,value:void 0,kind:"signal"});function Op(e){e.version++,xp(),sl(e),Ap?.()}function yl(e,t,n){let r=Object.create(Pp);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(Vt(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=xi)}let a=()=>{if(r.fn===null)return;if(Mp())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!wn(r))return;r.hasRun=!0;let c=Lt(r);try{r.cleanupFn(),r.cleanupFn=xi,r.fn(o)}finally{_n(r,c)}};return r.ref={notify:()=>cl(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[ce]:r},r.ref}var xi=()=>{},Pp=X(J({},ht),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:xi});function w(e){return typeof e=="function"}function wr(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 Er=wr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
+
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function pt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var P=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(w(r))try{r()}catch(i){t=i instanceof Er?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Dl(i)}catch(s){t=t??[],s instanceof Er?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Er(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Dl(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)&&pt(n,t)}remove(t){let{_finalizers:n}=this;n&&pt(n,t),t instanceof e&&t._removeParent(this)}};P.EMPTY=(()=>{let e=new P;return e.closed=!0,e})();var Ai=P.EMPTY;function Ir(e){return e instanceof P||e&&"closed"in e&&w(e.remove)&&w(e.add)&&w(e.unsubscribe)}function Dl(e){w(e)?e():e.unsubscribe()}var we={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var jt={setTimeout(e,t,...n){let{delegate:r}=jt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=jt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Cr(e){jt.setTimeout(()=>{let{onUnhandledError:t}=we;if(t)t(e);else throw e})}function En(){}var _l=Oi("C",void 0,void 0);function wl(e){return Oi("E",void 0,e)}function El(e){return Oi("N",e,void 0)}function Oi(e,t,n){return{kind:e,value:t,error:n}}var gt=null;function Bt(e){if(we.useDeprecatedSynchronousErrorHandling){let t=!gt;if(t&&(gt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=gt;if(gt=null,n)throw r}}else e()}function Il(e){we.useDeprecatedSynchronousErrorHandling&>&&(gt.errorThrown=!0,gt.error=e)}var mt=class extends P{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ir(t)&&t.add(this)):this.destination=Lp}static create(t,n,r){return new Ht(t,n,r)}next(t){this.isStopped?ki(El(t),this):this._next(t)}error(t){this.isStopped?ki(wl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ki(_l,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()}}},kp=Function.prototype.bind;function Pi(e,t){return kp.call(e,t)}var Fi=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){br(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){br(r)}else br(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){br(n)}}},Ht=class extends mt{constructor(t,n,r){super();let o;if(w(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&we.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Pi(t.next,i),error:t.error&&Pi(t.error,i),complete:t.complete&&Pi(t.complete,i)}):o=t}this.destination=new Fi(o)}};function br(e){we.useDeprecatedSynchronousErrorHandling?Il(e):Cr(e)}function Fp(e){throw e}function ki(e,t){let{onStoppedNotification:n}=we;n&&jt.setTimeout(()=>n(e,t))}var Lp={closed:!0,next:En,error:Fp,complete:En};var $t=typeof Symbol=="function"&&Symbol.observable||"@@observable";function et(e){return e}function Cl(e){return e.length===0?et:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=jp(n)?n:new Ht(n,r,o);return Bt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=bl(r),new r((o,i)=>{let s=new Ht({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[$t](){return this}pipe(...n){return Cl(n)(this)}toPromise(n){return n=bl(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function bl(e){var t;return(t=e??we.Promise)!==null&&t!==void 0?t:Promise}function Vp(e){return e&&w(e.next)&&w(e.error)&&w(e.complete)}function jp(e){return e&&e instanceof mt||Vp(e)&&Ir(e)}function Bp(e){return w(e?.lift)}function L(e){return t=>{if(Bp(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 j(e,t,n,r,o){return new Li(e,t,n,r,o)}var Li=class extends mt{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 Ut={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Ut;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new P(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Ut;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Ut;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Sl=wr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Sr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Sl}next(n){Bt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Bt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Bt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ai:(this.currentObservers=null,i.push(n),new P(()=>{this.currentObservers=null,pt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new Sr(t,n),e})(),Sr=class extends S{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:Ai}};var vt=class extends S{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 In={now(){return(In.delegate||Date).now()},delegate:void 0};var Vi=class extends S{constructor(t=1/0,n=1/0,r=In){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 Tr=class extends P{constructor(t,n){super()}schedule(t,n=0){return this}};var Cn={setInterval(e,t,...n){let{delegate:r}=Cn;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Cn;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var zt=class extends Tr{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Cn.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Cn.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,pt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Gt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Gt.now=In.now;var Wt=class extends Gt{constructor(t,n=Gt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var bn=new Wt(zt),Tl=bn;var Mr=class extends zt{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Ut.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Ut.cancelAnimationFrame(n),t._scheduled=void 0)}};var xr=class extends Wt{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Nr=new xr(Mr);var Sn=new R(e=>e.complete());function Rr(e){return e&&w(e.schedule)}function Ml(e){return e[e.length-1]}function tt(e){return Rr(Ml(e))?e.pop():void 0}function xl(e,t){return typeof Ml(e)=="number"?e.pop():t}function Rl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Nl(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 yt(e){return this instanceof yt?(this.v=e,this):new yt(e)}function Al(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(m){return new Promise(function(M,N){i.push([f,m,M,N])>1||c(f,m)})},p&&(o[f]=p(o[f])))}function c(f,p){try{l(r[f](p))}catch(m){h(i[0][3],m)}}function l(f){f.value instanceof yt?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,p){f(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Ol(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 Nl=="function"?Nl(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 qt=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ar(e){return w(e?.then)}function Or(e){return w(e[$t])}function Pr(e){return Symbol.asyncIterator&&w(e?.[Symbol.asyncIterator])}function kr(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 Hp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Fr=Hp();function Lr(e){return w(e?.[Fr])}function Vr(e){return Al(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield yt(n.read());if(o)return yield yt(void 0);yield yield yt(r)}}finally{n.releaseLock()}})}function jr(e){return w(e?.getReader)}function B(e){if(e instanceof R)return e;if(e!=null){if(Or(e))return $p(e);if(qt(e))return Up(e);if(Ar(e))return zp(e);if(Pr(e))return Pl(e);if(Lr(e))return Gp(e);if(jr(e))return Wp(e)}throw kr(e)}function $p(e){return new R(t=>{let n=e[$t]();if(w(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Up(e){return new R(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function zp(e){return new R(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Cr)})}function Gp(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Pl(e){return new R(t=>{qp(e,t).catch(n=>t.error(n))})}function Wp(e){return Pl(Vr(e))}function qp(e,t){var n,r,o,i;return Rl(this,void 0,void 0,function*(){try{for(n=Ol(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 pe(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Br(e,t=0){return L((n,r)=>{n.subscribe(j(r,o=>pe(r,e,()=>r.next(o),t),()=>pe(r,e,()=>r.complete(),t),o=>pe(r,e,()=>r.error(o),t)))})}function Hr(e,t=0){return L((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function kl(e,t){return B(e).pipe(Hr(t),Br(t))}function Fl(e,t){return B(e).pipe(Hr(t),Br(t))}function Ll(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Vl(e,t){return new R(n=>{let r;return pe(n,t,()=>{r=e[Fr](),pe(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)}),()=>w(r?.return)&&r.return()})}function $r(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{pe(n,t,()=>{let r=e[Symbol.asyncIterator]();pe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function jl(e,t){return $r(Vr(e),t)}function Bl(e,t){if(e!=null){if(Or(e))return kl(e,t);if(qt(e))return Ll(e,t);if(Ar(e))return Fl(e,t);if(Pr(e))return $r(e,t);if(Lr(e))return Vl(e,t);if(jr(e))return jl(e,t)}throw kr(e)}function Dt(e,t){return t?Bl(e,t):B(e)}function ji(...e){let t=tt(e);return Dt(e,t)}function Hl(e){return e instanceof Date&&!isNaN(e)}function $e(e,t){return L((n,r)=>{let o=0;n.subscribe(j(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Zp}=Array;function Yp(e,t){return Zp(t)?e(...t):e(t)}function $l(e){return $e(t=>Yp(e,t))}function Ul(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&t.complete()},f=m=>l<r?p(m):c.push(m),p=m=>{i&&t.next(m),l++;let M=!1;B(n(m,u++)).subscribe(j(t,N=>{o?.(N),i?f(N):t.next(N)},()=>{M=!0},void 0,()=>{if(M)try{for(l--;c.length&&l<r;){let N=c.shift();s?pe(t,s,()=>p(N)):p(N)}h()}catch(N){t.error(N)}}))};return e.subscribe(j(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Zt(e,t,n=1/0){return w(t)?Zt((r,o)=>$e((i,s)=>t(r,i,o,s))(B(e(r,o))),n):(typeof t=="number"&&(n=t),L((r,o)=>Ul(r,o,e,n)))}function Ur(e=1/0){return Zt(et,e)}function zl(){return Ur(1)}function Bi(...e){return zl()(Dt(e,tt(e)))}function Qp(e){return new R(t=>{B(e()).subscribe(t)})}var Kp=["addListener","removeListener"],Jp=["addEventListener","removeEventListener"],Xp=["on","off"];function Hi(e,t,n,r){if(w(n)&&(r=n,n=void 0),r)return Hi(e,t,n).pipe($l(r));let[o,i]=ng(e)?Jp.map(s=>a=>e[s](t,a,n)):eg(e)?Kp.map(Gl(e,t)):tg(e)?Xp.map(Gl(e,t)):[];if(!o&&qt(e))return Zt(s=>Hi(s,t,n))(B(e));if(!o)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function Gl(e,t){return n=>r=>e[n](t,r)}function eg(e){return w(e.addListener)&&w(e.removeListener)}function tg(e){return w(e.on)&&w(e.off)}function ng(e){return w(e.addEventListener)&&w(e.removeEventListener)}function zr(e=0,t,n=Tl){let r=-1;return t!=null&&(Rr(t)?n=t:r=t),new R(o=>{let i=Hl(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function $i(e=0,t=bn){return e<0&&(e=0),zr(e,e,t)}function Gr(...e){let t=tt(e),n=xl(e,1/0),r=e;return r.length?r.length===1?B(r[0]):Ur(n)(Dt(r,t)):Sn}function Tn(e,t){return L((n,r)=>{let o=0;n.subscribe(j(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Wl(e){return L((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(j(n,l=>{r=!0,o=l,i||B(e(l)).subscribe(i=j(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Wr(e,t=bn){return Wl(()=>zr(e,t))}function Ui(e){return e<=0?()=>Sn:L((t,n)=>{let r=0;t.subscribe(j(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ql(e,t=et){return e=e??rg,L((n,r)=>{let o,i=!0;n.subscribe(j(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function rg(e,t){return e===t}function og(e){return Tn((t,n)=>e<=n)}function qr(...e){let t=tt(e);return L((n,r)=>{(t?Bi(e,n,t):Bi(e,n)).subscribe(r)})}function Zr(e,t){return L((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(j(r,c=>{o?.unsubscribe();let l=0,u=i++;B(e(c,u)).subscribe(o=j(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Yt(e){return L((t,n)=>{B(e).subscribe(j(n,()=>n.complete(),En)),!n.closed&&t.subscribe(n)})}function zi(e,t,n){let r=w(e)||t||n?{next:e,error:t,complete:n}:e;return r?L((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(j(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):et}var Lu="https://g.co/ng/security#xss",_=class extends Error{code;constructor(t,n){super(ya(t,n)),this.code=t}};function ya(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Vu=Symbol("InputSignalNode#UNSET"),ig=X(J({},Ri),{transformFn:void 0,applyValueToInputSignal(e,t){_r(e,t)}});function ju(e,t){let n=Object.create(ig);n.value=e,n.transformFn=t?.transform;function r(){if(vr(n),n.value===Vu)throw new _(-950,!1);return n.value}return r[ce]=n,r}function qn(e){return{toString:e}.toString()}var Yr="__parameters__";function sg(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Bu(e,t,n){return qn(()=>{let r=sg(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Yr)?c[Yr]:Object.defineProperty(c,Yr,{value:[]})[Yr];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Ue=globalThis;function F(e){for(let t in e)if(e[t]===F)return t;throw Error("Could not find renamed property on target object.")}function ag(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ge(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ge).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 ss(e,t){return e?t?`${e} ${t}`:e:t||""}var cg=F({__forward_ref__:F});function Da(e){return e.__forward_ref__=Da,e.toString=function(){return ge(this())},e}function Y(e){return Hu(e)?e():e}function Hu(e){return typeof e=="function"&&e.hasOwnProperty(cg)&&e.__forward_ref__===Da}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Zn(e){return{providers:e.providers||[],imports:e.imports||[]}}function _a(e){return Zl(e,$u)||Zl(e,Uu)}function Zl(e,t){return e.hasOwnProperty(t)?e[t]:null}function lg(e){let t=e&&(e[$u]||e[Uu]);return t||null}function Yl(e){return e&&(e.hasOwnProperty(Ql)||e.hasOwnProperty(ug))?e[Ql]:null}var $u=F({\u0275prov:F}),Ql=F({\u0275inj:F}),Uu=F({ngInjectableDef:F}),ug=F({ngInjectorDef:F}),E=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=D({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function zu(e){return e&&!!e.\u0275providers}var dg=F({\u0275cmp:F}),fg=F({\u0275dir:F}),hg=F({\u0275pipe:F});var ao=F({\u0275fac:F}),Rn=F({__NG_ELEMENT_ID__:F}),Kl=F({__NG_ENV_ID__:F});function Yn(e){return typeof e=="string"?e:e==null?"":String(e)}function pg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Yn(e)}function gg(e,t){throw new _(-200,e)}function wa(e,t){throw new _(-201,!1)}var T=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(T||{}),as;function Gu(){return as}function ae(e){let t=as;return as=e,t}function Wu(e,t,n){let r=_a(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;wa(e,"Injector")}var mg={},An=mg,cs="__NG_DI_FLAG__",co="ngTempTokenPath",vg="ngTokenPath",yg=/\n/gm,Dg="\u0275",Jl="__source",en;function _g(){return en}function nt(e){let t=en;return en=e,t}function wg(e,t=T.Default){if(en===void 0)throw new _(-203,!1);return en===null?Wu(e,void 0,t):en.get(e,t&T.Optional?null:void 0,t)}function x(e,t=T.Default){return(Gu()||wg)(Y(e),t)}function g(e,t=T.Default){return x(e,Ao(t))}function Ao(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ls(e){let t=[];for(let n=0;n<e.length;n++){let r=Y(e[n]);if(Array.isArray(r)){if(r.length===0)throw new _(900,!1);let o,i=T.Default;for(let s=0;s<r.length;s++){let a=r[s],c=Eg(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(x(o,i))}else t.push(x(r))}return t}function qu(e,t){return e[cs]=t,e.prototype[cs]=t,e}function Eg(e){return e[cs]}function Ig(e,t,n,r){let o=e[co];throw t[Jl]&&o.unshift(t[Jl]),e.message=Cg(`
|
|
5
|
+
`+e.message,o,n,r),e[vg]=o,e[co]=null,e}function Cg(e,t,n,r=null){e=e&&e.charAt(0)===`
|
|
6
|
+
`&&e.charAt(1)==Dg?e.slice(2):e;let o=ge(t);if(Array.isArray(t))o=t.map(ge).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ge(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(yg,`
|
|
7
|
+
`)}`}var Ea=qu(Bu("Optional"),8);var bg=qu(Bu("SkipSelf"),4);function Et(e,t){let n=e.hasOwnProperty(ao);return n?e[ao]:null}function Sg(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 Tg(e){return e.flat(Number.POSITIVE_INFINITY)}function Ia(e,t){e.forEach(n=>Array.isArray(n)?Ia(n,t):t(n))}function Zu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function lo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Mg(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 Oo(e,t,n){let r=Qn(e,t);return r>=0?e[r|1]=n:(r=~r,Mg(e,r,t,n)),r}function Gi(e,t){let n=Qn(e,t);if(n>=0)return e[n|1]}function Qn(e,t){return xg(e,t,1)}function xg(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 Pe={},re=[],On=new E(""),Yu=new E("",-1),Qu=new E(""),uo=class{get(t,n=An){if(n===An){let r=new Error(`NullInjectorError: No provider for ${ge(t)}!`);throw r.name="NullInjectorError",r}return n}};function It(e){return e[dg]||null}function Ca(e){return e[fg]||null}function Ku(e){return e[hg]||null}function Ng(e){let t=It(e)||Ca(e)||Ku(e);return t!==null&&t.standalone}function Ju(e){return{\u0275providers:e}}function Rg(...e){return{\u0275providers:Xu(!0,e),\u0275fromNgModule:!0}}function Xu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ia(t,s=>{let a=s;us(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ed(o,i),n}function ed(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ba(o,i=>{t(i,r)})}}function us(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=Yl(e),s=!i&&It(e);if(!i&&!s){let c=e.ngModule;if(i=Yl(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)us(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Ia(i.imports,u=>{us(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&ed(l,t)}if(!a){let l=Et(o)||(()=>new o);t({provide:o,useFactory:l,deps:re},o),t({provide:Qu,useValue:o,multi:!0},o),t({provide:On,useValue:()=>x(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;ba(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function ba(e,t){for(let n of e)zu(n)&&(n=n.\u0275providers),Array.isArray(n)?ba(n,t):t(n)}var Ag=F({provide:String,useValue:F});function td(e){return e!==null&&typeof e=="object"&&Ag in e}function Og(e){return!!(e&&e.useExisting)}function Pg(e){return!!(e&&e.useFactory)}function rn(e){return typeof e=="function"}function kg(e){return!!e.useClass}var Po=new E(""),eo={},Fg={},Wi;function ko(){return Wi===void 0&&(Wi=new uo),Wi}var ke=class{},Pn=class extends ke{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,fs(t,s=>this.processProvider(s)),this.records.set(Yu,Qt(void 0,this)),o.has("environment")&&this.records.set(ke,Qt(void 0,this));let i=this.records.get(Po);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Qu,re,T.Self))}destroy(){xn(this),this._destroyed=!0;let t=b(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(),b(t)}}onDestroy(t){return xn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){xn(this);let n=nt(this),r=ae(void 0),o;try{return t()}finally{nt(n),ae(r)}}get(t,n=An,r=T.Default){if(xn(this),t.hasOwnProperty(Kl))return t[Kl](this);r=Ao(r);let o,i=nt(this),s=ae(void 0);try{if(!(r&T.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=Hg(t)&&_a(t);l&&this.injectableDefInScope(l)?c=Qt(ds(t),eo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&T.Self?ko():this.parent;return n=r&T.Optional&&n===An?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[co]=a[co]||[]).unshift(ge(t)),i)throw a;return Ig(a,t,"R3InjectorError",this.source)}else throw a}finally{ae(s),nt(i)}}resolveInjectorInitializers(){let t=b(null),n=nt(this),r=ae(void 0),o;try{let i=this.get(On,re,T.Self);for(let s of i)s()}finally{nt(n),ae(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ge(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Y(t);let n=rn(t)?t:Y(t&&t.provide),r=Vg(t);if(!rn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Qt(void 0,eo,!0),o.factory=()=>ls(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=b(null);try{return n.value===eo&&(n.value=Fg,n.value=n.factory()),typeof n.value=="object"&&n.value&&Bg(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(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 ds(e){let t=_a(e),n=t!==null?t.factory:Et(e);if(n!==null)return n;if(e instanceof E)throw new _(204,!1);if(e instanceof Function)return Lg(e);throw new _(204,!1)}function Lg(e){if(e.length>0)throw new _(204,!1);let n=lg(e);return n!==null?()=>n.factory(e):()=>new e}function Vg(e){if(td(e))return Qt(void 0,e.useValue);{let t=nd(e);return Qt(t,eo)}}function nd(e,t,n){let r;if(rn(e)){let o=Y(e);return Et(o)||ds(o)}else if(td(e))r=()=>Y(e.useValue);else if(Pg(e))r=()=>e.useFactory(...ls(e.deps||[]));else if(Og(e))r=()=>x(Y(e.useExisting));else{let o=Y(e&&(e.useClass||e.provide));if(jg(e))r=()=>new o(...ls(e.deps));else return Et(o)||ds(o)}return r}function xn(e){if(e.destroyed)throw new _(205,!1)}function Qt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function jg(e){return!!e.deps}function Bg(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Hg(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function fs(e,t){for(let n of e)Array.isArray(n)?fs(n,t):n&&zu(n)?fs(n.\u0275providers,t):t(n)}function rd(e,t){e instanceof Pn&&xn(e);let n,r=nt(e),o=ae(void 0);try{return t()}finally{nt(r),ae(o)}}function od(){return Gu()!==void 0||_g()!=null}function Fo(e){if(!od())throw new _(-203,!1)}function $g(e){return typeof e=="function"}var Ze=0,y=1,v=2,te=3,Ce=4,Me=5,kn=6,fo=7,$=8,Fn=9,Ge=10,G=11,Ln=12,Xl=13,ln=14,be=15,Ct=16,Kt=17,We=18,Kn=19,id=20,rt=21,to=22,bt=23,le=24,tn=25,H=26,sd=1;var St=7,ho=8,on=9,ee=10;function ze(e){return Array.isArray(e)&&typeof e[sd]=="object"}function Ye(e){return Array.isArray(e)&&e[sd]===!0}function Sa(e){return(e.flags&4)!==0}function un(e){return e.componentOffset>-1}function Lo(e){return(e.flags&1)===1}function Fe(e){return!!e.template}function po(e){return(e[v]&512)!==0}function Jn(e){return(e[v]&256)===256}var hs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ad(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Xn=(()=>{let e=()=>cd;return e.ngInherit=!0,e})();function cd(e){return e.type.prototype.ngOnChanges&&(e.setInput=zg),Ug}function Ug(){let e=ud(this),t=e?.current;if(t){let n=e.previous;if(n===Pe)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function zg(e,t,n,r,o){let i=this.declaredInputs[r],s=ud(e)||Gg(e,{previous:Pe,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new hs(l&&l.currentValue,n,c===Pe),ad(e,t,o,n)}var ld="__ngSimpleChanges__";function ud(e){return e[ld]||null}function Gg(e,t){return e[ld]=t}var eu=null;var A=function(e,t=null,n){eu?.(e,t,n)},dd="svg",Wg="math";function ue(e){for(;Array.isArray(e);)e=e[Ze];return e}function fd(e,t){return ue(t[e])}function je(e,t){return ue(t[e.index])}function Ta(e,t){return e.data[t]}function Vo(e,t){return e[t]}function me(e,t){let n=t[e];return ze(n)?n:n[Ze]}function qg(e){return(e[v]&4)===4}function Ma(e){return(e[v]&128)===128}function Zg(e){return Ye(e[te])}function ot(e,t){return t==null?null:e[t]}function hd(e){e[Kt]=0}function xa(e){e[v]&1024||(e[v]|=1024,Ma(e)&&dn(e))}function Yg(e,t){for(;e>0;)t=t[ln],e--;return t}function jo(e){return!!(e[v]&9216||e[le]?.dirty)}function ps(e){e[Ge].changeDetectionScheduler?.notify(8),e[v]&64&&(e[v]|=1024),jo(e)&&dn(e)}function dn(e){e[Ge].changeDetectionScheduler?.notify(0);let t=Tt(e);for(;t!==null&&!(t[v]&8192||(t[v]|=8192,!Ma(t)));)t=Tt(t)}function pd(e,t){if(Jn(e))throw new _(911,!1);e[rt]===null&&(e[rt]=[]),e[rt].push(t)}function Qg(e,t){if(e[rt]===null)return;let n=e[rt].indexOf(t);n!==-1&&e[rt].splice(n,1)}function Tt(e){let t=e[te];return Ye(t)?t[te]:t}function gd(e){return e[fo]??=[]}function md(e){return e.cleanup??=[]}function Kg(e,t,n,r){let o=gd(t);o.push(n),e.firstCreatePass&&md(e).push(r,o.length-1)}var C={lFrame:bd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var gs=!1;function Jg(){return C.lFrame.elementDepthCount}function Xg(){C.lFrame.elementDepthCount++}function em(){C.lFrame.elementDepthCount--}function Na(){return C.bindingsEnabled}function tm(){return C.skipHydrationRootTNode!==null}function nm(e){return C.skipHydrationRootTNode===e}function rm(){C.skipHydrationRootTNode=null}function I(){return C.lFrame.lView}function U(){return C.lFrame.tView}function yM(e){return C.lFrame.contextLView=e,e[$]}function DM(e){return C.lFrame.contextLView=null,e}function de(){let e=vd();for(;e!==null&&e.type===64;)e=e.parent;return e}function vd(){return C.lFrame.currentTNode}function om(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function at(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function Ra(){return C.lFrame.isParent}function yd(){C.lFrame.isParent=!1}function Dd(){return C.lFrame.contextLView}function _d(){return gs}function go(e){let t=gs;return gs=e,t}function er(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function im(e){return C.lFrame.bindingIndex=e}function tr(){return C.lFrame.bindingIndex++}function wd(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function sm(){return C.lFrame.inI18n}function am(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,ms(t)}function cm(){return C.lFrame.currentDirectiveIndex}function ms(e){C.lFrame.currentDirectiveIndex=e}function lm(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ed(){return C.lFrame.currentQueryIndex}function Aa(e){C.lFrame.currentQueryIndex=e}function um(e){let t=e[y];return t.type===2?t.declTNode:t.type===1?e[Me]:null}function Id(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=um(i),o===null||(i=i[ln],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=Cd();return r.currentTNode=t,r.lView=e,!0}function Oa(e){let t=Cd(),n=e[y];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cd(){let e=C.lFrame,t=e===null?null:e.child;return t===null?bd(e):t}function bd(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 Sd(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Td=Sd;function Pa(){let e=Sd();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 dm(e){return(C.lFrame.contextLView=Yg(e,C.lFrame.contextLView))[$]}function Qe(){return C.lFrame.selectedIndex}function Mt(e){C.lFrame.selectedIndex=e}function ka(){let e=C.lFrame;return Ta(e.tView,e.selectedIndex)}function _M(){C.lFrame.currentNamespace=dd}function wM(){fm()}function fm(){C.lFrame.currentNamespace=null}function hm(){return C.lFrame.currentNamespace}var Md=!0;function Bo(){return Md}function Ho(e){Md=e}function pm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=cd(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 Fa(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:u}=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)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function no(e,t,n){xd(e,t,3,n)}function ro(e,t,n,r){(e[v]&3)===n&&xd(e,t,n,r)}function qi(e,t){let n=e[v];(n&3)===t&&(n&=16383,n+=1,e[v]=n)}function xd(e,t,n,r){let o=r!==void 0?e[Kt]&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[Kt]+=65536),(a<i||i==-1)&&(gm(e,n,t,c),e[Kt]=(e[Kt]&4294901760)+c+2),c++}function tu(e,t){A(4,e,t);let n=b(null);try{t.call(e)}finally{b(n),A(5,e,t)}}function gm(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[Kt]>>16&&(e[v]&3)===t&&(e[v]+=16384,tu(a,i)):tu(a,i)}var nn=-1,xt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function mm(e){return e instanceof xt}function vm(e){return(e.flags&8)!==0}function ym(e){return(e.flags&16)!==0}function Dm(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];wm(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function _m(e){return e===3||e===4||e===6}function wm(e){return e.charCodeAt(0)===64}function sn(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?nu(e,n,o,null,t[++r]):nu(e,n,o,null,null))}}return e}function nu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var Zi={},vs=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ao(r);let o=this.injector.get(t,Zi,r);return o!==Zi||n===Zi?o:this.parentInjector.get(t,n,r)}};function Nd(e){return e!==nn}function mo(e){return e&32767}function Em(e){return e>>16}function vo(e,t){let n=Em(e),r=t;for(;n>0;)r=r[ln],n--;return r}var ys=!0;function yo(e){let t=ys;return ys=e,t}var Im=256,Rd=Im-1,Ad=5,Cm=0,Ae={};function bm(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Rn)&&(r=n[Rn]),r==null&&(r=n[Rn]=Cm++);let o=r&Rd,i=1<<o;t.data[e+(o>>Ad)]|=i}function Do(e,t){let n=Od(e,t);if(n!==-1)return n;let r=t[y];r.firstCreatePass&&(e.injectorIndex=t.length,Yi(r.data,e),Yi(t,null),Yi(r.blueprint,null));let o=La(e,t),i=e.injectorIndex;if(Nd(o)){let s=mo(o),a=vo(o,t),c=a[y].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Yi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Od(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function La(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=Vd(o),r===null)return nn;if(n++,o=o[ln],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return nn}function Ds(e,t,n){bm(e,t,n)}function Pd(e,t,n){if(n&T.Optional||e!==void 0)return e;wa(t,"NodeInjector")}function kd(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),(n&(T.Self|T.Host))===0){let o=e[Fn],i=ae(void 0);try{return o?o.get(t,r,n&T.Optional):Wu(t,r,n&T.Optional)}finally{ae(i)}}return Pd(r,t,n)}function Fd(e,t,n,r=T.Default,o){if(e!==null){if(t[v]&2048&&!(r&T.Self)){let s=xm(e,t,n,r,Ae);if(s!==Ae)return s}let i=Ld(e,t,n,r,Ae);if(i!==Ae)return i}return kd(t,n,r,o)}function Ld(e,t,n,r,o){let i=Tm(n);if(typeof i=="function"){if(!Id(t,e,r))return r&T.Host?Pd(o,n,r):kd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))wa(n);else return s}finally{Td()}}else if(typeof i=="number"){let s=null,a=Od(e,t),c=nn,l=r&T.Host?t[be][Me]:null;for((a===-1||r&T.SkipSelf)&&(c=a===-1?La(e,t):t[a+8],c===nn||!ou(r,!1)?a=-1:(s=t[y],a=mo(c),t=vo(c,t)));a!==-1;){let u=t[y];if(ru(i,a,u.data)){let d=Sm(a,t,n,s,r,l);if(d!==Ae)return d}c=t[a+8],c!==nn&&ou(r,t[y].data[a+8]===l)&&ru(i,a,t)?(s=u,a=mo(c),t=vo(c,t)):a=-1}}return o}function Sm(e,t,n,r,o,i){let s=t[y],a=s.data[e+8],c=r==null?un(a)&&ys:r!=s&&(a.type&3)!==0,l=o&T.Host&&i===a,u=oo(a,s,n,c,l);return u!==null?Vn(t,s,u,a):Ae}function oo(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,h=o?a+u:l;for(let f=d;f<h;f++){let p=s[f];if(f<c&&n===p||f>=c&&p.type===n)return f}if(o){let f=s[c];if(f&&Fe(f)&&f.type===n)return c}return null}function Vn(e,t,n,r){let o=e[n],i=t.data;if(mm(o)){let s=o;s.resolving&&gg(pg(i[n]));let a=yo(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?ae(s.injectImpl):null,u=Id(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&pm(n,i[n],t)}finally{l!==null&&ae(l),yo(a),s.resolving=!1,Td()}}return o}function Tm(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Rn)?e[Rn]:void 0;return typeof t=="number"?t>=0?t&Rd:Mm:t}function ru(e,t,n){let r=1<<e;return!!(n[t+(e>>Ad)]&r)}function ou(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var wt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Fd(this._tNode,this._lView,t,Ao(r),n)}};function Mm(){return new wt(de(),I())}function EM(e){return qn(()=>{let t=e.prototype.constructor,n=t[ao]||_s(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[ao]||_s(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function _s(e){return Hu(e)?()=>{let t=_s(Y(e));return t&&t()}:Et(e)}function xm(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[v]&2048&&!po(s);){let a=Ld(i,s,n,r|T.Self,Ae);if(a!==Ae)return a;let c=i.parent;if(!c){let l=s[id];if(l){let u=l.get(n,Ae,r);if(u!==Ae)return u}c=Vd(s),s=s[ln]}i=c}return o}function Vd(e){let t=e[y],n=t.type;return n===2?t.declTNode:n===1?e[Me]:null}function iu(e,t=null,n=null,r){let o=Nm(e,t,n,r);return o.resolveInjectorInitializers(),o}function Nm(e,t=null,n=null,r,o=new Set){let i=[n||re,Rg(e)];return r=r||(typeof e=="object"?void 0:ge(e)),new Pn(i,t||ko(),r||null,o)}var K=class e{static THROW_IF_NOT_FOUND=An;static NULL=new uo;static create(t,n){if(Array.isArray(t))return iu({name:""},n,t,"");{let r=t.name??"";return iu({name:r},t.parent,t.providers,r)}}static \u0275prov=D({token:e,providedIn:"any",factory:()=>x(Yu)});static __NG_ELEMENT_ID__=-1};var Rm=new E("");Rm.__NG_ELEMENT_ID__=e=>{let t=de();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&T.Optional)return null;throw new _(204,!1)};var jd=!1,fn=(()=>{class e{static __NG_ELEMENT_ID__=Am;static __NG_ENV_ID__=n=>n}return e})(),_o=class extends fn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return pd(this._lView,t),()=>Qg(this._lView,t)}};function Am(){return new _o(I())}var it=class{},$o=new E("",{providedIn:"root",factory:()=>!1});var Bd=new E(""),Va=new E(""),nr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new vt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})();var ws=class extends S{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,od()&&(this.destroyRef=g(fn,{optional:!0})??void 0,this.pendingTasks=g(nr,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(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 P&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Q=ws;function jn(...e){}function Hd(e){let t,n;function r(){e=jn;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 su(e){return queueMicrotask(()=>e()),()=>{e=jn}}var ja="isAngularZone",wo=ja+"_ID",Om=0,V=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Q(!1);onMicrotaskEmpty=new Q(!1);onStable=new Q(!1);onError=new Q(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=jd}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Fm(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ja)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Pm,jn,jn);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)}},Pm={};function Ba(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 km(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Hd(()=>{e.callbackScheduled=!1,Es(e),e.isCheckStableRunning=!0,Ba(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Es(e)}function Fm(e){let t=()=>{km(e)},n=Om++;e._inner=e._inner.fork({name:"angular",properties:{[ja]:!0,[wo]:n,[wo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Lm(c))return r.invokeTask(i,s,a,c);try{return au(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),cu(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return au(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Vm(c)&&t(),cu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Es(e),Ba(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 Es(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function au(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function cu(e){e._nesting--,Ba(e)}var Eo=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Q;onMicrotaskEmpty=new Q;onStable=new Q;onError=new Q;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 Lm(e){return $d(e,"__ignore_ng_zone__")}function Vm(e){return $d(e,"__scheduler_tick__")}function $d(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Se=class{_console=console;handleError(t){this._console.error("ERROR",t)}},jm=new E("",{providedIn:"root",factory:()=>{let e=g(V),t=g(Se);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),Is=class{destroyed=!1;listeners=null;errorHandler=g(Se,{optional:!0});destroyRef=g(fn);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new _(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new _(953,!1);if(this.listeners===null)return;let n=b(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{b(n)}}};function IM(e){return new Is}function lu(e,t){return ju(e,t)}function Bm(e){return ju(Vu,e)}var CM=(lu.required=Bm,lu);function Hm(){return hn(de(),I())}function hn(e,t){return new fe(je(e,t))}var fe=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Hm}return e})();function $m(e){return e instanceof fe?e.nativeElement:e}function Ha(e,t){let n=ml(e),r=n[ce];return t?.equal&&(r.equal=t.equal),n.set=o=>_r(r,o),n.update=o=>vl(r,o),n.asReadonly=Um.bind(n),n}function Um(){let e=this[ce];if(e.readonlyFn===void 0){let t=()=>this();t[ce]=e,e.readonlyFn=t}return e.readonlyFn}function zm(){return this._results[Symbol.iterator]()}var Cs=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 S}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=Tg(t);(this._changesDetected=!Sg(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]=zm};function Ud(e){return(e.flags&128)===128}var zd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(zd||{}),$a=new Map,Gm=0;function Wm(){return Gm++}function qm(e){$a.set(e[Kn],e)}function Gd(e){return $a.get(e)||null}function bs(e){$a.delete(e[Kn])}var Ss=class{lViewId;nodeIndex;native;component;directives;localRefs;get lView(){return Gd(this.lViewId)}constructor(t,n,r){this.lViewId=t,this.nodeIndex=n,this.native=r}};function bM(e){let t=Qi(e);if(t){if(ze(t)){let n=t,r,o,i;if(Wd(e)){if(r=Qm(n,e),r==-1)throw new Error("The provided component was not found in the application");o=e}else if(Zm(e)){if(r=Km(n,e),r==-1)throw new Error("The provided directive was not found in the application");i=Jm(r,n)}else if(r=du(n,e),r==-1)return null;let s=ue(n[r]),a=Qi(s),c=a&&!Array.isArray(a)?a:uu(n,r,s);if(o&&c.component===void 0&&(c.component=o,Oe(c.component,c)),i&&c.directives===void 0){c.directives=i;for(let l=0;l<i.length;l++)Oe(i[l],c)}Oe(c.native,c),t=c}}else{let n=e,r=n;for(;r=r.parentNode;){let o=Qi(r);if(o){let i=Array.isArray(o)?o:o.lView;if(!i)return null;let s=du(i,n);if(s>=0){let a=ue(i[s]),c=uu(i,s,a);Oe(a,c),t=c;break}}}}return t||null}function uu(e,t,n){return new Ss(e[Kn],t,n)}var Ts="__ngContext__";function Oe(e,t){ze(t)?(e[Ts]=t[Kn],qm(t)):e[Ts]=t}function Qi(e){let t=e[Ts];return typeof t=="number"?Gd(t):t||null}function Wd(e){return e&&e.constructor&&e.constructor.\u0275cmp}function Zm(e){return e&&e.constructor&&e.constructor.\u0275dir}function du(e,t){let n=e[y];for(let r=H;r<n.bindingStartIndex;r++)if(ue(e[r])===t)return r;return-1}function Ym(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Qm(e,t){let n=e[y].components;if(n)for(let r=0;r<n.length;r++){let o=n[r];if(me(o,e)[$]===t)return o}else if(me(H,e)[$]===t)return H;return-1}function Km(e,t){let n=e[y].firstChild;for(;n;){let r=n.directiveStart,o=n.directiveEnd;for(let i=r;i<o;i++)if(e[i]===t)return n.index;n=Ym(n)}return-1}function Jm(e,t){let n=t[y].data[e];if(n.directiveStart===0)return re;let r=[];for(let o=n.directiveStart;o<n.directiveEnd;o++){let i=t[o];Wd(i)||r.push(i)}return r}function qd(e){return Yd(e[Ln])}function Zd(e){return Yd(e[Ce])}function Yd(e){for(;e!==null&&!Ye(e);)e=e[Ce];return e}var Ms;function Qd(e){Ms=e}function Kd(){if(Ms!==void 0)return Ms;if(typeof document<"u")return document;throw new _(210,!1)}var rr=new E("",{providedIn:"root",factory:()=>Xm}),Xm="ng",Ua=new E(""),Ot=new E("",{providedIn:"platform",factory:()=>"unknown"});var SM=new E(""),za=new E("",{providedIn:"root",factory:()=>Kd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ev="h",tv="b";var Jd=!1,nv=new E("",{providedIn:"root",factory:()=>Jd});var Ga=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Ga||{}),pn=new E(""),fu=new Set;function ct(e){fu.has(e)||(fu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Wa=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=rv}return e})();function rv(){return new Wa(I(),de())}var Jt=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Jt||{}),Xd=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})(),ov=[Jt.EarlyRead,Jt.Write,Jt.MixedReadWrite,Jt.Read],iv=(()=>{class e{ngZone=g(V);scheduler=g(it);errorHandler=g(Se,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(pn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&A(16),this.executing=!0;for(let r of ov)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&&A(17)}register(n){let{view:r}=n;r!==void 0?((r[tn]??=[]).push(n),dn(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(Ga.AFTER_NEXT_RENDER,n):n()}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})(),xs=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?.[tn];t&&(this.view[tn]=t.filter(n=>n!==this))}};function sv(e,t){!t?.injector&&Fo(sv);let n=t?.injector??g(K);return ct("NgAfterRender"),ef(e,n,t,!1)}function Uo(e,t){!t?.injector&&Fo(Uo);let n=t?.injector??g(K);return ct("NgAfterNextRender"),ef(e,n,t,!0)}function av(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function ef(e,t,n,r){let o=t.get(Xd);o.impl??=t.get(iv);let i=t.get(pn,null,{optional:!0}),s=n?.phase??Jt.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(fn):null,c=t.get(Wa,null,{optional:!0}),l=new xs(o.impl,av(e,s),c?.view,r,a,i?.snapshot(null));return o.impl.register(l),l}var cv=()=>null;function tf(e,t,n=!1){return cv(e,t,n)}function nf(e,t){let n=e.contentQueries;if(n!==null){let r=b(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];Aa(i),a.contentQueries(2,t[s],s)}}}finally{b(r)}}}function Ns(e,t,n){Aa(0);let r=b(null);try{t(e,n)}finally{b(r)}}function qa(e,t,n){if(Sa(t)){let r=b(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{b(r)}}}var Le=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Le||{}),Qr;function lv(){if(Qr===void 0&&(Qr=null,Ue.trustedTypes))try{Qr=Ue.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qr}function zo(e){return lv()?.createHTML(e)||e}var Kr;function uv(){if(Kr===void 0&&(Kr=null,Ue.trustedTypes))try{Kr=Ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Kr}function hu(e){return uv()?.createHTML(e)||e}var qe=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Lu})`}},Rs=class extends qe{getTypeName(){return"HTML"}},As=class extends qe{getTypeName(){return"Style"}},Os=class extends qe{getTypeName(){return"Script"}},Ps=class extends qe{getTypeName(){return"URL"}},ks=class extends qe{getTypeName(){return"ResourceURL"}};function xe(e){return e instanceof qe?e.changingThisBreaksApplicationSecurity:e}function lt(e,t){let n=dv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Lu})`)}return n===t}function dv(e){return e instanceof qe&&e.getTypeName()||null}function rf(e){return new Rs(e)}function of(e){return new As(e)}function sf(e){return new Os(e)}function af(e){return new Ps(e)}function cf(e){return new ks(e)}function fv(e){let t=new Ls(e);return hv()?new Fs(t):t}var Fs=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(zo(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Ls=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=zo(t),n}};function hv(){try{return!!new window.DOMParser().parseFromString(zo(""),"text/html")}catch{return!1}}var pv=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Go(e){return e=String(e),e.match(pv)?e:"unsafe:"+e}function Ke(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function or(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var lf=Ke("area,br,col,hr,img,wbr"),uf=Ke("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),df=Ke("rp,rt"),gv=or(df,uf),mv=or(uf,Ke("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),vv=or(df,Ke("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),pu=or(lf,mv,vv,gv),ff=Ke("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),yv=Ke("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Dv=Ke("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),_v=or(ff,yv,Dv),wv=Ke("script,style,template"),Vs=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Cv(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Iv(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=gu(t).toLowerCase();if(!pu.hasOwnProperty(n))return this.sanitizedSomething=!0,!wv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!_v.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;ff[a]&&(c=Go(c)),this.buf.push(" ",s,'="',mu(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=gu(t).toLowerCase();pu.hasOwnProperty(n)&&!lf.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(mu(t))}};function Ev(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Iv(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw hf(t);return t}function Cv(e){let t=e.firstChild;if(t&&Ev(e,t))throw hf(t);return t}function gu(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function hf(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var bv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sv=/([^\#-~ |!])/g;function mu(e){return e.replace(/&/g,"&").replace(bv,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Sv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Jr;function Za(e,t){let n=null;try{Jr=Jr||fv(e);let r=t?String(t):"";n=Jr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Jr.getInertBodyElement(r)}while(r!==i);let a=new Vs().sanitizeChildren(vu(n)||n);return zo(a)}finally{if(n){let r=vu(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function vu(e){return"content"in e&&Tv(e)?e.content:null}function Tv(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Be=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}(Be||{});function TM(e){let t=pf();return t?hu(t.sanitize(Be.HTML,e)||""):lt(e,"HTML")?hu(xe(e)):Za(Kd(),Yn(e))}function MM(e){let t=pf();return t?t.sanitize(Be.URL,e)||"":lt(e,"URL")?xe(e):Go(Yn(e))}function pf(){let e=I();return e&&e[Ge].sanitizer}var Mv=/^>|^->|<!--|-->|--!>|<!-$/g,xv=/(<|>)/g,Nv="\u200B$1\u200B";function Rv(e){return e.replace(Mv,t=>t.replace(xv,Nv))}function Av(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 gf="ng-template";function Ov(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Av(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Ya(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 Ya(e){return e.type===4&&e.value!==gf}function Pv(e,t,n){let r=e.type===4&&!n?gf:e.value;return t===r}function kv(e,t,n){let r=4,o=e.attrs,i=o!==null?Vv(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Ee(r)&&!Ee(c))return!1;if(s&&Ee(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Pv(e,c,n)||c===""&&t.length===1){if(Ee(r))return!1;s=!0}}else if(r&8){if(o===null||!Ov(e,o,c,n)){if(Ee(r))return!1;s=!0}}else{let l=t[++a],u=Fv(c,o,Ya(e),n);if(u===-1){if(Ee(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Ee(r))return!1;s=!0}}}}return Ee(r)||s}function Ee(e){return(e&1)===0}function Fv(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 jv(t,e)}function Lv(e,t,n=!1){for(let r=0;r<t.length;r++)if(kv(e,t[r],n))return!0;return!1}function Vv(e){for(let t=0;t<e.length;t++){let n=e[t];if(_m(n))return t}return e.length}function jv(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 yu(e,t){return e?":not("+t.trim()+")":t}function Bv(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!==""&&!Ee(s)&&(t+=yu(i,o),o=""),r=s,i=i||!Ee(r);n++}return o!==""&&(t+=yu(i,o)),t}function Hv(e){return e.map(Bv).join(",")}function $v(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(!Ee(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Ne={};function Uv(e,t){return e.createText(t)}function zv(e,t,n){e.setValue(t,n)}function Gv(e,t){return e.createComment(Rv(t))}function mf(e,t,n){return e.createElement(t,n)}function Io(e,t,n,r,o){e.insertBefore(t,n,r,o)}function vf(e,t,n){e.appendChild(t,n)}function Du(e,t,n,r,o){r!==null?Io(e,t,n,r,o):vf(e,t,n)}function Wv(e,t,n){e.removeChild(null,t,n)}function qv(e,t,n){e.setAttribute(t,"style",n)}function Zv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function yf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Dm(e,t,r),o!==null&&Zv(e,t,o),i!==null&&qv(e,t,i)}function Qa(e,t,n,r,o,i,s,a,c,l,u){let d=H+r,h=d+o,f=Yv(d,h),p=typeof l=="function"?l():l;return f[y]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,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:p,incompleteFirstPass:!1,ssrId:u}}function Yv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ne);return n}function Qv(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Qa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ka(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Ze]=o,d[v]=r|4|128|8|64|1024,(l!==null||e&&e[v]&2048)&&(d[v]|=2048),hd(d),d[te]=d[ln]=e,d[$]=n,d[Ge]=s||e&&e[Ge],d[G]=a||e&&e[G],d[Fn]=c||e&&e[Fn]||null,d[Me]=i,d[Kn]=Wm(),d[kn]=u,d[id]=l,d[be]=t.type==2?e[be]:d,d}function Kv(e,t,n){let r=je(t,e),o=Qv(n),i=e[Ge].rendererFactory,s=Ja(e,Ka(e,o,null,Df(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Df(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function _f(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 Ja(e,t){return e[Ln]?e[Xl][Ce]=t:e[Ln]=t,e[Xl]=t,t}function Jv(e=1){wf(U(),I(),Qe()+e,!1)}function wf(e,t,n,r){if(!r)if((t[v]&3)===3){let i=e.preOrderCheckHooks;i!==null&&no(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ro(t,i,0,n)}Mt(n)}var Wo=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Wo||{});function js(e,t,n,r){let o=b(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Wo.SignalBased)!==0&&(c=t[i][ce]),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):ad(t,c,i,r)}finally{b(o)}}function Ef(e,t,n,r,o){let i=Qe(),s=r&2;try{Mt(-1),s&&t.length>H&&wf(e,t,H,!1),A(s?2:0,o),n(r,o)}finally{Mt(i),A(s?3:1,o)}}function qo(e,t,n){oy(e,t,n),(n.flags&64)===64&&iy(e,t,n)}function Xa(e,t,n=je){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 Xv(e,t,n,r){let i=r.get(nv,Jd)||n===Le.ShadowDom,s=e.selectRootElement(t,i);return ey(s),s}function ey(e){ty(e)}var ty=()=>null;function ny(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function If(e,t,n,r,o,i,s,a){if(!a&&tc(t,e,n,r,o)){un(t)&&ry(n,t.index);return}if(t.type&3){let c=je(t,n);r=ny(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function ry(e,t){let n=me(t,e);n[v]&16||(n[v]|=64)}function oy(e,t,n){let r=n.directiveStart,o=n.directiveEnd;un(n)&&Kv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Do(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Vn(t,e,s,n);if(Oe(c,t),i!==null&&ly(t,s-r,c,a,n,i),Fe(a)){let l=me(n.index,t);l[$]=Vn(t,e,s,n)}}}function iy(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=cm();try{Mt(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];ms(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&sy(c,l)}}finally{Mt(-1),ms(s)}}function sy(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function ec(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Lv(t,i.selectors,!1)&&(r??=[],Fe(i)?r.unshift(i):r.push(i))}return r}function ay(e,t,n,r,o,i){let s=je(e,t);cy(t[G],s,i,e.value,n,r,o)}function cy(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Yn(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function ly(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];js(r,n,c,l)}}function Cf(e,t){let n=e[Fn],r=n?n.get(Se,null):null;r&&r.handleError(t)}function tc(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],u=s[c+1],d=t.data[l];js(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];js(u,l,r,o),a=!0}return a}function uy(e,t){let n=me(t,e),r=n[y];dy(r,n);let o=n[Ze];o!==null&&n[kn]===null&&(n[kn]=tf(o,n[Fn])),A(18),nc(r,n,n[$]),A(19,n[$])}function dy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function nc(e,t,n){Oa(t);try{let r=e.viewQuery;r!==null&&Ns(1,r,n);let o=e.template;o!==null&&Ef(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[We]?.finishViewCreation(e),e.staticContentQueries&&nf(e,t),e.staticViewQueries&&Ns(2,e.viewQuery,n);let i=e.components;i!==null&&fy(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[v]&=-5,Pa()}}function fy(e,t){for(let n=0;n<t.length;n++)uy(e,t[n])}function Zo(e,t,n,r){let o=b(null);try{let i=t.tView,a=e[v]&4096?4096:16,c=Ka(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Ct]=l;let u=e[We];return u!==null&&(c[We]=u.createEmbeddedView(i)),nc(i,c,n),c}finally{b(o)}}function Bn(e,t){return!t||t.firstChild===null||Ud(e)}var hy;function rc(e,t){return hy(e,t)}var Ve=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ve||{});function bf(e){return(e.flags&32)===32}function Xt(e,t,n,r,o){if(r!=null){let i,s=!1;Ye(r)?i=r:ze(r)&&(s=!0,r=r[Ze]);let a=ue(r);e===0&&n!==null?o==null?vf(t,n,a):Io(t,n,a,o||null,!0):e===1&&n!==null?Io(t,n,a,o||null,!0):e===2?Wv(t,a,s):e===3&&t.destroyNode(a),i!=null&&by(t,e,i,n,o)}}function py(e,t){Sf(e,t),t[Ze]=null,t[Me]=null}function gy(e,t,n,r,o,i){r[Ze]=o,r[Me]=t,Ko(e,r,n,1,o,i)}function Sf(e,t){t[Ge].changeDetectionScheduler?.notify(9),Ko(e,t,t[G],2,null,null)}function my(e){let t=e[Ln];if(!t)return Ki(e[y],e);for(;t;){let n=null;if(ze(t))n=t[Ln];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[Ce]&&t!==e;)ze(t)&&Ki(t[y],t),t=t[te];t===null&&(t=e),ze(t)&&Ki(t[y],t),n=t&&t[Ce]}t=n}}function oc(e,t){let n=e[on],r=n.indexOf(t);n.splice(r,1)}function Yo(e,t){if(Jn(t))return;let n=t[G];n.destroyNode&&Ko(e,t,n,3,null,null),my(t)}function Ki(e,t){if(Jn(t))return;let n=b(null);try{t[v]&=-129,t[v]|=256,t[le]&&Vt(t[le]),yy(e,t),vy(e,t),t[y].type===1&&t[G].destroy();let r=t[Ct];if(r!==null&&Ye(t[te])){r!==t[te]&&oc(r,t);let o=t[We];o!==null&&o.detachView(e)}bs(t)}finally{b(n)}}function vy(e,t){let n=e.cleanup,r=t[fo];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[fo]=null);let o=t[rt];if(o!==null){t[rt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[bt];if(i!==null){t[bt]=null;for(let s of i)s.destroy()}}function yy(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 xt)){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];A(4,a,c);try{c.call(a)}finally{A(5,a,c)}}else{A(4,o,i);try{i.call(o)}finally{A(5,o,i)}}}}}function Dy(e,t,n){return _y(e,t.parent,n)}function _y(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ze];if(un(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Le.None||o===Le.Emulated)return null}return je(r,n)}function wy(e,t,n){return Iy(e,t,n)}function Ey(e,t,n){return e.type&40?je(e,n):null}var Iy=Ey,_u;function Qo(e,t,n,r){let o=Dy(e,r,t),i=t[G],s=r.parent||t[Me],a=wy(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Du(i,o,n[c],a,!1);else Du(i,o,n,a,!1);_u!==void 0&&_u(i,r,t,n,o)}function Nn(e,t){if(t!==null){let n=t.type;if(n&3)return je(t,e);if(n&4)return Bs(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Nn(e,r);{let o=e[t.index];return Ye(o)?Bs(-1,o):ue(o)}}else{if(n&128)return Nn(e,t.next);if(n&32)return rc(t,e)()||ue(e[t.index]);{let r=Tf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Tt(e[be]);return Nn(o,r)}else return Nn(e,t.next)}}}return null}function Tf(e,t){if(t!==null){let r=e[be][Me],o=t.projection;return r.projection[o]}return null}function Bs(e,t){let n=ee+e+1;if(n<t.length){let r=t[n],o=r[y].firstChild;if(o!==null)return Nn(r,o)}return t[St]}function ic(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Oe(ue(a),r),n.flags|=2),!bf(n))if(c&8)ic(e,t,n.child,r,o,i,!1),Xt(t,e,o,a,i);else if(c&32){let l=rc(n,r),u;for(;u=l();)Xt(t,e,o,u,i);Xt(t,e,o,a,i)}else c&16?Cy(e,t,r,n,o,i):Xt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Ko(e,t,n,r,o,i){ic(n,r,e.firstChild,t,o,i,!1)}function Cy(e,t,n,r,o,i){let s=n[be],c=s[Me].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Xt(t,e,o,u,i)}else{let l=c,u=s[te];Ud(r)&&(l.flags|=128),ic(e,t,l,u,o,i,!0)}}function by(e,t,n,r,o){let i=n[St],s=ue(n);i!==s&&Xt(t,e,r,i,o);for(let a=ee;a<n.length;a++){let c=n[a];Ko(c[y],c,e,t,r,i)}}function Sy(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Ve.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ve.Important),e.setStyle(n,r,o,i))}}function Co(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ue(i)),Ye(i)&&Ty(i,r);let s=n.type;if(s&8)Co(e,t,n.child,r);else if(s&32){let a=rc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Tf(t,n);if(Array.isArray(a))r.push(...a);else{let c=Tt(t[be]);Co(c[y],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Ty(e,t){for(let n=ee;n<e.length;n++){let r=e[n],o=r[y].firstChild;o!==null&&Co(r[y],r,o,t)}e[St]!==e[Ze]&&t.push(e[St])}function Mf(e){if(e[tn]!==null){for(let t of e[tn])t.impl.addSequence(t);e[tn].length=0}}var xf=[];function My(e){return e[le]??xy(e)}function xy(e){let t=xf.pop()??Object.create(Ry);return t.lView=e,t}function Ny(e){e.lView[le]!==e&&(e.lView=null,xf.push(e))}var Ry=X(J({},ht),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{dn(e.lView)},consumerOnSignalRead(){this.lView[le]=this}});function Ay(e){let t=e[le]??Object.create(Oy);return t.lView=e,t}var Oy=X(J({},ht),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Tt(e.lView);for(;t&&!Nf(t[y]);)t=Tt(t);t&&xa(t)},consumerOnSignalRead(){this.lView[le]=this}});function Nf(e){return e.type!==2}function Rf(e){if(e[bt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[bt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[v]&8192)}}var Py=100;function Af(e,t=!0,n=0){let o=e[Ge].rendererFactory,i=!1;i||o.begin?.();try{ky(e,n)}catch(s){throw t&&Cf(e,s),s}finally{i||o.end?.()}}function ky(e,t){let n=_d();try{go(!0),Hs(e,t);let r=0;for(;jo(e);){if(r===Py)throw new _(103,!1);r++,Hs(e,1)}}finally{go(n)}}function Fy(e,t,n,r){if(Jn(t))return;let o=t[v],i=!1,s=!1;Oa(t);let a=!0,c=null,l=null;i||(Nf(e)?(l=My(t),c=Lt(l)):ol()===null?(a=!1,l=Ay(t),c=Lt(l)):t[le]&&(Vt(t[le]),t[le]=null));try{hd(t),im(e.bindingStartIndex),n!==null&&Ef(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&no(t,f,null)}else{let f=e.preOrderHooks;f!==null&&ro(t,f,0,null),qi(t,0)}if(s||Ly(t),Rf(t),Of(t,0),e.contentQueries!==null&&nf(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&no(t,f)}else{let f=e.contentHooks;f!==null&&ro(t,f,1),qi(t,1)}jy(e,t);let d=e.components;d!==null&&kf(t,d,0);let h=e.viewQuery;if(h!==null&&Ns(2,h,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&no(t,f)}else{let f=e.viewHooks;f!==null&&ro(t,f,2),qi(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[to]){for(let f of t[to])f();t[to]=null}i||(Mf(t),t[v]&=-73)}catch(u){throw i||dn(t),u}finally{l!==null&&(_n(l,c),a&&Ny(l)),Pa()}}function Of(e,t){for(let n=qd(e);n!==null;n=Zd(n))for(let r=ee;r<n.length;r++){let o=n[r];Pf(o,t)}}function Ly(e){for(let t=qd(e);t!==null;t=Zd(t)){if(!(t[v]&2))continue;let n=t[on];for(let r=0;r<n.length;r++){let o=n[r];xa(o)}}}function Vy(e,t,n){A(18);let r=me(t,e);Pf(r,n),A(19,r[$])}function Pf(e,t){Ma(e)&&Hs(e,t)}function Hs(e,t){let r=e[y],o=e[v],i=e[le],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&wn(i)),s||=!1,i&&(i.dirty=!1),e[v]&=-9217,s)Fy(r,e,r.template,e[$]);else if(o&8192){Rf(e),Of(e,1);let a=r.components;a!==null&&kf(e,a,1),Mf(e)}}function kf(e,t,n){for(let r=0;r<t.length;r++)Vy(e,t[r],n)}function jy(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)Mt(~o);else{let i=o,s=n[++r],a=n[++r];am(s,i);let c=t[i];A(24,c),a(2,c),A(25,c)}}}finally{Mt(-1)}}function sc(e,t){let n=_d()?64:1088;for(e[Ge].changeDetectionScheduler?.notify(t);e;){e[v]|=n;let r=Tt(e);if(po(e)&&!r)return e;e=r}return null}function Ff(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Lf(e,t){let n=ee+t;if(n<e.length)return e[n]}function Jo(e,t,n,r=!0){let o=t[y];if(By(o,t,e,n),r){let s=Bs(n,e),a=t[G],c=a.parentNode(e[St]);c!==null&&gy(o,e[Me],a,t,c,s)}let i=t[kn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Vf(e,t){let n=Hn(e,t);return n!==void 0&&Yo(n[y],n),n}function Hn(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n];if(r){let o=r[Ct];o!==null&&o!==e&&oc(o,r),t>0&&(e[n-1][Ce]=r[Ce]);let i=lo(e,ee+t);py(r[y],r);let s=i[We];s!==null&&s.detachView(i[y]),r[te]=null,r[Ce]=null,r[v]&=-129}return r}function By(e,t,n,r){let o=ee+r,i=n.length;r>0&&(n[o-1][Ce]=t),r<i-ee?(t[Ce]=n[o],Zu(n,ee+r,t)):(n.push(t),t[Ce]=null),t[te]=n;let s=t[Ct];s!==null&&n!==s&&jf(s,t);let a=t[We];a!==null&&a.insertView(e),ps(t),t[v]|=128}function jf(e,t){let n=e[on],r=t[te];if(ze(r))e[v]|=2;else{let o=r[te][be];t[be]!==o&&(e[v]|=2)}n===null?e[on]=[t]:n.push(t)}var Nt=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[y];return Co(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[$]}get dirty(){return!!(this._lView[v]&9280)||!!this._lView[le]?.dirty}set context(t){this._lView[$]=t}get destroyed(){return Jn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[te];if(Ye(t)){let n=t[ho],r=n?n.indexOf(this):-1;r>-1&&(Hn(t,r),lo(n,r))}this._attachedToViewContainer=!1}Yo(this._lView[y],this._lView)}onDestroy(t){pd(this._lView,t)}markForCheck(){sc(this._cdRefInjectingView||this._lView,4)}markForRefresh(){xa(this._cdRefInjectingView||this._lView)}detach(){this._lView[v]&=-129}reattach(){ps(this._lView),this._lView[v]|=128}detectChanges(){this._lView[v]|=1024,Af(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=po(this._lView),n=this._lView[Ct];n!==null&&!t&&oc(n,this._lView),Sf(this._lView[y],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;let n=po(this._lView),r=this._lView[Ct];r!==null&&!n&&jf(r,this._lView),ps(this._lView)}},Rt=(()=>{class e{static __NG_ELEMENT_ID__=Uy}return e})(),Hy=Rt,$y=class extends Hy{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Zo(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Nt(o)}};function Uy(){return Xo(de(),I())}function Xo(e,t){return e.type&4?new $y(t,e,hn(e,t)):null}function ir(e,t,n,r,o){let i=e.data[t];if(i===null)i=zy(e,t,n,r,o),sm()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=om();i.injectorIndex=s===null?-1:s.injectorIndex}return at(i,!0),i}function zy(e,t,n,r,o){let i=vd(),s=Ra(),a=s?i:i&&i.parent,c=e.data[t]=Wy(e,a,n,t,r,o);return Gy(e,c,i,s),c}function Gy(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 Wy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return tm()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var NM=new RegExp(`^(\\d+)*(${tv}|${ev})*(.*)`);var qy=()=>null;function $n(e,t){return qy(e,t)}var $s=class{},bo=class{},Us=class{resolveComponentFactory(t){throw Error(`No component factory found for ${ge(t)}.`)}},Un=class{static NULL=new Us},ve=class{},sr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Zy()}return e})();function Zy(){let e=I(),t=de(),n=me(t.index,e);return(ze(n)?n:e)[G]}var Yy=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:()=>null})}return e})();function zs(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=ss(o,a);else if(i==2){let c=a,l=t[++s];r=ss(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function ne(e,t=T.Default){let n=I();if(n===null)return x(e,t);let r=de();return Fd(r,n,Y(e),t)}function ac(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,l=null,u=Ky(s);u===null?a=s:[a,c,l]=u,eD(e,t,n,a,i,c,l)}i!==null&&r!==null&&Qy(n,r,i)}function Qy(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new _(-301,!1);r.push(t[o],i)}}function Ky(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&Fe(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,Jy(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function Jy(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function Xy(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function eD(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let f=r[h];!c&&Fe(f)&&(c=!0,Xy(e,n,h)),Ds(Do(n,t),e,f.type)}sD(n,e.data.length,a);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=_f(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=sn(n.mergedAttrs,f.hostAttrs),nD(e,n,t,d,f),iD(d,f,o),s!==null&&s.has(f)){let[m,M]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,M+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let p=f.type.prototype;!l&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}tD(e,n,i)}function tD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))wu(0,t,o,r),wu(1,t,o,r),Iu(t,r,!1);else{let i=n.get(o);Eu(0,t,i,r),Eu(1,t,i,r),Iu(t,r,!0)}}}function wu(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Bf(t,i)}}function Eu(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Bf(t,s)}}function Bf(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Iu(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Ya(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function nD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Et(o.type,!0)),s=new xt(i,Fe(o),ne);e.blueprint[r]=s,n[r]=s,rD(e,t,r,_f(e,n,o.hostVars,Ne),o)}function rD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;oD(s)!=a&&s.push(a),s.push(n,r,i)}}function oD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function iD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Fe(t)&&(n[""]=e)}}function sD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Hf(e,t,n,r,o,i,s,a){let c=t.consts,l=ot(c,s),u=ir(t,e,2,r,l);return i&&ac(t,n,u,ot(c,a),o),u.mergedAttrs=sn(u.mergedAttrs,u.attrs),u.attrs!==null&&zs(u,u.attrs,!1),u.mergedAttrs!==null&&zs(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function $f(e,t){Fa(e,t),Sa(t)&&e.queries.elementEnd(t)}var Gs=class extends Un{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=It(t);return new zn(n,this.ngModule)}};function aD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Wo.SignalBased)!==0};return o&&(i.transform=o),i})}function cD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function lD(e,t,n){let r=t instanceof ke?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new vs(n,r):n}function uD(e){let t=e.get(ve,null);if(t===null)throw new _(407,!1);let n=e.get(Yy,null),r=e.get(it,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function dD(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return mf(t,n,n==="svg"?dd:n==="math"?Wg:null)}var zn=class extends bo{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return aD(this.componentDef.inputs)}get outputs(){return cD(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Hv(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){A(22);let i=b(null);try{let s=this.componentDef,a=r?["ng-version","19.2.0"]:$v(this.componentDef.selectors[0]),c=Qa(0,null,null,1,0,null,null,null,null,[a],null),l=lD(s,o||this.ngModule,t),u=uD(l),d=u.rendererFactory.createRenderer(null,s),h=r?Xv(d,r,s.encapsulation,l):dD(s,d),f=Ka(null,c,null,512|Df(s),null,null,u,d,l,null,tf(h,l,!0));f[H]=h,Oa(f);let p=null;try{let m=Hf(H,c,f,"#host",()=>[this.componentDef],!0,0);h&&(yf(d,h,m),Oe(h,f)),qo(c,f,m),qa(c,m,f),$f(c,m),n!==void 0&&fD(m,this.ngContentSelectors,n),p=me(m.index,f),f[$]=p[$],nc(c,f,null)}catch(m){throw p!==null&&bs(p),bs(f),m}finally{A(23),Pa()}return new Ws(this.componentType,f)}finally{b(i)}}},Ws=class extends $s{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Ta(n[y],H),this.location=hn(this._tNode,n),this.instance=me(this._tNode.index,n)[$],this.hostView=this.changeDetectorRef=new Nt(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=tc(r,o[y],o,t,n);this.previousInputValues.set(t,n);let s=me(r.index,o);sc(s,1)}get injector(){return new wt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function fD(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 ut=(()=>{class e{static __NG_ELEMENT_ID__=hD}return e})();function hD(){let e=de();return zf(e,I())}var pD=ut,Uf=class extends pD{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return hn(this._hostTNode,this._hostLView)}get injector(){return new wt(this._hostTNode,this._hostLView)}get parentInjector(){let t=La(this._hostTNode,this._hostLView);if(Nd(t)){let n=vo(t,this._hostLView),r=mo(t),o=n[y].data[r+8];return new wt(o,n)}else return new wt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Cu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ee}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=$n(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Bn(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!$g(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?t:new zn(It(t)),l=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?l:this.parentInjector).get(ke,null);m&&(i=m)}let u=It(c.componentType??{}),d=$n(this._lContainer,u?.id??null),h=d?.firstChild??null,f=c.create(l,o,h,i);return this.insertImpl(f.hostView,a,Bn(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Zg(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[te],l=new Uf(c,c[Me],c[te]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Jo(s,o,i,r),t.attachToViewContainerRef(),Zu(Ji(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Cu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Hn(this._lContainer,n);r&&(lo(Ji(this._lContainer),n),Yo(r[y],r))}detach(t){let n=this._adjustIndex(t,-1),r=Hn(this._lContainer,n);return r&&lo(Ji(this._lContainer),n)!=null?new Nt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Cu(e){return e[ho]}function Ji(e){return e[ho]||(e[ho]=[])}function zf(e,t){let n,r=t[e.index];return Ye(r)?n=r:(n=Ff(r,t,null,e),t[e.index]=n,Ja(t,n)),mD(n,t,e,r),new Uf(n,e,t)}function gD(e,t){let n=e[G],r=n.createComment(""),o=je(t,e),i=n.parentNode(o);return Io(n,i,r,n.nextSibling(o),!1),r}var mD=DD,vD=()=>!1;function yD(e,t,n){return vD(e,t,n)}function DD(e,t,n,r){if(e[St])return;let o;n.type&8?o=ue(r):o=gD(t,n),e[St]=o}var qs=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Zs=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++)cc(t,n).matches!==null&&this.queries[n].setDirty()}},Ys=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=TD(t):this.predicate=t}},Qs=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)}},Ks=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,_D(n,i)),this.matchTNodeWithReadOption(t,n,oo(n,t,i,!1,!1))}else r===Rt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,oo(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===fe||o===ut||o===Rt&&n.type&4)this.addMatch(n.index,-2);else{let i=oo(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 _D(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 wD(e,t){return e.type&11?hn(e,t):e.type&4?Xo(e,t):null}function ED(e,t,n,r){return n===-1?wD(t,e):n===-2?ID(e,t,r):Vn(e,e[y],n,t)}function ID(e,t,n){if(n===fe)return hn(t,e);if(n===Rt)return Xo(t,e);if(n===ut)return zf(t,e)}function Gf(e,t,n,r){let o=t[We].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 u=i[l];a.push(ED(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Js(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Gf(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],u=t[-c];for(let d=ee;d<u.length;d++){let h=u[d];h[Ct]===h[te]&&Js(h[y],h,l,r)}if(u[on]!==null){let d=u[on];for(let h=0;h<d.length;h++){let f=d[h];Js(f[y],f,l,r)}}}}}return r}function CD(e,t){return e[We].queries[t].queryList}function bD(e,t,n){let r=new Cs((n&4)===4);return Kg(e,t,r,r.destroy),(t[We]??=new Zs).queries.push(new qs(r))-1}function SD(e,t,n){let r=U();return r.firstCreatePass&&(MD(r,new Ys(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),bD(r,I(),t)}function TD(e){return e.split(",").map(t=>t.trim())}function MD(e,t,n){e.queries===null&&(e.queries=new Qs),e.queries.track(new Ks(t,n))}function cc(e,t){return e.queries.getByIndex(t)}function xD(e,t){let n=e[y],r=cc(n,t);return r.crossesNgTemplate?Js(n,e,t,[]):Gf(n,e,r,t)}var an=class{};var So=class extends an{injector;componentFactoryResolver=new Gs(this);instance=null;constructor(t){super();let n=new Pn([...t.providers,{provide:an,useValue:this},{provide:Un,useValue:this.componentFactoryResolver}],t.parent||ko(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function ND(e,t,n=null){return new So({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var RD=(()=>{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=Xu(!1,n.type),o=r.length>0?ND([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(x(ke))})}return e})();function lc(e){return qn(()=>{let t=Wf(e),n=X(J({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===zd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(RD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Le.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ct("NgStandalone"),qf(n);let r=e.dependencies;return n.directiveDefs=bu(r,!1),n.pipeDefs=bu(r,!0),n.id=FD(n),n})}function AD(e){return It(e)||Ca(e)}function OD(e){return e!==null}function ar(e){return qn(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function PD(e,t){if(e==null)return Pe;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Wo.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function kD(e){if(e==null)return Pe;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Pt(e){return qn(()=>{let t=Wf(e);return qf(t),t})}function ei(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 Wf(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Pe,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:PD(e.inputs,t),outputs:kD(e.outputs),debugInfo:null}}function qf(e){e.features?.forEach(t=>t(e))}function bu(e,t){if(!e)return null;let n=t?Ku:AD;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(OD)}function FD(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function LD(e){return Object.getPrototypeOf(e.prototype).constructor}function Zf(e){let t=LD(e.type),n=!0,r=[e];for(;t;){let o;if(Fe(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Xi(e.inputs),s.declaredInputs=Xi(e.declaredInputs),s.outputs=Xi(e.outputs);let a=o.hostBindings;a&&$D(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&BD(e,c),l&&HD(e,l),VD(e,o),ag(e.outputs,o.outputs),Fe(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Zf&&(n=!1)}}t=Object.getPrototypeOf(t)}jD(r)}function VD(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function jD(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=sn(o.hostAttrs,n=sn(n,o.hostAttrs))}}function Xi(e){return e===Pe?{}:e===re?[]:e}function BD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function HD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function $D(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function AM(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.findHostDirectiveDefs=Yf,n.hostDirectives=r?e.map(Xs):[e]):r?n.hostDirectives.unshift(...e.map(Xs)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function Yf(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives)if(typeof r=="function"){let o=r();for(let i of o)Su(Xs(i),t,n)}else Su(r,t,n)}function Su(e,t,n){let r=Ca(e.directive);UD(r.declaredInputs,e.inputs),Yf(r,t,n),n.set(r,e),t.push(r)}function Xs(e){return typeof e=="function"?{directive:Y(e),inputs:Pe,outputs:Pe}:{directive:Y(e.directive),inputs:Tu(e.inputs),outputs:Tu(e.outputs)}}function Tu(e){if(e===void 0||e.length===0)return Pe;let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function UD(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o}}function Qf(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function uc(e,t,n){return e[t]=n}function Te(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Kf(e,t,n,r){let o=Te(e,t,n);return Te(e,t+1,r)||o}function zD(e,t,n,r,o){let i=Kf(e,t,n,r);return Te(e,t+2,o)||i}function GD(e,t,n,r,o,i,s,a,c){let l=t.consts,u=ir(t,e,4,s||null,a||null);Na()&&ac(t,n,u,ot(l,c),ec),u.mergedAttrs=sn(u.mergedAttrs,u.attrs),Fa(t,u);let d=u.tView=Qa(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}function ea(e,t,n,r,o,i,s,a,c,l){let u=n+H,d=t.firstCreatePass?GD(u,t,e,r,o,i,s,a,c):t.data[u];at(d,!1);let h=qD(t,e,d,n);Bo()&&Qo(t,e,h,d),Oe(h,e);let f=Ff(h,e,h,d);return e[u]=f,Ja(e,f),yD(f,d,e),Lo(d)&&qo(t,e,d),c!=null&&Xa(e,d,l),d}function WD(e,t,n,r,o,i,s,a){let c=I(),l=U(),u=ot(l.consts,i);return ea(c,l,e,t,n,r,o,u,s,a),WD}var qD=ZD;function ZD(e,t,n,r){return Ho(!0),t[G].createComment("")}var Jf=new E("");var Xf=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:()=>new To})}return e})(),To=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function dc(e){return!!e&&typeof e.then=="function"}function eh(e){return!!e&&typeof e.subscribe=="function"}var YD=new E("");var th=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g(YD,{optional:!0})??[];injector=g(K);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=rd(this.injector,o);if(dc(i))n.push(i);else if(eh(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=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),QD=new E("");function KD(){gl(()=>{throw new _(600,!1)})}function JD(e){return e.isBoundToModule}var XD=10;var st=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(jm);afterRenderManager=g(Xd);zonelessEnabled=g($o);rootEffectScheduler=g(Xf);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new S;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=g(nr).hasPendingTasks.pipe($e(n=>!n));constructor(){g(pn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g(ke);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){A(10);let o=n instanceof bo;if(!this._injector.get(th).done){let h=!o&&Ng(n),f=!1;throw new _(405,f)}let s;o?s=n:s=this._injector.get(Un).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=JD(s)?void 0:this._injector.get(an),c=r||s.selector,l=s.create(K.NULL,[],c,a),u=l.location.nativeElement,d=l.injector.get(Jf,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),io(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),A(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){A(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ga.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,b(n),this.afterTick.next(),A(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ve,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<XD;)A(14),this.synchronizeOnce(),A(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)e_(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>jo(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;io(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(QD,[]).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),()=>io(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function io(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function e_(e,t,n,r){if(!n&&!jo(e))return;Af(e,t,n&&!r?0:1)}function nh(e,t,n,r){let o=I(),i=tr();if(Te(o,i,t)){let s=U(),a=ka();ay(a,o,e,t,n,r)}return nh}function fc(e,t,n,r){return Te(e,tr(),n)?t+Yn(n)+r:Ne}function Xr(e,t){return e<<17|t<<2}function At(e){return e>>17&32767}function t_(e){return(e&2)==2}function n_(e,t){return e&131071|t<<17}function ta(e){return e|2}function cn(e){return(e&131068)>>2}function es(e,t){return e&-131069|t<<2}function r_(e){return(e&1)===1}function na(e){return e|1}function o_(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=At(s),c=cn(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Qn(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=At(e[a+1]);e[r+1]=Xr(h,a),h!==0&&(e[h+1]=es(e[h+1],r)),e[a+1]=n_(e[a+1],r)}else e[r+1]=Xr(a,0),a!==0&&(e[a+1]=es(e[a+1],r)),a=r;else e[r+1]=Xr(c,0),a===0?a=r:e[c+1]=es(e[c+1],r),c=r;l&&(e[r+1]=ta(e[r+1])),Mu(e,u,r,!0),Mu(e,u,r,!1),i_(t,u,e,r,i),s=Xr(a,c),i?t.classBindings=s:t.styleBindings=s}function i_(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Qn(i,t)>=0&&(n[r+1]=na(n[r+1]))}function Mu(e,t,n,r){let o=e[n+1],i=t===null,s=r?At(o):cn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];s_(c,t)&&(a=!0,e[s+1]=r?na(l):ta(l)),s=r?At(l):cn(l)}a&&(e[n+1]=r?ta(o):na(o))}function s_(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Qn(e,t)>=0:!1}var Ie={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function a_(e){return e.substring(Ie.key,Ie.keyEnd)}function c_(e){return l_(e),rh(e,oh(e,0,Ie.textEnd))}function rh(e,t){let n=Ie.textEnd;return n===t?-1:(t=Ie.keyEnd=u_(e,Ie.key=t,n),oh(e,t,n))}function l_(e){Ie.key=0,Ie.keyEnd=0,Ie.value=0,Ie.valueEnd=0,Ie.textEnd=e.length}function oh(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function u_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function d_(e,t,n){let r=I(),o=tr();if(Te(r,o,t)){let i=U(),s=ka();If(i,s,r,e,t,r[G],n,!1)}return d_}function ra(e,t,n,r,o){tc(t,e,n,o?"class":"style",r)}function hc(e,t,n){return sh(e,t,n,!1),hc}function ti(e,t){return sh(e,t,null,!0),ti}function OM(e){ah(v_,ih,e,!0)}function ih(e,t){for(let n=c_(t);n>=0;n=rh(t,n))Oo(e,a_(t),!0)}function sh(e,t,n,r){let o=I(),i=U(),s=wd(2);if(i.firstUpdatePass&&lh(i,e,s,r),t!==Ne&&Te(o,s,t)){let a=i.data[Qe()];uh(i,a,o,o[G],e,o[s+1]=D_(t,n),r,s)}}function ah(e,t,n,r){let o=U(),i=wd(2);o.firstUpdatePass&&lh(o,null,i,r);let s=I();if(n!==Ne&&Te(s,i,n)){let a=o.data[Qe()];if(dh(a,r)&&!ch(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=ss(c,n||"")),ra(o,a,s,n,r)}else y_(o,a,s,s[G],s[i+1],s[i+1]=m_(e,t,n),r,i)}}function ch(e,t){return t>=e.expandoStartIndex}function lh(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Qe()],s=ch(e,n);dh(i,r)&&t===null&&!s&&(t=!1),t=f_(o,i,t,r),o_(o,i,t,n,s,r)}}function f_(e,t,n,r){let o=lm(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ts(null,e,t,n,r),n=Gn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ts(o,e,t,n,r),i===null){let c=h_(e,t,r);c!==void 0&&Array.isArray(c)&&(c=ts(null,e,t,c[1],r),c=Gn(c,t.attrs,r),p_(e,t,r,c))}else i=g_(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function h_(e,t,n){let r=n?t.classBindings:t.styleBindings;if(cn(r)!==0)return e[At(r)]}function p_(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[At(o)]=r}function g_(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Gn(r,s,n)}return Gn(r,t.attrs,n)}function ts(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=Gn(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Gn(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]),Oo(e,s,n?!0:t[++i]))}return e===void 0?null:e}function m_(e,t,n){if(n==null||n==="")return re;let r=[],o=xe(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function v_(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Oo(e,r,n)}function y_(e,t,n,r,o,i,s,a){o===Ne&&(o=re);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let h=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,p=null,m;u===d?(c+=2,l+=2,h!==f&&(p=d,m=f)):d===null||u!==null&&u<d?(c+=2,p=u):(l+=2,p=d,m=f),p!==null&&uh(e,t,n,r,p,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function uh(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=r_(l)?xu(c,t,n,o,cn(l),s):void 0;if(!Mo(u)){Mo(i)||t_(l)&&(i=xu(c,null,n,o,a,s));let d=fd(Qe(),n);Sy(r,s,d,o,i)}}function xu(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[o+1];h===Ne&&(h=d?re:void 0);let f=d?Gi(h,r):u===r?h:void 0;if(l&&!Mo(f)&&(f=Gi(c,r)),Mo(f)&&(a=f,s))return a;let p=e[o+1];o=s?At(p):cn(p)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Gi(c,r))}return a}function Mo(e){return e!==void 0}function D_(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ge(xe(e)))),e}function dh(e,t){return(e.flags&(t?8:16))!==0}function PM(e,t,n){let r=I(),o=fc(r,e,t,n);ah(Oo,ih,o,!0)}var oa=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 ns(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function __(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=ns(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let h=e.at(s),f=t[c],p=ns(s,h,c,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,c--;continue}let m=n(i,l),M=n(s,h),N=n(i,u);if(Object.is(N,M)){let se=n(c,f);Object.is(se,m)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new xo,o??=Ru(e,i,s,n),ia(e,r,i,N))e.updateValue(i,u),i++,s++;else if(o.has(N))r.set(m,e.detach(i)),s--;else{let se=e.create(i,t[i]);e.attach(i,se),i++,s++}}for(;i<=c;)Nu(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,h=ns(i,u,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new xo,o??=Ru(e,i,s,n);let f=n(i,d);if(ia(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let p=n(i,u);r.set(p,e.detach(i)),s--}}}for(;!l.done;)Nu(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function ia(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Nu(e,t,n,r,o){if(ia(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Ru(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 xo=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 kM(e,t){ct("NgControlFlow");let n=I(),r=tr(),o=n[r]!==Ne?n[r]:-1,i=o!==-1?No(n,H+o):void 0,s=0;if(Te(n,r,e)){let a=b(null);try{if(i!==void 0&&Vf(i,s),e!==-1){let c=H+e,l=No(n,c),u=la(n[y],c),d=$n(l,u.tView.ssrId),h=Zo(n,u,t,{dehydratedView:d});Jo(l,h,s,Bn(u,d))}}finally{b(a)}}else if(i!==void 0){let a=Lf(i,s);a!==void 0&&(a[$]=t)}}var sa=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ee}};function FM(e,t){return t}var aa=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function LM(e,t,n,r,o,i,s,a,c,l,u,d,h){ct("NgControlFlow");let f=I(),p=U(),m=c!==void 0,M=I(),N=a?s.bind(M[be][$]):s,se=new aa(m,N);M[H+e]=se,ea(f,p,e+1,t,n,r,o,ot(p.consts,i)),m&&ea(f,p,e+2,c,l,u,d,ot(p.consts,h))}var ca=class extends oa{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-ee}at(t){return this.getLView(t)[$].$implicit}attach(t,n){let r=n[kn];this.needsIndexUpdate||=t!==this.length,Jo(this.lContainer,n,t,Bn(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,w_(this.lContainer,t)}create(t,n){let r=$n(this.lContainer,this.templateTNode.tView.ssrId),o=Zo(this.hostLView,this.templateTNode,new sa(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Yo(t[y],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[$].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[$].$index=t}getLView(t){return E_(this.lContainer,t)}};function VM(e){let t=b(null),n=Qe();try{let r=I(),o=r[y],i=r[n],s=n+1,a=No(r,s);if(i.liveCollection===void 0){let l=la(o,s);i.liveCollection=new ca(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(__(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=tr(),u=c.length===0;if(Te(r,l,u)){let d=n+2,h=No(r,d);if(u){let f=la(o,d),p=$n(h,f.tView.ssrId),m=Zo(r,f,void 0,{dehydratedView:p});Jo(h,m,0,Bn(f,p))}else Vf(h,0)}}}finally{b(t)}}function No(e,t){return e[t]}function w_(e,t){return Hn(e,t)}function E_(e,t){return Lf(e,t)}function la(e,t){return Ta(e,t)}function pc(e,t,n,r){let o=I(),i=U(),s=H+e,a=o[G],c=i.firstCreatePass?Hf(s,i,o,t,ec,Na(),n,r):i.data[s],l=I_(i,o,c,a,t,e);o[s]=l;let u=Lo(c);return at(c,!0),yf(a,l,c),!bf(c)&&Bo()&&Qo(i,o,l,c),(Jg()===0||u)&&Oe(l,o),Xg(),u&&(qo(i,o,c),qa(i,c,o)),r!==null&&Xa(o,c),pc}function gc(){let e=de();Ra()?yd():(e=e.parent,at(e,!1));let t=e;nm(t)&&rm(),em();let n=U();return n.firstCreatePass&&$f(n,t),t.classesWithoutHost!=null&&vm(t)&&ra(n,t,I(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&ym(t)&&ra(n,t,I(),t.stylesWithoutHost,!1),gc}function fh(e,t,n,r){return pc(e,t,n,r),gc(),fh}var I_=(e,t,n,r,o,i)=>(Ho(!0),mf(r,o,hm()));function C_(e,t,n,r,o){let i=t.consts,s=ot(i,r),a=ir(t,e,8,"ng-container",s);s!==null&&zs(a,s,!0);let c=ot(i,o);return Na()&&ac(t,n,a,c,ec),a.mergedAttrs=sn(a.mergedAttrs,a.attrs),t.queries!==null&&t.queries.elementStart(t,a),a}function hh(e,t,n){let r=I(),o=U(),i=e+H,s=o.firstCreatePass?C_(i,o,r,t,n):o.data[i];at(s,!0);let a=S_(o,r,s,e);return r[i]=a,Bo()&&Qo(o,r,a,s),Oe(a,r),Lo(s)&&(qo(o,r,s),qa(o,s,r)),n!=null&&Xa(r,s),hh}function ph(){let e=de(),t=U();return Ra()?yd():(e=e.parent,at(e,!1)),t.firstCreatePass&&(Fa(t,e),Sa(e)&&t.queries.elementEnd(e)),ph}function b_(e,t,n){return hh(e,t,n),ph(),b_}var S_=(e,t,n,r)=>(Ho(!0),Gv(t[G],""));function jM(){return I()}var _t=void 0;function T_(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var M_=["en",[["a","p"],["AM","PM"],_t],[["AM","PM"],_t,_t],[["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"]],_t,[["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"]],_t,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_t,"{1} 'at' {0}",_t],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",T_],rs={};function ye(e){let t=x_(e),n=Au(t);if(n)return n;let r=t.split("-")[0];if(n=Au(r),n)return n;if(r==="en")return M_;throw new _(701,!1)}function Au(e){return e in rs||(rs[e]=Ue.ng&&Ue.ng.common&&Ue.ng.common.locales&&Ue.ng.common.locales[e]),rs[e]}var z=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(z||{});function x_(e){return e.toLowerCase().replace(/_/g,"-")}var Ro="en-US";var N_=Ro;function R_(e){typeof e=="string"&&(N_=e.toLowerCase().replace(/_/g,"-"))}var A_=(e,t,n)=>{};function O_(e,t,n,r){let o=I(),i=U(),s=de();return k_(i,o,o[G],s,e,t,r),O_}function P_(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[fo],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function k_(e,t,n,r,o,i,s){let a=Lo(r),l=e.firstCreatePass?md(e):null,u=t[$],d=gd(t),h=!0;if(r.type&3||s){let f=je(r,t),p=s?s(f):f,m=d.length,M=s?se=>s(ue(se[r.index])):r.index,N=null;if(!s&&a&&(N=P_(e,t,o,r.index)),N!==null){let se=N.__ngLastListenerFn__||N;se.__ngNextListenerFn__=i,N.__ngLastListenerFn__=i,h=!1}else{i=ku(r,t,u,i),A_(f,o,i);let se=n.listen(p,o,i);d.push(i,se),l&&l.push(o,M,m,m+1)}}else i=ku(r,t,u,i);if(h){let f=r.outputs?.[o],p=r.hostDirectiveOutputs?.[o];if(p&&p.length)for(let m=0;m<p.length;m+=2){let M=p[m],N=p[m+1];Ou(r,e,t,M,N,o,i,d,l)}if(f&&f.length)for(let m of f)Ou(r,e,t,m,o,o,i,d,l)}}function Ou(e,t,n,r,o,i,s,a,c){let l=n[r],d=t.data[r].outputs[o],f=l[d].subscribe(s),p=a.length;a.push(s,f),c&&c.push(i,e.index,p,-(p+1))}function Pu(e,t,n,r){let o=b(null);try{return A(6,t,n),n(r)!==!1}catch(i){return Cf(e,i),!1}finally{A(7,t,n),b(o)}}function ku(e,t,n,r){return function o(i){if(i===Function)return r;let s=un(e)?me(e.index,t):t;sc(s,5);let a=Pu(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Pu(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function BM(e=1){return dm(e)}function F_(e,t,n){return gh(e,"",t,"",n),F_}function gh(e,t,n,r,o){let i=I(),s=fc(i,t,n,r);if(s!==Ne){let a=U(),c=ka();If(a,c,i,e,s,i[G],o,!1)}return gh}function L_(e,t,n){SD(e,t,n)}function V_(e){let t=I(),n=U(),r=Ed();Aa(r+1);let o=cc(n,r);if(e.dirty&&qg(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=xD(t,r);e.reset(i,$m),e.notifyOnChanges()}return!0}return!1}function j_(){return CD(I(),Ed())}function mc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function HM(e){let t=Dd();return Vo(t,H+e)}function $M(e,t=""){let n=I(),r=U(),o=e+H,i=r.firstCreatePass?ir(r,o,1,t,null):r.data[o],s=B_(r,n,i,t,e);n[o]=s,Bo()&&Qo(r,n,s,i),at(i,!1)}var B_=(e,t,n,r,o)=>(Ho(!0),Uv(t[G],r));function H_(e){return mh("",e,""),H_}function mh(e,t,n){let r=I(),o=fc(r,e,t,n);return o!==Ne&&$_(r,Qe(),o),mh}function $_(e,t,n){let r=fd(t,e);zv(e[G],r,n)}var vh={};function U_(e){let t=U(),n=I(),r=e+H,o=ir(t,r,128,null,null);return at(o,!1),mc(t,n,r,vh),U_}function UM(e){ct("NgLet");let t=U(),n=I(),r=Qe();return mc(t,n,r,e),e}function zM(e){let t=Dd(),n=Vo(t,H+e);if(n===vh)throw new _(314,!1);return n}function z_(e,t,n){let r=U();if(r.firstCreatePass){let o=Fe(e);ua(n,r.data,r.blueprint,o,!0),ua(t,r.data,r.blueprint,o,!1)}}function ua(e,t,n,r,o){if(e=Y(e),Array.isArray(e))for(let i=0;i<e.length;i++)ua(e[i],t,n,r,o);else{let i=U(),s=I(),a=de(),c=rn(e)?e:Y(e.provide),l=nd(e),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(rn(e)||!e.multi){let f=new xt(l,o,ne),p=is(c,t,o?u:u+h,d);p===-1?(Ds(Do(a,s),i,c),os(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=is(c,t,u+h,d),p=is(c,t,u,u+h),m=f>=0&&n[f],M=p>=0&&n[p];if(o&&!M||!o&&!m){Ds(Do(a,s),i,c);let N=q_(o?W_:G_,n.length,o,r,l);!o&&M&&(n[p].providerFactory=N),os(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(N),s.push(N)}else{let N=yh(n[o?p:f],l,!o&&r);os(i,e,f>-1?f:p,N)}!o&&r&&M&&n[p].componentProviders++}}}function os(e,t,n,r){let o=rn(t),i=kg(t);if(o||i){let c=(i?Y(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function yh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function is(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function G_(e,t,n,r){return da(this.multi,[])}function W_(e,t,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Vn(n,n[y],this.providerFactory.index,r);i=a.slice(0,s),da(o,i);for(let c=s;c<a.length;c++)i.push(a[c])}else i=[],da(o,i);return i}function da(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function q_(e,t,n,r,o){let i=new xt(e,n,ne);return i.multi=[],i.index=t,i.componentProviders=0,yh(i,o,r&&!n),i}function vc(e,t=[]){return n=>{n.providersResolver=(r,o)=>z_(r,o?o(e):e,t)}}function GM(e,t,n,r){return Dh(I(),er(),e,t,n,r)}function WM(e,t,n,r,o){return _h(I(),er(),e,t,n,r,o)}function qM(e,t,n,r,o,i){return Z_(I(),er(),e,t,n,r,o,i)}function yc(e,t){let n=e[t];return n===Ne?void 0:n}function Dh(e,t,n,r,o,i){let s=t+n;return Te(e,s,o)?uc(e,s+1,i?r.call(i,o):r(o)):yc(e,s+1)}function _h(e,t,n,r,o,i,s){let a=t+n;return Kf(e,a,o,i)?uc(e,a+2,s?r.call(s,o,i):r(o,i)):yc(e,a+2)}function Z_(e,t,n,r,o,i,s,a){let c=t+n;return zD(e,c,o,i,s)?uc(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):yc(e,c+3)}function ZM(e,t){let n=U(),r,o=e+H;n.firstCreatePass?(r=Y_(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=Et(r.type,!0)),s,a=ae(ne);try{let c=yo(!1),l=i();return yo(c),mc(n,I(),o,l),l}finally{ae(a)}}function Y_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function YM(e,t,n){let r=e+H,o=I(),i=Vo(o,r);return wh(o,r)?Dh(o,er(),t,i.transform,n,i):i.transform(n)}function QM(e,t,n,r){let o=e+H,i=I(),s=Vo(i,o);return wh(i,o)?_h(i,er(),t,s.transform,n,r,s):s.transform(n,r)}function wh(e,t){return e[y].data[t].pure}function KM(e,t){return Xo(e,t)}var Wn=class{full;major;minor;patch;constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},Dc=new Wn("19.2.0");var Q_=(()=>{class e{zone=g(V);changeDetectionScheduler=g(it);applicationRef=g(st);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function K_({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new V(X(J({},J_()),{scheduleInRootZone:n})),[{provide:V,useFactory:e},{provide:On,multi:!0,useFactory:()=>{let r=g(Q_,{optional:!0});return()=>r.initialize()}},{provide:On,multi:!0,useFactory:()=>{let r=g(X_);return()=>{r.initialize()}}},t===!0?{provide:Bd,useValue:!0}:[],{provide:Va,useValue:n??jd}]}function J_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var X_=(()=>{class e{subscription=new P;initialized=!1;zone=g(V);pendingTasks=g(nr);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{V.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{V.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Eh=(()=>{class e{appRef=g(st);taskService=g(nr);ngZone=g(V);zonelessEnabled=g($o);tracing=g(pn,{optional:!0});disableScheduling=g(Bd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new P;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(wo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Va,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Eo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?su:Hd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(wo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,su(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function JM(){return ct("NgZoneless"),Ju([{provide:it,useExisting:Eh},{provide:V,useClass:Eo},{provide:$o,useValue:!0},{provide:Va,useValue:!1},[]])}function ew(){return typeof $localize<"u"&&$localize.locale||Ro}var ni=new E("",{providedIn:"root",factory:()=>g(ni,T.Optional|T.SkipSelf)||ew()});var fa=new E(""),tw=new E("");function Mn(e){return!e.moduleRef}function nw(e){let t=Mn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(V);return n.run(()=>{Mn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Se,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Mn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(fa);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(fa);s.add(i),e.moduleRef.onDestroy(()=>{io(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return ow(r,n,()=>{let i=t.get(th);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ni,Ro);if(R_(s||Ro),!t.get(tw,!0))return Mn(e)?t.get(st):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Mn(e)){let c=t.get(st);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return rw(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function rw(e,t){let n=e.injector.get(st);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new _(-403,!1);t.push(e)}function ow(e,t,n){try{let r=n();return dc(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var so=null;function iw(e=[],t){return K.create({name:t,providers:[{provide:Po,useValue:"platform"},{provide:fa,useValue:new Set([()=>so=null])},...e]})}function sw(e=[]){if(so)return so;let t=iw(e);return so=t,KD(),aw(t),t}function aw(e){let t=e.get(Ua,null);rd(e,()=>{t?.forEach(n=>n())})}var gn=(()=>{class e{static __NG_ELEMENT_ID__=cw}return e})();function cw(e){return lw(de(),I(),(e&16)===16)}function lw(e,t,n){if(un(e)&&!n){let r=me(e.index,t);return new Nt(r,r)}else if(e.type&175){let r=t[be];return new Nt(r,t)}return null}var ha=class{constructor(){}supports(t){return t instanceof Map||Qf(t)}create(){return new pa}},pa=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||Qf(t)))throw new _(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new ga(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},ga=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}};function Fu(){return new _c([new ha])}var _c=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:Fu});factories;constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Fu()),deps:[[e,new bg,new Ea]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new _(901,!1)}}return e})();function Ih(e){A(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=sw(r),i=[K_({}),{provide:it,useExisting:Eh},...n||[]],s=new So({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return nw({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{A(9)}}function ri(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function wc(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function uw(e){let t=b(null);try{return e()}finally{b(t)}}function XM(e,t){let n=fl(e);return t?.equal&&(n[ce].equal=t.equal),n}var dw=!1,fw=(()=>{class e extends To{pendingTasks=g(nr);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})(),ma=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=i,this.watcher=yl(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Se,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function hw(){}function pw(e,t){!t?.injector&&Fo(hw);let n=t?.injector??g(K),r=t?.manualCleanup!==!0?n.get(fn):null,o=new ma(n.get(fw),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(gn,null,{optional:!0});return!i||!(i._lView[v]&8)?o.watcher.notify():(i._lView[to]??=[]).push(o.watcher.notify),o}var gw=dw;var va=class{[ce];constructor(t){this[ce]=t}destroy(){this[ce].destroy()}};function mw(e,t){if(gw)return pw(e,t);!t?.injector&&Fo(mw);let n=t?.injector??g(K),r=t?.manualCleanup!==!0?n.get(fn):null,o,i=n.get(Wa,null,{optional:!0}),s=n.get(it);return i!==null&&!t?.forceRoot?(o=Dw(i.view,s,e),r instanceof _o&&r._lView===i.view&&(r=null)):o=_w(e,n.get(Xf),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new va(o)}var Ch=X(J({},ht),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:jn,run(){if(this.dirty=!1,this.hasRun&&!wn(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=Lt(this),n=go(!1);try{this.maybeCleanup(),this.fn(e)}finally{go(n),_n(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),vw=X(J({},Ch),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Vt(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),yw=X(J({},Ch),{consumerMarkedDirty(){this.view[v]|=8192,dn(this.view),this.notifier.notify(13)},destroy(){Vt(this),this.onDestroyFn(),this.maybeCleanup(),this.view[bt]?.delete(this)}});function Dw(e,t,n){let r=Object.create(yw);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[bt]??=new Set,e[bt].add(r),r.consumerMarkedDirty(r),r}function _w(e,t,n){let r=Object.create(vw);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(12),r}function bh(e,t){let n=It(e),r=t.elementInjector||ko();return new zn(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var Nh=null;function mn(){return Nh}function Rh(e){Nh??=e}var fi=class{};var Z=new E(""),Ah=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>g(Ew),providedIn:"platform"})}return e})();var Ew=(()=>{class e extends Ah{_location;_history;_doc=g(Z);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return mn().getBaseHref(this._doc)}onPopState(n){let r=mn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=mn().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=D({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Oh(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Sh(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function kt(e){return e&&e[0]!=="?"?`?${e}`:e}var Sc=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>g(Cw),providedIn:"root"})}return e})(),Iw=new E(""),Cw=(()=>{class e extends Sc{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(Z).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Oh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+kt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+kt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+kt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(x(Ah),x(Iw,8))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var bw=(()=>{class e{_subject=new S;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Mw(Sh(Th(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+kt(r))}normalize(n){return e.stripTrailingSlash(Tw(this._basePath,Th(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=kt;static joinWithSlash=Oh;static stripTrailingSlash=Sh;static \u0275fac=function(r){return new(r||e)(x(Sc))};static \u0275prov=D({token:e,factory:()=>Sw(),providedIn:"root"})}return e})();function Sw(){return new bw(x(Sc))}function Tw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Th(e){return e.replace(/\/index.html$/,"")}function Mw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var oe=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(oe||{}),O=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(O||{}),he=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(he||{}),dt={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 xw(e){return ye(e)[z.LocaleId]}function Nw(e,t,n){let r=ye(e),o=[r[z.DayPeriodsFormat],r[z.DayPeriodsStandalone]],i=De(o,t);return De(i,n)}function Rw(e,t,n){let r=ye(e),o=[r[z.DaysFormat],r[z.DaysStandalone]],i=De(o,t);return De(i,n)}function Aw(e,t,n){let r=ye(e),o=[r[z.MonthsFormat],r[z.MonthsStandalone]],i=De(o,t);return De(i,n)}function Ow(e,t){let r=ye(e)[z.Eras];return De(r,t)}function oi(e,t){let n=ye(e);return De(n[z.DateFormat],t)}function ii(e,t){let n=ye(e);return De(n[z.TimeFormat],t)}function si(e,t){let r=ye(e)[z.DateTimeFormat];return De(r,t)}function gi(e,t){let n=ye(e),r=n[z.NumberSymbols][t];if(typeof r>"u"){if(t===dt.CurrencyDecimal)return n[z.NumberSymbols][dt.Decimal];if(t===dt.CurrencyGroup)return n[z.NumberSymbols][dt.Group]}return r}function Ph(e){if(!e[z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Pw(e){let t=ye(e);return Ph(t),(t[z.ExtraData][2]||[]).map(r=>typeof r=="string"?Ec(r):[Ec(r[0]),Ec(r[1])])}function kw(e,t,n){let r=ye(e);Ph(r);let o=[r[z.ExtraData][0],r[z.ExtraData][1]],i=De(o,t)||[];return De(i,n)||[]}function De(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Ec(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Fw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ai={},Lw=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Vw(e,t,n,r){let o=qw(e);t=Xe(n,t)||t;let s=[],a;for(;t;)if(a=Lw.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Fh(r,c),o=Ww(o,r,!0));let l="";return s.forEach(u=>{let d=zw(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function hi(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Xe(e,t){let n=xw(e);if(ai[n]??={},ai[n][t])return ai[n][t];let r="";switch(t){case"shortDate":r=oi(e,he.Short);break;case"mediumDate":r=oi(e,he.Medium);break;case"longDate":r=oi(e,he.Long);break;case"fullDate":r=oi(e,he.Full);break;case"shortTime":r=ii(e,he.Short);break;case"mediumTime":r=ii(e,he.Medium);break;case"longTime":r=ii(e,he.Long);break;case"fullTime":r=ii(e,he.Full);break;case"short":let o=Xe(e,"shortTime"),i=Xe(e,"shortDate");r=ci(si(e,he.Short),[o,i]);break;case"medium":let s=Xe(e,"mediumTime"),a=Xe(e,"mediumDate");r=ci(si(e,he.Medium),[s,a]);break;case"long":let c=Xe(e,"longTime"),l=Xe(e,"longDate");r=ci(si(e,he.Long),[c,l]);break;case"full":let u=Xe(e,"fullTime"),d=Xe(e,"fullDate");r=ci(si(e,he.Full),[u,d]);break}return r&&(ai[n][t]=r),r}function ci(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Re(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 jw(e,t){return Re(e,3).substring(0,t)}function W(e,t,n=0,r=!1,o=!1){return function(i,s){let a=Bw(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return jw(a,t);let c=gi(s,dt.MinusSign);return Re(a,t,c,r,o)}}function Bw(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function k(e,t,n=oe.Format,r=!1){return function(o,i){return Hw(o,i,e,t,n,r)}}function Hw(e,t,n,r,o,i){switch(n){case 2:return Aw(t,o,r)[e.getMonth()];case 1:return Rw(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=Pw(t),u=kw(t,o,r),d=l.findIndex(h=>{if(Array.isArray(h)){let[f,p]=h,m=s>=f.hours&&a>=f.minutes,M=s<p.hours||s===p.hours&&a<p.minutes;if(f.hours<p.hours){if(m&&M)return!0}else if(m||M)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return Nw(t,o,r)[s<12?0:1];case 3:return Ow(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new Error(`unexpected translation type ${c}`)}}function li(e){return function(t,n,r){let o=-1*r,i=gi(n,dt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Re(s,2,i)+Re(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Re(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Re(s,2,i)+":"+Re(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Re(s,2,i)+":"+Re(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var $w=0,di=4;function Uw(e){let t=hi(e,$w,1).getDay();return hi(e,0,1+(t<=di?di:di+7)-t)}function kh(e){let t=e.getDay(),n=t===0?-3:di-t;return hi(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Ic(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=kh(n),s=Uw(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Re(o,e,gi(r,dt.MinusSign))}}function ui(e,t=!1){return function(n,r){let i=kh(n).getFullYear();return Re(i,e,gi(r,dt.MinusSign),t)}}var Cc={};function zw(e){if(Cc[e])return Cc[e];let t;switch(e){case"G":case"GG":case"GGG":t=k(3,O.Abbreviated);break;case"GGGG":t=k(3,O.Wide);break;case"GGGGG":t=k(3,O.Narrow);break;case"y":t=W(0,1,0,!1,!0);break;case"yy":t=W(0,2,0,!0,!0);break;case"yyy":t=W(0,3,0,!1,!0);break;case"yyyy":t=W(0,4,0,!1,!0);break;case"Y":t=ui(1);break;case"YY":t=ui(2,!0);break;case"YYY":t=ui(3);break;case"YYYY":t=ui(4);break;case"M":case"L":t=W(1,1,1);break;case"MM":case"LL":t=W(1,2,1);break;case"MMM":t=k(2,O.Abbreviated);break;case"MMMM":t=k(2,O.Wide);break;case"MMMMM":t=k(2,O.Narrow);break;case"LLL":t=k(2,O.Abbreviated,oe.Standalone);break;case"LLLL":t=k(2,O.Wide,oe.Standalone);break;case"LLLLL":t=k(2,O.Narrow,oe.Standalone);break;case"w":t=Ic(1);break;case"ww":t=Ic(2);break;case"W":t=Ic(1,!0);break;case"d":t=W(2,1);break;case"dd":t=W(2,2);break;case"c":case"cc":t=W(7,1);break;case"ccc":t=k(1,O.Abbreviated,oe.Standalone);break;case"cccc":t=k(1,O.Wide,oe.Standalone);break;case"ccccc":t=k(1,O.Narrow,oe.Standalone);break;case"cccccc":t=k(1,O.Short,oe.Standalone);break;case"E":case"EE":case"EEE":t=k(1,O.Abbreviated);break;case"EEEE":t=k(1,O.Wide);break;case"EEEEE":t=k(1,O.Narrow);break;case"EEEEEE":t=k(1,O.Short);break;case"a":case"aa":case"aaa":t=k(0,O.Abbreviated);break;case"aaaa":t=k(0,O.Wide);break;case"aaaaa":t=k(0,O.Narrow);break;case"b":case"bb":case"bbb":t=k(0,O.Abbreviated,oe.Standalone,!0);break;case"bbbb":t=k(0,O.Wide,oe.Standalone,!0);break;case"bbbbb":t=k(0,O.Narrow,oe.Standalone,!0);break;case"B":case"BB":case"BBB":t=k(0,O.Abbreviated,oe.Format,!0);break;case"BBBB":t=k(0,O.Wide,oe.Format,!0);break;case"BBBBB":t=k(0,O.Narrow,oe.Format,!0);break;case"h":t=W(3,1,-12);break;case"hh":t=W(3,2,-12);break;case"H":t=W(3,1);break;case"HH":t=W(3,2);break;case"m":t=W(4,1);break;case"mm":t=W(4,2);break;case"s":t=W(5,1);break;case"ss":t=W(5,2);break;case"S":t=W(6,1);break;case"SS":t=W(6,2);break;case"SSS":t=W(6,3);break;case"Z":case"ZZ":case"ZZZ":t=li(0);break;case"ZZZZZ":t=li(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=li(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=li(2);break;default:return null}return Cc[e]=t,t}function Fh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Gw(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Ww(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=Fh(t,o);return Gw(e,r*(i-o))}function qw(e){if(Mh(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 hi(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Fw))return Zw(r)}let t=new Date(e);if(!Mh(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function Zw(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 Mh(e){return e instanceof Date&&!isNaN(e.valueOf())}function Lh(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var bc=/\s+/,xh=[],I0=(()=>{class e{_ngEl;_renderer;initialClasses=xh;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(bc):xh}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(bc):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(bc).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(ne(fe),ne(sr))};static \u0275dir=Pt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var C0=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:Ve.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||e)(ne(fe),ne(_c),ne(sr))};static \u0275dir=Pt({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),b0=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(ne(ut))};static \u0275dir=Pt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Xn]})}return e})();function Yw(e,t){return new _(2100,!1)}var Qw="mediumDate",Kw=new E(""),Jw=new E(""),S0=(()=>{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??Qw,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Vw(n,s,i||this.locale,a)}catch(s){throw Yw(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ne(ni,16),ne(Kw,24),ne(Jw,24))};static \u0275pipe=ei({name:"date",type:e,pure:!0})}return e})();var Xw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ar({type:e});static \u0275inj=Zn({})}return e})(),Tc="browser",eE="server";function Vh(e){return e===Tc}function Mc(e){return e===eE}var pi=class{};var Nc=class extends fi{supportsDOMEvents=!0},Rc=class e extends Nc{static makeCurrent(){Rh(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=tE();return n==null?null:nE(n)}resetBaseElement(){cr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Lh(document.cookie,t)}},cr=null;function tE(){return cr=cr||document.querySelector("base"),cr?cr.getAttribute("href"):null}function nE(e){return new URL(e,document.baseURI).pathname}var rE=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Ac=new E(""),zh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,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 _(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(x(Ac),x(V))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),vi=class{_doc;constructor(t){this._doc=t}manager},mi="ng-app-id";function jh(e){for(let t of e)t.remove()}function Bh(e,t){let n=t.createElement("style");return n.textContent=e,n}function oE(e,t,n,r){let o=e.head?.querySelectorAll(`style[${mi}="${t}"],link[${mi}="${t}"]`);if(o)for(let i of o)i.removeAttribute(mi),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Oc(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Gh=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Mc(i),oE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Bh);r?.forEach(o=>this.addUsage(o,this.external,Oc))}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&&(jh(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])jh(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Bh(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Oc(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(mi,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(x(Z),x(rr),x(za,8),x(Ot))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),xc={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"},kc=/%COMP%/g;var Wh="%COMP%",iE=`_nghost-${Wh}`,sE=`_ngcontent-${Wh}`,aE=!0,cE=new E("",{providedIn:"root",factory:()=>aE});function lE(e){return sE.replace(kc,e)}function uE(e){return iE.replace(kc,e)}function qh(e,t){return t.map(n=>n.replace(kc,e))}var Hh=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,l=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=u,this.platformIsServer=Mc(a),this.defaultRenderer=new lr(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Le.ShadowDom&&(r=X(J({},r),{encapsulation:Le.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof yi?o.applyToHost(n):o instanceof ur&&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,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case Le.Emulated:i=new yi(c,l,r,this.appId,u,s,a,d,h);break;case Le.ShadowDom:return new Pc(c,l,n,r,s,a,this.nonce,d,h);default:i=new ur(c,l,r,u,s,a,d,h);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)(x(zh),x(Gh),x(rr),x(cE),x(Z),x(Ot),x(V),x(za),x(pn,8))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),lr=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(xc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){($h(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&($h(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new _(-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=xc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=xc[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Ve.DashCase|Ve.Important)?t.style.setProperty(n,r,o&Ve.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ve.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=mn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);let i=this.decoratePreventDefault(r);return this.tracingService!==null&&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;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function $h(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Pc=class extends lr{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=qh(o.id,u);for(let h of u){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=h,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let h of d){let f=Oc(h,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ur=class extends lr{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 u=r.styles;this.styles=l?qh(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},yi=class extends ur{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u),this.contentAttr=lE(u),this.hostAttr=uE(u)}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}},dE=(()=>{class e extends vi{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)(x(Z))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Uh=["alt","control","meta","shift"],fE={"\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"},hE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},pE=(()=>{class e extends vi{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(()=>mn().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."),Uh.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,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=fE[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"),Uh.forEach(s=>{if(s!==o){let a=hE[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(x(Z))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function q0(e){return Ih(gE(e))}function gE(e){return{appProviders:[..._E,...e?.providers??[]],platformProviders:DE}}function mE(){Rc.makeCurrent()}function vE(){return new Se}function yE(){return Qd(document),document}var DE=[{provide:Ot,useValue:Tc},{provide:Ua,useValue:mE,multi:!0},{provide:Z,useFactory:yE,deps:[]}];var _E=[{provide:Po,useValue:"root"},{provide:Se,useFactory:vE,deps:[]},{provide:Ac,useClass:dE,multi:!0,deps:[Z]},{provide:Ac,useClass:pE,multi:!0,deps:[Z]},Hh,Gh,zh,{provide:ve,useExisting:Hh},{provide:pi,useClass:rE,deps:[]},[]];var Fc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=x(wE),o},providedIn:"root"})}return e})(),wE=(()=>{class e extends Fc{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Be.NONE:return r;case Be.HTML:return lt(r,"HTML")?xe(r):Za(this._doc,String(r)).toString();case Be.STYLE:return lt(r,"Style")?xe(r):r;case Be.SCRIPT:if(lt(r,"Script"))return xe(r);throw new _(5200,!1);case Be.URL:return lt(r,"URL")?xe(r):Go(String(r));case Be.RESOURCE_URL:if(lt(r,"ResourceURL"))return xe(r);throw new _(5201,!1);default:throw new _(5202,!1)}}bypassSecurityTrustHtml(n){return rf(n)}bypassSecurityTrustStyle(n){return of(n)}bypassSecurityTrustScript(n){return sf(n)}bypassSecurityTrustUrl(n){return af(n)}bypassSecurityTrustResourceUrl(n){return cf(n)}static \u0275fac=function(r){return new(r||e)(x(Z))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Zh=class e{constructor(t){this.sanitizer=t}transform(t){return t?this.sanitizer.bypassSecurityTrustHtml(t):""}static \u0275fac=function(n){return new(n||e)(ne(Fc,16))};static \u0275pipe=ei({name:"safeHtml",type:e,pure:!0})};var Lc;function IE(){if(Lc==null){let e=typeof document<"u"?document.head:null;Lc=!!(e&&(e.createShadowRoot||e.attachShadow))}return Lc}function Di(e){if(IE()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Q0(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function dr(e){return e.composedPath?e.composedPath()[0]:e.target}function Yh(e){return e.buttons===0||e.detail===0}function Qh(e){let t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}function Vc(e,t=0){return CE(e)?Number(e):arguments.length===2?t:0}function CE(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function He(e){return e instanceof fe?e.nativeElement:e}function ft(e,t,n,r,o){let i=parseInt(Dc.major),s=parseInt(Dc.minor);return i>19||i===19&&s>0||i===0&&s===0?e.listen(t,n,r,o):(t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)})}var _i=new WeakMap,Kh=(()=>{class e{_appRef;_injector=g(K);_environmentInjector=g(ke);load(n){let r=this._appRef=this._appRef||this._injector.get(st),o=_i.get(r);o||(o={loaders:new Set,refs:[]},_i.set(r,o),r.onDestroy(()=>{_i.get(r)?.refs.forEach(i=>i.destroy()),_i.delete(r)})),o.loaders.has(n)||(o.loaders.add(n),o.refs.push(bh(n,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var jc;try{jc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{jc=!1}var Bc=(()=>{class e{_platformId=g(Ot);isBrowser=this._platformId?Vh(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||jc)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var bE=new E("cdk-dir-doc",{providedIn:"root",factory:SE});function SE(){return g(Z)}var TE=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function ME(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?TE.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var Jh=(()=>{class e{value="ltr";change=new Q;constructor(){let n=g(bE,{optional:!0});if(n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=ME(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ft;function px(){if(Ft==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Ft=!1,Ft;if("scrollBehavior"in document.documentElement.style)Ft=!0;else{let e=Element.prototype.scrollTo;e?Ft=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Ft=!1}}return Ft}var xE=20,NE=(()=>{class e{_ngZone=g(V);_platform=g(Bc);_renderer=g(ve).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new S;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=xE){return this._platform.isBrowser?new R(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=n>0?this._scrolled.pipe(Wr(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):ji()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let o=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(Tn(i=>!i||o.indexOf(i)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((o,i)=>{this._scrollableContainsElement(i,n)&&r.push(i)}),r}_scrollableContainsElement(n,r){let o=He(r),i=n.getElementRef().nativeElement;do if(o==i)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var RE=20,Xh=(()=>{class e{_platform=g(Bc);_listeners;_viewportSize;_change=new S;_document=g(Z,{optional:!0});constructor(){let n=g(V),r=g(ve).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=i=>this._change.next(i);this._listeners=[r.listen("window","resize",o),r.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),o=n.documentElement,i=o.getBoundingClientRect(),s=-i.top||n.body.scrollTop||r.scrollY||o.scrollTop||0,a=-i.left||n.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:s,left:a}}change(n=RE){return n>0?this._change.pipe(Wr(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Hc={},Hx=(()=>{class e{_appId=g(rr);getId(n){return this._appId!=="ng"&&(n+=this._appId),Hc.hasOwnProperty(n)||(Hc[n]=0),`${n}${Hc[n]++}`}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ux(e){return Array.isArray(e)?e:[e]}function pp(e){let t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),r=e.nodeName.toLowerCase();t.removeAttribute("id");for(let o=0;o<n.length;o++)n[o].removeAttribute("id");return r==="canvas"?np(e,t):(r==="input"||r==="select"||r==="textarea")&&tp(e,t),ep("canvas",e,t,np),ep("input, textarea, select",e,t,tp),t}function ep(e,t,n,r){let o=t.querySelectorAll(e);if(o.length){let i=n.querySelectorAll(e);for(let s=0;s<o.length;s++)r(o[s],i[s])}}var AE=0;function tp(e,t){t.type!=="file"&&(t.value=e.value),t.type==="radio"&&t.name&&(t.name=`mat-clone-${t.name}-${AE++}`)}function np(e,t){let n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch{}}function Yc(e){let t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function zc(e,t,n){let{top:r,bottom:o,left:i,right:s}=e;return n>=r&&n<=o&&t>=i&&t<=s}function pr(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function rp(e,t,n,r){let{top:o,right:i,bottom:s,left:a,width:c,height:l}=e,u=c*t,d=l*t;return r>o-d&&r<s+d&&n>a-u&&n<i+u}var wi=class{_document;positions=new Map;constructor(t){this._document=t}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),t.forEach(n=>{this.positions.set(n,{scrollPosition:{top:n.scrollTop,left:n.scrollLeft},clientRect:Yc(n)})})}handleScroll(t){let n=dr(t),r=this.positions.get(n);if(!r)return null;let o=r.scrollPosition,i,s;if(n===this._document){let l=this.getViewportScrollPosition();i=l.top,s=l.left}else i=n.scrollTop,s=n.scrollLeft;let a=o.top-i,c=o.left-s;return this.positions.forEach((l,u)=>{l.clientRect&&n!==u&&n.contains(u)&&pr(l.clientRect,a,c)}),o.top=i,o.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function gp(e,t){let n=e.rootNodes;if(n.length===1&&n[0].nodeType===t.ELEMENT_NODE)return n[0];let r=t.createElement("div");return n.forEach(o=>r.appendChild(o)),r}function Qc(e,t,n){for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];o?e.setProperty(r,o,n?.has(r)?"important":""):e.removeProperty(r)}return e}function vn(e,t){let n=t?"":"none";Qc(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":n,"-ms-user-select":n,"-webkit-user-select":n,"-moz-user-select":n})}function op(e,t,n){Qc(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},n)}function Ei(e,t){return t&&t!="none"?e+" "+t:e}function ip(e,t){e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.transform=Ii(t.left,t.top)}function Ii(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function sp(e){let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function OE(e){let t=getComputedStyle(e),n=$c(t,"transition-property"),r=n.find(a=>a==="transform"||a==="all");if(!r)return 0;let o=n.indexOf(r),i=$c(t,"transition-duration"),s=$c(t,"transition-delay");return sp(i[o])+sp(s[o])}function $c(e,t){return e.getPropertyValue(t).split(",").map(r=>r.trim())}var PE=new Set(["position"]),Gc=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(t,n,r,o,i,s,a,c,l,u){this._document=t,this._rootElement=n,this._direction=r,this._initialDomRect=o,this._previewTemplate=i,this._previewClass=s,this._pickupPositionOnPage=a,this._initialTransform=c,this._zIndex=l,this._renderer=u}attach(t){this._preview=this._createPreview(),t.appendChild(this._preview),ap(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(t){this._preview.style.transform=t}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(t){this._preview.classList.add(t)}getTransitionDuration(){return OE(this._preview)}addEventListener(t,n){return this._renderer.listen(this._preview,t,n)}_createPreview(){let t=this._previewTemplate,n=this._previewClass,r=t?t.template:null,o;if(r&&t){let i=t.matchSize?this._initialDomRect:null,s=t.viewContainer.createEmbeddedView(r,t.context);s.detectChanges(),o=gp(s,this._document),this._previewEmbeddedView=s,t.matchSize?ip(o,i):o.style.transform=Ii(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=pp(this._rootElement),ip(o,this._initialDomRect),this._initialTransform&&(o.style.transform=this._initialTransform);return Qc(o.style,{"pointer-events":"none",margin:ap(o)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},PE),vn(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("popover","manual"),o.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach(i=>o.classList.add(i)):o.classList.add(n)),o}};function ap(e){return"showPopover"in e}var kE={passive:!0},cp={passive:!1},FE={passive:!1,capture:!0},LE=800,lp=new Set(["position"]),Wc=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_anchor;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=Ha(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new S;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=P.EMPTY;_pointerUpSubscription=P.EMPTY;_scrollSubscription=P.EMPTY;_resizeSubscription=P.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(t){t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(n=>vn(n,t)))}_disabled=!1;beforeStarted=new S;started=new S;released=new S;ended=new S;entered=new S;exited=new S;dropped=new S;moved=this._moveEvents;data;constrainPosition;constructor(t,n,r,o,i,s,a){this._config=n,this._document=r,this._ngZone=o,this._viewportRuler=i,this._dragDropRegistry=s,this._renderer=a,this.withRootElement(t).withParent(n.parentDragRef||null),this._parentPositions=new wi(r),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(r=>He(r)),this._handles.forEach(r=>vn(r,this.disabled)),this._toggleNativeDragInteractions();let n=new Set;return this._disabledHandles.forEach(r=>{this._handles.indexOf(r)>-1&&n.add(r)}),this._disabledHandles=n,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){let n=He(t);return n!==this._rootElement&&(this._removeRootElementListeners(),this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[ft(this._renderer,n,"mousedown",this._pointerDown,cp),ft(this._renderer,n,"touchstart",this._pointerDown,kE),ft(this._renderer,n,"dragstart",this._nativeDragStart,cp)]),this._initialTransform=void 0,this._rootElement=n),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?He(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),vn(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),vn(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){let t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){let t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){let n=this._getTargetHandle(t);n&&!this._disabledHandles.has(n)&&!this.disabled&&this._initializeDragSequence(n,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)};_pointerMove=t=>{let n=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging()){let o=Math.abs(n.x-this._pickupPositionOnPage.x),i=Math.abs(n.y-this._pickupPositionOnPage.y);if(o+i>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),c=this._dropContainer;if(!a){this._endDragSequence(t);return}(!c||!c.isDragging()&&!c.isReceiving())&&(t.cancelable&&t.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(t)))}return}t.cancelable&&t.preventDefault();let r=this._getConstrainedPointerPosition(n);if(this._hasMoved=!0,this._lastKnownPointerPosition=n,this._updatePointerDirectionDelta(r),this._dropContainer)this._updateActiveDropContainer(r,n);else{let o=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,i=this._activeTransform;i.x=r.x-o.x+this._passiveTransform.x,i.y=r.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(i.x,i.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:r,event:t,distance:this._getDragDistance(r),delta:this._pointerDirectionDelta})})};_pointerUp=t=>{this._endDragSequence(t)};_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let n=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(n),dropPoint:n,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){fr(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let n=this._getShadowRoot(),r=this._dropContainer;if(n&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=ft(this._renderer,n,"selectstart",VE,FE)}),r){let o=this._rootElement,i=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=new Gc(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(i,n)),op(o,!1,lp),this._document.body.appendChild(i.replaceChild(s,o)),this.started.next({source:this,event:t}),r.start(),this._initialContainer=r,this._initialIndex=r.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(r?r.getScrollableParents():[])}_initializeDragSequence(t,n){this._parentDragRef&&n.stopPropagation();let r=this.isDragging(),o=fr(n),i=!o&&n.button!==0,s=this._rootElement,a=dr(n),c=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+LE>Date.now(),l=o?Qh(n):Yh(n);if(a&&a.draggable&&n.type==="mousedown"&&n.preventDefault(),r||i||c||l)return;if(this._handles.length){let h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=Yc(this._boundaryElement));let u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,t,n);let d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(n);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,n)}_cleanupDragArtifacts(t){op(this._rootElement,!0,lp),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let n=this._dropContainer,r=n.getItemIndex(this),o=this._getPointerPositionOnPage(t),i=this._getDragDistance(o),s=n._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:i,dropPoint:o,event:t}),this.dropped.next({item:this,currentIndex:r,previousIndex:this._initialIndex,container:n,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:i,dropPoint:o,event:t}),n.drop(this,r,this._initialIndex,this._initialContainer,s,i,o,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:n},{x:r,y:o}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,n);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,n)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,n,i===this._initialContainer&&i.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(r,o),this._dropContainer._sortItem(this,t,n,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,n):this._applyPreviewTransform(t-this._pickupPositionInElement.x,n-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let t=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);let n=this._preview.getTransitionDuration();return n===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(r=>{let o=a=>{(!a||this._preview&&dr(a)===this._preview.element&&a.propertyName==="transform")&&(s(),r(),clearTimeout(i))},i=setTimeout(o,n*1.5),s=this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){let t=this._placeholderTemplate,n=t?t.template:null,r;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),r=gp(this._placeholderRef,this._document)):r=pp(this._rootElement),r.style.pointerEvents="none",r.classList.add("cdk-drag-placeholder"),r}_getPointerPositionInElement(t,n,r){let o=n===this._rootElement?null:n,i=o?o.getBoundingClientRect():t,s=fr(r)?r.targetTouches[0]:r,a=this._getViewportScrollPosition(),c=s.pageX-i.left-a.left,l=s.pageY-i.top-a.top;return{x:i.left-t.left+c,y:i.top-t.top+l}}_getPointerPositionOnPage(t){let n=this._getViewportScrollPosition(),r=fr(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,o=r.pageX-n.left,i=r.pageY-n.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let a=this._ownerSVGElement.createSVGPoint();return a.x=o,a.y=i,a.matrixTransform(s.inverse())}}return{x:o,y:i}}_getConstrainedPointerPosition(t){let n=this._dropContainer?this._dropContainer.lockAxis:null,{x:r,y:o}=this.constrainPosition?this.constrainPosition(t,this,this._initialDomRect,this._pickupPositionInElement):t;if(this.lockAxis==="x"||n==="x"?o=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||n==="y")&&(r=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:i,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(l-s),h=a.left+i,f=a.right-(c-i);r=up(r,h,f),o=up(o,u,d)}return{x:r,y:o}}_updatePointerDirectionDelta(t){let{x:n,y:r}=t,o=this._pointerDirectionDelta,i=this._pointerPositionAtLastDirectionChange,s=Math.abs(n-i.x),a=Math.abs(r-i.y);return s>this._config.pointerDirectionChangeThreshold&&(o.x=n>i.x?1:-1,i.x=n),a>this._config.pointerDirectionChangeThreshold&&(o.y=r>i.y?1:-1,i.y=r),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,vn(this._rootElement,t))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(t=>t()),this._rootElementCleanups=void 0}_applyRootElementTransform(t,n){let r=1/this.scale,o=Ii(t*r,n*r),i=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=i.transform&&i.transform!="none"?i.transform:""),i.transform=Ei(o,this._initialTransform)}_applyPreviewTransform(t,n){let r=this._previewTemplate?.template?void 0:this._initialTransform,o=Ii(t,n);this._preview.setTransform(Ei(o,r))}_getDragDistance(t){let n=this._pickupPositionOnPage;return n?{x:t.x-n.x,y:t.y-n.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:n}=this._passiveTransform;if(t===0&&n===0||this.isDragging()||!this._boundaryElement)return;let r=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(o.width===0&&o.height===0||r.width===0&&r.height===0)return;let i=o.left-r.left,s=r.right-o.right,a=o.top-r.top,c=r.bottom-o.bottom;o.width>r.width?(i>0&&(t+=i),s>0&&(t-=s)):t=0,o.height>r.height?(a>0&&(n+=a),c>0&&(n-=c)):n=0,(t!==this._passiveTransform.x||n!==this._passiveTransform.y)&&this.setFreeDragPosition({y:n,x:t})}_getDragStartDelay(t){let n=this.dragStartDelay;return typeof n=="number"?n:fr(t)?n.touch:n?n.mouse:0}_updateOnScroll(t){let n=this._parentPositions.handleScroll(t);if(n){let r=dr(t);this._boundaryRect&&r!==this._boundaryElement&&r.contains(this._boundaryElement)&&pr(this._boundaryRect,n.top,n.left),this._pickupPositionOnPage.x+=n.left,this._pickupPositionOnPage.y+=n.top,this._dropContainer||(this._activeTransform.x-=n.left,this._activeTransform.y-=n.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Di(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,n){let r=this._previewContainer||"global";if(r==="parent")return t;if(r==="global"){let o=this._document;return n||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return He(r)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=t=>{if(this._handles.length){let n=this._getTargetHandle(t);n&&!this._disabledHandles.has(n)&&!this.disabled&&t.preventDefault()}else this.disabled||t.preventDefault()};_getTargetHandle(t){return this._handles.find(n=>t.target&&(t.target===n||n.contains(t.target)))}};function up(e,t,n){return Math.max(t,Math.min(n,e))}function fr(e){return e.type[0]==="t"}function VE(e){e.preventDefault()}function mp(e,t,n){let r=dp(t,e.length-1),o=dp(n,e.length-1);if(r===o)return;let i=e[r],s=o<r?-1:1;for(let a=r;a!==o;a+=s)e[a]=e[a+s];e[o]=i}function dp(e,t){return Math.max(0,Math.min(t,e))}var Ci=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(t){this._dragDropRegistry=t}_previousSwap={drag:null,delta:0,overlaps:!1};start(t){this.withItems(t)}sort(t,n,r,o){let i=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,n,r,o);if(s===-1&&i.length>0)return null;let a=this.orientation==="horizontal",c=i.findIndex(M=>M.drag===t),l=i[s],u=i[c].clientRect,d=l.clientRect,h=c>s?1:-1,f=this._getItemOffsetPx(u,d,h),p=this._getSiblingOffsetPx(c,i,h),m=i.slice();return mp(i,c,s),i.forEach((M,N)=>{if(m[N]===M)return;let se=M.drag===t,bi=se?f:p,Kc=se?t.getPlaceholderElement():M.drag.getRootElement();M.offset+=bi;let Jc=Math.round(M.offset*(1/M.drag.scale));a?(Kc.style.transform=Ei(`translate3d(${Jc}px, 0, 0)`,M.initialTransform),pr(M.clientRect,0,bi)):(Kc.style.transform=Ei(`translate3d(0, ${Jc}px, 0)`,M.initialTransform),pr(M.clientRect,bi,0))}),this._previousSwap.overlaps=zc(d,n,r),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?o.x:o.y,{previousIndex:c,currentIndex:s}}enter(t,n,r,o){let i=o==null||o<0?this._getItemIndexFromPointerPosition(t,n,r):o,s=this._activeDraggables,a=s.indexOf(t),c=t.getPlaceholderElement(),l=s[i];if(l===t&&(l=s[i+1]),!l&&(i==null||i===-1||i<s.length-1)&&this._shouldEnterAsFirstChild(n,r)&&(l=s[0]),a>-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){let u=l.getRootElement();u.parentElement.insertBefore(c,u),s.splice(i,0,t)}else this._element.appendChild(c),s.push(t);c.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables?.forEach(t=>{let n=t.getRootElement();if(n){let r=this._itemPositions.find(o=>o.drag===t)?.initialTransform;n.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(r=>r.drag===t)}updateOnScroll(t,n){this._itemPositions.forEach(({clientRect:r})=>{pr(r,t,n)}),this._itemPositions.forEach(({drag:r})=>{this._dragDropRegistry.isDragging(r)&&r._sortFromLastPointerPosition()})}withElementContainer(t){this._element=t}_cacheItemPositions(){let t=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(n=>{let r=n.getVisibleElement();return{drag:n,offset:0,initialTransform:r.style.transform||"",clientRect:Yc(r)}}).sort((n,r)=>t?n.clientRect.left-r.clientRect.left:n.clientRect.top-r.clientRect.top)}_getItemOffsetPx(t,n,r){let o=this.orientation==="horizontal",i=o?n.left-t.left:n.top-t.top;return r===-1&&(i+=o?n.width-t.width:n.height-t.height),i}_getSiblingOffsetPx(t,n,r){let o=this.orientation==="horizontal",i=n[t].clientRect,s=n[t+r*-1],a=i[o?"width":"height"]*r;if(s){let c=o?"left":"top",l=o?"right":"bottom";r===-1?a-=s.clientRect[c]-i[l]:a+=i[c]-s.clientRect[l]}return a}_shouldEnterAsFirstChild(t,n){if(!this._activeDraggables.length)return!1;let r=this._itemPositions,o=this.orientation==="horizontal";if(r[0].drag!==this._activeDraggables[0]){let s=r[r.length-1].clientRect;return o?t>=s.right:n>=s.bottom}else{let s=r[0].clientRect;return o?t<=s.left:n<=s.top}}_getItemIndexFromPointerPosition(t,n,r,o){let i=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:a,clientRect:c})=>{if(a===t)return!1;if(o){let l=i?o.x:o.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&l===this._previousSwap.delta)return!1}return i?n>=Math.floor(c.left)&&n<Math.floor(c.right):r>=Math.floor(c.top)&&r<Math.floor(c.bottom)});return s===-1||!this._sortPredicate(s,t)?-1:s}},qc=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(t,n){this._document=t,this._dragDropRegistry=n}start(t){let n=this._element.childNodes;this._relatedNodes=[];for(let r=0;r<n.length;r++){let o=n[r];this._relatedNodes.push([o,o.nextSibling])}this.withItems(t)}sort(t,n,r,o){let i=this._getItemIndexFromPointerPosition(t,n,r),s=this._previousSwap;if(i===-1||this._activeItems[i]===t)return null;let a=this._activeItems[i];if(s.drag===a&&s.overlaps&&s.deltaX===o.x&&s.deltaY===o.y)return null;let c=this.getItemIndex(t),l=t.getPlaceholderElement(),u=a.getRootElement();i>c?u.after(l):u.before(l),mp(this._activeItems,c,i);let d=this._getRootNode().elementFromPoint(n,r);return s.deltaX=o.x,s.deltaY=o.y,s.drag=a,s.overlaps=u===d||u.contains(d),{previousIndex:c,currentIndex:i}}enter(t,n,r,o){let i=o==null||o<0?this._getItemIndexFromPointerPosition(t,n,r):o;i===-1&&(i=this._getClosestItemIndexToPointer(t,n,r));let s=this._activeItems[i],a=this._activeItems.indexOf(t);a>-1&&this._activeItems.splice(a,1),s&&!this._dragDropRegistry.isDragging(s)?(this._activeItems.splice(i,0,t),s.getRootElement().before(t.getPlaceholderElement())):(this._activeItems.push(t),this._element.appendChild(t.getPlaceholderElement()))}withItems(t){this._activeItems=t.slice()}withSortPredicate(t){this._sortPredicate=t}reset(){let t=this._element,n=this._previousSwap;for(let r=this._relatedNodes.length-1;r>-1;r--){let[o,i]=this._relatedNodes[r];o.parentNode===t&&o.nextSibling!==i&&(i===null?t.appendChild(o):i.parentNode===t&&t.insertBefore(o,i))}this._relatedNodes=[],this._activeItems=[],n.drag=null,n.deltaX=n.deltaY=0,n.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(t){return this._activeItems.indexOf(t)}updateOnScroll(){this._activeItems.forEach(t=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(t){t!==this._element&&(this._element=t,this._rootNode=void 0)}_getItemIndexFromPointerPosition(t,n,r){let o=this._getRootNode().elementFromPoint(Math.floor(n),Math.floor(r)),i=o?this._activeItems.findIndex(s=>{let a=s.getRootElement();return o===a||a.contains(o)}):-1;return i===-1||!this._sortPredicate(i,t)?-1:i}_getRootNode(){return this._rootNode||(this._rootNode=Di(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(t,n,r){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let o=1/0,i=-1;for(let s=0;s<this._activeItems.length;s++){let a=this._activeItems[s];if(a!==t){let{x:c,y:l}=a.getRootElement().getBoundingClientRect(),u=Math.hypot(n-c,r-l);u<o&&(o=u,i=s)}}return i}},fp=.05,vp=.05,_e=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e}(_e||{}),ie=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e}(ie||{}),Zc=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis;autoScrollDisabled=!1;autoScrollStep=2;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new S;entered=new S;exited=new S;dropped=new S;sorted=new S;receivingStarted=new S;receivingStopped=new S;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=P.EMPTY;_verticalScrollDirection=_e.NONE;_horizontalScrollDirection=ie.NONE;_scrollNode;_stopScrollTimers=new S;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(t,n,r,o,i){this._dragDropRegistry=n,this._ngZone=o,this._viewportRuler=i;let s=this.element=He(t);this._document=r,this.withOrientation("vertical").withElementContainer(s),n.registerDropContainer(this),this._parentPositions=new wi(r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,n,r,o){this._draggingStarted(),o==null&&this.sortingDisabled&&(o=this._draggables.indexOf(t)),this._sortStrategy.enter(t,n,r,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,n,r,o,i,s,a,c={}){this._reset(),this.dropped.next({item:t,currentIndex:n,previousIndex:r,container:this,previousContainer:o,isPointerOverContainer:i,distance:s,dropPoint:a,event:c})}withItems(t){let n=this._draggables;return this._draggables=t,t.forEach(r=>r._withDropContainer(this)),this.isDragging()&&(n.filter(o=>o.isDragging()).every(o=>t.indexOf(o)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._direction=t,this._sortStrategy instanceof Ci&&(this._sortStrategy.direction=t),this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){if(t==="mixed")this._sortStrategy=new qc(this._document,this._dragDropRegistry);else{let n=new Ci(this._dragDropRegistry);n.direction=this._direction,n.orientation=t,this._sortStrategy=n}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((n,r)=>this.sortPredicate(n,r,this)),this}withScrollableParents(t){let n=this._container;return this._scrollableElements=t.indexOf(n)===-1?[n,...t]:t.slice(),this}withElementContainer(t){if(t===this._container)return this;let n=He(this.element),r=this._scrollableElements.indexOf(this._container),o=this._scrollableElements.indexOf(t);return r>-1&&this._scrollableElements.splice(r,1),o>-1&&this._scrollableElements.splice(o,1),this._sortStrategy&&this._sortStrategy.withElementContainer(t),this._cachedShadowRoot=null,this._scrollableElements.unshift(t),this._container=t,this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,n,r,o){if(this.sortingDisabled||!this._domRect||!rp(this._domRect,fp,n,r))return;let i=this._sortStrategy.sort(t,n,r,o);i&&this.sorted.next({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,n){if(this.autoScrollDisabled)return;let r,o=_e.NONE,i=ie.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||r||rp(s.clientRect,fp,t,n)&&([o,i]=jE(a,s.clientRect,this._direction,t,n),(o||i)&&(r=a))}),!o&&!i){let{width:s,height:a}=this._viewportRuler.getViewportSize(),c={width:s,height:a,top:0,right:s,bottom:a,left:0};o=yp(c,n),i=Dp(c,t),r=window}r&&(o!==this._verticalScrollDirection||i!==this._horizontalScrollDirection||r!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=i,this._scrollNode=r,(o||i)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let t=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let t=this._container.style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(n=>n._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),$i(0,Nr).pipe(Yt(this._stopScrollTimers)).subscribe(()=>{let t=this._scrollNode,n=this.autoScrollStep;this._verticalScrollDirection===_e.UP?t.scrollBy(0,-n):this._verticalScrollDirection===_e.DOWN&&t.scrollBy(0,n),this._horizontalScrollDirection===ie.LEFT?t.scrollBy(-n,0):this._horizontalScrollDirection===ie.RIGHT&&t.scrollBy(n,0)})};_isOverContainer(t,n){return this._domRect!=null&&zc(this._domRect,t,n)}_getSiblingContainerFromPosition(t,n,r){return this._siblings.find(o=>o._canReceive(t,n,r))}_canReceive(t,n,r){if(!this._domRect||!zc(this._domRect,n,r)||!this.enterPredicate(t,this))return!1;let o=this._getShadowRoot().elementFromPoint(n,r);return o?o===this._container||this._container.contains(o):!1}_startReceiving(t,n){let r=this._activeSiblings;!r.has(t)&&n.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(r.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:n}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){let n=this._parentPositions.handleScroll(t);n&&this._sortStrategy.updateOnScroll(n.top,n.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let t=Di(this._container);this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let t=this._sortStrategy.getActiveItemsSnapshot().filter(n=>n.isDragging());this._siblings.forEach(n=>n._startReceiving(this,t))}};function yp(e,t){let{top:n,bottom:r,height:o}=e,i=o*vp;return t>=n-i&&t<=n+i?_e.UP:t>=r-i&&t<=r+i?_e.DOWN:_e.NONE}function Dp(e,t){let{left:n,right:r,width:o}=e,i=o*vp;return t>=n-i&&t<=n+i?ie.LEFT:t>=r-i&&t<=r+i?ie.RIGHT:ie.NONE}function jE(e,t,n,r,o){let i=yp(t,o),s=Dp(t,r),a=_e.NONE,c=ie.NONE;if(i){let l=e.scrollTop;i===_e.UP?l>0&&(a=_e.UP):e.scrollHeight-l>e.clientHeight&&(a=_e.DOWN)}if(s){let l=e.scrollLeft;n==="rtl"?s===ie.RIGHT?l<0&&(c=ie.RIGHT):e.scrollWidth+l>e.clientWidth&&(c=ie.LEFT):s===ie.LEFT?l>0&&(c=ie.LEFT):e.scrollWidth-l>e.clientWidth&&(c=ie.RIGHT)}return[a,c]}var hr={capture:!0},Uc={passive:!1,capture:!0},BE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=lc({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(r,o){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
|
|
8
|
+
`],encapsulation:2,changeDetection:0})}return e})(),_p=(()=>{class e{_ngZone=g(V);_document=g(Z);_styleLoader=g(Kh);_renderer=g(ve).createRenderer(null,null);_cleanupDocumentTouchmove;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Ha([]);_globalListeners;_draggingPredicate=n=>n.isDragging();_domNodesToDirectives=null;pointerMove=new S;pointerUp=new S;scroll=new S;constructor(){}registerDropContainer(n){this._dropInstances.has(n)||this._dropInstances.add(n)}registerDragItem(n){this._dragInstances.add(n),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=ft(this._renderer,this._document,"touchmove",this._persistentTouchmoveListener,Uc)})}removeDropContainer(n){this._dropInstances.delete(n)}removeDragItem(n){this._dragInstances.delete(n),this.stopDragging(n),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(n,r){if(!(this._activeDragInstances().indexOf(n)>-1)&&(this._styleLoader.load(BE),this._activeDragInstances.update(o=>[...o,n]),this._activeDragInstances().length===1)){let o=r.type.startsWith("touch"),i=a=>this.pointerUp.next(a),s=[["scroll",a=>this.scroll.next(a),hr],["selectstart",this._preventDefaultWhileDragging,Uc]];o?s.push(["touchend",i,hr],["touchcancel",i,hr]):s.push(["mouseup",i,hr]),o||s.push(["mousemove",a=>this.pointerMove.next(a),Uc]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=s.map(([a,c,l])=>ft(this._renderer,this._document,a,c,l))})}}stopDragging(n){this._activeDragInstances.update(r=>{let o=r.indexOf(n);return o>-1?(r.splice(o,1),[...r]):r}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(n){return this._activeDragInstances().indexOf(n)>-1}scrolled(n){let r=[this.scroll];return n&&n!==this._document&&r.push(new R(o=>this._ngZone.runOutsideAngular(()=>{let i=ft(this._renderer,n,"scroll",s=>{this._activeDragInstances().length&&o.next(s)},hr);return()=>{i()}}))),Gr(...r)}registerDirectiveNode(n,r){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(n,r)}removeDirectiveNode(n){this._domNodesToDirectives?.delete(n)}getDragDirectiveForNode(n){return this._domNodesToDirectives?.get(n)||null}ngOnDestroy(){this._dragInstances.forEach(n=>this.removeDragItem(n)),this._dropInstances.forEach(n=>this.removeDropContainer(n)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=n=>{this._activeDragInstances().length>0&&n.preventDefault()};_persistentTouchmoveListener=n=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&n.preventDefault(),this.pointerMove.next(n))};_clearGlobalListeners(){this._globalListeners?.forEach(n=>n()),this._globalListeners=void 0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),HE={dragStartThreshold:5,pointerDirectionChangeThreshold:5},$E=(()=>{class e{_document=g(Z);_ngZone=g(V);_viewportRuler=g(Xh);_dragDropRegistry=g(_p);_renderer=g(ve).createRenderer(null,null);constructor(){}createDrag(n,r=HE){return new Wc(n,r,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(n){return new Zc(n,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hp=new E("CDK_DRAG_PARENT");var UE=new E("CdkDragHandle");var zE=new E("CDK_DRAG_CONFIG"),GE=new E("CdkDropList"),dN=(()=>{class e{element=g(fe);dropContainer=g(GE,{optional:!0,skipSelf:!0});_ngZone=g(V);_viewContainerRef=g(ut);_dir=g(Jh,{optional:!0});_changeDetectorRef=g(gn);_selfHandle=g(UE,{optional:!0,self:!0});_parentDrag=g(hp,{optional:!0,skipSelf:!0});_dragDropRegistry=g(_p);_destroyed=new S;_handles=new vt([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(n){this._disabled=n,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new Q;released=new Q;ended=new Q;entered=new Q;exited=new Q;dropped=new Q;moved=new R(n=>{let r=this._dragRef.moved.pipe($e(o=>({source:this,pointerPosition:o.pointerPosition,event:o.event,delta:o.delta,distance:o.distance}))).subscribe(n);return()=>{r.unsubscribe()}});_injector=g(K);constructor(){let n=this.dropContainer,r=g(zE,{optional:!0}),o=g($E);this._dragRef=o.createDrag(this.element,{dragStartThreshold:r&&r.dragStartThreshold!=null?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&r.pointerDirectionChangeThreshold!=null?r.pointerDirectionChangeThreshold:5,zIndex:r?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),r&&this._assignDefaults(r),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this),n._dropListRef.beforeStarted.pipe(Yt(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(n){this._dragRef.setFreeDragPosition(n)}ngAfterViewInit(){Uo(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(n){let r=n.rootElementSelector,o=n.freeDragPosition;r&&!r.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(n){let r=this._handles.getValue();r.push(n),this._handles.next(r)}_removeHandle(n){let r=this._handles.getValue(),o=r.indexOf(n);o>-1&&(r.splice(o,1),this._handles.next(r))}_setPreviewTemplate(n){this._previewTemplate=n}_resetPreviewTemplate(n){n===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(n){this._placeholderTemplate=n}_resetPlaceholderTemplate(n){n===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let n=this.element.nativeElement,r=n;this.rootElementSelector&&(r=n.closest!==void 0?n.closest(this.rootElementSelector):n.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||n)}_getBoundaryElement(){let n=this.boundaryElement;return n?typeof n=="string"?this.element.nativeElement.closest(n):He(n):null}_syncInputs(n){n.beforeStarted.subscribe(()=>{if(!n.isDragging()){let r=this._dir,o=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;n.disabled=this.disabled,n.lockAxis=this.lockAxis,n.scale=this.scale,n.dragStartDelay=typeof o=="object"&&o?o:Vc(o),n.constrainPosition=this.constrainPosition,n.previewClass=this.previewClass,n.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),r&&n.withDirection(r.value)}}),n.beforeStarted.pipe(Ui(1)).subscribe(()=>{if(this._parentDrag){n.withParent(this._parentDrag._dragRef);return}let r=this.element.nativeElement.parentElement;for(;r;){let o=this._dragDropRegistry.getDragDirectiveForNode(r);if(o){n.withParent(o._dragRef);break}r=r.parentElement}})}_handleEvents(n){n.started.subscribe(r=>{this.started.emit({source:this,event:r.event}),this._changeDetectorRef.markForCheck()}),n.released.subscribe(r=>{this.released.emit({source:this,event:r.event})}),n.ended.subscribe(r=>{this.ended.emit({source:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),n.entered.subscribe(r=>{this.entered.emit({container:r.container.data,item:this,currentIndex:r.currentIndex})}),n.exited.subscribe(r=>{this.exited.emit({container:r.container.data,item:this})}),n.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}_assignDefaults(n){let{lockAxis:r,dragStartDelay:o,constrainPosition:i,previewClass:s,boundaryElement:a,draggingDisabled:c,rootElementSelector:l,previewContainer:u}=n;this.disabled=c??!1,this.dragStartDelay=o||0,r&&(this.lockAxis=r),i&&(this.constrainPosition=i),s&&(this.previewClass=s),a&&(this.boundaryElement=a),l&&(this.rootElementSelector=l),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.pipe(zi(n=>{let r=n.map(o=>o.element);this._selfHandle&&this.rootElementSelector&&r.push(this.element),this._dragRef.withHandles(r)}),Zr(n=>Gr(...n.map(r=>r._stateChanges.pipe(qr(r))))),Yt(this._destroyed)).subscribe(n=>{let r=this._dragRef,o=n.element.nativeElement;n.disabled?r.disableHandle(o):r.enableHandle(o)})}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Pt({type:e,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,o){r&2&&ti("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",ri],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",wc]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[vc([{provide:hp,useExisting:e}]),Xn]})}return e})();export{J as a,X as b,WE as c,qE as d,ZE as e,YE as f,QE as g,P as h,R as i,S as j,vt as k,Vi as l,Sn as m,Dt as n,ji as o,Zt as p,Qp as q,Hi as r,Gr as s,Tn as t,ql as u,og as v,qr as w,Zr as x,Yt as y,Ue as z,D as A,Zn as B,E as C,hg as D,g as E,ke as F,yM as G,DM as H,_M as I,wM as J,EM as K,K as L,it as M,Q as N,V as O,IM as P,CM as Q,fe as R,Ha as S,bM as T,SM as U,sv as V,Uo as W,TM as X,MM as Y,Jv as Z,Rt as _,Un as $,ve as aa,sr as ba,ne as ca,ut as da,an as ea,lc as fa,ar as ga,Pt as ha,ei as ia,Zf as ja,AM as ka,WD as la,st as ma,nh as na,d_ as oa,hc as pa,ti as qa,OM as ra,PM as sa,kM as ta,FM as ua,LM as va,VM as wa,pc as xa,gc as ya,fh as za,b_ as Aa,jM as Ba,O_ as Ca,BM as Da,F_ as Ea,L_ as Fa,V_ as Ga,j_ as Ha,HM as Ia,$M as Ja,H_ as Ka,mh as La,U_ as Ma,UM as Na,zM as Oa,GM as Pa,WM as Qa,qM as Ra,ZM as Sa,YM as Ta,QM as Ua,KM as Va,JM as Wa,gn as Xa,uw as Ya,XM as Za,mw as _a,bh as $a,Z as ab,bw as bb,I0 as cb,C0 as db,b0 as eb,S0 as fb,Xw as gb,q0 as hb,Zh as ib,Di as jb,Q0 as kb,dr as lb,Yh as mb,Qh as nb,He as ob,ft as pb,Kh as qb,Bc as rb,Jh as sb,px as tb,NE as ub,Xh as vb,Hx as wb,Ux as xb,dN as yb};
|